fix(core): Converts some packets & misc fixes/cleanup (#414)
- [X] Adds a stop music packet - [X] Converts chat packets - [X] Breaks out chat code a little bit more - [X] Converts character statue animation packet - [X] Renames some folders to have spaces - [X] Organizes and consolidates incoming/outgoing packets for other content - [X] Fixes virtual checks
This commit is contained in:
parent
a146955f6c
commit
fbafd7210d
49 changed files with 814 additions and 662 deletions
|
|
@ -41,7 +41,7 @@ namespace Server.Items
|
|||
|
||||
public override void OnItemAdded(Item item)
|
||||
{
|
||||
if (!(item is VirtualCheck))
|
||||
if (item is not VirtualCheck)
|
||||
{
|
||||
ClearChecks();
|
||||
}
|
||||
|
|
@ -49,7 +49,7 @@ namespace Server.Items
|
|||
|
||||
public override void OnItemRemoved(Item item)
|
||||
{
|
||||
if (!(item is VirtualCheck))
|
||||
if (item is not VirtualCheck)
|
||||
{
|
||||
ClearChecks();
|
||||
}
|
||||
|
|
@ -57,7 +57,7 @@ namespace Server.Items
|
|||
|
||||
public override void OnSubItemAdded(Item item)
|
||||
{
|
||||
if (!(item is VirtualCheck))
|
||||
if (item is not VirtualCheck)
|
||||
{
|
||||
ClearChecks();
|
||||
}
|
||||
|
|
@ -65,7 +65,7 @@ namespace Server.Items
|
|||
|
||||
public override void OnSubItemRemoved(Item item)
|
||||
{
|
||||
if (!(item is VirtualCheck))
|
||||
if (item is not VirtualCheck)
|
||||
{
|
||||
ClearChecks();
|
||||
}
|
||||
|
|
@ -93,7 +93,7 @@ namespace Server.Items
|
|||
|
||||
public override bool IsChildVisibleTo(Mobile m, Item child) =>
|
||||
child is VirtualCheck
|
||||
? AccountGold.Enabled && m.NetState?.NewSecureTrading != true
|
||||
? !AccountGold.Enabled || m.NetState?.NewSecureTrading != true
|
||||
: base.IsChildVisibleTo(m, child);
|
||||
|
||||
public override void Serialize(IGenericWriter writer)
|
||||
|
|
|
|||
|
|
@ -303,6 +303,8 @@ namespace Server.Network
|
|||
ns.Send(writer.Span);
|
||||
}
|
||||
|
||||
public static void SendStopMusic(this NetState ns) => ns?.Send(stackalloc byte[] { 0x6D, 0x1F, 0xFF });
|
||||
|
||||
public static void SendScrollMessage(this NetState ns, int type, int tip, string text)
|
||||
{
|
||||
if (ns == null)
|
||||
|
|
|
|||
|
|
@ -76,7 +76,8 @@ namespace Server
|
|||
Paws,
|
||||
SelimsBar,
|
||||
SerpentIsleCombat_U7,
|
||||
ValoriaShips
|
||||
ValoriaShips,
|
||||
NoMusic = 0x1FFF
|
||||
}
|
||||
|
||||
public class Region : IComparable<Region>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue