Jump to content

Recommended Posts

Posted

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!

Posted

 

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.

Posted (edited)

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
Posted

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;
Posted

 

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.

Posted (edited)

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
Posted (edited)

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
Posted

 

 
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 ;)

Posted

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.

Posted (edited)

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
Posted (edited)

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
Posted (edited)

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
Posted (edited)

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

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



  • Posts

    • I created a system of FAKES to improve my GeoEngine, but I'm having problems with blocks. I've tried everything to fix it, but a block going from the inside out bugs the player's movement and freezes them. However, the reverse doesn't cause this bug. If I'm outside and click inside, the path is traced normally, but if it's reversed, it bugs at the fence. I've created several debugs and read all kinds of GeoEngine versions, but I haven't had any success. Can someone give me some insight into graphical data?   When fakes spawn, they are given possible routes, but they don't follow them. If there's a target, instead of following the correctly drawn path, it simply uses a straight line.  
    • The legendary L2Elixir you remember from 2008 is officially back — remastered, refreshed, and reborn! Our x3 Interlude server launched on 28 November, and the community is growing every single day.   🔥 Fresh start 🔥 Active players joining daily 🔥 Long-term project — Licensed for over 5 years from PlayINERA. 🔥 True 2008 nostalgia with modern stability & polish   If you were part of the original Elixir family, this is your chance to relive the magic. If you’re new — welcome to a classic Lineage II experience built with passion, not profit.   Join the battles. Join the nostalgia. Join L2Elixir Reborn. Website: https://l2elixir.org/ Discord: https://discord.gg/5ydPHvhbxs
    • still available?  java version? client  salvation?  accept smarguart¡?
    • 🎉 L2NeverPain StuckSub - GRAND OPENING 12 December 2025🎉 After beta, testing, mistakes, laughs and a lot of PvP, the moment has finally come. L2NeverPain StuckSub is officially opening its gates on 12 December 2025.   ⚔️What to expect: ✦Main Class +2 Stuck Sub system ✦Balanced PvP & custom party farm areas ✦Custom events, bosses and strong rewards ✦Competitive clan scene with castle rewards   📌Until the opening: ✦Create your clans and register them in the Clan-Register channel ✦Invite your friends / old parties / CPs ✦Stay tuned for more information (rates, events, siege times, etc.)   Get your setups ready, prepare your macros and your Discord/voice. On 12 December 2025 20:00 GMT+2, we write the first chapter of NeverPain together. 🔥 https://l2neverpain.com/ https://discord.gg/kNP3UXgkmN
  • Topics

×
×
  • 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