A simple auto buff for guild member
automacro buff {
console /\[(jarak|dist)=(.*)\] (.*) \((\d+)\): (\*Flag\s\d\*|buff)$/
exclusive 1
run-once 1
call {
$distance = $.lastMatch2
$namaPlayer = $.lastMatch3
$playerID = $.lastMatch4
$playerguild = @eval (exists $::players{$::playersID[$playerID]}->{guild} ? $::players{$::playersID[$playerID]}->{guild}{name} : 'null')
$guild1 = ENTER YOUR GUILD NAME HERE
if ($playerguild == $guild1) goto accept
goto other
:accept
if ($distance > 8) goto far
do c Please wait currently buffing $namaPlayer
#skill blessing
do sp 34 $playerID 10
#skill increase agi
pause 1
do sp 29 $playerID 10
pause 1
goto end
:far
do c $namaPlayer You're too far, please come closer
goto end
:other
do c Sory you're not member of $guild1
:end
release buff
}
}
This macro was originally written in bahasa, You might need to adjust some lines and can be modify as much as you need, be creative.