Results 1 to 5 of 5

Thread: Help with Action

  1. #1
    Normal User
    Join Date
    Dec 2013
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Help with Action

    Hello, so.. i need help to get this action working but only when the cavebot is between some waypoits like:
    From wpt 1 to wpt 30, the bot will check windowscount, then if some window been closed it will re-open all bps.. Thanks everybody.
    Last edited by m4th3u5; 01-25-2014 at 02:44 PM.

  2. #2
    Focus Group Targets's Avatar
    Join Date
    Nov 2013
    Location
    PoA - Brazil
    Posts
    456
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    48 Post(s)
    Reputation
    109
    Rep Power
    5
    you need create a action in this path(Settings/Actions/List) Create a New Action

    Lua Code:
     
    f windowcount() < X then
    pausewalking(40000)
     
    setsettings("Settings\\Cavebot\\Settings\\OpenNextBp", "no")
     
    if windowcount(Mainbpname) < 1 and maround(2) == 0 and not lootbodies
    then
    wait(500)
    openitem(Mainbpname, "back")
    wait(1000)
    resizewindows()
    wait(1000)
    end
     
    if windowcount(LootBp) < 1 and maround(2) == 0 and not lootbodies
    then
    wait(500)
    openitem(LootBp, Mainbpname, true)
    wait(1000)
    resizewindows()
    end
     
    if windowcount(GoldBp) < 1 and maround(2) == 0 and not lootbodies
    then
    wait(500)
    openitem(GoldBp, Mainbpname, true)
    wait(1000)
    resizewindows()
    end
     
    if windowcount(SupBp) < 1 and maround(2) == 0 and not lootbodies
    then
    wait(500)
    openitem(SupBp, Mainbpname, true)
    wait(1000)
    resizewindows()
    end
     
    setsettings("Settings\\Cavebot\\Settings\\OpenNextBp", "yes")
     
     
    wait(500)
    pausewalking(0)
    end



  3. #3
    Normal User
    Join Date
    Dec 2013
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Thanks for the reply TargetScripts but i don't think this would work for me.. I want an action that will only "act" if its between the waypoints i set.. like i said:
    from wpt 1 to wpt 30 it will consider checking.. if not between these wpts then do nothing.. thanks once again

  4. #4
    iBot User
    Join Date
    Aug 2012
    Posts
    805
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    180
    Rep Power
    7
    PHP Code:
    if (windowcount() < X) and (wpt.id >= 1) and (wpt.id <= 30then
    pausewalking
    (40000)
     
    setsettings("Settings\\Cavebot\\Settings\\OpenNextBp""no")
     
    if 
    windowcount(Mainbpname) < and maround(2) == and not lootbodies
    then
    wait
    (500)
    openitem(Mainbpname"back")
    wait(1000)
    resizewindows()
    wait(1000)
    end
     
    if windowcount(LootBp) < and maround(2) == and not lootbodies
    then
    wait
    (500)
    openitem(LootBpMainbpnametrue)
    wait(1000)
    resizewindows()
    end
     
    if windowcount(GoldBp) < and maround(2) == and not lootbodies
    then
    wait
    (500)
    openitem(GoldBpMainbpnametrue)
    wait(1000)
    resizewindows()
    end
     
    if windowcount(SupBp) < and maround(2) == and not lootbodies
    then
    wait
    (500)
    openitem(SupBpMainbpnametrue)
    wait(1000)
    resizewindows()
    end
     
    setsettings
    ("Settings\\Cavebot\\Settings\\OpenNextBp""yes")
     
     
    wait(500)
    pausewalking(0)
    end 
    try this
    Last edited by shanp; 01-25-2014 at 06:08 AM.

  5. #5
    Normal User
    Join Date
    Dec 2013
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Quote Originally Posted by shanp View Post
    PHP Code:
    if (windowcount() < X) and (wpt.id >= 1) and (wpt.id <= 30then
    pausewalking
    (40000)
     
    setsettings("Settings\\Cavebot\\Settings\\OpenNextBp""no")
     
    if 
    windowcount(Mainbpname) < and maround(2) == and not lootbodies
    then
    wait
    (500)
    openitem(Mainbpname"back")
    wait(1000)
    resizewindows()
    wait(1000)
    end
     
    if windowcount(LootBp) < and maround(2) == and not lootbodies
    then
    wait
    (500)
    openitem(LootBpMainbpnametrue)
    wait(1000)
    resizewindows()
    end
     
    if windowcount(GoldBp) < and maround(2) == and not lootbodies
    then
    wait
    (500)
    openitem(GoldBpMainbpnametrue)
    wait(1000)
    resizewindows()
    end
     
    if windowcount(SupBp) < and maround(2) == and not lootbodies
    then
    wait
    (500)
    openitem(SupBpMainbpnametrue)
    wait(1000)
    resizewindows()
    end
     
    setsettings
    ("Settings\\Cavebot\\Settings\\OpenNextBp""yes")
     
     
    wait(500)
    pausewalking(0)
    end 
    try this

    Thanks man, will try.

Posting Permissions

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