Results 1 to 3 of 3

Thread: Need action when i have 10 medicine pounch leave hunt

  1. #1
    Normal User
    Join Date
    Sep 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Need action when i have 10 medicine pounch leave hunt

    As topic says need action when 10 medicine punch leave hunt

  2. #2
    Normal User
    Join Date
    Jul 2012
    Location
    California, USA
    Posts
    171
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    14
    Rep Power
    5
    in action list put

    if itemcount("medicine pouch") >= 10 then
    goto("leavehunt")
    end

    if hunting multiple floors you will have to add additional waypoints to guide the bot out at any given moment

    +rep if this helps

  3. #3
    Normal User
    Join Date
    Jul 2012
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    ^wont work because the action will keep spamming to go to "leavehunt", even if you are outside of the cave -- also "goto" function doesn't exist.

    There are multiple ways to do it, the 2 easier to explains and most functional are:

    First way is:
    Do a check (wpt action) at the end of your hunting route:
    PHP Code:
    if islocation(5) and itemcount('medicine pouch') < 10 then
       gotolabel
    ('xxxx') --// xxxx should be your the 1st wpt of your hunting route
    end 
    Problem with this type is that, even if you have 10 medicine pouch, it will only consider the check after you go through all the wpts

    Second way is:
    Make a persistent action
    PHP Code:
    if itemcount('medicine pouch') >= 10 and posz == X then --// X should be the Z of your hunting spot/exit
       
    gotolabel('xxxx') --// 'xxxx' should be the wpt that sends you to a refill/out of the cave
    end 
    And, also make an action wpt after the 'xxxx' wpt used above with
    PHP Code:
    if islocation(5then
       setsettings
    ("Settings\\Actions\\List\\xxx\\Enabled"'no') --// xxx should be the name of the action above
    end 
    Remember to make another wpt action after your refilling is done with
    PHP Code:
    setsettings("Settings\\Actions\\List\\xxx\\Enabled"'yes') --// xxx same as above 
    Last edited by Daewe; 10-03-2012 at 06:42 PM.

Posting Permissions

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