x大~
爬文看你幫人解答"補師跟隨打手練功傳送回村和到練功地圖,還有打手自動存倉"的巨集
於是我也抓來用
原本是用密頻觸發,我改為隊頻觸發 (不知修改的對不對)
(補師部份)此部份我先打手以手動在隊頻打'回城'或'出發',無法成功觸發
#補師跟隨打手練功傳送回村和到練功地圖,還有打手自動存倉
補師部份:
automacro pm1 {
party /回城/
player 打手id, 10
inventory "藍色魔力礦石" > 0
overrideAI 1
exclusive 1
run-once 1
call home
}
macro home {
$z = @invamount(藍色魔力礦石)
$x = @arg("$.pos", 1)
$y = @arg("$.pos", 2)
$x0 = @eval($x - @random("2", "-2"))
$y0 = @eval($y - @random("2", "-2"))
do sl 27 $x0 $y0 4
pause 1
do warp rachel
#儲存地圖
pause 1
if ($z = @invamount(藍色魔力礦石)) goto retry
do party 打手id move $x0 $y0
pause 5
do move $x0 $y0
pause 2
release pm1
stop
:retry
call home
}
automacro pm2 {
party /出發/
player 打手id, 10
inventory "藍色魔力礦石" > 0
overrideAI 1
exclusive 1
run-once 1
call go
}
macro go {
$z = @invamount(藍色魔力礦石)
$x = @arg("$.pos", 1)
$y = @arg("$.pos", 2)
$x0 = @eval($x - @random("2", "-2"))
$y0 = @eval($y - @random("2", "-2"))
do sl 27 $x0 $y0 4
pause 1
do warp ra_fild12
#要練功的地圖
pause 1
if ($z = @invamount(藍色魔力礦石)) goto retry
do party 打手id move $x0 $y0
pause 5
do move $x0 $y0
pause 2
release pm2
stop
:retry
call go
}
出現錯誤訊息如下:
[隊伍] 打手id : 回城
match: wrong # of arguments (打手id) ()
[隊伍] 打手id : 出發
match: wrong # of arguments (打手id) ()
另外,改為隊頻觸發的話,打手部份要修改什麼嗎?
#補師跟隨打手練功傳送回村和到練功地圖,還有打手自動存倉
打手部份:
automacro home {
console /自動存倉/
player 補師id, 10
overrideAI 1
exclusive 1
run-once 1
call {
do conf route_randomWalk 0
do reload config
pause 1
do party 補師id 回城
release home
}
}
automacro go {
console /倉庫已關閉./
player 補師id, 10
overrideAI 1
exclusive 1
run-once 1
call {
do conf route_randomWalk 0
do reload config
pause 1
do party 補師id 出發
release go
}
}
automacro pm {
party /move (.*) (.*)/
player 補師id, 10
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
}
} |
|