這是從月光抓下來的腳本,不過上面說這巨集是半自動的。我也測試過了,當身上有材料時就會自己做,不過我打marco start 這個指令時,巨集一直無法開始,不知道是哪裡有錯還是OP的問題,只有一次打marco start OP有允許過。 希望板大可以幫忙找出可以開始的指令!!
macro start {
# config 檔設定
do conf autoTalkCont 0
do conf storageAuto 0
do conf sellAuto 0
$productAmount = @invamount(火煙瓶)
# 移動到吉分做存取倉庫的動作
do move 120 62 geffen
pause 1
do talk @npc (327 108)
pause 1
do talk cont
pause 1
do talk resp 1
pause 2
if ($productAmount == 0) goto jump
do storage add @inventory(火煙瓶) @invamount(火煙瓶)
pause 1
:jump
do storage get @storage(藥缽) @eval(300 - @invamount(藥缽))
pause 1
do storage get @storage(空瓶) @eval(300 - @invamount(空瓶))
pause 1
do storage get @storage(酒精) @eval(300 - @invamount(酒精))
pause 1
do storage get @storage(透明之布) @eval(300 - @invamount(透明之布))
pause 1
$medicineBowls = @storamount(藥缽)
$emptyPotionBOTtles = @storamount(空瓶)
$blueHerbs = @storamount(酒精)
$scells = @storamount(透明之布)
do p 藥缽尚餘 $medicineBowls 個
do p 空瓶尚餘 $emptyPotionBottles 個
do p 酒精尚餘 $blueHerbs 個
do p 透明之布尚餘 $scells 個
do p 火煙瓶庫存 @storamount(火煙瓶) 個
pause 1
do storage close
pause 1
release all
pause 1
# 移動到位置觸發點,需與 automacro create 的 location 設的座標點相同
do move 116 66 geffen
}
automacro initiate {
# sp 快沒了會先恢復到 98% 才會再繼續做藥水
sp > 98%
inventory "藥缽" = 0
inventory "空瓶" = 0
inventory "酒精" = 0
inventory "透明之布" = 0
inventory "火煙瓶製作說明書" = 1
var medicineBowls > 180
var emptyPotionBottles > 180
var blueHerbs > 180
var scells > 180
call start
run-once 1
}
automacro create {
## 位置觸發點,需與 macro start 最後一行設的座標點相同
location geffen 116 66
sp > 20
inventory "藥缽" >= 1
inventory "空瓶" >= 1
inventory "酒精" >= 1
inventory "透明之布" >= 1
inventory "火煙瓶製作說明書" = 1
call pharmacy
run-once 1
}
macro pharmacy {
do ss 228 10
do send 8E 01 DF 1B 00 00 00 00 00 00
release create
} |