SitAuto, follow, and partyskill Heal

International

Moderator: Moderators

Scorpion
Noob
Noob
Posts: 5
Joined: 02 Jun 2009, 19:44
Noob?: No

SitAuto, follow, and partyskill Heal

#1 Post by Scorpion »

Hi again

I have problems with the 3 commands of my topic. I run 2 bots of which one is supposed to support the other. The healer is programmed to follow and use partyskill heal. The first problem is that sometimes the buffer doesn't heal. 90% of the time he heals but I guess sometimes he doesn't notice that the conditions to start healing are met and he won't heal anymore till the primary bot dies. I set the conditions for healing to be like this:

partySkill Heal {
lvl 3
target
target_hp < 90%
Sp > 10%

I monitored my bots for a while to figure out what went wrong. At first I thought that sometimes when a tree or something blocks the direct line between the two bots the skill can't be cast so I set the autofollow distances to 1. but even after that sometimes he just quits healing. Does anyone have an idea how to fix this?

Second problem is that when the primary bot dies he sits for hp even though I added the following lines:

autoMoveOnDeath 1
autoMoveOnDeath_x
autoMoveOnDeath_y
autoMoveOnDeath_map prt_sewb2

I think maybe it's a confilct with sitauto which is currently setup like this:

sitAuto_hp_lower 90
sitAuto_hp_upper 90
sitAuto_sp_lower 0
sitAuto_sp_upper 0
sitAuto_over_50 0
sitAuto_idle 1
sitAuto_look
sitAuto_look_from_wall

I guess sitauto takes priority over automoveondeath. but there's no option to only let the bot autosit on his lockmap which is also prt_sewb2. I want my bot to autosit in case the buffer has no more sp. I know that the follower can be ordered to sit when the master sits, but not the other way around I believe. So if the healing stops my bot will sit if he has enough damage.

This relates to the third problem with follow. When the master dies the slave will walk back to the respawn map of the master. But it only updates so many times. I guess that's why after entering the respawn map the slave also becomes idle because the master is sitting. After the slave enters the map it probably waits for the exact coordinates of the master, but he only sends them if he is actively moving around, so not when he's sitting. Does anybody know how to fix this?

If one of the bots would move there would be no problem.
Roots
Noob
Noob
Posts: 16
Joined: 05 Jun 2009, 03:11
Noob?: No

Re: SitAuto, follow, and partyskill Heal

#2 Post by Roots »

The only things I see that could possibly be wrong are
  • Your "Sp" in your partySkill block should be lowercase "sp"
  • Your sitAuto_hp_lower probably shouldn't be the same number as your sitAuto_hp_upper. Try setting lower to 80 or 70. Though I could be wrong with this. At least try setting lower to 89
  • Also, a suggestion, try setting your autoMoveOnDeath_x and autoMoveOnDeath_y to coordinates like 5 squares from the warp at prt_sewb2 and test it out again
autoMoveOnDeath has always worked for me, but I've always used x and y coordinates.

As for this:
After the slave enters the map it probably waits for the exact coordinates of the master, but he only sends them if he is actively moving around, so not when he's sitting. Does anybody know how to fix this?
You need to set your slave config to have "followBot 1". Then when you log in the master type in the console "auth [slaves name] 1" to authorize chat commands. Even better, you could use the macro plugin and have it automatically auth your slave when it logs in.

As for it not healing sometimes... I really don't know what's going on there. Perhaps it could also be solved with a macro for your master bot. Something like

Code: Select all

automacro autoNeedHeal {
     hp < 50%
     call {
          do pm [slave] heal [your characters max hp]
     }
}
Scorpion
Noob
Noob
Posts: 5
Joined: 02 Jun 2009, 19:44
Noob?: No

Re: SitAuto, follow, and partyskill Heal

#3 Post by Scorpion »

yay a reply, thank you

My bot didn't die anymore last night, so I probably won't run into these problems again until I move to a more difficult map. My master bot survives the time that the slave doesn't heal.

I editted the 3 points you mentioned. followbot 1 was already turned on. The slave and master were pming each other coordinates.

I'll keep a close eye on my bots and will use the last option you mentioned as an ace if the first changes don't make a difference.

thanks again
Roots
Noob
Noob
Posts: 16
Joined: 05 Jun 2009, 03:11
Noob?: No

Re: SitAuto, follow, and partyskill Heal

#4 Post by Roots »

I'm glad it's working. If you experience problems at later levels or different maps then post your problems and I'll see if I can't help you out.
Scorpion
Noob
Noob
Posts: 5
Joined: 02 Jun 2009, 19:44
Noob?: No

Re: SitAuto, follow, and partyskill Heal

#5 Post by Scorpion »

I moved to another field now. Automoveondeath is working. I also made the simplest automacro to authorize commands, below is my slave's macros.txt

Code: Select all

automacro respawn {
   map moc_fild20
   sp > 100
   call {
   do respawn
   }
   timeout 10
}

automacro Auth {
      call {
   do auth Master 1
   }
   timeout 1800
}
I didn't know what condition to set for every time when you log in, and I don't know yet how to make conditions based on text appearing in the console so I left it open and that works. it always triggers. I added a half hour delay. I don't think it's bad to see some text every 30 min.

when the master dies the slave ends up in the satan morroc field sometimes even though I added route weight 10000 to moc_fild20. I guess maybe the names of the fields that previously were behind portals that lead to field 20 now should be added to routeweight. I also made a macro to teleport lvl 2 if he ends up on that field anyways and it works.

The autoneedheal macro also works, but the problem with the slave not healing still occurs. One time hp was below 90% and the slave refused to do his regular heal command. when hp went below 50% the automacro triggered but the slave still didn't listen to his master. he was standing right beside him. luckily the master survived the monster and went in autosit. At that time I didn't have the authorization commands on yet. when I put it on the aco started healing, but I also was on autosit max hp and started walking so I don't know for sure which of the 2 factors was the cause.

Even after the authorization macro the slave didn't heal always. I still died sometimes because the slave didn't heal. One time I caught the slave standing out of range of the master.

Maybe this is a common error but nobody has problems with it because it's only dangerous when you can't beat 1 monster on your own. If the slave doesn't heal it will heal at the next monster though.
chrisysn
Noob
Noob
Posts: 1
Joined: 01 Jul 2009, 03:15
Noob?: Yes

Re: SitAuto, follow, and partyskill Heal

#6 Post by chrisysn »

hi
i have a small problem here..
my support aco has a party with my mage.. it heals m buff's my mage... but it also heals other players in the game.. why is it so.. can someone please help me
regards
SHJordan
Noob
Noob
Posts: 2
Joined: 11 Apr 2011, 01:32
Noob?: Yes
Location: Juazeiro - BA, Brazil

Re: SitAuto, follow, and partyskill Heal

#7 Post by SHJordan »

I think you need to specify the target and target hp condition...

I have another question regarding sitauto... I have a Swordman, who is the killer, but, my acolyte runs out of mana times to times... I wish to know if it's possible to make my swordman SIT when my acolyte sp is lower then 30% and up when it is 70% or more again.