Effects packets (#308)
- [X] Changes effect packets - [X] Updates playing sounds - [X] Updates Effects class to have more options so there are less direct calls to building the packets - [X] Changes bonding status packet
This commit is contained in:
parent
1c9439e4fd
commit
361ec4dba4
53 changed files with 958 additions and 833 deletions
|
|
@ -14,6 +14,7 @@
|
|||
*************************************************************************/
|
||||
|
||||
using System;
|
||||
using Server.HuePickers;
|
||||
|
||||
namespace Server.Network
|
||||
{
|
||||
|
|
@ -305,19 +306,6 @@ namespace Server.Network
|
|||
}
|
||||
}
|
||||
|
||||
public sealed class PlaySound : Packet
|
||||
{
|
||||
public PlaySound(int soundID, IPoint3D target) : base(0x54, 12)
|
||||
{
|
||||
Stream.Write((byte)1); // flags
|
||||
Stream.Write((short)soundID);
|
||||
Stream.Write((short)0); // volume
|
||||
Stream.Write((short)target.X);
|
||||
Stream.Write((short)target.Y);
|
||||
Stream.Write((short)target.Z);
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class PlayMusic : Packet
|
||||
{
|
||||
public static readonly Packet InvalidInstance = SetStatic(new PlayMusic(MusicName.Invalid));
|
||||
|
|
@ -430,4 +418,14 @@ namespace Server.Network
|
|||
Stream.Write((short)0x21);
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class DisplayHuePicker : Packet
|
||||
{
|
||||
public DisplayHuePicker(HuePicker huePicker) : base(0x95, 9)
|
||||
{
|
||||
Stream.Write(huePicker.Serial);
|
||||
Stream.Write((short)0);
|
||||
Stream.Write((short)huePicker.ItemID);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue