macro buyfish {
$var1 = $.map
$var2 = $.pos
do move alberta 24 230
do talk @npc (28 229)
pause 2
do talk resp 1
pause 2
do move alberta 167 130
pause
do talk @npc (167 135)
pause 2
do store
:checkmoney
$money = $.zeny
if ( $money > 400000) goto dobuyfish
goto end
:dobuyfish
do buy @store (好吃的魚) 2000
pause 2
do storage add @inventory (好吃的魚) 2000
pause 2
if ( @storamount (好吃的魚) < 30000) goto checkmoney
:end
do storage gettocart @storage (好吃的魚) 4000
pause 2
do storage close
pause 2
do move prontera 33 204
do move $var1
do move $var2
}
macro openstorage {
$var1 = $.map
$var2 = $.pos
do move prontera 35 203 # 西門卡姐,可以改成其他門的卡姐
pause 2
do talk @npc (29 207)
pause 2
do talk resp 1
pause 2
if (@storage (好吃的魚) == -1) goto cbuyfish
do storage gettocart @storage (好吃的魚) 4000
pause 4
do storage close
goto end
:cbuyfish
call buyfish
:end
pause 2
do move $var1 $var2
pause 2
do openshop
}
automacro checkshop {
location prontera
console /露店已關閉(.*)/
call openstorage
}
automacro checkopenshop {
location prontera 左上x 左上y 右下x 右下y
#限制掛店的範圍內才觸發 自己改成想要掛賣的地方,範圍是 左上角,右下角
console /Not allowed other player view Equipment(.*)/
delay 10
call openstorage
}
|