Results 1 to 4 of 4

Thread: mana/cap check why doesnt it work?

  1. #1
    Normal User
    Join Date
    May 2012
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    15
    Rep Power
    5

    mana/cap check why doesnt it work?

    if itemcount("mana potion") < "20" and cap < "40" then
    gotolabel('Hunt')
    end

    it will not go to 'Hunt' it only goes to next wpt when i have cap/mana's

  2. #2
    Normal User Heardy's Avatar
    Join Date
    May 2012
    Posts
    136
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    26
    Rep Power
    5
    PHP Code:
    if itemcount('mana potion') < 20 and cap 40 then
       gotolabel
    ('Hunt')
    end 
    You don't need the " around the numbers.

  3. #3
    Normal User
    Join Date
    May 2012
    Location
    Manchester, England
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    13
    Rep Power
    5
    Also surely it should be:-
    Code:
    if itemcount('mana potion') < 20 and cap < 40 then
       gotolabel('Refill')
    end
    At the moment you telling it if there is less than 20 mana potions and less than 40 cap then go to hunt where it should be go to refill.

  4. #4
    Normal User
    Join Date
    May 2012
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    15
    Rep Power
    5
    Quote Originally Posted by Heardy View Post
    PHP Code:
    if itemcount('mana potion') < 20 and cap 40 then
       gotolabel
    ('Hunt')
    end 
    You don't need the " around the numbers.
    Thanks alot! I couldnt figure it out was driving me crazy... lol

    Quote Originally Posted by StaR. View Post
    Also surely it should be:-
    Code:
    if itemcount('mana potion') < 20 and cap < 40 then
       gotolabel('Refill')
    end
    At the moment you telling it if there is less than 20 mana potions and less than 40 cap then go to hunt where it should be go to refill.
    Thanks i changed it to that trying to see if that would somehow work and forgot to change it back lol

Posting Permissions

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