Ir para conteúdo

Duvida Sobre Programação De Quests


hassio

Posts Recomendados

Ae galera eu tava querendo colocar uma quest com uniqueid que tivesse uma backpack com dois items dentro..

alguem sabe fazer?

 

(eu to querendo colocar o Golden bow[7438] com a Sniper Arrow[7364])

 

 

-- annihilator chests

 

function onUse(cid, item, frompos, item2, topos)

if item.uid == 7110 then

queststatus = getPlayerStorageValue(cid,5491)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"You have found Blessed Turband.")

doPlayerAddItem(cid,2471,1)

setPlayerStorageValue(cid,5491,1)

else

doPlayerSendTextMessage(cid,22,"It is empty.")

end

elseif item.uid == 7101 then

queststatus = getPlayerStorageValue(cid,5491)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"DsL")

doPlayerAddItem(cid,2469,1)

setPlayerStorageValue(cid,5491,1)

else

doPlayerSendTextMessage(cid,22,"It is empty.")

end

elseif item.uid == 7111 then

queststatus = getPlayerStorageValue(cid,5491)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"You have found Holly Wand.")

doPlayerAddItem(cid,7410,1)

setPlayerStorageValue(cid,5491,1)

else

doPlayerSendTextMessage(cid,22,"It is empty.")

end

elseif item.uid == 7102 then

queststatus = getPlayerStorageValue(cid,5491)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"Heaven axe.")

doPlayerAddItem(cid,7411,1)

setPlayerStorageValue(cid,5491,1)

else

doPlayerSendTextMessage(cid,22,"It is empty.")

end

elseif item.uid == 7103 then

queststatus = getPlayerStorageValue(cid,5491)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"shadow sceptre.")

doPlayerAddItem(cid,7451,1)

setPlayerStorageValue(cid,5491,1)

else

doPlayerSendTextMessage(cid,22,"It is empty.")

end

elseif item.uid == 7109 then

queststatus = getPlayerStorageValue(cid,5491)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"Golden Bow.")

doPlayerAddItem(cid,7438,1)

setPlayerStorageValue(cid,5491,1)

else

 

doPlayerSendTextMessage(cid,22,"It is empty.")

end

 

elseif item.uid == 7107 then

queststatus = getPlayerStorageValue(cid,5491)

if queststatus == -1 then

doPlayerSendTextMessage(cid,22,"Sword of the Damned.")

doPlayerAddItem(cid,7959,1)

setPlayerStorageValue(cid,5491,1)

else

doPlayerSendTextMessage(cid,22,"It is empty.")

end

 

else

return 0

end

 

return 1

end

Link para o comentário
Compartilhar em outros sites

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...