Results 1 to 5 of 5

Thread: Checar se tem x item e depositar?

  1. #1
    Normal User jNo The Best's Avatar
    Join Date
    Jun 2012
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    5

    Checar se tem x item e depositar?

    Uma action que checa se tem 20 item na bp ou se o cap esta abaixo de 50 e vai pra label deposit?
    Last edited by jNo The Best; 01-19-2014 at 07:57 AM.

  2. #2
    Normal User jNo The Best's Avatar
    Join Date
    Jun 2012
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    5
    Urgente

  3. #3
    Normal User jNo The Best's Avatar
    Join Date
    Jun 2012
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    5
    UP!!!

  4. #4
    iBot User Gabriel10101's Avatar
    Join Date
    Mar 2012
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    31
    Rep Power
    5
    Não sei se está correto,mas tenta assim:
    Code:
    if itemcount(NOME ITEM) > 19 and cap < 50 then 
    gotolabel('deposit') 
    end

  5. #5
    Normal User jNo The Best's Avatar
    Join Date
    Jun 2012
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    5
    vlw, me ajuda com essa aqui, não ta fumfando nao, essa action


    local ring = "ring of the sky"

    local life = "life ring"

    local high_mana = 85 -- mana pra puxar o ring normal / mana for put the normal ring

    local low_mana = 60 -- mana pra puxar life ring / mana to push X ring



    if (mppc < low_mana) then moveitems(life, "ring", 1)

    else

    if (mppc >= high_mana) then moveitems(ring, "ring", 1)

    end

    end

Posting Permissions

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