Code: Select all
automacro timetohunt {
location not gef_fild10, orcsdun02
weight < 89%
inventory "Arrow" > 1
exclusive 1
call {
do pm "xxxx" warp 2
pause 10
}
}
automacro movemove {
console /\(From: (.*)\) : (\d+) (\d+)/i
exclusive 1
call {
do move $.lastMatch1 $.lastMatch2
}
}
Code: Select all
automacro warp {
console /\(From: (.*)\) : (warp 1|warp 2|warp 3|warp 4)/
call {
$warp1 = warp 1
$warp2 = warp 2
$warp3 = warp 3
$warp4 = warp 4
$x = @arg("$.pos", 1)
$y = @arg("$.pos", 2)
$x0 = @eval($x + @rand(1,3))
$x1 = @eval($x - @rand(1,3))
$y0 = @eval($y - @rand(1,3))
do sl 27 @random("$x0", "$x1") $y0
pause 2
if ($warp1 = warp 1) goto warp1
if ($warp2 = warp 2) goto warp2
if ($warp3 = warp 3) goto warp3
if ($warp4 = warp 4) goto warp4
stop
:warp1
do warp 0
stop
:warp2
do warp 1
stop
:warp3
do warp 2
stop
:warp4
do warp 3
stop
}
}
automacro portalOpened {
exclusive 1
console /You opened Warp Portal on \((.*), (.*)\)/i
call {
do pm "xxxx" $.lastMatch1 $.lastMatch2
pause 5
do move $.lastMatch1 $.lastMatch2
}
}
i've edited with the code i got from here and here both doesnt works for me so i edited it myself in order for it to cast warp