2022-06-06 21:30:34 +00:00
< ? php
if ( ! defined ( 'GAME' ))
{
die ();
}
session_start ();
$user = $u -> info ;
$timer = time () + 24 * 60 * 60 ;
$is_eff = mysql_fetch_array ( mysql_query ( " SELECT id,timeUse FROM eff_users where id_eff='396' and `delete` =0 and uid=' " . $u -> info [ 'id' ] . " ' " ));
if ( $_GET [ 'get' ] == '10' && $is_eff [ 0 ] == 0 ){
/*
2023-01-10 16:29:32 +00:00
'm1' => 'Мф. критического удара (%)' ,
'm2' => 'Мф. против критического удара (%)' ,
'm3' => 'Мф. мощности крит. удара (%)' ,
'm4' => 'Мф. увертывания (%)' ,
'm5' => 'Мф. против увертывания (%)' ,
'm6' => 'Мф. контрудара (%)' ,
'm7' => 'Мф. парирования (%)' ,
'm10' => 'Мф. мощности урона' ,
'm11' => 'Мф. мощности магии стихий' ,
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
's1' => 'Сила' ,
's2' => 'Ловкость' ,
's3' => 'Интуиция' ,
's4' => 'Выносливость' ,
's5' => 'Интеллект' ,
's6' => 'Мудрость' ,
's7' => 'Духовность' ,
's8' => 'Воля' ,
's9' => 'Свобода духа' ,
's10' => 'Божественность'
2022-06-06 21:30:34 +00:00
$u -> info [ 'admin' ]
*/
2022-12-19 18:26:14 +00:00
$datadd = '|add_m10=' . rand ( 1 , 2 ) . '|add_m11=' . rand ( 1 , 2 ) . '|add_m6=' . rand ( 1 , 2 ) . '|add_m7=' . rand ( 1 , 2 ) . '' ;
2022-06-06 21:30:34 +00:00
if ( mysql_query ( " UPDATE `users` SET `money`=`money`+'10' where `id`=' " . $user [ 'id' ] . " ' " ) and
mysql_query ( ' INSERT INTO `eff_users` (
`id_eff` , `uid` , `name` , `data` , `overType` , `timeUse`
) VALUES (
2023-01-10 16:29:32 +00:00
" 396 " , " '. $user['id'] .' " , " Благословление Падальщика " , " add_exp=5'. $datadd .'|nofastfinisheff=1 " , " 105 " , " '.time().' "
2022-06-06 21:30:34 +00:00
) ' ));
{
2023-01-10 16:29:32 +00:00
$err = " Падальщик сегодня в хорошем настроении. Вы получили Благословение Падальщика и 10 кредитов! " ;
2022-06-06 21:30:34 +00:00
mysql_query ( 'UPDATE `users_achiv` SET `pa`= `pa`+1 WHERE `id` = "' . $user [ 'id' ] . '" LIMIT 1' );
}
}
elseif ( $_GET [ 'get' ] == '10' && $is_eff [ 0 ] > 0 ){
$wait_sec = $is_eff [ 'timeUse' ];
$new_t = time ();
$left_time = $wait_sec - $new_t ;
$left_min = floor ( $left_time / 3600 );
$left_sec = floor (( $left_time - $left_min * 3600 ) / 60 );
2023-01-10 16:29:32 +00:00
if ( $left_min == 1 ){ $time_h = " час " ;}
if ( $left_min > 1 and $left_min < 5 ){ $time_h = " часа " ;}
if ( $left_min > 4 ){ $time_h = " часов " ;}
$time_left = $left_min . " " . $time_h . " " . $left_sec . " мин " ;
2022-06-06 21:30:34 +00:00
2023-01-10 16:29:32 +00:00
$err = " Вы уже получали благословение Падальщика. Дождитесь окончания текущего Благословления " ;
2022-06-06 21:30:34 +00:00
}
?>
< HTML >< HEAD >
< link rel = stylesheet type = " text/css " href = " https://img.new-combats.com/i/main.css " >
< meta content = " text/html; charset=utf8 " http - equiv = Content - type >
< META Http - Equiv = Cache - Control Content = no - cache >
< meta http - equiv = PRAGMA content = NO - CACHE >
< META Http - Equiv = Expires Content = 0 >
</ HEAD >
< body bgcolor = e2e0e0 style = " background-image: url(/i/misc/statue.png);background-repeat:no-repeat;background-position:top right " >
< div id = hint4 class = ahint ></ div >
< TABLE width = 100 %>
2023-01-10 16:29:32 +00:00
< TR >< TD valign = top width = 100 %>< center >< font style = " font-size:24px; color:#000033 " >< h3 > " Памятник Падальщику " </ h3 ></ font ></ center >
2022-06-06 21:30:34 +00:00
< div style = " float:right;width:300px; " >
< ?
2023-01-10 16:29:32 +00:00
//id предмета
2022-06-06 21:30:34 +00:00
$arr = array (
2023-01-10 16:29:32 +00:00
//Пока что предметов нету
2022-06-06 21:30:34 +00:00
);
if ( isset ( $_GET [ 'takeartefact' ]) ) {
$i = ( int ) $_GET [ 'takeartefact' ];
$itm = mysql_fetch_array ( mysql_query ( 'SELECT * FROM `items_main` WHERE `id` = "' . mysql_real_escape_string ( $arr [ $i ]) . '" LIMIT 1' ));
if ( isset ( $itm [ 'id' ])) {
$take_today = mysql_fetch_array ( mysql_query ( 'SELECT COUNT(*) FROM `items_users` WHERE `uid` = "' . $u -> info [ 'id' ] . '" AND `data` LIKE "%musor_art=1%" AND `delete` < 1234567890 LIMIT 1' ));
$take_today = 0 + $take_today [ 0 ];
if ( $take_today < 2 ) {
2023-01-10 16:29:32 +00:00
$error .= 'Вы взяли у Ангела «' . $itm [ 'name' ] . '» найти вы е г о можете у себя в рюкзаке.' ;
2022-06-06 21:30:34 +00:00
$u -> addItem ( $itm [ 'id' ], $u -> info [ 'id' ], '|sudba=' . $u -> info [ 'login' ] . '|nosale=1|frompisher=1|musor_art=1' );
} else {
2023-01-10 16:29:32 +00:00
$error .= 'Ангел Вам уже выдал предмет, больше вы не получите, если хотите поменять свою вещь, отдайте Ангелу те которые вы уже взяли !' ;
2022-06-06 21:30:34 +00:00
}
} else {
2023-01-10 16:29:32 +00:00
$error .= 'Предмет не найден!' ;
2022-06-06 21:30:34 +00:00
}
} elseif ( isset ( $_GET [ 'restart' ])) {
if ( mysql_query ( 'UPDATE `items_users` SET `delete` = "' . time () . '" WHERE `uid` = "' . $u -> info [ 'id' ] . '" AND `data` LIKE "%musor_art=1%" AND `delete` < 1234567890' )) {
2023-01-10 16:29:32 +00:00
$error .= 'Вы отдали все вещи полученные в дар Ангелом, выберите с е б е новые предметы.' ;
2022-06-06 21:30:34 +00:00
} else {
2023-01-10 16:29:32 +00:00
$error .= 'У вас нет предметов от Ангела.' ;
2022-06-06 21:30:34 +00:00
}
}
echo '<b style="color:red">' . $error . '</b><br>' ;
$i = 0 ;
$items = '' ;
while ( $i < count ( $arr )) {
$itm = mysql_fetch_array ( mysql_query ( 'SELECT * FROM `items_main` WHERE `id` = "' . mysql_real_escape_string ( $arr [ $i ]) . '" LIMIT 1' ));
if ( isset ( $itm [ 'id' ])) {
2023-01-10 16:29:32 +00:00
$items .= ' <a href="?takeartefact=' . $i . '"><img src="https://img.new-combats.com/i/items/' . $itm [ 'img' ] . '" title="Взять "' . $itm [ 'name' ] . '""></a> ' ;
2022-06-06 21:30:34 +00:00
}
$i ++ ;
}
2023-01-10 16:29:32 +00:00
/* echo '<a href="?restart=1">Отдать Ангелу вещи</a><br><b>Возможно взять вещи:</b><br>' ;
2022-06-06 21:30:34 +00:00
if ( $items != '' ) {
echo '<br><br>' . $items ;
} else {
2023-01-10 16:29:32 +00:00
echo 'Нет предметов' ;
2022-06-06 21:30:34 +00:00
} */
?>
</ div >
< center >< img src = " https://new-combats.com/i/statue/bigcarreat.jpg " ></ center >
< TD nowrap valign = top >
< BR >< DIV align = right >
< td width = 280 valign = top >< TABLE cellspacing = 0 cellpadding = 0 >< TD width = 100 %>& nbsp ; </ TD >< TD >< HTML >
< table border = " 0 " cellpadding = " 0 " cellspacing = " 0 " >
< tr align = " right " valign = " top " >
< td >
</ td >
< td >
< TABLE height = 15 border = " 0 " cellspacing = " 0 " cellpadding = " 0 " >
< table border = " 0 " cellpadding = " 0 " cellspacing = " 0 " >
< tr align = " right " valign = " top " >
< td >
</ td >
< td >
< td width = " 280 " valign = " top " >
< TABLE cellspacing = " 0 " cellpadding = " 0 " >< TD width = " 100% " >& nbsp ; </ TD >< TD >
< table border = " 0 " cellpadding = " 0 " cellspacing = " 0 " >
< tr align = " right " valign = " top " >
< td >
<!-- -->
2023-03-31 16:54:33 +00:00
< ? = $goLis ; ?>
2022-06-06 21:30:34 +00:00
<!-- -->
< table border = " 0 " cellspacing = " 0 " cellpadding = " 0 " >
< tr >
< td nowrap = " nowrap " >
< table width = " 100% " border = " 0 " cellpadding = " 0 " cellspacing = " 1 " bgcolor = " #DEDEDE " >
< tr >
2023-03-31 16:54:33 +00:00
< td bgcolor = " #D3D3D3 " >< img src = " https://<?= $c['img'] ; ?>/i/move/links.gif " width = " 9 " height = " 7 " /></ td >
< td bgcolor = " #D3D3D3 " nowrap >< a href = " # " id = " greyText " class = " menutop " onClick = " location='main.php?loc=1.180.0.415&rnd=<?= $code ; ?>'; " title = " <?php thisInfRm('1.180.0.415',1); ?> " > Площадь поклона </ a ></ td >
2022-06-06 21:30:34 +00:00
</ tr >
</ table >
</ td >
</ tr >
</ table >
</ td ></ table >
</ td ></ table >
</ td >
</ tr >
</ table >
2023-01-10 16:29:32 +00:00
<!-- < br />< span class = " menutop " >< nobr > Общежитие </ nobr ></ span >-->
2022-06-06 21:30:34 +00:00
</ td >
</ tr >
</ table >
< div id = " mmoves " style = " background-color:#FFFFCC; visibility:hidden; overflow:visible; position:absolute; border-color:#666666; border-style:solid; border-width: 1px; padding: 2px; white-space: nowrap; " ></ div >
</ TD ></ TR >
</ HTML >
</ TD ></ TABLE >
</ table >
</ DIV >
</ TD >
</ TR >
< tr >
< td >
< div align = " left " >< font color = " red " >< b >< ? = $err ?> </b></font></div>
2023-01-10 16:29:32 +00:00
Благословление Падальщика : < a href = " ?get=10 " > получить </ a >
2022-06-06 21:30:34 +00:00
</ td >
</ tr >
</ TABLE >
< br >
</ BODY >
< br >
< br >
< br >
< TABLE width = 100 % align = " right " >
< tr >< td >
</ TD ></ tr >
</ TABLE >
</ HTML >