gostaria de um script de quest q quando vc desse use no chest vc fosse teleportado para fora da quest
para ot 8.5
aguardo uma resposta...
gostaria de um script de quest q quando vc desse use no chest vc fosse teleportado para fora da quest
para ot 8.5
aguardo uma resposta...
Só mudar a POS, storagevalue, item que vai dar e o nome.
config = { pos = {x=1000, y=500, z=7}, itemid = 1000, storagevalue = 500, itemname = "magic plate armor" } function onUse(cid, item, frompos, item2, topos) if item.uid == config.storagevalue then queststatus = getPlayerStorageValue(cid,config.storagevalue) if queststatus == -1 then doPlayerSendTextMessage(cid,22,"You have found a " .. config.itemname .. ".") doPlayerAddItem(cid,config.itemid,1) setPlayerStorageValue(cid,config.storagevalue,1) doTeleportThing(cid,config.pos) else doPlayerSendTextMessage(cid,22,"It is empty.") end else return 0 end return 1 end
Se não pegar testa esse aqui:
local pos = {x=1000, y=500, z=7} function onUse(cid, item, frompos, item2, topos) if item.uid == 500 then queststatus = getPlayerStorageValue(cid,500) if queststatus == -1 then doPlayerSendTextMessage(cid,22,"You have found a magic plate armor.") doPlayerAddItem(cid,1000,1) setPlayerStorageValue(cid,500,1) doTeleportThing(cid, pos) else doPlayerSendTextMessage(cid,22,"It is empty.") end else return 0 end return 1 end
funcionou direitin ake vlw aew
Resolvido,
Movido.
Abraços
Att,
Carlos "LorDz" Alberto