m_timers[WUPDATE_UPTIME].SetInterval(m_configs[CONFIG_UPTIME_UPDATE]*MINUTE*1000);
//Update "uptime" table based on configuration entry in minutes.
m_timers[WUPDATE_CORPSES].SetInterval(20*MINUTE*1000); //erase corpses every 20 minutes
-
+ m_timers[WUPDATE_MESSAGEAUTO].SetInterval(messageauto);
+ m_timers[WUPDATE_QUESTION].SetInterval(question);
+ m_timers[WUPDATE_JIAREN].SetInterval(10000);
//to set mailtimer to return mails every day between 4 and 5 am
//mailtimer is increased when updating auctions
//one second is 1000 -(tested on win system)
@@ -1115,7 +1121,21 @@
m_timers[WUPDATE_EVENTS].SetInterval(nextGameEvent);
m_timers[WUPDATE_EVENTS].Reset();
}
-
+ if (m_timers[WUPDATE_MESSAGEAUTO].Passed())
+ {
+ m_timers[WUPDATE_MESSAGEAUTO].Reset();
+ SendRNDBroadcast();
+ }
+ if (m_timers[WUPDATE_QUESTION].Passed())
+ {
+ m_timers[WUPDATE_QUESTION].Reset();
+ showquestion();
+ }
+ if (m_timers[WUPDATE_JIAREN].Passed())
+ {
+ m_timers[WUPDATE_JIAREN].Reset();
+ refreshjiaren();
+ }
/// </ul>
///- Move all creatures with "delayed move" and remove and delete all objects with "delayed remove"
ObjectAccessor::Instance().DoDelayedMovesAndRemoves();
@@ -2178,3 +2198,129 @@