[Quick Question] On view items packet coding.

07/12/2009 06:06 pro4never#1
<edit>

Removed due to stupidity of question:

Thanks for the help ^^
07/12/2009 06:42 _tao4229_#2
Lol, no.
What you just did makes no sense at all.
07/12/2009 06:47 pro4never#3
Quote:
Originally Posted by _tao4229_ View Post
Lol, no.
What you just did makes no sense at all.
I agree ^^.

Zero suggested I look at Lotf to find out how it coded the view gear packet. I'm trying to convert that as best as I can to work for coemu so I can enable view gears. I'm confident I've screwed up the original code but it's less errors so I was convincing myself I was on the right track. I got it down to 1 error and then got stuck.
07/12/2009 06:52 _tao4229_#4
For your info, first of all, that's not the view equipment packet.
That's a string (3F7) packet for the spouse name of who you're viewing.
Second, all you're doing is allocating and assigning to a packet, you're not even sending it.
Third, you're assigning the packet to values of CSocket.Client.*, which is the person REQUESTING the view, you need to look up the player the requester requested by the UID in the packet that's sent to the server. It's at the same offset as the UID in jumping, changing action, anything of the same packet type (3F2).
Fourth, the packet that actually sends the EQUIPMENT to the requester is the same packet for adding equipment or an item to inventory. It's the same structure though the UID of the items should be the UID of the person wearing them, and instead of the mode to add items, it should be the mode to view items (4 maybe? that's what i remember from 5017, could be different).

Yeah, good luck.

(Basically you're so wrong it doesn't even make 1 bit of sense)
07/12/2009 08:27 _Emme_#5
#closed