Thank All share!!!~
---
I try rewrite gamenikko's Macro.
This Macro's Master will not move to slave's position.
It always let Slave go to find Master.
If you like it,maybe you can test it and rewrite.
---
Code: Select all
#Master Macro
#######################################
########FIND SLAVE#####################
#######################################
#slave is lost
automacro findSlave {
pm /Where are you?/
call {
$slavemap = $.lastMatch1
$slavemapx = $.lastMatch2
$slavemapy = $.lastMatch3
$mymap = $.map
if ($slavemap == $mymap) goto findslave
do pm "$.lastpm" at $.map $.pos
stop
:findslave
do pm "$.lastpm" at $.map $.pos
}
}
#when slave is found
automacro clear {
pm /I found/
call {
do eval AI::clear("move", "route");
}
}
---
Code: Select all
#Slave Macro
################################
######FIND MASTER###############
################################
#find master
automacro findMaster {
timeout 4
console /I lost my master/
call {
$master = @config (followTarget)
do pm "$master" Where are you?
}
}
automacro findMaster2 {
timeout 4
console /Calculating route to find master/
call {
$master = @config (followTarget)
do pm "$master" Where are you?
}
}
#goto master
automacro gotoMaster {
pm /at (.*) (.*) (.*)/
call {
$pm = $.lastpm
if ($pm != $master) stop
do move $.lastMatch1 $.lastMatch2 $.lastMatch3
}
}
#when master is found
automacro foundMaster {
console /Found my master/
call {
do pm "$master" I found
}
}
PS
1.at "config.txt" the option followBot please set to 0
"followBot 0"
2.overallAuth.txt also not to set