首先這個是放在主人的 macro 的!
(記得要在 僕人 的 ./control/overallAuth.txt 裡面打上你的主人的名字
例子:
[你的打手/主人名字] 1
緣分注定.愛 1
########主人找跟隨#####################
automacro findSlave {
pm /x (.*) (.*) (.*)/
call {
$slavemap = $.lastMatch1
$slavemapx = $.lastMatch2
$slavemapy = $.lastMatch3
$mymap = $.map
if ($slavemap == $mymap) goto findslave
do pm "$.lastpm" x $.map $.pos
stop
:findslave
do pm "$.lastpm" x $.map $.pos
do move $slavemap $slavemapx $slavemapy
}
}
automacro clear {
pm /clear/
call {
do eval AI::clear("move", "route");
}
}
---------------------------------------------
這個是放在 僕人 的macro的
######跟隨找主人###############
automacro findMaster {
timeout 3
console /^我跟丟了主人/
call {
$master = @config (followTarget)
do pm "$master" x $.map $.pos
}
}
automacro findMaster2 {
timeout 3
console /^計算路徑以尋找主人/
call {
$master = @config (followTarget)
do pm "$master" x $.map $.pos
}
}
automacro gotoMaster {
pm /x (.*) (.*) (.*)/
call {
$pm = $.lastpm
if ($pm != $master) stop
do move $.lastMatch1 $.lastMatch2 $.lastMatch3
}
}
automacro foundMaster {
console /^找到我的主人了/
call {
do pm "$master" clear
}
}
没有评论:
发表评论