Вход Регистрация
Файл: cron.php
Строк: 53
<?php

include_once("settings.php");
include_once(
"timer.php");
include_once(
"players.php");
include_once(
"player.php");
include_once(
"zone.php");
include_once(
"shop.php");

//start timer
$timer = new Benchmark_Timer();
$timer->start();

$players = new  CPlayers($db);
$player = new  CPlayer($db);
$zone = new CZone($db);
$shop = new CShop($db,1);

echo(
"Cron start<br>");

$timer->setMarker('Update online players');
$players->updateOnlinePlayers();
$timer->setMarker('Update players hp');
$players->updatePlayerHP();

$timer->setMarker('Update minings players');
$players->updateAction(ACTION_MINIG,SKILL_MINING);
$timer->setMarker('Update woodcut players');
$players->updateAction(ACTION_WOODCUT,SKILL_WOODCUT);
$timer->setMarker('Update smelt players');
$players->updateAction(ACTION_SMELT,SKILL_SMELT);

$timer->setMarker('Update mobs in zones');
$zone->setVnum(1000);
$zone->updateMobsInZone();
$zone->setVnum(2000);
$zone->updateMobsInZone();
$zone->setVnum(3000);
$zone->updateMobsInZone();

//$timer->setMarker('Updates shops');
//$shop->removeEachOneThings();

echo("Cron stop<br>");

//display bechmark results
$timer->stop();
$timer->display();


?>
Онлайн: 2
Реклама