Page 1 of 1

new packet sizes

Posted: Sun May 12, 2013 9:56 am
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 :(

Re: new packet sizes

Posted: Sun May 12, 2013 11:57 am
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?

Re: new packet sizes

Posted: Wed Jul 24, 2013 1:58 pm
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?

Re: new packet sizes

Posted: Sat Jul 27, 2013 3:40 am
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

Re: new packet sizes

Posted: Wed Aug 07, 2013 3:00 pm
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