Jump to content

Recommended Posts

Posted
10 minutes ago, siriys_blek said:

To walk around the rooms , like a mapped catas mostly i mean

Now i am searching script for CAPTCHA, cause some1 may report my bot.

 

what type of captcha exactly ,maybe it's shared alrdy..

  • 2 weeks later...
Posted
var
  adena:tl2item;
begin
  while engine.delay(555) do begin
  inventory.user.byid(57, adena);
    if assigned(adena) and (adena.count > 5 * 1000000) then begin // more than 5kk
      while not user.target.dead do delay(11);
      engine.facecontrol(0,false); delay(555);
      engine.entertext('.deposit'); delay(555);
      engine.facecontrol(0,true);
    end;
  end;
end.

 

Anyone can make this work?

  • 2 weeks later...
Posted

who can help me create a script for showing olympiad games participants? on 0.30 sec on this video u can find a small part of the script

 

 

  • 1 month later...
Posted

Hi, 
I'm looking for a script for Sell/Buy actions with NPC on Interlude servers. Engine.Exchange doesn't work, so it must be done via packets.

Or if you know how to catch a specifit packets I will be grateful.

  • 3 weeks later...
Posted

Hi,

 

I have a problem with attached captcha.

 

I've tried with:

 

procedure  checkForCaptcha;
begin
  while  Engine.Status = lsOnline  do
  begin
    if  Engine.dlgtext.contains ('C0de') then
    begin
      engine.dlgsel ('C0de')
    end;
  end;
end;
begin
Script.NewThread(@checkForCaptcha);
end.

 

Scripts starts and works, but after aroud 1 minute it stops for some reason (any idea why?)

Shot00000.jpg

Posted
3 hours ago, Akyoto said:

Hi,

 

I have a problem with attached captcha.

 

I've tried with:

 


procedure  checkForCaptcha;
begin
  while  Engine.Status = lsOnline  do
  begin
    if  Engine.dlgtext.contains ('C0de') then
    begin
      engine.dlgsel ('C0de')
    end;
  end;
end;
begin
Script.NewThread(@checkForCaptcha);
end.

 

Scripts starts and works, but after aroud 1 minute it stops for some reason (any idea why?)

Shot00000.jpg

its captcha in tutorial window, not sure if there is api for tutorial window, but with packets should work fine

Posted (edited)
22 hours ago, adr.bot said:

its captcha in tutorial window, not sure if there is api for tutorial window, but with packets should work fine

 

Hi adr.bot,

 

thank you for the reply and advices. I have still few questions, and if you wouldnt mind to answer them that would be great.

 

1. Any idea where can I read about sending packets via scripts?

2. why above script is stopping after 1-2 minutes (is it because I have enabled other options in adrenaline like autobuffing and attacks?

Edited by Akyoto
Posted
5 hours ago, Akyoto said:

 

Hi adr.bot,

 

thank you for the reply and advices. I have still few questions, and if you wouldnt mind to answer them that would be great.

 

1. Any idea where can I read about sending packets via scripts?

2. why above script is stopping after 1-2 minutes (is it because I have enabled other options in adrenaline like autobuffing and attacks?

procedure OnPacket(ID, ID2: Cardinal; Data: Pointer; Size: Word);
begin
 print(ID);
 print(MemToHex(Data^, Size));
end;
begin
  delay(-1);
end.

this receive packets from server to client if i not wrong, "OnCliPacket" from client to server

to send packet

engine.sendtoserver('');

engine.sendtoclient('');

 

why ur script is stopping i have no idea

Posted (edited)

Hello adr.bot and everyone,

 

I have been using adrenalin quite long already, and have been making my own scripts with simple language. Atm I have a few questions from scripting that im facing atm on my own:

 

1- How to equip different jewels for each slot? For instance, if I use the command below it will equip and unequip the same jewel:

 

        Inventory.user.ById(12325, item); 
        Engine.UseItem(item);
        Inventory.user.ById(12325, item); 
        Engine.UseItem(item); 

 

I wanna equip one earring on each slot or substitute the earring that is being used in each slot.

 

2- How to identify the dialog from the NPC and select the correct answer (for instance, get a pet wolf quest, quite similar to anti captcha)? I think its using this code, right?

 

Engine.dlgtext.contains

I managed to identify the text, but engine.dlgsel does not work in this specific chat (it works for other NPC). I tried doing bypass like this:

if engine.dlgtext.contains('useful') then
begin
Engine.BypassToServer('1110003');

 

But it didnt work, here's the full dialog:

 <html><body>
Question:<br>What is the normal lifespan of a wolf in captivity?<br><fstring p1="" p2="" p3="" p4="" p5="">1110052</fstring><fstring p1="" p2="" p3="" p4="" p5="">1110053</fstring><fstring p1="" p2="" p3="" p4="" p5="">1110054</fstring><fstring p1="" p2="" p3="" p4="" p5="">1110051</fstring><fstring p1="" p2="" p3="" p4="" p5="">1110055</fstring></body></html>

 

 

3- How is possible to identify if the user has any dyes and which are them with the script?

 

4- Currently my auto level script sometimes could get stuck (invisible wall in town, a rock, tree or even some lag that might screw it). How can I "check" if the char is doing nothing and use scape or something?

 

5- My auto level scripts is currently for single char, how can I comunicate with another char in pt and make them follow the same script at the same time (for instance, my script goes to town, rebuff, restock and go back to farming location, but I want the other char in pt do the same at the same time and go back and wait for the rest before farming again). I thought I could manage doing that with party message.

 

Thanks very much if anyone can help with some of those questions!

Edited by nhaka
Posted
On 6/18/2018 at 8:57 PM, nhaka said:

Hello adr.bot and everyone,

 

I have been using adrenalin quite long already, and have been making my own scripts with simple language. Atm I have a few questions from scripting that im facing atm on my own:

 

1- How to equip different jewels for each slot? For instance, if I use the command below it will equip and unequip the same jewel:

 


        Inventory.user.ById(12325, item); 
        Engine.UseItem(item);
        Inventory.user.ById(12325, item); 
        Engine.UseItem(item); 

 

I wanna equip one earring on each slot or substitute the earring that is being used in each slot.

 

2- How to identify the dialog from the NPC and select the correct answer (for instance, get a pet wolf quest, quite similar to anti captcha)? I think its using this code, right?

 


Engine.dlgtext.contains

I managed to identify the text, but engine.dlgsel does not work in this specific chat (it works for other NPC). I tried doing bypass like this:


if engine.dlgtext.contains('useful') then
begin
Engine.BypassToServer('1110003');

 

 

But it didnt work, here's the full dialog:


 <html><body>
Question:<br>What is the normal lifespan of a wolf in captivity?<br><fstring p1="" p2="" p3="" p4="" p5="">1110052</fstring><fstring p1="" p2="" p3="" p4="" p5="">1110053</fstring><fstring p1="" p2="" p3="" p4="" p5="">1110054</fstring><fstring p1="" p2="" p3="" p4="" p5="">1110051</fstring><fstring p1="" p2="" p3="" p4="" p5="">1110055</fstring></body></html>

 

 

 

3- How is possible to identify if the user has any dyes and which are them with the script?

 

4- Currently my auto level script sometimes could get stuck (invisible wall in town, a rock, tree or even some lag that might screw it). How can I "check" if the char is doing nothing and use scape or something?

 

5- My auto level scripts is currently for single char, how can I comunicate with another char in pt and make them follow the same script at the same time (for instance, my script goes to town, rebuff, restock and go back to farming location, but I want the other char in pt do the same at the same time and go back and wait for the rest before farming again). I thought I could manage doing that with party message.

 

Thanks very much if anyone can help with some of those questions!

1. u should use items by oid

2. as example u can use engine.waitaction([ladlg], p1,p2) and then check engine.dlgtext example with command "pos"

3. no idea

4.  i think this should work

procedure doSoe();
begin
// stuff for soe
end;

var
	qwe:boolean;
begin
	qwe := false;
	if user.inrange(x,y,z,r) then
	begin
		engine.moveto(x,y,z);
	end;
	if user.inrange(x,y,z,r) then // at end point
		qwe := true;
	if not qwe then
		dosoe;
end.

5. no idea also

Posted (edited)
3 hours ago, adr.bot said:

1. u should use items by oid

2. as example u can use engine.waitaction([ladlg], p1,p2) and then check engine.dlgtext example with command "pos"

3. no idea

4.  i think this should work


procedure doSoe();
begin
// stuff for soe
end;

var
	qwe:boolean;
begin
	qwe := false;
	if user.inrange(x,y,z,r) then
	begin
		engine.moveto(x,y,z);
	end;
	if user.inrange(x,y,z,r) then // at end point
		qwe := true;
	if not qwe then
		dosoe;
end.

5. no idea also

 

TY Adr,

 

1. I managed how to find OID and I'm posting here if someone need what I made (its to unequip both rings with same ID, just change the ID in the script, you can change it to any kind of item, just need to adapt it):

 

function UseRingOID(showInfo: boolean = true): integer;
var
    item: TL2Item;
    i : integer;
    a: integer;
    b: integer;
    ringA: integer;
    ringB: integer;
    
begin
    for i:=0 to Inventory.User.Count-1 do
    begin
        if (Inventory.User.Items(i).Equipped) then
      begin
         Result := Inventory.User.Items(i).OID;
         if ((Inventory.User.Items(i).ID) = 12337) and not (a=1) then  //here put normal ID you are looking for
         begin
         Delay(555);
         ringA:= (Inventory.User.Items(i).OID);
         a:=1;
         Inventory.user.ByOId(ringA, item);            
         Engine.UseItem(item);          
         end
         else if ((Inventory.User.Items(i).ID) = 12337) and not (b=1) then //here  put normal ID you are looking for
         begin
         Delay(555);
         ringB:= (Inventory.User.Items(i).OID);
         b:=1;
         Inventory.user.ByOId(ringB, item);            
         Engine.UseItem(item);          
         end;
        end;
    end;
 Result := -1;
end;

 

2. I dunno if I understand your suggestion  but I managed to identify the window and the text, but I cant make it select the answer with engine.dlgsel nor engine.bypass. Do you know what I need to put in bypass to make this work. Here's the full chat of one of them (but all follow the same structure just changing the numbers). I think it might need some work to use it, because it does not follow the normal bypass dialog:

 

<html><body>
Question:<br>Pets are very useful to their owners. Which  of the following is <font color="LEVEL">not</font> an appropriate use of a pet?<br><fstring p1="" p2="" p3="" p4="" p5="">1110004</fstring><fstring p1="" p2="" p3="" p4="" p5="">1110002</fstring><fstring p1="" p2="" p3="" p4="" p5="">1110001</fstring><fstring p1="" p2="" p3="" p4="" p5="">1110003</fstring><fstring p1="" p2="" p3="" p4="" p5="">1110005</fstring></body></html

 

Or if you have an example with pos to select the answer?

 

Thanks for the other answers.

Edited by nhaka
Posted
1 hour ago, nhaka said:

 

TY Adr,

 

1. I managed how to find OID and I'm posting here if someone need what I made (its to unequip both rings with same ID, just change the ID in the script, you can change it to any kind of item, just need to adapt it):

 


function UseRingOID(showInfo: boolean = true): integer;
var
    item: TL2Item;
    i : integer;
    a: integer;
    b: integer;
    ringA: integer;
    ringB: integer;
    
begin
    for i:=0 to Inventory.User.Count-1 do
    begin
        if (Inventory.User.Items(i).Equipped) then
      begin
         Result := Inventory.User.Items(i).OID;
         if ((Inventory.User.Items(i).ID) = 12337) and not (a=1) then  //here put normal ID you are looking for
         begin
         Delay(555);
         ringA:= (Inventory.User.Items(i).OID);
         a:=1;
         Inventory.user.ByOId(ringA, item);            
         Engine.UseItem(item);          
         end
         else if ((Inventory.User.Items(i).ID) = 12337) and not (b=1) then //here  put normal ID you are looking for
         begin
         Delay(555);
         ringB:= (Inventory.User.Items(i).OID);
         b:=1;
         Inventory.user.ByOId(ringB, item);            
         Engine.UseItem(item);          
         end;
        end;
    end;
 Result := -1;
end;

 

2. I dunno if I understand your suggestion  but I managed to identify the window and the text, but I cant make it select the answer with engine.dlgsel nor engine.bypass. Do you know what I need to put in bypass to make this work. Here's the full chat of one of them (but all follow the same structure just changing the numbers). I think it might need some work to use it, because it does not follow the normal bypass dialog:

 


<html><body>
Question:<br>Pets are very useful to their owners. Which  of the following is <font color="LEVEL">not</font> an appropriate use of a pet?<br><fstring p1="" p2="" p3="" p4="" p5="">1110004</fstring><fstring p1="" p2="" p3="" p4="" p5="">1110002</fstring><fstring p1="" p2="" p3="" p4="" p5="">1110001</fstring><fstring p1="" p2="" p3="" p4="" p5="">1110003</fstring><fstring p1="" p2="" p3="" p4="" p5="">1110005</fstring></body></html

 

Or if you have an example with pos to select the answer?

 

Thanks for the other answers.

hmm i never see dialog like that, seems there is no bypass strings xd

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

    • L2jBayev Chronicle 3: Rise of Darkness – AiEngine Edition In short: this is a C3 build with a full-fledged AI engine, live mercenaries, a built-in quiz, a “personal account” in the Community Board, and server logic neatly distributed across thread pools. The project is about a living world without lags : bots farm, communicate, gather parties, teleport along routes, and the server remains cold and stable.   What's inside (the most delicious) 1) Full-fledged AI engine for characters Behavior types: farming ( FarmAI ), combat ( CombatAI ), party logic ( PartyAI ), trading/walking ( TraderAI / WalkerAI ), support roles (healer, etc.). Class profiles: for mages/archers/daggers, etc., “smart” skill rotations, distance control, sleep/save skills, healing, loot pickup, etc. are implemented (see examples of classes like SpellSingerAI , NecromancerAI , etc.). Self-healing and teleports: when dying, the bot goes through a sequence of steps without sleep()- via AITaskSequence + AITeleportToLocTask , searches for the nearest gatekeeper and teleports via TeleportationManager with routes depending on the level. Auto-support: auto-nipples, arrows/bones, smart auto-proceduring of buffs and auto-banks CP/HP/MP with thresholds - all sewn into the auxiliary EtcPlayersAi . Chat context: ChatManagerAi processes mentions, makes responses with delays (anti-flood), supports party chat and “human” reaction. Understanding: ChatManagerAi system  processes the dialogue, bots remember your aggression and insults, they start to respond less often to modern users, stop accepting or inviting to a group (party) and when it goes beyond the peak they will simply merge you, and every time they see you on the PC, there is an opportunity to measure more often, communicate respectfully and beautifully, in general, a “human” reaction. Why a player/admin needs this: bots actually “live”, farm and interact, and don’t just stand on macros. This is a great background for online and PvE action.   2) Mercenaries (Mercenary system) Full-fledged companion character : L2MercenaryInstance with its own MercenaryAI (movement, attack, support, consumables, shots). Behavior modes: DEFENDER / SUPPORT / PASSIVE - switchable to suit your playing style. Progress and trust: the mercenary's trust/exp/level grows , skills are learned according to the MercenarySkillTree (conditions are based on the trust or level of the owner). Templates and equipment: via MercenaryTemplateTable and spawner - model/weapon/type are selected. Social: MercenarySpeechManager - a set of speeches; the mercenary "comes to life" in the chat. Premium Link: Premium account owners give the mercenary additional trust (faster progress). Why: This is not a dummy pet, but a playful companion with modes, training and “character”.   3) Quiz (event viktorina ) Rounds according to schedule: pre-launch with announcements (minutes/seconds before start), registration .reg, auto-opening of the window. Multiple choice questions: question + set of answer buttons; fair processing, timings, question change. Tops and history: results table, statistics, neat UI via HTML assembly. Flexible control: you can start immediately or set a delayed start (notification package 5/2/1 min, etc.). Why: regular activity for players, “social entertainment” module right in the build.   4) Personal account in Community Board KB managers: buff cabinet, teleports, clans/forums/mail/friends, tops (PK/PvP/wealth/players), character repair, viewing skill trees , etc. Premium logic: some services/mail are limited by premium; premium also affects the visual (nickname color) and bonuses (see effect on mercenary). Single sign-on: all in one place, no team chaos. Why: conveniently manage your character and services without going into the console or installing third-party mods.   Why is the system technically valuable? Minimum load and stability Separated thread pools: AI logic, hunting, teleports, chat - on separate onesScheduledExecutorService ( AI_THREAD_POOL , MONSTER_HUNT_POOL , TELEPORT_POOL , CHAT_POOL ). No "freezing": task sequencers (teleport/recovery) work through the scheduler, not Thread.sleep(). Bot limitation: protection against overload via thresholds/counters - “extra” bots do not start. One bot - one sequence: AITaskManager ensures that the character does not have parallel conflicting tasks. Smoothing out peaks: starting tasks with offsets so that there are no simultaneous “ticks” of hundreds of bots. Monitoring/logs: own loggers (separate files for info/errors/processes/chats), CPU load monitoring. Bottom line: the build is designed for “thick online” and mass activities without TPS failures .   Additional Features Auto-alliances for farming: party logic invites suitable players (checking level/equipment/clan flags), there are “human” responses to requests. Sub/class management: out of the box helpers for changing class/subclass, auto-learning of necessary skills and selection of equipment by level. Security/protection: secondary PIN/picture password support (used in KB/voiced commands; optional). Premium accounts: privileges in KB/mail/visual and synergy with mercenary progress. Ready-made services: tops, auctions/mail, teleports from KB, buff rooms, repairs, viewing skill trees, etc.   Who is this build for? Freeshare/project admins who want a living world “from the pack”: bots and mercenaries provide a constant background of activity. Players who value convenience: personal account, premium services, events and a mercenary companion. Developers who want a clean, predictable backend with thread pools and a neat task model without “magic”.   How it differs from standard assemblies Not macros - AI profiles with “brains”: rotations, positioning, healing, decision making. Not a decoration pet - a mercenary with his own modes, progress, skill tree and lines. Not a faceless gamemod - an event quiz with UI, schedule, tops. No chaos in flows - strict pools, planning and task managers designed for online and growth. No separate scripts - a single personal account in KB for most activities.   TL;DR (one paragraph for the project card) AiEngine C3 is a build with live AI, smart bots, mercenaries (modes/progress/skills), built-in quiz, premium logic and a convenient personal account in KB. Under the hood are distributed thread pools and task managers without sleep(), so even with a dense online the server remains stable and responsive.   Additionally add - there is still a lot of interesting things command .assassin or shift+target (order murder), shift+target for admins on AI characters for control, admin panel is completely rewritten, many additional functions, mercenaries change their appearance depending on trust, deepseek and chatGPT system is connected for communication of characters like real players, GPT - for newer java, there is still a very large list of fixes after the last versions, a lot has been fixed, including height coordinates (Z) geo-Squares, pathfinding, visibility through obstacles, fix pet summons, trade packages, shop packages, many effects, quests (including the original ones like nipples, etc.), Ai behavior of NPC and RB monsters, absolutely all epics have been transferred to AiLoader no longer in python scripts. Attention! The server is suitable for both classic mode and PvP format, as well as with various mods. Absolutely everything is configured in the configurations to suit your taste and purposes of use. It is recommended to launch the server through L2ServerControl (simplifies management and control of processes). Download Servers: Chronicle 3 Server Chronicle 4 Test Upgraded Server Full Desc & screens: Post & Screens c3 Post & Desc c4    
    • 🎃 HALLOWEEN EVENT 🎃   ‼️ Information and details: https://forum.l2harbor.com/threads/halloween-event-fall-harvest-30-10-07-11.8265/post-168620
  • 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