Results 1 to 3 of 3

Thread: Underattack -> Gotolabel

  1. #1
    iBot User
    Join Date
    Feb 2013
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Underattack -> Gotolabel

    Hello, can someone help me with this?

    I was wondering if the bot will repeatdly continue to send the Char to the label "Run_To_Pz" if i use this action below, even after he was sent there for the first time and was already following the waypoints to the PZ or he'd just send the bot there once.

    if underattack ('p') then
    gotolabel ("Run_To_Pz")
    end

    In the case of the action repeatdly send the bot to that Label, could i just write the action like this? Would that work?

    if underattack ('p') then
    gotolabel ("Run_To_Pz")
    setsettings("Settings\\Actions\\List\\Run_To_Pz\\Enabled", 'no')
    end

    Thank you.

  2. #2
    Normal User Y4rR0's Avatar
    Join Date
    May 2012
    Location
    Warsaw, Poland
    Posts
    596
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    18 Post(s)
    Reputation
    87
    Rep Power
    6
    Yes, thats exactly how u should do it, just remember to put
    Lua Code:
    setsettings("Settings\\Actions\\List\\Run_To_Pz\\Enabled", 'yes')

    in some action in depot, so it will work again when you come back to spawn
    You can also add somethin like settargeting("off'), so bot will run straight to depot, ignoring monsters around.
    Last edited by Y4rR0; 11-28-2013 at 11:07 AM.

  3. #3
    iBot User
    Join Date
    Feb 2013
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Just how i thought, but setting targeting off would dangerous because i could get trapped. So what i did was this.

    setsettings("Settings\\Targeting\\Monsters\\.....\\OnlyIfTrappe d", 'yes')

    Thanks bro.

Posting Permissions

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