Rearranges packet code (#295)
This commit is contained in:
parent
5f7e4bf050
commit
a8d486a969
54 changed files with 3023 additions and 2846 deletions
|
|
@ -361,9 +361,9 @@ namespace Server.Items
|
|||
|
||||
public static void Initialize()
|
||||
{
|
||||
PacketHandlers.Register(0xD4, 0, true, HeaderChange);
|
||||
PacketHandlers.Register(0x66, 0, true, ContentChange);
|
||||
PacketHandlers.Register(0x93, 99, true, OldHeaderChange);
|
||||
IncomingPackets.Register(0xD4, 0, true, HeaderChange);
|
||||
IncomingPackets.Register(0x66, 0, true, ContentChange);
|
||||
IncomingPackets.Register(0x93, 99, true, OldHeaderChange);
|
||||
}
|
||||
|
||||
public static void OldHeaderChange(NetState state, CircularBufferReader reader)
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ namespace Server.Engines.Mahjong
|
|||
|
||||
public static void Initialize()
|
||||
{
|
||||
PacketHandlers.Register(0xDA, 0, true, OnPacket);
|
||||
IncomingPackets.Register(0xDA, 0, true, OnPacket);
|
||||
|
||||
RegisterSubCommand(0x6, ExitGame);
|
||||
RegisterSubCommand(0xA, GivePoints);
|
||||
|
|
|
|||
|
|
@ -331,7 +331,7 @@ namespace Server.Items
|
|||
|
||||
public static void Initialize()
|
||||
{
|
||||
PacketHandlers.Register(0x56, 11, true, OnMapCommand);
|
||||
IncomingPackets.Register(0x56, 11, true, OnMapCommand);
|
||||
}
|
||||
|
||||
private static void OnMapCommand(NetState state, CircularBufferReader reader)
|
||||
|
|
|
|||
|
|
@ -229,7 +229,7 @@ namespace Server.Items
|
|||
|
||||
public static void Initialize()
|
||||
{
|
||||
PacketHandlers.Register(0x71, 0, true, BBClientRequest);
|
||||
IncomingPackets.Register(0x71, 0, true, BBClientRequest);
|
||||
}
|
||||
|
||||
public static void BBClientRequest(NetState state, CircularBufferReader reader)
|
||||
|
|
|
|||
|
|
@ -142,9 +142,9 @@ namespace Server.Items
|
|||
|
||||
/*
|
||||
FORMULA: Displayed AR = ((Parrying Skill * Base AR of Shield) <EFBFBD> 200) + 1
|
||||
|
||||
|
||||
FORMULA: % Chance of Blocking = parry skill - (shieldAR * 2)
|
||||
|
||||
|
||||
FORMULA: Melee Damage Absorbed = (AR of Shield) / 2 | Archery Damage Absorbed = AR of Shield
|
||||
*/
|
||||
if (owner.CheckSkill(SkillName.Parry, chance))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue