- Рег
- 11 Дек 2015
- Сообщения
- 51
- Реакции
- 0
Оповещение о окончании действия умения иногда приходят с неверным ником, или совсем без него.
Код:
uses SysUtils,Classes;
procedure skilluse;
var
eu,char2:tl2char;
obj,obj1,cast:tl2effect;
i,j,g,pis,pis2:integer;
function proxy : boolean;
begin
result:=false;
for i := 0 to CharList.count -1 do begin
Char2 := CharList.Items(i);
//апетит готово
if (char2.cast.endtime>0) and (char2.cast.id=1476) and not (char2.dead) and not (char2.ismember) and not (char2.clanid=user.clanid)
then begin
delay(500);
//engine.say(' apetit ' + char2.name ,2,user.name);
engine.entertext('#' + ' ' + char2.name + ' used [Appetite for Destruction] ON');
delay(30000);
//engine.say('apetit off ' , 2 , user.name);break
engine.entertext('#' + ' ' + char2.name + ' [Appetite for Destruction] OFF');
end;
if (char2.cast.endtime>0) and (char2.cast.id=1478) and not (char2.dead) and not (char2.ismember) and not (char2.clanid=user.clanid)
then begin
delay(500);
//engine.say(' apetit ' + char2.name ,2,user.name);
engine.entertext('#' + ' ' + char2.name + ' used [Protection Instinct] ON');
delay(30000);
//engine.say('apetit off ' , 2 , user.name);break
engine.entertext('#' + ' ' + char2.name + ' [Protection Instinct] OFF');
end;
//Шилка (готово)
if (char2.cast.endtime>0) and (char2.cast.id=789) and not (char2.ismember) and not (char2.clanid=user.clanid) then begin
delay(500);
//engine.say('WILKU UZAET -> ' +char2.name,2,user.name);
engine.entertext('#' + ' ' + char2.name + ' used [Spirit of Shilen] (Шилка) ON');
delay(59000);
//engine.say('wilka off' ,2 , user.name);break
engine.entertext('#' + ' ' + char2.name + ' [Spirit of Shilen] (Шилка) OFF');
end;
//икона готово
if (char2.cast.endtime>0) and (char2.cast.id=785) and not (char2.ismember) and not (char2.clanid=user.clanid) then begin
delay(500);
//engine.say('WILKU UZAET -> ' +char2.name,2,user.name);
engine.entertext('#' + ' ' + char2.name + ' used [Flame Archon] (Икона) ON');
delay(59000);
//engine.say('wilka off' ,2 , user.name);break
engine.entertext('#' + ' ' + char2.name + ' [Flame Archon] (Икона) OFF');
end;
if (char2.cast.endtime>0) and (char2.cast.id=1532) and not (char2.dead) and not (char2.ismember) and not (char2.clanid=user.clanid)
then begin
//engine.say('Prosvet ->' + char2.name , 2 , user.name);
engine.entertext('#' + ' ' + char2.name + ' used [Enlightenment] ON');
delay(20000);
//engine.say('Prosvet off -->> ' + char2.name , 2 ,user.name ) ;break
engine.entertext('#' + ' ' + char2.name + ' [Enlightenment] OFF');
end;
if (char2.cast.endtime>0) and (char2.cast.id=1470) and not (char2.dead) and not (char2.ismember) and not (char2.clanid=user.clanid)
then begin
engine.entertext('#' + ' ' + char2.name + ' used [Prahnah] ON');
delay(59000);
engine.entertext('#' + ' ' + char2.name + ' [Prahnah] OFF');
end;
if (char2.cast.endtime>0) and (char2.cast.id=528) and not (char2.dead) and not (char2.ismember) and not (char2.clanid=user.clanid)
then begin
engine.entertext('#' + ' ' + char2.name + ' used [Shield of Faith] (Пати УД) ON');
delay(29000);
engine.entertext('#' + ' ' + char2.name + ' [Shield of Faith] (Пати УД) OFF');
end;
end;
result:=true;
end;
begin
while engine.status = lsonline do begin
if proxy then delay(1);
Delay(1);
end;
end;
begin
script.newthread(@skilluse);
delay(100)
end.