這是我參考各位大大的POST跟意見所改出來的巨集
可是我開分身交易時他會立刻按交易不放錢
請問哪邊要改呢?~還是有設定更方便的收物巨集能簡訊給我呢?
先感謝各位大大的回答了~謝謝
automacro asw {
console /You are ●嚴禁張貼廣告● in the game/
call {
if ($online = 1) goto out
$online = 1
pause 1
call start
pause 1
stop
:out
do quit
}
}
macro start {
$P1 = 10000
#收蜂蜜
$P2 = 10000
#收藍草
$no = 0
#交易次數
$dealout = 0
#亂小次數
do chat create "準備中..." 2 0 @eval($x - @rand(1000,9999))
call start1
}
macro start1 {
do chat modify "收蜂蜜($P1個),1個4000 1次1樣最多500個" 2 0 @eval($x - @rand(1000,9999))
log "收蜂蜜($P1箱)"
pause 1
do chat modify "收藍草($P2個),1個2000 1次1樣最多500個" 2 0 @eval($x - @rand(1000,9999))
log "收藍草($P2箱)"
pause 1
release all
call start1
}
automacro b {
console /Requests a Deal/
run-once 1
call {
$ax = 0
$bx = 0
$dealco = 0
$no = @eval($no + 1)
do conf logConsole 1
pause 1
do deal
pause 15
#15秒內不動作取消交易
log 來亂的人
$dealout = @eval($dealout + 1)
do deal no
}
}
automacro Deal1 {
console /added Item to Deal: 蜂蜜 x (.*)/
call {
if ($P1 = 0) goto stop1
[
$a = $.lastMatch1
$ax = @eval ($a * 4000)
$asd = 1
$dealco = @eval($dealco + $ax)
]
#藍水單價1000
call Deal15no
stop
:stop1
do deal no
call start1
}
}
automacro Deal2 {
console /added Item to Deal: 藍色藥草 x (.*)/
call {
if ($P2 = 0) goto stop2
[
$b = $.lastMatch1
$bx = @eval ($b * 2000)
$asd = 1
$dealco = @eval($dealco + $bx)
]
#白草單價500
call Deal15no
stop
:stop2
do deal no
call start1
}
}
automacro Dealok1 {
console /Item added to inventory: 蜂蜜(.*)x(.*)-(.*)/
call {
$P1 = @eval($P1 - $.lastMatch2)
release all
do conf logConsole 0
call start1
}
}
automacro Dealok2 {
console /Item added to inventory: 藍色藥草(.*)x(.*)-(.*)/
call {
$P2 = @eval($P2 - $.lastMatch2)
release all
do conf logConsole 0
call start1
}
}
##以下不用調整 ==============================================
automacro FinDeal {
console /(.*)finalized the Deal/
run-once 1
call {
if ($asd = 1) goto asa
pause 2
do deal no
do conf logConsole 0
release all
stop
:asa
$asd = 0
do deal add z $dealco
$dealco = 0
do deal
pause 1
do deal
pause 15
log 來亂的人
$dealout = @eval($dealout + 1)
do deal no
stop
}
}
macro Deal15no {
pause 10
if ($asd = 1) goto asa
pause 2
do deal no
do conf logConsole 0
release all
stop
:asa
$asd = 0
do deal add z $dealco
$dealco = 0
do deal
pause 1
do deal
pause 15
log 來亂的人
$dealout = @eval($dealout + 1)
do deal no
}
automacro Dealno {
console /(.*)Deal Cancelled/
run-once 1
call {
$asd = 0
do deal no
do conf logConsole 0
release all
call start1
}
}
automacro Dealok {
console /(.*)Deal Complete/
run-once 1
call {
do conf logConsole 0
call start1
}
} |
|