Удаление зоомагазина, книжного магазина, аукциона, арены, алтаря крови, турнирного магазина. #54
This commit is contained in:
parent
0796da3c53
commit
b7dd8d2d2e
@ -9,38 +9,39 @@ use User;
|
||||
|
||||
class Shop
|
||||
{
|
||||
private int $shopId;
|
||||
private array $wares;
|
||||
private int $otdel;
|
||||
private int $itemId;
|
||||
private $buyer;
|
||||
private const ITEM_GENERATION_CURRENT = 2;
|
||||
public const MAIN = 1;
|
||||
public const BEREZKA = 2;
|
||||
public const CRYSTALS = 1050; //магазин самоцветов
|
||||
public const REFERALS = 27; //магазин рефералов
|
||||
public const TEMPLE = 14; // храм?!
|
||||
public const IZLOM = 10; // излом?!
|
||||
public const LABORATORY = 45; //лаборатория?!?!
|
||||
public const ARTEFACTS = 777;
|
||||
public const BOOKS = 7;
|
||||
public const KNIGHTS_MAIN = 400; // общий рыцарский
|
||||
public const DUNGEON_BEZDNA = 801; // бездна
|
||||
public const DUNGEON_PTP = 802; // пещера тысячи проклятий
|
||||
public const DUNGEON_CATACOMBS = 803; // катакомбы
|
||||
public const DUNGEON_MISTY = 804; // пещера мглы
|
||||
public const FLOWER = 6;
|
||||
public const MUSHROOMS = 17; // магазин грибоеда??
|
||||
public const RULF_HRUNT = 33; // магазин рульфа хрунта, а ты что такое?
|
||||
public const LUKA = 5; // каморка Луки
|
||||
public const BLOOD_ALTAR = 11; //алтарь крови
|
||||
public const ANVIL = 700; // наковальня
|
||||
public const NEWBIE = 106; // магазин новичка
|
||||
public const SHOP_2 = 609; // неизвестный магазин
|
||||
public const SHOP_KAT = 44; // неизвестный магазин
|
||||
public const SHOP_PRIZ = 404; // неизвестный магазин
|
||||
public const TAVERN = 9;
|
||||
public const ANIMALS = 8;
|
||||
public const CRYSTALS = 1050;
|
||||
public const REFERALS = 27;
|
||||
public const TEMPLE = 14;
|
||||
public const IZLOM = 10;
|
||||
public const LABORATORY = 45;
|
||||
public const ARTEFACTS = 777; //магазин самоцветов
|
||||
public const KNIGHTS_MAIN = 400; //магазин рефералов
|
||||
public const DUNGEON_BEZDNA = 801; // храм?!
|
||||
public const DUNGEON_PTP = 802; // излом?!
|
||||
public const DUNGEON_CATACOMBS = 803; //лаборатория?!?!
|
||||
public const DUNGEON_MISTY = 804;
|
||||
//public const BOOKS = 7;
|
||||
public const MUSHROOMS = 17; // общий рыцарский
|
||||
public const RULF_HRUNT = 33; // бездна
|
||||
public const LUKA = 5; // пещера тысячи проклятий
|
||||
public const ANVIL = 700; // катакомбы
|
||||
public const NEWBIE = 106; // пещера мглы
|
||||
//public const FLOWER = 6;
|
||||
public const SHOP_2 = 609; // магазин грибоеда??
|
||||
public const SHOP_KAT = 44; // магазин рульфа хрунта, а ты что такое?
|
||||
public const SHOP_PRIZ = 404; // каморка Луки
|
||||
//public const BLOOD_ALTAR = 11; //алтарь крови
|
||||
public const TAVERN = 9; // наковальня
|
||||
public const ANIMALS = 8; // магазин новичка
|
||||
private int $shopId; // неизвестный магазин
|
||||
private array $wares; // неизвестный магазин
|
||||
private int $otdel; // неизвестный магазин
|
||||
private int $itemId;
|
||||
private $buyer;
|
||||
|
||||
public function __construct(int $shopId)
|
||||
{
|
||||
$this->otdel = intval($_GET['otdel']);
|
||||
@ -103,105 +104,6 @@ class Shop
|
||||
|
||||
}
|
||||
|
||||
private function changeItemPositionByInt(int $modificator)
|
||||
{
|
||||
Db::sql('update items_shop set pos = pos + ? where sid = ? and r = ? and item_id = ? and kolvo > 0',
|
||||
[$modificator, $this->shopId, $this->otdel, $this->itemId]);
|
||||
}
|
||||
|
||||
private function itemUp()
|
||||
{
|
||||
$this->changeItemPositionByInt(-1);
|
||||
}
|
||||
|
||||
private function itemDown()
|
||||
{
|
||||
$this->changeItemPositionByInt(1);
|
||||
}
|
||||
|
||||
private function calculateMinimalPrice($basePrice, $shopPrice, $needItems)
|
||||
{
|
||||
if ($shopPrice < 0.01 && !$needItems) {
|
||||
$shopPrice = $basePrice;
|
||||
}
|
||||
if ($shopPrice < 0) {
|
||||
$shopPrice = 0;
|
||||
}
|
||||
return $shopPrice;
|
||||
}
|
||||
|
||||
/**
|
||||
* Если в первом параметре передаётся false, строка во втором параметре красится в красный цвет.
|
||||
* @param bool $check
|
||||
* @param $value
|
||||
* @return string
|
||||
*/
|
||||
private function printColoredValue(bool $check, $value): string
|
||||
{
|
||||
$color = $check ? 'inherit' : 'red';
|
||||
return sprintf('<span style="color:%s;">%s</span>', $color, $value);
|
||||
}
|
||||
|
||||
private function align($needAlign, $needAlignBs): string
|
||||
{
|
||||
if ($needAlignBs == '1') {
|
||||
$align = '1.75';
|
||||
} elseif ($needAlignBs == '3') {
|
||||
$align = '3.01';
|
||||
} elseif (!empty($needAlign) && empty($needAlignBs)) {
|
||||
$align = $needAlign;
|
||||
}
|
||||
|
||||
return !empty($align) ?
|
||||
'<img src="' . Config::img() . '/i/align/align' . $align . '.gif" alt="Требуется склонность">' : '';
|
||||
}
|
||||
|
||||
private function destiny($d): string
|
||||
{
|
||||
if (empty($d)) {
|
||||
return '';
|
||||
}
|
||||
if ($d == 0) {
|
||||
$str = 'первым, кто наденет его';
|
||||
} elseif ($d == 1) {
|
||||
$str = 'первым, кто возьмёт его';
|
||||
} else {
|
||||
$str = $d;
|
||||
}
|
||||
return '<img
|
||||
title="Этот предмет будет связан общей судьбой с ' . $str . '. Никто другой не сможет его использовать."
|
||||
src="' . Config::img() . '/i/destiny0.gif"
|
||||
alt="Общая судьба">';
|
||||
}
|
||||
|
||||
private function needItems(string $items): string
|
||||
{
|
||||
if (!$items || Config::get('noitembuy')) {
|
||||
return '';
|
||||
}
|
||||
$result = '';
|
||||
$trn = true;
|
||||
|
||||
$itemsArray = explode(',', $items);
|
||||
foreach ($itemsArray as $keyvalue) {
|
||||
list($key, $value) = explode('=', $keyvalue);
|
||||
if (!empty($key) && !empty($value)) {
|
||||
$neededItemName = Db::getValue('select name from items_main where id = ?', [$key]);
|
||||
if ($neededItemName) {
|
||||
$neededItemsInInventoryCount = Db::getValue(
|
||||
'select count(*) from items_users where item_id = ? and inShop = 0 and inOdet = 0 and `delete` in (0,1000) and uid = ?',
|
||||
[$key, $this->buyer->getId()]);
|
||||
if ($neededItemsInInventoryCount < (int)$value) {
|
||||
$trn = false;
|
||||
}
|
||||
$result .= '[<strong>' . $neededItemName . '</strong>] x' . $value . ', ';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $this->printColoredValue($trn, '<br>Требует предмет: ' . rtrim($result, ', ') . ' ') . '<br>';
|
||||
}
|
||||
|
||||
public function printWares(string $plu = '')
|
||||
{
|
||||
if ($this->buyer->isAdmin()) {
|
||||
@ -643,4 +545,103 @@ class Shop
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
private function itemUp()
|
||||
{
|
||||
$this->changeItemPositionByInt(-1);
|
||||
}
|
||||
|
||||
private function changeItemPositionByInt(int $modificator)
|
||||
{
|
||||
Db::sql('update items_shop set pos = pos + ? where sid = ? and r = ? and item_id = ? and kolvo > 0',
|
||||
[$modificator, $this->shopId, $this->otdel, $this->itemId]);
|
||||
}
|
||||
|
||||
private function itemDown()
|
||||
{
|
||||
$this->changeItemPositionByInt(1);
|
||||
}
|
||||
|
||||
private function calculateMinimalPrice($basePrice, $shopPrice, $needItems)
|
||||
{
|
||||
if ($shopPrice < 0.01 && !$needItems) {
|
||||
$shopPrice = $basePrice;
|
||||
}
|
||||
if ($shopPrice < 0) {
|
||||
$shopPrice = 0;
|
||||
}
|
||||
return $shopPrice;
|
||||
}
|
||||
|
||||
private function align($needAlign, $needAlignBs): string
|
||||
{
|
||||
if ($needAlignBs == '1') {
|
||||
$align = '1.75';
|
||||
} elseif ($needAlignBs == '3') {
|
||||
$align = '3.01';
|
||||
} elseif (!empty($needAlign) && empty($needAlignBs)) {
|
||||
$align = $needAlign;
|
||||
}
|
||||
|
||||
return !empty($align) ?
|
||||
'<img src="' . Config::img() . '/i/align/align' . $align . '.gif" alt="Требуется склонность">' : '';
|
||||
}
|
||||
|
||||
private function destiny($d): string
|
||||
{
|
||||
if (empty($d)) {
|
||||
return '';
|
||||
}
|
||||
if ($d == 0) {
|
||||
$str = 'первым, кто наденет его';
|
||||
} elseif ($d == 1) {
|
||||
$str = 'первым, кто возьмёт его';
|
||||
} else {
|
||||
$str = $d;
|
||||
}
|
||||
return '<img
|
||||
title="Этот предмет будет связан общей судьбой с ' . $str . '. Никто другой не сможет его использовать."
|
||||
src="' . Config::img() . '/i/destiny0.gif"
|
||||
alt="Общая судьба">';
|
||||
}
|
||||
|
||||
/**
|
||||
* Если в первом параметре передаётся false, строка во втором параметре красится в красный цвет.
|
||||
* @param bool $check
|
||||
* @param $value
|
||||
* @return string
|
||||
*/
|
||||
private function printColoredValue(bool $check, $value): string
|
||||
{
|
||||
$color = $check ? 'inherit' : 'red';
|
||||
return sprintf('<span style="color:%s;">%s</span>', $color, $value);
|
||||
}
|
||||
|
||||
private function needItems(string $items): string
|
||||
{
|
||||
if (!$items || Config::get('noitembuy')) {
|
||||
return '';
|
||||
}
|
||||
$result = '';
|
||||
$trn = true;
|
||||
|
||||
$itemsArray = explode(',', $items);
|
||||
foreach ($itemsArray as $keyvalue) {
|
||||
[$key, $value] = explode('=', $keyvalue);
|
||||
if (!empty($key) && !empty($value)) {
|
||||
$neededItemName = Db::getValue('select name from items_main where id = ?', [$key]);
|
||||
if ($neededItemName) {
|
||||
$neededItemsInInventoryCount = Db::getValue(
|
||||
'select count(*) from items_users where item_id = ? and inShop = 0 and inOdet = 0 and `delete` in (0,1000) and uid = ?',
|
||||
[$key, $this->buyer->getId()]);
|
||||
if ($neededItemsInInventoryCount < (int)$value) {
|
||||
$trn = false;
|
||||
}
|
||||
$result .= '[<strong>' . $neededItemName . '</strong>] x' . $value . ', ';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $this->printColoredValue($trn, '<br>Требует предмет: ' . rtrim($result, ', ') . ' ') . '<br>';
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,15 +0,0 @@
|
||||
<?php
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
//удаляем предмет (1 из кучи) , а так-же добавляем + 1 к репутации
|
||||
if($u->info['room'] == 322) {
|
||||
$u->deleteItem($itm['id']);
|
||||
mysql_query('UPDATE `rep` SET `rep2` = `rep2` + 1 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
||||
$u->error = 'Вы успешно использовали "'.$itm['name'].'"...';
|
||||
}else{
|
||||
$u->error = 'Нельзя использовать в этой локации...';
|
||||
}
|
||||
?>
|
134
dng/index.html
134
dng/index.html
@ -1,63 +1,83 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
|
||||
<html lang="ru" xml:lang="ru" xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Всё о Подземельях - Армада</title>
|
||||
<link rel="stylesheet" type="text/css" href="i/css/dungeon.css" media="screen" />
|
||||
<link rel="stylesheet" type="text/css" href="i/css/vstyle1.css" media="screen" />
|
||||
<link rel="stylesheet" type="text/css" href="i/css/dungeon4ie.css" media="screen" />
|
||||
<title>Всё о Подземельях - Армада</title>
|
||||
<link href="i/css/dungeon.css" media="screen" rel="stylesheet" type="text/css"/>
|
||||
<link href="i/css/vstyle1.css" media="screen" rel="stylesheet" type="text/css"/>
|
||||
<link href="i/css/dungeon4ie.css" media="screen" rel="stylesheet" type="text/css"/>
|
||||
|
||||
<meta name="Distribution" content="Global" />
|
||||
<meta name="Classification" content="non-profit" />
|
||||
<meta name="Resource-type" content="application" />
|
||||
<meta name="Rating" content="Safe for Kids" />
|
||||
<meta name="Author" content="ландыши" />
|
||||
<meta name="Author" content="Proshka" />
|
||||
<meta name="Language" content="ru" />
|
||||
<meta name="save" content="favorite" />
|
||||
<meta name="keywords" content="Канализация, Подземелья, Диггер, Карта, БК, Бойцовский Клуб, Пещера Тысячи Проклятий, Бездна, Катакомбы, Пещеры Мглы, Алтарь Крови" />
|
||||
<script src="head/ahtmlv.js" language="javascript" type="text/javascript"></script>
|
||||
<script src="head/dcacommon.js" language="javascript" type="text/javascript"></script>
|
||||
<meta content="Global" name="Distribution"/>
|
||||
<meta content="non-profit" name="Classification"/>
|
||||
<meta content="application" name="Resource-type"/>
|
||||
<meta content="Safe for Kids" name="Rating"/>
|
||||
<meta content="ландыши" name="Author"/>
|
||||
<meta content="Proshka" name="Author"/>
|
||||
<meta content="ru" name="Language"/>
|
||||
<meta content="favorite" name="save"/>
|
||||
<meta content="Канализация, Подземелья, Диггер, Карта, БК, Бойцовский Клуб, Пещера Тысячи Проклятий, Бездна, Катакомбы, Пещеры Мглы"
|
||||
name="keywords"/>
|
||||
<script language="javascript" src="head/ahtmlv.js" type="text/javascript"></script>
|
||||
<script language="javascript" src="head/dcacommon.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="popupDiv" style="position: absolute; left: 0px; top: 1px; border: solid 1px infotext; background-color: infobackground; color: infotext; padding: 2px; z-index: 20; visibility: hidden; filter: alpha(opacity = 85, style = 4), blendtrans(duration = 0.3) progid:DXImageTransform.Microsoft.Shadow(color='#666666', Direction=135, Strength=1); font-size: 8pt; opacity: 0.85; -moz-opacity: 0.85; KhtmlOpacity: 0.85;"></div>
|
||||
<div id="menuDiv" onclick="onMenuClick()" onlosecapture="hideMenuCore()" style="position: absolute; border: solid 1px black; background-color: white; color: black; padding: 2px; z-index: 9; visibility: hidden; filter: alpha(opacity = 92, style = 4), blendtrans(duration = 0.2) progid:DXImageTransform.Microsoft.Shadow(color='#666666', Direction=135, Strength=2); font-size: 12pt"></div>
|
||||
<div id="header" class="unselectable" unselectable="on">
|
||||
<table background="i/ugetc/header_texture.gif" class="unselectable" unselectable="on" width="100%" height="180" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr><td>
|
||||
<div class="unselectable" style="float: right;" unselectable="on">
|
||||
<img id="header_rightpart" class="unselectable" src="i/blank.gif" border="0" width="1" height="1" alt="" unselectable="on" /></div>
|
||||
<div class="unselectable" style="position: absolute; left: 30px; top: 20px;" unselectable="on">
|
||||
<img id="header_dungeontitle" class="unselectable" src="i/blank.gif" width="1" height="1" border="0" alt="" unselectable="on" /></div>
|
||||
<div id="header_progress" class="unselectable" style="position: absolute; left: 0px; top: 165px;width:100%;text-align:center;" unselectable="on">
|
||||
<img class="unselectable" src="i/ugetc/progress.gif" width="287" height="15" border="0" alt="" unselectable="on" /></div>
|
||||
</td></tr></table></div><div id="menu">
|
||||
<div id="popupDiv"
|
||||
style="position: absolute; left: 0px; top: 1px; border: solid 1px infotext; background-color: infobackground; color: infotext; padding: 2px; z-index: 20; visibility: hidden; filter: alpha(opacity = 85, style = 4), blendtrans(duration = 0.3) progid:DXImageTransform.Microsoft.Shadow(color='#666666', Direction=135, Strength=1); font-size: 8pt; opacity: 0.85; -moz-opacity: 0.85; KhtmlOpacity: 0.85;"></div>
|
||||
<div id="menuDiv" onclick="onMenuClick()" onlosecapture="hideMenuCore()"
|
||||
style="position: absolute; border: solid 1px black; background-color: white; color: black; padding: 2px; z-index: 9; visibility: hidden; filter: alpha(opacity = 92, style = 4), blendtrans(duration = 0.2) progid:DXImageTransform.Microsoft.Shadow(color='#666666', Direction=135, Strength=2); font-size: 12pt"></div>
|
||||
<div class="unselectable" id="header" unselectable="on">
|
||||
<table background="i/ugetc/header_texture.gif" border="0" cellpadding="0" cellspacing="0" class="unselectable"
|
||||
height="180" unselectable="on" width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<div class="unselectable" style="float: right;" unselectable="on">
|
||||
<img alt="" border="0" class="unselectable" height="1" id="header_rightpart" src="i/blank.gif"
|
||||
unselectable="on" width="1"/></div>
|
||||
<div class="unselectable" style="position: absolute; left: 30px; top: 20px;" unselectable="on">
|
||||
<img alt="" border="0" class="unselectable" height="1" id="header_dungeontitle" src="i/blank.gif"
|
||||
unselectable="on" width="1"/></div>
|
||||
<div class="unselectable" id="header_progress"
|
||||
style="position: absolute; left: 0px; top: 165px;width:100%;text-align:center;" unselectable="on">
|
||||
<img alt="" border="0" class="unselectable" height="15" src="i/ugetc/progress.gif" unselectable="on"
|
||||
width="287"/></div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="menu">
|
||||
<ul id="nav">
|
||||
<li class="activeLink"><a href="javascript:;">Подземелья</a></li>
|
||||
<li><a target="_self" href="/">Домой</a></li>
|
||||
<li class="activeLink"><a href="javascript:">Подземелья</a></li>
|
||||
<li><a href="/" target="_self">Домой</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="content">
|
||||
<input class="userdata" type="hidden" id="du_historystore" name="du_historystore" value="" />
|
||||
<div id="right">
|
||||
<div id="dsurface">
|
||||
<div style="width: 100%; font-weight: bold; text-align: center; padding: 8px 8px 8px 8px">
|
||||
<img src="i/loading.gif" style="width:60px;height:60px;padding:20px;border:0 none transparent;float:right;" />
|
||||
<div class="hintview" style="padding: 4px;font-weight: normal;">Первоначальная загрузка каждого Подземелья кэширует все необходимые файлы, и вторичное их открытие будет очень быстрым.</div>
|
||||
Пожалуйста, подождите, пока загружается ресурс "Всё о Подземельях"...<br /><br /><small>Если ресурс не загружается, нажмите <kbd>Ctrl+F5</kbd>, или почистите кэш временных файлов Вашего браузера Internet.</small></div>
|
||||
<div style="width: 100%; text-align: center; padding: 8px 8px 8px 8px"><a href="javascript:;" class="TLink" onclick="doClean()">Очистить все данные</a></div>
|
||||
</div>
|
||||
<hr size="1" noshade="noshade" />
|
||||
<div>
|
||||
<div id="ads" style="float: right; z-index: 1; background-color: #000;">
|
||||
</div>
|
||||
</div>
|
||||
<input class="userdata" id="du_historystore" name="du_historystore" type="hidden" value=""/>
|
||||
<div id="right">
|
||||
<div id="dsurface">
|
||||
<div style="width: 100%; font-weight: bold; text-align: center; padding: 8px 8px 8px 8px">
|
||||
<img src="i/loading.gif"
|
||||
style="width:60px;height:60px;padding:20px;border:0 none transparent;float:right;"/>
|
||||
<div class="hintview" style="padding: 4px;font-weight: normal;">Первоначальная загрузка каждого
|
||||
Подземелья кэширует все необходимые файлы, и вторичное их открытие будет очень быстрым.
|
||||
</div>
|
||||
Пожалуйста, подождите, пока загружается ресурс "Всё о Подземельях"...<br/><br/><small>Если
|
||||
ресурс не загружается, нажмите <kbd>Ctrl+F5</kbd>, или почистите кэш временных файлов Вашего браузера
|
||||
Internet.</small></div>
|
||||
<div style="width: 100%; text-align: center; padding: 8px 8px 8px 8px"><a class="TLink" href="javascript:"
|
||||
onclick="doClean()">Очистить все
|
||||
данные</a></div>
|
||||
</div>
|
||||
<hr noshade="noshade" size="1"/>
|
||||
<div>
|
||||
<div id="ads" style="float: right; z-index: 1; background-color: #000;">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script language="javascript" type="text/javascript">
|
||||
function doNothing() {
|
||||
<script language="javascript" type="text/javascript">
|
||||
function doNothing() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function doClean() {
|
||||
function doClean() {
|
||||
window.onunload = doNothing;
|
||||
DeleteCookie('du_Options');
|
||||
var historystore = document.getElementById('du_historystore');
|
||||
@ -65,19 +85,19 @@ function doClean() {
|
||||
historystore.setAttribute("du_sPersistAttr", historystore.value);
|
||||
historystore.save('du_historystore');
|
||||
window.location.href = window.location.href;
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<div id="left">
|
||||
<center>
|
||||
<iframe id="offline_frame" align="center" width="200" height="50" frameborder="no" scrolling="no"></iframe>
|
||||
<iframe align="center" frameborder="no" height="50" id="offline_frame" scrolling="no" width="200"></iframe>
|
||||
</center>
|
||||
</div>
|
||||
</div>
|
||||
<script src="head/dungeonengine.js" language="javascript" type="text/javascript"></script>
|
||||
<script src="dungeonoffline.js" language="javascript" type="text/javascript"></script>
|
||||
<script src="head/dungeon.offlinedata.js" language="javascript" type="text/javascript"></script>
|
||||
<script src="head/dungeon.constructor.js" language="javascript" type="text/javascript"></script>
|
||||
<script src="head/dungeon.all.js" language="javascript" type="text/javascript"></script>
|
||||
<script language="javascript" src="head/dungeonengine.js" type="text/javascript"></script>
|
||||
<script language="javascript" src="dungeonoffline.js" type="text/javascript"></script>
|
||||
<script language="javascript" src="head/dungeon.offlinedata.js" type="text/javascript"></script>
|
||||
<script language="javascript" src="head/dungeon.constructor.js" type="text/javascript"></script>
|
||||
<script language="javascript" src="head/dungeon.all.js" type="text/javascript"></script>
|
||||
</body>
|
||||
</html>
|
81
inf.php
81
inf.php
@ -757,7 +757,48 @@ if ($inf['inTurnir'] > 0 && ($u->info['inTurnir'] == $inf['inTurnir'] || $u->inf
|
||||
width: 60px;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" language="javascript"> var lafstReg = {}; function lookGift(e, id, nm, img, txt, from) { if (from == 1) { from = '<i>Невидимка</i>'; } if (!e) { e = window.event; } var body2 = document.body; mX = e.x; mY = e.y + (body2 && body2.scrollTop || 0); var gf = document.getElementById('gi'); if (gf != undefined) { gf.style.top = mY + 'px'; gf.style.left = mX + 'px'; if (from == '<i>Анонима</i>') { from = '</a><i>Анонима</i><a>'; } gf.innerHTML = `<b><span style="float:left;">${nm}</span> <span style="float:right;"> <a href="javascript:void(0);" onClick="closeGift();">X</a></span></b><br><div align="center" style="padding:5px;background-color:#dcdedc;"><img src="//img.new-combats.tech/i/items/${img}"></div>${txt}<div>Подарок от <a target="_blank" href="/info/${from}">${from}</a></div>`; gf.innerHTML = `<small>${gf.innerHTML}</small>`; gf.style.display = ''; } } function closeGift() { var gf = document.getElementById('gi'); if (gf != undefined) { gf.innerHTML = ''; gf.style.display = 'none'; } } function tstlgnthm() { if (window.opener && (window.opener.textmsg != undefined || window.opener.parent.textmsg != undefined)) { if (window.opener.textmsg != undefined) { $('#lgnthm').html('<img onclick="window.opener.chat.addto(\'<?=$inf['login']?>\',\'private\');" style="cursor:pointer" title="Написать персонажу" src="//img.new-combats.tech/i/lock3.gif" width="20" height="15">' + $('#lgnthm').html()); return } $('#lgnthm').html('<img onclick="window.opener.parent.chat.addto(\'<?=$inf['login']?>\',\'private\');" style="cursor:pointer" title="Написать персонажу" src="//img.new-combats.tech/i/lock3.gif" width="20" height="15">' + $('#lgnthm').html()); } } </script>
|
||||
<script type="text/javascript" language="javascript"> var lafstReg = {};
|
||||
|
||||
function lookGift(e, id, nm, img, txt, from) {
|
||||
if (from == 1) {
|
||||
from = '<i>Невидимка</i>';
|
||||
}
|
||||
if (!e) {
|
||||
e = window.event;
|
||||
}
|
||||
var body2 = document.body;
|
||||
mX = e.x;
|
||||
mY = e.y + (body2 && body2.scrollTop || 0);
|
||||
var gf = document.getElementById('gi');
|
||||
if (gf != undefined) {
|
||||
gf.style.top = mY + 'px';
|
||||
gf.style.left = mX + 'px';
|
||||
if (from == '<i>Анонима</i>') {
|
||||
from = '</a><i>Анонима</i><a>';
|
||||
}
|
||||
gf.innerHTML = `<b><span style="float:left;">${nm}</span> <span style="float:right;"> <a href="javascript:void(0);" onClick="closeGift();">X</a></span></b><br><div align="center" style="padding:5px;background-color:#dcdedc;"><img src="//img.new-combats.tech/i/items/${img}"></div>${txt}<div>Подарок от <a target="_blank" href="/info/${from}">${from}</a></div>`;
|
||||
gf.innerHTML = `<small>${gf.innerHTML}</small>`;
|
||||
gf.style.display = '';
|
||||
}
|
||||
}
|
||||
|
||||
function closeGift() {
|
||||
var gf = document.getElementById('gi');
|
||||
if (gf != undefined) {
|
||||
gf.innerHTML = '';
|
||||
gf.style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
function tstlgnthm() {
|
||||
if (window.opener && (window.opener.textmsg != undefined || window.opener.parent.textmsg != undefined)) {
|
||||
if (window.opener.textmsg != undefined) {
|
||||
$('#lgnthm').html('<img onclick="window.opener.chat.addto(\'<?=$inf['login']?>\',\'private\');" style="cursor:pointer" title="Написать персонажу" src="//img.new-combats.tech/i/lock3.gif" width="20" height="15">' + $('#lgnthm').html());
|
||||
return
|
||||
}
|
||||
$('#lgnthm').html('<img onclick="window.opener.parent.chat.addto(\'<?=$inf['login']?>\',\'private\');" style="cursor:pointer" title="Написать персонажу" src="//img.new-combats.tech/i/lock3.gif" width="20" height="15">' + $('#lgnthm').html());
|
||||
}
|
||||
} </script>
|
||||
</head>
|
||||
<body style="padding-top:0px; margin-top:7px; height:100%; background-color:#E2E0E1;">
|
||||
<div id="ttl" class="ttl_css" style="display:none;z-index:1111;"/>
|
||||
@ -802,9 +843,7 @@ if (isset($uer)) {
|
||||
$rgd[0] = '0.28';
|
||||
}
|
||||
?>
|
||||
startHpRegen(<?= '"top",' . $inf['id'] . ',' . (0 + $st['hpNow']) . ',' . (0 + $st['hpAll']) . ',' . (0 + $st['mpNow']) . ',' . (0 + $st['mpAll']) . ',' . (time(
|
||||
) - $inf['regHP']) . ',' . (time(
|
||||
) - $inf['regMP']) . ',' . (0 + $rgd[0]) . ',' . (0 + $rgd[1]) . ''; ?>, 1);</script>
|
||||
startHpRegen(<?= '"top",' . $inf['id'] . ',' . (0 + $st['hpNow']) . ',' . (0 + $st['hpAll']) . ',' . (0 + $st['mpNow']) . ',' . (0 + $st['mpAll']) . ',' . (time() - $inf['regHP']) . ',' . (time() - $inf['regMP']) . ',' . (0 + $rgd[0]) . ',' . (0 + $rgd[1]) . ''; ?>, 1);</script>
|
||||
<?php
|
||||
$kp = [
|
||||
0 => 1,
|
||||
@ -848,8 +887,7 @@ if (isset($uer)) {
|
||||
echo '<center style="padding-top:3px;"><!-- <b>' . $u->city_name[$inf['city']] . '</b><br> --><small>';
|
||||
|
||||
|
||||
if ($inf['online'] > time(
|
||||
) - 520 && $inf['banned'] == 0 && $inf['invis'] != 1 && $inf['invis'] < time()) {
|
||||
if ($inf['online'] > time() - 520 && $inf['banned'] == 0 && $inf['invis'] != 1 && $inf['invis'] < time()) {
|
||||
echo 'Персонаж сейчас находится в клубе.<br><b>"' . $room['name'] . '"</b>';
|
||||
} else {
|
||||
if ($inf['admin'] == 0 || $inf['admin'] == 2) {
|
||||
@ -938,8 +976,7 @@ if (isset($uer)) {
|
||||
|
||||
if (isset($_GET['cancel_eff'])) {
|
||||
mysql_query(
|
||||
'UPDATE `eff_users` SET `delete` = "' . time(
|
||||
) . '" WHERE `id` = "' . mysql_real_escape_string(
|
||||
'UPDATE `eff_users` SET `delete` = "' . time() . '" WHERE `id` = "' . mysql_real_escape_string(
|
||||
(int)$_GET['cancel_eff']
|
||||
) . '" AND `uid` = "' . $inf['id'] . '" LIMIT 1'
|
||||
);
|
||||
@ -1275,8 +1312,7 @@ if (isset($uer)) {
|
||||
}
|
||||
|
||||
$sp = mysql_query(
|
||||
'SELECT * FROM `users_ico` WHERE `uid` = "' . $inf['id'] . '" AND (`endTime` = 0 OR `endTime` > ' . time(
|
||||
) . ') LIMIT 100'
|
||||
'SELECT * FROM `users_ico` WHERE `uid` = "' . $inf['id'] . '" AND (`endTime` = 0 OR `endTime` > ' . time() . ') LIMIT 100'
|
||||
);
|
||||
while ($pl = mysql_fetch_array($sp)) {
|
||||
$stlico = '';
|
||||
@ -1330,11 +1366,6 @@ if (isset($uer)) {
|
||||
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/znrune_1.gif" onMouseOver="top.hi(this,\'<b>Храм Знаний</b><br>Посвященный первого круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
|
||||
}
|
||||
|
||||
//Алтарь крови
|
||||
if ($irep['rep2'] > 99) {
|
||||
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/znbl_1.gif" onMouseOver="top.hi(this,\'<b>Алтарь Крови</b><br>Посвященный первого круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
|
||||
}
|
||||
|
||||
//Излом хаоса
|
||||
if ($irep['repizlom'] > 24999) {
|
||||
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/iz_zn_ver10_4.gif" onMouseOver="top.hi(this,\'<b>Излом Хаоса</b><br>Генерал\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
|
||||
@ -1346,7 +1377,6 @@ if (isset($uer)) {
|
||||
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/iz_zn_ver10_1.gif" onMouseOver="top.hi(this,\'<b>Излом Хаоса</b><br>Аттестованный боец\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
|
||||
}
|
||||
|
||||
|
||||
//capitalcity
|
||||
if ($irep['repcapitalcity'] > 24999) {
|
||||
$ico[1] .= '<a href="#"><img src="//img.new-combats.tech/zn1_2.gif" onMouseOver="top.hi(this,\'<b>Capital city</b><br>Рыцарь второго круга\',event,0,0,1,0,\'\');" onMouseOut="top.hic();" onMouseDown="top.hic();"></a>';
|
||||
@ -1545,8 +1575,7 @@ if (isset($uer)) {
|
||||
)
|
||||
);
|
||||
echo '<br><img src="//img.new-combats.tech/i/travma2.gif"> Персонаж ослаблен из-за смерти в бою, еще ' . timeOut(
|
||||
$st['effects'][$nn]['timeUse'] + $st['effects'][$nn]['timeAce'] + $osl['actionTime'] - time(
|
||||
)
|
||||
$st['effects'][$nn]['timeUse'] + $st['effects'][$nn]['timeAce'] + $osl['actionTime'] - time()
|
||||
) . ' ';
|
||||
$nn = count($st['effects']) + 1;
|
||||
}
|
||||
@ -1572,8 +1601,7 @@ if (isset($uer)) {
|
||||
$inf['banned'] > 0 ||
|
||||
$inf['jail'] > time()) {
|
||||
$to = '';
|
||||
if ($inf['align'] >= 2 && $inf['align'] < 3 && ($inf['haos'] > time(
|
||||
) || $inf['haos'] == 1)) {
|
||||
if ($inf['align'] >= 2 && $inf['align'] < 3 && ($inf['haos'] > time() || $inf['haos'] == 1)) {
|
||||
$to = 'хаос';
|
||||
}
|
||||
if ($inf['banned'] > 0) {
|
||||
@ -1599,8 +1627,7 @@ if (isset($uer)) {
|
||||
echo 'Сообщение от модераторов:<br>';
|
||||
echo '<font color="red" style="background-color:#fae0e0;"><b>' . $fm['text'] . '</b></font><br>';
|
||||
}
|
||||
if ($inf['align'] >= 2 && $inf['align'] < 3 && ($inf['haos'] > time(
|
||||
) || $inf['haos'] == 1)) {
|
||||
if ($inf['align'] >= 2 && $inf['align'] < 3 && ($inf['haos'] > time() || $inf['haos'] == 1)) {
|
||||
if ($inf['haos'] == 1) {
|
||||
echo 'Хаос <i>бессрочно</i>.';
|
||||
} else {
|
||||
@ -1611,8 +1638,7 @@ if (isset($uer)) {
|
||||
}
|
||||
|
||||
//подарки
|
||||
if (($inf['info_delete'] < time(
|
||||
) && $inf['info_delete'] != 1) || ($u->info['align'] > 1 && $u->info['align'] < 2 || $u->info['align'] > 3 && $u->info['align'] < 4 || $u->info['admin'] > 0 || $u->info['nadmin'] > 0)) {
|
||||
if (($inf['info_delete'] < time() && $inf['info_delete'] != 1) || ($u->info['align'] > 1 && $u->info['align'] < 2 || $u->info['align'] > 3 && $u->info['align'] < 4 || $u->info['admin'] > 0 || $u->info['nadmin'] > 0)) {
|
||||
$gs = ['', '', ''];
|
||||
$glim = 1000;
|
||||
$i = 0;
|
||||
@ -2229,7 +2255,6 @@ if (isset($uer)) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!$nopal && ($u->info['admin'] != 0 || $inf['admin'] == 0)) {
|
||||
echo '<div style="color:#828282; margin-top: 20px;">За игроком замечены следующие темные делишки:<br><small><span class=dsc>';
|
||||
if (!isset($_GET['mod_inf'])) {
|
||||
@ -2410,9 +2435,9 @@ if (isset($uer)) {
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
$moder = 0;
|
||||
|
@ -6,6 +6,7 @@ elem.parentNode.removeChild(elem);
|
||||
</script>";
|
||||
|
||||
use Core\Config;
|
||||
use Core\ConversionHelper;
|
||||
use DarksLight2\Battle\Techniques\TechniqueCategoryEntity;
|
||||
use DarksLight2\Training\TrainingManager;
|
||||
|
||||
@ -200,7 +201,7 @@ $tma = '';
|
||||
<TD>
|
||||
<?php
|
||||
echo $u->microLogin($u->info['id']);
|
||||
$st = \Core\ConversionHelper::dataStringToArray($u->info['stats']);
|
||||
$st = ConversionHelper::dataStringToArray($u->info['stats']);
|
||||
if (
|
||||
$_GET['dec_transfer'] ||
|
||||
$_GET['dec_travma'] ||
|
||||
@ -260,7 +261,7 @@ $tma = '';
|
||||
$st['os9'] += (int)$_GET['speed_HP'];
|
||||
$st['os10'] += (int)$_GET['speed_MP'];
|
||||
$st['os11'] += (int)$_GET['speed_debuff'];
|
||||
$u->info['stats'] = \Core\ConversionHelper::arrayToDataString($st);
|
||||
$u->info['stats'] = ConversionHelper::arrayToDataString($st);
|
||||
}
|
||||
if ($u->info['sskills'] - (int)$summs < 0) {
|
||||
echo ' <span style="color: red; ">У вас нет свободных особенностей</span><br>';
|
||||
@ -465,7 +466,7 @@ $tma = '';
|
||||
$st['s10'] += (int)$_GET['god'];
|
||||
}
|
||||
|
||||
$u->info['stats'] = \Core\ConversionHelper::arrayToDataString($st);
|
||||
$u->info['stats'] = ConversionHelper::arrayToDataString($st);
|
||||
|
||||
if (
|
||||
$_GET['str'] < 0 || $_GET['dex'] < 0 || $_GET['intel'] < 0 || $_GET['wis'] < 0 || $_GET['spirit'] < 0 || $_GET['will'] < 0 || $_GET['freedom'] < 0 || $_GET['god'] < 0 || $_GET['inst'] < 0 || $_GET['power'] < 0 || $_GET['m_sword'] < 0 || $_GET['m_tohand'] < 0 || $_GET['m_molot'] < 0 || $_GET['m_staff'] < 0 || $_GET['m_magic1'] < 0 || $_GET['m_magic2'] < 0 || $_GET['m_magic3'] < 0 || $_GET['m_magic4'] < 0 || $_GET['m_magic5'] < 0 || $_GET['m_magic6'] < 0 || $_GET['m_magic7'] < 0) {
|
||||
@ -1425,7 +1426,7 @@ $tma = '';
|
||||
$clr = $clr == 'C7' ? 'D5' : 'C7';
|
||||
$v1 = '';
|
||||
$v2 = '';
|
||||
$v3 = \Core\ConversionHelper::dataStringToArray($u->stats['effects'][$i]['data']);
|
||||
$v3 = ConversionHelper::dataStringToArray($u->stats['effects'][$i]['data']);
|
||||
$j = 0;
|
||||
while ($j < count($u->items['add'])) {
|
||||
if (isset($v3['add_' . $u->items['add'][$j]])) {
|
||||
@ -1484,7 +1485,7 @@ $tma = '';
|
||||
$clr = $clr == 'C7' ? 'D5' : 'C7';
|
||||
$v1 = '';
|
||||
$v2 = '';
|
||||
$v3 = \Core\ConversionHelper::dataStringToArray($e['bonus']);
|
||||
$v3 = ConversionHelper::dataStringToArray($e['bonus']);
|
||||
|
||||
$j = 0;
|
||||
while ($j < count($u->items['add'])) {
|
||||
@ -1543,8 +1544,7 @@ $tma = '';
|
||||
$ae = '';
|
||||
|
||||
$sp = mysql_query(
|
||||
'SELECT * FROM `eff_users` WHERE `v1` LIKE "pgb%" AND `delete` = "0" AND `deactiveTime` > ' . time(
|
||||
) . ' AND `uid` = "' . $u->info['id'] . '" ORDER BY `timeUse` DESC'
|
||||
'SELECT * FROM `eff_users` WHERE `v1` LIKE "pgb%" AND `delete` = "0" AND `deactiveTime` > ' . time() . ' AND `uid` = "' . $u->info['id'] . '" ORDER BY `timeUse` DESC'
|
||||
);
|
||||
while ($pl = mysql_fetch_array($sp)) {
|
||||
$tp = (int)str_replace('pgb', '', $pl['v1']);
|
||||
@ -1560,8 +1560,7 @@ $tma = '';
|
||||
}
|
||||
$psh = mysql_fetch_array(
|
||||
mysql_query(
|
||||
'SELECT * FROM `actions` WHERE `uid` = "' . $u->info['id'] . '" AND `vars` = "psh0" AND `time` > ' . (time(
|
||||
) - 7200) . ' LIMIT 1'
|
||||
'SELECT * FROM `actions` WHERE `uid` = "' . $u->info['id'] . '" AND `vars` = "psh0" AND `time` > ' . (time() - 7200) . ' LIMIT 1'
|
||||
)
|
||||
);
|
||||
if (isset($psh['id'])) {
|
||||
@ -1901,7 +1900,7 @@ $tma = '';
|
||||
//добавляем действия комплекта
|
||||
$cmss .= '<small style="color:grey">';
|
||||
$ij = 0;
|
||||
$sti = \Core\ConversionHelper::dataStringToArray($plc['data']);
|
||||
$sti = ConversionHelper::dataStringToArray($plc['data']);
|
||||
while ($ij < count($ia)) {
|
||||
if (isset($ia[$ij]) && isset($sti[$ia[$ij]])) {
|
||||
$mad = $sti[$ia[$ij]];
|
||||
@ -2000,7 +1999,7 @@ $tma = '';
|
||||
god: <?=$st['s10']?>
|
||||
<?php }?>
|
||||
};
|
||||
var skillsArr = new Array();
|
||||
var skillsArr = [];
|
||||
skillsArr["m_axe"] = <?=$st['a4']?>;
|
||||
skillsArr["m_molot"] = <?=$st['a3']?>;
|
||||
skillsArr["m_staff"] = <?=$st['a5']?>;
|
||||
@ -2015,7 +2014,7 @@ $tma = '';
|
||||
skillsArr["m_magic7"] = <?=$st['mg7']?>;
|
||||
|
||||
function SetAllSkills(isOn) {
|
||||
var arrSkills = new Array("str", "dex", "inst", "power", "intel", "wis", "spirit", "will", "freedom", "god");
|
||||
var arrSkills = ["str", "dex", "inst", "power", "intel", "wis", "spirit", "will", "freedom", "god"];
|
||||
for (var i in arrSkills) {
|
||||
var clname = (isOn) ? "skill" : "nonactive";
|
||||
if (oNode = document.getElementById("plus_" + arrSkills[i])) oNode.className = clname;
|
||||
@ -2238,7 +2237,7 @@ $tma = '';
|
||||
}
|
||||
?>
|
||||
<FIELDSET>
|
||||
<LEGEND style="font-weight: bold; color: #660000;">Текущее Ежедневное задание: </LEGEND>
|
||||
<LEGEND style="font-weight: bold; color: #660000;">Текущее Ежедневное задание:</LEGEND>
|
||||
<?= $daytext ?>
|
||||
<BR>
|
||||
</FIELDSET>
|
||||
@ -2253,8 +2252,7 @@ $tma = '';
|
||||
}
|
||||
|
||||
$sp = mysql_query(
|
||||
'SELECT * FROM `actions` WHERE `uid` = "' . $u->info['id'] . '" AND `vars` LIKE "psh_qt_%" AND `time` > ' . (time(
|
||||
) - 86400) . ' '
|
||||
'SELECT * FROM `actions` WHERE `uid` = "' . $u->info['id'] . '" AND `vars` LIKE "psh_qt_%" AND `time` > ' . (time() - 86400) . ' '
|
||||
);
|
||||
while ($pl = mysql_fetch_array($sp)) {
|
||||
$ic1 = str_replace('psh_qt_', '', $pl['vars']);
|
||||
@ -2262,8 +2260,7 @@ $tma = '';
|
||||
}
|
||||
//Пещеры
|
||||
$dungeon_timeout = $u->testAction(
|
||||
'`uid` = "' . $u->info['id'] . '" AND `vars` = "psh0" AND `time` > ' . (time(
|
||||
) - 60 * 60 * 3) . ' LIMIT 1',
|
||||
'`uid` = "' . $u->info['id'] . '" AND `vars` = "psh0" AND `time` > ' . (time() - 60 * 60 * 3) . ' LIMIT 1',
|
||||
1
|
||||
);
|
||||
if ($dungeon_timeout['vars'] == "psh0") {
|
||||
@ -2308,10 +2305,6 @@ $tma = '';
|
||||
• <B>Храм Знаний</B> - <?= $u->rep_zv(1, $u->rep['rep1']) ?><BR>
|
||||
<?php
|
||||
}
|
||||
if ($u->rep['rep2'] > 0) { ?>
|
||||
• <B>Алтарь Крови</B> - <?= $u->rep_zv(5, $u->rep['rep2']) ?><BR>
|
||||
<?php
|
||||
}
|
||||
if ($u->rep['repdreamscity'] > 0) { ?>
|
||||
• <B>Водосток</B> - <?= $u->rep_zv(9, $u->rep['repdreamscity']) ?><BR>
|
||||
<?php
|
||||
@ -2328,7 +2321,7 @@ $tma = '';
|
||||
1
|
||||
);
|
||||
if (isset($sf['id'])) {
|
||||
$sfe = \Core\ConversionHelper::dataStringToArray($sf['vals']);
|
||||
$sfe = ConversionHelper::dataStringToArray($sf['vals']);
|
||||
$sf[0] = $u->info['exp'] - (int)$sfe['e'];
|
||||
$sf[1] = $u->info['win'] - (int)$sfe['w'];
|
||||
$sf[2] = $u->info['lose'] - (int)$sfe['l'];
|
||||
@ -2369,5 +2362,5 @@ $tma = '';
|
||||
</tr>
|
||||
</TABLE>
|
||||
|
||||
<!--рейтинг тут-->
|
||||
<!--рейтинг тут-->
|
||||
</BODY>
|
||||
|
@ -1,99 +0,0 @@
|
||||
<?php
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
if($u->room['file']=='arena')
|
||||
{
|
||||
|
||||
if($re!=''){ echo '<div align="right"><font color="red"><b>'.$re.'</b></font></div>'; } ?>
|
||||
<style type="text/css">
|
||||
|
||||
.pH3 { COLOR: #8f0000; FONT-FAMILY: Arial; FONT-SIZE: 12pt; FONT-WEIGHT: bold; }
|
||||
.class_ {
|
||||
font-weight: bold;
|
||||
color: #C5C5C5;
|
||||
cursor:pointer;
|
||||
}
|
||||
.class_st {
|
||||
font-weight: bold;
|
||||
color: #659BA3;
|
||||
cursor:pointer;
|
||||
}
|
||||
.class__ {
|
||||
font-weight: bold;
|
||||
color: #FFFFFF;
|
||||
cursor:pointer;
|
||||
background-color: #659BA3;
|
||||
}
|
||||
.class__st {
|
||||
font-weight: bold;
|
||||
color: #FFFFFF;
|
||||
cursor:pointer;
|
||||
background-color: #659BA3;
|
||||
font-size: 10px;
|
||||
}
|
||||
.class_old {
|
||||
font-weight: bold;
|
||||
color: #919191;
|
||||
cursor:pointer;
|
||||
}
|
||||
.class__old {
|
||||
font-weight: bold;
|
||||
color: #FFFFFF;
|
||||
cursor:pointer;
|
||||
background-color: #838383;
|
||||
font-size: 10px;
|
||||
}
|
||||
</style>
|
||||
<TABLE width="100%" cellspacing="0" cellpadding="0">
|
||||
<tr><td valign="top"><br /><br />
|
||||
<div align="center" class="pH3">Арена</div>
|
||||
<?php
|
||||
echo '<b style="color:red">'.$error.'</b>';
|
||||
?>
|
||||
<br />
|
||||
<TABLE width="100%" cellspacing="0" cellpadding="4">
|
||||
<TR>
|
||||
<form name="F1" method="post">
|
||||
<TD valign="top" align="left"> </TD>
|
||||
</FORM>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<td width="280" valign="top">
|
||||
<TABLE cellspacing="0" cellpadding="0"><TD width="100%"> </TD><TD>
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr align="right" valign="top">
|
||||
<td>
|
||||
<!-- -->
|
||||
<?= $goLis; ?>
|
||||
<!-- -->
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td nowrap="nowrap">
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DEDEDE">
|
||||
<tr>
|
||||
<td bgcolor="#D3D3D3"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7" /></td>
|
||||
<td bgcolor="#D3D3D3" nowrap><a href="javascript:void(0)" id="greyText" class="menutop" onclick="location='main.php?loc=1.180.0.213&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.213',1); ?>">Большая торговая улица</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#D3D3D3"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7" /></td>
|
||||
<td bgcolor="#D3D3D3" nowrap><a href="javascript:void(0)" id="greyText" class="menutop" onclick="location='main.php?loc=1.180.0.xx&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.xx',1); ?>">Турнирный магазин</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td bgcolor="#D3D3D3"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7" /></td>
|
||||
<td bgcolor="#D3D3D3" nowrap><a href="javascript:void(0)" id="greyText" class="menutop" onclick="location='main.php?loc=1.180.0.322&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.322',1); ?>">Алтарь крови</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></table>
|
||||
</td></table></td>
|
||||
</table>
|
||||
<br>
|
||||
<div id="textgo" style="visibility:hidden;"></div>
|
||||
<?php
|
||||
}
|
||||
?>
|
@ -1,200 +0,0 @@
|
||||
<?php
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
if($u->room['file']=='bookshop')
|
||||
{
|
||||
$shopProcent = 50;
|
||||
|
||||
if(!isset($_GET['otdel']))
|
||||
{
|
||||
$_GET['otdel'] = 1;
|
||||
}
|
||||
|
||||
$sid = 7;
|
||||
|
||||
$error = '';
|
||||
|
||||
if(isset($_GET['buy']))
|
||||
{
|
||||
if($u->newAct($_GET['sd4'])==true)
|
||||
{
|
||||
$re = $u->buyItem($sid,(int)$_GET['buy'],(int)$_GET['x'],'sudba='.$u->info['login'].'');
|
||||
}else{
|
||||
$re = 'Вы уверены что хотите купить этот предмет?';
|
||||
}
|
||||
}
|
||||
|
||||
if($re!=''){ echo '<div align="right"><font color="red"><b>'.$re.'</b></font></div>'; } ?>
|
||||
<script type="text/javascript">
|
||||
function AddCount(name, txt)
|
||||
{
|
||||
document.getElementById("hint4").innerHTML = '<table border=0 width=100% cellspacing=1 cellpadding=0 bgcolor="#CCC3AA"><tr><td align=center><B>Купить неск. штук</td><td width=20 align=right valign=top style="cursor: pointer" onclick="closehint3();"><BIG><B>x</TD></tr><tr><td colspan=2>'+
|
||||
'<form method=post><table border=0 width=100% cellspacing=0 cellpadding=0 bgcolor="#FFF6DD"><tr><INPUT TYPE="hidden" name="set" value="'+name+'"><td colspan=2 align=center><B><I>'+txt+'</td></tr><tr><td width=80% align=right>'+
|
||||
'Количество (шт.) <INPUT TYPE="text" NAME="count" id=count size=4></td><td width=20%> <INPUT TYPE="submit" value=" »» ">'+
|
||||
'</TD></TR></form></TABLE></td></tr></table>';
|
||||
document.getElementById("hint4").style.visibility = 'visible';
|
||||
document.getElementById("hint4").style.left = '100px';
|
||||
document.getElementById("hint4").style.top = '100px';
|
||||
document.getElementById("count").focus();
|
||||
}
|
||||
function closehint3() {
|
||||
document.getElementById('hint4').style.visibility='hidden';
|
||||
Hint3Name='';
|
||||
}
|
||||
</script>
|
||||
<style type="text/css">
|
||||
|
||||
.pH3 { COLOR: #8f0000; FONT-FAMILY: Arial; FONT-SIZE: 12pt; FONT-WEIGHT: bold; }
|
||||
.class_ {
|
||||
font-weight: bold;
|
||||
color: #C5C5C5;
|
||||
cursor:pointer;
|
||||
}
|
||||
.class_st {
|
||||
font-weight: bold;
|
||||
color: #659BA3;
|
||||
cursor:pointer;
|
||||
}
|
||||
.class__ {
|
||||
font-weight: bold;
|
||||
color: #FFFFFF;
|
||||
cursor:pointer;
|
||||
background-color: #659BA3;
|
||||
}
|
||||
.class__st {
|
||||
font-weight: bold;
|
||||
color: #FFFFFF;
|
||||
cursor:pointer;
|
||||
background-color: #659BA3;
|
||||
font-size: 10px;
|
||||
}
|
||||
.class_old {
|
||||
font-weight: bold;
|
||||
color: #919191;
|
||||
cursor:pointer;
|
||||
}
|
||||
.class__old {
|
||||
font-weight: bold;
|
||||
color: #FFFFFF;
|
||||
cursor:pointer;
|
||||
background-color: #838383;
|
||||
font-size: 10px;
|
||||
}
|
||||
</style>
|
||||
<TABLE width="100%" cellspacing="0" cellpadding="0">
|
||||
<tr><td valign="top"><div align="center" class="pH3">Книжный Магазин</div>
|
||||
<?php
|
||||
echo '<b style="color:red">'.$error.'</b>';
|
||||
?>
|
||||
<br />
|
||||
<TABLE width="100%" cellspacing="0" cellpadding="4">
|
||||
<TR>
|
||||
<form name="F1" method="post">
|
||||
<TD valign="top" align="left">
|
||||
<!--Магазин-->
|
||||
<table width="100%" cellspacing="0" cellpadding="0" bgcolor="#a5a5a5">
|
||||
<div id="hint3" style="visibility:hidden"></div>
|
||||
<tr>
|
||||
<td align="center" height="21">
|
||||
<?php
|
||||
/*названия разделов (сверху)*/
|
||||
if(!isset($_GET['sale']) && !isset($_GET['gifts']) && isset($_GET['otdel']))
|
||||
{
|
||||
$otdels_small_array = array (1=>'<b>Книги</b>',2=>'<b>Атака</b>',3=>'<b>Защита</b>',4=>'<b>Контрудар</b>',5=>'<b>Критический удар</b>',6=>'<b>Парирование</b>',7=>'<b>Комбо</b>',8=>'<b>Сила Духа</b>',9=>'<b>Огонь</b>',10=>'<b>Вода</b>',11=>'<b>Воздух</b>',12=>'<b>Земля</b>',13=>'<b>Свет</b>',14=>'<b>Тьма</b>',15=>'<b>Серая магия</b>');
|
||||
if(isset($otdels_small_array[$_GET['otdel']]))
|
||||
{
|
||||
echo $otdels_small_array[$_GET['otdel']];
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<tr><td>
|
||||
<!--Рюкзак / Прилавок-->
|
||||
<table width="100%" CELLSPACING="1" CELLPADDING="1" bgcolor="#a5a5a5">
|
||||
<?php
|
||||
//Выводим вещи в магазине для покупки
|
||||
$u->shopItems($sid);
|
||||
?>
|
||||
</TABLE>
|
||||
</TD></TR>
|
||||
</TABLE>
|
||||
</TD>
|
||||
</FORM>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<td width="280" valign="top">
|
||||
<TABLE cellspacing="0" cellpadding="0"><TD width="100%"> </TD><TD>
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr align="right" valign="top">
|
||||
<td>
|
||||
<!-- -->
|
||||
<?= $goLis; ?>
|
||||
<!-- -->
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td nowrap="nowrap">
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DEDEDE">
|
||||
<tr>
|
||||
<td bgcolor="#D3D3D3"><img src="//img.new-combats.tech/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.213&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.213',1); ?>">Большая торговая улица</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></table>
|
||||
</td></table>
|
||||
<div><br />
|
||||
<div align="right">
|
||||
<small>
|
||||
Масса: <?=$u->aves['now']?>/<?=$u->aves['max']?> <br />
|
||||
У вас в наличии: <b style="color:#339900;"><?= round($u->info['money'],2); ?> кр.</b>
|
||||
</small>
|
||||
</div>
|
||||
<br />
|
||||
<INPUT TYPE="button" value="Обновить" onclick="location = '<?= $_SERVER['REQUEST_URI']; ?>';"><BR>
|
||||
</div>
|
||||
<div style="background-color:#A5A5A5;padding:1"><center><B>Отделы магазина</B></center></div>
|
||||
<div style="line-height:17px;">
|
||||
<?php
|
||||
/*названия разделов (справа)*/
|
||||
$otdels_array = array (1=>'Книги',2=>'Приёмы: Атака',3=>' Защита',4=>' Контрудар',5=>' Критические удары',6=>' Парирование',7=>' Комбо',8=>' Сила Духа',9=>'Заклинания: Огонь',10=>' Вода',11=>' Воздух',12=>' Земля',13=>' Свет',14=>' Тьма',15=>' Серая магия');
|
||||
$i=1;
|
||||
while ($i!=-1)
|
||||
{
|
||||
if(isset($otdels_array[$i]))
|
||||
{
|
||||
if(isset($_GET['otdel']) && $_GET['otdel']==$i)
|
||||
{
|
||||
$color = 'C7C7C7';
|
||||
} else {
|
||||
$color = 'e2e0e0';
|
||||
}
|
||||
echo '
|
||||
<A HREF="?otdel='.$i.'"><DIV style="background-color: #'.$color.'">
|
||||
'.$otdels_array[$i].'
|
||||
</A></DIV>
|
||||
';
|
||||
} else {
|
||||
$i = -2;
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
if(isset($_GET['gifts']))
|
||||
{
|
||||
$color = 'C7C7C7';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
</table>
|
||||
<br>
|
||||
<div id="textgo" style="visibility:hidden;"></div>
|
||||
<?php
|
||||
}
|
||||
?>
|
@ -1,71 +1,66 @@
|
||||
<?php
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
if (!defined('GAME')) {
|
||||
die();
|
||||
}
|
||||
$tattack = '';
|
||||
|
||||
if($u->room['file']=='cp3')
|
||||
{
|
||||
if(date("H")>=6 && date("H")<22) {
|
||||
if ($u->room['file'] == 'cp3') {
|
||||
if (date("H") >= 6 && date("H") < 22) {
|
||||
$now = 'day';
|
||||
}else{
|
||||
} else {
|
||||
$now = 'night';
|
||||
}
|
||||
?>
|
||||
<script>
|
||||
<?php
|
||||
if(date("H")<6 || date("H")>=22)
|
||||
{
|
||||
?>
|
||||
function AtackNoWindow()
|
||||
{
|
||||
var dt = document.getElementById('atackDiv');
|
||||
if(dt.style.display=='none')
|
||||
?>
|
||||
<script>
|
||||
<?php
|
||||
if(date("H") < 6 || date("H") >= 22)
|
||||
{
|
||||
?>
|
||||
function AtackNoWindow() {
|
||||
var dt = document.getElementById('atackDiv');
|
||||
if (dt.style.display == 'none') {
|
||||
dt.style.display = '';
|
||||
}else{
|
||||
} else {
|
||||
dt.style.display = 'none';
|
||||
}
|
||||
}
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
var no = 20; // snow number
|
||||
var speed = 15; // smaller number moves the snow faster
|
||||
var sp_rel = 1.4; //speed relevation
|
||||
var snowflake1 = "/i/itimeges/snow1.gif";
|
||||
var snowflake2 = "/i/itimeges/snow2.gif";
|
||||
}
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
var no = 20; // snow number
|
||||
var speed = 15; // smaller number moves the snow faster
|
||||
var sp_rel = 1.4; //speed relevation
|
||||
var snowflake1 = "/i/itimeges/snow1.gif";
|
||||
var snowflake2 = "/i/itimeges/snow2.gif";
|
||||
|
||||
var i, doc_width, doc_height;
|
||||
var i, doc_width, doc_height;
|
||||
|
||||
dx = new Array();
|
||||
xp = new Array();
|
||||
yp = new Array();
|
||||
am = new Array();
|
||||
stx = new Array();
|
||||
sty = new Array();
|
||||
dx = [];
|
||||
xp = [];
|
||||
yp = [];
|
||||
am = [];
|
||||
stx = [];
|
||||
sty = [];
|
||||
|
||||
Array.prototype.exists = function(el)
|
||||
{
|
||||
for(var i=0;i<this.length;i++)
|
||||
if(this[i]==el)
|
||||
Array.prototype.exists = function (el) {
|
||||
for (var i = 0; i < this.length; i++)
|
||||
if (this[i] == el)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
var rooms = ['0','1'];
|
||||
var rooms = ['0', '1'];
|
||||
|
||||
function SetVariable(c) {
|
||||
function SetVariable(c) {
|
||||
dx[c] = 0; // set coordinate variables
|
||||
am[c] = Math.random()*15; // set amplitude variables
|
||||
xp[c] = Math.random()*(doc_width-35) + 0 + am[c]; // set position variables
|
||||
am[c] = Math.random() * 15; // set amplitude variables
|
||||
xp[c] = Math.random() * (doc_width - 35) + 0 + am[c]; // set position variables
|
||||
yp[c] = 0;
|
||||
stx[c] = 0.02 + Math.random()/10; // set step variables
|
||||
stx[c] = 0.02 + Math.random() / 10; // set step variables
|
||||
sty[c] = 0.7 + Math.random(); // set step variables
|
||||
}
|
||||
}
|
||||
|
||||
function DrawWeather(room) {
|
||||
function DrawWeather(room) {
|
||||
|
||||
doc_width = document.getElementById('ione').width;
|
||||
doc_height = document.getElementById('ione').height;
|
||||
@ -74,126 +69,124 @@ function DrawWeather(room) {
|
||||
doc_height = 268;
|
||||
|
||||
var div = '';
|
||||
for (i = 0; i < no; ++ i) {
|
||||
for (i = 0; i < no; ++i) {
|
||||
SetVariable(i);
|
||||
div += "<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: 30" + i +"; VISIBILITY: visible; TOP: " + 0 + "px; LEFT: " + 0 + "px;\"><img id=\"im"+ i +"\" src=\"" + (sty[i]<sp_rel ? snowflake2 : snowflake1 ) + "\" border=\"0\" alt=\"Снежинка\"></div>";
|
||||
div += "<div id=\"dot" + i + "\" style=\"POSITION: absolute; Z-INDEX: 30" + i + "; VISIBILITY: visible; TOP: " + 0 + "px; LEFT: " + 0 + "px;\"><img id=\"im" + i + "\" src=\"" + (sty[i] < sp_rel ? snowflake2 : snowflake1) + "\" border=\"0\" alt=\"Снежинка\"></div>";
|
||||
}
|
||||
|
||||
document.getElementById('snow').innerHTML = div;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
function WeatherBegin() { // IE main animation function
|
||||
function WeatherBegin() { // IE main animation function
|
||||
|
||||
for (i = 0; i < no; ++ i) { // iterate for every dot
|
||||
yp[i] += sty[i] < sp_rel ? sty[i]/2 : sty[i];
|
||||
if (yp[i] > doc_height-40) {
|
||||
for (i = 0; i < no; ++i) { // iterate for every dot
|
||||
yp[i] += sty[i] < sp_rel ? sty[i] / 2 : sty[i];
|
||||
if (yp[i] > doc_height - 40) {
|
||||
SetVariable(i);
|
||||
var im = document.getElementById('im'+i);
|
||||
var im = document.getElementById('im' + i);
|
||||
im.src = (sty[i] < sp_rel) ? snowflake2 : snowflake1;
|
||||
}
|
||||
dx[i] += stx[i];
|
||||
document.getElementById('dot'+i).style.top = yp[i]+'px';
|
||||
document.getElementById('dot'+i).style.left = xp[i] + am[i]*Math.sin(dx[i])+'px';
|
||||
document.getElementById('dot' + i).style.top = yp[i] + 'px';
|
||||
document.getElementById('dot' + i).style.left = xp[i] + am[i] * Math.sin(dx[i]) + 'px';
|
||||
}
|
||||
setTimeout('WeatherBegin()', speed);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
</script>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="250" valign="top">
|
||||
<?php $usee = $u->getInfoPers($u->info['id'],0); if($usee!=false){ echo $usee[0]; }else{ echo 'information is lost.'; } ?>
|
||||
<?php $usee = $u->getInfoPers($u->info['id'], 0);
|
||||
if ($usee != false) {
|
||||
echo $usee[0];
|
||||
} else {
|
||||
echo 'information is lost.';
|
||||
} ?>
|
||||
</td>
|
||||
<td width="230" valign="top" style="padding-top:19px;"><?php require_once('modules_data/stats_loc.php'); ?></td>
|
||||
<td valign="top"><div align="right">
|
||||
<td valign="top">
|
||||
<div align="right">
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr align="right" valign="top">
|
||||
<td>
|
||||
<?php if($re!=''){ echo '<font color="red"><b>'.$re.'</b></font>'; } ?>
|
||||
<?php if ($re != '') {
|
||||
echo '<font color="red"><b>' . $re . '</b></font>';
|
||||
} ?>
|
||||
<table width="500" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td>
|
||||
<div style="position:relative; cursor: pointer;" id="ione">
|
||||
<img src="//img.new-combats.tech/city/capitalcity/<?= $now; ?>/city_capres2.jpg" alt="" name="img_ione" width="500" height="268" border="1" id="img_ione"/>
|
||||
<img src="//img.new-combats.tech/city/capitalcity/<?= $now; ?>/city_capres2.jpg" alt="" name="img_ione" width="500" height="268" border="1"
|
||||
id="img_ione"/>
|
||||
<div id="buttons_on_image" style="cursor:pointer; font-weight:bold; color:#D8D8D8; font-size:10px;">
|
||||
<?= $tattack; ?>
|
||||
</div>
|
||||
<script language="javascript" type="text/javascript">
|
||||
<!--
|
||||
if(document.getElementById('ione'))
|
||||
{
|
||||
if (document.getElementById('ione')) {
|
||||
document.getElementById('ione').appendChild(document.getElementById('buttons_on_image'));
|
||||
document.getElementById('buttons_on_image').style.position = 'absolute';
|
||||
document.getElementById('buttons_on_image').style.bottom = '8px';
|
||||
document.getElementById('buttons_on_image').style.right = '23px';
|
||||
}else{
|
||||
} else {
|
||||
document.getElementById('buttons_on_image').style.display = 'none';
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
<div style="position: absolute; left: 69px; top: 143px; width: 73px; height: 47px; z-index: 89;"><img <?php thisInfRm('1.180.0.215'); ?> src="//img.new-combats.tech/city/capitalcity/day/cp_libshop.gif" width="53" height="48" class="aFilter" /></div>
|
||||
<div style="position: absolute; left: 112px; top: 95px; width: 73px; height: 47px; z-index: 88;"><img <?php thisInfRm('1.180.0.xx'); ?> src="//img.new-combats.tech/city/capitalcity/day/auction.gif" width="154" height="90" class="aFilter" /></div>
|
||||
<div style="position: absolute; left: 261px; top: 123px; width: 73px; height: 47px; z-index: 87;"><img <?php thisInfRm('1.180.0.216'); ?> src="//img.new-combats.tech/city/capitalcity/day/cp_zooshop.gif" width="56" height="61" class="aFilter" /></div>
|
||||
<div style="position: absolute; left: 313px; top: 109px; width: 73px; height: 47px; z-index: 88;"><img <?php thisInfRm('1.180.0.321'); ?> src="//img.new-combats.tech/city/capitalcity/day/cp_portal.gif" width="75" height="90" class="aFilter" /></div>
|
||||
<div style="position: absolute; left: 392px; top: 104px; width: 73px; height: 47px; z-index: 88;"><img <?php thisInfRm('1.180.0.406'); ?> src="//img.new-combats.tech/city/capitalcity/day/cp_deathroom.gif" width="94" height="91" class="aFilter" /></div>
|
||||
<div style="position:absolute; left:446px; top:153px; width:30px; height:54px; z-index:94;"><img <?php thisInfRm('1.180.0.x'); ?> src="//img.new-combats.tech/i/images/300x225/capital/2stop.gif" width="29" height="54" class="aFilter" /></div>
|
||||
|
||||
<div style="position:absolute; left:16px; top:155px; width:30px; height:54px; z-index:910;"><img <?php thisInfRm('1.180.0.11'); ?> src="//img.new-combats.tech/i/images/300x225/capital/3strelka.gif" width="30" height="53" class="aFilter" /></div>
|
||||
<div style="position: absolute; left: 313px; top: 109px; width: 73px; height: 47px; z-index: 88;"><img <?php thisInfRm('1.180.0.321'); ?>
|
||||
src="//img.new-combats.tech/city/capitalcity/day/cp_portal.gif" width="75" height="90" class="aFilter"/></div>
|
||||
<div style="position:absolute; left:16px; top:155px; width:30px; height:54px; z-index:910;"><img <?php thisInfRm('1.180.0.11'); ?>
|
||||
src="//img.new-combats.tech/i/images/300x225/capital/3strelka.gif" width="30" height="53" class="aFilter"/></div>
|
||||
<div id="snow"></div>
|
||||
<?= $goline; ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
if(date("H")<6 || date("H")>=22)
|
||||
{
|
||||
?>
|
||||
<?php
|
||||
if (date("H") < 6 || date("H") >= 22) {
|
||||
?>
|
||||
<div align="center" id="atackDiv" style="display:none;">
|
||||
<form method="post" action="main.php">
|
||||
<table width="300" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td><div style="width:300px; padding:3px; margin:7px; background-color:#CCCCCC; border:1px solid #575757;"> Введите логин жертвы:<br />
|
||||
<input name="atack" type="text" id="atack" size="35" maxlength="30" />
|
||||
<input type="submit" name="button" id="button" class="btn" value="OK" />
|
||||
</div></td>
|
||||
<td>
|
||||
<div style="width:300px; padding:3px; margin:7px; background-color:#CCCCCC; border:1px solid #575757;"> Введите логин жертвы:<br/>
|
||||
<input name="atack" type="text" id="atack" size="35" maxlength="30"/>
|
||||
<input type="submit" name="button" id="button" class="btn" value="OK"/>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
<!-- -->
|
||||
<div style="width:500px; text-align:left; background-color:#D3D3D3;">
|
||||
<span style="white-space:nowrap; padding-left:3px; padding-right:3px; height:10px"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7" /> <a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=1.180.0.11&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.11',1); ?>">Страшилкина Улица</a></span>
|
||||
<span style="white-space:nowrap; padding-left:3px; padding-right:3px; height:10px"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7" /> <a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=1.180.0.215&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.215',1); ?>">Книжный Магазин</a></span>
|
||||
<span style="white-space:nowrap; padding-left:3px; padding-right:3px; height:10px"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7" /> <a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=1.180.0.216&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.216',1); ?>">Зоомагазин</a></span>
|
||||
<span style="white-space:nowrap; padding-left:3px; padding-right:3px; height:10px"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7" /> <a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=1.180.0.321&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.321',1); ?>">Магический Портал</a></span>
|
||||
<span style="white-space:nowrap; padding-left:3px; padding-right:3px; height:10px"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7"/> <a
|
||||
href="#" id="greyText" class="menutop" onclick="location='main.php?loc=1.180.0.11&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.11', 1); ?>">Страшилкина Улица</a></span>
|
||||
<span style="white-space:nowrap; padding-left:3px; padding-right:3px; height:10px"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7"/> <a
|
||||
href="#" id="greyText" class="menutop" onclick="location='main.php?loc=1.180.0.321&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.321', 1); ?>">Магический Портал</a></span>
|
||||
</div>
|
||||
<!-- -->
|
||||
<div style="display:none; height:0px " id="moveto"></div>
|
||||
</td>
|
||||
<td>
|
||||
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>-->
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
<HR>
|
||||
<?= $rowonmax; ?><BR>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<small>
|
||||
<HR>
|
||||
<INPUT class="btn" onclick="window.open('/forum?read=911&rnd=1', 'help', 'height=500,width=1024,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')" value="Подсказка для новичков" style="color:red;" type="button">
|
||||
<br />
|
||||
<strong>Внимание!Рекомендуем установить функцию второго пароля во вкладке "Безопасность",это обезопасит вашего персонажа от взлома.<BR>
|
||||
<em>Администрация.</strong> </em></small> <BR>
|
||||
<?= $rowonmax; ?><BR>
|
||||
|
||||
</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
|
||||
?>
|
@ -1,206 +0,0 @@
|
||||
<?php
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
if($u->room['file']=='monwar')
|
||||
{
|
||||
$shopProcent = 50;
|
||||
if(date('d',time())==22)
|
||||
{
|
||||
//$shopProcent = 1;
|
||||
}
|
||||
|
||||
if(!isset($_GET['otdel']))
|
||||
{
|
||||
$_GET['otdel'] = 21;
|
||||
}
|
||||
|
||||
$sid = 11;
|
||||
|
||||
$error = '';
|
||||
|
||||
if(isset($_GET['buy']))
|
||||
{
|
||||
if($u->newAct($_GET['sd4'])==true)
|
||||
{
|
||||
$re = $u->buyItem($sid,(int)$_GET['buy'],(int)$_GET['x'],'|sudba=1');
|
||||
}else{
|
||||
$re = 'Вы уверены что хотите купить этот предмет?';
|
||||
}
|
||||
}
|
||||
|
||||
if($re!=''){ echo '<div align="right"><font color="red"><b>'.$re.'</b></font></div>'; } ?>
|
||||
<script type="text/javascript">
|
||||
function AddCount(name, txt)
|
||||
{
|
||||
document.getElementById("hint4").innerHTML = '<table border=0 width=100% cellspacing=1 cellpadding=0 bgcolor="#CCC3AA"><tr><td align=center><B>Купить неск. штук</td><td width=20 align=right valign=top style="cursor: pointer" onclick="closehint3();"><BIG><B>x</TD></tr><tr><td colspan=2>'+
|
||||
'<form method=post><table border=0 width=100% cellspacing=0 cellpadding=0 bgcolor="#FFF6DD"><tr><INPUT TYPE="hidden" name="set" value="'+name+'"><td colspan=2 align=center><B><I>'+txt+'</td></tr><tr><td width=80% align=right>'+
|
||||
'Количество (шт.) <INPUT TYPE="text" NAME="count" id=count size=4></td><td width=20%> <INPUT TYPE="submit" value=" »» ">'+
|
||||
'</TD></TR></form></TABLE></td></tr></table>';
|
||||
document.getElementById("hint4").style.visibility = 'visible';
|
||||
document.getElementById("hint4").style.left = '100px';
|
||||
document.getElementById("hint4").style.top = '100px';
|
||||
document.getElementById("count").focus();
|
||||
}
|
||||
function closehint3() {
|
||||
document.getElementById('hint4').style.visibility='hidden';
|
||||
Hint3Name='';
|
||||
}
|
||||
</script>
|
||||
<style type="text/css">
|
||||
|
||||
.pH3 { COLOR: #8f0000; FONT-FAMILY: Arial; FONT-SIZE: 12pt; FONT-WEIGHT: bold; }
|
||||
.class_ {
|
||||
font-weight: bold;
|
||||
color: #C5C5C5;
|
||||
cursor:pointer;
|
||||
}
|
||||
.class_st {
|
||||
font-weight: bold;
|
||||
color: #659BA3;
|
||||
cursor:pointer;
|
||||
}
|
||||
.class__ {
|
||||
font-weight: bold;
|
||||
color: #FFFFFF;
|
||||
cursor:pointer;
|
||||
background-color: #659BA3;
|
||||
}
|
||||
.class__st {
|
||||
font-weight: bold;
|
||||
color: #FFFFFF;
|
||||
cursor:pointer;
|
||||
background-color: #659BA3;
|
||||
font-size: 10px;
|
||||
}
|
||||
.class_old {
|
||||
font-weight: bold;
|
||||
color: #919191;
|
||||
cursor:pointer;
|
||||
}
|
||||
.class__old {
|
||||
font-weight: bold;
|
||||
color: #FFFFFF;
|
||||
cursor:pointer;
|
||||
background-color: #838383;
|
||||
font-size: 10px;
|
||||
}
|
||||
</style>
|
||||
<TABLE width="100%" cellspacing="0" cellpadding="0">
|
||||
<tr><td valign="top"><br /><br /><div align="center" class="pH3">Алтарь Крови</div><br />
|
||||
<?php
|
||||
echo '<b style="color:red">'.$error.'</b>';
|
||||
?>
|
||||
<br />
|
||||
<TABLE width="100%" cellspacing="0" cellpadding="4">
|
||||
<TR>
|
||||
<form name="F1" method="post">
|
||||
<TD valign="top" align="left">
|
||||
<!--Магазин-->
|
||||
<table width="100%" cellspacing="0" cellpadding="0" bgcolor="#a5a5a5">
|
||||
<div id="hint3" style="visibility:hidden"></div>
|
||||
<tr>
|
||||
<td align="center" height="21">
|
||||
<?php
|
||||
/*названия разделов (сверху)*/
|
||||
if(!isset($_GET['sale']) && !isset($_GET['gifts']) && isset($_GET['otdel']))
|
||||
{
|
||||
$otdels_small_array = array (1=>'<b>Отдел "Оружие: кастеты,ножи"</b>',2=>'<b>Отдел "Оружие: топоры"</b>',3=>'<b>Отдел "Оружие: дубины,булавы"</b>',4=>'<b>Отдел "Оружие: мечи"</b>',5=>'<b>Отдел "Оружие: магические посохи"</b>',6=>'<b>Отдел "Одежда: сапоги"</b>',7=>'<b>Отдел "Одежда: перчатки"</b>',8=>'<b>Отдел "Одежда: рубахи"</b>',9=>'<b>Отдел "Одежда: легкая броня"</b>',10=>'<b>Отдел "Одежда: тяжелая броня"</b>',11=>'<b>Отдел "Одежда: шлемы"</b>',12=>'<b>Отдел "Одежда: наручи"</b>',13=>'<b>Отдел "Одежда: пояса"</b>',14=>'<b>Отдел "Одежда: поножи"</b>',15=>'<b>Отдел "Щиты"</b>',16=>'<b>Отдел "Ювелирные товары: серьги"</b>',17=>'<b>Отдел "Ювелирные товары: ожерелья"</b>',18=>'<b>Отдел "Ювелирные товары: кольца"</b>',19=>'<b>Отдел "Заклинания: нейтральные"</b>',20=>'<b>Отдел "Заклинания: боевые и защитные"</b>',21=>'<b>Отдел "Амуниция"</b>',22=>'<b>Отдел "Эликсиры"</b>',23=>'<b>Отдел "Ресурсы"</b>',24=>'<b>Отдел "Поножи [10]"</b>',25=>'<b>Отдел "Подарки: упаковка"</b>',26=>'<b>Отдел "Подарки: открытки"</b>',27=>'<b>Отдел "Подарки: фейерверки"</b>');
|
||||
if(isset($otdels_small_array[$_GET['otdel']]))
|
||||
{
|
||||
echo $otdels_small_array[$_GET['otdel']];
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<tr><td>
|
||||
<!--Рюкзак / Прилавок-->
|
||||
<table width="100%" CELLSPACING="1" CELLPADDING="1" bgcolor="#a5a5a5">
|
||||
<?php
|
||||
//Выводим вещи в магазине для покупки
|
||||
$u->shopItems($sid);
|
||||
?>
|
||||
</TABLE>
|
||||
</TD></TR>
|
||||
</TABLE>
|
||||
</TD>
|
||||
</FORM>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<td width="280" valign="top">
|
||||
<TABLE cellspacing="0" cellpadding="0"><TD width="100%"> </TD><TD>
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr align="right" valign="top">
|
||||
<td>
|
||||
<!-- -->
|
||||
<?= $goLis; ?>
|
||||
<!-- -->
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td nowrap="nowrap">
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DEDEDE">
|
||||
<tr>
|
||||
<td bgcolor="#D3D3D3"><img src="//img.new-combats.tech/i/move/links.gif" width="9" height="7" /></td>
|
||||
<td bgcolor="#D3D3D3" nowrap><a href="javascript:void(0)" id="greyText" class="menutop" onclick="location='main.php?loc=1.180.0.406&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.406',1); ?>">Арена</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></table>
|
||||
</td></table>
|
||||
<div><br />
|
||||
<div align="right">
|
||||
<small>
|
||||
Масса: <?=$u->aves['now']?>/<?=$u->aves['max']?> <br />
|
||||
У вас в наличии: <b style="color:#339900;"><?= round($u->info['money'],2); ?> кр.</b>
|
||||
</small>
|
||||
</div>
|
||||
<br />
|
||||
<INPUT TYPE="button" value="Обновить" onclick="location = '<?= $_SERVER['REQUEST_URI']; ?>';"><BR>
|
||||
</div>
|
||||
<div style="background-color:#A5A5A5;padding:1"><center><B>Отделы монумента</B></center></div>
|
||||
<div style="line-height:17px;">
|
||||
<?php
|
||||
/*названия разделов (справа)*/
|
||||
$otdels_array = array (19=>'Заклинания: нейтральные',20=>' боевые и защитные',21=>'Амуниция',22=>' Эликсиры',23=>'Ресурсы',24=>'Поножи [10]');
|
||||
$i=1;
|
||||
while ($i!=-1)
|
||||
{
|
||||
if(isset($otdels_array[$i]))
|
||||
{
|
||||
if(isset($_GET['otdel']) && $_GET['otdel']==$i)
|
||||
{
|
||||
$color = 'C7C7C7';
|
||||
} else {
|
||||
$color = 'e2e0e0';
|
||||
}
|
||||
echo '
|
||||
<A HREF="?otdel='.$i.'"><DIV style="background-color: #'.$color.'">
|
||||
'.$otdels_array[$i].'
|
||||
</A></DIV>
|
||||
';
|
||||
} else {
|
||||
if($i > 30) {
|
||||
$i = -2;
|
||||
}
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
</div><br />
|
||||
<hr />
|
||||
<center><small>
|
||||
<b style="color:red">(Все вещи связываются <img src="//img.new-combats.tech/i/desteny.gif" width="16" height="18" /> Общей Судьбой с тем, кто их купил!)</b>
|
||||
</small>
|
||||
</center>
|
||||
</td>
|
||||
</table>
|
||||
<br>
|
||||
<div id="textgo" style="visibility:hidden;"></div>
|
||||
<?php
|
||||
}
|
||||
?>
|
@ -1,206 +0,0 @@
|
||||
<?php
|
||||
if(!defined('GAME'))
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
||||
if($u->room['file'] == 'zooshop')
|
||||
{
|
||||
$shopProcent = 50;
|
||||
|
||||
if(!isset($_GET['otdel']))
|
||||
{
|
||||
$_GET['otdel'] = 1;
|
||||
}
|
||||
|
||||
$sid = 8;
|
||||
|
||||
$error = '';
|
||||
|
||||
if(isset($_GET['buy']))
|
||||
{
|
||||
if($u->newAct($_GET['sd4'])==true)
|
||||
{
|
||||
$re = $u->buyItem($sid,(int)$_GET['buy'],(int)$_GET['x']);
|
||||
}else{
|
||||
$re = 'Вы уверены что хотите купить этот предмет?';
|
||||
}
|
||||
}
|
||||
|
||||
if($re!=''){ echo '<div align="right"><font color="red"><b>'.$re.'</b></font></div>'; } ?>
|
||||
<script type="text/javascript">
|
||||
function AddCount(name, txt)
|
||||
{
|
||||
document.getElementById("hint4").innerHTML = '<table border=0 width=100% cellspacing=1 cellpadding=0 bgcolor="#CCC3AA"><tr><td align=center><B>Купить неск. штук</td><td width=20 align=right valign=top style="cursor: pointer" onclick="closehint3();"><BIG><B>x</TD></tr><tr><td colspan=2>'+
|
||||
'<form method=post><table border=0 width=100% cellspacing=0 cellpadding=0 bgcolor="#FFF6DD"><tr><INPUT TYPE="hidden" name="set" value="'+name+'"><td colspan=2 align=center><B><I>'+txt+'</td></tr><tr><td width=80% align=right>'+
|
||||
'Количество (шт.) <INPUT TYPE="text" NAME="count" id=count size=4></td><td width=20%> <INPUT TYPE="submit" value=" »» ">'+
|
||||
'</TD></TR></form></TABLE></td></tr></table>';
|
||||
document.getElementById("hint4").style.visibility = 'visible';
|
||||
document.getElementById("hint4").style.left = '100px';
|
||||
document.getElementById("hint4").style.top = '100px';
|
||||
document.getElementById("count").focus();
|
||||
}
|
||||
function closehint3() {
|
||||
document.getElementById('hint4').style.visibility='hidden';
|
||||
Hint3Name='';
|
||||
}
|
||||
</script>
|
||||
<style type="text/css">
|
||||
|
||||
.pH3 { COLOR: #8f0000; FONT-FAMILY: Arial; FONT-SIZE: 12pt; FONT-WEIGHT: bold; }
|
||||
.class_ {
|
||||
font-weight: bold;
|
||||
color: #C5C5C5;
|
||||
cursor:pointer;
|
||||
}
|
||||
.class_st {
|
||||
font-weight: bold;
|
||||
color: #659BA3;
|
||||
cursor:pointer;
|
||||
}
|
||||
.class__ {
|
||||
font-weight: bold;
|
||||
color: #FFFFFF;
|
||||
cursor:pointer;
|
||||
background-color: #659BA3;
|
||||
}
|
||||
.class__st {
|
||||
font-weight: bold;
|
||||
color: #FFFFFF;
|
||||
cursor:pointer;
|
||||
background-color: #659BA3;
|
||||
font-size: 10px;
|
||||
}
|
||||
.class_old {
|
||||
font-weight: bold;
|
||||
color: #919191;
|
||||
cursor:pointer;
|
||||
}
|
||||
.class__old {
|
||||
font-weight: bold;
|
||||
color: #FFFFFF;
|
||||
cursor:pointer;
|
||||
background-color: #838383;
|
||||
font-size: 10px;
|
||||
}
|
||||
.shop_menu_txt { background-color: #d5d5d5; }
|
||||
</style>
|
||||
<TABLE width="100%" cellspacing="0" cellpadding="0">
|
||||
<tr><td valign="top"><div align="center" class="pH3">Зоомагазин</div>
|
||||
<?php
|
||||
echo '<b style="color:red">'.$error.'</b>';
|
||||
?>
|
||||
<br />
|
||||
<TABLE width="100%" cellspacing="0" cellpadding="4">
|
||||
<TR>
|
||||
<form name="F1" method="post">
|
||||
<TD valign="top" align="left">
|
||||
<!--Магазин-->
|
||||
<table width="100%" cellspacing="0" cellpadding="0" bgcolor="#a5a5a5">
|
||||
<div id="hint3" style="visibility:hidden"></div>
|
||||
<tr>
|
||||
<td align="center" height="21">
|
||||
<?php
|
||||
/*названия разделов (сверху)*/
|
||||
if(!isset($_GET['sale']) && !isset($_GET['gifts']) && isset($_GET['otdel']))
|
||||
{
|
||||
$otdels_small_array = array (1=>'<b>Заклинания: нейтральные</b>',2=>'<b>Амуниция: Еда</b>');
|
||||
if(isset($otdels_small_array[$_GET['otdel']]))
|
||||
{
|
||||
echo $otdels_small_array[$_GET['otdel']];
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
<tr><td>
|
||||
<!--Рюкзак / Прилавок-->
|
||||
<table width="100%" CELLSPACING="1" CELLPADDING="1" bgcolor="#a5a5a5">
|
||||
<?php
|
||||
//Выводим вещи в магазине для покупки
|
||||
$u->shopItems($sid);
|
||||
?>
|
||||
</TABLE>
|
||||
</TD></TR>
|
||||
</TABLE>
|
||||
</TD>
|
||||
</FORM>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<td width="280" valign="top">
|
||||
<TABLE cellspacing="0" cellpadding="0"><TD width="100%"> </TD><TD>
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr align="right" valign="top">
|
||||
<td>
|
||||
<!-- -->
|
||||
<?= $goLis; ?>
|
||||
<!-- -->
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td nowrap="nowrap">
|
||||
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DEDEDE">
|
||||
<tr>
|
||||
<td bgcolor="#D3D3D3"><img src="//img.new-combats.tech/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.213&rnd=<?= $code; ?>';" title="<?php thisInfRm('1.180.0.213',1); ?>">Большая торговая улица</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td></table>
|
||||
</td></table>
|
||||
<div><br />
|
||||
<div align="right">
|
||||
<small>
|
||||
Масса: <?=$u->aves['now']?>/<?=$u->aves['max']?> <br />
|
||||
У вас в наличии: <b style="color:#339900;"><?= round($u->info['money'],2); ?> кр.</b>
|
||||
</small>
|
||||
</div>
|
||||
<br />
|
||||
<INPUT TYPE="button" value="Обновить" onclick="location = '<?= $_SERVER['REQUEST_URI']; ?>';"><BR>
|
||||
</div>
|
||||
<div style="background-color:#A5A5A5;padding:1"><center><B>Отделы магазина</B></center></div>
|
||||
<div style="line-height:17px;">
|
||||
<?php
|
||||
/*названия разделов (справа)*/
|
||||
$otdels_array = array (1=>' Нейтральные',2=>' Еда');
|
||||
$i=1;
|
||||
while ($i!=-1)
|
||||
{
|
||||
if(isset($otdels_array[$i]))
|
||||
{
|
||||
if(isset($_GET['otdel']) && $_GET['otdel']==$i)
|
||||
{
|
||||
$color = 'C7C7C7';
|
||||
} else {
|
||||
$color = 'e2e0e0';
|
||||
}
|
||||
if($i == 1) {
|
||||
echo '<div class="shop_menu_txt"><img height="12" width="12" src="i/shop_ico/6.png"> <b>Заклинания:</b></div>';
|
||||
} elseif($i == 2) {
|
||||
echo '<div class="shop_menu_txt"><img height="12" width="12" src="i/shop_ico/7.png"> <b>Амуниция:</b></div>';
|
||||
}
|
||||
echo '
|
||||
<A HREF="?otdel='.$i.'"><DIV style="background-color: #'.$color.'">
|
||||
'.$otdels_array[$i].'
|
||||
</A></DIV>
|
||||
';
|
||||
} else {
|
||||
$i = -2;
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
if(isset($_GET['gifts']))
|
||||
{
|
||||
$color = 'C7C7C7';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
</table>
|
||||
<br>
|
||||
<div id="textgo" style="visibility:hidden;"></div>
|
||||
<?php
|
||||
}
|
||||
?>
|
Loading…
Reference in New Issue
Block a user