local config = {
idcoin = 24774
}
function onUse(player, item, fromPosition, itemEx, toPosition)
local item = Item(item.uid)
if player:getItemCount(config.idcoin) > 0 then
local coinplayer = player:getCoinsBalance()+item:getCount()
player:getPosition():sendMagicEffect(15)
item:remove()
player:setCoinsBalance(coinplayer)
else
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have to carry tibia coins in your backpack.")
end
return true
end
When using it pops up: Screen
Attachments
-
1.png7.4 KB · Views: 7 · VirusTotal