Batonek
Senior User
- Joined
- Apr 26, 2008
- Messages
- 605
- Reaction score
- 25
Witam. Chcia?em przerobi? skrypt daj?cy premium punkty ?eby mo?na by?o go u?ywa? na np. gold ingotach. Uzyska?em co? takiego:
Ingot ?adnie znika, efekt jest tylko ?e nie ma ani punktu, ani tekstu.
Z g?ry dzi?ki,
pozdrawiam.
Code:
local points = 1
function onUse(cid, item, fromPosition, itemEx, toPosition)
db.executeQuery("UPDATE `accounts` SET `premium_points` = `premium_points` + " .. points .. " WHERE `name` = '" .. getAccountByName(getCreatureName(itemEx.uid)) .. "' LIMIT 1;")
doCreatureSay(cid, "You have received 1 premium point!", TALKTYPE_ORANGE_1, false, nil, toPosition)
doSendMagicEffect(toPosition, 13)
doRemoveItem(item.uid,1)
return true
end
Z g?ry dzi?ki,
pozdrawiam.