Signup Now
Results 1 to 3 of 3
  1. #1
    Free User
    Join Date
    Jun 2014
    Posts
    173
    Reputation
    33
    Rep Power
    20

    Help with action/counter

    hello guys, i need help with 2 actions/counters like:
    if itemcount(Arrow type in supplies) < arrowmax in supplies then gotolabel("","") else
    gotolabel("","") end

    other same, but for potions

    if itemcount(Manapotion type in supplies) < ManaMax in supplies then gotolabel("","") else
    gotolabel("","") end


    help please, im new to this beast bot!!!!

  2. #2
    Free User Dragon Lord's Avatar
    Join Date
    Jun 2014
    Posts
    123
    Reputation
    10
    Rep Power
    20

    init start
    local AMMUNITION_NAME = "onyx arrow" --Ammunition's name, just change onyx arrow for any item you need(incluiding potions)
    local AMMUNITION_AMMOUNT = 100 --Minimum ammount to make character's goes to a certain label.

    local LABEL_TO_LEAVE = "Leave_Hunt" --Name of the label you want your character to go if you have less ammunition/potions of the value you chose
    local LABEL_TO_STAY = "Start_Hunt" --Name of the label you want your character to go if you have more ammunition/potions of the value you chose
    init end

    if itemcount(AMMUNITION_NAME, 'all') <= AMMUNITION_AMMOUNT then
    gotolabel(LABEL_TO_LEAVE)
    else
    gotolabel(LABEL_TO_STAY)
    end
    Last edited by Dragon Lord; 07-04-2014 at 08:10 AM.

  3. #3
    Free User
    Join Date
    Jun 2014
    Posts
    173
    Reputation
    33
    Rep Power
    20
    Quote Originally Posted by Dragon Lord View Post

    init start
    local AMMUNITION_NAME = "onyx arrow" --Ammunition's name, just change onyx arrow for any item you need(incluiding potions)
    local AMMUNITION_AMMOUNT = 100 --Minimum ammount to make character's goes to a certain label.

    local LABEL_TO_LEAVE = "Leave_Hunt" --Name of the label you want your character to go if you have less ammunition/potions of the value you chose
    local LABEL_TO_STAY = "Start_Hunt" --Name of the label you want your character to go if you have more ammunition/potions of the value you chose
    init end

    if itemcount(AMMUNITION_NAME, 'all') <= AMMUNITION_AMMOUNT then
    gotolabel(LABEL_TO_LEAVE)
    else
    gotolabel(LABEL_TO_STAY)
    end
    thanks

 

 

Posting Permissions

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