Ir para conteúdo

[Actions] Ganhar Addon Por Quest


Hudsin

Posts Recomendados

va em actions/scripts e adicione crie 1 novo arquivo chamando yalaharchest e adicione isso:

-- creditos AntiemoXlr 100& --
function onUse(cid, item, frompos, item2, topos)

       if item.uid == 2611 then
       queststatus = getPlayerStorageValue(cid,2611)
       if queststatus == -1 then
       doPlayerSendTextMessage(cid,22,"You Completed a Yalahar Quest.")
               doSendAnimatedText(getPlayerPosition(cid), "ADDON!", TEXTCOLOR_ORANGE) 
               doPlayerAddOutfit(cid,324,3)
               doPlayerAddOutfit(cid,325,3)
       setPlayerStorageValue(cid,2611,1)
       else
       doPlayerSendTextMessage(cid,22,"Você ja tem este Addon!.")
       end
       else
       return 0
       end

       return 1
       end

em actions.mlx:

<action uniqueid="2611" event="script" value="yalaharchest.lua"/>

Link para o comentário
Compartilhar em outros sites

eu gostaria de por nesse script,tem como?

 

function onUse(cid, item, fromPosition, item2, toPosition)

      if item.actionid == 58267 then
          queststatus = getPlayerStorageValue(cid,102504)
          if queststatus == -1 then
              doPlayerSendTextMessage(cid,22,"You have found an Yalahari Mask.")

              setPlayerStorageValue(cid,102504,1)
          else
              doPlayerSendTextMessage(cid,22,"It is empty.")
          end
      elseif item.actionid == 58268 then
          queststatus = getPlayerStorageValue(cid,102504)
          if queststatus == -1 then
              doPlayerSendTextMessage(cid,22,"You have found an Yalahari Armor.")
              doPlayerAddItem(cid,9776,1)
              setPlayerStorageValue(cid,102504,1)
          else
              doPlayerSendTextMessage(cid,22,"It is empty.")
          end
      elseif item.actionid == 58269 then
          queststatus = getPlayerStorageValue(cid,102504)
          if queststatus == -1 then
              doPlayerSendTextMessage(cid,22,"You have found an Yalahari Leg Piece.")
              doPlayerAddItem(cid,9777,1)
              setPlayerStorageValue(cid,102504,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

function onUse(cid, item, fromPosition, item2, toPosition)

      if item.actionid == 58267 then
          queststatus = getPlayerStorageValue(cid,102504)
          if queststatus == -1 then
              doPlayerSendTextMessage(cid,22,"You have found an Yalahari Mask.")
               doPlayerAddItem(cid,9778,1)
               doPlayerAddOutfit(cid,324,3)
               doPlayerAddOutfit(cid,325,3)
              setPlayerStorageValue(cid,102504,1)
          else
              doPlayerSendTextMessage(cid,22,"It is empty.")
          end
      elseif item.actionid == 58268 then
          queststatus = getPlayerStorageValue(cid,102504)
          if queststatus == -1 then
              doPlay erSendTextMessage(cid,22,"You have found an Yalahari Armor.")
             doPlayerAddItem(cid,9776,1)
               doPlayerAddOutfit(cid,324,3)
               doPlayerAddOutfit(cid,325,3)
              setPlayerStorageValue(cid,102504,1)
          else
              doPlayerSendTextMessage(cid,22,"It is empty.")
          end
      elseif item.actionid == 58269 then
          queststatus = getPlayerStorageValue(cid,102504)
          if queststatus == -1 then
              doPlayerSendTextMessage(cid,22,"You have found an Yalahari Leg Piece.")
              doPlayerAddItem(cid,9777,1)
               doPlayerAddOutfit(cid,324,3)
               doPlayerAddOutfit(cid,325,3)
              setPlayerStorageValue(cid,102504,1)
          else
              doPlayerSendTextMessage(cid,22,"It is empty.")
          end
   else
       return 0
      end

      return 1
end

 

OBS: seu script nao estava configurado pra da yalahar mask mais eu ja pus ali ;)

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...