Amigo se nao der certo me avise
Adicione Esse Seguinte linha no:
actions/actions.xml
<!-- Quests POD -->
<action uniqueid="9996" event="script" value="pokeballs.lua"/>
<action uniqueid="9997" event="script" value="pokeballs.lua"/>
<action uniqueid="9998" event="script" value="pokeballs.lua"/>
Feito isso Crie Uma pasta dentro do actions/script/pokeballs.xml
e cole isto dentro
-- annihilator chests
function onUse(cid, item, frompos, item2, topos)
local hp = 800
if item.uid == 9996 then
queststatus = getPlayerStorageValue(cid,8749)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"Caterpie.")
local ball1 = doPlayerAddItem(cid,2522,1)
doPlayerAddItem(cid,2149,50)
doItemSetAttribute(ball1, "aid", hp)
setPlayerStorageValue(cid,8749,1)
else
doPlayerSendTextMessage(cid,22,"Voce ja pegou seu pokemon.")
end
elseif item.uid == 9997 then
queststatus = getPlayerStorageValue(cid,8749)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"Ratata.")
local ball2 = doPlayerAddItem(cid,2527,1)
doPlayerAddItem(cid,2149,50)
doItemSetAttribute(ball2, "aid", hp)
setPlayerStorageValue(cid,8749,1)
else
doPlayerSendTextMessage(cid,22,"Voce ja pegou seu pokemon.")
end
elseif item.uid == 9998 then
queststatus = getPlayerStorageValue(cid,8749)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,"Weddle.")
local ball3 = doPlayerAddItem(cid,2522,1)
doPlayerAddItem(cid,2149,50)
doItemSetAttribute(ball3, "aid", hp)
setPlayerStorageValue(cid,8749,1)
else
doPlayerSendTextMessage(cid,22,"Voce ja pegou seu pokemon.")
end
else
return 0
end
return 1
end
e Pronto e lembrando se nao der certo me avise