Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

How Update top10 dboor

Status
Not open for further replies.
Initiate Mage
Joined
May 4, 2012
Messages
4
Reaction score
0
Hello, how update top10 in dboor 1.5 Beta make medals for players and ally. when you want? I want give Medalls: Every 2 day so how do that what file is?
 
Joined
May 15, 2009
Messages
799
Reaction score
558
function processQueue()
{
$mutex = new MutexModel();
$mutex->releaseOnTimeout();
if ($mutex->lock())
{
$this->processTaskQueue();
if (date('w') == 5)
{
$row = $this->provider->fetchRow('SELECT gs.cur_week w1, CEIL((TO_DAYS(NOW())-TO_DAYS(gs.start_date))/7) w2 FROM g_settings gs');
if ($row['w1'] < $row['w2'])
{
$this->provider->executeQuery('UPDATE g_settings gs SET gs.cur_week=%s', array(
intval($row['w2'])
));
$this->setWeeklyMedals(intval($row['w2']));
}
}
$mutex->release();
}
}
app/models/queuejob.php

there is also another function called set weekly medals but this first one controlls when it is done
 
Status
Not open for further replies.
Back
Top