Results 1 to 5 of 5

Thread: Problem With Special Areas (Pictures Included)

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

    Exclamation Problem With Special Areas (Pictures Included)

    ***GREEN LINES ON MINIMAP IS WHERE I PUT THE SPECIAL AREAS THAT YOU SEE IN THE PICTURES HUD.***

    So im making my first script, all is going well. The scripting is done 100% but the only problem i have is my monster poofing if the bot happens to run a long way unable to kill the monster before it despawns. So for this i put in some safe areas. Some special areas i never want the bot to cross/cavebot/targeting and the others to not cross if targeting a certain monster in hopes that is will turn the opposite way and keep fighting. So here is what ive done. This is the one where i NEVER want the bot to cross while using cavebot or targetting.



    The white boxes is the special area hud where the bot should never cross. Hypothetically what i want it to do is enter the room, when it targets a behemoth, turn around, run west and then when it hits the second safe area run south back to the room that has already been cleared.



    When the bot runs the behemoth to the west here, instead of running north where it will poof i put a safe area where i expect it to IF TARGETING BEHEMOTH do not cross, instead run south, then east into the bottom room.

    SAFE AREA ACTION HOTKEY

    local MONSTERS = {'behemoth', 'demon skeleton', 'vampire', 'mummy', 'crypt shambler', 'bonebeast', 'stone golem', 'gargoyle', 'ghoul'}

    if posy > 32641 then
    setsettings('Settings\\CaveBot\\Pathfinding\\Speci alAreas\\NewArea0\\ConsideredBy','Target')
    for i = 1, #MONSTERS do
    setsettings('Settings\\Targeting\\Monsters\\'..MON STERS[i]..'\\ListSettings\\Setting0\\Stance','Keep Away')
    end
    end

    SAFE AREA TO NEVER CROSS WITH BOT OR WITH TARGETTING

    local MONSTERS = {'behemoth', 'demon skeleton', 'vampire', 'mummy', 'crypt shambler', 'bonebeast', 'stone golem', 'gargoyle', 'ghoul'}

    if posy < 32646 then
    setsettings('Settings\\CaveBot\\Pathfinding\\Speci alAreas\\NewArea1\\ConsideredBy','all')
    for i = 1, #MONSTERS do
    setsettings('Settings\\Targeting\\Monsters\\'..MON STERS[i]..'\\ListSettings\\Setting0\\Stance','Keep Away')
    end
    end

    If you need anymore information please let me know. Any help is greatly appreciated. Thanks in advance!
    Last edited by Mataca; 06-17-2013 at 09:00 PM.

  2. #2
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Firstly, if you have a massive area like that screenshot, considered by all... if it happens to walk into it.. it will stop moving completely, since it will not be allowed to walk anywhere else...

    I suggest you never use consider by all unless it is a area smaller than 2x2 or hope you've put in an action to change it if you cross that line, so it can get back.

    I also dont see why you are standing your stance... wouldnt you keep away all the time anyway?

    Looks like mess. I dont see why you dont just kite the behe around the room its in, and put a special area over the exit of each room so it doesnt lure more. I'd say if you can bot a behe, you can handle the trash that spawns around it.

  3. #3
    Normal User xavizus's Avatar
    Join Date
    Jun 2013
    Location
    Japan
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    4
    I am not sure if I understand you correctly:

    You want the bot to run South (down) instead of North(Up), but instead the bot runs to East(right) back to the spawn or do your character run North(Up) anyways?

  4. #4
    Normal User
    Join Date
    Feb 2013
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    Quote Originally Posted by xavizus View Post
    I am not sure if I understand you correctly:

    You want the bot to run South (down) instead of North(Up), but instead the bot runs to East(right) back to the spawn or do your character run North(Up) anyways?
    Alright so the bot runs into the room, hits whatever monster is in there and depending on if theres another monster above the bot or below it determines where it runs. So it goes in the room, hits a behemoth and starts running west(back out of the room). When it hits the west hall it has 2 options, the bot can either run north or south. If the bot runs happens to run north, the behemoth will poof before it can kill it. If it runs south, then east into the lower room thats already been cleared, thats enough run time for the bot to kill it because it doesnt poof down there. If you see in my second picture, the red target boxes, thats where i want it to force the bot to run south. Instead it acts as if they aren't even there at all.
    Last edited by Mataca; 06-18-2013 at 02:47 PM.

  5. #5
    Normal User
    Join Date
    Feb 2013
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    bump

Posting Permissions

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