#automacro buffAndWarp {
console /\[dist=(.*)\] (.*) \((\d+)\): (assum|heal|atk|suff|angelus|sr|cure|ab|buff|ky)$/i
sp >= 70
priority 0
class priest
exclusive 1
call checkMsg
}
macro checkMsg {
$dist = $.lastMatch1
if ($dist > 6) stop
$name = $.lastMatch2
$i = $.lastMatch3
$g = @eval (exists $::players{$::playersID[$i]}->{guild} ? $::players{$::playersID[$i]}->{guild}{name} : 'null')
if ($g == XXXXXXXXXXXXXXXX) goto accessGranted
goto end
:accessGranted
$msg = $.lastMatch4
$posx = @rand (2, 3, 4, 5)
$posy = @rand (2, 3, 4, 5)
$cellIsFull = 0
do eval $::Macro::Data::varStack{cellIsFull} = 0;foreach (@{$::playersList->getItems()}) { next if (($_->{pos_to}{x} != $posx) || ($_->{pos_to}{y} != $posy));$::Macro::Data::varStack{cellIsFull} = 1; last;}
if ($cellIsFull == 1) goto accessGranted
$x = @arg ("$.pos", 1)
$y = @arg ("$.pos", 2)
$evalx = @eval ($x + $posx)
$evaly = @eval ($y + $posy)
if ($msg == assum) goto assum
if ($msg == heal) goto heal
if ($msg == ky) goto ky
if ($msg == atk) goto atk
if ($msg == suff) goto suff
if ($msg == angelus) goto angelus
if ($msg == sr) goto sr
if ($msg == cure) goto cure
if ($msg == buff) goto agiBless
if ($msg == ab) goto agiBless
goto end
:heal
do sp 28 $i 10
pause 0.5
do sp 28 $i 10
pause 0.5
do sp 28 $i 10
pause 0.5
do sp 28 $i 10
stop
:assum
do sp 361 $i 10
stop
:agiBless
do sp 34 $i 10
pause 1
do sp 29 $i 10
stop
:ky
do sp 73 $i 10
stop
:atk
do sp 66 $i 10
stop
:sr
do sp 72 $i 10
stop
:suff
do sp 67 $i 10
stop
:angelus
do ss 33
stop
:cure
do sp 35 $i 10
put ur guild name at those XXXXXXXXXXXXXXXXX there then can buff i think