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
|
|
@ -2278,7 +2278,7 @@ namespace Server.Mobiles
|
|||
20,
|
||||
5042
|
||||
);
|
||||
Effects.PlaySound(m, m.Map, 0x201);
|
||||
Effects.PlaySound(m, 0x201);
|
||||
|
||||
m.Delete();
|
||||
}
|
||||
|
|
@ -3216,12 +3216,7 @@ namespace Server.Mobiles
|
|||
|
||||
if (IsBonded)
|
||||
{
|
||||
var sound = GetDeathSound();
|
||||
|
||||
if (sound >= 0)
|
||||
{
|
||||
Effects.PlaySound(this, Map, sound);
|
||||
}
|
||||
Effects.PlaySound(this, GetDeathSound());
|
||||
|
||||
Warmode = false;
|
||||
|
||||
|
|
@ -3845,7 +3840,9 @@ namespace Server.Mobiles
|
|||
|
||||
IsDeadPet = false;
|
||||
|
||||
Effects.SendPacket(Location, Map, new BondedStatus(Serial, false));
|
||||
Span<byte> buffer = stackalloc byte[OutgoingMobilePackets.BondedStatusPacketLength];
|
||||
OutgoingMobilePackets.CreateBondedStatus(ref buffer, Serial, false);
|
||||
Effects.SendPacket(Location, Map, ref buffer);
|
||||
|
||||
SendIncomingPacket();
|
||||
SendIncomingPacket();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue