# Не удаляйте эти строки, они нужны для корректной работы с UTF-8.
# Пишите ваши макросы в этом файле, ниже этих строк.
# Гайд по macro плагину:
# http://www.openkore.com/wiki/index.php/ … in_Russian

automacro Fcp {
pm "ФП плиз"
call buff
run-once 1
}
macro buff {
$id = @player ($.lastpm)
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})
$Fcp = 4008,4009,4010,4011,4012,4013,4014,4015,4016,4017,4018,4019,4020,4022,4047,4049
if ($jobID ~ $Fcp) 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 479 $id
goto stop
  :assassin
do sp 479 $id
goto stop
  :smith
do sp 479 $id
goto stop
  :paladin
do sp 479 $id
goto stop
  :sniper
do sp 479 $id
goto stop
  :professor
do sp 479 $id
goto stop
  :priest
do sp 479 $id
goto stop
  :champion
do sp 479 $id
goto stop
  :wizard
do sp 479 $id
goto stop
  :stalker
do sp 479 $id
goto stop
  :creator
do sp 479 $id
goto stop
  :clown
do sp 479 $id
goto stop
  :star
do sp 479 $id
goto stop
  :soul
do sp 479 $id
goto stop
  :snoob
do sp 479 $id
  :stop
release Fcp
}