回復 1# 熊爸
automacro ntown {
location not morocc
#如location not 地圖名
#當不在xxx地圖時.......
delay 60
#不在上面的地圖後開始計算每60秒後
#執行下面的巨集
call nt
exclusive 1
run-once 1
}
macro nt {
$nowpos = $.pos
$nowposx = @arg ("$nowpos", 1)
$nowposy = @arg ("$nowpos", 2)
$newposx = @eval ($nowposx + @rand (-2, 2))
$newposy = @eval ($nowposy + @rand (-2, 2))
if ($newposx >= 293) goto d1
if ($newposy >= 293) goto d2
do move $newposx $newposy
release ntown
stop
:d1
$newposx1 = @eval ($newposx - 30)
do move $newposx1 $nowposy
release ntown
stop
:d2
$newposy1 = @eval ($newposy - 30)
do move $nowposx $newposy1
release ntown
stop
}
|