Плавка рун #1
This commit is contained in:
parent
5f4b2cbf77
commit
c5fb9868e6
65
_incl_data/class/Insallah/Runes/Runes.php
Normal file
65
_incl_data/class/Insallah/Runes/Runes.php
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Insallah;
|
||||||
|
|
||||||
|
class Runes
|
||||||
|
{
|
||||||
|
public static function get($level)
|
||||||
|
{
|
||||||
|
if (!in_array($level, [8, 9, 10])) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
$power = [8 => 3, 9 => 5, 10 => 7];
|
||||||
|
$rand9 = array_rand(array_flip(['hpAll', 'm2', 'm5']));
|
||||||
|
$runes = [
|
||||||
|
['s1', 'pa2', $rand9, 'antm3'],
|
||||||
|
['s1', 'pa3', $rand9, 'za'],
|
||||||
|
['s2', 'pa1', $rand9, 'antm3'],
|
||||||
|
['s2', 'pa1', $rand9, 'm3'],
|
||||||
|
['s3', 'pa4', $rand9, 'm3'],
|
||||||
|
['s5', 'm11', 'mpAll', 'pzm']
|
||||||
|
];
|
||||||
|
$vars = [
|
||||||
|
's1' => ['Ñèëà', mt_rand(1, 3)],
|
||||||
|
's2' => ['Ëîâêîñòü', mt_rand(1, 3)],
|
||||||
|
's3' => ['Èíòóèöèÿ', mt_rand(1, 3)],
|
||||||
|
's5' => ['Èíòåëëåêò', mt_rand(1, 3)],
|
||||||
|
'pa1' => ['Ìîùíîñòè Êîëþùåãî óðîíà', mt_rand(1, $power[$level])],
|
||||||
|
'pa2' => ['Ìîùíîñòè Ðóáÿùåãî óðîíà', mt_rand(1, $power[$level])],
|
||||||
|
'pa3' => ['Ìîùíîñòè Äðîáÿùåãî óðîíà', mt_rand(1, $power[$level])],
|
||||||
|
'pa4' => ['Ìîùíîñòè Ðåæóùåãî óðîíà', mt_rand(1, $power[$level])],
|
||||||
|
'm2' => ['???', mt_rand(5, 15)],
|
||||||
|
'm3' => ['ÌÊ', mt_rand(1, 3)],
|
||||||
|
'antm3' => ['ÏÌÊ', mt_rand(1, 3)],
|
||||||
|
'm5' => ['???', mt_rand(5, 10)],
|
||||||
|
'm11' => ['Ìîùíîñòè Ìàãèè ñòèõèè', mt_rand(1, $power[$level])],
|
||||||
|
'hpAll' => ['HP', mt_rand(5, 15)],
|
||||||
|
'mpAll' => ['MP', mt_rand(10, 20)],
|
||||||
|
'pzm' => ['Ïîäàâëåíèå çàùèòû îò ìàãèè', 1]
|
||||||
|
];
|
||||||
|
|
||||||
|
$rune = $runes[array_rand($runes)]; // arr (s, pa\m, rand9\mpAll, other)
|
||||||
|
$runeTxt = [$vars[$rune[0][0]], $vars[$rune[1][0]], $vars[$rune[2][0]], $vars[$rune[3][0]]];
|
||||||
|
$runeVals = [$vars[$rune[0][1]], $vars[$rune[1][1]], $vars[$rune[2][1]], $vars[$rune[3][1]]];
|
||||||
|
$resultRune = array_combine($rune, $runeVals);
|
||||||
|
$resultText = array_combine($runeTxt, array_map('self::addPlus', $runeVals));
|
||||||
|
if ($level < 10) { // Îòðåçàåì ïàðàìåòð 4.
|
||||||
|
array_pop($resultRune);
|
||||||
|
array_pop($resultText);
|
||||||
|
}
|
||||||
|
if ($level < 9) { // Îòðåçàåì ïàðàìåòð 3.
|
||||||
|
array_pop($resultRune);
|
||||||
|
array_pop($resultText);
|
||||||
|
}
|
||||||
|
//Ñòðî÷êà data â áàçó
|
||||||
|
$returnData = '|' . http_build_query($resultRune, 'add_', '|');
|
||||||
|
//Ñòðî÷êà ÷åëîâåêîïîíÿòíûõ ïàðàìåòðîâ â ñòàòóñ.
|
||||||
|
$returnText = implode(', ', $resultText);
|
||||||
|
return [$returnData, $returnText];
|
||||||
|
}
|
||||||
|
|
||||||
|
private static function addPlus($var)
|
||||||
|
{
|
||||||
|
return '+' . (string)$var;
|
||||||
|
}
|
||||||
|
}
|
@ -1,28 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
if(!defined('GAME'))
|
if (!defined('GAME') || $u->room['file'] == 'ab/hram') {
|
||||||
{
|
exit();
|
||||||
die();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*$qst_hram = mysql_fetch_array(mysql_query('SELECT * FROM `dialog_act` WHERE `uid` = "'.$u->info['id'].'" AND `var` = "qsthram1" AND `val` = 1 LIMIT 1'));
|
require_once '../../../_incl_data/class/Insallah/Runes/Runes.php';
|
||||||
if(isset($qst_hram['id'])) {
|
|
||||||
$qst_hram = true;
|
|
||||||
}else{
|
|
||||||
$qst_hram = false;
|
|
||||||
unset($_GET['r']);
|
|
||||||
}*/
|
|
||||||
|
|
||||||
$qst_hram = true;
|
$qst_hram = true;
|
||||||
|
|
||||||
if($u->room['file']=='ab/hram')
|
|
||||||
{
|
|
||||||
if(isset($_GET['itm']) && $qst_hram == true)
|
|
||||||
{
|
|
||||||
|
|
||||||
if($_GET['itm']>0)
|
if (isset($_GET['itm']) && $qst_hram && $_GET['itm'] > 0) {
|
||||||
{
|
if ($_GET['r'] == 1) {
|
||||||
if($_GET['r']==1)
|
|
||||||
{
|
|
||||||
$_GET['itm'] = (int)$_GET['itm'];
|
$_GET['itm'] = (int)$_GET['itm'];
|
||||||
//Ïåðåïëàâêà âåùåé
|
//Ïåðåïëàâêà âåùåé
|
||||||
$resz = $u->plavka($_GET['itm'], 1);
|
$resz = $u->plavka($_GET['itm'], 1);
|
||||||
@ -50,244 +37,43 @@ if($u->room['file']=='ab/hram')
|
|||||||
$resz = 'Íåäîñòàòî÷íî êîìïîíåíòîâ äëÿ ïðåîáðàçîâàíèÿ.';
|
$resz = 'Íåäîñòàòî÷íî êîìïîíåíòîâ äëÿ ïðåîáðàçîâàíèÿ.';
|
||||||
} elseif ($itm1['level'] != $itm2['level'] || $itm1['level'] != $itm3['level']) {
|
} elseif ($itm1['level'] != $itm2['level'] || $itm1['level'] != $itm3['level']) {
|
||||||
$resz = 'Ðóíû äîëæíû áûòü îäíîãî óðîâíÿ.';
|
$resz = 'Ðóíû äîëæíû áûòü îäíîãî óðîâíÿ.';
|
||||||
}elseif ($itm1['item_id']==10038 || $itm1['item_id']==10039 || $itm1['item_id']==10040 || $itm2['item_id']==10038 || $itm2['item_id']==10039 || $itm2['item_id']==10040 || $itm3['item_id']==10038 || $itm3['item_id']==10039 || $itm3['item_id']==10040)
|
} elseif ($itm1['item_id'] == 10038 || $itm1['item_id'] == 10039 || $itm1['item_id'] == 10040 || $itm2['item_id'] == 10038 || $itm2['item_id'] == 10039 || $itm2['item_id'] == 10040 || $itm3['item_id'] == 10038 || $itm3['item_id'] == 10039 || $itm3['item_id'] == 10040) {
|
||||||
{
|
|
||||||
|
|
||||||
$addpar=0;
|
$newRuneLevel = 0;
|
||||||
if ($itm1['item_id']==10038 && $itm2['item_id']==10038 && $itm3['item_id']==10038 && $u->rep['rep1']>100)
|
$newitm = 0;
|
||||||
{
|
if ($itm1['item_id'] == 10038 && $itm2['item_id'] == 10038 && $itm3['item_id'] == 10038 && $u->rep['rep1'] > 100) {
|
||||||
$addpar=2;
|
|
||||||
$newitm = 6001;
|
$newitm = 6001;
|
||||||
|
$newRuneLevel = 8;
|
||||||
mysql_query('UPDATE `users_achiv` SET `rp`= `rp`+1 WHERE `id` = "' . $u->info['id'] . '" LIMIT 1');
|
mysql_query('UPDATE `users_achiv` SET `rp`= `rp`+1 WHERE `id` = "' . $u->info['id'] . '" LIMIT 1');
|
||||||
|
|
||||||
}elseif($itm1['item_id']==10039 && $itm2['item_id']==10039 && $itm3['item_id']==10039 && $u->rep['rep1']>1000)
|
} elseif ($itm1['item_id'] == 10039 && $itm2['item_id'] == 10039 && $itm3['item_id'] == 10039 && $u->rep['rep1'] > 1000) {
|
||||||
{
|
|
||||||
$addpar=3;
|
|
||||||
$newitm = 6002;
|
$newitm = 6002;
|
||||||
|
$newRuneLevel = 9;
|
||||||
mysql_query('UPDATE `users_achiv` SET `rn`= `rn`+1 WHERE `id` = "' . $u->info['id'] . '" LIMIT 1');
|
mysql_query('UPDATE `users_achiv` SET `rn`= `rn`+1 WHERE `id` = "' . $u->info['id'] . '" LIMIT 1');
|
||||||
|
|
||||||
}elseif($itm1['item_id']==10040 && $itm2['item_id']==10040 && $itm3['item_id']==10040 && $u->rep['rep1']>10000)
|
} elseif ($itm1['item_id'] == 10040 && $itm2['item_id'] == 10040 && $itm3['item_id'] == 10040 && $u->rep['rep1'] > 10000) {
|
||||||
{
|
|
||||||
$addpar=4;
|
|
||||||
$newitm = 6003;
|
$newitm = 6003;
|
||||||
|
$newRuneLevel = 10;
|
||||||
mysql_query('UPDATE `users_achiv` SET `rb`= `rb`+1 WHERE `id` = "' . $u->info['id'] . '" LIMIT 1');
|
mysql_query('UPDATE `users_achiv` SET `rb`= `rb`+1 WHERE `id` = "' . $u->info['id'] . '" LIMIT 1');
|
||||||
}
|
}
|
||||||
if($addpar>0)
|
|
||||||
{
|
|
||||||
$addparlvl=($addpar-2)*2;
|
|
||||||
if(rand(1,100)>50)
|
|
||||||
{
|
|
||||||
$nameit="Мощности Дробящего урона";
|
|
||||||
$parit="pa3";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$nameit="Мощности Рубящего урона";
|
|
||||||
$parit="pa2";
|
|
||||||
}
|
|
||||||
$statsadd = array(
|
|
||||||
//Сила
|
|
||||||
array(
|
|
||||||
array("Сила","s1",1+$addparlvl,6+$addparlvl),
|
|
||||||
array($nameit,$parit,1+$addparlvl,7+$addparlvl),
|
|
||||||
array("Мф. Парирования","m7",1,3),
|
|
||||||
array("Мф. Против Мощности крита","antm3",1,3),
|
|
||||||
),
|
|
||||||
|
|
||||||
//Ловка
|
$newRune = \Insallah\Runes::get($newRuneLevel);
|
||||||
array(
|
if (!empty($newRune)) {
|
||||||
array("Ловкость","s2",1+$addparlvl,6+$addparlvl),
|
$u->addItem($newitm, $u->info['id'], $newRune[0] . '|sudba=' . $u->info['login']);
|
||||||
array("Мощности Колющего урона","pa1",1+$addparlvl,7+$addparlvl),
|
$resz = 'Õàðàêòåðèñòèêè Ðóíû: ' . $newRune[1];
|
||||||
array("МФ. Контрудара","m6",1,3),
|
|
||||||
array("Мф. Против Мощности крита","antm3",1,3),
|
|
||||||
),
|
|
||||||
//Инта
|
|
||||||
array(
|
|
||||||
array("Интуиция","s3",1+$addparlvl,6+$addparlvl),
|
|
||||||
array("Мощности Режущего урона","pa4",1+$addparlvl,7+$addparlvl),
|
|
||||||
array("Мф. Мощи Крита","m3",1,3),
|
|
||||||
array("Мф. Крит Удара","m1",10,15),
|
|
||||||
),
|
|
||||||
//Интелект
|
|
||||||
array(
|
|
||||||
array("Интеллект","s5",1+$addparlvl,6+$addparlvl),
|
|
||||||
array("Мощности Магии стихии","m11",1+$addparlvl,10+$addparlvl),
|
|
||||||
array("Подавление защиты от маги","pzm",1,1),
|
|
||||||
array("MP","mpAll",7+$addparlvl,40+$addparlvl),
|
|
||||||
),
|
|
||||||
//доп параметры
|
|
||||||
array(
|
|
||||||
array("Защита от урона","za",1,5),
|
|
||||||
array("Защита от магии","zma",1,5),
|
|
||||||
array("МФ. Против Крит Удара","m2",10,15),
|
|
||||||
array("HP","hpAll",1,10)
|
|
||||||
)
|
|
||||||
/* 10 уровень руны
|
|
||||||
//Танк
|
|
||||||
array(
|
|
||||||
array("Сила","s1",1,3),
|
|
||||||
array("Мощности Дробящего урона","pa3",1,7),
|
|
||||||
array("Защита от Урона","za",10,20),
|
|
||||||
array(Один из случайных дополнительных параметров : "hpAll" - от 5 до 15 "m2" - от 5 до 15 "m5" - от 5 до 10.),
|
|
||||||
),
|
|
||||||
|
|
||||||
//Уворот
|
|
||||||
array(
|
|
||||||
array("Ловкость","s2",1,3),
|
|
||||||
array("Мощности Колющего урона","pa1",1,7),
|
|
||||||
array("ПМК","antm3",1,3),
|
|
||||||
array(Один из случайных дополнительных параметров : "hpAll" - от 5 до 15 "m2" - от 5 до 15 "m5" - от 5 до 10.),
|
|
||||||
),
|
|
||||||
//Крит
|
|
||||||
array(
|
|
||||||
array("Интуиция","s3",1,3),
|
|
||||||
array("Мощности Режущего урона","pa4",1,7),
|
|
||||||
array("МК","m3",1,3),
|
|
||||||
array(Один из случайных дополнительных параметров : "hpAll" - от 5 до 15 "m2" - от 5 до 15 "m5" - от 5 до 10.),
|
|
||||||
),
|
|
||||||
//Критоуворот
|
|
||||||
array(
|
|
||||||
array("Ловкость","s2",1,3),
|
|
||||||
array("Мощности Колющего урона","pa1",1,7),
|
|
||||||
array("МК","m3",1,3),
|
|
||||||
array(Один из случайных дополнительных параметров : "hpAll" - от 5 до 15 "m2" - от 5 до 15 "m5" - от 5 до 10.),
|
|
||||||
//Маг
|
|
||||||
array(
|
|
||||||
array("Интеллект","s5",1,3),
|
|
||||||
array("Мощности Магии стихии","m11",1,7),
|
|
||||||
array("Подавление защиты от маги","pzm",1,1),
|
|
||||||
array("MP","mpAll",10,20),
|
|
||||||
),
|
|
||||||
//Топор
|
|
||||||
array(
|
|
||||||
array("Сила","s1",1,3),
|
|
||||||
array("Мощности Рубящего урона","pa2",1,7),
|
|
||||||
array("ПМК","antm3",1,3),
|
|
||||||
array(Один из случайных дополнительных параметров : "hpAll" - от 5 до 15 "m2" - от 5 до 15 "m5" - от 5 до 10.),
|
|
||||||
)
|
|
||||||
9 уровень руны
|
|
||||||
//Танк
|
|
||||||
array(
|
|
||||||
array("Сила","s1",1,3),
|
|
||||||
array("Мощности Дробящего урона","pa3",1,5),
|
|
||||||
array(Один из случайных дополнительных параметров : "hpAll" - от 5 до 15 "m2" - от 5 до 15 "m5" - от 5 до 10.),
|
|
||||||
),
|
|
||||||
|
|
||||||
//Уворот
|
|
||||||
array(
|
|
||||||
array("Ловкость","s2",1,3),
|
|
||||||
array("Мощности Колющего урона","pa1",1,5),
|
|
||||||
array(Один из случайных дополнительных параметров : "hpAll" - от 5 до 15 "m2" - от 5 до 15 "m5" - от 5 до 10.),
|
|
||||||
),
|
|
||||||
//Крит
|
|
||||||
array(
|
|
||||||
array("Интуиция","s3",1,3),
|
|
||||||
array("Мощности Режущего урона","pa4",1,5),
|
|
||||||
array(Один из случайных дополнительных параметров : "hpAll" - от 5 до 15 "m2" - от 5 до 15 "m5" - от 5 до 10.),
|
|
||||||
),
|
|
||||||
//Критоуворот
|
|
||||||
array(
|
|
||||||
array("Ловкость","s2",1,3),
|
|
||||||
array("Мощности Колющего урона","pa1",1,5),
|
|
||||||
array(Один из случайных дополнительных параметров : "hpAll" - от 5 до 15 "m2" - от 5 до 15 "m5" - от 5 до 10.),
|
|
||||||
//Маг
|
|
||||||
array(
|
|
||||||
array("Интеллект","s5",1,3),
|
|
||||||
array("Мощности Магии стихии","m11",1,5),
|
|
||||||
array("MP","mpAll",10,20),
|
|
||||||
),
|
|
||||||
//Топор
|
|
||||||
array(
|
|
||||||
array("Сила","s1",1,3),
|
|
||||||
array("Мощности Рубящего урона","pa2",1,5),
|
|
||||||
array(Один из случайных дополнительных параметров : "hpAll" - от 5 до 15 "m2" - от 5 до 15 "m5" - от 5 до 10.),
|
|
||||||
)
|
|
||||||
Руны 8 лвл
|
|
||||||
//Танк
|
|
||||||
array(
|
|
||||||
array("Сила","s1",1,3),
|
|
||||||
array("Мощности Дробящего урона","pa3",1,3),
|
|
||||||
),
|
|
||||||
|
|
||||||
//Уворот
|
|
||||||
array(
|
|
||||||
array("Ловкость","s2",1,3),
|
|
||||||
array("Мощности Колющего урона","pa1",1,3),
|
|
||||||
),
|
|
||||||
//Крит
|
|
||||||
array(
|
|
||||||
array("Интуиция","s3",1,3),
|
|
||||||
array("Мощности Режущего урона","pa4",1,3),
|
|
||||||
),
|
|
||||||
//Критоуворот
|
|
||||||
array(
|
|
||||||
array("Ловкость","s2",1,3),
|
|
||||||
array("Мощности Колющего урона","pa1",1,3),
|
|
||||||
//Маг
|
|
||||||
array(
|
|
||||||
array("Интеллект","s5",1,3),
|
|
||||||
array("Мощности Магии стихии","m11",1,3),
|
|
||||||
),
|
|
||||||
//Топор
|
|
||||||
array(
|
|
||||||
array("Сила","s1",1,3),
|
|
||||||
array("Мощности Рубящего урона","pa2",1,3),
|
|
||||||
)
|
|
||||||
*/
|
|
||||||
);
|
|
||||||
$newdata='';
|
|
||||||
$newdatan='Руны: ';
|
|
||||||
$runset=rand(0,3);
|
|
||||||
$ii=0;
|
|
||||||
while ($addpar>0)
|
|
||||||
{
|
|
||||||
if ($ii<3)
|
|
||||||
{
|
|
||||||
if ($ii<2)
|
|
||||||
{
|
|
||||||
$rnd=rand($statsadd[$runset][$ii][2],$statsadd[$runset][$ii][3]);
|
|
||||||
$newdata.='|add_'.$statsadd[$runset][$ii][1].'='.$rnd;
|
|
||||||
$newdatan.=' /'.$statsadd[$runset][$ii][0].' +'.$rnd;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ($newitm==6003 && $runset==3) // сет 3 магический если это идел рун то всегда подава.
|
|
||||||
{$iii=2;} else {$iii=rand(2,3);}
|
|
||||||
$rnd=rand($statsadd[$runset][$iii][2],$statsadd[$runset][$iii][3]);
|
|
||||||
$newdata.='|add_'.$statsadd[$runset][$iii][1].'='.$rnd;
|
|
||||||
$newdatan.=' /'.$statsadd[$runset][$iii][0].' +'.$rnd;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$iii=rand(0,3);
|
|
||||||
$rnd=rand($statsadd[4][$iii][2],$statsadd[4][$iii][3]);
|
|
||||||
$newdata.='|add_'.$statsadd[4][$iii][1].'='.$rnd;
|
|
||||||
$newdatan.=' /'.$statsadd[4][$iii][0].' +'.$rnd;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$addpar--;
|
|
||||||
$ii++;
|
|
||||||
}
|
|
||||||
$u->addItem($newitm,$u->info['id'],$newdata.'|sudba='.$u->info['login']);
|
|
||||||
$resz = 'Характеристики '.$newdatan;
|
|
||||||
mysql_query('UPDATE `items_users` SET `delete` = "' . time() . '" WHERE `id` = "' . $itm3['iid'] . '" OR `id` = "' . $itm2['iid'] . '" OR `id` = "' . $itm1['iid'] . '"');
|
mysql_query('UPDATE `items_users` SET `delete` = "' . time() . '" WHERE `id` = "' . $itm3['iid'] . '" OR `id` = "' . $itm2['iid'] . '" OR `id` = "' . $itm1['iid'] . '"');
|
||||||
if (date('w') == 0 || date('w') == 6 || date('w') == 2) {
|
if (date('w') == 0 || date('w') == 6 || date('w') == 2) {
|
||||||
$u->repexp_add($u->info['id'], 10); //Ðåïóòàöèÿ ïëàâêà ðóí +10
|
$u->repexp_add($u->info['id'], 10); //Ðåïóòàöèÿ ïëàâêà ðóí +10
|
||||||
}
|
}
|
||||||
unset($addpar,$statsadd,$newdata,$newdatan,$rnd,$runset,$ii,$iii);
|
|
||||||
}
|
}
|
||||||
else
|
} else {
|
||||||
{
|
|
||||||
$resz = 'Çàãîòîâêè äîëæíû áûòü îäíîãî óðîâíÿ èëè ó âàñ íåäîñòàòî÷åí óðîâåíü ïðîêà÷êè õðàìà çíàíèé!';
|
$resz = 'Çàãîòîâêè äîëæíû áûòü îäíîãî óðîâíÿ èëè ó âàñ íåäîñòàòî÷åí óðîâåíü ïðîêà÷êè õðàìà çíàíèé!';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} elseif ($itm1['level'] == 1) {
|
} elseif ($itm1['level'] == 1) {
|
||||||
//$resz = 'Óíèðóíû íåëüçÿ ïðåîáðàçîâûâàòü';
|
//$resz = 'Óíèðóíû íåëüçÿ ïðåîáðàçîâûâàòü';
|
||||||
$itm4 = array();
|
$itm4 = [];
|
||||||
$sp = mysql_query('SELECT * FROM `items_main` WHERE `level` = "' . $itm1['level'] . '" AND `type` = 31
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `level` = "' . $itm1['level'] . '" AND `type` = 31
|
||||||
AND `id` != "' . $itm1['item_id'] . '" AND `id` != "' . $itm2['item_id'] . '" AND `id` != "' . $itm3['item_id'] . '" AND `id` < 6000');
|
AND `id` != "' . $itm1['item_id'] . '" AND `id` != "' . $itm2['item_id'] . '" AND `id` != "' . $itm3['item_id'] . '" AND `id` < 6000');
|
||||||
while ($pl = mysql_fetch_array($sp)) {
|
while ($pl = mysql_fetch_array($sp)) {
|
||||||
@ -301,7 +87,7 @@ if($u->room['file']=='ab/hram')
|
|||||||
$resz = 'Óäà÷íî ïðåîáðàçîâàíû ðóíû "' . $itm1['name'] . '","' . $itm2['name'] . '" è "' . $itm3['name'] . '" â "' . $itm4['name'] . '".';
|
$resz = 'Óäà÷íî ïðåîáðàçîâàíû ðóíû "' . $itm1['name'] . '","' . $itm2['name'] . '" è "' . $itm3['name'] . '" â "' . $itm4['name'] . '".';
|
||||||
//$resz .= '<Br>Äîáàâëåíà ðåïóòàöèÿ Õðàìà Çíàíèé +10';
|
//$resz .= '<Br>Äîáàâëåíà ðåïóòàöèÿ Õðàìà Çíàíèé +10';
|
||||||
} else {
|
} else {
|
||||||
$itm4 = array();
|
$itm4 = [];
|
||||||
$sp = mysql_query('SELECT * FROM `items_main` WHERE `level` = "' . $itm1['level'] . '" AND `type` = 31
|
$sp = mysql_query('SELECT * FROM `items_main` WHERE `level` = "' . $itm1['level'] . '" AND `type` = 31
|
||||||
AND `id` != "' . $itm1['item_id'] . '" AND `id` != "' . $itm2['item_id'] . '" AND `id` != "' . $itm3['item_id'] . '"');
|
AND `id` != "' . $itm1['item_id'] . '" AND `id` != "' . $itm2['item_id'] . '" AND `id` != "' . $itm3['item_id'] . '"');
|
||||||
while ($pl = mysql_fetch_array($sp)) {
|
while ($pl = mysql_fetch_array($sp)) {
|
||||||
@ -320,27 +106,35 @@ if($u->room['file']=='ab/hram')
|
|||||||
unset($resz);
|
unset($resz);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
|
|
||||||
.pH3 { COLOR: #8f0000; FONT-FAMILY: Arial; FONT-SIZE: 12pt; FONT-WEIGHT: bold; }
|
.pH3 {
|
||||||
|
COLOR: #8f0000;
|
||||||
|
FONT-FAMILY: Arial;
|
||||||
|
FONT-SIZE: 12pt;
|
||||||
|
FONT-WEIGHT: bold;
|
||||||
|
}
|
||||||
|
|
||||||
.class_ {
|
.class_ {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #C5C5C5;
|
color: #C5C5C5;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.class_st {
|
.class_st {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #659BA3;
|
color: #659BA3;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.class__ {
|
.class__ {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: #659BA3;
|
background-color: #659BA3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.class__st {
|
.class__st {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
@ -348,11 +142,13 @@ if($u->room['file']=='ab/hram')
|
|||||||
background-color: #659BA3;
|
background-color: #659BA3;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.class_old {
|
.class_old {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #919191;
|
color: #919191;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.class__old {
|
.class__old {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
@ -365,35 +161,62 @@ if($u->room['file']=='ab/hram')
|
|||||||
<div id="hint3" style="visibility:hidden"></div>
|
<div id="hint3" style="visibility:hidden"></div>
|
||||||
<? if (isset($_GET['r'])) { ?>
|
<? if (isset($_GET['r'])) { ?>
|
||||||
<TABLE width="100%" cellspacing="0" cellpadding="0">
|
<TABLE width="100%" cellspacing="0" cellpadding="0">
|
||||||
<tr><td valign="top">
|
<tr>
|
||||||
<div align="center" class="pH3">Храм Знаний <? if($_GET['r']==2){ echo ', Алтарь рун'; }elseif($_GET['r']==1){ echo ', Алтарь предметов'; } ?></div>
|
<td valign="top">
|
||||||
<div align="left"><? if($re!=''){ echo '<font color="red"><b>'.$re.'</b></font>'; } ?></div>
|
<div align="center" class="pH3">Õðàì Çíàíèé <? if ($_GET['r'] == 2) {
|
||||||
<td width="280" valign="top" align="right"><table align="right" cellpadding="0" cellspacing="0">
|
echo ', Àëòàðü ðóí';
|
||||||
|
} elseif ($_GET['r'] == 1) {
|
||||||
|
echo ', Àëòàðü ïðåäìåòîâ';
|
||||||
|
} ?></div>
|
||||||
|
<div align="left"><? if ($re != '') {
|
||||||
|
echo '<font color="red"><b>' . $re . '</b></font>';
|
||||||
|
} ?></div>
|
||||||
|
<td width="280" valign="top" align="right">
|
||||||
|
<table align="right" cellpadding="0" cellspacing="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td width="100%"> </td>
|
<td width="100%"> </td>
|
||||||
<td><table border="0" cellpadding="0" cellspacing="0">
|
<td>
|
||||||
|
<table border="0" cellpadding="0" cellspacing="0">
|
||||||
<tr align="right" valign="top">
|
<tr align="right" valign="top">
|
||||||
<td><!-- -->
|
<td><!-- -->
|
||||||
<? echo $goLis; ?>
|
<? echo $goLis; ?>
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<table border="0" cellspacing="0" cellpadding="0">
|
<table border="0" cellspacing="0" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td nowrap="nowrap"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DEDEDE">
|
<td nowrap="nowrap">
|
||||||
|
<table width="100%" border="0" cellpadding="0" cellspacing="1"
|
||||||
|
bgcolor="#DEDEDE">
|
||||||
<tr>
|
<tr>
|
||||||
<td bgcolor="#D3D3D3"><img src="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
|
<td bgcolor="#D3D3D3"><img
|
||||||
<td bgcolor="#D3D3D3" nowrap="nowrap"><a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=3.180.0.267&rnd=<? echo $code; ?>';" title="<? thisInfRm('3.180.0.267',1); ?>">Центральная площадь</a></td>
|
src="https://img.new-combats.com/i/move/links.gif"
|
||||||
|
width="9" height="7"/></td>
|
||||||
|
<td bgcolor="#D3D3D3" nowrap="nowrap"><a href="#"
|
||||||
|
id="greyText"
|
||||||
|
class="menutop"
|
||||||
|
onclick="location='main.php?loc=3.180.0.267&rnd=<? echo $code; ?>';"
|
||||||
|
title="<? thisInfRm('3.180.0.267', 1); ?>">Öåíòðàëüíàÿ
|
||||||
|
ïëîùàäü</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table></td>
|
</table>
|
||||||
</tr> <tr>
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
<td nowrap="nowrap"> </td>
|
<td nowrap="nowrap"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
</table></td>
|
</table>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table></td>
|
</table>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
<input type="button" class="btn" value="Обновить" onclick="location.href = '<? if(isset($_GET['r'])) { echo 'main.php?r='.floor($_GET['r']); }else{ echo 'main.php'; } ?>';" /><? if(isset($_GET['r'])){ ?> <input class="btn" type="button" value="Вернуться" onclick="location.href = 'main.php';" /><? } ?><br><br>
|
<input type="button" class="btn" value="Îáíîâèòü" onclick="location.href = '<? if (isset($_GET['r'])) {
|
||||||
|
echo 'main.php?r=' . floor($_GET['r']);
|
||||||
|
} else {
|
||||||
|
echo 'main.php';
|
||||||
|
} ?>';"/><? if (isset($_GET['r'])) { ?> <input class="btn" type="button" value="Âåðíóòüñÿ"
|
||||||
|
onclick="location.href = 'main.php';"/><? } ?><br><br>
|
||||||
</td>
|
</td>
|
||||||
</table>
|
</table>
|
||||||
<div id="textgo" style="visibility:hidden;"></div>
|
<div id="textgo" style="visibility:hidden;"></div>
|
||||||
@ -404,20 +227,37 @@ if($u->room['file']=='ab/hram')
|
|||||||
?>
|
?>
|
||||||
<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"><? $usee = $u->getInfoPers($u->info['id'],0); if($usee!=false){ echo $usee[0]; }else{ echo 'information is lost.'; } ?></td>
|
<td width="250" valign="top"><? $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;"><? include ('modules_data/stats_loc.php'); ?></td>
|
<td width="230" valign="top" style="padding-top:19px;"><? include ('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">
|
<table border="0" cellpadding="0" cellspacing="0">
|
||||||
<tr align="right" valign="top">
|
<tr align="right" valign="top">
|
||||||
<td><? if($re!=''){ echo '<font color="red"><b>'.$re.'</b></font>'; } ?>
|
<td><? if ($re != '') {
|
||||||
|
echo '<font color="red"><b>' . $re . '</b></font>';
|
||||||
|
} ?>
|
||||||
<table width="500" border="0" cellspacing="0" cellpadding="0">
|
<table width="500" border="0" cellspacing="0" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
<td><div style="position:relative; cursor: pointer;" id="ione"> <img src="https://img.new-combats.com/city/ap_bg13_1.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;"> <span onmousemove="this.runtimeStyle.color = 'white';" onmouseout="this.runtimeStyle.color = this.parentElement.style.color;" onclick="window.open('https://new-combats.com/forum', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')">Форум</span> </div>
|
<div style="position:relative; cursor: pointer;" id="ione"><img
|
||||||
|
src="https://img.new-combats.com/city/ap_bg13_1.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;">
|
||||||
|
<span onmousemove="this.runtimeStyle.color = 'white';"
|
||||||
|
onmouseout="this.runtimeStyle.color = this.parentElement.style.color;"
|
||||||
|
onclick="window.open('https://new-combats.com/forum', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')">Ôîðóì</span>
|
||||||
|
|
||||||
|
</div>
|
||||||
<script language="javascript" type="text/javascript">
|
<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('ione').appendChild(document.getElementById('buttons_on_image'));
|
||||||
document.getElementById('buttons_on_image').style.position = 'absolute';
|
document.getElementById('buttons_on_image').style.position = 'absolute';
|
||||||
document.getElementById('buttons_on_image').style.bottom = '8px';
|
document.getElementById('buttons_on_image').style.bottom = '8px';
|
||||||
@ -427,27 +267,56 @@ if($u->room['file']=='ab/hram')
|
|||||||
}
|
}
|
||||||
-->
|
-->
|
||||||
</script>
|
</script>
|
||||||
<div style="position: absolute; left: 437px; top: 96px; width: 48px; height: 33px; z-index: 94;"><img <? thisInfRm('1.180.0.323'); ?> src="https://img.new-combats.com/city/ap_exit.gif" width="57" height="26" class="aFilter" /></div>
|
<div style="position: absolute; left: 437px; top: 96px; width: 48px; height: 33px; z-index: 94;">
|
||||||
<div style="position: absolute; left: 191px; top: 12px; width: 75px; height: 68px; z-index: 94;"><img onclick="location.href='main.php?talk=11'" src="https://img.new-combats.com/city/1269_igsetee.png" width="120" height="220" class="aFilter" title="Диалог с Арквиерро" /></div>
|
<img <? thisInfRm('1.180.0.323'); ?>
|
||||||
<div style="position: absolute; left: 30px; top: 127px; width: 48px; height: 33px; z-index: 94;"><img <? if($qst_hram==false){ echo 'onclick="alert(\'Арквиерро: Вы не допущены к котлам! (Выполните задание)\');"'; }else{ ?> onclick="location.href='main.php?r=1'" <? } ?> title="Алтарь Предметов" src="https://img.new-combats.com/city/ap_altar1.gif" width="147" height="93" class="aFilter" /></div>
|
src="https://img.new-combats.com/city/ap_exit.gif"
|
||||||
<div style="position: absolute; left: 333px; top: 129px; width: 48px; height: 33px; z-index: 94;"><img <? if($qst_hram==false){ echo 'onclick="alert(\'Арквиерро: Вы не допущены к котлам! (Выполните задание)\');"'; }else{ ?> onclick="location.href='main.php?r=2'" <? } ?> title="Алтарь Рун" src="https://img.new-combats.com/city/ap_altar2.gif" width="147" height="93" class="aFilter" /></div>
|
width="57" height="26" class="aFilter"/></div>
|
||||||
<div style="position: absolute; left: 437px; top: 96px; width: 48px; height: 33px; z-index: 94;"><img <? thisInfRm('3.180.0.267'); ?> src="https://img.new-combats.com/city/ap_exit.gif" width="57" height="26" class="aFilter" /></div>
|
<div style="position: absolute; left: 191px; top: 12px; width: 75px; height: 68px; z-index: 94;">
|
||||||
|
<img onclick="location.href='main.php?talk=11'"
|
||||||
|
src="https://img.new-combats.com/city/1269_igsetee.png"
|
||||||
|
width="120" height="220" class="aFilter"
|
||||||
|
title="Äèàëîã ñ Àðêâèåððî"/></div>
|
||||||
|
<div style="position: absolute; left: 30px; top: 127px; width: 48px; height: 33px; z-index: 94;">
|
||||||
|
<img <? if ($qst_hram == false) {
|
||||||
|
echo 'onclick="alert(\'Àðêâèåððî: Âû íå äîïóùåíû ê êîòëàì! (Âûïîëíèòå çàäàíèå)\');"';
|
||||||
|
} else { ?> onclick="location.href='main.php?r=1'" <? } ?>
|
||||||
|
title="Àëòàðü Ïðåäìåòîâ"
|
||||||
|
src="https://img.new-combats.com/city/ap_altar1.gif"
|
||||||
|
width="147" height="93" class="aFilter"/></div>
|
||||||
|
<div style="position: absolute; left: 333px; top: 129px; width: 48px; height: 33px; z-index: 94;">
|
||||||
|
<img <? if ($qst_hram == false) {
|
||||||
|
echo 'onclick="alert(\'Àðêâèåððî: Âû íå äîïóùåíû ê êîòëàì! (Âûïîëíèòå çàäàíèå)\');"';
|
||||||
|
} else { ?> onclick="location.href='main.php?r=2'" <? } ?>
|
||||||
|
title="Àëòàðü Ðóí"
|
||||||
|
src="https://img.new-combats.com/city/ap_altar2.gif"
|
||||||
|
width="147" height="93" class="aFilter"/></div>
|
||||||
|
<div style="position: absolute; left: 437px; top: 96px; width: 48px; height: 33px; z-index: 94;">
|
||||||
|
<img <? thisInfRm('3.180.0.267'); ?>
|
||||||
|
src="https://img.new-combats.com/city/ap_exit.gif"
|
||||||
|
width="57" height="26" class="aFilter"/></div>
|
||||||
|
|
||||||
|
|
||||||
<div id="snow"></div>
|
<div id="snow"></div>
|
||||||
<? echo $goline; ?> </div></td>
|
<? echo $goline; ?> </div>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<div style="display:none; height:0px " id="moveto"></div>
|
<div style="display:none; height:0px " id="moveto"></div>
|
||||||
<INPUT class="btn" onclick="window.open('/forum?read=974&rnd=1', 'help', 'height=500,width=1024,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')" value="Подсказка для новичков" style="color:red;" type="button">
|
<INPUT class="btn"
|
||||||
</small></div></td>
|
onclick="window.open('/forum?read=974&rnd=1', 'help', 'height=500,width=1024,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')"
|
||||||
|
value="Ïîäñêàçêà äëÿ íîâè÷êîâ" style="color:red;" type="button">
|
||||||
|
</small>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
<td><!-- <br /><span class="menutop"><nobr>Êîìíàòà äëÿ íîâè÷êîâ</nobr></span>--></td>
|
<td><!-- <br /><span class="menutop"><nobr>Êîìíàòà äëÿ íîâè÷êîâ</nobr></span>--></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<small>
|
<small>
|
||||||
<hr/>
|
<hr/>
|
||||||
<br/>
|
<br/>
|
||||||
<strong>Внимание!</strong> Никогда и никому не говорите пароль от своего персонажа. Не вводите пароль на других сайтах, типа "новый город", "лотерея", "там, где все дают на халяву". Пароль не нужен ни паладинам, ни кланам, ни администрации, <U>только взломщикам</U> для кражи вашего героя.<br />
|
<strong>Âíèìàíèå!</strong> Íèêîãäà è íèêîìó íå ãîâîðèòå ïàðîëü îò ñâîåãî ïåðñîíàæà. Íå ââîäèòå ïàðîëü íà äðóãèõ
|
||||||
|
ñàéòàõ, òèïà "íîâûé ãîðîä", "ëîòåðåÿ", "òàì, ãäå âñå äàþò íà õàëÿâó". Ïàðîëü íå
|
||||||
|
íóæåí íè ïàëàäèíàì, íè êëàíàì, íè àäìèíèñòðàöèè, <U>òîëüêî âçëîìùèêàì</U> äëÿ êðàæè âàøåãî ãåðîÿ.<br/>
|
||||||
<em>Àäìèíèñòðàöèÿ.</em></small> <br/>
|
<em>Àäìèíèñòðàöèÿ.</em></small> <br/>
|
||||||
<? echo $rowonmax; ?><br/>
|
<? echo $rowonmax; ?><br/>
|
||||||
</div></td>
|
</div></td>
|
||||||
@ -455,7 +324,8 @@ if($u->room['file']=='ab/hram')
|
|||||||
</table>
|
</table>
|
||||||
<?
|
<?
|
||||||
} elseif ($_GET['r'] == 1) {
|
} elseif ($_GET['r'] == 1) {
|
||||||
$itmAll = ''; $itmAllSee = '';
|
$itmAll = '';
|
||||||
|
$itmAllSee = '';
|
||||||
$itmAll = $u->genInv(11, '`iu`.`uid`="' . $u->info['id'] . '" AND `iu`.`delete` = "0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND `iu`.`data` NOT LIKE "%fromshop=2%" ORDER BY `lastUPD` DESC');
|
$itmAll = $u->genInv(11, '`iu`.`uid`="' . $u->info['id'] . '" AND `iu`.`delete` = "0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND `iu`.`data` NOT LIKE "%fromshop=2%" ORDER BY `lastUPD` DESC');
|
||||||
if ($itmAll[0] == 0) {
|
if ($itmAll[0] == 0) {
|
||||||
$itmAllSee = '<tr><td align="center" bgcolor="#e2e0e0">ÏÓÑÒÎ (íåò ïîäõîäÿùèõ ïðåäìåòîâ)</td></tr>';
|
$itmAllSee = '<tr><td align="center" bgcolor="#e2e0e0">ÏÓÑÒÎ (íåò ïîäõîäÿùèõ ïðåäìåòîâ)</td></tr>';
|
||||||
@ -465,10 +335,8 @@ if($u->room['file']=='ab/hram')
|
|||||||
//Óäà÷íî ðàñòâîðåí ïðåäìåò "Óêðåïëåííûé Êîñòûëü". Ïîëó÷åíà ðóíà "Ìîíî Áàóíè".
|
//Óäà÷íî ðàñòâîðåí ïðåäìåò "Óêðåïëåííûé Êîñòûëü". Ïîëó÷åíà ðóíà "Ìîíî Áàóíè".
|
||||||
?>
|
?>
|
||||||
<script>
|
<script>
|
||||||
function takeItRun(img,id,vl)
|
function takeItRun(img, id, vl) {
|
||||||
{
|
if (id != urlras) {
|
||||||
if(id!=urlras)
|
|
||||||
{
|
|
||||||
urlras = id;
|
urlras = id;
|
||||||
document.getElementById('use_item').innerHTML = '<img src="https://<?=$c['img'];?>/i/items/' + img + '" title="Ïðåäìåò äëÿ ïåðåïëàâêè"/><br><a href="javascript:void(0);" onClick="cancelItRun()">Îòìåíèòü</a>';
|
document.getElementById('use_item').innerHTML = '<img src="https://<?=$c['img'];?>/i/items/' + img + '" title="Ïðåäìåò äëÿ ïåðåïëàâêè"/><br><a href="javascript:void(0);" onClick="cancelItRun()">Îòìåíèòü</a>';
|
||||||
if (vl == 0) {
|
if (vl == 0) {
|
||||||
@ -480,12 +348,13 @@ if($u->room['file']=='ab/hram')
|
|||||||
cancelItRun();
|
cancelItRun();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function cancelItRun()
|
|
||||||
{
|
function cancelItRun() {
|
||||||
urlras = 0;
|
urlras = 0;
|
||||||
document.getElementById('use_item').innerHTML = 'Ïðåäìåò íå âûáðàí';
|
document.getElementById('use_item').innerHTML = 'Ïðåäìåò íå âûáðàí';
|
||||||
document.getElementById('add_rep').innerHTML = '';
|
document.getElementById('add_rep').innerHTML = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
urlras = 0;
|
urlras = 0;
|
||||||
</script>
|
</script>
|
||||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||||
@ -496,8 +365,10 @@ if($u->room['file']=='ab/hram')
|
|||||||
<tr>
|
<tr>
|
||||||
<td width="300" valign="top">
|
<td width="300" valign="top">
|
||||||
<b>Ðåïóòàöèÿ: <? echo 0 + $u->rep['rep1']; ?></b><span id="add_rep"></span>
|
<b>Ðåïóòàöèÿ: <? echo 0 + $u->rep['rep1']; ?></b><span id="add_rep"></span>
|
||||||
<br /><br /><center><span id="use_item">Предмет не выбран</span><br /><br />
|
<br/><br/>
|
||||||
<input class="btn" type="button" value="Растворить" onclick="location = '?r=<?=$_GET['r'].'&rnd='.$code.'&itm=';?>'+urlras;" /></center>
|
<center><span id="use_item">Ïðåäìåò íå âûáðàí</span><br/><br/>
|
||||||
|
<input class="btn" type="button" value="Ðàñòâîðèòü"
|
||||||
|
onclick="location = '?r=<?= $_GET['r'] . '&rnd=' . $code . '&itm='; ?>'+urlras;"/></center>
|
||||||
<br/>
|
<br/>
|
||||||
<br/><small>
|
<br/><small>
|
||||||
<font color="red">Âíèìàíèå!</font><br/>
|
<font color="red">Âíèìàíèå!</font><br/>
|
||||||
@ -506,14 +377,19 @@ if($u->room['file']=='ab/hram')
|
|||||||
<td valign="top">
|
<td valign="top">
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<table width="100%" border="0" cellspacing="1" align="center" cellpadding="0" bgcolor="#A5A5A5">
|
<table width="100%" border="0" cellspacing="1" align="center" cellpadding="0" bgcolor="#A5A5A5">
|
||||||
<? if($u->info['invBlock']==0){ echo $itmAllSee; }else{ echo '<div align="center" style="padding:10px;background-color:#A5A5A5;"><form method="post" action="main.php?inv=1&otdel='.$_GET['otdel'].'&relockinvent"><b>Рюкзак закрыт.</b><br><img title="Замок для рюкзака" src="https://img.new-combats.com/i/items/box_lock.gif"> Введите пароль: <input id="relockInv" name="relockInv" type="password"><input type="submit" value="Открыть"></form></div>'; } ?>
|
<? if ($u->info['invBlock'] == 0) {
|
||||||
|
echo $itmAllSee;
|
||||||
|
} else {
|
||||||
|
echo '<div align="center" style="padding:10px;background-color:#A5A5A5;"><form method="post" action="main.php?inv=1&otdel=' . $_GET['otdel'] . '&relockinvent"><b>Ðþêçàê çàêðûò.</b><br><img title="Çàìîê äëÿ ðþêçàêà" src="https://img.new-combats.com/i/items/box_lock.gif"> Ââåäèòå ïàðîëü: <input id="relockInv" name="relockInv" type="password"><input type="submit" value="Îòêðûòü"></form></div>';
|
||||||
|
} ?>
|
||||||
</table>
|
</table>
|
||||||
<!-- -->
|
<!-- -->
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<? } elseif ($_GET['r'] == 2) {
|
<? } elseif ($_GET['r'] == 2) {
|
||||||
$itmAll = ''; $itmAllSee = '';
|
$itmAll = '';
|
||||||
|
$itmAllSee = '';
|
||||||
$itmAll = $u->genInv(14, '`iu`.`uid`="' . $u->info['id'] . '" AND `iu`.`delete` = "0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND ((`im`.`type` = 31 AND `im`.`id` != 6001 AND `im`.`id` != 6002 AND `im`.`id` != 6003) OR`im`.`type` = 72) ORDER BY `lastUPD` DESC');
|
$itmAll = $u->genInv(14, '`iu`.`uid`="' . $u->info['id'] . '" AND `iu`.`delete` = "0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND ((`im`.`type` = 31 AND `im`.`id` != 6001 AND `im`.`id` != 6002 AND `im`.`id` != 6003) OR`im`.`type` = 72) ORDER BY `lastUPD` DESC');
|
||||||
if ($itmAll[0] == 0) {
|
if ($itmAll[0] == 0) {
|
||||||
$itmAllSee = '<tr><td align="center" bgcolor="#e2e0e0">ÏÓÑÒÎ (íåò ïîäõîäÿùèõ ïðåäìåòîâ)</td></tr>';
|
$itmAllSee = '<tr><td align="center" bgcolor="#e2e0e0">ÏÓÑÒÎ (íåò ïîäõîäÿùèõ ïðåäìåòîâ)</td></tr>';
|
||||||
@ -523,57 +399,57 @@ if($u->room['file']=='ab/hram')
|
|||||||
//Óäà÷íî ðàñòâîðåí ïðåäìåò "Óêðåïëåííûé Êîñòûëü". Ïîëó÷åíà ðóíà "Ìîíî Áàóíè".
|
//Óäà÷íî ðàñòâîðåí ïðåäìåò "Óêðåïëåííûé Êîñòûëü". Ïîëó÷åíà ðóíà "Ìîíî Áàóíè".
|
||||||
?>
|
?>
|
||||||
<script>
|
<script>
|
||||||
function takeItRun(img,id,vl)
|
function takeItRun(img, id, vl) {
|
||||||
{
|
if (id != urlras) {
|
||||||
if(id!=urlras)
|
|
||||||
{
|
|
||||||
urlras = id;
|
urlras = id;
|
||||||
document.getElementById('use_item').innerHTML = '<img src="https://<?=$c['img'];?>/i/items/' + img + '" title="Ïðåäìåò äëÿ ïåðåïëàâêè"/><br><a href="javascript:void(0);" onClick="cancelItRun()">Îòìåíèòü</a>';
|
document.getElementById('use_item').innerHTML = '<img src="https://<?=$c['img'];?>/i/items/' + img + '" title="Ïðåäìåò äëÿ ïåðåïëàâêè"/><br><a href="javascript:void(0);" onClick="cancelItRun()">Îòìåíèòü</a>';
|
||||||
} else {
|
} else {
|
||||||
cancelItRun();
|
cancelItRun();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function cancelItRun()
|
|
||||||
{
|
function cancelItRun() {
|
||||||
urlras = 0;
|
urlras = 0;
|
||||||
document.getElementById('use_item').innerHTML = 'Ïóñòî';
|
document.getElementById('use_item').innerHTML = 'Ïóñòî';
|
||||||
document.getElementById('add_rep').innerHTML = '';
|
document.getElementById('add_rep').innerHTML = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
urlras = 0;
|
urlras = 0;
|
||||||
|
|
||||||
//
|
//
|
||||||
function takeItRun2(img,id,vl)
|
function takeItRun2(img, id, vl) {
|
||||||
{
|
if (id != urlras2) {
|
||||||
if(id!=urlras2)
|
|
||||||
{
|
|
||||||
urlras2 = id;
|
urlras2 = id;
|
||||||
document.getElementById('use_item2').innerHTML = '<img src="https://<?=$c['img'];?>/i/items/' + img + '" title="Ïðåäìåò äëÿ ïåðåïëàâêè"/><br><a href="javascript:void(0);" onClick="cancelItRun2()">Îòìåíèòü</a>';
|
document.getElementById('use_item2').innerHTML = '<img src="https://<?=$c['img'];?>/i/items/' + img + '" title="Ïðåäìåò äëÿ ïåðåïëàâêè"/><br><a href="javascript:void(0);" onClick="cancelItRun2()">Îòìåíèòü</a>';
|
||||||
} else {
|
} else {
|
||||||
cancelItRun2();
|
cancelItRun2();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function cancelItRun2()
|
|
||||||
{
|
function cancelItRun2() {
|
||||||
urlras2 = 0;
|
urlras2 = 0;
|
||||||
document.getElementById('use_item2').innerHTML = 'Ïóñòî';
|
document.getElementById('use_item2').innerHTML = 'Ïóñòî';
|
||||||
}
|
}
|
||||||
|
|
||||||
urlras2 = 0;
|
urlras2 = 0;
|
||||||
|
|
||||||
//
|
//
|
||||||
function takeItRun3(img,id,vl)
|
function takeItRun3(img, id, vl) {
|
||||||
{
|
if (id != urlras3) {
|
||||||
if(id!=urlras3)
|
|
||||||
{
|
|
||||||
urlras3 = id;
|
urlras3 = id;
|
||||||
document.getElementById('use_item3').innerHTML = '<img src="https://<?=$c['img'];?>/i/items/' + img + '" title="Ïðåäìåò äëÿ ïåðåïëàâêè"/><br><a href="javascript:void(0);" onClick="cancelItRun3()">Îòìåíèòü</a>';
|
document.getElementById('use_item3').innerHTML = '<img src="https://<?=$c['img'];?>/i/items/' + img + '" title="Ïðåäìåò äëÿ ïåðåïëàâêè"/><br><a href="javascript:void(0);" onClick="cancelItRun3()">Îòìåíèòü</a>';
|
||||||
} else {
|
} else {
|
||||||
cancelItRun3();
|
cancelItRun3();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function cancelItRun3()
|
|
||||||
{
|
function cancelItRun3() {
|
||||||
urlras3 = 0;
|
urlras3 = 0;
|
||||||
document.getElementById('use_item3').innerHTML = 'Ïóñòî';
|
document.getElementById('use_item3').innerHTML = 'Ïóñòî';
|
||||||
}
|
}
|
||||||
|
|
||||||
urlras3 = 0;
|
urlras3 = 0;
|
||||||
|
|
||||||
//
|
//
|
||||||
function massTakeItRun(img, id, vl) {
|
function massTakeItRun(img, id, vl) {
|
||||||
if (urlras == id) {
|
if (urlras == id) {
|
||||||
@ -599,7 +475,8 @@ if($u->room['file']=='ab/hram')
|
|||||||
<tr>
|
<tr>
|
||||||
<td width="300" valign="top">
|
<td width="300" valign="top">
|
||||||
<b>Ðåïóòàöèÿ: <? echo 0 + $u->rep['rep1']; ?></b><span id="add_rep"></span>
|
<b>Ðåïóòàöèÿ: <? echo 0 + $u->rep['rep1']; ?></b><span id="add_rep"></span>
|
||||||
<br /><br /><center>
|
<br/><br/>
|
||||||
|
<center>
|
||||||
|
|
||||||
<table border="0" cellspacing="0" cellpadding="0">
|
<table border="0" cellspacing="0" cellpadding="0">
|
||||||
<tr>
|
<tr>
|
||||||
@ -610,7 +487,9 @@ if($u->room['file']=='ab/hram')
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
<input class="btn" type="button" value="Преобразовать" onclick="location.href = '?r=<?=$_GET['r'].'&rnd='.$code.'&itm=';?>'+urlras+'x'+urlras2+'x'+urlras3;" /></center>
|
<input class="btn" type="button" value="Ïðåîáðàçîâàòü"
|
||||||
|
onclick="location.href = '?r=<?= $_GET['r'] . '&rnd=' . $code . '&itm='; ?>'+urlras+'x'+urlras2+'x'+urlras3;"/>
|
||||||
|
</center>
|
||||||
<br/>
|
<br/>
|
||||||
<br/><small>
|
<br/><small>
|
||||||
<font color="red">Âíèìàíèå!</font><br/>
|
<font color="red">Âíèìàíèå!</font><br/>
|
||||||
@ -619,11 +498,15 @@ if($u->room['file']=='ab/hram')
|
|||||||
<td valign="top">
|
<td valign="top">
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<table width="100%" border="0" cellspacing="1" align="center" cellpadding="0" bgcolor="#A5A5A5">
|
<table width="100%" border="0" cellspacing="1" align="center" cellpadding="0" bgcolor="#A5A5A5">
|
||||||
<? if($u->info['invBlock']==0){ echo $itmAllSee; }else{ echo '<div align="center" style="padding:10px;background-color:#A5A5A5;"><form method="post" action="main.php?inv=1&otdel='.$_GET['otdel'].'&relockinvent"><b>Рюкзак закрыт.</b><br><img title="Замок для рюкзака" src="https://img.new-combats.com/i/items/box_lock.gif"> Введите пароль: <input id="relockInv" name="relockInv" type="password"><input type="submit" value="Открыть"></form></div>'; } ?>
|
<? if ($u->info['invBlock'] == 0) {
|
||||||
|
echo $itmAllSee;
|
||||||
|
} else {
|
||||||
|
echo '<div align="center" style="padding:10px;background-color:#A5A5A5;"><form method="post" action="main.php?inv=1&otdel=' . $_GET['otdel'] . '&relockinvent"><b>Ðþêçàê çàêðûò.</b><br><img title="Çàìîê äëÿ ðþêçàêà" src="https://img.new-combats.com/i/items/box_lock.gif"> Ââåäèòå ïàðîëü: <input id="relockInv" name="relockInv" type="password"><input type="submit" value="Îòêðûòü"></form></div>';
|
||||||
|
} ?>
|
||||||
</table>
|
</table>
|
||||||
<!-- -->
|
<!-- -->
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<? } } ?>
|
<? } ?>
|
Loading…
Reference in New Issue
Block a user