37 if (pClient ==
nullptr)
38 throw CustomError (
"SaveDungeon: Invalid Caller - Client sent NULL.");
41 throw CustomError (
"SaveDungeon: Missing Arguments (use '.savedungeon help' for usage)");
50 if (strcmp(args.
arg(1).c_str(),
"help") == 0) {
52 std::ostringstream str;
53 str <<
".savedungeon [groupID] [group name/description]<br>";
56 snprintf(reply, size, str.str().c_str());
63 throw CustomError (
"SaveDungeon: - This command is currently incomplete.");
72 throw CustomError (
"PrintDungeon: - This command is currently incomplete.");
81 throw CustomError (
"Correct Usage: .spawndungeon <dungeonTemplateID>");
84 throw CustomError (
"Argument must be a template ID.");
88 throw CustomError (
"SpawnDungeon: - This command is currently incomplete.");
99 throw CustomError (
"RemoveDungeon: - This command is currently incomplete.");
const std::string & arg(size_t index) const
PyResult Command_removedungeon(Client *pClient, CommandDB *db, PyServiceMgr *services, const Seperator &args)
void SendInfoModalMsg(const char *fmt,...)
Separates string to arguments.
Advanced version of UserError that allows to send a full custom message.
PyResult Command_printdungeon(Client *pClient, CommandDB *db, PyServiceMgr *services, const Seperator &args)
PyResult Command_spawndungeon(Client *pClient, CommandDB *db, PyServiceMgr *services, const Seperator &args)
PyResult Command_savedungeon(Client *pClient, CommandDB *db, PyServiceMgr *services, const Seperator &args)
bool isNumber(size_t index) const