請問一下 我的防呆巨集與回村巨集偶爾會互咬 該怎麼修改
automacro smove {
location ve_fild03
sp > 300
hp > 1000
call sm
timeout 15
exclusive 1
}
macro sm {
$t++
log times $t
if ($t == 1) goto tsmp
if ($t == 2) goto tsmp1
stop
:tsmp
call smp
stop
:tsmp1
call smp1
stop
}
macro smp {
$nopos = $.pos
$noposx = @arg ("$nopos", 1)
$noposy = @arg ("$nopos", 2)
}
macro smp1 {
$nopos = $.pos
$noposx1 = @arg ("$nopos", 1)
$noposy1 = @arg ("$nopos", 2)
log old $noposx $noposy new $noposx1 $noposy1 times $t
if ($noposx == $noposx1 && $noposy == $noposy1) goto dm
release smove
$t = 0
stop
:dm
do conf teleportAuto_hp 20
do conf teleportAuto_portal 1
do conf teleportAuto_idle 1
do conf route_randomWalk 1
do conf attackAuto 2
do tele
release smove
$t = 0
stop
}
macro ti {
$t = 0
}
automacro tini {
location ve_fild03
sp > 300
hp > 1000
run-once 1
call ti
}
automacro autoWarp {
sp > 300
location ra_in01 358 130
inventory "藍色魔力礦石" > 1
run-once 1
call {
do conf teleportAuto_hp 20
do conf teleportAuto_portal 1
do conf teleportAuto_idle 1
do conf route_randomWalk 1
do conf attackAuto 2
pause 1
$x = @arg("$.pos", 1)
$y = @arg("$.pos", 2)
$y2 = @eval($y - 2)
do sl 27 $x $y2
pause 2
do warp ve_fild03
pause 2
do move $x $y2
pause 2
release all
}
}
automacro kk {
location ve_fild03
sp < 300
hp > 1000
aggressives > 0
run-once 1
call {
do conf teleportAuto_hp 0
do conf teleportAuto_portal 0
do conf teleportAuto_idle 0
do conf route_randomWalk 0
do conf attackAuto 0
do tele
pause 10
release all
}
}
automacro jj {
location ve_fild03
sp > 300
hp < 1000
aggressives > 0
run-once 1
call {
do conf teleportAuto_hp 0
do conf teleportAuto_portal 0
do conf teleportAuto_idle 0
do conf route_randomWalk 0
do conf attackAuto 0
do tele
pause 10
release all
}
}
automacro zz {
location ve_fild03
sp < 300
hp < 1000
aggressives > 0
run-once 1
call {
do conf teleportAuto_hp 0
do conf teleportAuto_portal 0
do conf teleportAuto_idle 0
do conf route_randomWalk 0
do conf attackAuto 0
do tele
pause 10
release all
}
}
automacro ButterflyWing {
location ve_fild03
sp < 300
hp > 1000
aggressives = 0
run-once 1
call {
pause 1
do conf teleportAuto_hp 0
do conf teleportAuto_portal 0
do conf teleportAuto_idle 0
do conf route_randomWalk 0
do conf attackAuto 0
pause 2
do tele 2
pause 2
release all
}
}
automacro ButterflyWing2 {
location ve_fild03
sp > 300
hp < 1000
aggressives = 0
run-once 1
call {
pause 1
do conf teleportAuto_hp 0
do conf teleportAuto_portal 0
do conf teleportAuto_idle 0
do conf route_randomWalk 0
do conf attackAuto 0
pause 2
do tele 2
pause 2
release all
}
}
automacro ButterflyWing3 {
location ve_fild03
sp < 300
hp < 1000
aggressives = 0
run-once 1
call {
pause 1
do conf teleportAuto_hp 0
do conf teleportAuto_portal 0
do conf teleportAuto_idle 0
do conf route_randomWalk 0
do conf attackAuto 0
pause 2
do tele 2
pause 2
release all
}
}
automacro ButterflyWing4 {
location not ra_in01
location not ve_fild03
location not rachel
run-once 1
call {
pause 1
do conf teleportAuto_hp 0
do conf teleportAuto_portal 0
do conf teleportAuto_idle 0
do conf route_randomWalk 0
do conf attackAuto 0
pause 1
$x = @arg("$.pos", 1)
$y = @arg("$.pos", 2)
$y2 = @eval($y - 2)
do sl 27 $x $y2
pause 2
do warp ve_fild03
pause 2
do move $x $y2
pause 2
release all
}
}
automacro talknpc {
sp < 300
location ra_in01
run-once 1
call {
do move 376 60
do talknpc 376 69 c r1 n
release all
}
}
automacro bbb {
console /倉庫資訊已記錄/
inventory "藍色魔力礦石" > 1
run-once 1
call {
do move 117 138
pause 1
$x = @arg("$.pos", 1)
$y = @arg("$.pos", 2)
$y2 = @eval($y - 2)
do sl 27 $x $y2
pause 2
do warp ve_fild03
pause 2
do move $x $y2
pause 2
release all
}
} |