2023-03-31 18:42:06 +00:00
|
|
|
|
<?php
|
2022-06-06 21:30:34 +00:00
|
|
|
|
|
2023-12-01 21:27:45 +00:00
|
|
|
|
use Helper\Conversion;
|
|
|
|
|
use User\ItemsModel;
|
|
|
|
|
|
|
|
|
|
if (!defined('GAME')) {
|
|
|
|
|
die();
|
|
|
|
|
}
|
|
|
|
|
$tomorrow = mktime(0, 0, 0, idate("m"), idate("d") + 1, idate("Y"));
|
|
|
|
|
|
|
|
|
|
if ($tomorrow = 0) {
|
|
|
|
|
echo 'Вы еще не справились с текущим заданием.';
|
|
|
|
|
} elseif (!isset($tomorrow['id'])) {
|
|
|
|
|
?>
|
|
|
|
|
<br/>
|
|
|
|
|
<input type='button' value='Крутить'/>
|
|
|
|
|
<?php
|
|
|
|
|
} else {
|
|
|
|
|
echo 'Покрутить еще раз вы сможете <b>' . $tomorrow . '</b> ( Через ' . Conversion::secondsToTimeout($tomorrow['time'] + 60 * 60 * 24 - time()) . ' )';
|
|
|
|
|
}
|
|
|
|
|
if ($itm['magic_inci'] == 'ruletka') {
|
|
|
|
|
$idv = [
|
|
|
|
|
0 => '4349',
|
|
|
|
|
1 => '4306',
|
|
|
|
|
2 => '4327',
|
|
|
|
|
3 => '4342',
|
|
|
|
|
4 => '4297',
|
|
|
|
|
5 => '4316',
|
|
|
|
|
6 => '4361',
|
|
|
|
|
7 => '4359',
|
|
|
|
|
8 => '4340',
|
|
|
|
|
9 => '4324',
|
|
|
|
|
10 => '4314',
|
|
|
|
|
11 => '4351',
|
|
|
|
|
12 => '4303',
|
|
|
|
|
13 => '4294',
|
|
|
|
|
14 => '4353',
|
|
|
|
|
15 => '4335',
|
|
|
|
|
16 => '4364',
|
|
|
|
|
17 => '4319',
|
|
|
|
|
18 => '4330',
|
|
|
|
|
19 => '4289',
|
|
|
|
|
20 => '4309',
|
|
|
|
|
21 => '4355',
|
|
|
|
|
22 => '4333',
|
|
|
|
|
23 => '4317',
|
|
|
|
|
24 => '4362',
|
|
|
|
|
25 => '4328',
|
|
|
|
|
26 => '4287',
|
|
|
|
|
27 => '4307',
|
|
|
|
|
28 => '4334',
|
|
|
|
|
29 => '4288',
|
|
|
|
|
30 => '4363',
|
|
|
|
|
31 => '4354',
|
|
|
|
|
32 => '4329',
|
|
|
|
|
33 => '4318',
|
|
|
|
|
34 => '4308',
|
|
|
|
|
35 => '4366',
|
|
|
|
|
36 => '4352',
|
|
|
|
|
37 => '4336',
|
|
|
|
|
38 => '4331',
|
|
|
|
|
39 => '4320',
|
|
|
|
|
40 => '4290',
|
|
|
|
|
41 => '4310',
|
|
|
|
|
42 => '4350',
|
|
|
|
|
43 => '4305',
|
|
|
|
|
44 => '4360',
|
|
|
|
|
45 => '4341',
|
|
|
|
|
46 => '4326',
|
|
|
|
|
47 => '4296',
|
|
|
|
|
48 => '4315',
|
|
|
|
|
49 => '4356',
|
|
|
|
|
50 => '4337',
|
|
|
|
|
51 => '4351',
|
|
|
|
|
52 => '4311',
|
|
|
|
|
53 => '4299',
|
|
|
|
|
54 => '4291',
|
|
|
|
|
55 => '4292',
|
|
|
|
|
56 => '4300',
|
|
|
|
|
57 => '4312',
|
|
|
|
|
58 => '4322',
|
|
|
|
|
59 => '4338',
|
|
|
|
|
60 => '4357',
|
|
|
|
|
61 => '4293',
|
|
|
|
|
62 => '4302',
|
|
|
|
|
63 => '4313',
|
|
|
|
|
64 => '4323',
|
|
|
|
|
65 => '4339',
|
|
|
|
|
66 => '4358',
|
|
|
|
|
67 => '865',
|
|
|
|
|
68 => '4781',
|
|
|
|
|
69 => '2545',
|
|
|
|
|
70 => '4684',
|
|
|
|
|
71 => '1035',
|
|
|
|
|
72 => '6168',
|
|
|
|
|
73 => '4920',
|
|
|
|
|
74 => '10015',
|
|
|
|
|
75 => '10016',
|
|
|
|
|
76 => '10017',
|
|
|
|
|
77 => '10018',
|
|
|
|
|
78 => '10035',
|
|
|
|
|
];
|
|
|
|
|
$idve = $idv[rand(0, count($idv) - 1)];
|
|
|
|
|
ItemsModel::addItem($idve, $u->info['id'], '|frompisher=1|sudba=' . $u->info['login']);
|
|
|
|
|
$inf = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "' . $idve . '" LIMIT 1'));
|
|
|
|
|
$u->error = 'Вы получили:' . $inf['name'];
|
|
|
|
|
|
2022-06-06 21:30:34 +00:00
|
|
|
|
}
|