game/_incl_data/class/magic/ironbad.php

89 lines
1.5 KiB
PHP
Raw Normal View History

2023-03-31 18:42:06 +00:00
<?php
2022-06-06 21:30:34 +00:00
if(!defined('GAME'))
{
die();
}
if($itm['magic_inci']=='ironbad') {
$u->deleteItem($itm['id']);
$idv=array(
0 => '523',
1 => '707',
2 => '633',
3 => '1151',
4 => '539',
5 => '520',
6 => '521',
7 => '522',
8 => '552',
9 => '553',
9 => '554',
10 => '556',
11 => '557',
12 => '558',
13 => '564',
14 => '567',
15 => '1026',
16 => '712',
17 => '714',
18 => '716',
19 => '717',
20 => '718',
21 => '317',
22 => '318',
23 => '320',
24 => '698',
25 => '706',
26 => '699',
27 => '705',
28 => '700',
29 => '703',
30 => '704',
31 => '1136',
32 => '1151',
33 => '548',
34 => '549',
35 => '550',
36 => '541',
37 => '543',
38 => '544',
39 => '545',
40 => '546',
41 => '685',
42 => '686',
43 => '687',
44 => '689',
45 => '692',
46 => '693',
47 => '695',
48 => '696',
49 => '674',
50 => '675',
51 => '677',
52 => '679',
53 => '680',
54 => '681',
55 => '683',
56 => '684',
57 => '647',
58 => '649',
59 => '651',
60 => '652',
61 => '653',
62 => '654',
63 => '655',
64 => '657',
65 => '658',
66 => '660',
67 => '722',
68 => '723',
69 => '1035',
70 => '10036'
);
$idve=$idv[rand(0,count($idv)-1)];
2023-04-15 23:54:34 +00:00
\User\ItemsModel::addItem($idve,$u->info['id'],'|frompisher=1|sudba='.$u->info['login']);
2022-06-06 21:30:34 +00:00
$inf = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "'.$idve.'" LIMIT 1'));
2023-01-10 16:29:32 +00:00
$u->error = 'Вы получили:'.$inf['name'].'';
2022-06-06 21:30:34 +00:00
unset($idv);
}
?>