mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 16:51:29 +00:00
15 lines
422 B
C++
Executable File
15 lines
422 B
C++
Executable File
#include "../client.h"
|
|
|
|
void command_gassign(Client *c, const Seperator *sep)
|
|
{
|
|
if (sep->IsNumber(1) && c->GetTarget() && c->GetTarget()->IsNPC() &&
|
|
c->GetTarget()->CastToNPC()->GetSpawnPointID() > 0) {
|
|
int spawn2id = c->GetTarget()->CastToNPC()->GetSpawnPointID();
|
|
database.AssignGrid(c, atoi(sep->arg[1]), spawn2id);
|
|
}
|
|
else {
|
|
c->Message(Chat::White, "Usage: #gassign [num] - must have an npc target!");
|
|
}
|
|
}
|
|
|