Rearranges packet code (#295)
This commit is contained in:
parent
5f7e4bf050
commit
a8d486a969
54 changed files with 3023 additions and 2846 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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]);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue