new packet sizes

Here you can discuss packets, implementation and design, and software related to the packet sniffing and such. This is not the place to post packages for POL, but rather discuss the packet side of them.

Moderator: POL Developer

Post Reply
RusseL
Forum Regular
Posts: 375
Joined: Fri Feb 20, 2009 8:30 pm

new packet sizes

Post by RusseL »

Anyone has info about last packet changes?
For example in our docu (http://docs.polserver.com/packets/index.php) info about packet F3 and 24 is outdated now...

Packet F3 24bytes -> 26bytes
Packet 24 7bytes -> 9bytes

I need some info about new packets :(
RusseL
Forum Regular
Posts: 375
Joined: Fri Feb 20, 2009 8:30 pm

Re: new packet sizes

Post by RusseL »

I found some info

Code: Select all

[b]Packet 0x24 - Draw Container[/b]
Sent By: Server
Size: 9 bytes
[b]Packet Build[/b]
BYTE cmd
BYTE[4] item id 
BYTE[2] model-Gump (0x003c is backpack)
BZTE[2]	Container Type (0x00 for vendors, 0x7D for spellbooks and containers)
Container Type was added in UO:HS clients.

[b]Packet Name: Give Boat/House Placement View[/b]
Packet: 0x99
Sent By: Both
Size: 30 Bytes
[b]Packet Build[/b]
byte	ID (99)
byte	Target Type (0x00 = Object Target, 0x01 = Tile Target)
dword	Sender Serial
byte	Flags (0x00 = None, 0x01 = Harmful, 0x02 = Beneficial, 0x03 = Cancel Target)
byte[11]	0x00
word	Graphic
word	X
word	Y
word	Z
dword	Hue
Hue was added in UO:HS clients

[b]Packet Name: Quest Arrow[/b]
Packet: 0xBA
Sent By: Server
Size: 10 Bytes
[b]Packet Build[/b]
BYTE[1] cmd
BYTE[1] active (1=on, 0=off)
BYTE[2] xLoc
BYTE[2] yLoc
BYTE[4] Target Serial
Target Serial was added in UO:HS clients.
Has anyone more info?
Last edited by RusseL on Sun Jul 28, 2013 1:37 am, edited 1 time in total.
Zik
Novice Poster
Posts: 41
Joined: Sun Feb 07, 2010 9:39 am
Location: Ukraine

Re: new packet sizes

Post by Zik »

Thanks for the QuestArrow info, it helped me a lot! :bacondance:

BTW, what does Packet: 0x2A (Blood) do?

Also, I found info that guys on RunUO implemented Blink\Flash with a help of packet [0x70] (Graphical Effect). Is it possible on POL?
Tomi
POL Developer
Posts: 478
Joined: Tue Feb 21, 2006 5:08 pm

Re: new packet sizes

Post by Tomi »

About that packet 0x99, the hue offset is now supported by core with the last revision

Code: Select all

07-27-2013 Tomi:
  Changed:    UO::TargetMultiPlacement( character, objtype, flags := 0, xoffset := 0, yoffset := 0, hue := 0 );
              New optional hue parameter to show hued multis which are supprted by clients >= 7.0.9 ( HSA )
              Older clients ignores this option
Zik
Novice Poster
Posts: 41
Joined: Sun Feb 07, 2010 9:39 am
Location: Ukraine

Re: new packet sizes

Post by Zik »

About 0x70 Packet and Special Effects - it is working!

Code: Select all

function SpecialEffect( who, type:=2 )
var packetString := "70";
packetString := packetString + fixPacketLength(hex(4),1); //  0x04 = special effects
packetString := packetString + fixPacketLength(hex(0),4);
packetString := packetString + fixPacketLength(hex(0),4);
packetString := packetString + fixPacketLength(hex(type),2); // (for type = 0x04 use 0x00 - 0x04 values for different special flash effects
// 0 - Fade out, 1 - Fade in, 2 - Flash, 3 - Fade In&Out, 4 - very short Black Flash
packetString := packetString + fixPacketLength(hex(0),16);
SendPacket( who, packetString );
endfunction
Post Reply