mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-29 00:18:18 +00:00
[GM Commands] Split GM Commands Into Separate Files (#1766)
* Split GM commands into their own files * Code cleanup
This commit is contained in:
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#include "../client.h"
|
||||
|
||||
void command_setstat(Client *c, const Seperator *sep)
|
||||
{
|
||||
if (sep->arg[1][0] && sep->arg[2][0] && c->GetTarget() != 0 && c->GetTarget()->IsClient()) {
|
||||
c->GetTarget()->CastToClient()->SetStats(atoi(sep->arg[1]), atoi(sep->arg[2]));
|
||||
}
|
||||
else {
|
||||
c->Message(Chat::White, "This command is used to permanently increase or decrease a players stats.");
|
||||
c->Message(Chat::White, "Usage: #setstat {type} {value the stat should be}");
|
||||
c->Message(Chat::White, "Types: Str: 0, Sta: 1, Agi: 2, Dex: 3, Int: 4, Wis: 5, Cha: 6");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user