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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock