Showing level in trade window?

03/13/2011 23:38 Lateralus#1
Probably a dumb, simple question. I know it's minor. x_x

Does anyone know how it's done?
03/13/2011 23:43 CptSky#2
The trader information are from the spawn packet. To request a trade, the two players need to be on the other screen, so the spawn packet will always be sent before.
03/14/2011 00:04 Lateralus#3
Quote:
Originally Posted by CptSky View Post
The trader information are from the spawn packet. To request a trade, the two players need to be on the other screen, so the spawn packet will always be sent before.
I'm working on a 4267 server. I think there isn't a level entry in the spawn packet for characters?
03/14/2011 00:17 Arco.#4
Since the packet is 57 + Character_Name and the wiki just shows up to 54 being used, why dont you try the last 3 remaining bytes and give those a whirl?
03/14/2011 01:15 Lateralus#5
If I'm assuming monster level is the same as character level, I'm sending the correct packet structure... Just tested. Trade level still isn't showing though.
03/14/2011 02:45 CptSky#6
I lost my source based on 1017 (Similar to CO1, but Fr) and I can't remember anything about that, but it should be with the spawn packet... Need to find the correct offset.
03/14/2011 03:23 pro4never#7
Quote:
Originally Posted by Lateralus View Post
If I'm assuming monster level is the same as character level, I'm sending the correct packet structure... Just tested. Trade level still isn't showing though.
They are different depending on the type of entity (player is like... 15 offsets ahead I think on new patches). No clue where it would be on the old patches
03/14/2011 06:56 Lateralus#8
I got it working by sending an update packet before opening the trading window. I don't know if that's how it's actually done, but it works for me. Thanks for everyone's help anyway lol.

Edit: That's how it's done on the official servers. I didn't know COoperative had a packet logger. =D