ive made something like that:
if (getplayerstat(j,'name')='IllusionLord: Armageddon') then
begin
if (getplayerstat(j,'active')=true) then
begin
WriteConsole(0, 'Lord Armageddon is there! Kill him for rewards!!!' , RGB(0,255,255));
end else
begin
command('/addbot2 Illusion Lord Armageddon');
WriteConsole(0, 'Lord Armageddon is there! Kill him for rewards!!!' , RGB(0,255,255));
end;
end;
but it works only when boss is active, but when boss is kicked this code is not adding another one... why?