• 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!

tc script "You cannot use this object" tfs 1.3

Dorianek

Member
Joined
Nov 29, 2018
Messages
247
Reaction score
10
Location
Poland
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

Back
Top