game/_incl_data/crons/battle_startPrizhaot.php
2023-01-10 18:30:35 +02:00

50 lines
1.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
use Core\Db;
require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'autoload.php';
/**
* Запуск призового хаота.
* Запуск каждый час в Х часов 10 минут с 8 утра до 2 ночи.
* О_О
*/
//Подаем турнир (хаот) для 8-11 уровней
Db::sql(
'insert into zayvki (
comment,
arand,
noatack,
city,
creator,
type,
time_start,
timeout,
min_lvl_1,
min_lvl_2,
max_lvl_1,
max_lvl_2,
noinc,
razdel,
time,
fastfight,
priz,
maxplayers,
tm1max,
tm2max
)
values (?,1,1,\'capitalcity\',0,33,300,180,8,8,12,12,1,5,unix_timestamp(),1,1,40,0,0)',
[
"<i style='color: green;'>Автозаявка! <b>Тест прошу не заходить</b></i>", 'capitalcity',
]
);
Db::sql(
'insert into chat (`text`,`type`,`new`,`time`) values (?,6,1,unix_timestamp())',
[
"<span style='color: red'>Внимание!!!</span> <span style='color:#cb0000'><b>Героическое Сражение</b> началось.</span>",
]
);