[Feature Analysis] Interface Items

08/20/2012 21:50 Spirited#1
Hey everyone.
I know how hard it is to code features when you don't understand how the feature works or what packets you should be using, so here's my packet log and analysis for interface items:

Packet Log:
Code:
Packet 3 -- From: TQServer -- Length: 84 | Receive Length: 92 -- Type: 1108
54 00 54 04 A7 46 5E 0E 39 F6 16 00 00 00 00 00 ;   T T§F^9ö     
29 10 02 00 77 0E 02 10 02 00 03 00 00 00 00 00 ;   ) w      
0D 00 00 00 00 00 00 00 00 05 00 00 47 00 00 00 ;   
          G   
00 00 00 00 00 00 01 00 09 00 00 00 28 00 00 00 ;          	   (   
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ;                   
00 00 00 00 54 51 53 65 72 76 65 72             ;       TQServer
My Analysis:
The interface item packet is similar to the item information packet (1008). It's used for multiple functions, such as updating equipment on the character and showing items in interface windows such as a shop in the market. This packet can be useful when coding features such as dyeing equipment. When the color is changed, instead of sending a large spawn packet to everyone in the shop, and instead of unequipping, sending an item packet, and sending the equip packet, you can send this packet. The packet starts with two identities (the item id and character/interface id - not particularly in that order). It then goes to the type of packet it is (what it'll be updating), and then finishes with the item's information. The client doesn't request it at any time from the server. It's the server that sends the packet (and that's it).

Picture:
08/20/2012 22:10 _DreadNought_#2
Not that I didn't already know what you said, but it's very nice to get a refresh.

Keep it up :P
08/20/2012 23:07 nTL3fTy#3
Quote:
Originally Posted by Fаng View Post
This packet can be useful when coding features such as dyeing equipment. When the color is changed, instead of sending a large spawn packet to everyone in the shop, and instead of unequipping, sending an item packet, and sending the equip packet, you can send this packet.
If I recall, you use the regular 1008 ItemInfo packet to update items.
08/21/2012 01:12 Spirited#4
Quote:
Originally Posted by nTL3fTy View Post
If I recall, you use the regular 1008 ItemInfo packet to update items.
Not when it's on you as equipment. You use this packet instead because it can be sent to others around you as well.
08/21/2012 11:36 Korvacs#5
This packet has 4 subtypes and covers a variety of circumstances, updating, viewing, trading and the default which is typically used to notify the client of existing items on login.
12/02/2019 08:08 lifeofdavo#6
Is it possible to change the item number of an already existing item?
-Very new, sorry for the dull question.