Oldschool'er
Tibia since 1998'
Hello and im here to try to find a script for point item, i need something like this!
big rep+ ^^
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
elseif item.itemid == 10141 then
local accountId, points = getPlayerAccountId(cid), 5
db.query("UPDATE znote_accounts SET points = points + " .. points .. " WHERE account_id = " .. accountId)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You have been granted 5 shop point to your account.")
doSendMagicEffect(getThingPos(cid), CONST_ME_FIREWORK_BLUE)
doRemoveItem(item.uid)
end
return true
end
big rep+ ^^