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

@ -24,9 +24,9 @@ namespace Server.Accounting
return;
}
PacketHandlers.RegisterThrottler(0x80, Throttle_Callback);
PacketHandlers.RegisterThrottler(0x91, Throttle_Callback);
PacketHandlers.RegisterThrottler(0xCF, Throttle_Callback);
IncomingPackets.RegisterThrottler(0x80, Throttle_Callback);
IncomingPackets.RegisterThrottler(0x91, Throttle_Callback);
IncomingPackets.RegisterThrottler(0xCF, Throttle_Callback);
}
public static TimeSpan Throttle_Callback(NetState ns)

View file

@ -256,13 +256,13 @@ namespace Server.Misc
acct.Comments.Add(new AccountComment("System", $"Character #{index + 1} {m} deleted by {state}"));
m.Delete();
Packets.SendCharacterListUpdate(state, acct);
state.SendCharacterListUpdate(acct);
return;
}
}
Packets.SendCharacterDeleteResult(state, res);
Packets.SendCharacterListUpdate(state, acct);
state.SendCharacterDeleteResult(res);
state.SendCharacterListUpdate(acct);
}