Packets when changing mobile props[POL-29-10-2006 and older]
Posted: Thu Nov 02, 2006 1:40 pm
The following problem actually exists since a very long time, but I never
realized until now that it may not be a client bug:
We noticed that when you change the color or the model# of a mobile,
then the statbar and paperdoll for this mobile close for all other players
who have currently opened them.
We work quite a bit with color mods, e.g. when players are poisoned
we give them an unhealthy skin color... of course in a situation like this
it's especially important for party members to still have the character's
statbar open, so they can see that he was poisoned.
I analyzed the packets and found out, that on changing the color or
the model#, the POL server sends a 0x1D (RemoveObject) packet
and then a 0x78 (SendAddCharToScene) for this mobile to all other
people. This of course has the same effect as if the mobile was
teleported away and back, and explains why statbar and paperdoll
are closed.
Now I'm wondering, instead of packet 0x78 there also exists a packet
0x77 (Update Player), which seems to be made exactly for cases like
this, and which also contains color and model# as values, so it seems
they can be updated by using this packet. So the question is... is there
some reason that mobiles are completely removed and resent, instead
of using this update packet? If not, then I think this is something that
should be fixed...
Thanks,
Xandros
realized until now that it may not be a client bug:
We noticed that when you change the color or the model# of a mobile,
then the statbar and paperdoll for this mobile close for all other players
who have currently opened them.
We work quite a bit with color mods, e.g. when players are poisoned
we give them an unhealthy skin color... of course in a situation like this
it's especially important for party members to still have the character's
statbar open, so they can see that he was poisoned.
I analyzed the packets and found out, that on changing the color or
the model#, the POL server sends a 0x1D (RemoveObject) packet
and then a 0x78 (SendAddCharToScene) for this mobile to all other
people. This of course has the same effect as if the mobile was
teleported away and back, and explains why statbar and paperdoll
are closed.
Now I'm wondering, instead of packet 0x78 there also exists a packet
0x77 (Update Player), which seems to be made exactly for cases like
this, and which also contains color and model# as values, so it seems
they can be updated by using this packet. So the question is... is there
some reason that mobiles are completely removed and resent, instead
of using this update packet? If not, then I think this is something that
should be fixed...
Thanks,
Xandros