Jump to content

Recommended Posts

Posted
Hi guys, I need a script to keep switching long target between mobs (I'm Feoh StormScreamer), the objective is to lure the mobs far away from me, without moving position.
 
 
 
 
[12:28]
Can u help?
  • 1 month later...
Posted

SOS

 

Alguém pode me ajudar, como faço para criar uma scripts para se puxa na party?

 

Exemplo:

Quando um determinado play entra na Parte é escrever uma determinada mensagem na parte de Party, o aiox ira identificar a plava e selecionar o seu target e puxa por meio da skill Sumonn friend Alguém sabe me dizer se tem como fazer isso ?

 

Também como faço para saber todos os comando para fazer isso ou demais coisas

  • 1 month later...
  • 1 month later...
Posted

Hi, I need something like this:

 

 

procedure toVillage;

begin

Print('To Village');

Delay(100);

if (User.HP=0) then

begin

Delay(100);

Engine.GoHome;

Engine.Facecontrol(0,False);

Buff;

end;

end;

 

But to go to the clan hall, how? first of all, Thanks

  • 2 months later...
Posted
On 11/14/2018 at 12:11 AM, Emi said:

LF a script to get reward from npc.  i have 100k items and 1x Need 400 items. 

 

https://l2db.info/high-five/quests/290-Threat-Removal its the quest

 

 

Pinaps  

Quest

Threat Removal (In Progress)

Take the Reward 

 

repeat

 

greets 

 

this script work me fine for my purpose

 

   begin

  while true do begin

       engine.settarget('Pinaps');

       delay(200);

       engine.dlgopen;

       engine.dlgsel('Quest');

       delay(500);

      engine.dlgsel('Threat Removal (In Progress)');

      delay(500);
      
       engine.dlgsel('Take the reward.');
       
      delay(1000);
     end;
      end.

  • 2 weeks later...
Posted

 farm  tarantula ́s spider silk script... quest lvl 15 dwarf village 

 

 

begin
//  ????
           
   while User.Level > 10 do begin // lvl
      
      if not User.InCombat then begin

   
      if User.Dead then begin
         Engine.GoHome;
         Delay(9000);
      Engine.MoveTo (116696, -179544, -1136);  
      Engine.MoveTo(116725, -180147, -1200); 
      Engine.MoveTo(115448, -178440, -928);
      Engine.MoveTo(115608, -178024, -912);
        end;
        if User.inrange(115608, -178024, -912, 250, 150) then begin  //1 res
               Print('Go Buffer');
              Engine.SetTarget('Newbie Helper');  //Target do NCP NEBIE 
              Delay(1500);
              Engine.DlgOpen; // abre chat combat npc
              Delay(1500);
              Engine.DlgSel(6);
              Delay(3500);
              Engine.CancelTarget;
              Engine.MoveTo (115096, -178168, -912);
              Delay(1500);
        end;
        if User.inrange(115096, -178168, -912, 250, 150) then begin  //2 res
              Print('Go Teleporte');
              Engine.SetTarget('Teleport Device');  //Target do NCP GK
              Delay(1500);
              Engine.DlgOpen; // abre chat combat npc
              Delay(1500);
              Engine.DlgSel(1);
              Delay(1500);
              Engine.DlgSel(10);
              Delay(5000);
              Engine.MoveTo (137240, -206280, -3568);
              Engine.MoveTo (140712, -207656, -3684);
              Engine.MoveTo (140472, -208936, -3424);
              Engine.MoveTo (140664, -208840, -3416);
            end;
          
      end;
      
      Delay(2000);
   end;
end.

  • 3 months later...
Posted (edited)

Can some one share a script for destro,i need it for farm pre frenzy ,zelot and battle roar with Rsk.hast and then use again Heavens Divine.


Thanks

Edited by takecare
  • 1 month later...
  • 2 months later...
  • 4 weeks later...
  • 3 weeks later...
Posted (edited)

after getting some of the Scripts from this Post and making mine based on what we have here, I'm here to post my contribution.

      var Figth_Flag:boolean;
     Item: TL2Item;
     Npc: TL2Npc;
     Obj: TL2Buff;
     IdBuff: integer;
     Buffs:TL2Buff;
var L2Skill: TL2Skill;


procedure toVillage;


begin

       while true do begin
      	  
      if (User.HP < 1) then
             Engine.GoHome;
    if (User.HP=0) then
           Engine.GoHome;
       Delay(1000);
       Engine.GoHome;

       toVillage;
Delay(5000);
		CheckQuest;

		     
           end;  
           end;   
       
           
      


procedure RunToKT3;
begin
  if not User.InRange (143384, -77384, -4720, 2000) then  //Ketra3
begin
engine.sendtoserver('21 47 00 6F 00 54 00 6F 00 5F 00 4B 00 65 00 74 00 72 00 61 00 4F 00 72 00 63 00 4F 00 75 00 74 00 70 00 6F 00 73 00 74 00 33 00 00 00');
        end else 
       delay(15000);
Engine.LoadConfig('SPS K3');    // switch to your character seting
        Delay(1000);
     Fight;
     delay(2500);
     Engine.Facecontrol(0,True);
     Print('RunToKT3_Ok'); //test if
     CheckQuest;

  end;

 
 
procedure RunToFW3;
 begin 
if User.InRange (83992, 214232, -3600, 900) then begin
Engine.MoveTo(82936, 214968, -3672);
Engine.MoveTo(81592, 216024, -3760);

Engine.Facecontrol(0,True);
//Print('RunToFW3_Ok') //test if
Engine.LoadConfig('SPS FW3');    // switch to your character seting


     Fight;
     delay(2500);
     CheckQuest;
        
   end else begin

    Engine.Facecontrol(0,False);

engine.sendtoserver('21 47 00 6F 00 54 00 6F 00 5F 00 46 00 69 00 65 00 6C 00 64 00 6F 00 66 00 57 00 68 00 69 00 73 00 70 00 65 00 72 00 73 00 33 00 00 00');

    
end; end;


    
                  
procedure Fight;
   begin
    Delay(1500);
    Print('Fight_Ok');
    Engine.Facecontrol(0,True);
    CheckQuest;

end;


procedure GiranBlue; //Start Quest

begin
      Print('GiranBlue_O');
    if (engine.queststatus(761,1)= False)  then begin
      Print('SemQuest_Ok');
  Engine.MoveTo(82440, 14848, -3464);
         Delay(1000);
  Engine.MoveTo(82446, 147522, -3464);
           Delay(1000);
  if User.InRange (82472, 147544, -3464, 90)then begin
  Delay(500);
      Print('Nicholas_Ok'); //test if

  Engine.SetTarget(31597);   // Nicholas[id: 31597]
  Delay(1000);
  Engine.DlgOpen;
  Delay(1000);
Engine.BypassToServer ('npc_268436779_Quest'); //npc npc_268436787_Quest
       Delay(1000);
Engine.BypassToServer ('npc_268436779_Quest Q761_ObtainBlessedBlueCrystal'); //Quest Blue nichols npc_268436787_Quest Q761_ObtainBlessedBlueCrystal
  Delay(1000);
Engine.BypassToServer ('Quest Q761_ObtainBlessedBlueCrystal getquest.htm'); //Quest Blue Quest Q761_ObtainBlessedBlueCrystal getquest.htm
     Delay(1500);
     end;

	 end;
     begin 
if (Inventory.Quest.ByID(9528, Item) = True)  and (Item.Count = 1 ) then begin
    Print('Letter_Ok'); //test if
	 Engine.MoveTo(81800, 148056, -3464);
	   Delay(500);
  Engine.MoveTo(81192, 148488, -3464);
    Delay(1000);
  Engine.MoveTo(80840, 148648, -3464);
    Delay(500);
  Engine.MoveTo(80200, 148648, -3528);
    Delay(500);
  Engine.MoveTo(79176, 148632, -3560);
    Delay(500);
  Engine.MoveTo(78200, 148664, -3592);
    Delay(500);
  Engine.MoveTo(77976, 148616, -3592);
    Delay(500);
  Engine.MoveTo(77544, 148536, -3592);
    Delay(500);
  Engine.MoveTo(77512, 148424, -3592);
    Delay(500);
  Engine.MoveTo(77608, 148216, -3592);
    Delay(500);
  Engine.SetTarget(30512);   // Kusto[id: 30512]
    Delay(500);
        Print('Kusto_Ok');
  Engine.DlgOpen;    
	Engine.BypassToServer ('npc_268466115_Quest'); //Quest Blue Missao 
  Delay(1000);
  Engine.BypassToServer ('npc_268466115_Quest Q761_ObtainBlessedBlueCrystal'); //Quest Blue
  Delay(1000);
    Engine.BypassToServer ('Quest Q761_ObtainBlessedBlueCrystal 31002-03.htm'); //Quest Blue
  Delay(1000);
  if (engine.queststatus(761,2)= True)  then begin
     RunToKt3;
     end;
  end else begin
   engine.sendtoserver('21 47 00 6F 00 54 00 6F 00 5F 00 54 00 6F 00 77 00 6E 00 6F 00 66 00 47 00 69 00 72 00 61 00 6E 00 00 00');
  Delay(12000);
 GiranBlue; 

end;
end; end;
    


   
procedure EntregaC;
var
	QuestItem: TL2Item;
	Item: TL2Item;
begin
                      
//Print('EntregaC_O'); //test if

if (Inventory.Quest.ByID(9267, Item) = True)  and (Item.Count = 20 ) then begin 
Print('Entregar Crystal');  // print quest stage
     Engine.Facecontrol(0,false);
 delay(1500);
 engine.sendtoserver('21 47 00 6F 00 54 00 6F 00 5F 00 54 00 6F 00 77 00 6E 00 6F 00 66 00 47 00 69 00 72 00 61 00 6E 00 00 00'); //Giran
           Delay(15000);
          
  Engine.MoveTo(81192, 148488, -3464);
   delay(1500);
  Engine.MoveTo(80840, 148648, -3464);
   delay(1500);
  Engine.MoveTo(80200, 148648, -3528);
   delay(1500);
  Engine.MoveTo(79176, 148632, -3560);
  Engine.MoveTo(78200, 148664, -3592);
   delay(1500);
  Engine.MoveTo(77976, 148616, -3592);
  Engine.MoveTo(77544, 148536, -3592);
  Engine.MoveTo(77512, 148424, -3592);
   delay(1500);
  Engine.MoveTo(77608, 148216, -3592);
  Engine.SetTarget(30512);   // Kusto[id: 30512]
  Delay(1000);
    Engine.DlgOpen;
      Delay(1000);
Engine.BypassToServer ('npc_268466115_Quest'); //Quest Blue
      Delay(1000);
Engine.BypassToServer ('npc_268466115_Quest Q761_ObtainBlessedBlueCrystal'); //Quest Blue
Print('blueCrystal_Ok');
           Delay(4000);
engine.sendtoserver('21 47 00 6F 00 54 00 6F 00 5F 00 54 00 6F 00 77 00 6E 00 6F 00 66 00 47 00 69 00 72 00 61 00 6E 00 00 00'); //giran
 Delay(20000);
	end;
	end;

    

  procedure AntBan;
 begin
 delay(2500);
       while true do begin
       delay(2500);
	 //Print('AntBan_0'); //test if
  if User.InRange (80392, 217000, -3656, 2000) then begin 
    Engine.Facecontrol(0,True);

  engine.sendtoserver('21 6E 00 65 00 78 00 74 00 74 00 61 00 72 00 67 00 65 00 74 00 5F 00 53 00 68 00 6F 00 72 00 74 00 00 00');
   delay(500);
   engine.sendtoserver('21 41 00 75 00 74 00 6F 00 48 00 75 00 6E 00 74 00 69 00 6E 00 67 00 5F 00 4F 00 4E 00 00 00');

      //Print('AntBan_FW'); //test if
        delay(500);
  end;
  if User.InRange (143384, -77384, -4720, 2000) then  //Ketra3
begin
Engine.Facecontrol(0,True);

engine.sendtoserver('21 6E 00 65 00 78 00 74 00 74 00 61 00 72 00 67 00 65 00 74 00 5F 00 53 00 68 00 6F 00 72 00 74 00 00 00');
   delay(500);
   engine.sendtoserver('21 41 00 75 00 74 00 6F 00 48 00 75 00 6E 00 74 00 69 00 6E 00 67 00 5F 00 4F 00 4E 00 00 00');

//Print('AntBan_KT'); //test if
             
  end; 
        end;
               end;  
    
    
procedure CheckQuest;
var
	QuestItem: TL2Item;
	Item: TL2Item;
    begin
       while true do begin
      //Print('CheckQuest_Blue_not_W'); //test if
       Delay(15000);
       if not user.inrange(77656, 148104, -3592, 4000,300) then begin //Giran
    if not engine.queststatus(761,1) and not engine.queststatus(761,2) then begin
      if (engine.queststatus(761,3)= False)  then begin
    Print('CheckQuest_Blue_not_0');
     Engine.FaceControl(0, False);
    GiranBlue;
    Delay(2000)
    end;
    end;
     end;

      if (engine.queststatus(761,3)= False)  then begin  
      if not engine.queststatus(761,1) and not engine.queststatus(761,2) then begin
     if user.inrange(82504, 148136, -3464, 4000,300) then begin
     GiranBlue;
    //Engine.MoveTo(82504, 148136, -3464);
       end;
      end;  
      end;
      
	//if not engine.queststatus(761,1) and not engine.queststatus(761,2) then begin
    if  (Inventory.Quest.ByID(9268, Item) = False)  and (Item.Count = 20 ) then begin
    Print('CheckQuest_Blue_not_1');
   if (Inventory.Quest.ByID(9267, Item) = False)  and (Item.Count = 20 ) then begin
    //while not user.inrange(77656, 148104, -3592, 4000,300) do begin //Giran
   	Print('CheckQuest_Blue_not');
		GiranBlue;

               
         end;
         end;
           

      //Print('CheckQuest_RunToKT3_0'); //test while         
if (engine.queststatus(761,2)= True)  then begin
if (Inventory.Quest.ByID(9268, Item) = False)  and (Item.Count < 20 ) then begin
   //if (Inventory.Quest.ByID(9268, Item) = True)  and (Item.Count = 20 ) then begin
	while not user.inrange(143384, -77384, -4720, 3000,300) do begin
	Print('CheckQuest_RunToKT3_1');
	RunToKT3;

   
	end;
		end;
		end;

  if (engine.queststatus(761,2)= True)  then begin
if (Inventory.Quest.ByID(9268, Item) = True)  and (Item.Count < 20 ) then begin
	//if (Inventory.Quest.ByID(9268, Item) = True)  and (Item.Count = 20 ) then begin
	while not user.inrange(143384, -77384, -4720, 3000) do begin
	Print('CheckQuest_RunToKT3_2');
	RunToKT3;
  
		end;
		end;
		end;

        //Print('CheckQuest_RunToFW3_0');
  if (engine.queststatus(761,2)= True)  then begin
	if (Inventory.Quest.ByID(9268, Item) = True)  and (Item.Count = 20 ) then begin
		if (Inventory.Quest.ByID(9267, Item) = True)  and (Item.Count < 20 ) then begin
	if not User.InRange (81176, 216520, -3736, 3000,300)then begin
		while not user.inrange(83912, 214120, -3624, 4000,300) do begin    //fw3_resp
          delay(15000);
   RunToFW3;
   Print('CheckQuest_RunToFW3_1');
    end;
	end; 
		end;
			end;
			end;   

	//Print('CheckQuest_RunToFW3_1_0');
	if (Inventory.Quest.ByID(9268, Item) = True)  and (Item.Count = 20 ) then begin
	if not (Inventory.Quest.ByID(9267, Item) = True)  and (Item.Count < 20 ) then begin
				//Print('CheckQuest_RunToFW3_1_1'); //test if
		if not User.InRange (81176, 216520, -3736, 3000,300)then begin
						//Print('CheckQuest_RunToFW3_1_2'); //test if
		RunToFW3;
		while not user.inrange(83912, 214120, -3624, 4000,300) do begin    //fw3_resp
		//Print('CheckQuest_RunToFW3_1_3');
          delay(10000);
   RunToFW3;
    end;
	end;
			end;
		end else CheckQuest;
		
  end;

  end;
					
					

               
begin    //repeats the script again
   Script.NewThread (@antBan);
   Script.NewThread (@toVillage);
    Script.NewThread (@CheckQuest);

  repeat
       EntregaC;
   
  until Engine.Status = lsOffline;
  Delay(1000);

end.

 

Edited by eloiton
  • 4 weeks later...
Posted
On 6/1/2020 at 9:00 PM, RanZum said:

Google translator...

Hello people!
Well, I prepared my script based on the one described above. Apparently, it is flowing normally, however, because my notebook is old, this video card warning appears, I already know the cause and the solution would be to buy only a more current notebook, but my notebook has good settings, the only problem it is the recognition of the plate by the game.
 

If anyone can help, I would like a line of code that I can confirm with OK, so that the game opens and the rest of the script continues.PW7LRAS.jpg

I found an external and internal solution, external I made an exe to close the error form, and internal I made a plugin that is called by the script

 

Spoiler
{$R *.dfm}

procedure CloseForm(Caption: String);
var
  h: THandle;
begin
  while (True) do
  begin
    h := FindWindow(nil, PChar(Caption));
 
    if (h <> 0) then
    begin
      PostMessage(h, WM_CLOSE, 0, 0);

      Break;
    end;
 
    if (h = 0) then
      Break;
  end;
end;

procedure TForm1.Timer1Timer(Sender: TObject);

begin
If FindWindow(nil,'Warning')>0 then
 CloseForm('Warning');
end;
end.

 

 

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