mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
20 lines
370 B
C++
Executable File
20 lines
370 B
C++
Executable File
#include "../client.h"
|
|
|
|
void command_makepet(Client *c, const Seperator *sep)
|
|
{
|
|
int arguments = sep->argnum;
|
|
if (!arguments) {
|
|
c->Message(Chat::White, "Usage: #makepet [Pet Name]");
|
|
return;
|
|
}
|
|
|
|
std::string pet_name = sep->arg[1];
|
|
if (pet_name.empty()) {
|
|
c->Message(Chat::White, "Usage: #makepet [Pet Name]");
|
|
return;
|
|
}
|
|
|
|
c->MakePet(0, pet_name.c_str());
|
|
}
|
|
|