Elvascoo
Active User
- Joined
- Nov 2, 2010
- Messages
- 59
- Reaction score
- 0
Siema posiadam taki skrypt na premium point rune
po uzyciu runki o id 2264 na siebie nie ma zadnego efektu nic sie nie dzieje moze ktos pomoc??local cfg =
{
points = 10,
effect = CONST_ME_GIFT_WRAPS
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(not isPlayer(itemEx.uid)) then
return false
end
db.executeQuery("UPDATE `accounts` SET `premium_points` = `premium_points` + " .. cfg.points .. " WHERE `name` = '" .. getAccountByName(getCreatureName(itemEx.uid)) .. "' LIMIT 1;")
doCreatureSay(cid, "You have received " .. cfg.points .. " premium points!", TALKTYPE_ORANGE_1, false, nil, toPosition)
doSendMagicEffect(toPosition, cfg.effect)
doRemoveItem(item.uid, 1)
return true
end