Readme:
The C++ is not easy to play around, which means if you have no knowledge at all but want to know every piece of it, please grab a c++ book and start learn.
Furthermore, any l2j lovers/haters please stop flaming at each other in this section. if you read l2j's code carefully, some parts of it are just like l2off, and for l2off devs, we all know where we can find help much easier, l2j code.
Notes:
Same Assembling function as NCSoft, with some optimizations
The opt_memcpy is my own helper method, which I am not sure if its faster or not compare with rtlcopymemory. maybe copy of truck memory is faster than byte by byte.
//Demo of how to send back loginOk Packet
EnAssemble(pBuffEx, BUFFER_SIZE, "hcdddddddddddch", 50, 3, rand(), 65894300, 0, 0, 1002, 0,0,2, 14705248, 0,0,0,0);
for more detail read the code.
TOFIX:
I dont know why but my CheckPassword() function is not working properly.
ps: if somebody can reorganize the code in a better way, please do so, I dont good at this.
|