爬了許多文章
經過多次修改後 總算能用了
在此分享給大家用用看 如果無法使用在跟我說
打手部分:
automacro home {
console /自動存倉/
map 練功地圖
overrideAI 1
exclusive 1
run-once 1
call {
do conf route_randomWalk 0
do reload config
pause 1
do pm 補師ID 回城
release home
}
}
##automacro go {
console /倉庫已關閉/
map 儲存地圖
overrideAI 1
run-once 1
call {
do conf route_randomWalk 0
pause 1
do pm 補師ID 出發
release go
}
}
automacro pm {
pm /move (.*) (.*)/
overrideAI 1
exclusive 1
run-once 1
call {
pause 1
do move $.lastMatch1 $.lastMatch2
pause 2
do conf route_randomWalk 2
do reload config
release pm
}
}
再去 control資料夾內 找到overallAuth
打上 補師ID 1
補師部份:
automacro pm1 {
pm /回城/
inventory "藍色魔力礦石" > 0
overrideAI 1
exclusive 1
run-once 1
call home
}
macro home {
$x = @arg("$.pos", 1)
$y = @arg("$.pos", 2)
$x0 = @eval($x - @random("1", "-1"))
$y0 = @eval($y - @random("1", "-1"))
do sl 27 $x0 $y0
pause 1
do warp 儲存地圖
pause 1
if (@invamount(藍色魔力礦石) == 0) goto outOfBlueGemStone
do pm 打手ID move $x0 $y0
pause 5
do move $x0 $y0
pause 2
release pm1
stop
:retry
call home
}
automacro pm2 {
pm /出發/
inventory "藍色魔力礦石" > 0
overrideAI 1
exclusive 1
run-once 1
call go
}
macro go {
$x = @arg("$.pos", 1)
$y = @arg("$.pos", 2)
$x0 = @eval($x - @random("1", "-1"))
$y0 = @eval($y - @random("1", "-1"))
do sl 27 $x0 $y0
pause 1
do warp 練工地點名稱
pause 1
if (@invamount(藍色魔力礦石) == 0) goto outOfBlueGemStone
do pm 打手ID move $x0 $y0
pause 5
do move $x0 $y0
pause 2
release pm2
stop
:retry
call go
}
再去 control資料夾內 找到overallAuth
|