mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 17:51:28 +00:00
* -Always load AAs beyond our current expansion (Will need this for refunding invalid AAs). -AAs beyond our current expansion will no longer be buyable or sendable to clients. * #reload aa will now reload character aa data. * Base Implementation of auto grant AA * -Add DB manifest entry -Made has already purchased fn a bit better -Added auto grant to db entry * -Added grantaa command. -Reworked grantaa to not spam the client with packets, it still does spam messages because the feedback is important. * Port suggested changes for Finish AA purchase. --------- Co-authored-by: KimLS <KimLS@peqtgc.com>
21 lines
445 B
C++
21 lines
445 B
C++
#include "../client.h"
|
|
|
|
void command_grantaa(Client *c, const Seperator *sep)
|
|
{
|
|
if (!c->GetTarget() || !c->GetTarget()->IsClient()) {
|
|
c->Message(Chat::White, "You must target a player to use this command.");
|
|
return;
|
|
}
|
|
|
|
auto t = c->GetTarget()->CastToClient();
|
|
t->GrantAllAAPoints();
|
|
|
|
c->Message(
|
|
Chat::White,
|
|
fmt::format(
|
|
"Successfully granted all Alternate Advancements for {}.",
|
|
c->GetTargetDescription(t)
|
|
).c_str()
|
|
);
|
|
}
|