Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Action Refill de Food

  1. #1
    Normal User
    Join Date
    Jun 2012
    Posts
    78
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    16
    Rep Power
    5

    Question Action Refill de Food

    Gostaria de saber se alguém sabe como fazer uma action de check food.

    Desta forma está correto?

    if itemcount("nome_do_food") > 0 then
    gotolabel("Food_Refiller")
    else
    gotolabel("Continuar_Hunt")
    end
    Caso esteja correto eu precisaria saber como faço para comprar a quantidade que eu quiser, a action abaixo está correta?

    opentrade()
    wait(500, 1000)
    wait(1000)
    buyitemsupto("Nome_do_Food", 200)
    wait(100, 300)
    buyitemsupto("Nome_do_Food", 200)
    wait(500, 1000)
    wait(300,600)
    Obrigado.
    Last edited by LKSSSS; 09-09-2012 at 12:38 PM.

  2. #2
    iBot User Ducklin's Avatar
    Join Date
    Jun 2012
    Posts
    377
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    33 Post(s)
    Reputation
    45
    Rep Power
    5
    PHP Code:

    --[--DK SCRIPTs--]--
      
           
    local FoodName "Brown Mushroom"
           
    local FoodSafe 30
           local LabelBuyFood 
    "BuyFood_byDK"
           
    local LabelContinue "Continue"

    --[--Não Meche--]--

           if 
    itemcount(FoodName) < FoodSafe
               then
               gotolabel
    (LabelBuyFood)
               else
               
    gotolabel(LabelContinue)
               
    end 

    PHP Code:

    --[--DK Scripts--]--
           
           
    local FoodName "Brown Mushroom"
           
    local PotionsBP "Purple Backpack"
           
    local FoodToBuy 200

    --[--Não Meche--]--

           
    closewindows()
               
    wait(5001000)
           
    openitem(MainBP'back')
               
    wait(5001000)
           
    resizewindows() 
               
    wait(5001000)
           
    openitem(PotionsBPMainBPtrue)
               
    wait(5001000)
           
    resizewindows() 
               
    wait(500,900)
           if 
    itemcount(FoodName) < FoodToBuy 
               then
           buyitemsupto
    (FoodNameFoodToBuy)
               
    end 
    Last edited by Ducklin; 09-09-2012 at 01:52 PM.

    FREE SCRIPTS
    PAID SCRIPTS
    Give me some Credit, give me you're REP
    +

  3. #3
    Normal User
    Join Date
    Jun 2012
    Posts
    78
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    16
    Rep Power
    5
    Obrigado...

  4. #4
    Normal User
    Join Date
    Jun 2012
    Posts
    78
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    16
    Rep Power
    5
    @Ducklin Não funcionou a segunda action.

  5. #5
    Normal User Slashh's Avatar
    Join Date
    May 2012
    Posts
    147
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    @LKSSSS

    ve se agora funciona a action que o Ducklin te passou

    PHP Code:
    --[--DK Scripts--]--
           
           
    local FoodName "Brown Mushroom"
           
    local PotionsBP "Purple Backpack"
           
    local FoodToBuy 200
           local MainBP 
    "Yellow Backpack"

    --[--Não Meche--]--

           
    closewindows()
               
    wait(20002500)
    while 
    windowcount() < do
           
    openitem(MainBP'back')
               
    wait(5001000)
           
    resizewindows() 
               
    wait(5001000)
           
    openitem(PotionsBPMainBPtrue)
               
    wait(5001000)
           
    resizewindows() 
               
    wait(500,900)
           
    end
               wait
    (5001000)
           if 
    itemcount(FoodName) < FoodToBuy 
           then
           buyitemsupto
    (FoodNameFoodToBuy)
           
    end 

  6. #6
    iBot User Ducklin's Avatar
    Join Date
    Jun 2012
    Posts
    377
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    33 Post(s)
    Reputation
    45
    Rep Power
    5
    verdade esqueci da main

    FREE SCRIPTS
    PAID SCRIPTS
    Give me some Credit, give me you're REP
    +

  7. #7
    Normal User
    Join Date
    Jun 2012
    Posts
    78
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    16
    Rep Power
    5
    @Slashh
    @Ducklin

    Ele verifica que está com pouco food vai até o NPC mas não fala nada para comprar as brown mushroom, a npc é a Luna de Edron.

  8. #8
    Normal User
    Join Date
    Jun 2012
    Posts
    78
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    16
    Rep Power
    5
    Eu fiz umas alterações conforme meu Setup mas isso não atrapalha na compra do food.

    Ficou assim: /// Ele não fala hi pro NPC nem nada.

    --[--Testando--]--

    local FoodName = "Brown Mushroom"
    local PotionsBP = "Brocade Backpack"
    local FoodToBuy = 200
    local MainBP = "Backpack of Holding"
    local LootBP = "Yellow Backpack"
    local GoldBP = "Golden Backpack"

    --[--Testando02--]--

    closewindows()
    wait(2000, 2500)
    while windowcount() < 2 do
    wait(500, 1000)
    openitem(MainBP, "back")
    wait(500, 1000)
    resizewindows()
    wait(500, 1000)
    resizewindows()
    openitem(LootBP, MainBP, true)
    wait(500, 1000)
    resizewindows()
    openitem(GoldBP, MainBP, true)
    wait(500, 1000)
    resizewindows()
    openitem(PotionBP, MainBP, true)
    wait(500, 1000)
    resizewindows()
    end
    wait(500, 1000)
    if itemcount(FoodName) < FoodToBuy
    then
    buyitemsupto(FoodName, FoodToBuy)
    end

  9. #9
    Banned
    Join Date
    Jul 2012
    Location
    Santa Cruz do Sul - RS
    Posts
    867
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    21
    Rep Power
    0
    Aqui, agora vai funcionar só tava faltando o opentrade()

    Code:
    --[--DK Scripts--]--
           
           local FoodName = "Brown Mushroom"
           local PotionsBP = "Purple Backpack"
           local FoodToBuy = 200
           local MainBP = "Yellow Backpack"
    
    --[--Não Meche--]--
    
           closewindows()
               wait(2000, 2500)
    while windowcount() < 2 do
           openitem(MainBP, 'back')
               wait(500, 1000)
           resizewindows() 
               wait(500, 1000)
           openitem(PotionsBP, MainBP, true)
               wait(500, 1000)
           resizewindows() 
               wait(500,900)
           end
          opentrade()
               wait(500, 1000)
           if itemcount(FoodName) < FoodToBuy 
           then
           buyitemsupto(FoodName, FoodToBuy)
           end

  10. #10
    Normal User
    Join Date
    Jun 2012
    Posts
    78
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    16
    Rep Power
    5
    @Sayildd

    Obrigado, irei testar e se funcionar eu edito.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •