i only added 3rd jobs here. feel free to add other job class.
Code: Select all
automacro SL {
console /\[dist=(.*)\] (.*) \((\d+)\): (.*)(Flag)(.*)$/
call {
$dist = $.lastMatch1
$name = $.lastMatch2
$id = $.lastMatch3
$msg = $.lastMatch5
$skill = @eval({Sura => 447, Genetic => 445, 'Glt. Cross' => 457, 'Sorcerer' => 449, 'Warlock' => 453, 'Maestro' => 455, 'Wanderer' => 455, 'Shadow Chaser' => 456, 'Mechanic' => 458, 'Ranger' => 460, 'Arch Bishop' => 454, 'Rune Knight' => 452, 'Royal Guard' => 450}->{$::players{$::playersID[$id]}->job})
if ($dist > 6) goto end
if ($msg = Flag) goto accessGo
goto end
:accessGo
do sp $skill $id
pause 2
stop
:end
stop
}
}
Code: Select all
$g = @eval (exists $::players{$::playersID[$id]}->{guild} ? $::players{$::playersID[$id]}->{guild}{name} : 'null')
Code: Select all
if ($msg = Flag) goto accessGo
Code: Select all
if ($g = Insert Guild Name Here) goto accessGo
Credits:
thanks to ever_boy_ and rocknroll for shortening the code. now it's just 1 automacro ^^
thanks to EternalHarvest for making it shorter.
EDIT:
added info for guild buffer