THX mate.
Now its running gr8 in solo botting gonna test it now in pt.
Final version:
var buff:tl2buff;
buffID,seconds:cardinal;
begin
buffID:= 1388; //change buff id
seconds:= 300; //buff end time seconds
while true do begin
if not user.buffs.byid(buffID, buff) or (buff.endtime < 300*1000) then begin
if (user.target.dead) or (user.target = nil) then begin
engine.facecontrol(0,false);
while user.incombat do delay(1000);
engine.bypasstoserver('_bbshome');
//use alt and b change for your server
delay(1000);
engine.bypasstoserver('_bbsgetfav');
delay(1000);
engine.bypasstoserver('04');
delay(1000);
engine.bypasstoserver('02');
delay(1000);
engine.facecontrol(0,true);
end;
end;
end;
end.
So I checked it in pt and it does not work properly. After 10- 15 min of normall playing scripts makes bot to walk randomly, targets- retargets, stops attacking, using skills, stops healing; stops assist, stops follow; from time to time comes back to normall boting but again goes crazy. Don't know what makes that.
In solo botting script works really good.