View Full Version : [guide] recommendation (thx to torune)
Im learning asm atm and I thought it would be a good idea to use Torunes Rec code to teach myself and others on how to code.
*Note* this is not complete.. the parts I left out are the part I do not understand. Im hoping someone can continue on this guide or ill update it later.
P.S.: Guide comes with an awesome ASM reference page
http://templar-studios.com/Partial_Guide.rar
If i messed up on anything, please correct me. This is a learning process! :)
Edit: Take word wrapping off if you use notepad
tpuNIsher
24.05.2006, 12:30
Awesome job my friend!
Ill look in it harder.. hopefully it will open up some doors to me :]
Yeeeeeaaa. :D
Now I can take a look into asm with this guide.
Thanks to Torune, and thanks to Thalone. :)
tpuNIsher
24.05.2006, 15:01
I have a proposal for you Gin :p
Let us join together.. all that still believes in sharing their work for other's help.. not fucking selling them for money..
Teach each other and learn slowly. I know it might sound retarded.. but better than any? :p
The last resort to save L2 community imo.
damn that reference page is very nice thalone :thumbleft:
never tried asm, gonna try it out thx for the guide and your time :)
Aikeleer
24.05.2006, 16:35
Dude freaking awesome man. Your the man
Aikeleer
24.05.2006, 16:49
Got another question though. How do you know the function names of the l2server? Or do you have to write all functions yourself? Take fSendToSinglePlayer in example. It's used in the dll part multiple times, but is this simply already in the L2Server?
yeah, thats already in L2server... I dont know how torune gets it though.
This is all a basic guide so hopefully torune or someone whose good in asm can help us out a bit and fill in the blanks. From this we can move on and hopefully work on things like CP/autoss
Thanks for all the replies ^_^
Here is the online version of the reference page:
http://templar-studios.com/asm/Reference.htm
Here is a ASM Common instruction tutorial:
http://templar-studios.com/asm/Common_instructions.htm
For some GREAT C++ tutorials check out:
http://www.cprogramming.com/tutorial/lesson1.html
If you have any questions, feel free to pm/reply and ask. Ill answer if I can ^_^
U can use ollydbg program for debuging l2server. Then u will see ... I think good idea will be start new dll form 0. Coz i dont know how to make new dll. Can somone write guild about this ?. We dont need share. We need only someone who will be write basic info about this.
thats what im trying to do Duna... as I learn I will teach others
Aikeleer
24.05.2006, 21:33
Aspire posted an exmple of a full DLL source somewhere, will you be able to use that for making more guides Thalone?
looks good
i might post macro's source code later.
Hello, and thanks. :wink:
To continue with comments, the basics of asm are not that hard. The problem is the call of function, and the use of some particular adress when we don't even know what is on it. I think that the main part to learn, and it seems to be a loooooong way to check this out.
#include <windows.h>
//DLLMain
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
{
switch( fdwReason ){
case DLL_PROCESS_ATTACH:
//Start_Point
break;
case DLL_THREAD_ATTACH:
break;
case DLL_THREAD_DETACH:
break;
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
This is empty dll (C++).
So, let's try fill it. =)
P.S. Big problem for me it's attach dll to server.exe )
Dll, that i attach to post, compiled from ASM code that Aspire post.
I can't test it, but you can do it (if you interesting this certainly) ;)
Вложения из исходного сообщения (сами файлы в копии отсутствуют):
li2patch_690.rar — 2286 байт
push 7ah; // _S__7A_SYSTEMMESSAGE , a SystemMessage Packet
push sFormat_1; // TEXT_TYPE format ?
push pSocket; // UserSocket where the packet will be sent ?
Torune has gained my respect back. Props to ya all for this. Tutorials is what we needed, not full shares. :D
tpuNIsher
25.05.2006, 02:57
I believe www.codeproject.com is one of THE BEST places to learn about dlls.
It's frigging AWESOME there..
they have frigging EVERYTHING.. but asm.
mcrabben7
25.05.2006, 04:28
I believe www.codeproject.com is one of THE BEST places to learn about dlls.
It's frigging AWESOME there..
they have frigging EVERYTHING.. but asm.
You don't have to write a DLL in assembly. You can do it the same in C++, or any other language which supports using the Windows API and DLL function importing/exporting
I know I'm new around here but I am going to take a stab at making my own basic C4 dll that will fix CharInfo and UserInfo packets based off some asm code aspire posted. It'll be a learning exercise for me, at least.
I'll be trying this after I do my college homework. If I get anything substantial I will try to post it. Wish me luck!
tpuNIsher
25.05.2006, 05:11
Best of luck :]
i updated the tutorial a little... torune said some things are out of place and im trying to figure out where, after i do ill post new code with comments.
Hopefully this can be a change from full shares to tutorials so others can make there own stuff
Thalone:
Great idea about this way sharing. Thanks!
I have a proposal for you Gin :p
Let us join together.. all that still believes in sharing their work for other's help.. not fucking selling them for money..
Teach each other and learn slowly. I know it might sound retarded.. but better than any? :p
The last resort to save L2 community imo.
i'd be more than happy to do this. i have a server, website, and basicly unlimited bandwidth. msg me your msn or aim
I have a proposal for you Gin :p
Let us join together.. all that still believes in sharing their work for other's help.. not fucking selling them for money..
Teach each other and learn slowly. I know it might sound retarded.. but better than any? :p
The last resort to save L2 community imo.
i'd be more than happy to do this. i have a server, website, and basicly unlimited bandwidth. msg me your msn or aim
I wish to join to your little team!
http://www.progz.ru/articles.php?issue=9
This is a start of making own .dll! (in russian)
BloodLine
29.05.2006, 22:42
I have a proposal for you Gin :p
Let us join together.. all that still believes in sharing their work for other's help.. not fucking selling them for money..
Teach each other and learn slowly. I know it might sound retarded.. but better than any? :p
The last resort to save L2 community imo.
i'd be more than happy to do this. i have a server, website, and basicly unlimited bandwidth. msg me your msn or aim
I wish to join to your little team!
Ok well we are going to be up soon and we will share our work also our website is up but not 100% completed yet and forum also need some touch up but we will like to join this team to keep l2 community alive hopefully my server will go up anytime now so message me if you need people in thx
and thx for this share its gr8