Results 1 to 9 of 9

Thread: Issue with reconnect action

  1. #1
    iBot User
    Join Date
    Dec 2012
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    4

    Question Issue with reconnect action

    I'm using the following reconnect action:

    Code:
    local acc = "account number"
    local pass = "password"
    local CharToLogin = "character name"
     
    if(connected == false) then
         wait(1000,2000)
         connect(acc,pass,CharToLogin)
         wait(1000,5000)
    end
    The problem is: Whenever it reconnects, it doesnt open backpacks, and if he reconnects after the server save, the bot always get stuck.

    I do have an action to open backpacks:

    Code:
    if (windowcount() < 3) then 
            closewindows() 
            wait(500, 1000) 
            openitem(MainBP, 'back') 
            wait(500, 1000) 
            resizewindows()  
            wait(500, 1000) 
            openitem(LootBP, MainBP, true) 
            wait(500, 1000) 
            resizewindows()  
            openitem(GoldBP, MainBP, true) 
            wait(500, 1000) 
            resizewindows()  
    end
    But if i turn it on, it gets bugged when my character goes depot to refill, because the script closes some backpacks to deposit items and stuff, and the action above makes the bot stop working properly.

    So my question is: Is it possible to make an action to turn on/off another action? i was thinking in something like: "if character is not on depot, then turn 'backpack opener action' on if not, turn 'backpack opener action' off.

    or even...

    If character is into cave then turn 'backpack opener action' on, if not, turn 'backpack opener action' off.

    Is it possible?

    Anyone have an action like this?
    Anyone can make it?

    Thanks!!!

  2. #2
    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
    make and wpt action before part in city and put

    PHP Code:
    setsettings("Settings\\Actions\\List\\ACTIONNAME\\Enabled""no"
    and before hunt loop

    PHP Code:
    setsettings("Settings\\Actions\\List\\ACTIONNAME\\Enabled""yes"

  3. #3
    iBot User
    Join Date
    Dec 2012
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    4
    Quote Originally Posted by shanp View Post
    make and wpt action before part in city and put

    PHP Code:
    setsettings("Settings\\Actions\\List\\ACTIONNAME\\Enabled""no"
    and before hunt loop

    PHP Code:
    setsettings("Settings\\Actions\\List\\ACTIONNAME\\Enabled""yes"
    I'm kinda noob editing these things... if i send you the script, can you do it for me?

  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
    if its only depositing problem put setset.."no" in action with depositing ( but before reopen bps there) and with "yes" after depositing

  5. #5
    iBot User
    Join Date
    Dec 2012
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    4
    The problem is that when he goes deposit items the script needs to close some backpacks and if I have the external action to reopen backpacks on, the bot can't deposit items because the script closes the bps and the action reopens them, so he gets stuck.

    When u said to make a wpt action before the city part, am I supposed to place it as the first wpt? Because the script starts at depot...

    And then should I place the second wpt action (activating the backpack opener) when he goes to the hunting ground?

    Sorry so many questions, but I'm new on these things but I want to learn :d

  6. #6
    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
    Quote Originally Posted by diegokst View Post
    When u said to make a wpt action before the city part, am I supposed to place it as the first wpt? Because the script starts at depot...
    turining off put it in wpt action with depositing as 1st line

    Quote Originally Posted by diegokst View Post
    And then should I place the second wpt action (activating the backpack opener) when he goes to the hunting ground?
    exacly, or on way from city to hunt

  7. #7
    iBot User
    Join Date
    Dec 2012
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    4
    Ok. I will try it and I'll give you feedback

    Thank you in advance!

  8. #8
    iBot User
    Join Date
    Dec 2012
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    4
    YEAH! it worked! not 100% tho, but i'm making some adjustments and think its gonna be ok.
    I'll wait for it to come back to depot to see if my changes will have effect

  9. #9
    iBot User
    Join Date
    Dec 2012
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    4
    Man, now it is working 100%! he does everything ok!
    Thank you for your help!

    Rep+

Posting Permissions

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