![]() |
[SHARE] L2 Extension Project 'Elhaym' v0.8c
Introduction:
I know that the original C1 modded servers are pretty much dead when compared to the C4 servers, but I have included the entire source code for this project (an extender DLL for those who don't know). I want to give thanks to Alien003, testdude, RipperX, Annatar, Nevyn, and the support of many other people who supported me the 6 weeks or so I worked on this project, and those who contributed code. This was my first ever DLL hack, and my first ever major assembly job. I must say I amazed even myself that I was able to learn all of this in such a short amount of time. The original thread about the beginnings of this project, as well as real old skeleton code, is here: https://postpacific.loc-online.com/f...ead.php?t=4833 About the Source: All of this code is unchanged. It works. There is one bug with the CP damage, however. The damage won't register as it is written now, but if you take out the check for pAttacker being a Player Character you can see mobs and people attack you and take your CP. The problem lies in the pAttacker variable of CombatPointsDamageHandler(). It is ALWAYS NULL whenever I pass it, so I must assume I accidentally passed the wrong variable when I was moving the code. I would fix it, but I've moved on to the C4 platform and playing with that. The night I got this version done I had to leave, then later move 100 miles, then live with my parents for a while before I went back to my University town. I will be moving again in a few days. You can say I've been busy. One last thing about the source is that ReportInterface and ODBCInterface are NOT my classes. I was given them during the time I was working on this project. I know the original author of the ODBC class was someone named Maya (or similar) who worked on a DLL project long, long ago. ReportInterface might be tontor's since it works almost the same way as his patch does. I made a few changes in those files, trying to get debug output, but you can always take the changes out and uncomment the original lines. It's pretty easy to see what I changed. Some Files I Can't Share Hairslots was working on my test server through a DLL I was provided. I know how to do them, but at the time my goal was to catch up feature wise to other DLLs, so I wasn't going to recode something I could hex or attach a small DLL for. That's why not everything is in the code. Some fixes are in my EXE file. Hairslots was in a DLL I was given. How to Make a Test Server If you wish to use this to create a test server that people can play on, simply get the C4 Hex Fixes Pack (and maybe the C3 Fixes pack) provided by HF and use the fixes you need (Warehouses, Private Stores, etc.). You can attach the compiled DLL to the server EXE using Stud_PE or many other PE import adder programs. I would provide my EXE with all the hexes and the DLL as well, but the DLL is not mine to give out. If I get permission from someone, maybe I'll share it along with the EXE. Conclusion: I attached the L2EP 'Elhaym' v0.8c source code and project below. As long as this code is NOT used to make profit in any way, you're free to use it for learning or on an actual server. I make no warranty, so if your house explodes, too bad ;P Hope some people can learn about how a project like this works, make progress on some C4 -> C5 changes, and if you have any comments, leave a reply here. I'll try to answer questions people might have. Disclaimer: This DLL will NOT work for the retail C4 server files. This is only for the older C1 -> C4 modded files. Вложения из исходного сообщения (сами файлы в копии отсутствуют): L2ExtensionProject_v0.8c.rar — 1810122 байт |
Wow, I know this will help lots of people understand how to hook into the l2 server process etc.
Sadly I do not have the skills to utilize this share, but I do understand how big!! it is. Kudos to you for sharing the work, allowing others to learn from it and hopefully advance the community more! |
Thank u mcrabben this is a good base to learn !
It's an awfull big project i see and i want to say you did a splendid job ! |
This right here is the best thing ever to come out of PP ... It not only applies to Lineage 2, but to real life as well. The greatest thing that one could ever want to achieve from PP is to further their knowledge of computers through their love of Lineage 2. It never ceases to amaze me, that when humans are presented with a difficult problem, people rise to the challenge and further the advancement of society. The skills learned through analysis of this code have so much value to those who can harness them, and if you have never taken in interest in what you can do with programming, this is a great way to learn. Thanks for taking the time to release this to everyone Mcrabben .. u rock
/rant off |
I guess now that C4 is out most people don't care about source code for an older DLL project. Oh well. I hope those of you that learn something from it go on to use it in the future.
@HongK: Thanks for the encouraging and supportive words. I know that you're someone who really understands what something like this is. Even though my project never got far enough, soon enough, to be really appreciated, at least someone will get use out of it. @Sakumi and TheOrder: thanks to you two for your support as well. There are others who supported me, of course. Maybe PP is just not as active as it used to be, heh. I might work on a small feature set for a C4.dll, but since Cypher is doing well patching up exploits I won't do any of that. If I make something, I'll see about releasing it. |
Thanks mcrabben7, i've been using your project a bit as a guide for myself as well when trying to dig in l2server's code.
But yea the leaked C4 killed many projects heh. Useless? No way, ... heck bet peeps will want C5 features sooner or later :3 |
i'd like the teleport marriage rings in c4 ^^ hint hint
|
i heard c5 SE is out on 99nets... just wait for the first crack :)
|
SE stands for ?
|
kinda sad... 8 replies for this topic... /sigh
|
Quote:
Still VERY much props and respect for releasing this. I think you have helped more than you realize. I've kept the files in a safe place for my future reference as well. This beer's for you m8 |
Quote:
The only thing you'd have to learn how to do is catch a user / user2 command packet and look for the teleport string. I've seen people add new commands before, just never got that far with it. BTW, here are some useful little files for you developers to learn along side with. See if they help you understand more. Вложения из исходного сообщения (сами файлы в копии отсутствуют): AVE_Hex_Values.txt — 112 байт aie_creature_names.txt — 1122 байт opcodes.zip — 78355 байт 1737 L2Server Functions.rar — 20877 байт |
Well I am going to share a small little learning addition to this project. You can use this when working on ANY sort of DLL project, but this one is for the L2Server in particular. This style of code I am about to show you can be used on retail C4 DLLs as well, just change the order of the variables. Anyways, here it is.
Class User: Code:
#include "Shared.h"Code:
#include "Shared.h"Code:
/*Example usage:Hope the classes example is helpful to some people. BTW, I didn't compile or test these at all, but they should be ok...assuming you do all the other code changes you'd have to do *laughs* Вложения из исходного сообщения (сами файлы в копии отсутствуют): L2ServerClasses.rar — 2492 байт |
Nice job man. Just handle with care those "DWORD" pointer-type members and also the __stdcall is quite obsolete (everything is __fastcall anyway).
Cheers |
I've seen his project grow, and work, and I must admit I have been amazed all the way. Really nice job elay, and no worries it has been more than usefull through your own use of it, and then through the knowledge you acquired and now share with the others!
Good luck with your next projects, take care. |
nice project mcrabben7 :p
Good luck! |
Bumping with a L2Server pack with all the hexes already added, as well as the fabled, legendary 'socketfix' DLL that I wasn't going to share before. Really have no way of finding who made it, so apologies to whomever made it but I doubt you care anymore ;)
patch.dll is Tontor's latest patch version. socketfix.dll fixes the dreaded socket leak in C1 modded servers, as well as does hairslots. Anyone is free to disassemble the L2Server.exe, and the socketfix.dll is packed but the right people won't let that stop them. This pack should work out of the box, just add l2server.ini and go. L2EP Server Pack @ FileFront |
Can you reshare the pack plz?. Thx a lot
Plz... nobody could reshare L2EP Server Pack??? Plz, smd... thx all |
|
Attached to the forum as well...
Вложения из исходного сообщения (сами файлы в копии отсутствуют): L2EP_v0.8c_L2ServerPack.rar — 834535 байт |
not bad... not bad...
past good times.... %) below is my old autoSS recharge func... =) it still have better than even C4PTS autoSS logic =) Code:
CItem* CCreature::FindFirstItemByClassID(int nItemID) |
Nice, Thx a lot man, a LOT
|
Quote:
|
Quote:
|
he is just a poor guy who wants to learn:(
|
Quote:
|
Quote:
Elhaym already has working AutoSS logic. Did you ever even look at it? |
Delphi source-code? :o
What is? IF you're refering to what hd wrote thats not Delphi >> |
HD writes that code on C++. mcrabben7 is just kidding. :)
|
Quote:
Anyways, my mistake, it was C++ obviously :D |
download isnt working anymore. could you reshare plz?
|
| All times are GMT. The time now is 16:23. |