mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-03 21:56:36 +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
+31
@@ -0,0 +1,31 @@
|
||||
#include "../client.h"
|
||||
|
||||
void command_dbspawn2(Client *c, const Seperator *sep)
|
||||
{
|
||||
|
||||
if (sep->IsNumber(1) && sep->IsNumber(2) && sep->IsNumber(3)) {
|
||||
LogInfo("Spawning database spawn");
|
||||
uint16 cond = 0;
|
||||
int16 cond_min = 0;
|
||||
if (sep->IsNumber(4)) {
|
||||
cond = atoi(sep->arg[4]);
|
||||
if (sep->IsNumber(5)) {
|
||||
cond_min = atoi(sep->arg[5]);
|
||||
}
|
||||
}
|
||||
database.CreateSpawn2(
|
||||
c,
|
||||
atoi(sep->arg[1]),
|
||||
zone->GetShortName(),
|
||||
c->GetPosition(),
|
||||
atoi(sep->arg[2]),
|
||||
atoi(sep->arg[3]),
|
||||
cond,
|
||||
cond_min
|
||||
);
|
||||
}
|
||||
else {
|
||||
c->Message(Chat::White, "Usage: #dbspawn2 spawngroup respawn variance [condition_id] [condition_min]");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user