Ir para conteúdo
  • Cadastre-se

In service of yalahar dando os 3 itens de uma vez


Posts Recomendados

Olá,

 

Estou com problemas na reward da in service of yalahar, ao clicar no baú o player ganha os 3 itens da quest, e o correto seria cada 1 dos 3 baus darem 1 item.

 

o script da reward é:

 

function onUse(cid, item, fromPosition, itemEx, toPosition)
    if(getPlayerStorageValue(cid, 10012) < 1) then
        doPlayerAddItem
(cid, 9776, 1)
        doPlayerAddItem(cid, 9778, 1)
        doPlayerAddItem(cid, 9777, 1)
        doPlayerAddExp(cid, 250000, true, true)
        setPlayerStorageValue(cid, 10012, 1)
    end
    
if(item.uid == 3088) then
        
if(getPlayerStorageValue(cid, 30) == 53) then
            setPlayerStorageValue
(cid, 30, 54)
            Player(cid):setStorageValue(12021, 5) -- StorageValue for Questlog "Mission 10: The Final Battle"
            doPlayerAddItem(cid, 9776, 1)
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You've found a yalahari armor.")
        else
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "The chest is empty.")
        end
    elseif
(item.uid == 3089) then
        
if(getPlayerStorageValue(cid, 30) == 53) then
            setPlayerStorageValue
(cid, 30, 54)
            Player(cid):setStorageValue(12021, 5) -- StorageValue for Questlog "Mission 10: The Final Battle"
            doPlayerAddItem(cid, 9778, 1)
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You've found a yalahari mask.")
        else
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "The chest is empty.")
        end
    elseif
(item.uid == 3090) then
        
if(getPlayerStorageValue(cid, 30) == 53) then
            setPlayerStorageValue
(cid, 30, 54)
            Player(cid):setStorageValue(12021, 5) -- StorageValue for Questlog "Mission 10: The Final Battle"
            doPlayerAddItem(cid, 9777, 1)
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You've found a yalahari leg piece.")
        else
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "The chest is empty.")
        end
    end
    
return true
end

Link para o post
Compartilhar em outros sites
function onUse(cid, item, fromPosition, itemEx, toPosition)
    if(getPlayerStorageValue(cid, 10012) < 1) then
        doPlayerAddExp(cid, 250000, true, true)
        setPlayerStorageValue(cid, 10012, 1)
    end
    if(item.uid == 3088) then
        if(getPlayerStorageValue(cid, 30) == 53) then
            setPlayerStorageValue(cid, 30, 54)
            Player(cid):setStorageValue(12021, 5) -- StorageValue for Questlog "Mission 10: The Final Battle"
            doPlayerAddItem(cid, 9776, 1)
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You've found a yalahari armor.")
        else
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "The chest is empty.")
        end
    elseif(item.uid == 3089) then
        if(getPlayerStorageValue(cid, 30) == 53) then
            setPlayerStorageValue(cid, 30, 54)
            Player(cid):setStorageValue(12021, 5) -- StorageValue for Questlog "Mission 10: The Final Battle"
            doPlayerAddItem(cid, 9778, 1)
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You've found a yalahari mask.")
        else
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "The chest is empty.")
        end
    elseif(item.uid == 3090) then
        if(getPlayerStorageValue(cid, 30) == 53) then
            setPlayerStorageValue(cid, 30, 54)
            Player(cid):setStorageValue(12021, 5) -- StorageValue for Questlog "Mission 10: The Final Battle"
            doPlayerAddItem(cid, 9777, 1)
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You've found a yalahari leg piece.")
        else
            doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "The chest is empty.")
        end
    end
    return true
end

Tenta assim, ai tu coloca cada unique no baú correto.

3088: Yalahari armor

3089: Yalahari mask

3090: Yalahari leg piece

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo