Jump to content

Recommended Posts

Posted

i have one code but dont work in exilium giran and tp in dragon valley 

 

 

 

var
item: TL2Item;
 
function buffCheck: Boolean;
var buff: TL2Buff;
begin
    if not User.Buffs.ByID(4397, buff) then begin
        Result:=true;
        Print('Magic Support');
        Engine.MoveTo(81938,148298,-3468);
  Engine.SetTarget('Horadrim');
  delay(1000);
  Engine.DlgOpen;
  delay(1000);
  Engine.DlgSel('Default'); // notworking
  delay(1000); 
    end;
Result:=false;
end;
 
function deadCheck: Boolean;
begin
Result := false;
    if User.Dead then begin
        Result := true;
        Print('Dead. Pressing to village.');
        Delay(1000);
        Engine.FaceControl(0,false);
        Engine.GOHome(rtTown);  ///here change to town or other
        Delay(10000);
    end;
end;
 
begin
while true do begin
delay(150);
 
if User.inrange(86574,148326,-3470, 250, 150) then begin    // ch
        Engine.MoveTo(86780,-142217,-1320);
        Engine.MoveTo(87103,-142760,-1320);
        Engine.MoveTo(83406,147931,-3406);
    end;
    if user.inrange(81048,148326,-3470, 500) then begin
    end;    
    
    if user.inrange(83371,147921,-3406, 150) then begin
        Engine.SetTarget(31964);
        Engine.DlgOpen;
        Delay(700);
        Engine.DlgSel('Mystra');
        Delay(700);
        Engine.DlgSel('High Level Hunting Areas');
        Delay(10000);
        Engine.SetTarget('Mysta');
        Engine.DlgOpen;
        Delay(700);
        Engine.DlgSel('High Level Hunting Areas');
        Delay(700);
        Engine.DlgSel('Dragon Valley cave');
        Delay(1000);
    end;    
                          
    if user.inrange(149575,-112710,-2060, 500) then begin
        Print('cest parti');
      Engine.MoveTo(149606,-110577,-2298);
      Engine.MoveTo(149161,-109035,-2529);
      Engine.MoveTo(147956,-108811,-2836);
      Engine.MoveTo(145523,-109075,-3449);
      Engine.MoveTo(143923,-110626,-3597);
        Print('Yatta');
        Delay(500);
        Engine.FaceControl(0, true);
        while not deadCheck do delay(1000); //while not dead, do nothing and wait.
    end;
end;
end.
 
 
 
 
 
if you can help me pls
Posted (edited)

first of all about deadcheck

Engine.GOHome(rtTown);  ///here change to town or other

it make to town (not clan hall) so probably you spawn random in town,

 

second

if User.inrange(86574,148326,-3470, 250, 150) then begin    // ch
        Engine.MoveTo(86780,-142217,-1320);
        Engine.MoveTo(87103,-142760,-1320);
        Engine.MoveTo(83406,147931,-3406);
    end;

only this for all random spawns in town? :D

 

and

    if user.inrange(83371,147921,-3406, 150) then begin
        Engine.SetTarget(31964);
        Engine.DlgOpen;
        Delay(700);
        Engine.DlgSel('Mystra');
        Delay(700);
        Engine.DlgSel('High Level Hunting Areas');
        Delay(10000);
        Engine.SetTarget('Mysta');
        Engine.DlgOpen;
        Delay(700);
        Engine.DlgSel('High Level Hunting Areas');
        Delay(700);
        Engine.DlgSel('Dragon Valley cave');
        Delay(1000);
    end;  

if user.inrange(83371,147921,-3406, 150) then begin

 

must be ~same like last move point of town coordinates, that means when you be at certain point (near gatekeeper if no alt and b )  only then it will run this

Edited by adr.bot

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

    • L2Elixir – Patch 4 Is Live!   We’re working non-stop, day and night, to deliver the best possible quality and bring back what made L2Elixir special. This project is built with passion, not shortcuts — for the old-school players who remember, and the new ones who want to experience it properly. Thank you for being part of the journey. Together, we’re making L2Elixir great again ❤️ The legends never fade.    ⚙️ General Enabled Class Change service (same class type only) ALT + B → Services → Character Development Enabled Shift + Click on Treasure Chests Players can now identify real chests (Adena, scroll drops) and use Key / Unlock Event deaths now cancel only debuffs, All self buffs are preserved, fixes issues with Root and similar effects Bladedancer class can now log in even when Max Clients (2) is reached. Since an active Bladedancer is not available for every damage dealer and some players tried to abuse this via VPN or a second PC, this feature was added to keep things fair. protections applies, requires testing!    🎒 Items Crystallizing enchanted items now gives the correct increased crystal amount (retail-like behavior) Removed Agathion Seal Bracelet: Rudolph from Santa rewards (Gracia Final item) Added Dualsword Craft Stamp into Milestone Exchange list    🧙 Skills Fixed Banish Undead lethal chance Hot Springs Malaria and similar effects now level up faster while being attacked
    • thats new SEO level tricks you know nothing of noob - bottom line: exposed.
    • Warning: This guy is a big scammer, trying to sell everything, advertising for servers etc. That's his mail address evgesha.nrnr@gmail.com , stay away!   @Atom @Celestine
    • Warning: This guy is a big scammer, trying to sell everything, advertising for servers etc. That's his mail address evgesha.nrnr@gmail.com , stay away! @Celestine @Atom
  • 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