eqemu-server/zone/gm_commands/acceptrules.cpp
Alex King 259add68f5
[Commands] Cleanup #appearance Command (#3827)
* [Commands] Cleanup #appearance Command

# Notes
- Cleanup messages and logic.
- Cleanup appearance type constants to use a namespace with constexpr instead.
- Cleanup animation constants to use a namespace with constexpr instead.

* Update emu_constants.cpp

* Cleanup
2024-01-06 22:24:32 -06:00

14 lines
410 B
C++
Executable File

#include "../client.h"
void command_acceptrules(Client *c, const Seperator *sep)
{
if (database.GetAgreementFlag(c->AccountID())) {
c->Message(Chat::White, "You have already agreed to the rules.");
return;
}
database.SetAgreementFlag(c->AccountID());
c->SendAppearancePacket(AppearanceType::Animation, Animation::Standing);
c->Message(Chat::White, "It is recorded you have agreed to the rules.");
}