Does anyone know the 5021 spawn enity packet?

02/20/2014 14:37 Y u k i#1
I got pretty much everyting set, but the name..

I hope one of you guys has a 5021~ reference packet / structure for me

5065 packets dont work nor do 5017/18

PHP Code:
 *((ushort*)p) = (ushort)Packet.Length;
                *((
ushort*)(2)) = (ushort)PacketType;
                *((
uint*)(4)) = (uint)Player.UID;
                *((
uint*)(8)) = (uint)Model;

                if (
Player.IsPlayer)
                {
                    *((
uint*)(12)) = (uint)Player.ReturnFlags();
                }
                else
                    *((
uint*)(12)) = (uint)0;
                *((
ushort*)(20)) = (ushort)Player.GuildID;
                *(
23) = Player.GuildPosition;

                if (
Player.Alive)
                {
                    *((
uint*)(28)) = (uint)Helmet;
                    *((
uint*)(32)) = (uint)Armor;
                    *((
uint*)(36)) = (uint)RHWEP;
                    *((
uint*)(40)) = (uint)LHWEP;
                }
                *((
ushort*)(48)) = (ushort)Player.CurHP;
                *((
ushort*)(52)) = (ushort)Player.X;
                *((
ushort*)(54)) = (ushort)Player.Y;
                *((
ushort*)(56)) = (ushort)Player.Hair;

                *(
58) = Player.Direction;
                *(
59) = Player.Action;
                *(
60) = 0;
                *(
62) = Player.Level
02/20/2014 15:03 Aceking#2
I dont know if you would be willing, but posting the offsets might help narrow down whats available.
02/20/2014 15:17 Y u k i#3
Quote:
Originally Posted by Aceking View Post
I dont know if you would be willing, but posting the offsets might help narrow down whats available.

Updated my post.
02/20/2014 15:59 OverKill.#4
trail and error ? it's only like 50 possibility :P :P
02/21/2014 02:12 Y u k i#5
Quote:
Originally Posted by OverKill. View Post
trail and error ? it's only like 50 possibility :P :P
yeah... i ran a loop from offset 70 to 100 didnt do anything... im missing something else.
02/21/2014 03:32 Aceking#6
Are you sure the packet isnt the same as 5065?
Those offsets are the same from my comparison.

Helmet and Armor color are 84 and 86 respectively.
If those offsets are in 5021, then your name offset is 90.

Are you sure you are sending the string correctly?
02/21/2014 03:46 Y u k i#7
Quote:
Originally Posted by Aceking View Post
Are you sure the packet isnt the same as 5065?
Those offsets are the same from my comparison.

Helmet and Armor color are 84 and 86 respectively.
If those offsets are in 5021, then your name offset is 90.

Are you sure you are sending the string correctly?
Yes I´m sure I send the string correctly. I send it just the way I sent it on 5018 where I had no issues with displaying names. Offset 90 does not work. Its weird... It used to be 95 on 5018, suddenly the packet is smaller? Weird stuff..
02/21/2014 12:28 Aceking#8
Does the helmet and armor color work on 84 and 86?

Nvm.

Its offset 80.

Your own character name is set through packet 1006. So you will need to figure out that offset.
02/21/2014 18:51 OverKill.#9
well maybe you are not sending the name length then the name string ?
a decent solution would be RE and trace the packet backwards