1134 lines
45 KiB
PHP
1134 lines
45 KiB
PHP
<?php
|
|
if(!defined('GAME'))
|
|
{
|
|
die();
|
|
}
|
|
|
|
if($u->room['file']=='an/remont')
|
|
{
|
|
//Ïðåäìåòû êîòîðûå ìîæíî ïîäîãíàòü (ãîñ)
|
|
$itm_podgon = array(
|
|
784,
|
|
788,
|
|
1714,
|
|
1239,
|
|
1240
|
|
);
|
|
|
|
//Êîìïëåêòû ïîäãîíà
|
|
$com_podgon = array(
|
|
'Êîìïëåêò Ñêîðïèîíà' => true,
|
|
'Êîìïëåêò Çàáûòûõ Âðåìåí' => true,
|
|
'Êîìïëåêò Óòðåííåãî Ñîëíöà' => true,
|
|
'Êîìïëåêò Ïàóêà' => true,
|
|
'Êîìïëåêò Çëîäåÿíèé' => true,
|
|
'Êîìïëåêò Êðîâàâîé Ëóíû' => true
|
|
);
|
|
|
|
$r = 1;
|
|
if(isset($_GET['r']))
|
|
{
|
|
$r = (int)$_GET['r'];
|
|
if($r!=1 && $r!=2 && $r!=3 && $r!=4 && $r!=5 && $r!=6 && $r!=7 && $r!=8 && $r!=9)
|
|
{
|
|
$r = 1;
|
|
}
|
|
if( $r == 6 || $r == 7 || $r == 4 || $r == 3 ) {
|
|
$r = 1;
|
|
}
|
|
}
|
|
|
|
if(isset($_GET['upgrade']) && true == false) {
|
|
//óëó÷øåíèå ïðåäìåòà
|
|
$ir = mysql_fetch_array(mysql_query('SELECT `im`.*,`iu`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`item_id`) WHERE `iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND `iu`.`data` LIKE "%modif%" AND `iu`.`data` NOT LIKE "%upgrade=5%" AND `iu`.`id` = "'.mysql_real_escape_string((int)$_GET['upgrade']).'" LIMIT 1'));
|
|
if(isset($ir['id'])) {
|
|
$po = array();
|
|
$po = $u->lookStats($ir['data']);
|
|
if($ir['price1']>$ir['1price']) {
|
|
$ir['1price'] = $ir['price1'];
|
|
}
|
|
$pcena = $ir['1price']/2.37;
|
|
|
|
if($ir['price2']>$ir['2price']) {
|
|
$ir['2price'] = $ir['price2'];
|
|
}
|
|
$pcena2 = ($ir['2price']/2.37)*30;
|
|
if($pcena2 > $pcena) {
|
|
$pcena = $pcena2;
|
|
}
|
|
if(!isset($po['add_s1']) && !isset($po['add_s2']) && !isset($po['add_s3']) && !isset($po['add_s5'])) {
|
|
$pcena = $pcena/2.37;
|
|
}
|
|
$pcena = round($pcena+$pcena/100*(37.795*($po['upgrade']+1)));
|
|
if($pcena == 0) {
|
|
$re = '<div align="left">Äàííûé ïðåäìåò íå ïîäõîäèò...</div>';
|
|
}elseif($pcena <= $u->info['money']) {
|
|
if($po['upgrade'] < 5) {
|
|
$fadd = array(0,0,0,0);
|
|
$faddp = 0;
|
|
if(!isset($po['upgrade']) || $po['upgrade']==0) {
|
|
$ir['1price'] += floor($ir['1price']/100*20);
|
|
$faddp = 6;
|
|
}elseif($po['upgrade'] == 1) {
|
|
$ir['1price'] += floor($ir['1price']/100*30);
|
|
$faddp = 7;
|
|
}elseif($po['upgrade'] == 2) {
|
|
$ir['1price'] += floor($ir['1price']/100*40);
|
|
$faddp = 8;
|
|
}elseif($po['upgrade'] == 3) {
|
|
$ir['1price'] += floor($ir['1price']/100*70);
|
|
$faddp = 10;
|
|
}elseif($po['upgrade'] == 4) {
|
|
$ir['1price'] += floor($ir['1price']/100*10);
|
|
$faddp = 16;
|
|
}
|
|
|
|
$fadd[0] = $po['add_s1']+$po['add_s2']+$po['add_s3']+$po['add_s5']+$po['mf_stats'];
|
|
$fadd[1] = $po['add_m1']+$po['add_m2']+$po['add_m4']+$po['add_m5']+$po['mf_mod'];
|
|
$fadd[2] = round(($po['add_mab1']+$po['add_mab2']+$po['add_mab3']+$po['add_mab4'])/4+$po['mf_mib']);
|
|
$fadd[3] = $po['add_hpAll'];
|
|
|
|
if($po['upgrade'] <= 3) {
|
|
$fadd = array(
|
|
round($fadd[0]/100*$faddp), //ñòàòû
|
|
floor($fadd[1]/100*$faddp), //ìô.
|
|
floor($fadd[2]/100*$faddp), //áðîíÿ
|
|
ceil($fadd[3]/100*$faddp) //ÍÐ
|
|
);
|
|
}else{
|
|
$fadd = array(
|
|
ceil($fadd[0]/100*$faddp), //ñòàòû
|
|
ceil($fadd[1]/100*$faddp), //ìô.
|
|
ceil($fadd[2]/100*$faddp), //áðîíÿ
|
|
ceil($fadd[3]/100*$faddp) //ÍÐ
|
|
);
|
|
}
|
|
|
|
$po['mf_stats'] += $fadd[0];
|
|
$po['mf_mod'] += $fadd[1];
|
|
$po['mf_mib'] += $fadd[2];
|
|
$po['add_hpAll'] += $fadd[3];
|
|
|
|
$po['upgrade']++;
|
|
$re = '<div align="left">Ïðåäìåò "'.$ir['name'].'" áûë óñïåøíî óëó÷øåí ('.$po['upgrade'].'/5) çà '.$pcena.' êð.</div>';
|
|
|
|
$u->addDelo(2,$u->info['id'],'"<font color="#4863A0">System.remont.itemUpgrade</font>": Ïðåäìåò "'.$ir['name'].'" [itm:'.$ir['id'].'] áûë óñïåøíî óëó÷øåí ('.$po['upgrade'].'/5) çà '.$pcena.' êð..',time(),$u->info['city'],'System.remont.itemUpgrade',0,0);
|
|
|
|
$po = $u->impStats($po);
|
|
mysql_query('UPDATE `items_users` SET `data` = "'.$po.'",`1price` = "'.$ir['1price'].'" WHERE `id` = "'.$ir['id'].'" LIMIT 1');
|
|
mysql_query('UPDATE `users` SET `money` = `money` - "'.$pcena.'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|
$u->info['money'] -= $pcena;
|
|
|
|
}else{
|
|
$re = '<div align="left">Ïðåäìåò óëó÷øåí äî ìàêñèìóìà</div>';
|
|
}
|
|
}else{
|
|
$re = '<div align="left">Ó âàñ íå äîñòàòî÷íî ñðåäñòâ äëÿ ìîäèôèêàöèè ïðåäìåòà</div>';
|
|
}
|
|
}else{
|
|
$re = '<div align="left">Ïîäõîäÿùèé ïðåäìåò íå íàéäåí â èíâåíòàðå</div>';
|
|
}
|
|
}elseif(isset($_GET['modif']) && true == false) {
|
|
//ìîäèôèêàöèÿ
|
|
$ir = mysql_fetch_array(mysql_query('SELECT `im`.*,`iu`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`item_id`) WHERE `iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND
|
|
`iu`.`data` NOT LIKE "%modif%" AND `im`.`type` > 0 AND `im`.`type` < 16 AND (`iu`.`data` LIKE "%add_s1%" OR `iu`.`data` LIKE "%add_s2%" OR `iu`.`data` LIKE "%add_s3%" OR `iu`.`data` LIKE "%add_s5%" OR `iu`.`data` LIKE "%add_hpAll%" OR `iu`.`data` LIKE "%add_mib%")
|
|
AND `iu`.`id` = "'.mysql_real_escape_string((int)$_GET['modif']).'" LIMIT 1'));
|
|
if(isset($ir['id'])) {
|
|
$po = array();
|
|
$po = $u->lookStats($ir['data']);
|
|
if($ir['price1']>$ir['1price']) {
|
|
$ir['1price'] = $ir['price1'];
|
|
}
|
|
$pcena = $ir['1price']/2;
|
|
|
|
if($ir['price2']>$ir['2price']) {
|
|
$ir['2price'] = $ir['price2'];
|
|
}
|
|
$pcena2 = ($ir['2price']/2.37)*30;
|
|
if($pcena2 > $pcena) {
|
|
$pcena = $pcena2;
|
|
}
|
|
|
|
if(!isset($po['add_s1']) && !isset($po['add_s2']) && !isset($po['add_s3']) && !isset($po['add_s5'])) {
|
|
$pcena = $pcena/2;
|
|
}
|
|
$pcena = round($pcena);
|
|
if($pcena == 0) {
|
|
$re = '<div align="left">Äàííûé ïðåäìåò íå ïîäõîäèò...</div>';
|
|
}elseif($pcena <= $u->info['money']) {
|
|
if($u->stats['s5'] > 24) {
|
|
$fadd = array(0,0,0);
|
|
|
|
//äîáàâëÿåì ñòàòû
|
|
if(isset($po['add_s1']) || isset($po['add_s2']) || isset($po['add_s3']) || isset($po['add_s5'])) {
|
|
$rnd1 = rand(0,(1000-$u->stats['s5']));
|
|
if($rnd1 > 500) {
|
|
$rnd2 = rand(0,(1000-$u->stats['s5']));
|
|
if($rnd2 > 500) {
|
|
$rnd3 = rand(0,(1000-$u->stats['s5']));
|
|
if($rnd3 > 500) {
|
|
//3
|
|
$fadd[0] = rand(0,1);
|
|
}else{
|
|
//1
|
|
$fadd[0] = 0;
|
|
}
|
|
}else{
|
|
//2
|
|
$fadd[0] = 0;
|
|
}
|
|
}else{
|
|
//1
|
|
$fadd[0] = 0;
|
|
}
|
|
}
|
|
|
|
//äîáàâëÿåì ÍÐ
|
|
if(isset($po['add_m1']) || isset($po['add_m2']) || isset($po['add_m4']) || isset($po['add_m5'])) {
|
|
$rnd1 = rand(0,(1000-$u->stats['s5']));
|
|
if($rnd1 > 500) {
|
|
$rnd2 = rand(0,(1000-$u->stats['s5']));
|
|
if($rnd2 > 500) {
|
|
$rnd3 = rand(0,(1000-$u->stats['s5']));
|
|
if($rnd3 > 500) {
|
|
//3
|
|
$fadd[1] = 10;
|
|
}else{
|
|
//1
|
|
$fadd[1] = 1;
|
|
}
|
|
}else{
|
|
//2
|
|
$fadd[1] = 7;
|
|
}
|
|
}else{
|
|
//1
|
|
$fadd[1] = 1;
|
|
}
|
|
$fadd[1] = rand($fadd[1],20);
|
|
}
|
|
|
|
//äîáàâëÿåì áðîíþ
|
|
if(isset($po['add_mib1']) || isset($po['add_mib2']) || isset($po['add_mib3']) || isset($po['add_mib4'])) {
|
|
$rnd1 = rand(0,(1000-$u->stats['s5']));
|
|
if($rnd1 > 500) {
|
|
$rnd2 = rand(0,(1000-$u->stats['s5']));
|
|
if($rnd2 > 500) {
|
|
$rnd3 = rand(0,(1000-$u->stats['s5']));
|
|
if($rnd3 > 500) {
|
|
//3
|
|
$fadd[2] = 3;
|
|
}else{
|
|
//1
|
|
$fadd[2] = 1;
|
|
}
|
|
}else{
|
|
//2
|
|
$fadd[2] = 2;
|
|
}
|
|
}else{
|
|
//1
|
|
$fadd[2] = 1;
|
|
}
|
|
}
|
|
|
|
if($fadd[0] > 0) {
|
|
//ñòàòû
|
|
$po['mf_stats'] += $fadd[0];
|
|
}
|
|
if($fadd[1] > 0) {
|
|
//ÍÐ
|
|
$po['add_hpAll'] += $fadd[1];
|
|
}
|
|
if($fadd[2] > 0) {
|
|
//áðîíÿ
|
|
$po['mf_mib'] += $fadd[2];
|
|
}
|
|
$po['modif'] = 1;
|
|
$po = $u->impStats($po);
|
|
|
|
mysql_query('UPDATE `items_users` SET `data` = "'.$po.'",`1price` = "'.$ir['1price'].'" WHERE `id` = "'.$ir['id'].'" LIMIT 1');
|
|
mysql_query('UPDATE `users` SET `money` = `money` - "'.$pcena.'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|
$u->info['money'] -= $pcena;
|
|
|
|
$re = '<div align="left">Ïðåäìåò "'.$ir['name'].'" áûë óñïåøíî ìîäèôèöèðîâàí (Õàðàêòåðèñòèêè: +'.$fadd[0].', Çäîðîâüå: +'.$fadd[1].', Áðîíÿ: +'.$fadd[2].') çà '.$pcena.' êð.</div>';
|
|
|
|
}else{
|
|
$re = '<div align="left">Äëÿ ìîäèôèöèðîâàíèÿ ïðåäìåòà òðåáóåòñÿ õàðàêòåðèñòèêà Èíòåëåêò: 25</div>';
|
|
}
|
|
}else{
|
|
$re = '<div align="left">Ó âàñ íå äîñòàòî÷íî ñðåäñòâ äëÿ ìîäèôèêàöèè ïðåäìåòà</div>';
|
|
}
|
|
}else{
|
|
$re = '<div align="left">Ïîäõîäÿùèé ïðåäìåò íå íàéäåí â èíâåíòàðå</div>';
|
|
}
|
|
}elseif(isset($_GET['ubeff']) && true == false) {
|
|
// Áåðåì â ïåðåìåííóþ òåêóùèé ïðåäìåò.
|
|
$ir = mysql_fetch_array(mysql_query('SELECT `im`.*,`iu`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`item_id`) WHERE `iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND `iu`.`data` LIKE "%upatack_id%" AND `iu`.`id` = "'.mysql_real_escape_string((int)$_GET['ubeff']).'" LIMIT 1'));
|
|
|
|
// Ïðåäìåò ñóùåñòâóåò.
|
|
if(isset($ir['id'])) {
|
|
$po = array();
|
|
$po = $u->lookStats($ir['data']); // Òóò ìû õðàíèì õàðàêòåðèñòèêè ïðåäìåòà.
|
|
if($po['tr_lvl'] > $ir['level']) {
|
|
$pl['level'] = $po['tr_lvl']; // Åñëè óðîâåíü ïðåäìåòà, ìåíüøå ÷åì óðîâåíü òðåáîâàíèé ñ õàðàêòåðèñòèê, òî èäåò îáíîâëåíèå óðîâíÿ ïðåäìåòà.
|
|
}
|
|
|
|
$pcena = 5*$pl['level']+35; // öåíà óâåëè÷èâàåòñÿ, äëÿ ïðîäàæè â ãîñ. ìàã.
|
|
|
|
if(isset($po['rune_id'])) { // Åñëè â ïðåäìåòå ñóùåñòâóåò ÐÓÍÀ, óâåëè÷èâàåì öåíó.
|
|
$pcena += 3;
|
|
}
|
|
|
|
if(isset($po['upatack_id'])) { // Åñëè â ïðåäìåòå èìååòñÿ Çàòî÷êà, óâåëè÷èâàåì öåíó.
|
|
$pcena += 14;
|
|
}
|
|
/*
|
|
if($po['rune_id'] > 0){ // Ïîñëåäîâàòåëüíîñòü äåéñòâèé.
|
|
$re = '<div align="left">Äëÿ äåçèíòåãðàöèè ñíà÷àëà èçâëåêèòå ðóíó</div>';
|
|
} else
|
|
*/
|
|
if($u->info['money'] >= 100) { // Ïðîâåðêà, õâàòàåò ëè ñðåäñòâ.
|
|
$pcena -= 14; // Óìåíüøàåì öåíó ïîñëå èçâëå÷åííèÿ çàòî÷êè.
|
|
if(isset($po['upatack_id'])) { // Äîáàâëÿåì çàòî÷êó â èíâåíòàðü.
|
|
// Áåðåì â ïåðåìåííóþ ñâèòîê çàòî÷êè, êîòîðûé íàõîäèòñÿ â ïðåäìåòå.
|
|
$upattack = mysql_fetch_array(mysql_query('SELECT `im`.*,`iu`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`item_id`) WHERE `iu`.`id` = "'.mysql_real_escape_string((int)$po["upatack"]).'" LIMIT 1'));
|
|
if(isset($upattack) && $upattack['item_id'] && $upattack['delete']>0){ // Åñëè ñòàðûé ïðåäìåò íå óäàëåí èç áàçû, ìû åãî âîññòàíàâëèâàåì.
|
|
mysql_query('UPDATE `items_users` SET `delete` = "'.mysql_real_escape_string(0).'" WHERE `id` = "'.$po["upatack"].'" LIMIT 1');
|
|
mysql_query('UPDATE `items_users` SET `data` = CONCAT(`data`,"|nosale=1") WHERE `id` = "'.$po["upatack"].'" LIMIT 1');
|
|
} else { // Åñëè ñòàðûé ïðåäìåò íå ñóùåñòâóåò, ñîçäàåì íîâûé.
|
|
$u->addItem($po['upatack_id'],$u->info['id'],'|fromshop=1|nosale=1', NULL, NULL, true);
|
|
$irs .= ','.$po['upatack_name'];
|
|
}
|
|
}
|
|
|
|
if(!isset($upattack['data'])) {
|
|
$upattack = mysql_fetch_array(mysql_query('SELECT * FROM `items_main_data` WHERE `items_id` = "'.mysql_real_escape_string((int)$po["upatack_id"]).'" LIMIT 1'));
|
|
}
|
|
|
|
|
|
// Îáíóëÿåì èíôó ê ñòàíäàðòíûì äàííûì - $ir['item_id']
|
|
$item_default = mysql_fetch_array(mysql_query('SELECT `data` FROM `items_main_data` WHERE `items_id` = "'.mysql_real_escape_string((int)$ir['item_id']).'" LIMIT 1'));
|
|
$item_default = $u->lookStats($item_default['data']);
|
|
$upattack = $u->lookStats($upattack['data']);
|
|
if( $upattack['uptype'] == 22 ) {
|
|
$po['add_m11'] -= $upattack['upatack']*2;
|
|
$po['tr_lvl'] = $item_default['tr_lvl'];
|
|
if(isset($po['add_m11']) && $po['add_m11']==0) unset($po['add_m11']);
|
|
}else{
|
|
$po['sv_yron_min'] -= $upattack['upatack'];
|
|
$po['sv_yron_max'] -= $upattack['upatack'];
|
|
$po['tr_lvl'] = $item_default['tr_lvl'];
|
|
}
|
|
unset($po["upatack"]);
|
|
unset($po["upatack_id"]);
|
|
unset($po["upatack_name"]);
|
|
unset($po["upatack_lvl"]);
|
|
unset($item_default);
|
|
unset($upattack);
|
|
$po = $u->impStats($po);
|
|
|
|
// Çàòî÷êà tr_lvl=4|tr_s5=10|tr_mg7=4|uptype=21|upatack=4|tr_a4=4|srok=432000
|
|
/*
|
|
if(isset($po['spell_id'])) {
|
|
//Èçâëå÷åíèå ÷àðêè
|
|
$u->addItem($po['spell_id'],$u->info['id']);
|
|
$irs .= ','.$po['spell_name'];
|
|
}
|
|
|
|
//îáíóëåíèå ïðåäìåòà (êðîìå óëó÷øåíèé , ãðàâèðîâêè)
|
|
|
|
$pon = '';
|
|
if(isset($po['gravi'])) {
|
|
$pon .= '|gravi='.$po['gravi'].'|gravic='.$po['gravic'].'';
|
|
}
|
|
if(isset($po['nosale'])) {
|
|
$pon .= '|nosale='.$po['nosale'].'';
|
|
}
|
|
if(isset($po['frompisher'])) {
|
|
$pon .= '|frompisher='.$po['frompisher'].'';
|
|
}
|
|
if(isset($po['fromlaba'])) {
|
|
$pon .= '|fromlaba='.$po['fromlaba'].'';
|
|
}
|
|
if(isset($po['noremont'])) {
|
|
$pon .= '|noremont='.$po['noremont'].'';
|
|
}
|
|
if(isset($po['sudba'])) {
|
|
$pon .= '|sudba='.$po['sudba'].'';
|
|
}
|
|
if(isset($po['zazuby'])) {
|
|
$pon .= '|zazuby='.$po['zazuby'].'';
|
|
}
|
|
if(isset($po['fromshop'])) {
|
|
$pon .= '|fromshop='.$po['fromshop'].'';
|
|
}
|
|
if(isset($po['icos'])) {
|
|
$pon .= '|icos='.$po['icos'].'';
|
|
}
|
|
*/
|
|
|
|
/*
|
|
$iidis = $u->addItem($ir['item_id'],$u->info['id'],$pon);
|
|
mysql_query('UPDATE `items_users` SET
|
|
`iznosMAX` = "'.$ir['iznosMAX'].'",
|
|
`iznosNOW` = "'.$ir['iznosNOW'].'",
|
|
`1price` = "'.$ir['1price'].'",
|
|
`2price` = "'.$ir['2price'].'",
|
|
`3price` = "'.$ir['3price'].'",
|
|
`gift` = "'.$ir['gift'].'",
|
|
`gtxt1` = "'.$ir['gtxt1'].'",
|
|
`gtxt2` = "'.$ir['gtxt2'].'",
|
|
`maidin` = "'.$ir['maidin'].'",
|
|
`time_create` = "'.$ir['time_create'].'"
|
|
WHERE `id` = "'.$iidis.'" AND `uid` = "'.$u->info['id'].'" LIMIT 1');
|
|
|
|
$u->info['money'] -= $pcena;
|
|
$re = '<div align="left">Ïðåäìåò "'.$ir['name'].'" áûë óñïåøíî äåçèíòåãðèðîâàí ('.$ir['name'].''.$irs.') çà '.$pcena.' êð.</div>';
|
|
*/
|
|
var_info($po);
|
|
mysql_query('UPDATE `items_users` SET `data` = "'.$po.'" WHERE `id` = "'.$ir['id'].'" LIMIT 1');
|
|
mysql_query('UPDATE `users` SET `money` = `money` - 100 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|
|
|
}else{
|
|
$re = '<div align="left">Ó âàñ íå äîñòàòî÷íî ñðåäñòâ äëÿ äåçèíòåãðàöèè</div>';
|
|
}
|
|
}else{
|
|
$re = '<div align="left">Ïîäõîäÿùèé ïðåäìåò íå íàéäåí â èíâåíòàðå</div>';
|
|
}
|
|
}elseif(isset($_GET['unrune']) && true == false) {
|
|
$ir = mysql_fetch_array(mysql_query('SELECT `im`.*,`iu`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`item_id`) WHERE `iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND `iu`.`data` LIKE "%rune_id%" AND `iu`.`id` = "'.mysql_real_escape_string((int)$_GET['unrune']).'" LIMIT 1'));
|
|
if(isset($ir['id']) ) {
|
|
$po = array();
|
|
$po = $u->lookStats($ir['data']);
|
|
if(isset($po['noremont']) or isset($st['frompisher'])){
|
|
$re2 = 'Ïðåäìåò íå ïîäëåæèò èçâëå÷åíèþ ðóí.';
|
|
} else {
|
|
if($po['tr_lvl'] > $ir['level']) {
|
|
$ir['level'] = $po['tr_lvl'];
|
|
}
|
|
|
|
$pcena = 10*$ir['level']+40;
|
|
if($pcena <= $u->info['money']) {
|
|
$iro = mysql_fetch_array(mysql_query('SELECT * FROM `items_main_data` WHERE `items_id` = "'.$po['rune_id'].'" LIMIT 1'));
|
|
$ro = $u->lookStats($iro['data']);
|
|
$restat = array();
|
|
|
|
$i = 0;
|
|
while($i<count($u->items['add'])) {
|
|
if(isset($ro['add_'.$u->items['add'][$i]])) {
|
|
$po['add_'.$u->items['add'][$i]] -= $ro['add_'.$u->items['add'][$i]];
|
|
if($po['add_'.$u->items['add'][$i]] == 0) {
|
|
unset($po['add_'.$u->items['add'][$i]]);
|
|
}
|
|
}
|
|
$i++;
|
|
}
|
|
|
|
$u->addItem($po['rune_id'],$u->info['id']);
|
|
$re = '<div align="left">Ðóíà "'.$po['rune_name'].'" áûëà óñïåøíî èçâëå÷åíà èç ïðåäìåòà "'.$ir['name'].'" çà '.$pcena.' êð.</div>';
|
|
$u->addDelo(2,$u->info['id'],'"<font color="#4863A0">System.remont.unrune</font>": Ðóíà "'.$po['rune_name'].'" áûëà óñïåøíî èçâëå÷åíà èç ïðåäìåòà "'.$ir['name'].'" [itm:'.$ir['id'].'] çà '.$pcena.' êð.',time(),$u->info['city'],'System.remont.unrune',0,0);
|
|
unset($po['rune'],$po['rune_id'],$po['rune_name'],$po['rune_lvl']);
|
|
$po = $u->impStats($po);
|
|
mysql_query('UPDATE `items_users` SET `data` = "'.$po.'" WHERE `id` = "'.$ir['id'].'" LIMIT 1');
|
|
mysql_query('UPDATE `users` SET `money` = `money` - "'.$pcena.'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|
$u->info['money'] -= $pcena;
|
|
|
|
}else{
|
|
$re = '<div align="left">Ó âàñ íå äîñòàòî÷íî ñðåäñòâ äëÿ èçâëå÷åíèÿ</div>';
|
|
}
|
|
}
|
|
}else{
|
|
$re = '<div align="left">Ïîäõîäÿùèé ïðåäìåò íå íàéäåí â èíâåíòàðå</div>';
|
|
}
|
|
} elseif(isset($_GET['un_grav'])) {
|
|
$ir = mysql_fetch_array(mysql_query('SELECT `im`.*,`iu`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`item_id`) WHERE `iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND (`im`.`type` = "18" OR `im`.`type` = "19" OR `im`.`type` = "20" OR `im`.`type` = "21" OR `im`.`type` = "22" OR `im`.`type` = "23" OR `im`.`type` = "24" OR `im`.`type` = "26" OR `im`.`type` = "27" OR `im`.`type` = "28") AND `iu`.`id` = "'.mysql_real_escape_string((int)$_GET['un_grav']).'" LIMIT 1'));
|
|
if(isset($ir['id'])) {
|
|
$pcena = 30;
|
|
if($ir['type'] == 22) {
|
|
$pcena = 35;
|
|
}elseif($ir['type'] == 18) {
|
|
$pcena = 15;
|
|
}
|
|
if($pcena <= $u->info['money']) {
|
|
$po = array();
|
|
$po = $u->lookStats($ir['data']);
|
|
$po['gravi'] = substr($_GET['grav_text'],0, 20);
|
|
$po['gravic'] = $u->info['city'];
|
|
$po['gravi'] = str_replace('=','',$po['gravi']);
|
|
$po['gravi'] = str_replace('|','',$po['gravi']);
|
|
$tst = str_replace(' ','',$po['gravi']);
|
|
$tst = str_replace(' ','',$po['gravi']);
|
|
$po['gravi'] = preg_replace("/[^a-zA-ZÀ-ßà-ÿ0-9\s]/", "", $po['gravi']);
|
|
if($po['gravi'] != '' && $tst != '') {
|
|
$po = $u->impStats($po);
|
|
mysql_query('UPDATE `users` SET `money` = `money` - "'.$pcena.'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|
mysql_query('UPDATE `items_users` SET `data` = "'.$po.'" WHERE `id` = "'.$ir['id'].'" LIMIT 1');
|
|
$re = '<div align="left">Íà ïðåäìåòå "'.$ir['name'].'" áûë óñïåøíî âûãðîâèðîâàí òåêñò çà '.$pcena.' êð.</div>';
|
|
}else{
|
|
$re = '<div align="left">Ïóñòîé òåêñò, ëèáî ñîñòîèò èç ñèìâîëîâ êîòîðûå íåëüçÿ èñïîëüçîâàòü</div>';
|
|
}
|
|
}else{
|
|
$re = '<div align="left">Ó âàñ íå äîñòàòî÷íî ñðåäñòâ äëÿ ãðàâèðîâêè</div>';
|
|
}
|
|
}else{
|
|
$re = '<div align="left">Ïîäõîäÿùèé ïðåäìåò íå íàéäåí â èíâåíòàðå</div>';
|
|
}
|
|
}elseif(isset($_GET['grav'])) {
|
|
$ir = mysql_fetch_array(mysql_query('SELECT `im`.*,`iu`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`item_id`) WHERE `iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND (`im`.`type` = "18" OR `im`.`type` = "19" OR `im`.`type` = "20" OR `im`.`type` = "21" OR `im`.`type` = "22" OR `im`.`type` = "23" OR `im`.`type` = "24" OR `im`.`type` = "26" OR `im`.`type` = "27" OR `im`.`type` = "28") AND `iu`.`id` = "'.mysql_real_escape_string((int)$_GET['grav']).'" LIMIT 1'));
|
|
if(isset($ir['id'])) {
|
|
$pcena = 30;
|
|
if($ir['type'] == 22) {
|
|
$pcena = 35;
|
|
}elseif($ir['type'] == 18) {
|
|
$pcena = 15;
|
|
}
|
|
if($pcena <= $u->info['money']) {
|
|
$po = array();
|
|
$po = $u->lookStats($ir['data']);
|
|
$po['gravi'] = substr($_GET['grav_text'],0, 20);
|
|
$po['gravic'] = $u->info['city'];
|
|
$po['gravi'] = str_replace('=','',$po['gravi']);
|
|
$po['gravi'] = str_replace('|','',$po['gravi']);
|
|
$tst = str_replace(' ','',$po['gravi']);
|
|
$tst = str_replace(' ','',$po['gravi']);
|
|
$po['gravi'] = preg_replace("/[^a-zA-ZÀ-ßà-ÿ0-9\s]/", "", $po['gravi']);
|
|
if($po['gravi'] != '' && $tst != '') {
|
|
$po = $u->impStats($po);
|
|
mysql_query('UPDATE `users` SET `money` = `money` - "'.$pcena.'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|
mysql_query('UPDATE `items_users` SET `data` = "'.$po.'" WHERE `id` = "'.$ir['id'].'" LIMIT 1');
|
|
$re = '<div align="left">Íà ïðåäìåòå "'.$ir['name'].'" áûë óñïåøíî âûãðîâèðîâàí òåêñò çà '.$pcena.' êð.</div>';
|
|
}else{
|
|
$re = '<div align="left">Ïóñòîé òåêñò, ëèáî ñîñòîèò èç ñèìâîëîâ êîòîðûå íåëüçÿ èñïîëüçîâàòü</div>';
|
|
}
|
|
}else{
|
|
$re = '<div align="left">Ó âàñ íå äîñòàòî÷íî ñðåäñòâ äëÿ ãðàâèðîâêè</div>';
|
|
}
|
|
}else{
|
|
$re = '<div align="left">Ïîäõîäÿùèé ïðåäìåò íå íàéäåí â èíâåíòàðå</div>';
|
|
}
|
|
}elseif(isset($_GET['podgon'])) {
|
|
$ir = mysql_fetch_array(mysql_query('SELECT `im`.*,`iu`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`item_id`) WHERE `iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND `im`.`inslot` = 5 AND `iu`.`id` = "'.mysql_real_escape_string((int)$_GET['podgon']).'" LIMIT 1'));
|
|
if(isset($ir['id'])) {
|
|
$po = array();
|
|
$po = $u->lookStats($ir['data']);
|
|
if(!isset($po['podgon'])) {
|
|
if($po['tr_lvl']>$ir['level']) {
|
|
$ir['level'] = $po['tr_lvl'];
|
|
}
|
|
$pcena = 5*$ir['level']+10;
|
|
if($pcena <= $u->info['money']) {
|
|
$prhp = 6*$ir['level']+6;
|
|
$po['podgon'] = 1;
|
|
$po['add_hpAll'] += $prhp;
|
|
$po['sudba'] = $u->info['login'];
|
|
$po = $u->impStats($po);
|
|
mysql_query('UPDATE `users` SET `money` = `money` - "'.$pcena.'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|
mysql_query('UPDATE `items_users` SET `data` = "'.$po.'" WHERE `id` = "'.$ir['id'].'" LIMIT 1');
|
|
$re = '<div align="left">Ïðåäìåò "'.$ir['name'].'" áûë óñïåøíî ïîäîãíàí çà '.$pcena.' êð. (Äîáàâëåíî +'.$prhp.'HP)</div>';
|
|
}else{
|
|
$re = '<div align="left">Ó âàñ íå äîñòàòî÷íî ñðåäñòâ äëÿ ïîäãîíêè</div>';
|
|
}
|
|
}else{
|
|
$re = '<div align="left">Ïðåäìåò óæå áûë ïîäîãíàí</div>';
|
|
}
|
|
}else{
|
|
$re = '<div align="left">Ïîäõîäÿùèé ïðåäìåò íå íàéäåí â èíâåíòàðå</div>';
|
|
}
|
|
}elseif(isset($_GET['remon']))
|
|
{
|
|
$t = 1;
|
|
if($_GET['t']==2)
|
|
{
|
|
$t = 2;
|
|
}elseif($_GET['t']==3)
|
|
{
|
|
$t = 3;
|
|
}
|
|
$ir = mysql_fetch_array(mysql_query('SELECT `im`.*,`iu`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`item_id`) WHERE `iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND `iu`.`iznosNOW` >= 1 AND `iu`.`id` = "'.mysql_real_escape_string((int)$_GET['remon']).'" LIMIT 1'));
|
|
|
|
$rem_price=round($ir['price1']*0.06/100,2);//öåíà ðåìîíòà çà 1åä ïîëîìêè
|
|
$rem_all=round($ir['price1']*$ir['iznosNOW']*0.06/100,2);//öåíà ðåìîíòà full
|
|
|
|
if( $u->stats['silver'] >= 5 ) {
|
|
$rem_price = round($rem_price/100*50,2);
|
|
$rem_all = round($rem_all/100*50,2);
|
|
}
|
|
|
|
if($rem_price<0.01){$rem_price=0.01;} //êýï ïîìîæåò
|
|
if($rem_all<0.01){$rem_all=0.01;} //êýï ïîìîæåò
|
|
|
|
if(isset($ir['id']))
|
|
{
|
|
$po = $u->lookStats($ir['data']);
|
|
if(isset($po['noremont']))
|
|
{
|
|
$re2 = 'Ïðåäìåò íå ïîäëåæèò ðåìîíòó â ýòîé ìàñòåðñêîé.';
|
|
}else{
|
|
if($t == 1)
|
|
{
|
|
$rem_cell=$rem_price;
|
|
$t = 0;
|
|
$rm = 1;
|
|
$re2 .= ' 1 åä.';
|
|
}elseif($t == 2)
|
|
{
|
|
$t = 0;
|
|
$rm = 10;
|
|
$rem_cell=$rem_price*10;
|
|
$re2 .= ' 10 åä.';
|
|
}elseif($t == 3)
|
|
{
|
|
$rem_cell=$rem_all;
|
|
$t = 0;
|
|
$rm = $ir['iznosNOW'];
|
|
$re2 .= $rm. ' åä.';
|
|
}
|
|
//$priceRemAll=round($rem_price*$rm,2);
|
|
if($rem_cell>$u->info['money'])
|
|
{
|
|
$re2 = 'Ó âàñ íåäîñòàòî÷íî ñðåäñò äëÿ ðåìîíòà.';
|
|
}else{
|
|
if($rm > $ir['iznosNOW'])
|
|
{
|
|
$rm = $ir['iznosNOW'];
|
|
//$priceRemAll=round($rem_price*$rm,2);
|
|
}
|
|
$ir['iznosNOW'] -= $rm;
|
|
if($ir['iznosNOW']<0)
|
|
{
|
|
$ir['iznosNOW'] = 0;
|
|
}
|
|
$u->info['money'] -= $rem_cell;
|
|
$upd = mysql_query('UPDATE `users` SET `money` = "'.$u->info['money'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|
if($upd)
|
|
{
|
|
$il = $ir['iznosMAX'];
|
|
//$ir['iznosMAX'] -= $ir['iznosMAX']/100000*rand(10,700);
|
|
if( rand(0,100) < 11 ) {
|
|
$ir['iznosMAX'] -= 1;
|
|
}else{
|
|
$ir['iznosMAX'] -= $ir['iznosMAX']/100000*rand(10,700);
|
|
}
|
|
if($ir['iznosMAX']<1)
|
|
{
|
|
$ir['iznosMAX'] = 1;
|
|
}
|
|
mysql_query('UPDATE `items_users` SET `iznosNOW` = "'.$ir['iznosNOW'].'",`iznosMAX` = "'.$ir['iznosMAX'].'" WHERE `id` = "'.$ir['id'].'" LIMIT 1');
|
|
$re2 = 'Óäà÷íî ïðîèçâåäåí ðåìîíò '.$re2.' ïðåäìåòà "'.$ir['name'].'" çà '.$rem_cell.' êð.';
|
|
$dop = 0;
|
|
if(ceil($il)>ceil($ir['iznosMAX']))
|
|
{
|
|
$re2 .= '<br>Ê ñîæàëåíèþ, ìàêñèìàëüíàÿ äîëãîâå÷íîñòü ïðåäìåòà èç-çà ðåìîíòà óìåíüøèëàñü.';
|
|
$dop = 1;
|
|
}
|
|
$u->addDelo(2,$u->info['id'],'"<font color="grey">System.remont</font>": Ïðåäìåò "'.$ir['name'].'" [itm:'.$ir['id'].'] áûë <b>îòðåìîíòèðîâàí</b>, ìàêñèìàëüíàÿ äîëãîâå÷íîñòü óìåíüøèëàñü: '.$dop.' ('.$rm.' åä. çà '.$t.' êð.).',time(),$u->info['city'],'System.remont',0,0);
|
|
}else{
|
|
$re2 = '×òî-òî çäåñü íå òàê...';
|
|
}
|
|
}
|
|
}
|
|
}else{
|
|
$re2 = 'Ïðåäìåò ïîäõîäÿùèé äëÿ ðåìîíòà íå íàéäåí â èíâåíòàðå';
|
|
}
|
|
}elseif(isset($_GET['remonz']))
|
|
{
|
|
$t = 1;
|
|
if($_GET['t']==2)
|
|
{
|
|
$t = 2;
|
|
}elseif($_GET['t']==3)
|
|
{
|
|
$t = 3;
|
|
}
|
|
$ir = mysql_fetch_array(mysql_query('SELECT `im`.*,`iu`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`item_id`) WHERE `iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND `iu`.`iznosNOW` >= 1 AND `iu`.`id` = "'.mysql_real_escape_string((int)$_GET['remonz']).'" LIMIT 1'));
|
|
|
|
$rem_price=round($ir['price1']*0.06/100,2);//öåíà ðåìîíòà çà 1åä ïîëîìêè
|
|
$rem_all=round($ir['price1']*$ir['iznosNOW']*0.06/100,2);//öåíà ðåìîíòà full
|
|
if($rem_price<0.01){$rem_price=0.01;} //êýï ïîìîæåò
|
|
|
|
if(isset($ir['id']))
|
|
{
|
|
$po = $u->lookStats($ir['data']);
|
|
if(isset($po['noremont']))
|
|
{
|
|
$re2 = 'Ïðåäìåò íå ïîäëåæèò ðåìîíòó â ýòîé ìàñòåðñêîé.';
|
|
}else{
|
|
|
|
if( $ir['1price'] > 0 ) {
|
|
$po['zazuby'] = $ir['1price'];
|
|
}else{
|
|
$po['zazuby'] = $ir['price1'];
|
|
}
|
|
$po['nosale'] = 1;
|
|
|
|
if($t == 1)
|
|
{
|
|
$rem_cell=$rem_price;
|
|
$t = 0;
|
|
$rm = 1;
|
|
$re2 .= ' 1 åä.';
|
|
}elseif($t == 2)
|
|
{
|
|
$t = 0;
|
|
$rm = 10;
|
|
$rem_cell=$rem_price*10;
|
|
$re2 .= ' 10 åä.';
|
|
}elseif($t == 3)
|
|
{
|
|
$rem_cell=$rem_all;
|
|
$t = 0;
|
|
$rm = $ir['iznosNOW'];
|
|
$re2 .= $rm. ' åä.';
|
|
}
|
|
//$priceRemAll=round($rem_price*$rm,2);
|
|
if($rem_cell>$u->info['money4'])
|
|
{
|
|
$re2 = 'Ó âàñ íåäîñòàòî÷íî çóáîâ äëÿ ðåìîíòà.';
|
|
}else{
|
|
if($rm > $ir['iznosNOW'])
|
|
{
|
|
$rm = $ir['iznosNOW'];
|
|
//$priceRemAll=round($rem_price*$rm,2);
|
|
}
|
|
$ir['iznosNOW'] -= $rm;
|
|
if($ir['iznosNOW']<0)
|
|
{
|
|
$ir['iznosNOW'] = 0;
|
|
}
|
|
$u->info['money4'] -= $rem_cell;
|
|
$upd = mysql_query('UPDATE `users` SET `money4` = "'.$u->info['money4'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|
if($upd)
|
|
{
|
|
$il = $ir['iznosMAX'];
|
|
//$ir['iznosMAX'] -= $ir['iznosMAX']/100000*rand(10,700);
|
|
if( rand(0,100) < 11 ) {
|
|
$ir['iznosMAX'] -= 1;
|
|
}else{
|
|
$ir['iznosMAX'] -= $ir['iznosMAX']/100000*rand(10,700);
|
|
}
|
|
if($ir['iznosMAX']<1)
|
|
{
|
|
$ir['iznosMAX'] = 1;
|
|
}
|
|
$po = $u->impStats($po);
|
|
mysql_query('UPDATE `items_users` SET `data` = "'.$po.'",`iznosNOW` = "'.$ir['iznosNOW'].'",`iznosMAX` = "'.$ir['iznosMAX'].'" WHERE `id` = "'.$ir['id'].'" LIMIT 1');
|
|
$re2 = 'Óäà÷íî ïðîèçâåäåí ðåìîíò '.$re2.' ïðåäìåòà "'.$ir['name'].'" çà '.$u->zuby($rem_cell,1).'.';
|
|
$dop = 0;
|
|
if(ceil($il)>ceil($ir['iznosMAX']))
|
|
{
|
|
$re2 .= '<br>Ê ñîæàëåíèþ, ìàêñèìàëüíàÿ äîëãîâå÷íîñòü ïðåäìåòà èç-çà ðåìîíòà óìåíüøèëàñü.';
|
|
$dop = 1;
|
|
}
|
|
//
|
|
//
|
|
$u->addDelo(2,$u->info['id'],'"<font color="grey">System.remont</font>": Ïðåäìåò "'.$ir['name'].'" [itm:'.$ir['id'].'] áûë <b>îòðåìîíòèðîâàí</b>, ìàêñèìàëüíàÿ äîëãîâå÷íîñòü óìåíüøèëàñü: '.$dop.' ('.$rm.' åä. çà '.$t.' çóáîâ.).',time(),$u->info['city'],'System.remont',0,0);
|
|
}else{
|
|
$re2 = '×òî-òî çäåñü íå òàê...';
|
|
}
|
|
}
|
|
}
|
|
}else{
|
|
$re2 = 'Ïðåäìåò ïîäõîäÿùèé äëÿ ðåìîíòà íå íàéäåí â èíâåíòàðå';
|
|
}
|
|
}elseif(isset($_GET['upgradelvl'])) {
|
|
$ir = mysql_fetch_array(mysql_query('SELECT `im`.*,`iu`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`item_id`) WHERE `iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND `iu`.`id` = "'.mysql_real_escape_string((int)$_GET['upgradelvl']).'" LIMIT 1'));
|
|
if(isset($ir['id'])) {
|
|
$ur = mysql_fetch_array(mysql_query('SELECT * FROM `items_upgrade` WHERE `iid` = "'.$ir['item_id'].'" LIMIT 1'));
|
|
if(isset($ur['id'])) {
|
|
if($ur['price1'] > 0 && $u->info['money'] < $ur['price1']) {
|
|
$re2 = 'Íåäîñòàòî÷íî êð. ó ïåðñîíàæà';
|
|
}elseif($ur['price2'] > 0 && $u->bank['money2'] < $ur['price2']) {
|
|
$re2 = 'Íåäîñòàòî÷íî åêð. íà ñ÷åòó, ïîïîëíèòå áàíêîâñêèé ñ÷åò';
|
|
}else{
|
|
$ui1 = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "'.$ur['iup'].'" LIMIT 1'));
|
|
$ui2 = mysql_fetch_array(mysql_query('SELECT * FROM `items_main_data` WHERE `items_id` = "'.$ur['iup'].'" LIMIT 1'));
|
|
if(isset($ui1['id'],$ui2['id'])) {
|
|
mysql_query('UPDATE `items_users` SET `item_id` = "'.$ui1['id'].'",`1price` = "'.$ui1['price1'].'",`2price` = "'.$ui1['price2'].'",`data` = "'.$ui2['data'].'" WHERE `id` = "'.$ir['id'].'" LIMIT 1');
|
|
$re2 = 'Ïðåäìåò "'.$ir['name'].'" áûë óñïåøíî óëó÷øåí äî ñëåäóþùåãî óðîâíÿ çà '.$ur['price2'].' åêð.';
|
|
$u->bank['money2'] -= $ur['price2'];
|
|
mysql_query('UPDATE `bank` SET `money2` = "'.$u->bank['money2'].'" WHERE `id` = "'.$u->bank['id'].'" LIMIT 1');
|
|
}else{
|
|
$re2 = 'Íåóäàëîñü óëó÷øèòü äàííûé ïðåäìåò';
|
|
}
|
|
}
|
|
}else{
|
|
$re2 = 'Ïðåäìåò ïîäõîäÿùèé äëÿ óëó÷øåíèÿ íå íàéäåí';
|
|
}
|
|
}else{
|
|
$re2 = 'Ïðåäìåò ïîäõîäÿùèé äëÿ óëó÷øåíèÿ íå íàéäåí â èíâåíòàðå';
|
|
}
|
|
}
|
|
|
|
$see = '';
|
|
if($r==1){
|
|
//ðåìîíò ïðåäìåòîâ
|
|
$see = $u->genInv(4,'`iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND `iu`.`iznosNOW` >= 1 ORDER BY `lastUPD` DESC');
|
|
$see = $see[2];
|
|
}elseif($r==5){
|
|
//ïîäãîíêà áðîíè
|
|
$see = $u->genInv(56,'`iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND `im`.`inslot` = "5" AND `iu`.`data` NOT LIKE "%podgon%" ORDER BY `lastUPD` DESC');
|
|
$see = $see[2];
|
|
}elseif($r==2){
|
|
//ãðàâèðîâêà îðóæèÿ
|
|
$see = $u->genInv(57,'`iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND (`im`.`type` = "18" OR `im`.`type` = "19" OR `im`.`type` = "20" OR `im`.`type` = "21" OR `im`.`type` = "22" OR `im`.`type` = "23" OR `im`.`type` = "24" OR `im`.`type` = "26" OR `im`.`type` = "27" OR `im`.`type` = "28") ORDER BY `lastUPD` DESC');
|
|
$see = $see[2];
|
|
}elseif($r==4){
|
|
//âûòàñêèâàíèå ðóí
|
|
$see = $u->genInv(58,'`iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND `iu`.`data` LIKE "%rune_id%" ORDER BY `lastUPD` DESC');
|
|
$see = $see[2];
|
|
}elseif($r==3){
|
|
//äåçèíòåãðàöèÿ
|
|
$see = $u->genInv(59,'`iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND (`iu`.`data` LIKE "%upatack_id%") ORDER BY `lastUPD` DESC');
|
|
$see = $see[2];
|
|
}elseif($r==7){
|
|
//ìîäèôèêàöèÿ
|
|
$see = $u->genInv(60,'`iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND `iu`.`data` NOT LIKE "%modif%" AND `im`.`type` > 0 AND `im`.`type` < 16 AND
|
|
(`iu`.`data` LIKE "%add_s1%" OR `iu`.`data` LIKE "%add_s2%" OR `iu`.`data` LIKE "%add_s3%" OR `iu`.`data` LIKE "%add_s5%" OR `iu`.`data` LIKE "%add_hpAll%" OR `iu`.`data` LIKE "%add_mib%") ORDER BY `lastUPD` DESC');
|
|
$see = $see[2];
|
|
}elseif($r==6) {
|
|
//Óñèëåíèå
|
|
$see = $u->genInv(61,'`iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND `iu`.`data` LIKE "%modif%" AND `iu`.`data` NOT LIKE "%upgrade=5%" ORDER BY `lastUPD` DESC');
|
|
$see = $see[2];
|
|
}elseif($r==8) {
|
|
if(isset($u->bank['id'])) {
|
|
//Óëó÷øåíèÿ
|
|
$see = $u->genInv(62,'`iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND (SELECT `id` FROM `items_upgrade` WHERE `iid` = `iu`.`item_id` AND `activ` = 1 LIMIT 1) > 0 ORDER BY `lastUPD` DESC');
|
|
$see = $see[2];
|
|
}
|
|
}elseif($r==9) {
|
|
if(isset($u->bank['id']) && !isset($_GET['upgradelvlcom'])) {
|
|
//Ïîäãîíêà ïîä êîìïëåêò
|
|
$itmos = '';
|
|
$i = 0;
|
|
while( $i < count($itm_podgon) ) {
|
|
$itmos .= ' OR `iu`.`item_id` = "'.$itm_podgon[$i].'"';
|
|
$i++;
|
|
}
|
|
//$itmos = ltrim($itmos,' OR ');
|
|
$see = $u->genInv(63,'`iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND (`iu`.`data` LIKE "%|art=1%" '.$itmos.')');
|
|
$see = $see[2];
|
|
}else{
|
|
//Ïîäãîíêà ïîä êîìïëåêò
|
|
$itmos = '';
|
|
$i = 0;
|
|
while( $i < count($itm_podgon) ) {
|
|
$itmos .= ' OR `iu`.`item_id` = "'.$itm_podgon[$i].'"';
|
|
$i++;
|
|
}
|
|
//$itmos = ltrim($itmos,' OR ');
|
|
$see = $u->genInv(64,'`iu`.`id` = "'.mysql_real_escape_string($_GET['upgradelvlcom']).'" AND `iu`.`uid`="'.$u->info['id'].'" AND `iu`.`delete`="0" AND `iu`.`inOdet`="0" AND `iu`.`inShop`="0" AND (`iu`.`data` LIKE "%|art=1%" '.$itmos.')');
|
|
$see = $see[2];
|
|
}
|
|
}
|
|
|
|
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;
|
|
}
|
|
td {
|
|
text-align: center;
|
|
}
|
|
</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>';
|
|
?>
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td><table width="100%" border="0" cellpadding="2" cellspacing="0" bgcolor="d2d2d2">
|
|
<tr>
|
|
<td><b> Çàëû: </b></td>
|
|
<td nowrap="nowrap" align="center" <? if($r==1){ echo 'bgcolor="#A5A5A5"'; } ?> > <? if($r==1){ echo '<b>Ðåìîíò</b>'; }else{ echo '<a href="?r=1&rnd='.$code.'">Ðåìîíò</a>'; } ?> </td>
|
|
<td nowrap="nowrap" align="center" <? if($r==2){ echo 'bgcolor="#A5A5A5"'; } ?> > <? if($r==2){ echo '<b>Ãðàâèðîâêà</b>'; }else{ echo '<a href="?r=2&rnd='.$code.'">Ãðàâèðîâêà</a>'; } ?> </td>
|
|
<?
|
|
//if($u->info['admin']>0){
|
|
/*?>
|
|
<td nowrap="nowrap" align="center" <? if($r==3){ echo 'bgcolor="#A5A5A5"'; } ?> > <? if($r==3){ echo '<b>Äåçèíòåãðàöèÿ</b>'; }else{ echo '<a href="?r=3&rnd='.$code.'">Äåçèíòåãðàöèÿ</a>'; } ?> </td>
|
|
<?*/
|
|
/*
|
|
?>
|
|
<td nowrap="nowrap" align="center" <? if($r==6){ echo 'bgcolor="#A5A5A5"'; } ?> > <? if($r==6){ echo '<B>Óñèëåíèå</B>'; }else{ echo'<a href="?r=6&rnd='.$code.'">Óñèëåíèå</a>';}?> </td>
|
|
<td nowrap="nowrap" align="center" <? if($r==7){ echo 'bgcolor="#A5A5A5"'; } ?> > <? if($r==7){ echo '<B>Ìîäèôèêàöèÿ</B>'; }else{ echo'<a href="?r=7&rnd='.$code.'">Ìîäèôèêàöèÿ</a>';}?> </td>
|
|
|
|
|
|
<td nowrap="nowrap" align="center" <? if($r==4){ echo 'bgcolor="#A5A5A5"'; } ?> > <? if($r==4){ echo '<b>Ðóíû</b>'; }else{ echo '<a href="?r=4&rnd='.$code.'">Ðóíû</a>'; } ?> </td>
|
|
|
|
<?
|
|
*/
|
|
|
|
?>
|
|
<td nowrap="nowrap" align="center" <? if($r==5){ echo 'bgcolor="#A5A5A5"'; } ?> > <? if($r==5){ echo '<b>Ïîäãîíêà</b>'; }else{ echo '<a href="?r=5&rnd='.$code.'">Ïîäãîíêà</a>'; } ?> </td>
|
|
<td nowrap="nowrap" align="center" <? if($r==8){ echo 'bgcolor="#A5A5A5"'; } ?> > <? if($r==8){ echo '<b>Óëó÷øåíèå</b>'; }else{ echo '<a href="?r=8&rnd='.$code.'">Óëó÷øåíèå</a>'; } ?> </td>
|
|
<td nowrap="nowrap" align="center" <? if($r==9){ echo 'bgcolor="#A5A5A5"'; } ?> > <? if($r==9){ echo '<b>Ïîäãîíêà êîìïëåêòà</b>'; }else{ echo '<a href="?r=9&rnd='.$code.'">Ïîäãîíêà êîìïëåêòà</a>'; } ?> </td>
|
|
<td width="90%"> </td>
|
|
</tr>
|
|
</table></td>
|
|
</tr>
|
|
<tr>
|
|
<?
|
|
$rn = array(
|
|
1 => 'Ïî÷èíêà ïîâðåæäåííûõ ïðåäìåòîâ',
|
|
2 => 'Íàíåñåíèå íàäïèñåé íà îðóæèå (20 ñèìâîëîâ)',
|
|
3 => 'Ðàçäåëåíèå íà ñîñòàíûå ÷àñòè óëó÷øåííûõ ïðåäìåòîâ',
|
|
4 => 'Èçâëå÷åíèå ðóí',
|
|
5 => 'Ïîäîãíàòü áðîíþ',
|
|
6 => 'Óëó÷øåíèå ìîäèôèöèðîâàííûõ ïðåäìåòîâ',
|
|
7 => 'Ìîäèôèêàöèÿ ïðåäìåòîâ',
|
|
8 => 'Óëó÷øåíèå óðîâíÿ ïðåäìåòà',
|
|
9 => 'Ïîäãîíêà ïðåäìåòà ïîä êîìïëåêò'
|
|
);
|
|
$rn2 = array(
|
|
1 => 'Ó âàñ â ðþêçàêå íåò ïîâðåæäåííûõ ïðåäìåòîâ',
|
|
2 => 'Ó âàñ â ðþêçàêå íåò îðóæèÿ, íà êîòîðîå ìîæíî íàíåñòè ãðàâèðîâêó',
|
|
3 => 'Ó âàñ â ðþêçàêå íåò óëó÷øåííûõ ïðåäìåòîâ',
|
|
4 => 'Ó âàñ â ðþêçàêå íåò óëó÷øåííûõ ïðåäìåòîâ',
|
|
5 => 'Ó âàñ â ðþêçàêå íåò ïîäõîäÿùèõ ïðåäìåòîâ',
|
|
6 => 'Ó âàñ â ðþêçàêå íåò ïîäõîäÿùèõ ïðåäìåòîâ',
|
|
7 => 'Ó âàñ â ðþêçàêå íåò ïîäõîäÿùèõ ïðåäìåòîâ',
|
|
8 => 'Ó âàñ â ðþêçàêå íåò ïîäõîäÿùèõ ïðåäìåòîâ',
|
|
9 => 'Ó âàñ â ðþêçàêå íåò ïîäõîäÿùèõ ïðåäìåòîâ'
|
|
);
|
|
?>
|
|
<td bgcolor="#A5A5A5"><small><b><? echo $rn[$r]; ?></b></small></td>
|
|
</tr>
|
|
<tr>
|
|
<td style="border:1px solid #A5A5A5;padding:0px;">
|
|
<?
|
|
if($r == 2) {
|
|
echo '<div style="background-color:#c8c8c8;border-bottom:1px solid #a5a5a5;padding:2px;"><i><b>Îðäåí Ñâåòà</b> ïðåäóïðåæäàåò, ÷òî çà íåöåíçóðíûå èëè îñêîðáèòåëüíûå íàäïèñè Âû áóäåòå íàêàçàíû.</i></div>';
|
|
}elseif($r == 8) {
|
|
echo '<div style="background-color:#c8c8c8;border-bottom:1px solid #a5a5a5;padding:2px;"><i>Âñå óñèëåíèÿ ïðåäìåòà (çàòî÷êè, ðóíû, ÷àðêè è ò.ä.) îáíóëÿþòñÿ áåç âîçìîæíîñòè âîçâðàòà</i></div>';
|
|
}elseif($r == 5) {
|
|
echo '<div style="background-color:#c8c8c8;border-bottom:1px solid #a5a5a5;padding:2px;"><i>Âíèìàíèå! Áðîíÿ áóäåò ñâÿçàíà ñ âàìè îáùåé ñóäüáîé!</i></div>';
|
|
}elseif($r == 3) {
|
|
//echo '<div style="background-color:#c8c8c8;border-bottom:1px solid #a5a5a5;padding:2px;"><i><b>Âíèìàíèå!</b> Ïðè äåçèíòåãðàöèÿ èçûìàåòñÿ ñâèòîê çàòî÷êè, ðóíû è çà÷àðîâàíèå ñîõðàíÿåòñÿ.</i></div>';
|
|
}
|
|
?>
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
<?
|
|
if(($r == 8 || $r == 9) && !isset($u->bank['id'])) {
|
|
//Óëó÷øåíèå ïðåäìåòîâ çà êð.\åêð.
|
|
?>
|
|
<?
|
|
if(isset($_POST['bank']) && isset($u->bank['id']))
|
|
{
|
|
echo '<font color="red"><b>Áàíêîâñêèé ñ÷åò ïóñò, âõîä â ìàãàçèí çàïðåùåí</b></font>';
|
|
}elseif(isset($_POST['bank']) && !isset($u->bank['id']))
|
|
{
|
|
echo '<font color="red"><b>Íåâåðíûé ïàðîëü îò áàíêîâñêîãî ñ÷åòà.</b></font>';
|
|
}
|
|
?>
|
|
<form name="F1" method="post">
|
|
<br /><center>Çàéäèòå íà ñâîé áàíêîâñêèé ñ÷åò, äëÿ óëó÷øåíèÿ íåêîòîðûõ ïðåäìåòîâ òðåáóþòñÿ åêð.</center>
|
|
<div>
|
|
<table style="padding-bottom:20px;" align="center" width="300" border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td bgcolor="#B1A996"><div align="center"><strong>Ñ÷¸ò â áàíêå</strong></div></td>
|
|
</tr>
|
|
<tr>
|
|
<td bgcolor="#DDD5C2" style="padding:5px;"><div align="center"><small>Âûáåðèòå ñ÷¸ò è ââåäèòå ïàðîëü<br />
|
|
<select name="bank" id="bank">
|
|
<?
|
|
$scet = mysql_query('SELECT `id` FROM `bank` WHERE `block` = "0" AND `uid` = "'.$u->info['id'].'"');
|
|
while ($num_scet = mysql_fetch_array($scet))
|
|
{
|
|
echo "<option>".$u->getNum($num_scet['id'])."</option>";
|
|
}
|
|
?>
|
|
</select>
|
|
<input style="margin-left:5px;" type="password" name="bankpsw" id="bankpsw" />
|
|
<label></label>
|
|
</small>
|
|
<input style="margin-left:3px;" type="submit" name="button" id="button" value=" ok " />
|
|
</div></td>
|
|
</tr>
|
|
|
|
</div>
|
|
</form>
|
|
<br />
|
|
<?
|
|
}else{
|
|
if($r == 9 && isset($_GET['upgradelvlcom']) && $see != '') {
|
|
$itmu = mysql_fetch_array(mysql_query('SELECT * FROM `items_users` WHERE `id` = "'.mysql_real_escape_string($_GET['upgradelvlcom']).'" LIMIT 1'));
|
|
$itmm = mysql_fetch_array(mysql_query('SELECT * FROM `items_main` WHERE `id` = "'.$itmu['item_id'].'" LIMIT 1'));
|
|
if( $itmm['price2'] == 0 ) {
|
|
$itmm['price2'] = $itmm['price1']/5;
|
|
}
|
|
$sts = explode('|',$itmu['data']);
|
|
$i = 0; $ste = ''; $sti = array();
|
|
while($i<count($sts))
|
|
{
|
|
$ste = explode('=',$sts[$i]);
|
|
if(isset($ste[1]))
|
|
{
|
|
if(!isset($sti[$ste[0]])) {
|
|
$sti[$ste[0]] = 0;
|
|
}
|
|
$sti[$ste[0]] += intval($ste[1]);
|
|
}
|
|
$i++;
|
|
}
|
|
if(isset($_POST['com2'],$_POST['work2'])) {
|
|
$epr = 0;
|
|
if($sti['sudba'] > 0 || $_POST['work2'] == '1') {
|
|
$wrk = 1;
|
|
$epr = round($itmm['price2']*0.2,2);
|
|
}else{
|
|
$wrk = 2;
|
|
$epr = round($itmm['price2']*0.4,2);
|
|
}
|
|
$sel = array();
|
|
$sp = mysql_query('SELECT * FROM `complects`');
|
|
while( $pl = mysql_fetch_array($sp) ) {
|
|
if(!isset($sel[$pl['com']]) && $com_podgon[$pl['name']] == true) {
|
|
$sel[$pl['com']] = true;
|
|
if($pl['com'] == $_POST['com2']) {
|
|
$com2 = $pl;
|
|
}
|
|
}
|
|
}
|
|
if( $com2['com'] > 0 && ($sti['complect'] == $com2['com'] || $sti['complect2'] == $com2['com']) ) {
|
|
$er2 = 'Ïðåäìåò óæå èñïîëüçóåò äàííûé êîìïëåêò.';
|
|
}elseif( !isset($com2['id']) ) {
|
|
$er2 = 'Âû íå ìîæåòå ïîäîãíàòü ïðåäìåò ïîä äàííûé êîìïëåêò.';
|
|
}elseif( $epr > $u->bank['money2'] ) {
|
|
$er2 = 'Ó âàñ íåäîñòàòî÷íî åêð., òðåáóåòñÿ '.$epr.' åêð.';
|
|
}else{
|
|
$sti['complect2'] = $com2['com'];
|
|
if($wrk == 1 && ($sti['sudba'] == '0' || !isset($sti['sudba']))) {
|
|
$sti['sudba'] = $u->info['login'];
|
|
}
|
|
$sti_imp = $u->impStats($sti);
|
|
mysql_query('UPDATE `bank` SET `money2` = `money2` - "'.$epr.'" WHERE `id` = "'.$u->bank['id'].'" LIMIT 1');
|
|
mysql_query('UPDATE `items_users` SET `data` = "'.mysql_real_escape_string($sti_imp).'" WHERE `id` = "'.$itmu['id'].'" LIMIT 1');
|
|
$er2 = 'Ïðåäìåò "'.$itmm['name'].'" óñïåøíî ïîäîãíàí ïîä "'.$com2['name'].'" çà '.$epr.' åêð.';
|
|
}
|
|
}
|
|
?>
|
|
<tr>
|
|
<td bgcolor="#c4c4c4" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"><?=$see?></table></td>
|
|
<td width="13" valign="middle" bgcolor="#a4a6a4"><img src="https://img.new-combats.com/imgr.jpg" width="13" height="63"></td>
|
|
<td width="300" align="left" valign="middle" bgcolor="#c4c4c4">
|
|
<div align="left" style="padding:10px;">
|
|
<form method="post" action="main.php?r=9&upgradelvlcom=<?=$itmu['id']?>">
|
|
<?
|
|
if(isset($er2)) {
|
|
echo '<font color=red>'.$er2.'</font><hr>';
|
|
}
|
|
$html = ''; $sel = array();
|
|
$sp = mysql_query('SELECT * FROM `complects`');
|
|
while( $pl = mysql_fetch_array($sp) ) {
|
|
if(!isset($sel[$pl['com']]) && $com_podgon[$pl['name']] == true) {
|
|
$sel[$pl['com']] = true;
|
|
$html .= '<label><input type="radio" name="com2" value="'.$pl['com'].'" />'.$pl['name'].'</label><br>';
|
|
}
|
|
}
|
|
echo $html;
|
|
?><br /><br />Òèï ðàáîò:<br />
|
|
<label><input type="radio" name="work2" value="1" />Ëè÷íàÿ <img src="https://img.new-combats.com/i/desteny.gif" title="Ïðåäìåò áóäåò ñâÿçàí îáùåé ñóäüáîé ñ âàìè" width="16" height="18" /> çà <?=round($itmm['price2']*0.2,2)?> åêð. </label><br>
|
|
<? if(!isset($sti['sudba'])) { ?>
|
|
<label><input type="radio" name="work2" value="2" />Îáùàÿ çà <?=round($itmm['price2']*0.4,2)?> åêð. </label><br>
|
|
<? } ?>
|
|
<center><br /><input type="submit" value="Ïîäòâåðäèòü" class="btnnew" /></center>
|
|
</form>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<?
|
|
}elseif($see == '')
|
|
{
|
|
echo $rn2[$r];
|
|
}else{
|
|
echo $see;
|
|
}
|
|
}
|
|
?>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br />
|
|
|
|
<td width="280" valign="top">
|
|
<TABLE cellspacing="0" cellpadding="0"><TD width="100%"> </TD><TD>
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr align="right" valign="top">
|
|
<td>
|
|
<!-- -->
|
|
<? echo $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="https://img.new-combats.com/i/move/links.gif" width="9" height="7" /></td>
|
|
<td bgcolor="#D3D3D3" nowrap><a href="#" id="greyText" class="menutop" onclick="location='main.php?loc=2.180.0.234&rnd=<? echo $code; ?>';" title="<? thisInfRm('2.180.0.234',1); ?>">Öåíòðàëüíàÿ Ïëîùàäü</a></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td></table>
|
|
</td></table>
|
|
<div><br />
|
|
<div align="right">
|
|
<small>
|
|
Ìàññà: <?=$u->aves['now']?>/<?=$u->aves['max']?> <br />
|
|
Ó âàñ â íàëè÷èè: <b style="color:#339900;"><?php echo round($u->info['money'],2); ?> êð.</b>
|
|
</small>
|
|
</div>
|
|
<p><small>
|
|
<?php
|
|
if(isset($re2)){ echo '<b style="color:red">'.$re2.'</b>'; }
|
|
?>
|
|
</small></p>
|
|
<p>
|
|
<br /><BR>
|
|
</p>
|
|
</div>
|
|
</td>
|
|
</table>
|
|
<br>
|
|
<div id="textgo" style="visibility:hidden;"></div>
|
|
<?
|
|
}
|
|
?>
|