2023-03-31 18:42:06 +00:00
< ? php
2024-05-14 14:24:54 +00:00
use Core\Config ;
use Model\ActionModel ;
use User\ItemsModel ;
2023-11-05 03:17:31 +00:00
echo "
2022-06-06 21:30:34 +00:00
< script language = 'JavaScript' >
var elem = document . getElementById ( 'se-pre-con' );
elem . parentNode . removeChild ( elem );
</ script >
" ;
2023-11-05 03:17:31 +00:00
if ( ! defined ( 'GAME' ) || ( $u -> stats [ 'bronze' ] < 1 && $u -> stats [ 'silvers' ] < 1 && $u -> stats [ 'gold' ] < 1 )) {
die ();
2022-06-06 21:30:34 +00:00
}
2023-11-05 03:17:31 +00:00
if ( $u -> error != '' ) {
echo '<font color="red"><b>' . $u -> error . '</b></font><br>' ;
2022-06-06 21:30:34 +00:00
}
2023-11-05 03:17:31 +00:00
$vt = mysql_fetch_array ( mysql_query ( 'SELECT * FROM `eff_users` WHERE `uid` = "' . $u -> info [ 'id' ] . '" AND `delete` = "0" AND `data` LIKE "%account=%" LIMIT 1' ));
if ( $u -> stats [ 'bronze' ] > 0 ) {
$account = 'bronze' ;
} //Bronze Premium Account
elseif ( $u -> stats [ 'silvers' ] > 0 ) {
$account = 'silvers' ;
} //Silver Premium Account
elseif ( $u -> stats [ 'gold' ] > 0 ) {
$account = 'gold' ;
} //Gold Premium Account
$vu = [ 0 , 0 , 0 , 0 , 0 , 0 , 0 ];
2023-01-10 16:29:32 +00:00
//Абилки $ability
2023-11-05 03:17:31 +00:00
$ability = [
" bronze " => [
//Свитки Bronze
[ 1463 , 1 , 0 , 0 , 0 , 'tr_lvl=4|nohaos=1|onlyOne=1|oneType=24|musor=2|noremont=1|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ],
[ 3101 , 1 , 0 , 0 , 0 , 'useOnLogin=1|onlyOne=1|oneType=33|tr_lvl=4|noremont=1|musor=1|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ],
[ 4371 , 1 , 0 , 0 , 0 , 'onlyOne=1|oneType=36|tr_lvl=4|noremont=1|musor=1|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ],
[ 2709 , 1 , 0 , 0 , 0 , 'tr_lvl=7|useOnLogin=1|musor=1|noremont=1|magic_hpNow=900|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ],
[ 994 , 1 , 0 , 0 , 0 , 'useOnLogin=1|onlyOne=1|oneType=44|tr_lvl=4|noremont=1|musor=1|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ],
[ 1001 , 1 , 0 , 0 , 0 , 'useOnLogin=1|onlyOne=1|oneType=7|tr_lvl=7|noremont=1|musor=1|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ],
[ 1461 , 1 , 0 , 0 , 0 , 'tr_lvl=2|nohaos=1|onlyOne=1|oneType=24|musor=2|noremont=1|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ],
[ 1462 , 1 , 0 , 0 , 0 , 'tr_lvl=2|nohaos=1|onlyOne=1|oneType=24|musor=2|noremont=1|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ],
],
" silvers " => [
//Свитки Silver
[ 5239 , 1 , 0 , 0 , 0 , 'tr_lvl=4|nohaos=1|onlyOne=1|oneType=24|musor=2|noremont=1|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 1 ],
//array(3101,1,0,0,0,'useOnLogin=1|onlyOne=1|oneType=33|tr_lvl=4|noremont=1|musor=1|sudba='.$u->info['login'].'|srok=86400|nosale=1',5),
//array(4371,1,0,0,0,'onlyOne=1|oneType=36|tr_lvl=4|noremont=1|musor=1|sudba='.$u->info['login'].'|srok=86400|nosale=1',1),
/* array ( 994 , 1 , 0 , 0 , 0 , 'useOnLogin=1|onlyOne=1|oneType=44|tr_lvl=4|noremont=1|musor=1|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ),
array ( 1001 , 1 , 0 , 0 , 0 , 'useOnLogin=1|onlyOne=1|oneType=7|tr_lvl=7|noremont=1|musor=1|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ),
array ( 1461 , 1 , 0 , 0 , 0 , 'tr_lvl=2|nohaos=1|onlyOne=1|oneType=24|musor=2|noremont=1|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ),
array ( 1462 , 1 , 0 , 0 , 0 , 'tr_lvl=2|nohaos=1|onlyOne=1|oneType=24|musor=2|noremont=1|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ),
array ( 4926 , 1 , 0 , 0 , 0 , 'tr_lvl=7|onlyOne=1|musor=2|noremont=1|oneType=53|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ),
array ( 4927 , 1 , 0 , 0 , 0 , 'tr_lvl=7|onlyOne=1|musor=2|noremont=1|oneType=53|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ),
array ( 4928 , 1 , 0 , 0 , 0 , 'tr_lvl=7|onlyOne=1|musor=2|noremont=1|oneType=53|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ),
array ( 4929 , 1 , 0 , 0 , 0 , 'tr_lvl=7|onlyOne=1|musor=2|noremont=1|oneType=53|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ),
array ( 4930 , 1 , 0 , 0 , 0 , 'tr_lvl=7|onlyOne=1|musor=2|noremont=1|oneType=53|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ), */
],
" gold " => [
//Свитки Gold
[ 2412 , 3 , 0 , 0 , 0 , 'tr_lvl=4|nohaos=1|oneType=24|musor=2|noremont=1|sudba=' . $u -> info [ 'login' ] . '|srok=43200|nosale=1' , 1 ],
[ 6455 , 2 , 0 , 0 , 0 , 'tr_lvl=4|nohaos=1|oneType=0|musor=2|noremont=1|sudba=' . $u -> info [ 'login' ] . '|srok=43200|nosale=1' , 1 ],
//array(4758,1,0,0,0,'useOnLogin=1|onlyOne=1|oneType=33|tr_lvl=10|noremont=1|musor=1|sudba='.$u->info['login'].'|srok=86400|nosale=1',1),
//array(4943,1,0,0,0,'useOnLogin=1|onlyOne=1|oneType=33|tr_lvl=4|noremont=1|musor=1|sudba='.$u->info['login'].'|srok=86400|nosale=1',1),
//array(4371,1,0,0,0,'onlyOne=1|oneType=36|tr_lvl=4|noremont=1|musor=1|sudba='.$u->info['login'].'|srok=86400|nosale=1',1),
/* array ( 994 , 1 , 0 , 0 , 0 , 'useOnLogin=1|onlyOne=1|oneType=44|tr_lvl=4|noremont=1|musor=1|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ),
array ( 1001 , 1 , 0 , 0 , 0 , 'useOnLogin=1|onlyOne=1|oneType=7|tr_lvl=7|noremont=1|musor=1|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ),
array ( 1461 , 1 , 0 , 0 , 0 , 'tr_lvl=2|nohaos=1|onlyOne=1|oneType=24|musor=2|noremont=1|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ),
array ( 1462 , 1 , 0 , 0 , 0 , 'tr_lvl=2|nohaos=1|onlyOne=1|oneType=24|musor=2|noremont=1|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ),
array ( 4926 , 1 , 0 , 0 , 0 , 'tr_lvl=7|onlyOne=1|musor=2|noremont=1|oneType=53|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ),
array ( 4927 , 1 , 0 , 0 , 0 , 'tr_lvl=7|onlyOne=1|musor=2|noremont=1|oneType=53|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ),
array ( 4928 , 1 , 0 , 0 , 0 , 'tr_lvl=7|onlyOne=1|musor=2|noremont=1|oneType=53|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ),
array ( 4929 , 1 , 0 , 0 , 0 , 'tr_lvl=7|onlyOne=1|musor=2|noremont=1|oneType=53|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ),
array ( 4930 , 1 , 0 , 0 , 0 , 'tr_lvl=7|onlyOne=1|musor=2|noremont=1|oneType=53|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ),
array ( 4936 , 1 , 0 , 0 , 0 , 'tr_lvl=7|onlyOne=1|musor=2|noremont=1|oneType=58|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ),
array ( 4937 , 1 , 0 , 0 , 0 , 'tr_lvl=7|onlyOne=1|musor=2|noremont=1|oneType=59|sudba=' . $u -> info [ 'login' ] . '|srok=86400|nosale=1' , 5 ), */
2022-06-06 21:30:34 +00:00
2023-11-05 03:17:31 +00:00
],
];
2022-06-06 21:30:34 +00:00
2023-11-05 03:17:31 +00:00
$vi = [
];
2022-06-06 21:30:34 +00:00
?>
< table width = " 100% " >
< tr >
2023-11-05 03:17:31 +00:00
< td width = " 150 " align = " right " >
< td style = " width: 25%; vertical-align: top; text-align: right; " >
< td style = " width: 25%; vertical-align: top; text-align: right; " >< input class = " btn " type = 'button' value = 'Обновить' style = 'width: 100px' onclick = 'location="main.php?vip=1"' />
& nbsp ;
< input type = " button " value = " Вернуться " style = 'width: 100px' class = " btn " onclick = 'location="main.php"' /></ td >
< ? php if ( $account == 'bronze' ){ ?>
< table width = " 100% " border = " 0 " cellpadding = " 5 " cellspacing = " 0 " bgcolor = " #E1E1E1 " >
< td style = " border-bottom:1px solid #CCCCCC; " >& bull ; Восстановление жизни и манны + 5 %</ td >
< td width = " 75 " align = " center " valign = " middle " bgcolor = " #DADADA " style = " border-bottom:1px solid #CCCCCC; " >< b > Вечно </ b ></ td >
< td style = " border-bottom:1px solid #CCCCCC; " >< font color = darkgreen >< b > Здроровье и мана восстанавливаются быстрее .</ b ></ font ></ td >
</ tr >
< tr >
< td style = " border-bottom:1px solid #CCCCCC; " >& bull ; Получаемый опыт в бою + 5 %</ td >
< td width = " 75 " align = " center " valign = " middle " bgcolor = " #DADADA " style = " border-bottom:1px solid #CCCCCC; " >< b > Вечно </ b ></ td >
< td style = " border-bottom:1px solid #CCCCCC; " >< font color = darkgreen >< b > Повышение уровня персонажа станет быстрее .</ b ></ font ></ td >
< tr >
< td style = " border-bottom:1px solid #CCCCCC; " >& bull ; Скидка на ремонт + 5 %</ td >
< td width = " 75 " align = " center " valign = " middle " bgcolor = " #DADADA " style = " border-bottom:1px solid #CCCCCC; " >< b > Вечно </ b ></ td >
< td style = " border-bottom:1px solid #CCCCCC; " >< font color = darkgreen >< b > Вы чините свои вещи на 5 % дешевле .</ b ></ font ></ td >
</ tr >
< tr >
< td style = " border-bottom:1px solid #CCCCCC; " >& bull ; Увеличение рюкзака + 10 </ td >
< td width = " 75 " align = " center " valign = " middle " bgcolor = " #DADADA " style = " border-bottom:1px solid #CCCCCC; " >< b > Вечно </ b ></ td >
< td style = " border-bottom:1px solid #CCCCCC; " >< font color = darkgreen >< b > Увеличивает рюкзак на 10 + единиц .</ b ></ font ></ td >
</ tr >
< tr >
< td style = " border-bottom:1px solid #CCCCCC; " >& bull ; Бонус Жизни + 1 </ td >
< td width = " 75 " align = " center " valign = " middle " bgcolor = " #DADADA " style = " border-bottom:1px solid #CCCCCC; " >< b > Вечно </ b ></ td >
< td style = " border-bottom:1px solid #CCCCCC; " >< font color = darkgreen >< b > 1 Выносливость = 1 ХП </ b ></ font ></ td >
</ tr >
2024-01-05 22:14:35 +00:00
< ? php } ?>
2023-11-05 03:17:31 +00:00
< ? php if ( $account == 'silvers' ){ ?>
< table width = " 100% " border = " 0 " cellpadding = " 5 " cellspacing = " 0 " bgcolor = " #E1E1E1 " >
< td style = " border-bottom:1px solid #CCCCCC; " >& bull ; Восстановление жизни и манны + 10 %</ td >
< td width = " 75 " align = " center " valign = " middle " bgcolor = " #DADADA " style = " border-bottom:1px solid #CCCCCC; " >< b > Вечно </ b ></ td >
< td style = " border-bottom:1px solid #CCCCCC; " >< font color = darkgreen >< b > Здроровье и мана восстанавливаются быстрее .</ b ></ font ></ td >
</ tr >
< tr >
< td style = " border-bottom:1px solid #CCCCCC; " >& bull ; Получаемый опыт в бою + 10 %</ td >
< td width = " 75 " align = " center " valign = " middle " bgcolor = " #DADADA " style = " border-bottom:1px solid #CCCCCC; " >< b > Вечно </ b ></ td >
< td style = " border-bottom:1px solid #CCCCCC; " >< font color = darkgreen >< b > Повышение уровня персонажа станет быстрее .</ b ></ font ></ td >
< tr >
< td style = " border-bottom:1px solid #CCCCCC; " >& bull ; Скидка на ремонт + 10 %</ td >
< td width = " 75 " align = " center " valign = " middle " bgcolor = " #DADADA " style = " border-bottom:1px solid #CCCCCC; " >< b > Вечно </ b ></ td >
< td style = " border-bottom:1px solid #CCCCCC; " >< font color = darkgreen >< b > Вы чините свои вещи на 10 % дешевле .</ b ></ font ></ td >
</ tr >
< tr >
< td style = " border-bottom:1px solid #CCCCCC; " >& bull ; Увеличение рюкзака + 20 </ td >
< td width = " 75 " align = " center " valign = " middle " bgcolor = " #DADADA " style = " border-bottom:1px solid #CCCCCC; " >< b > Вечно </ b ></ td >
< td style = " border-bottom:1px solid #CCCCCC; " >< font color = darkgreen >< b > Увеличивает рюкзак на 20 + единиц .</ b ></ font ></ td >
</ tr >
< tr >
< td style = " border-bottom:1px solid #CCCCCC; " >& bull ; Скорость передвижения + 5 %</ td >
< td width = " 75 " align = " center " valign = " middle " bgcolor = " #DADADA " style = " border-bottom:1px solid #CCCCCC; " >< b > Вечно </ b ></ td >
< td style = " border-bottom:1px solid #CCCCCC; " >< font color = darkgreen >< b > По подземельям вы двигаетесь быстрее </ b ></ font ></ td >
</ tr >
< tr >
< td style = " border-bottom:1px solid #CCCCCC; " >& bull ; Бонус Жизни + 2 </ td >
< td width = " 75 " align = " center " valign = " middle " bgcolor = " #DADADA " style = " border-bottom:1px solid #CCCCCC; " >< b > Вечно </ b ></ td >
< td style = " border-bottom:1px solid #CCCCCC; " >< font color = darkgreen >< b > 1 Выносливость = 2 ХП </ b ></ font ></ td >
</ tr >
2024-01-05 22:14:35 +00:00
< ? php } ?>
2023-11-05 03:17:31 +00:00
< ? php if ( $account == 'gold' ){ ?>
< table width = " 100% " border = " 0 " cellpadding = " 5 " cellspacing = " 0 " bgcolor = " #E1E1E1 " >
< td style = " border-bottom:1px solid #CCCCCC; " >& bull ; Восстановление жизни и манны + 50 %</ td >
< td width = " 75 " align = " center " valign = " middle " bgcolor = " #DADADA " style = " border-bottom:1px solid #CCCCCC; " >< b > Н а время действия Благодати </ b ></ td >
< td style = " border-bottom:1px solid #CCCCCC; " >< font color = darkgreen >< b > Здроровье и мана восстанавливаются быстрее в два раза .</ b ></ font ></ td >
</ tr >
< tr >
< td style = " border-bottom:1px solid #CCCCCC; " >& bull ; Скидка на ремонт + 50 %</ td >
< td width = " 75 " align = " center " valign = " middle " bgcolor = " #DADADA " style = " border-bottom:1px solid #CCCCCC; " >< b > Н а время действия Благодати </ b ></ td >
< td style = " border-bottom:1px solid #CCCCCC; " >< font color = darkgreen >< b > Вы чините свои вещи на 50 % дешевле .</ b ></ font ></ td >
</ tr >
< tr >
< td style = " border-bottom:1px solid #CCCCCC; " >& bull ; Скорость передвижения + 25 %</ td >
< td width = " 75 " align = " center " valign = " middle " bgcolor = " #DADADA " style = " border-bottom:1px solid #CCCCCC; " >< b > Н а время действия Благодати </ b ></ td >
< td style = " border-bottom:1px solid #CCCCCC; " >< font color = darkgreen >< b > По подземельям вы двигаетесь быстрее </ b ></ font ></ td >
</ tr >
< tr >
< td style = " border-bottom:1px solid #CCCCCC; " >& bull ; Бонус Жизни + 250 </ td >
< td width = " 75 " align = " center " valign = " middle " bgcolor = " #DADADA " style = " border-bottom:1px solid #CCCCCC; " >< b > Н а время действия Благодати </ b ></ td >
< td style = " border-bottom:1px solid #CCCCCC; " >< font color = darkgreen >< b > Увеличивает ваш уровень жизни .</ b ></ font ></ td >
</ tr >
< tr >
< td style = " border-bottom:1px solid #CCCCCC; " >& bull ; Мощность урона и магии + 15 </ td >
< td width = " 75 " align = " center " valign = " middle " bgcolor = " #DADADA " style = " border-bottom:1px solid #CCCCCC; " >< b > Н а время действия Благодати </ b ></ td >
< td style = " border-bottom:1px solid #CCCCCC; " >< font color = darkgreen >< b > Увеличивает мощность урона и магии на 15 едениц .</ b ></ font ></ td >
</ tr >
< tr >
< td style = " border-bottom:1px solid #CCCCCC; " >& bull ; Защита от урона и магии + 50 </ td >
< td width = " 75 " align = " center " valign = " middle " bgcolor = " #DADADA " style = " border-bottom:1px solid #CCCCCC; " >< b > Н а время действия Благодати </ b ></ td >
< td style = " border-bottom:1px solid #CCCCCC; " >< font color = darkgreen >< b > Увеличивает защиту от урона и магии на 50 едениц .</ b ></ font ></ td >
</ tr >
2024-01-05 22:14:35 +00:00
< ? php } ?>
2023-11-05 03:17:31 +00:00
</ table >
< fieldset >< p >< b > Доступные предметы :</ b >< br />< small > ( Чтобы забрать предмет просто кликните на е г о изображение ) </ small ></ p >
2022-06-06 21:30:34 +00:00
< p >
2023-03-31 18:42:06 +00:00
< ? php
2023-11-05 03:17:31 +00:00
$i = 0 ;
$seet = '' ;
$vnr = [ 0 => 'на сегодня' , 1 => ' всего' ];
while ( $i < count ( $ability [ $account ])) {
2022-12-19 20:16:24 +00:00
2023-11-05 03:17:31 +00:00
if ( $ability [ $account ][ $i ][ 1 ] > 0 ) {
2022-06-06 21:30:34 +00:00
2023-11-05 03:17:31 +00:00
$itm = mysql_fetch_array ( mysql_query ( 'SELECT * FROM `items_main` WHERE `id` = "' . $ability [ $account ][ $i ][ 0 ] . '" LIMIT 1' ));
if ( isset ( $itm [ 'id' ])) {
2022-06-06 21:30:34 +00:00
$vix = 0 ;
2023-11-05 03:17:31 +00:00
if ( $ability [ $account ][ $i ][ 4 ] == 0 ) {
2023-01-10 16:29:32 +00:00
//за сегодня
2024-05-14 14:24:54 +00:00
$time = strtotime ( 'now 00:00:00' );
2023-11-05 03:17:31 +00:00
} else {
2023-01-10 16:29:32 +00:00
//всего за действие премиума
2024-05-14 14:24:54 +00:00
$time = $vt [ 'timeUse' ];
2022-06-06 21:30:34 +00:00
}
2024-05-14 14:24:54 +00:00
$vix = ActionModel :: testCount ([ " uid = { $u -> info [ 'id' ] } " , " vars = vitm_ { $itm [ 'id' ] } " , " time >= $time " ]);
unset ( $time );
2022-06-06 21:30:34 +00:00
2023-11-05 03:17:31 +00:00
if ( $ability [ $account ][ $i ][ 1 ] - $vix > 0 && isset ( $_GET [ 'take_item_vip' ]) && $_GET [ 'take_item_vip' ] == $itm [ 'id' ]) {
2024-05-14 14:24:54 +00:00
$nitm = ItemsModel :: addItem ( $itm [ 'id' ], $u -> info [ 'id' ], $ability [ $account ][ $i ][ 5 ]);
2023-11-05 03:17:31 +00:00
$u -> addAction ( time (), 'vitm_' . $itm [ 'id' ], '' );
2024-05-14 14:24:54 +00:00
echo 'Предмет "<b>' . $itm [ 'name' ] . '</b>" перемещен к Вам в инвентарь!<br><br>' ;
2022-06-06 21:30:34 +00:00
}
$seet0 = '' ;
2023-11-05 03:17:31 +00:00
//Вывод предметов вип
$seet0 .= '<img ' . $vix . ' title="' . $itm [ 'name' ] . '
2024-05-14 14:24:54 +00:00
( Осталось ' . $vnr[$ability[$account][$i][4]] . ' : ' . ($ability[$account][$i][1] - $vix) . ' шт . ) " src= " ' . Config::img() . ' / i / items / ' . $itm[' img '] . ' " > ';
2023-11-05 03:17:31 +00:00
if ( $ability [ $account ][ $i ][ 1 ] - $vix > 0 ) {
$seet0 = '<a href="main.php?vip=1&take_item_vip=' . $itm [ 'id' ] . '">' . $seet0 . '</a>' ;
} else {
2024-05-14 14:24:54 +00:00
$seet0 = '<span style="filter: alpha(opacity=20); -moz-opacity: 0.20; opacity: 0.20;">' . $seet0 . '</span>' ;
2022-06-06 21:30:34 +00:00
}
$seet .= $seet0 ;
}
}
$i ++ ;
}
echo $seet ;
?>
</ p ></ td ></ fieldset >
2023-11-05 03:17:31 +00:00
</ tr >
</ table >