mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 18:51:29 +00:00
25 lines
795 B
C++
25 lines
795 B
C++
#include "../../client.h"
|
|
#include "../../worldserver.h"
|
|
#include "../../../common/repositories/account_repository.h"
|
|
|
|
extern WorldServer worldserver;
|
|
|
|
void SetChecksum(Client *c, const Seperator *sep)
|
|
{
|
|
auto account = AccountRepository::FindOne(database, c->AccountID());
|
|
if (!account.id) {
|
|
c->Message(Chat::White, "Your account was not found!");
|
|
return;
|
|
}
|
|
|
|
database.SetVariable("crc_eqgame", account.crc_eqgame);
|
|
database.SetVariable("crc_skillcaps", account.crc_skillcaps);
|
|
database.SetVariable("crc_basedata", account.crc_basedata);
|
|
|
|
c->Message(Chat::White, "Attempting to reload Rules globally.");
|
|
worldserver.SendReload(ServerReload::Type::Rules);
|
|
|
|
c->Message(Chat::White, "Attempting to reload Variables globally.");
|
|
worldserver.SendReload(ServerReload::Type::Variables);
|
|
}
|