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