下面是我用的腳本,他一偵測到身上沒毒水藍箱就會回倉庫拿,然後放車子,身上也會放,我設定身上放200毒水 50藍箱,可是!!!他拿完關掉倉庫就把我的毒水丟掉,藍箱不會丟,以前就這樣不見大概20幾e的毒水了,我現在才發現他會丟....這是哪邊有問題??? 我改成身上放2瓶 也還是會丟,偏偏藍箱都沒事..
幫忙看一下...
---------------註解,下面開始執行-----------------
automacro op {
location prontera
timeout 7200
call {
pause 5
$a = @cartamount (毒藥瓶)
$b = @invamount (毒藥瓶)
$c = 300
#$c是指你總共要在手推車放多少毒藥瓶,請自行更改
$d = 50
#$d是指你總共要在身上放多少毒藥瓶(負重89%),請自行更改
$e = @cartamount (神秘箱子)
$f = @invamount (神秘箱子)
$g = 200
$h = 50
if ($a = 0) goto open1
if ($b = 0) goto open3
if ($e = 0) goto open2
if ($f = 0) goto open3
do move 158 75
#開店座標,請自行更改
pause 2
do openshop
stop
:open1
if ($b = 0) goto open2
pause 2
do cart add @Inventory (毒藥瓶) $c
pause 2
do move 158 75
#開店座標,請自行更改
pause 2
do openshop
stop
:open2
if ($b = 0) goto open2
pause 2
do cart add @Inventory (神秘箱子) $c
pause 2
do move 158 75
#開店座標,請自行更改
pause 2
do openshop
stop
:open3
do closeshop
call storage
}
}
#-----------開倉庫-------------
macro storage {
do move 148 30
# 卡姐座標
pause 2
do talknpc 151 29 c r1 n
pause 2
do storage gettocart @storage (毒藥瓶) @eval(300 - @cartamount (毒藥瓶))
do storage gettocart @storage (神秘箱子) @eval(200 - @cartamount (神秘箱子))
#---500這個數值要跟$c的數字一樣
do storage get @storage (毒藥瓶) @eval(2 - @invamount (毒藥瓶))
do storage get @storage (神秘箱子) @eval(50 - @invamount (神秘箱子))
#---5這個數值要跟$d的數字一樣
pause 2
do storage close
pause 2
do move 158 75
#開店座標,請自行更改
pause 2
do openshop
} |