Hi all. I need a script that automatly give party to another character when the buffs are gone. (The other character will acept the party and buff the main character)
This is the script:
var Figth_Flag:boolean;
Obj: TL2Buff;
IdBuff: integer;
Buffs:TL2Buff;
var L2Skill: TL2Skill;
procedure toBuff;
begin
IdBuff:=1204 ; //Check BUFF
while not User.Buffs.ById(IdBuff,obj) do begin
Print('Check Buff');
engine.inviteparty('CharName'); //Party
Delay(7000);
end;
end;
I dont get any error message, but the script dont work. The adrenaline runs it for 1 sec and then stops.
Any advice?