Удаление зоомагазина, книжного магазина, аукциона, арены, алтаря крови, турнирного магазина. #54

This commit is contained in:
Ivor Barhansky 2023-07-19 18:23:44 +03:00
parent 0796da3c53
commit b7dd8d2d2e
11 changed files with 9631 additions and 10329 deletions

View File

@ -9,38 +9,39 @@ use User;
class Shop class Shop
{ {
private int $shopId;
private array $wares;
private int $otdel;
private int $itemId;
private $buyer;
private const ITEM_GENERATION_CURRENT = 2; private const ITEM_GENERATION_CURRENT = 2;
public const MAIN = 1; public const MAIN = 1;
public const BEREZKA = 2; public const BEREZKA = 2;
public const CRYSTALS = 1050; //магазин самоцветов public const CRYSTALS = 1050;
public const REFERALS = 27; //магазин рефералов public const REFERALS = 27;
public const TEMPLE = 14; // храм?! public const TEMPLE = 14;
public const IZLOM = 10; // излом?! public const IZLOM = 10;
public const LABORATORY = 45; //лаборатория?!?! public const LABORATORY = 45;
public const ARTEFACTS = 777; public const ARTEFACTS = 777; //магазин самоцветов
public const BOOKS = 7; public const KNIGHTS_MAIN = 400; //магазин рефералов
public const KNIGHTS_MAIN = 400; // общий рыцарский public const DUNGEON_BEZDNA = 801; // храм?!
public const DUNGEON_BEZDNA = 801; // бездна public const DUNGEON_PTP = 802; // излом?!
public const DUNGEON_PTP = 802; // пещера тысячи проклятий public const DUNGEON_CATACOMBS = 803; //лаборатория?!?!
public const DUNGEON_CATACOMBS = 803; // катакомбы public const DUNGEON_MISTY = 804;
public const DUNGEON_MISTY = 804; // пещера мглы //public const BOOKS = 7;
public const FLOWER = 6; public const MUSHROOMS = 17; // общий рыцарский
public const MUSHROOMS = 17; // магазин грибоеда?? public const RULF_HRUNT = 33; // бездна
public const RULF_HRUNT = 33; // магазин рульфа хрунта, а ты что такое? public const LUKA = 5; // пещера тысячи проклятий
public const LUKA = 5; // каморка Луки public const ANVIL = 700; // катакомбы
public const BLOOD_ALTAR = 11; //алтарь крови public const NEWBIE = 106; // пещера мглы
public const ANVIL = 700; // наковальня //public const FLOWER = 6;
public const NEWBIE = 106; // магазин новичка public const SHOP_2 = 609; // магазин грибоеда??
public const SHOP_2 = 609; // неизвестный магазин public const SHOP_KAT = 44; // магазин рульфа хрунта, а ты что такое?
public const SHOP_KAT = 44; // неизвестный магазин public const SHOP_PRIZ = 404; // каморка Луки
public const SHOP_PRIZ = 404; // неизвестный магазин //public const BLOOD_ALTAR = 11; //алтарь крови
public const TAVERN = 9; public const TAVERN = 9; // наковальня
public const ANIMALS = 8; public const ANIMALS = 8; // магазин новичка
private int $shopId; // неизвестный магазин
private array $wares; // неизвестный магазин
private int $otdel; // неизвестный магазин
private int $itemId;
private $buyer;
public function __construct(int $shopId) public function __construct(int $shopId)
{ {
$this->otdel = intval($_GET['otdel']); $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 = '') public function printWares(string $plu = '')
{ {
if ($this->buyer->isAdmin()) { if ($this->buyer->isAdmin()) {
@ -643,4 +545,103 @@ class Shop
</tr>'; </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

View File

@ -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 = 'Вы успешно использовали &quot;'.$itm['name'].'&quot;...';
}else{
$u->error = 'Нельзя использовать в этой локации...';
}
?>

View File

@ -1,83 +1,103 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!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> <head>
<title>Всё о Подземельях - Армада</title> <title>Всё о Подземельях - Армада</title>
<link rel="stylesheet" type="text/css" href="i/css/dungeon.css" media="screen" /> <link href="i/css/dungeon.css" media="screen" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" href="i/css/vstyle1.css" media="screen" /> <link href="i/css/vstyle1.css" media="screen" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" href="i/css/dungeon4ie.css" media="screen" /> <link href="i/css/dungeon4ie.css" media="screen" rel="stylesheet" type="text/css"/>
<meta name="Distribution" content="Global" /> <meta content="Global" name="Distribution"/>
<meta name="Classification" content="non-profit" /> <meta content="non-profit" name="Classification"/>
<meta name="Resource-type" content="application" /> <meta content="application" name="Resource-type"/>
<meta name="Rating" content="Safe for Kids" /> <meta content="Safe for Kids" name="Rating"/>
<meta name="Author" content="ландыши" /> <meta content="ландыши" name="Author"/>
<meta name="Author" content="Proshka" /> <meta content="Proshka" name="Author"/>
<meta name="Language" content="ru" /> <meta content="ru" name="Language"/>
<meta name="save" content="favorite" /> <meta content="favorite" name="save"/>
<meta name="keywords" content="Канализация, Подземелья, Диггер, Карта, БК, Бойцовский Клуб, Пещера Тысячи Проклятий, Бездна, Катакомбы, Пещеры Мглы, Алтарь Крови" /> <meta content="Канализация, Подземелья, Диггер, Карта, БК, Бойцовский Клуб, Пещера Тысячи Проклятий, Бездна, Катакомбы, Пещеры Мглы"
<script src="head/ahtmlv.js" language="javascript" type="text/javascript"></script> name="keywords"/>
<script src="head/dcacommon.js" language="javascript" type="text/javascript"></script> <script language="javascript" src="head/ahtmlv.js" type="text/javascript"></script>
<script language="javascript" src="head/dcacommon.js" type="text/javascript"></script>
</head> </head>
<body> <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="popupDiv"
<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> 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="header" class="unselectable" unselectable="on"> <div id="menuDiv" onclick="onMenuClick()" onlosecapture="hideMenuCore()"
<table background="i/ugetc/header_texture.gif" class="unselectable" unselectable="on" width="100%" height="180" border="0" cellspacing="0" cellpadding="0"> 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>
<tr><td> <div class="unselectable" id="header" unselectable="on">
<div class="unselectable" style="float: right;" unselectable="on"> <table background="i/ugetc/header_texture.gif" border="0" cellpadding="0" cellspacing="0" class="unselectable"
<img id="header_rightpart" class="unselectable" src="i/blank.gif" border="0" width="1" height="1" alt="" unselectable="on" /></div> height="180" unselectable="on" width="100%">
<div class="unselectable" style="position: absolute; left: 30px; top: 20px;" unselectable="on"> <tr>
<img id="header_dungeontitle" class="unselectable" src="i/blank.gif" width="1" height="1" border="0" alt="" unselectable="on" /></div> <td>
<div id="header_progress" class="unselectable" style="position: absolute; left: 0px; top: 165px;width:100%;text-align:center;" unselectable="on"> <div class="unselectable" style="float: right;" unselectable="on">
<img class="unselectable" src="i/ugetc/progress.gif" width="287" height="15" border="0" alt="" unselectable="on" /></div> <img alt="" border="0" class="unselectable" height="1" id="header_rightpart" src="i/blank.gif"
</td></tr></table></div><div id="menu"> unselectable="on" width="1"/></div>
<ul id="nav"> <div class="unselectable" style="position: absolute; left: 30px; top: 20px;" unselectable="on">
<li class="activeLink"><a href="javascript:;">Подземелья</a></li> <img alt="" border="0" class="unselectable" height="1" id="header_dungeontitle" src="i/blank.gif"
<li><a target="_self" href="/">Домой</a></li> unselectable="on" width="1"/></div>
</ul> <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 href="/" target="_self">Домой</a></li>
</ul>
</div> </div>
<div id="content"> <div id="content">
<input class="userdata" type="hidden" id="du_historystore" name="du_historystore" value="" /> <input class="userdata" id="du_historystore" name="du_historystore" type="hidden" value=""/>
<div id="right"> <div id="right">
<div id="dsurface"> <div id="dsurface">
<div style="width: 100%; font-weight: bold; text-align: center; padding: 8px 8px 8px 8px"> <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;" /> <img src="i/loading.gif"
<div class="hintview" style="padding: 4px;font-weight: normal;">Первоначальная загрузка каждого Подземелья кэширует все необходимые файлы, и вторичное их открытие будет очень быстрым.</div> style="width:60px;height:60px;padding:20px;border:0 none transparent;float:right;"/>
Пожалуйста, подождите, пока загружается ресурс &quot;Всё о Подземельях&quot;...<br /><br /><small>Если ресурс не загружается, нажмите <kbd>Ctrl+F5</kbd>, или почистите кэш временных файлов Вашего браузера Internet.</small></div> <div class="hintview" style="padding: 4px;font-weight: normal;">Первоначальная загрузка каждого
<div style="width: 100%; text-align: center; padding: 8px 8px 8px 8px"><a href="javascript:;" class="TLink" onclick="doClean()">Очистить все данные</a></div> Подземелья кэширует все необходимые файлы, и вторичное их открытие будет очень быстрым.
</div> </div>
<hr size="1" noshade="noshade" /> Пожалуйста, подождите, пока загружается ресурс &quot;Всё о Подземельях&quot;...<br/><br/><small>Если
<div> ресурс не загружается, нажмите <kbd>Ctrl+F5</kbd>, или почистите кэш временных файлов Вашего браузера
<div id="ads" style="float: right; z-index: 1; background-color: #000;"> Internet.</small></div>
</div> <div style="width: 100%; text-align: center; padding: 8px 8px 8px 8px"><a class="TLink" href="javascript:"
</div> 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"> <script language="javascript" type="text/javascript">
function doNothing() { function doNothing() {
}
function doClean() { }
window.onunload = doNothing;
DeleteCookie('du_Options'); function doClean() {
var historystore = document.getElementById('du_historystore'); window.onunload = doNothing;
historystore.value = ''; DeleteCookie('du_Options');
historystore.setAttribute("du_sPersistAttr", historystore.value); var historystore = document.getElementById('du_historystore');
historystore.save('du_historystore'); historystore.value = '';
window.location.href = window.location.href; historystore.setAttribute("du_sPersistAttr", historystore.value);
} historystore.save('du_historystore');
</script> window.location.href = window.location.href;
}
</script>
</div>
<div id="left">
<center>
<iframe align="center" frameborder="no" height="50" id="offline_frame" scrolling="no" width="200"></iframe>
</center>
</div>
</div> </div>
<div id="left"> <script language="javascript" src="head/dungeonengine.js" type="text/javascript"></script>
<center> <script language="javascript" src="dungeonoffline.js" type="text/javascript"></script>
<iframe id="offline_frame" align="center" width="200" height="50" frameborder="no" scrolling="no"></iframe> <script language="javascript" src="head/dungeon.offlinedata.js" type="text/javascript"></script>
</center> <script language="javascript" src="head/dungeon.constructor.js" type="text/javascript"></script>
</div> <script language="javascript" src="head/dungeon.all.js" type="text/javascript"></script>
</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>
</body> </body>
</html> </html>

2217
inf.php

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,7 @@ elem.parentNode.removeChild(elem);
</script>"; </script>";
use Core\Config; use Core\Config;
use Core\ConversionHelper;
use DarksLight2\Battle\Techniques\TechniqueCategoryEntity; use DarksLight2\Battle\Techniques\TechniqueCategoryEntity;
use DarksLight2\Training\TrainingManager; use DarksLight2\Training\TrainingManager;
@ -200,7 +201,7 @@ $tma = '';
<TD> <TD>
<?php <?php
echo $u->microLogin($u->info['id']); echo $u->microLogin($u->info['id']);
$st = \Core\ConversionHelper::dataStringToArray($u->info['stats']); $st = ConversionHelper::dataStringToArray($u->info['stats']);
if ( if (
$_GET['dec_transfer'] || $_GET['dec_transfer'] ||
$_GET['dec_travma'] || $_GET['dec_travma'] ||
@ -260,7 +261,7 @@ $tma = '';
$st['os9'] += (int)$_GET['speed_HP']; $st['os9'] += (int)$_GET['speed_HP'];
$st['os10'] += (int)$_GET['speed_MP']; $st['os10'] += (int)$_GET['speed_MP'];
$st['os11'] += (int)$_GET['speed_debuff']; $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) { if ($u->info['sskills'] - (int)$summs < 0) {
echo '&nbsp; &nbsp;<span style="color: red; ">У вас нет свободных особенностей</span><br>'; echo '&nbsp; &nbsp;<span style="color: red; ">У вас нет свободных особенностей</span><br>';
@ -465,7 +466,7 @@ $tma = '';
$st['s10'] += (int)$_GET['god']; $st['s10'] += (int)$_GET['god'];
} }
$u->info['stats'] = \Core\ConversionHelper::arrayToDataString($st); $u->info['stats'] = ConversionHelper::arrayToDataString($st);
if ( 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) { $_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) {
@ -484,12 +485,12 @@ $tma = '';
)) { )) {
if ((int)$u->info['ability'] === 0 && (int)$u->info['skills'] === 0) { if ((int)$u->info['ability'] === 0 && (int)$u->info['skills'] === 0) {
TrainingManager::getInstance() TrainingManager::getInstance()
->addPoint( ->addPoint(
'my_user_third_quest', 'my_user_third_quest',
function (TrainingManager $manager) { function (TrainingManager $manager) {
$manager->store(); $manager->store();
} }
); );
} }
function getSuccessStatusStat(string $name): string function getSuccessStatusStat(string $name): string
{ {
@ -764,232 +765,232 @@ $tma = '';
<TABLE border=0 cellspacing=0 cellpadding=0 width=100%> <TABLE border=0 cellspacing=0 cellpadding=0 width=100%>
<tr> <tr>
<TD width=30% valign=top> <TD width=30% valign=top>
<TABLE border=0 cellspacing=1 cellpadding=0 width=100%> <TABLE border=0 cellspacing=1 cellpadding=0 width=100%>
<TR> <TR>
<TD height="10" class=tzS>Характеристики персонажа</TD> <TD height="10" class=tzS>Характеристики персонажа</TD>
</TR> </TR>
<TR> <TR>
<TD style='padding-left: 5'> <TD style='padding-left: 5'>
<STYLE> <STYLE>
IMG.skill { IMG.skill {
width: 9px; width: 9px;
height: 9px; height: 9px;
cursor: pointer cursor: pointer
} }
TD.skill { TD.skill {
font-weight: bold font-weight: bold
} }
TD.skills { TD.skills {
font-weight: bold; font-weight: bold;
color: #600000 color: #600000
} }
TD.skillb { TD.skillb {
font-weight: bold; font-weight: bold;
color: #006000 color: #006000
} }
.linestl1 { .linestl1 {
background-color: #E2E0E0; background-color: #E2E0E0;
font-size: 10px; font-size: 10px;
font-weight: bold; font-weight: bold;
} }
</STYLE> </STYLE>
<TABLE cellSpacing=0> <TABLE cellSpacing=0>
<TR id="str" onMouseDown="ChangeSkill(event,this)" onMouseUp="DropTimer()" <TR id="str" onMouseDown="ChangeSkill(event,this)" onMouseUp="DropTimer()"
onclick="OnClick(event,this);"> onclick="OnClick(event,this);">
<TD>&bull; Сила:</TD> <TD>&bull; Сила:</TD>
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s1'] ?><BR></small></TD> <TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s1'] ?><BR></small></TD>
<TD width=60 noWrap><?= $dex ?></TD> <?php <TD width=60 noWrap><?= $dex ?></TD> <?php
if ($u->info['ability'] > 0) { ?> if ($u->info['ability'] > 0) { ?>
<TD><IMG id="minus_dex" src=<?= Config::img() ?>/i/minus.gif class="nonactive" <TD><IMG id="minus_dex" src=<?= Config::img() ?>/i/minus.gif class="nonactive"
ALT="уменьшить">&nbsp;<IMG src=<?= Config::img() ?>/i/plus.gif ALT="уменьшить">&nbsp;<IMG src=<?= Config::img() ?>/i/plus.gif
class=skill class=skill
ALT="увеличить" id="plus_dex"></TD><?php } ?> ALT="увеличить" id="plus_dex"></TD><?php } ?>
</TR> </TR>
<TR id="dex" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()" <TR id="dex" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
onclick="OnClick(event,this);"> onclick="OnClick(event,this);">
<TD>&bull; Ловкость:</TD> <TD>&bull; Ловкость:</TD>
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s2'] ?><BR></small></TD> <TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s2'] ?><BR></small></TD>
<TD width=60 noWrap><?= $dex ?></TD> <TD width=60 noWrap><?= $dex ?></TD>
<?php
if ($u->info['ability'] > 0) { ?>
<TD><IMG id="minus_dex" src=<?= Config::img() ?>/i/minus.gif class="nonactive"
ALT="уменьшить">&nbsp;<IMG src=<?= Config::img() ?>/i/plus.gif
class=skill ALT="увеличить" id="plus_dex"></TD><?php
} ?>
</TR>
<TR id="inst" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
onclick="OnClick(event,this);">
<TD>&bull; Интуиция:</TD>
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s3'] ?><BR></small></TD>
<TD width=60 noWrap><?= $inst ?></TD>
<?php
if ($u->info['ability'] > 0) { ?>
<TD><IMG id="minus_dex" src=<?= Config::img() ?>/i/minus.gif class="nonactive"
ALT="уменьшить">&nbsp;<IMG src=<?= Config::img() ?>/i/plus.gif
class=skill
ALT="увеличить" id="plus_dex"></TD><?php } ?>
</TR>
<TR id="power" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
onclick="OnClick(event,this);">
<TD>&bull; Выносливость:</TD>
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s4'] ?><BR></small></TD>
<TD width=60 noWrap></TD>
<?php
if ($u->info['ability'] > 0) { ?>
<TD><IMG id="minus_dex" src=<?= Config::img() ?>/i/minus.gif class="nonactive"
ALT="уменьшить">&nbsp;<IMG src=<?= Config::img() ?>/i/plus.gif
class=skill
ALT="увеличить" id="plus_dex"></TD><?php } ?>
</TR>
<?php <?php
if ($u->info['ability'] > 0) { ?> if ($u->info['level'] > 3) { ?>
<TD><IMG id="minus_dex" src=<?= Config::img() ?>/i/minus.gif class="nonactive" <TR id="intel" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
ALT="уменьшить">&nbsp;<IMG src=<?= Config::img() ?>/i/plus.gif onclick="OnClick(event,this);">
class=skill ALT="увеличить" id="plus_dex"></TD><?php <TD>&bull; Интеллект:</TD>
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s5'] ?></TD>
<TD width=60 noWrap><?= $intel ?></TD>
<?php
if ($u->info['ability'] > 0) { ?>
<TD><IMG id="minus_intel" src=<?= Config::img() ?>/i/minus.gif
class="nonactive" ALT="уменьшить">&nbsp;<IMG
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
id="plus_intel"></TD><?php
} ?>
</TR>
<?php
}
if ($u->info['level'] > 6) { ?>
<TR id="wis" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
onclick="OnClick(event,this);">
<TD>&bull; Мудрость:</TD>
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s6'] ?></TD>
<TD width=60 noWrap></TD>
<?php
if ($u->info['ability'] > 0) { ?>
<TD><IMG id="minus_wis" src=<?= Config::img() ?>/i/minus.gif
class="nonactive" ALT="уменьшить">&nbsp;<IMG
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
id="plus_wis"></TD><?php
} ?>
</TR>
<?php
}
if ($u->info['level'] > 9) { ?>
<TR id="spirit" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
onclick="OnClick(event,this);">
<TD>&bull; Духовность:</TD>
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s7'] ?></TD>
<TD width=60 noWrap></TD>
<?php
if ($u->info['ability'] > 0) { ?>
<TD><IMG id="minus_spirit" src=<?= Config::img() ?>/i/minus.gif
class="nonactive" ALT="уменьшить">&nbsp;<IMG
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
id="plus_spirit"></TD><?php
} ?>
</TR>
<?php
}
if ($u->info['level'] > 12) { ?>
<TR id="will" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
onclick="OnClick(event,this);">
<TD>&bull; Воля:</TD>
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s8'] ?></TD>
<TD width=60 noWrap></TD>
<?php
if ($u->info['ability'] > 0) { ?>
<TD><IMG id="minus_will" src=<?= Config::img() ?>/i/minus.gif
class="nonactive" ALT="уменьшить">&nbsp;<IMG
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
id="plus_will"></TD><?php
} ?>
</TR>
<?php
}
if ($u->info['level'] > 15) { ?>
<TR id="freedom" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
onclick="OnClick(event,this);">
<TD>&bull; Свобода духа:</TD>
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s9'] ?></TD>
<TD width=60 noWrap></TD>
<?php
if ($u->info['ability'] > 0) { ?>
<TD><IMG id="minus_freedom" src=<?= Config::img() ?>/i/minus.gif
class="nonactive" ALT="уменьшить">&nbsp;<IMG
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
id="plus_freedom"></TD><?php
} ?>
</TR>
<?php
}
if ($u->info['level'] > 18) { ?>
<TR id="god" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
onclick="OnClick(event,this);">
<TD>&bull; Божественность:</TD>
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s10'] ?></TD>
<TD width=60 noWrap></TD>
<?php
if ($u->info['ability'] > 0) { ?>
<TD><IMG id="minus_god" src=<?= Config::img() ?>/i/minus.gif
class="nonactive" ALT="уменьшить">&nbsp;<IMG
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
id="plus_god"></TD><?php
} ?>
</TR>
<?php
} ?> } ?>
</TR> </TABLE>
<TR id="inst" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()" </TD>
onclick="OnClick(event,this);"> </TR>
<TD>&bull; Интуиция:</TD> </TABLE>
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s3'] ?><BR></small></TD> <INPUT class="btn btn-success" type="button" value="Сохранить" disabled id="save_button0"
<TD width=60 noWrap><?= $inst ?></TD> onClick="SaveSkill()">
<?php <INPUT type="checkbox" onClick="ChangeButtonState(0)">
if ($u->info['ability'] > 0) { ?> <div style="color: green; margin: 16px 0;" id="ups">
<TD><IMG id="minus_dex" src=<?= Config::img() ?>/i/minus.gif class="nonactive" <?php
ALT="уменьшить">&nbsp;<IMG src=<?= Config::img() ?>/i/plus.gif if ($u->info['ability']) {
class=skill echo "Возможных увеличений: <span id='UP'>{$u->info['ability']}</span><br>";
ALT="увеличить" id="plus_dex"></TD><?php } ?> }
</TR> if ($u->info['skills']) {
<TR id="power" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()" echo "Свободных умений: <span id='m_UP'>{$u->info['skills']}</span><br>";
onclick="OnClick(event,this);"> }
<TD>&bull; Выносливость:</TD> if ($u->info['sskills']) {
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s4'] ?><BR></small></TD> echo "Свободных особенностей: <span id='m_UP'>{$u->info['sskills']}</span><br>";
<TD width=60 noWrap></TD> }
<?php ?>
if ($u->info['ability'] > 0) { ?> </div>
<TD><IMG id="minus_dex" src=<?= Config::img() ?>/i/minus.gif class="nonactive" <style>
ALT="уменьшить">&nbsp;<IMG src=<?= Config::img() ?>/i/plus.gif ul {
class=skill padding-left: 10px;
ALT="увеличить" id="plus_dex"></TD><?php } ?> }
</TR>
<?php
if ($u->info['level'] > 3) { ?>
<TR id="intel" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
onclick="OnClick(event,this);">
<TD>&bull; Интеллект:</TD>
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s5'] ?></TD>
<TD width=60 noWrap><?= $intel ?></TD>
<?php
if ($u->info['ability'] > 0) { ?>
<TD><IMG id="minus_intel" src=<?= Config::img() ?>/i/minus.gif
class="nonactive" ALT="уменьшить">&nbsp;<IMG
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
id="plus_intel"></TD><?php
} ?>
</TR>
<?php
}
if ($u->info['level'] > 6) { ?>
<TR id="wis" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
onclick="OnClick(event,this);">
<TD>&bull; Мудрость:</TD>
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s6'] ?></TD>
<TD width=60 noWrap></TD>
<?php
if ($u->info['ability'] > 0) { ?>
<TD><IMG id="minus_wis" src=<?= Config::img() ?>/i/minus.gif
class="nonactive" ALT="уменьшить">&nbsp;<IMG
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
id="plus_wis"></TD><?php
} ?>
</TR>
<?php
}
if ($u->info['level'] > 9) { ?>
<TR id="spirit" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
onclick="OnClick(event,this);">
<TD>&bull; Духовность:</TD>
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s7'] ?></TD>
<TD width=60 noWrap></TD>
<?php
if ($u->info['ability'] > 0) { ?>
<TD><IMG id="minus_spirit" src=<?= Config::img() ?>/i/minus.gif
class="nonactive" ALT="уменьшить">&nbsp;<IMG
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
id="plus_spirit"></TD><?php
} ?>
</TR>
<?php
}
if ($u->info['level'] > 12) { ?>
<TR id="will" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
onclick="OnClick(event,this);">
<TD>&bull; Воля:</TD>
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s8'] ?></TD>
<TD width=60 noWrap></TD>
<?php
if ($u->info['ability'] > 0) { ?>
<TD><IMG id="minus_will" src=<?= Config::img() ?>/i/minus.gif
class="nonactive" ALT="уменьшить">&nbsp;<IMG
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
id="plus_will"></TD><?php
} ?>
</TR>
<?php
}
if ($u->info['level'] > 15) { ?>
<TR id="freedom" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
onclick="OnClick(event,this);">
<TD>&bull; Свобода духа:</TD>
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s9'] ?></TD>
<TD width=60 noWrap></TD>
<?php
if ($u->info['ability'] > 0) { ?>
<TD><IMG id="minus_freedom" src=<?= Config::img() ?>/i/minus.gif
class="nonactive" ALT="уменьшить">&nbsp;<IMG
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
id="plus_freedom"></TD><?php
} ?>
</TR>
<?php
}
if ($u->info['level'] > 18) { ?>
<TR id="god" onMouseDown="ChangeSkill( event, this )" onMouseUp="DropTimer()"
onclick="OnClick(event,this);">
<TD>&bull; Божественность:</TD>
<TD width=40 class="skill" align="right" wdth=30><?= $u->stats['s10'] ?></TD>
<TD width=60 noWrap></TD>
<?php
if ($u->info['ability'] > 0) { ?>
<TD><IMG id="minus_god" src=<?= Config::img() ?>/i/minus.gif
class="nonactive" ALT="уменьшить">&nbsp;<IMG
src=<?= Config::img() ?>/i/plus.gif class=skill ALT="увеличить"
id="plus_god"></TD><?php
} ?>
</TR>
<?php
} ?>
</TABLE>
</TD>
</TR>
</TABLE>
<INPUT class="btn btn-success" type="button" value="Сохранить" disabled id="save_button0"
onClick="SaveSkill()">
<INPUT type="checkbox" onClick="ChangeButtonState(0)">
<div style="color: green; margin: 16px 0;" id="ups">
<?php
if ($u->info['ability']) {
echo "Возможных увеличений: <span id='UP'>{$u->info['ability']}</span><br>";
}
if ($u->info['skills']) {
echo "Свободных умений: <span id='m_UP'>{$u->info['skills']}</span><br>";
}
if ($u->info['sskills']) {
echo "Свободных особенностей: <span id='m_UP'>{$u->info['sskills']}</span><br>";
}
?>
</div>
<style>
ul {
padding-left: 10px;
}
ul li { ul li {
font-size: x-small; font-size: x-small;
} }
ul li b { ul li b {
color: green; color: green;
} }
</style> </style>
<div> <div>
<INPUT TYPE=button class="btn btn-danger" <INPUT TYPE=button class="btn btn-danger"
onClick="window.open('/stats_bonus.php/', 'stats_bonus', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" onClick="window.open('/stats_bonus.php/', 'stats_bonus', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')"
value="Статовые Бонусы"> value="Статовые Бонусы">
<br><br> <br><br>
<b style="font-size: x-small;">Зависимость максимального профильного урона оружием у основных воинских <b style="font-size: x-small;">Зависимость максимального профильного урона оружием у основных воинских
классов:</b> классов:</b>
<ul> <ul>
<li><b>Дробящий</b> (дубины): 1 сила = 0,5 к урону и 1 выносливость = +1 к урону.</li> <li><b>Дробящий</b> (дубины): 1 сила = 0,5 к урону и 1 выносливость = +1 к урону.</li>
<li><b>Режущий</b> (мечи): 1 интуиция = 1 к урону.</li> <li><b>Режущий</b> (мечи): 1 интуиция = 1 к урону.</li>
<li><b>Колющий</b> (кинжалы): 1 сила = 0,25 к урону и 1 ловкость = 0,75 к урону.</li> <li><b>Колющий</b> (кинжалы): 1 сила = 0,25 к урону и 1 ловкость = 0,75 к урону.</li>
<li><b>Рубящий</b> (топоры): 1 сила = 1,2 к урону.</li> <li><b>Рубящий</b> (топоры): 1 сила = 1,2 к урону.</li>
</ul> </ul>
</div> </div>
</TD> </TD>
<TD width=1 bgcolor=#A0A0A0></TD> <TD width=1 bgcolor=#A0A0A0></TD>
<TD valign=top> <TD valign=top>
<TABLE border=0 cellspacing=1 cellpadding=0 width=100%> <TABLE border=0 cellspacing=1 cellpadding=0 width=100%>
@ -1383,7 +1384,7 @@ $tma = '';
<fieldset style="width: 50%"> <fieldset style="width: 50%">
<legend><b>Категории</b></legend> <legend><b>Категории</b></legend>
<div <div
style="display: flex; flex-wrap: wrap; flex-direction: column; justify-content: center;"> style="display: flex; flex-wrap: wrap; flex-direction: column; justify-content: center;">
<?php <?php
$categories = TechniqueCategoryEntity::getInstance()->findAll(); $categories = TechniqueCategoryEntity::getInstance()->findAll();
foreach ($categories as $category) { foreach ($categories as $category) {
@ -1425,7 +1426,7 @@ $tma = '';
$clr = $clr == 'C7' ? 'D5' : 'C7'; $clr = $clr == 'C7' ? 'D5' : 'C7';
$v1 = ''; $v1 = '';
$v2 = ''; $v2 = '';
$v3 = \Core\ConversionHelper::dataStringToArray($u->stats['effects'][$i]['data']); $v3 = ConversionHelper::dataStringToArray($u->stats['effects'][$i]['data']);
$j = 0; $j = 0;
while ($j < count($u->items['add'])) { while ($j < count($u->items['add'])) {
if (isset($v3['add_' . $u->items['add'][$j]])) { if (isset($v3['add_' . $u->items['add'][$j]])) {
@ -1484,7 +1485,7 @@ $tma = '';
$clr = $clr == 'C7' ? 'D5' : 'C7'; $clr = $clr == 'C7' ? 'D5' : 'C7';
$v1 = ''; $v1 = '';
$v2 = ''; $v2 = '';
$v3 = \Core\ConversionHelper::dataStringToArray($e['bonus']); $v3 = ConversionHelper::dataStringToArray($e['bonus']);
$j = 0; $j = 0;
while ($j < count($u->items['add'])) { while ($j < count($u->items['add'])) {
@ -1543,8 +1544,7 @@ $tma = '';
$ae = ''; $ae = '';
$sp = mysql_query( $sp = mysql_query(
'SELECT * FROM `eff_users` WHERE `v1` LIKE "pgb%" AND `delete` = "0" AND `deactiveTime` > ' . time( 'SELECT * FROM `eff_users` WHERE `v1` LIKE "pgb%" AND `delete` = "0" AND `deactiveTime` > ' . time() . ' AND `uid` = "' . $u->info['id'] . '" ORDER BY `timeUse` DESC'
) . ' AND `uid` = "' . $u->info['id'] . '" ORDER BY `timeUse` DESC'
); );
while ($pl = mysql_fetch_array($sp)) { while ($pl = mysql_fetch_array($sp)) {
$tp = (int)str_replace('pgb', '', $pl['v1']); $tp = (int)str_replace('pgb', '', $pl['v1']);
@ -1560,8 +1560,7 @@ $tma = '';
} }
$psh = mysql_fetch_array( $psh = mysql_fetch_array(
mysql_query( mysql_query(
'SELECT * FROM `actions` WHERE `uid` = "' . $u->info['id'] . '" AND `vars` = "psh0" AND `time` > ' . (time( 'SELECT * FROM `actions` WHERE `uid` = "' . $u->info['id'] . '" AND `vars` = "psh0" AND `time` > ' . (time() - 7200) . ' LIMIT 1'
) - 7200) . ' LIMIT 1'
) )
); );
if (isset($psh['id'])) { if (isset($psh['id'])) {
@ -1901,7 +1900,7 @@ $tma = '';
//добавляем действия комплекта //добавляем действия комплекта
$cmss .= '<small style="color:grey">'; $cmss .= '<small style="color:grey">';
$ij = 0; $ij = 0;
$sti = \Core\ConversionHelper::dataStringToArray($plc['data']); $sti = ConversionHelper::dataStringToArray($plc['data']);
while ($ij < count($ia)) { while ($ij < count($ia)) {
if (isset($ia[$ij]) && isset($sti[$ia[$ij]])) { if (isset($ia[$ij]) && isset($sti[$ia[$ij]])) {
$mad = $sti[$ia[$ij]]; $mad = $sti[$ia[$ij]];
@ -2000,7 +1999,7 @@ $tma = '';
god: <?=$st['s10']?> god: <?=$st['s10']?>
<?php }?> <?php }?>
}; };
var skillsArr = new Array(); var skillsArr = [];
skillsArr["m_axe"] = <?=$st['a4']?>; skillsArr["m_axe"] = <?=$st['a4']?>;
skillsArr["m_molot"] = <?=$st['a3']?>; skillsArr["m_molot"] = <?=$st['a3']?>;
skillsArr["m_staff"] = <?=$st['a5']?>; skillsArr["m_staff"] = <?=$st['a5']?>;
@ -2015,7 +2014,7 @@ $tma = '';
skillsArr["m_magic7"] = <?=$st['mg7']?>; skillsArr["m_magic7"] = <?=$st['mg7']?>;
function SetAllSkills(isOn) { 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) { for (var i in arrSkills) {
var clname = (isOn) ? "skill" : "nonactive"; var clname = (isOn) ? "skill" : "nonactive";
if (oNode = document.getElementById("plus_" + arrSkills[i])) oNode.className = clname; if (oNode = document.getElementById("plus_" + arrSkills[i])) oNode.className = clname;
@ -2238,7 +2237,7 @@ $tma = '';
} }
?> ?>
<FIELDSET> <FIELDSET>
<LEGEND style="font-weight: bold; color: #660000;">Текущее Ежедневное задание: </LEGEND> <LEGEND style="font-weight: bold; color: #660000;">Текущее Ежедневное задание:</LEGEND>
<?= $daytext ?> <?= $daytext ?>
<BR> <BR>
</FIELDSET> </FIELDSET>
@ -2253,8 +2252,7 @@ $tma = '';
} }
$sp = mysql_query( $sp = mysql_query(
'SELECT * FROM `actions` WHERE `uid` = "' . $u->info['id'] . '" AND `vars` LIKE "psh_qt_%" AND `time` > ' . (time( 'SELECT * FROM `actions` WHERE `uid` = "' . $u->info['id'] . '" AND `vars` LIKE "psh_qt_%" AND `time` > ' . (time() - 86400) . ' '
) - 86400) . ' '
); );
while ($pl = mysql_fetch_array($sp)) { while ($pl = mysql_fetch_array($sp)) {
$ic1 = str_replace('psh_qt_', '', $pl['vars']); $ic1 = str_replace('psh_qt_', '', $pl['vars']);
@ -2262,8 +2260,7 @@ $tma = '';
} }
//Пещеры //Пещеры
$dungeon_timeout = $u->testAction( $dungeon_timeout = $u->testAction(
'`uid` = "' . $u->info['id'] . '" AND `vars` = "psh0" AND `time` > ' . (time( '`uid` = "' . $u->info['id'] . '" AND `vars` = "psh0" AND `time` > ' . (time() - 60 * 60 * 3) . ' LIMIT 1',
) - 60 * 60 * 3) . ' LIMIT 1',
1 1
); );
if ($dungeon_timeout['vars'] == "psh0") { if ($dungeon_timeout['vars'] == "psh0") {
@ -2308,10 +2305,6 @@ $tma = '';
&bull; <B>Храм Знаний</B> - <?= $u->rep_zv(1, $u->rep['rep1']) ?><BR> &bull; <B>Храм Знаний</B> - <?= $u->rep_zv(1, $u->rep['rep1']) ?><BR>
<?php <?php
} }
if ($u->rep['rep2'] > 0) { ?>
&bull; <B>Алтарь Крови</B> - <?= $u->rep_zv(5, $u->rep['rep2']) ?><BR>
<?php
}
if ($u->rep['repdreamscity'] > 0) { ?> if ($u->rep['repdreamscity'] > 0) { ?>
&bull; <B>Водосток</B> - <?= $u->rep_zv(9, $u->rep['repdreamscity']) ?><BR> &bull; <B>Водосток</B> - <?= $u->rep_zv(9, $u->rep['repdreamscity']) ?><BR>
<?php <?php
@ -2328,7 +2321,7 @@ $tma = '';
1 1
); );
if (isset($sf['id'])) { if (isset($sf['id'])) {
$sfe = \Core\ConversionHelper::dataStringToArray($sf['vals']); $sfe = ConversionHelper::dataStringToArray($sf['vals']);
$sf[0] = $u->info['exp'] - (int)$sfe['e']; $sf[0] = $u->info['exp'] - (int)$sfe['e'];
$sf[1] = $u->info['win'] - (int)$sfe['w']; $sf[1] = $u->info['win'] - (int)$sfe['w'];
$sf[2] = $u->info['lose'] - (int)$sfe['l']; $sf[2] = $u->info['lose'] - (int)$sfe['l'];
@ -2369,5 +2362,5 @@ $tma = '';
</tr> </tr>
</TABLE> </TABLE>
<!--рейтинг тут--> <!--рейтинг тут-->
</BODY> </BODY>

View File

@ -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">&nbsp;</TD>
</FORM>
</TR>
</TABLE>
<td width="280" valign="top">
<TABLE cellspacing="0" cellpadding="0"><TD width="100%">&nbsp;</TD><TD>
<table border="0" cellpadding="0" cellspacing="0">
<tr align="right" valign="top">
<td>
<!-- -->
<?= $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
}
?>

View File

@ -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%>&nbsp;<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%">&nbsp;</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']?> &nbsp;<br />
У вас в наличии: <b style="color:#339900;"><?= round($u->info['money'],2); ?> кр.</b> &nbsp;
</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=>'Приёмы:&nbsp;Атака',3=>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Защита',4=>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Контрудар',5=>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Критические удары',6=>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Парирование',7=>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Комбо',8=>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Сила Духа',9=>'Заклинания:&nbsp;Огонь',10=>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Вода',11=>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Воздух',12=>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Земля',13=>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Свет',14=>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Тьма',15=>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Серая магия');
$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
}
?>

View File

@ -1,199 +1,192 @@
<?php <?php
if(!defined('GAME')) if (!defined('GAME')) {
{ die();
die();
} }
$tattack = ''; $tattack = '';
if($u->room['file']=='cp3') if ($u->room['file'] == 'cp3') {
{ if (date("H") >= 6 && date("H") < 22) {
if(date("H")>=6 && date("H")<22) { $now = 'day';
$now = 'day'; } else {
}else{ $now = 'night';
$now = 'night';
}
?>
<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{
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";
var i, doc_width, doc_height;
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
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'];
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
yp[c] = 0;
stx[c] = 0.02 + Math.random()/10; // set step variables
sty[c] = 0.7 + Math.random(); // set step variables
}
function DrawWeather(room) {
doc_width = document.getElementById('ione').width;
doc_height = document.getElementById('ione').height;
doc_width = 500;
doc_height = 268;
var div = '';
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>";
}
document.getElementById('snow').innerHTML = div;
return 1;
}
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) {
SetVariable(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';
} }
setTimeout('WeatherBegin()', speed); ?>
} <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 {
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";
var i, doc_width, doc_height;
dx = [];
xp = [];
yp = [];
am = [];
stx = [];
sty = [];
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'];
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
yp[c] = 0;
stx[c] = 0.02 + Math.random() / 10; // set step variables
sty[c] = 0.7 + Math.random(); // set step variables
}
function DrawWeather(room) {
doc_width = document.getElementById('ione').width;
doc_height = document.getElementById('ione').height;
doc_width = 500;
doc_height = 268;
var div = '';
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>";
}
document.getElementById('snow').innerHTML = div;
return 1;
}
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) {
SetVariable(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';
}
setTimeout('WeatherBegin()', speed);
}
</script> </script>
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<td width="250" valign="top"> <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);
</td> if ($usee != false) {
<td width="230" valign="top" style="padding-top:19px;"><?php require_once('modules_data/stats_loc.php'); ?></td> echo $usee[0];
<td valign="top"><div align="right"> } else {
<table border="0" cellpadding="0" cellspacing="0"> echo 'information is lost.';
<tr align="right" valign="top"> } ?>
<td> </td>
<?php if($re!=''){ echo '<font color="red"><b>'.$re.'</b></font>'; } ?> <td width="230" valign="top" style="padding-top:19px;"><?php require_once('modules_data/stats_loc.php'); ?></td>
<table width="500" border="0" cellspacing="0" cellpadding="0"> <td valign="top">
<tr> <div align="right">
<td> <table border="0" cellpadding="0" cellspacing="0">
<div style="position:relative; cursor: pointer;" id="ione"> <tr align="right" valign="top">
<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"/> <td>
<div id="buttons_on_image" style="cursor:pointer; font-weight:bold; color:#D8D8D8; font-size:10px;"> <?php if ($re != '') {
<?= $tattack; ?> echo '<font color="red"><b>' . $re . '</b></font>';
</div> } ?>
<script language="javascript" type="text/javascript"> <table width="500" border="0" cellspacing="0" cellpadding="0">
<!-- <tr>
if(document.getElementById('ione')) <td>
{ <div style="position:relative; cursor: pointer;" id="ione">
document.getElementById('ione').appendChild(document.getElementById('buttons_on_image')); <img src="//img.new-combats.tech/city/capitalcity/<?= $now; ?>/city_capres2.jpg" alt="" name="img_ione" width="500" height="268" border="1"
document.getElementById('buttons_on_image').style.position = 'absolute'; id="img_ione"/>
document.getElementById('buttons_on_image').style.bottom = '8px'; <div id="buttons_on_image" style="cursor:pointer; font-weight:bold; color:#D8D8D8; font-size:10px;">
document.getElementById('buttons_on_image').style.right = '23px'; <?= $tattack; ?>
}else{ </div>
document.getElementById('buttons_on_image').style.display = 'none'; <script language="javascript" type="text/javascript">
} <!--
--> if (document.getElementById('ione')) {
</script> document.getElementById('ione').appendChild(document.getElementById('buttons_on_image'));
<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> document.getElementById('buttons_on_image').style.position = 'absolute';
<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> document.getElementById('buttons_on_image').style.bottom = '8px';
<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> document.getElementById('buttons_on_image').style.right = '23px';
<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> } else {
<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> document.getElementById('buttons_on_image').style.display = 'none';
<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> </script>
<div id="snow"></div> <div style="position: absolute; left: 313px; top: 109px; width: 73px; height: 47px; z-index: 88;"><img <?php thisInfRm('1.180.0.321'); ?>
<?= $goline; ?> src="//img.new-combats.tech/city/capitalcity/day/cp_portal.gif" width="75" height="90" class="aFilter"/></div>
</div> <div style="position:absolute; left:16px; top:155px; width:30px; height:54px; z-index:910;"><img <?php thisInfRm('1.180.0.11'); ?>
</td> src="//img.new-combats.tech/i/images/300x225/capital/3strelka.gif" width="30" height="53" class="aFilter"/></div>
</tr> <div id="snow"></div>
</table> <?= $goline; ?>
<?php </div>
if(date("H")<6 || date("H")>=22) </td>
{ </tr>
?> </table>
<div align="center" id="atackDiv" style="display:none;"> <?php
<form method="post" action="main.php"> if (date("H") < 6 || date("H") >= 22) {
<table width="300" border="0" cellspacing="0" cellpadding="0"> ?>
<tr> <div align="center" id="atackDiv" style="display:none;">
<td><div style="width:300px; padding:3px; margin:7px; background-color:#CCCCCC; border:1px solid #575757;"> Введите логин жертвы:<br /> <form method="post" action="main.php">
<input name="atack" type="text" id="atack" size="35" maxlength="30" /> <table width="300" border="0" cellspacing="0" cellpadding="0">
<input type="submit" name="button" id="button" class="btn" value="OK" /> <tr>
</div></td> <td>
</tr> <div style="width:300px; padding:3px; margin:7px; background-color:#CCCCCC; border:1px solid #575757;"> Введите логин жертвы:<br/>
</table> <input name="atack" type="text" id="atack" size="35" maxlength="30"/>
</form> <input type="submit" name="button" id="button" class="btn" value="OK"/>
</div> </div>
<?php </td>
} </tr>
?> </table>
</form>
</div>
<?php
}
?>
<!-- --> <!-- -->
<div style="width:500px; text-align:left; background-color:#D3D3D3;"> <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" />&nbsp;<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"/>&nbsp;<a
<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" />&nbsp;<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> 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" />&nbsp;<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"/>&nbsp;<a
<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" />&nbsp;<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> 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>
<!-- --> <!-- -->
<div style="display:none; height:0px " id="moveto"></div> <div style="display:none; height:0px " id="moveto"></div>
</td> </td>
<td> <td></td>
<!-- <br /><span class="menutop"><nobr>Комната для новичков</nobr></span>--> </tr>
</td> </table>
<HR>
<?= $rowonmax; ?><BR>
</div>
</td>
</tr> </tr>
</table> </table>
<small> <?php
<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
} }
?> ?>

View File

@ -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%>&nbsp;<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>Отдел&nbsp;&quot;Оружие: кастеты,ножи&quot;</b>',2=>'<b>Отдел&nbsp;&quot;Оружие: топоры&quot;</b>',3=>'<b>Отдел&nbsp;&quot;Оружие: дубины,булавы&quot;</b>',4=>'<b>Отдел&nbsp;&quot;Оружие: мечи&quot;</b>',5=>'<b>Отдел&nbsp;&quot;Оружие: магические посохи&quot;</b>',6=>'<b>Отдел&nbsp;&quot;Одежда: сапоги&quot;</b>',7=>'<b>Отдел&nbsp;&quot;Одежда: перчатки&quot;</b>',8=>'<b>Отдел&nbsp;&quot;Одежда: рубахи&quot;</b>',9=>'<b>Отдел&nbsp;&quot;Одежда: легкая броня&quot;</b>',10=>'<b>Отдел&nbsp;&quot;Одежда: тяжелая броня&quot;</b>',11=>'<b>Отдел&nbsp;&quot;Одежда: шлемы&quot;</b>',12=>'<b>Отдел&nbsp;&quot;Одежда: наручи&quot;</b>',13=>'<b>Отдел&nbsp;&quot;Одежда: пояса&quot;</b>',14=>'<b>Отдел&nbsp;&quot;Одежда: поножи&quot;</b>',15=>'<b>Отдел&nbsp;&quot;Щиты&quot;</b>',16=>'<b>Отдел&nbsp;&quot;Ювелирные товары: серьги&quot;</b>',17=>'<b>Отдел&nbsp;&quot;Ювелирные товары: ожерелья&quot;</b>',18=>'<b>Отдел&nbsp;&quot;Ювелирные товары: кольца&quot;</b>',19=>'<b>Отдел&nbsp;&quot;Заклинания: нейтральные&quot;</b>',20=>'<b>Отдел&nbsp;&quot;Заклинания: боевые и защитные&quot;</b>',21=>'<b>Отдел&nbsp;&quot;Амуниция&quot;</b>',22=>'<b>Отдел&nbsp;&quot;Эликсиры&quot;</b>',23=>'<b>Отдел&nbsp;&quot;Ресурсы&quot;</b>',24=>'<b>Отдел&nbsp;&quot;Поножи [10]&quot;</b>',25=>'<b>Отдел&nbsp;&quot;Подарки: упаковка&quot;</b>',26=>'<b>Отдел&nbsp;&quot;Подарки: открытки&quot;</b>',27=>'<b>Отдел&nbsp;&quot;Подарки: фейерверки&quot;</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%">&nbsp;</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']?> &nbsp;<br />
У вас в наличии: <b style="color:#339900;"><?= round($u->info['money'],2); ?> кр.</b> &nbsp;
</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=>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;боевые и защитные',21=>'Амуниция',22=>'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Эликсиры',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
}
?>

View File

@ -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%>&nbsp;<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%">&nbsp;</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']?> &nbsp;<br />
У вас в наличии: <b style="color:#339900;"><?= round($u->info['money'],2); ?> кр.</b> &nbsp;
</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=>'&nbsp;&nbsp;Нейтральные',2=>'&nbsp;&nbsp;Еда');
$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
}
?>