game/_incl_data/crons/battle_startPrizhaot.php
2022-12-30 21:03:50 +02:00

50 lines
1.3 KiB
PHP

<?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>",
]
);