Results 1 to 3 of 3

Thread: action para contar rings e pegar

  1. #1
    Normal User Eduardo Silveira's Avatar
    Join Date
    Jan 2014
    Location
    Rio Grande do Sul
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3

    action para contar rings e pegar

    os rings a serem pegados irao ficar na main bp

    quero que conte os que ja tem na mainbp, e da quantidade a pegar descontar os que ja tem

    Code:
    local ringgg = itemcount(RingName)
    amount = Ringss - ringgg 
    while amount > 0 do 
    moveitems(RingName, RingsBP, MainBP, amount)
    end
    no setup tenho

    RingBp = "Backpack"
    RingName = "sword ring"
    Ringss = "4" -- Quantidade de Rings
    Last edited by Eduardo Silveira; 02-28-2014 at 03:01 PM.

  2. #2
    Normal User Eduardo Silveira's Avatar
    Join Date
    Jan 2014
    Location
    Rio Grande do Sul
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3
    Code:
     for i=0,5 do
               wait(500, 1000)
              TotalRing = (Rings - itemcount(RingName, MainBP))
              if  (TotalRing <= 0) then
                break
              else
                  moveitems(RingName, RingsBP, MainBP, TotalRing)
              end
            end
    Code:
    RingsBP = "Fur backpack" 
    RingName = "sword ring"
    Rings = 5 -- Quantidade de Rings
    consegui.

  3. #3
    Normal User Eduardo Silveira's Avatar
    Join Date
    Jan 2014
    Location
    Rio Grande do Sul
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3
    como faço para pegar food também? a mesma action nao conta os foods

Posting Permissions

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