change command.cpp, line 287 ish:
Code:
command_add("repop","[force] [delay] - Repop the zone with optional force (reset spawn timers) and delay",100,command_repop) ||
replace the body of command_repop() (line 3526ish) with:
Code:
//Hacked by Father Nitwit to support a 'force' argument, which resets respawn times
int timearg = 1;
if (sep->arg[1] && strcasecmp(sep->arg[1], "force") == 0) {
timearg++;
char errbuf[MYSQL_ERRMSG_SIZE];
char *query = 0;
if (database.RunQuery(query, MakeAnyLenString(&query, "UPDATE spawn2 SET timeleft=0 WHERE zone='%s'",zone->GetShortName()), errbuf))
safe_delete_array(query);
c->Message(0, "Zone depop: Force resetting spawn timers.");
}
if (sep->IsNumber(timearg)) {
c->Message(0, "Zone depoped. Repop in %i seconds", atoi(sep->arg[timearg]));
zone->Repop(atoi(sep->arg[timearg])*1000);
}
else {
c->Message(0, "Zone depoped. Repoping now.");
zone->Repop();
}
This is untested, but it compiles, and makes perfect sense to me
assuming that that is in fact the correct table to update.
let me know if it helps, or dosent work...