bool Raids::startup() { if(!isLoaded() || isStarted()) return false; setLastRaidEnd(OTSYS_TIME()); checkRaidsEvent = g_scheduler.addEvent(createSchedulerTask(CHECK_RAIDS_INTERVAL * 1000, boost::bind(&Raids::checkRaids, this))); started = true; return started; }
void Raids::startup() { if(!isLoaded() || isStarted()) return; setLastRaidEnd(OTSYS_TIME()); checkRaidsEvent = Scheduler::getScheduler().addEvent(createSchedulerTask(CHECK_RAIDS_INTERVAL*1000, boost::bind(&Raids::checkRaids, this))); started = true; }