mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
* [Quest API] Add MaxSkills() to Perl/Lua. # Perl - Add `$client->MaxSkills()`. # Lua - Add `client:MaxSkills()`. # Notes - Allows operators an easy short hand for maxing a player's skills for their level without needing to do all the looping and stuff on their own. * Cleanup. * Only set if it's higher than skill level player has. * Add constant.
21 lines
332 B
C++
Executable File
21 lines
332 B
C++
Executable File
#include "../client.h"
|
|
|
|
void command_max_all_skills(Client *c, const Seperator *sep)
|
|
{
|
|
auto t = c;
|
|
if (c->GetTarget() && c->GetTarget()->IsClient()) {
|
|
t = c->GetTarget()->CastToClient();
|
|
}
|
|
|
|
t->MaxSkills();
|
|
|
|
c->Message(
|
|
Chat::White,
|
|
fmt::format(
|
|
"Maxed skills for {}.",
|
|
c->GetTargetDescription(t)
|
|
).c_str()
|
|
);
|
|
}
|
|
|