I'm hoping someone can help me with this. In the effort of trying to promote better communication between the master bot and the slave bot (in order that they stop acting so weird when things happen) I've been trying to put together what I think is a simple automacro; except for the fact that I can't seem to get certain aspects of it to trigger.
So here's the situation:
Master bot ports back to town to restock on pots; slave bot goes crazy saying "Lost my master!" and starts walking back to town. Master bot, having finished buying pots makes his way back to the lockmap and meets up with the slave about half way there and they both walk back to the lockMap together.
What I would like:
Master bot lets the slave bot know that he is going back for pots; slave bot changes his config settings to take a more aggressive approach (he has some survivability on his own) and stops being useless until the point in time that the master bot reappears on the map and they can join back up and have a good time.
So, first thing's first, in the Master config, I have this ol' thing:
Code: Select all
doCommand pm SlaveBot RESTOCKING POTIONS, YO. {
timeout 50
inInventory Red Potion <= 0
}
Then in the slave's macro.txt I have this:
Code: Select all
automacro sequenceRestocking1 {
console "(From MasterBot) : RESTOCKING POTIONS, YO."
call sequenceRestocking2
}
Code: Select all
macro sequenceRestocking2 {
do conf attackAuto 2
do conf follow 0
do conf lockMap $.map
do ai clear
stop
}
Then, back in the Master's macros.txt, I have this:
Code: Select all
automacro sequenceRestocking {
location @config lockMap
run-once 1
call {
do pm SlaveBot G2G
}
}
automacro sequenceRestocking2{
console "(To SlaveBot) : RESTOCKING POTIONS, YO."
call {
release sequenceRestocking
stop
}
}
Code: Select all
automacro sequenceRestocking3 {
console "(From MasterBot) : G2G"
call sequenceRestocking4
}
macro sequenceRestocking4 {
do conf attackAuto 1
do conf follow 1
do conf lockMap
do ai clear
stop
}
If anyone could just look over what I've done and help me find a footing, I would really appreciate it.
Thanks