gostaria que alguem ajeita-se esse script pra me , pra ficar mas facil de mecher
queria que ele tive-se uma conf, facil tipo assim
local configs = {
lvl1 = 1000,
lvl2 = 2000,
lvl3 = 3000,
lvl4 = 4000
}
e assim por diante mas quando o player que nao tiver lvl pra entrar aparece-se assim
Você precisa de level 3000 para entrar.
aki ta o script
function onUse(cid, item, frompos, item2, topos)
if item.actionid > 0 and getPlayerLevel(cid) >= item.actionid - 1000 then
doTransformItem(item.uid,item.itemid+1)
doTeleportThing(cid,frompos)
else
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,'Only the worthy may pass.')
end
return 1
end