local config = {
dinheiro = "gold coins",
valor = 3000,
}
function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) then
if doPlayerRemoveMoney(cid, config.valor) == true then
doPlayerSendTextMessage(cid, 22, "we debited 100 gold coins of you bank account for you pass here...")
doSendMagicEffect(getCreaturePos(cid), 11)
else
doPlayerSendCancel(cid, "Ooops, gotta out in here, you don't have " .. config.valor .. " " .. config.dinheiro .. ".")
doTeleportThing(cid, fromPosition, true)
doSendMagicEffect(getCreaturePos(cid), CONST_ME_POFF)
end
end
return true
end
aí está ?