http://bbs.wgun.net/thread-399895-1-1.html
以下是從 樓上這網址的大大轉貼改出來的
可是我改的 都不會動?
也沒領東西
然後就在線上發呆
我哪裡改錯了嗎?
automacro op {
location prontera
timeout 7200
call {
pause 5
$a = @cartamount (地靈礦石)
$b = @invamount (地靈礦石)
$c = 988
#$c是指你總共要在手推車放多少地靈礦石,請自行更改
$d = 700
#$d是指你總共要在身上放多少地靈礦石(負重89%),請自行更改
if ($a = 0) goto open1
if ($b = 0) goto open2
do move 31 200
#開店座標,請自行更改
pause 2
do openshop
stop
:open1
if ($b = 0) goto open2
pause 2
do cart add @Inventory (地靈礦石) $c
pause 2
do move 31 200
#開店座標,請自行更改
pause 2
do openshop
stop
:open2
do closeshop
call storage
}
}
automacro op {
location prontera
timeout 7200
call {
pause 5
$a = @cartamount (土靈原石)
$b = @invamount (土靈原石)
$c = 100
#$c是指你總共要在手推車放多少土靈原石,請自行更改
$d = 50
#$d是指你總共要在身上放多少土靈原石(負重89%),請自行更改
if ($a = 0) goto open1
if ($b = 0) goto open2
do move 31 200
#開店座標,請自行更改
pause 2
do openshop
stop
:open1
if ($b = 0) goto open2
pause 2
do cart add @Inventory (土靈原石) $c
pause 2
do move 31 200
#開店座標,請自行更改
pause 2
do openshop
stop
:open2
do closeshop
call storage
}
}
#-----------開倉庫-------------
macro storage {
do move 29 207
# 卡姐座標
pause 2
do talknpc 29 207 c r1 n
pause 2
do storage gettocart @storage (地靈礦石) @eval(988 - @cartamount (地靈礦石))
#---988這個數值要跟$c的數字一樣
do storage get @storage (地靈礦石) @eval(700 - @invamount (地靈礦石))
#---5這個數值要跟$d的數字一樣
pause 2
do storage close
pause 2
do move 31 200
#開店座標,請自行更改
pause 2
do openshop
}
macro storage {
do move 29 207
# 卡姐座標
pause 2
do talknpc 29 207 c r1 n
pause 2
do storage gettocart @storage (土靈原石) @eval(100 - @cartamount (土靈原石))
#---100這個數值要跟$c的數字一樣
do storage get @storage (土靈原石) @eval(50 - @invamount (土靈原石))
#---5這個數值要跟$d的數字一樣
pause 2
do storage close
pause 2
do move 31 200
#開店座標,請自行更改
pause 2
do openshop
} |