Poxa, que tal
if doPlayerRemoveMoney(cid, 10000) == true then
Em vez de
if doPlayerRemoveMoney(cid, 10000) == TRUE then
E aí no caso ele so vai perder 10k uma vez, se passar de novo não perde. Que tal verificar uma storage quando pisar e mudá-la depois de perde o money? ![]()









info
Grupo: Lorde
Registrado: 22/07/12
Posts: 2.2k
Reputação: +453
Char no Tibia: Kissy
Falaa galera to de volta com mais um script mais dessa vez um pouco mais inovador então gogo .
Vá em data / movements / scripts / renome algum arquivo para vocmoney.lua
é adicione .
function onStepIn(cid, item, pos, frompos) local config = { vocation = 4, -- Needed vocation storage = 13820 -- No change! } if getPlayerVocation(cid) == config.vocation then if getPlayerStorageValue(cid, config.storage) <= -1 then doPlayerSendTextMessage(cid, 22, "You are not Knight, if you pass here again lose 10k!") doTeleportThing(cid, frompos, true) setPlayerStorageValue(cid, config.storage , 1) return true end end if getPlayerStorageValue(cid, config.storage) >= 1 then if doPlayerRemoveMoney(cid, 10000) == TRUE then doPlayerSendTextMessage(cid,22,"You lose 10k!") setPlayerStorageValue(cid, config.storage, -1) return true end end return true endem movements.xml
Então divirta-se !!
Editado Abril 8 por SkyLigh