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

    • in conclusion when somebody who has a project for 10+ years still on development writes an e-say to try until you succeed and then advertises his project, one of the reasons is he needs money, so l2j has once more become pure expensive hobby, you wont make money out of it.   You can still use L2jFrozen and get better results for this, i know some people that done it    keep in mind that C in aCis stands for Crappy, and after all these years its not a cool wordplay anymore, its a fact, prove me wrong.
    • First, don't really follow the "main voice", moreover if you consider it an hobby. Simply do what you want, you got only one life so use it as you want. If you make it an hobby, it's exactly like piano, or velo - only practice makes you better.   Secondly, how do you learn things ? It's actually a really important question, since some can simply be scholar, read books (theory) then practice ; and some simply can't read books. I'm the second type, I hated school, I find it boring - my knowledge in Java comes from try-and-fail. You improve your coding style every year or so, I can myself rewrite my own code (which I already considered top-notched) after a while. You always learn something new - even if Java barely evolves. L2J is a fun way to learn programming, it's a giant sandbox where you can edit anything, and I believe it should be taken as it.   My own way of learning was as follow : Add existing customs, no matter what they are : the point is to know main classes used by L2J / customs. L2J is barely Java knowledge ; the true knowledge is to know WHAT to search in WHICH location (what I call, organization). You have to understand than EVERYTHING you think already exists, in a form on another, in the source code. A custom is only the association of the different mechanisms you found "here and there", glued together in a proper goal. Once you know main classes to edit, and the customs you added are compiling fine, the main point is to know WHAT exactly you DID. Try to understand WHY and WHERE you actually copied the code. Third point would be to MANIPULATE the customs you added in order to fit your wish. First edit little values, then logic conditions ; eventually add a new Config, or a new functionality to the custom. Fourth point would be to begin to craft your own ideas. Once again, EVERYTHING already exists, in a form or another. You want a cycled event ? You got Seven Signs main task as exemple. Npc ? Search any type of Npc and figure out what it does. Fifth point would be to understand Java - mostly containers (WHAT and WHERE to use them), variables types and main Java mechanisms (inheritance, static modifier, etc). You should also begin to cut your code into maintainable classes or methods. Java can actually run without optimization, but bigger your ideas, more optimized and well-thought it should be. It's direct saved time in the future, and you would thank yourself doing so. Main tips : ALWAYS use any type of versioning system - GIT or SVN. It allows to save your work, step by step and eventually revert back anytime you want if you terribly messed up. L2J is 80% organization knowledge, and 20% Java knowledge. Basically, if you know WHAT and WHERE to search, if you aren't dumb, it's easy to replicate and re-use things. Cherry on top is to use a already good coded pack to avoid copy-paste crap and get bad habits. Avoid any type of russian or brazilian packs, for exemple - their best ability is to leak someone's else code. Obviously you need some default sense of logic, but Java and programming in general help you to improve it.   Finally, most of your questions could be solved joining related Discord (at least for aCis, I can't speak for others) - from the moment your question was correctly asked (and you seemed to search for the answer). My community (and myself) welcomes newbies, but got some issues with noobies.   The simpliest is to try, fail and repeat until you succeed - it sounds stupid, but that's basically how life works.   PS : about Java ressources, before ChatGPT, it was mostly about stackoverflow website, and site like Baeldung's one. With ChatGPT and alike, you generally double-cross AI output to avoid fucked up answers. Also, care about AI, they are often hallucinating really hard, even today. They can give you complete wrong answer, you tell them they are wrong, and they say "indeed, I suck, sorry - here's a new fucked up answer". You shouldn't 100% rely over AI answer, even if that can give sometimes legit answers, full code or just skeletons of ideas.   PPS : I don't think there are reliable ressources regarding L2J itself, also most of the proposed code decays pretty fast if the source code is actually maintained (at least for aCis). Still, old coded customs for old aCis sources are actually a good beginner challenge to apply on latest source.
    • WTS: - AQ - Baium - Zaken  - Frintezza - Vesper Fighter Focus Fire Element   pm for detalis
  • 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