Jump to content

Recommended Posts

Posted (edited)

Yo, i use script for rebuff from the book, unfotunately bot doesnt work ok, sometimes dunno why he take buffs when he doesnt have mobs around him but most of the time he open book and still target mobs, result is his death bcs w/o buff...... check if any have some idea:

 

function checkAgro: boolean;
var npc: TL2Npc; 
begin
   result := not user.dead and ((not user.target.dead and user.target.attackable) or Engine.FindEnemy(npc, user, 1100));
end;
 
procedure leaveCombat;
begin
   engine.facecontrol(0,false); 
   while not user.dead and user.incombat and delay(200) do begin
      if checkAgro then begin
         if not engine.getfacestate(0) then engine.facecontrol(0,true);  
      end else if engine.getfacestate(0) then engine.facecontrol(0,false);  
   end;
end;
 
begin
    while delay(2000) do begin
        if checkBuff then begin
            while checkAgro do delay(20);
            leaveCombat;
            takeBuffs;
            Engine.FaceControl(0,true);
        end;
    end;
end.
Edited by mamike20009

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...