# Не удаляйте эти строки, они нужны для корректной работы с UTF-8.
# Пишите ваши макросы в этом файле, ниже этих строк.
# Гайд по macro плагину:
# http://www.openkore.com/wiki/index.php/ … in_Russian
automacro spirit {
pubm "линк плиз"
call buff
run-once 1
}
macro buff {
$id = @player ($.lastpub)
if ($id = -1) goto stop
$g = @eval (exists $::players{$::playersID[$id]}->{guild} ? $::players{$::playersID[$id]}->{guild}{name} : 'null')
$guild = ГИЛЬДА
if ($g ~ $guild) goto ok
stop
:ok
$jobID = @eval ($::players{$::playersID[$id]}->{jobID})
$spirit = 4008,4009,4011,4013,4014,4015,4017,4018,4019,4020,4022,4047,4049
if ($jobID ~ $spirit) goto yes
goto stop
:yes
if ($jobID = 7) goto knight
if ($jobID = 13) goto knight
if ($jobID = 4008) goto knight
if ($jobID = 4014) goto knight
if ($jobID = 12) goto assassin
if ($jobID = 4013) goto assassin
if ($jobID = 10) goto smith
if ($jobID = 4011) goto smith
if ($jobID = 14) goto paladin
if ($jobID = 21) goto paladin
if ($jobID = 4015) goto paladin
if ($jobID = 4022) goto paladin
if ($jobID = 4012) goto sniper
if ($jobID = 11) goto sniper
if ($jobID = 16) goto professor
if ($jobID = 4017) goto professor
if ($jobID = 8) goto priest
if ($jobID = 4009) goto priest
if ($jobID = 15) goto champion
if ($jobID = 4016) goto champion
if ($jobID = 4010) goto wizard
if ($jobID = 4018) goto stalker
if ($jobID = 18) goto creator
if ($jobID = 4019) goto creator
if ($jobID = 4020) goto clown
if ($jobID = 4021) goto clown
if ($jobID = 19) goto clown
if ($jobID = 20) goto clown
if ($jobID = 4047) goto star
if ($jobID = 4049) goto soul
if ($jobID = 23) goto snoob
:knight
do sp 452 $id
goto stop
:assassin
do sp 457 $id
goto stop
:smith
do sp 458 $id
goto stop
:paladin
do sp 450 $id
goto stop
:sniper
do sp 460 $id
goto stop
:professor
do sp 449 $id
goto stop
:priest
do sp 454 $id
goto stop
:champion
do sp 447 $id
goto stop
:wizard
do sp 453 $id
goto stop
:stalker
do sp 456 $id
goto stop
:creator
do sp 445 $id
goto stop
:clown
do sp 455 $id
goto stop
:star
do sp 448 $id
goto stop
:soul
do sp 461 $id
goto stop
:snoob
do sp 451 $id
:stop
release spirit
}