Jump to content

Recommended Posts

Posted

XorString contains the xor values loop

'i-4' because the encryption starts at fourth byte

 

'and 7' because the loop is 8 bytes long... the effect of the 'and' here is to mask the higher bits. This will result in 0-1-2-3-4-5-6-7-0-1.....

 

'+1' because delphi indices start at 1 instead of 0

Ammm, seems easy. But i would have it done in another way. I usually put the loops outside, you put the loop inside(in the index of the string). :)

Posted

Heh, you unhide author first post ^)

 

P.S.

sltbnjr, replace CHR(ORD()) with PInt(). Working faster.

L2 tcp connections aren't time critical

or at least not that much.

Posted

yep I think dmitry is right xD dunno the difference tho but the system messages sometimes start showing only when you click on the walker to be on top :P and sometimes it has trouble logging in, but thats normal right? :P

Posted

god you just have to merge them

 

you're never gonna learn anything if you just keep asking people to do everything for you

var
XorString : string;
Message : string;
gserver : boolean;
i : integer;

Procedure OnCreate;
begin
//gSys.tLA2BFToken:= 'a%S[{&*-94}^#%xx-P]a'+#0;
XorString := HStr('00 00 00 12 18 85 a0 00');
end;

function Crypt(buffer : string): string;
begin
  for i := 4 to length(buffer) do begin
    buffer[i] := Chr(ord(buffer[i]) xor ord(XorString[((i-4) and 7)+1]));
  end;
  Result := Buffer;
end;

begin
  if(not _gfromserv) and (_gAbsNumPkt=3) then begin
     gserver := true;
  end;
  if (not _gFromServ) and (copy(_gBuff,3,1)=#$38) then begin
    ScanPck5(_gBuff,4,'s',Message,null,null,null,null);
    if Message = 'Cat'+#0 then begin
      GSys.EnSendS(crypt(HStr('0C 00 45 EF 03 00 00 00 00 00 00 00')));
      gBlockPacket;
    end;
  end;
  if gserver and (length(_gBuff)>3) then begin
     _gOutBuff:=Crypt(_gBuff);
  end;
end.

  • 2 weeks later...
Posted

sorry to post again, but its not working, maybe some change on server's security? if u can edit and put all the info together you're my hero, tnx!

 

ps: the loginserver ip now is 67.228.134.114 port 2106 and protocol version 685

 

  • 3 weeks later...
Posted

sorry to post again, but its not working, maybe some change on server's security? if u can edit and put all the info together you're my hero, tnx!

 

ps: the loginserver ip now is 67.228.134.114 port 2106 and protocol version 685

 

 

 

mmm they updated to C5 and dont work anymore

Posted

since i didn't try the walker before it was c5, i wanna ask if no1 can run it now? when it's c5?

or there's still people who can connect? thanks

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

    • LF the following chars / items on chronos   Elf - with class Aeore's Shillen Saint - this is possible if you had done a class change with a ticket in the past. Dwarf - with class Mystic Muse - same as above   Any greater jewels / Radiant Circle Grace or Foresight +5 and above Cloak      
    • First, you need to understand what you're doing and what you want to achieve. You have to choose a server core. After that, decide what you want your server to include, code it, modify the client to fit your server, go public, and drink champagne.   If you know how to code, creating a server is relatively easy — a few months of work and you can make it happen. Modifying the client is a completely different story. There’s a lack of tutorials, tools, and source materials. I’m currently working on the client myself, and I’ve already spent over three weeks just trying to get started due to the lack of information. If you don’t have the knowledge and experience, you’ll need a team and a bag of money — but realistically, it just won’t succeed.
    • The server has been online and stable for over 2 months now, and we’re still going strong! No wipes, no shortcuts ~ just continuous work, daily fixes, events, and improvements to ensure the best possible experience.   Great News! 🔥 CHAPTER II IS COMING — GRACIA FINAL 🔥 On February 16, L2Elixir enters a new era. The server will be officially updated to Gracia Final, opening Chapter II of our journey. Expect new content, improvements, and surprises that will refresh the gameplay while keeping the classic Gracia Final spirit alive.   More challenges, more competition, and more reasons to log in.   📅 Update Date: February 16 ⚔️ Chapter II: Gracia Final This is not a reset. This is evolution.   Prepare yourselves — Chapter II begins soon.   Website: https://l2elixir.org/ Discord: https://discord.gg/5ydPHvhbxs    
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here 👉https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..