I'll give this thread a BUMP after a long long time
Since zeteris didn't share his packets I had to parse everything myself
And because it was my first try and I had ABSOLUTELY no experience with that old clients it took me quite long(just started with it again, today, because I learned some asm)
Because I had to parse the packet myself I had to, ofc parse it completely, and well that's what I did.
There are only two parts left(One is a part of the quests, and the other one is something at the end)
Once I know the structure of the whole packet, I'll release it
Note: I only know how it's parsed not for what the data is used!!
But that's quite easy to find out, if needed
Here goes a Screenshot:
[Only registered and activated users can see links. Click Here To Register...]
I still spawn at some unknown area and didn't parse the packet with all the char info(hp/mp etc) yet, but this will be done rather fast
This packet was pretty hard tbh
Oh and once my Server is somewhat useable(npc/etc working) I'll release the source code
----------------------------
Another update^_^
Finding out what x/y sectors I need to use, took longer than i thought
a/w
I got it working and understand how it works
realXPos = (xSector - 46)*192 + XOffset/10
realYPos = ((int)ySector/2 - 23)*384 + YOffset/10
BUT
You don't send the ySector to the client!!!
You send (ySector/2) as BYTE, which means that won't be able to get to all odd ySectors(everything after the comma is cut off!)!
How to solve this?
You can't "solve" it
Your yOffset now is valid from 0 to 3840(the xOffset just like it has always been from 0 to 1920)
Example: How to get to ySector 45:44
Let's calculate x first:
x = (45 - 46) * 192 + 0/10 = -192
Now let's try y:
y = (44/2 - 23) * 384 + 0/10
y = (22 - 23) * -384
y = -384
Please not that you can't get to 45:45 directly!! If you want/need to you will have to add 1920 to yOffset, which will put you in the lower left corner of 45:45
That's it i guess
Screenshot(just because i can):
[Only registered and activated users can see links. Click Here To Register...]
------------------------
Once more an update(wonder how many posts epvp stacks onto the previous one lol)
I got movement working
Not that it was that hard(but it wasn't easy either!), but it made "exploring" things easier^^
Not too bad for 2 days work
Some Screenshots:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
Pretty cool if you can run from ht to dw without teleporting^^