game/modules_data/add_eff.php
2022-06-07 00:30:34 +03:00

590 lines
31 KiB
PHP

<?
echo "
<script language='JavaScript'>
var elem = document.getElementById('se-pre-con');
elem.parentNode.removeChild(elem);
</script>
";
if(!defined('GAME'))
{
die();
}
if($u->info['room'] == 214 || $u->info['room'] == 217 || $u->info['room'] == 218 || $u->info['room'] == 219 || $u->info['battle'] > 0 ) {
header('Location:main.php');
}
?>
<center><h3>Êóïèòü âðåìåííûå óñèëåíèÿ</h3><br>
<input class="btn btn-success" onClick="location.href='/main.php?add_eff';" type="button" value="Îáíîâèòü">
<input class="btn btn-success" onClick="location.href='/main.php';" type="button" value="Âåðíóòüñÿ"><br>
</center><br>
<fieldset style="border: 1px solid black;-webkit-border-radius: 50px;-moz-border-radius: 50px;border-radius: 50px;">
<center>&nbsp;<b>Äåíüãè: <font color=green><?=$u->info['money']?></font> êð.<br>&nbsp;Äåíüãè:<font color=green> <?=$u->info['money2']?></font> åêð.</b><br>
<b>Òåêóùèå ýôôåêòû:<b><br>
<?
$eff = mysql_query('SELECT * FROM `eff_users` WHERE `uid` = "'.$u->info['id'].'" AND `delete` = 0');
while($now = mysql_fetch_array($eff)) {
$ef = mysql_fetch_array(mysql_query('SELECT * FROM `eff_main` WHERE `id2` = "'.$now['id_eff'].'" LIMIT 1'));
echo '<img src="https://'.$c['img'].'/i/eff/'.$ef['img'].'">';
}
?>
<hr><h3>Óñèëåíèÿ çà êðåäèòû:</h3><hr>
<b>Çàêëèíàíèÿ:</b></center><hr><center>
<?
if( isset($_GET['1'])) {
$p = 10;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(4941,$u->info['id']);
if( $additm > 0 ) {
$u->info['money'] -= 10;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money` = "'.$u->info['money'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Çàùèòà îò ìàãèè</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['2'])) {
$p = 10;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(4942,$u->info['id']);
if( $additm > 0 ) {
$u->info['money'] -= 10;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money` = "'.$u->info['money'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Ìàãè÷åñêîå óñèëåíèå</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['3'])) {
$p = 10;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(994,$u->info['id']);
if( $additm > 0 ) {
$u->info['money'] -= 10;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money` = "'.$u->info['money'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Ñîêðóøåíèå</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['4'])) {
$p = 10;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(1001,$u->info['id']);
if( $additm > 0 ) {
$u->info['money'] -= 10;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money` = "'.$u->info['money'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Çàùèòà îò îðóæèÿ</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['5'])) {
$p = 10;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(1460,$u->info['id']);
if( $additm > 0 ) {
$u->info['money'] -= 10;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money` = "'.$u->info['money'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Õîëîäíûé ðàçóì</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['6'])) {
$p = 12.50;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(3102,$u->info['id']);
if( $additm > 0 ) {
$u->info['money'] -= 12.50;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money` = "'.$u->info['money'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Æàæäà Æèçíè +5</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['7'])) {
$p = 1;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(2418,$u->info['id']);
if( $additm > 0 ) {
$u->info['money'] -= 1;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money` = "'.$u->info['money'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Ýëèêñèð Âîññòàíîâëåíèÿ</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['8'])) {
$p = 1;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(3140,$u->info['id']);
if( $additm > 0 ) {
$u->info['money'] -= 1;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money` = "'.$u->info['money'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Ýëèêñèð ïîòîêà</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['9'])) {
$p = 0.50;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(4736,$u->info['id']);
if( $additm > 0 ) {
$u->info['money'] -= 5;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money` = "'.$u->info['money'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Ýëèêñèð Æèçíè</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['10'])) {
$p = 1;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(4737,$u->info['id']);
if( $additm > 0 ) {
$u->info['money'] -= 5;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money` = "'.$u->info['money'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Ýëèêñèð Ìàíû</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['11'])) {
$p = 1;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(870,$u->info['id']);
if( $additm > 0 ) {
$u->info['money'] -= 10;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money` = "'.$u->info['money'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Çåëüå Ìîãóùåñòâà</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['12'])) {
$p = 1;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(872,$u->info['id']);
if( $additm > 0 ) {
$u->info['money'] -= 10;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money` = "'.$u->info['money'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Çåëüå Ñòðåìèòåëüíîñòè</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['13'])) {
$p = 1;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(871,$u->info['id']);
if( $additm > 0 ) {
$u->info['money'] -= 10;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money` = "'.$u->info['money'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Çåëüå Ïðîçðåíèÿ</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['14'])) {
$p = 1;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(873,$u->info['id']);
if( $additm > 0 ) {
$u->info['money'] -= 10;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money` = "'.$u->info['money'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Çåëüå Ðàçóìà</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['15'])) {
$p = 10;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(2139,$u->info['id']);
if( $additm > 0 ) {
$u->info['money'] -= 25;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money` = "'.$u->info['money'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Íåêòàð Íåóÿçâèìîñòè</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['16'])) {
$p = 10;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(2140,$u->info['id']);
if( $additm > 0 ) {
$u->info['money'] -= 25;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money` = "'.$u->info['money'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Íåêòàð Îòðèöàíèÿ</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['17'])) {
$p = 0.5;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money2'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(3101,$u->info['id']);
if( $additm > 0 ) {
$u->info['money2'] -= 0.5;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money2` = "'.$u->info['money2'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Æàæäà Æèçíè +6</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['18'])) {
$p = 0.99;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money2'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(1463,$u->info['id']);
if( $additm > 0 ) {
$u->info['money2'] -= 0.99;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money2` = "'.$u->info['money2'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Çâåçäíîå Ñèÿíèå</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['19'])) {
$p = 0.4;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money2'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(4037,$u->info['id']);
if( $additm > 0 ) {
$u->info['money2'] -= 0.4;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money2` = "'.$u->info['money2'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Íåêòàð Âåëèêàíà</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['20'])) {
$p = 0.4;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money2'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(4040,$u->info['id']);
if( $additm > 0 ) {
$u->info['money2'] -= 0.4;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money2` = "'.$u->info['money2'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Íåêòàð Çìåè</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['21'])) {
$p = 0.4;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money2'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(4038,$u->info['id']);
if( $additm > 0 ) {
$u->info['money2'] -= 0.4;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money2` = "'.$u->info['money2'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Íåêòàð Ïðåä÷óâñòâèÿ</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['22'])) {
$p = 0.4;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money2'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(4039,$u->info['id']);
if( $additm > 0 ) {
$u->info['money2'] -= 0.4;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money2` = "'.$u->info['money2'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Íåêòàð Ðàçóìà</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['23'])) {
$p = 2.99;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money2'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(5110,$u->info['id']);
if( $additm > 0 ) {
$u->info['money2'] -= 2.99;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money2` = "'.$u->info['money2'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Ýëèêñèð Ìàãè÷åñêîãî Èñêóññòâà</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['24'])) {
$p = 2.99;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money2'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(5109,$u->info['id']);
if( $additm > 0 ) {
$u->info['money2'] -= 2.99;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money2` = "'.$u->info['money2'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Ñíàäîáüå Çàáûòûõ Ìàñòåðîâ</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}elseif( isset($_GET['25'])) {
$p = 4.99;
if($u->info['battle'] > 0) {
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money2'] < $p) {
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}else{
$additm = $u->addItem(5069,$u->info['id']);
if( $additm > 0 ) {
$u->info['money2'] -= 4.99;
$_GET['login'] = $u->info['login']; //íà êîãî êàñòóåì
$magic->useItems($additm);
unset($_GET['login']);
Mysql_query('UPDATE `users` SET `money2` = "'.$u->info['money2'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('DELETE FROM `items_users` WHERE `id` = "'.$additm.'" LIMIT 1');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Àìáðîçèÿ Ñêó÷àþùèõ Âëàäûê</b>&quot;.</font></b><br>';
}else{
echo '×òî-òî ïîøëî íå òàê, êàñò íå ñðàáîòàë...';
}
}
}
elseif(isset($_GET['30']))
{
$p = 1;
if($u->info['battle'] > 0)
{
echo '<font color=red><b>Âû â ïîåäèíêå!<br></font></b>';
}elseif($u->info['money2'] < $p)
{
echo '<font color=red><b>Íåäîñòàòî÷íî äåíåã :)<br></font></b>';
}
else
{
$u->info['money2'] -= $p;
Mysql_query('UPDATE `users` SET `money2` = "'.$u->info['money2'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
mysql_query('INSERT INTO `eff_users` (`no_Ace`,`id_eff`,`overType`,`uid`,`name`,`data`,`timeUse`) VALUES ("1","479","112","'.$u->info['id'].'","Çàùèòà îò íàïàäåíèÿ","zashitatk=1","'.(time()+290).'")');
echo '<font color=red><b>Âû èñïîëüçîâàëè &quot;<b>Çàùèòó îò íàïàäåíèÿ</b>&quot;.</font></b><br>';
}
}
echo '<img onclick="location.href=\'/main.php?add_eff&1\';" onMouseOver="top.hi(this,\'<b>Çàùèòà îò ìàãèè<hr>Öåíà: 10 êðåäèòîâ<hr>Óâåëè÷èâàåò çàùèòó îò ìàãèè íà 100 åäåíèö, ïðîäîëæèòåëüíîñòüþ 3 ÷àñà.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/magearmor.gif">';
echo '<img onclick="location.href=\'/main.php?add_eff&2\';" onMouseOver="top.hi(this,\'<b>Ìàãè÷åñêîå óñèëåíèå<hr>Öåíà: 10 êðåäèòîâ<hr>Óâåëè÷èâàåò ìîùíîñòü ìàãèè íà 25 åäèíèö, ïðîäîëæèòåëüíîñòüþ 3 ÷àñà.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/invoke_spell_godintel100.gif">';
echo '<img onclick="location.href=\'/main.php?add_eff&3\';" onMouseOver="top.hi(this,\'<b>Ñîêðóøåíèå<hr>Öåíà: 10 êðåäèòîâ<hr>Óâåëè÷èâàåò ìîùíîñòü óðîíà íà 25 åäèíèö, ïðîäîëæèòåëüíîñòüþ 1 ÷àñà.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/spell_powerup10.gif">';
echo '<img onclick="location.href=\'/main.php?add_eff&4\';" onMouseOver="top.hi(this,\'<b>Çàùèòà îò îðóæèÿ<hr>Öåíà: 10 êðåäèòîâ<hr>Óâåëè÷èâàåò çàùèòó îò óðîíà íà 100 åäåíèö, ïðîäîëæèòåëüíîñòüþ 3 ÷àñà.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/spell_protect10.gif">';
echo '<img onclick="location.href=\'/main.php?add_eff&5\';" onMouseOver="top.hi(this,\'<b>Õîëîäíûé Ðàçóì<hr>Öåíà: 10 êðåäèòîâ<hr>Óâåëè÷èâàåò Èíòåëåêò ïðîäîëæèòåëüíîñòüþ 3 ÷àñà.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/spell_stat_intel.gif">';
echo '<img onclick="location.href=\'/main.php?add_eff&6\';" onMouseOver="top.hi(this,\'<b>Æàæäà Æèçíè +5<hr>Öåíà: 10 êðåäèòîâ<hr>Óâåëè÷èâàåò êîëëè÷åñòâî æèçíåé ïðîäîëæèòåëüíîñòüþ 6 ÷àñîâ.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/spell_powerHPup5.gif">';
?>
<hr><b>Ýëèêñèðû:<b><hr>
<?
echo '<img onclick="location.href=\'/main.php?add_eff&9\';" onMouseOver="top.hi(this,\'<b>Ýëèêñèð Æèçíè<hr>Öåíà: 5 êðåäèòîâ.<hr>Ìãíîâåííî âîññòàíàâëèâàåò 500 æèçíåé.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/pot_cureHP250_20.gif">';
echo '<img onclick="location.href=\'/main.php?add_eff&10\';" onMouseOver="top.hi(this,\'<b>Ýëèêñèð Ìàíû<hr>Öåíà: 5 êðåäèòîâ.<hr>Ìãíîâåííî âîññòàíàâëèâàåò 1000 ìàíû.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/pot_curemana500_20.gif">';
echo '<img onclick="location.href=\'/main.php?add_eff&11\';" onMouseOver="top.hi(this,\'<b>Çåëüå Ìîãóùåñòâà<hr>Öåíà: 10 êðåäèòîâ<hr>Äîáàâèò èãðîêó 10 ñèëû íà 6 ÷àñîâ.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/pot_base_50_str.gif">';
echo '<img onclick="location.href=\'/main.php?add_eff&12\';" onMouseOver="top.hi(this,\'<b>Çåëüå Ñòðåìèòåëüíîñòè<hr>Öåíà: 10 êðåäèòîâ<hr>Äîáàâèò èãðîêó 10 ëîâêîñòè íà 6 ÷àñîâ.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/pot_base_50_dex.gif">';
echo '<img onclick="location.href=\'/main.php?add_eff&13\';" onMouseOver="top.hi(this,\'<b>Çåëüå Ïðîçðåíèÿ<hr>Öåíà: 10 êðåäèòîâ<hr>Äîáàâèò èãðîêó 10 èíòóèöèè íà 6 ÷àñîâ.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/pot_base_50_inst.gif">';
echo '<img onclick="location.href=\'/main.php?add_eff&14\';" onMouseOver="top.hi(this,\'<b>Çåëüå Ðàçóìà<hr>Öåíà: 10 êðåäèòîâ<hr>Äîáàâèò èãðîêó 10 èíòåëëåêòà íà 6 ÷àñîâ.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/pot_base_50_intel.gif">';
echo '<img onclick="location.href=\'/main.php?add_eff&15\';" onMouseOver="top.hi(this,\'<b>Íåêòàð Íåóÿçâèìîñòè<hr>Öåíà: 25 êðåäèòîâ<hr>Äîáàâèò èãðîêó 160 çàùèòû îò óðîíà íà 3 ÷àñà.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/pot_base_200_alldmg3.gif">';
echo '<img onclick="location.href=\'/main.php?add_eff&16\';" onMouseOver="top.hi(this,\'<b>Íåêòàð Îòðèöàíèÿ<hr>Öåíà: 25 êðåäèòîâ<hr>Äîáàâèò èãðîêó 160 çàùèòû îò ìàãèè íà 3 ÷àñà.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/pot_base_200_allmag3.gif">';
?>
<hr><h3>Óñèëåíèÿ çà ÅÊÐ:</h3><hr><b>Çàêëèíàíèÿ è çàùèòû:</b><hr>
<?
echo '<img onclick="location.href=\'/main.php?add_eff&17\';" onMouseOver="top.hi(this,\'<b>Æàæäà Æèçíè +6<hr><font color=green>Öåíà: 0.5 ÅÊÐ</font><hr>Óâåëè÷èâàåò êîëëè÷åñòâî æèçíåé ïðîäîëæèòåëüíîñòüþ 6 ÷àñîâ.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/spell_powerHPup6.gif">';
echo '<img onclick="location.href=\'/main.php?add_eff&30\';" onMouseOver="top.hi(this,\'<b>Çàùèòà îò íàïàäåíèÿ<hr><font color=green>Öåíà: 1 ÅÊÐ</font><hr>Çàùèòèò Âàñ îò ëþáûõ íàïàäåíèé íà ïðîòÿæåíèè 5 ìèíóò.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/eff/wis_light_shield.gif">';
//echo '<img onclick="location.href=\'/main.php?add_eff&18\';" onMouseOver="top.hi(this,\'<b>Çâåçäíîå Ñèÿíèå<hr><font color=green>Öåíà: 0.99 ÅÊÐ</font><hr>Ïðîäîëæèòåëüíîñòü äåéñòâèÿ: 1 ÷.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/spell_starshine.gif">';
?>
<hr><b>Ýëèêñèðû:</b><hr>
<?
echo '<img onclick="location.href=\'/main.php?add_eff&19\';" onMouseOver="top.hi(this,\'<b>Íåêòàð Âåëèêàíà<hr><font color=green>Öåíà: 0.4 ÅÊÐ</font><hr>Ïðîäîëæèòåëüíîñòü äåéñòâèÿ: 6 ÷.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/pot_base_50_str2.gif">';
echo '<img onclick="location.href=\'/main.php?add_eff&20\';" onMouseOver="top.hi(this,\'<b>Íåêòàð Çìåè<hr><font color=green>Öåíà: 0.4 ÅÊÐ</font><hr>Ïðîäîëæèòåëüíîñòü äåéñòâèÿ: 6 ÷.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/pot_base_50_dex2.gif">';
echo '<img onclick="location.href=\'/main.php?add_eff&21\';" onMouseOver="top.hi(this,\'<b>Íåêòàð Ïðåä÷óâñòâèÿ<hr><font color=green>Öåíà: 0.4 ÅÊÐ</font><hr>Ïðîäîëæèòåëüíîñòü äåéñòâèÿ: 6 ÷.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/pot_base_50_inst2.gif">';
echo '<img onclick="location.href=\'/main.php?add_eff&22\';" onMouseOver="top.hi(this,\'<b>Íåêòàð Ðàçóìà<hr><font color=green>Öåíà: 0.4 ÅÊÐ</font><hr>Ïðîäîëæèòåëüíîñòü äåéñòâèÿ: 6 ÷.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/pot_base_50_intel2.gif">';
//echo '<img onclick="location.href=\'/main.php?add_eff&23\';" onMouseOver="top.hi(this,\'<b>Ýëèêñèð Ìàãè÷åñêîãî Èñêóññòâà<hr><font color=green>Öåíà: 2.99 ÅÊÐ</font><hr>Ïðîäîëæèòåëüíîñòü äåéñòâèÿ: 3 ÷.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/pot_base_100_magmaster_2.gif">';
//echo '<img onclick="location.href=\'/main.php?add_eff&24\';" onMouseOver="top.hi(this,\'<b>Ñíàäîáüå Çàáûòûõ Ìàñòåðîâ<hr><font color=green>Öåíà: 2.99 ÅÊÐ</font><hr>Ïðîäîëæèòåëüíîñòü äåéñòâèÿ: 3 ÷.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/pot_base_100_master.gif">';
//echo '<img onclick="location.href=\'/main.php?add_eff&25\';" onMouseOver="top.hi(this,\'<b>Àìáðîçèÿ Ñêó÷àþùèõ Âëàäûê<hr><font color=green>Öåíà: 4.99 ÅÊÐ</font><hr>Ïðîäîëæèòåëüíîñòü äåéñòâèÿ: 3 ÷.</b>\',event,2,0,1,1,\'max-width:307px\')" onMouseOut="top.hic();" onMouseDown="top.hic();" class="cp" src="https://img.new-combats.com/i/items/ambosia_gora.gif">';
?>
</fieldset></center>