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:
Kamron Batman 2021-01-16 21:01:54 -08:00 • committed by GitHub
parent a146955f6c
commit fbafd7210d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 814 additions and 662 deletions

View file

@ -52,21 +52,11 @@ namespace Server.Engines.Chat
return false;
}
public void SendMessage(int number, string param1 = null, string param2 = null)
{
if (Mobile.NetState != null)
{
Mobile.Send(new ChatMessagePacket(Mobile, number, param1, param2));
}
}
public void SendMessage(int number, string param1 = null, string param2 = null) =>
SendMessage(number, Mobile, param1, param2);
public void SendMessage(int number, Mobile from, string param1, string param2)
{
if (Mobile.NetState != null)
{
Mobile.Send(new ChatMessagePacket(from, number, param1, param2));
}
}
public void SendMessage(int number, Mobile from, string param1 = null, string param2 = null) =>
Mobile.NetState.SendChatMessage(from.Language, number, param1, param2);
public bool IsIgnored(ChatUser check) => Ignored.Contains(check);