Jump to content

L2 Adrenaline Scripts.


Recommended Posts

Ty guys, i use the simple way that adr.bot give, but i do this for knowledge... nothing more than learning and having fun.. if i got any problem again, i 'll ask you ! Have a nice day!

Link to comment
Share on other sites

 

Is what Engine.Facecontrol stand for ? which means when it is set to true, your character begins his routine setting from the main Menu ?

 

'Engine.Facecontrol' is the buttons you see on your config interface. Ei. 'Engine.Facecontrol(0, true)' enables bot (and false disables), 'Engine.Facecontrol(1, true)' enables attacking, 'Engine.Facecontrol(2, true)' enables the 'Heal' option.

Link to comment
Share on other sites

Hello again. So anyone could write a script working in party for every character to when buffs fades to use server alt + b and rebuff out of combat?- but of course also doing things properly in party. Skill rebuff time about 20 min- probably better than waiting to buffs fade, but dunno- would be nice to know yours opinion; to avoid going bots to often out of combat when they are needed (for example healer healing).

Big THX in advance.

 

 

I use this script written by adr.bot for warrior's classes- it works perfect for one character (with noone else in party), but when I use this sript for every warrior class in party and use also a script for healer rebuff, then characters simpy dont follow, dont assist, goes randomly etc.

 

var buff:tl2buff;
    buffID,seconds:cardinal;
begin
buffID:= 1388;  //change buff id
seconds:= 30;   //buff end time seconds
while true do begin
if not user.buffs.byid(buffID, buff) or (buff.endtime < seconds*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.
 
 
Also I don't know where is rebuff timer (and condition) for doing rebuff in this script? When buffs fades till 30 s or every 1000 s? Pls help.
Should I put here mine parameter??? :
 
(buff.endtime < seconds*1000) 
Edited by palanch0
Link to comment
Share on other sites

Ty guys, i use the simple way that adr.bot give, but i do this for knowledge... nothing more than learning and having fun.. if i got any problem again, i 'll ask you ! Have a nice day!

 
i was using this 
 
procedure SendMoney(const receiver: string);
var adena: Integer;
begin
   adena := CheckItem(ADENAID) - 1100;
   
   if adena > 100000 then begin          // если больше 100к отсылаем.
      Engine.SendMail(receiver, 'AchYle, '', [ADENAID, adena]); 
      Engine.MSG('MAIL', 'Sent: ' + adena.toString + ' adena.', 32768);
   end;
end;
 
begin
 
   SendMoney('AchYle');
 
end;
Link to comment
Share on other sites

 

I use this script written by adr.bot for warrior's classes- it works perfect for one character (with noone else in party), but when I use this sript for every warrior class in party and use also a script for healer rebuff, then characters simpy dont follow, dont assist, goes randomly etc.

 

Double check your settings in bot interface. Sounds like you have not set that up properly.

Link to comment
Share on other sites

Guys anyone could help me to understand conditions and parameters here?:

 

 

seconds:= 30;   //buff end time seconds   trying to rebuff when buffs are on fade from 30 s? ??????
while true do begin
if not user.buffs.byid(buffID, buff)  I understand this one: no buffs= starts to rebuff
or (buff.endtime < seconds*1000) then begin completely don't understand this one condition; when there is less than 30 s tries to rebuff? ???? or when there is less than 30 s x 1000= 30000s? 
 
Pls help this is urgent.
Edited by palanch0
Link to comment
Share on other sites

Any time you declare is in ms.

Let's say we put 'time = 30'.

In which case: 'Delay(time)' = 30ms delay and 'Delay(time*1000)' = 30s delay.

Thx for responce! :)

So according to this rebuff script, when it goes to try to rebuff?:

1. first conditition when buffs are tottally of

2. second condition? ???? ???

 

I checked all bot setup and everything is ok, so this script seems to not work properly and I'm trying to know why.

So the second condition is:

 

buff tries to rebuff when there is less than 30s on buff timer?----- trying this script on solo character seems not couse it rebuffs randomly even when there is 1h to buffs to fade.

 

 

SO WHEN I WANT SCRIPT TO REBUFF WHEN BUFFS ARE 5 MIN (300s) TO FADE I SHOULD PUT:

300000 HERE:

or (buff.endtime < seconds*1000)

=

or (buff.endtime < 300000)

=

or (buff.endtime < 300*1000)

 

?????

Edited by palanch0
Link to comment
Share on other sites

 

 
i was using this 
 
procedure SendMoney(const receiver: string);
var adena: Integer;
begin
   adena := CheckItem(ADENAID) - 1100;
   
   if adena > 100000 then begin          // если больше 100к отсылаем.
      Engine.SendMail(receiver, 'AchYle, '', [ADENAID, adena]); 
      Engine.MSG('MAIL', 'Sent: ' + adena.toString + ' adena.', 32768);
   end;
end;
 
begin
 
   SendMoney('AchYle');
 
end;

 

This is the way i use it now. But thank you... i believe this is the best way to farm with a bot char and sending adena or farm items to your main w/o risking your main char get banned xD ;)

Link to comment
Share on other sites

Thx for responce! :)

So accordi....

 

 

O WHEN I WANT SCRIPT TO REBUFF WHEN BUFFS ARE 5 MIN (300s) TO FADE I SHOULD PUT:

300000 HERE:

or (buff.endtime < seconds*1000)

=

or (buff.endtime < 300000)

=

or (buff.endtime < 300*1000)

 

?????

 

Conditions should be pretty straight forward granted you know what '<' means.

 

Last part: yes. 300s = 5mins = 300000ms.

 

The script looks fine to me but then again maybe I'm missing something.

Link to comment
Share on other sites

Conditions should be pretty straight forward granted you know what '<' means.

 

Last part: yes. 300s = 5mins = 300000ms.

 

The script looks fine to me but then again maybe I'm missing something.

 

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.
Edited by palanch0
Link to comment
Share on other sites

Hello guys,

 

I'm currently developing my own 1-40 auto level script and it's going pretty smooth, eventhough my scripting knowledge is very narrow and dumb.

 

Anyway, what I'm doing is setting functions that have prerequisites to trigger, such as: position, check level, check items, check buffs, and if everything is ok they start. It's not the best way, but it's working and I'm pretty excited about it.

 

The main problem I'm facing atm is that after I get to my designated spot of leveling, I wanna keep checking 3 conditions to stay there:

 

1) Level restriction (user.level>=32)

2) Buffs ended User.Buffs.ByID(4326, buff)

3) Dead (User.Dead)

 

I have set those 3 functions written properly, but I dont know how to keep checking them in the previous function to be triggered. I managed to set one of them at a time, by using this:

while not level32check do Delay(1000); // while not level >31, keep leveling

But if I die, my script will be stuck in this loop, same if I ran out of buffs, it will probably die and do nothing. I tried to do something like this code below with "while not" at the end of the spot function, but it failed to work because it only considers the first if:

function spot3check: Boolean;
          var buff: TL2Buff;
          begin
          if User.Dead then begin
          deadcheck;             
          end else User.Buffs.ByID(4326, buff) then begin
          soe;
          end else (user.level>=32) then begin
          level32check

The point is that after it get to the spot, keep checking buff,level and dead. If any of them, begin that function and end the previous one. Glad if you can help me, Im breaking my head for 4h already.

 

Some bonus questions: :D

 

1) How can I set a function to keep checking if my char is standing (not moving, not sitting, not dead, not fighting) for more than xx seconds and if true, use SOE (stuck check)

2) How can I check a specific skill from my character and check if he doenst have it. Same if he has it, then check it's level?

Edited by fahir1
Link to comment
Share on other sites

Hello guys,

 

I'm currently developing my own 1-40 auto level script and it's going pretty smooth, eventhough my scripting knowledge is very narrow and dumb.

 

Anyway, what I'm doing is setting functions that have prerequisites to trigger, such as: position, check level, check items, check buffs, and if everything is ok they start. It's not the best way, but it's working and I'm pretty excited about it.

 

The main problem I'm facing atm is that after I get to my designated spot of leveling, I wanna keep checking 3 conditions to stay there:

 

1) Level restriction (user.level>=32)

2) Buffs ended User.Buffs.ByID(4326, buff)

3) Dead (User.Dead)

 

I have set those 3 functions written properly, but I dont know how to keep checking them in the previous function to be triggered. I managed to set one of them at a time, by using this:

while not level32check do Delay(1000); // while not level >31, keep leveling

But if I die, my script will be stuck in this loop, same if I ran out of buffs, it will probably die and do nothing. I tried to do something like this code below with "while not" at the end of the spot function, but it failed to work because it only considers the first if:

function spot3check: Boolean;
          var buff: TL2Buff;
          begin
          if User.Dead then begin
          deadcheck;             
          end else User.Buffs.ByID(4326, buff) then begin
          soe;
          end else (user.level>=32) then begin
          level32check

The point is that after it get to the spot, keep checking buff,level and dead. If any of them, begin that function and end the previous one. Glad if you can help me, Im breaking my head for 4h already.

 

Some bonus questions: :D

 

1) How can I set a function to keep checking if my char is standing (not moving, not sitting, not dead, not fighting) for more than xx seconds and if true, use SOE (stuck check)

2) How can I check a specific skill from my character and check if he doenst have it. Same if he has it, then check it's level?

here is example maybe it help  http://rghost.net/74jH9rxPg  http://rghost.net/7fQCRgpLH

Edited by adr.bot
Link to comment
Share on other sites

hi,where i fail ? buffer work good.but script for "to village" and teleport to exp place not work and captcha alarm too,i have function captcha:boolean redlide :X.where i fail ? thx fow answer.sry for my english.

 

var buff:tl2buff;
    buffID,seconds:cardinal;
begin
buffID:= 1085;  //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'); 
  delay(1000);
   Engine.bypasstoserver('02');
   delay(1000);
   Engine.bypasstoserver('0b');
  delay(1000);
   Engine.bypasstoserver('0f');
  delay(1000);
  Engine.bypasstoserver('_bbsgetfav');
  delay(1000);
  engine.facecontrol(0,true);
 end;
end;
end;
 
 
 
 
 
  function captcha:boolean; begin
             if engine.dlgtext.contains('Refresh') or
             engine.dlgtext.contains('Captcha') or
             engine.dlgtext.contains('60 seconds') or
             engine.dlgtext.contains('Bot')   then begin
       SetForegroundWindow(Engine.GameWindow);             
      PlaySound(exepath+'\sounds\'+'PlayerAlarm'+'.wav');
      delay(500);  
      StopSound;
          end;   
  end;
begin
  while true do begin
  delay(300);
   captcha();
   
end;
end;
 
 
begin
engine.bypasstoserver('_bbshome'); 
  delay(1000);
   Engine.bypasstoserver('02');
   delay(1000);
   Engine.bypasstoserver('0a');
  delay(1000);
   Engine.bypasstoserver('033');
  delay(1000);
  Engine.bypasstoserver('0f');
  delay(1000);
  Engine.MoveTo(-18824,13544,-4880)
end;
end.
Edited by lynxik
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now



×
×
  • Create New...