Results 1 to 8 of 8

Thread: What's wrong with this action ?

  1. #1
    Normal User Hawkeye's Avatar
    Join Date
    May 2012
    Posts
    508
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    43
    Rep Power
    6

    What's wrong with this action ?

    if itemcount(237) > 45 or cap > 50 then
    gotolabel('Hunt')
    end

    I'd like to go dp when cap is lower than 50 and SMP lower than 45

    What's wrong ?

    Next wpt is the way to dp.
    Last edited by Hawkeye; 07-05-2012 at 07:21 PM.

  2. #2
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    use 'and' instead of 'or'

  3. #3
    Normal User Hawkeye's Avatar
    Join Date
    May 2012
    Posts
    508
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    43
    Rep Power
    6
    Changed it. Going to test it out. Thx for fast reply.

    Hmm.. I think that I explained it wrong.

    I'd like to go dp if I have SMP < 45
    or cap is lower than 50.

    So I think that I should use 'or' but it doesn't go dp if I even have 0 cap.
    Last edited by Hawkeye; 07-05-2012 at 07:27 PM.

  4. #4
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    PHP Code:
    if (itemcount("strong mana potion") < 45) or (cap 50then
         gotolabel
    ("Leave")
    else
         
    gotolabel("Hunt")
    end 

  5. #5
    Normal User
    Join Date
    Apr 2012
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    maybe use $cap

  6. #6
    Normal User Hawkeye's Avatar
    Join Date
    May 2012
    Posts
    508
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    43
    Rep Power
    6
    Quote Originally Posted by BUgWT View Post
    PHP Code:
    if (itemcount("strong mana potion") < 45) or (cap 50then
         gotolabel
    ("Leave")
    else
         
    gotolabel("Hunt")
    end 
    Used this one and died coz out of supplies so I suppose it's something wrong with that.

  7. #7
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    956 Post(s)
    Reputation
    586
    Rep Power
    10
    Everything is good with action, check your label names

  8. #8
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    Quote Originally Posted by Eli View Post
    Everything is good with action, check your label names
    This. This has to be the last thing I can think of

Posting Permissions

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