Rearranges packet code (#295)

This commit is contained in:
Kamron Batman 2020-10-30 22:49:00 -07:00 • committed by GitHub
parent 5f7e4bf050
commit a8d486a969
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 3023 additions and 2846 deletions

View file

@ -14,8 +14,8 @@ namespace Server.Engines.Chat
public static void Initialize()
{
PacketHandlers.Register(0xB5, 0x40, true, OpenChatWindowRequest);
PacketHandlers.Register(0xB3, 0, true, ChatAction);
IncomingPackets.Register(0xB5, 0x40, true, OpenChatWindowRequest);
IncomingPackets.Register(0xB3, 0, true, ChatAction);
}
public static void SendCommandTo(Mobile to, ChatCommand type, string param1 = null, string param2 = null)

View file

@ -376,21 +376,21 @@ namespace Server.Engines.ConPVP
int climb = count / 2;
if (climb > 3)
climb = 3;
for ( i = 0; i < climb; i++ )
{
p = ((Point3D)list[i]);
p.Z += (i+1) * 4;
list[i] = p;
}
for ( ; i < count - climb; i++ )
{
p = ((Point3D)list[i]);
p.Z += 16;
list[i] = p;
}
for ( i = climb; i > 0; i-- )
{
p = ((Point3D)list[i]);

View file

@ -80,7 +80,7 @@ namespace Server.Engines.MLQuests.Gumps
{
m_Pending = new Dictionary<NetState, RaceChangeState>();
PacketHandlers.RegisterExtended(0x2A, true, RaceChangeReply);
IncomingExtendedCommandPackets.RegisterExtended(0x2A, true, RaceChangeReply);
}
public static bool IsPending(NetState state) => state != null && m_Pending.ContainsKey(state);