• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Request] Point Item

Oldschool'er

Tibia since 1998'
Joined
Dec 14, 2010
Messages
2,198
Reaction score
149
Location
United States
Hello and im here to try to find a script for point item, i need something like this!


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+ ^^
 
Back
Top