210 lines
12 KiB
Plaintext
210 lines
12 KiB
Plaintext
<?
|
|
if(!defined('GAME')){
|
|
die();
|
|
}
|
|
|
|
if($u->room['file']=='bk'){
|
|
|
|
/*$tst = mysql_fetch_array(mysql_query('SELECT * FROM `dialog_act` WHERE `uid` = "'.$u->info['id'].'" AND `var` = "noobqst1" LIMIT 1'));
|
|
if(!isset($tst['id'])) {
|
|
if(isset($_GET['noobgo'])) {
|
|
if($_GET['noobgo'] == 1) {
|
|
//Ñîãëàñèëñÿ (ñîçäàåì ïåùåðó è òåëåïîðòèðóåì òóäà
|
|
|
|
$ins = mysql_query('INSERT INTO `dungeon_now` (`city`,`uid`,`id2`,`name`,`time_start`)
|
|
VALUES ("'.$u->info['city'].'","'.$u->info['id'].'","106","Àêàäåìèÿ Íîâè÷êîâ","'.time().'")');
|
|
if($ins){
|
|
$zid = mysql_insert_id();
|
|
//îáíîâëÿåì ïîëüçîâàòåëåé
|
|
$su = mysql_query('SELECT `u`.`id`,`st`.`dn` FROM `stats` AS `st` LEFT JOIN `users` AS `u` ON (`st`.`id` = `u`.`id`) WHERE `st`.`id`="'.$u->info['id'].'"');
|
|
$ids = '';
|
|
|
|
$map_locs = array();
|
|
$spm2 = mysql_query('SELECT `id`,`x`,`y` FROM `dungeon_map` WHERE `id_dng` = "106"');
|
|
while( $plm2 = mysql_fetch_array( $spm2 ) ) {
|
|
$map_locs[] = array($plm2['x'],$plm2['y']);
|
|
}
|
|
unset( $spm2 , $plm2 );
|
|
|
|
$pxd = 0;
|
|
while( $pu = mysql_fetch_array($su) ) {
|
|
$pxd++;
|
|
$ids .= ' `id` = "'.$pu['id'].'" OR';
|
|
}
|
|
$ids = rtrim($ids,'OR');
|
|
$snew = 0;
|
|
$upd1 = mysql_query('UPDATE `stats` SET `s`="4",`res_s`="1",`x`="0",`y`="0",`res_x`="0",`res_y`="0",`dn` = "0",`dnow` = "'.$zid.'" WHERE '.$ids.'');
|
|
if( $upd1 ){
|
|
$upd2 = mysql_query('UPDATE `users` SET `room` = "391" WHERE '.$ids.'');
|
|
//Äîáàâëÿåì áîòîâ è îáüåêòû â ïåùåðó $zid ñ for_dn = $dungeon['id']
|
|
//Äîáàâëÿåì áîòîâ
|
|
$vls = '';
|
|
$sp = mysql_query('SELECT * FROM `dungeon_bots` WHERE `for_dn` = "106"');
|
|
while( $pl = mysql_fetch_array( $sp ) ) {
|
|
if( $pl['id_bot'] == 0 && $pl['bot_group'] !=''){
|
|
$bots = explode( ',', $pl['bot_group'] );
|
|
$pl['id_bot'] = (int)$bots[rand(0, count($bots)-1 )];
|
|
}
|
|
if( $pl['id_bot'] > 0 )$vls .= '("'.$zid.'","'.$pl['id_bot'].'","'.$pl['colvo'].'","'.$pl['items'].'","'.$pl['x'].'","'.$pl['y'].'","'.$pl['dialog'].'","'.$pl['items'].'","'.$pl['go_bot'].'","'.$pl['noatack'].'"),';
|
|
unset($bots);
|
|
}
|
|
$vls = rtrim($vls,',');
|
|
$ins1 = mysql_query('INSERT INTO `dungeon_bots` (`dn`,`id_bot`,`colvo`,`items`,`x`,`y`,`dialog`,`atack`,`go_bot`,`noatack`) VALUES '.$vls.'');
|
|
//Äîáàâëÿåì îáüåêòû
|
|
$vls = '';
|
|
$sp = mysql_query('SELECT * FROM `dungeon_obj` WHERE `for_dn` = "106"');
|
|
while($pl = mysql_fetch_array($sp))
|
|
{
|
|
$vls .= '("'.$zid.'","'.$pl['name'].'","'.$pl['img'].'","'.$pl['x'].'","'.$pl['y'].'","'.$pl['action'].'","'.$pl['type'].'","'.$pl['w'].'","'.$pl['h'].'","'.$pl['s'].'","'.$pl['s2'].'","'.$pl['os1'].'","'.$pl['os2'].'","'.$pl['os3'].'","'.$pl['os4'].'","'.$pl['type2'].'","'.$pl['top'].'","'.$pl['left'].'","'.$pl['date'].'"),';
|
|
}
|
|
//
|
|
$vls = rtrim($vls,',');
|
|
if( $vls != '' ) {
|
|
$ins2 = mysql_query('INSERT INTO `dungeon_obj` (`dn`,`name`,`img`,`x`,`y`,`action`,`type`,`w`,`h`,`s`,`s2`,`os1`,`os2`,`os3`,`os4`,`type2`,`top`,`left`,`date`) VALUES '.$vls.'');
|
|
} else {
|
|
$ins2 = true;
|
|
}
|
|
if( $upd2 && $ins1 && $ins2 ){
|
|
die('<script>location="main.php?rnd='.$code.'";</script>');
|
|
} else {
|
|
$error = 'Îøèáêà ïåðåõîäà â ïîäçåìåëüå...';
|
|
}
|
|
} else {
|
|
$error = 'Îøèáêà ïåðåõîäà â ïîäçåìåëüå...';
|
|
}
|
|
} else {
|
|
$error = 'Îøèáêà ïåðåõîäà â ïîäçåìåëüå...';
|
|
}
|
|
//
|
|
//header('location: main.php');
|
|
die();
|
|
}else{
|
|
//Îòêàçàëñÿ (äîáàâëÿåì êâåñò, ñèñòåìêó è ïîøåë íàõ)
|
|
mysql_query('INSERT INTO `dialog_act` (
|
|
`uid`,`var`,`time`
|
|
) VALUES (
|
|
"'.$u->info['id'].'","noobqst1","'.time().'"
|
|
)');
|
|
|
|
//Íà÷àëî îáó÷åíèÿ
|
|
$humor = array(
|
|
0 => array(
|
|
':maniac: Ñèëüíî íå áåéòå ;)',':beggar: Áóäåò ïîïðîøàéíè÷àòü - áåéòå!',':pal: Âîçìîæíî ñâåòëûé!',
|
|
':vamp: Âîçìîæíî òåìíûé!',':susel: Ñóäÿ ïî çäîðîâåííîìó áèöåïñó - ýòî ìóæèê!',':duel: È ñðàçó æå êèíóëñÿ â áîé!',
|
|
':friday: Íå äîëãî äóìàâ îí íà÷àë èñêàòü ñîáóòûëüíèêà!',':doc: Ëåêàðü: Íîâè÷îê! Äà, äà! Òû! Åñëè òåáÿ ñëîìàþò - ó çíàõàðÿ òåáÿ ñîáåðóò îáðàòíî!'
|
|
),
|
|
1 => array(
|
|
':maniac: Ïîìíèòå! Äåâî÷åê íå áüåì ;)',':nail: Îíà êðàñèò íîãòè, íå îòâëåêàéòå âñå ñðàçó ;)',':pal: Âîçìîæíî ñâåòëàÿ!',
|
|
':vamp: Âîçìîæíî òåìíàÿ!',':rev: Ñóäÿ ïî êðàñèâîé îäåæäå - ýòî æåíùèíà!',':hug: È ñðàçó æå êèíóëàñü âñåõ öåëîâàòü!',
|
|
':angel2: Àíãåë ñîøåë ñ íåáåñ...'
|
|
)
|
|
);
|
|
$humor = $humor[$u->info['sex']];
|
|
//$u->info['fnq'] = 1;
|
|
//mysql_query('UPDATE `users` SET `fnq` = "'.$u->info['fnq'].'" WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|
//Îòïðàâëÿåì ñîîáùåíèå â ÷àò î íîâè÷êå
|
|
//mysql_query('UPDATE `items_users` SET `delete` = "'.time().'" WHERE `uid` = "'.$u->info['id'].'" AND `delete` = 0 AND `item_id` = 4703');
|
|
//mysql_query('UPDATE `users` SET `room` = 4 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|
//mysql_query('UPDATE `stats` SET `hpNow` = 1000,`mpNow` = 1000,`dn` = 0 , `dnow` = 0 , `x` = 0 , `y` = 0 , `s` = 0 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
|
|
$u->send('','','','','','Â íàøåì ìèðå ïîÿâèëñÿ íîâûé èãðîê "<b>' . $u->info['login'] . '</b>"! '.$humor[rand(0,count($humor)-1)].'',time(),6,0,0,0,1,0);
|
|
|
|
echo '<div><font color=red><b>Âû îòêàçàëèñü îò îáó÷åíèÿ, âòîðîé ïîïûòêè áîëüøå íå áóäåò!</b></font></div>';
|
|
}
|
|
}else{
|
|
echo '<script>
|
|
function qstnoobsstart() {
|
|
top.win.add(\'qstnoobsstart\',\'Âû õîòèòå ïðîéòè îáó÷åíèå?\',\'\',{\'a1\':\'top.frames[\\\'main\\\'].location.href=\\\'main.php?noobgo=1\\\';\',\'a2\':\'top.frames[\\\'main\\\'].location.href=\\\'main.php?noobgo=2\\\';\',\'n\':\'<center><small>Îòêàçàâøèñü âû íå ïîëó÷èòå íàãðàäó!</small></center>\'},2,1,\'width:300px;\');
|
|
}
|
|
qstnoobsstart();
|
|
</script>';
|
|
}
|
|
}*/
|
|
|
|
|
|
|
|
?><script type="text/javascript" src="/js/jquery.locations.js"></script>
|
|
<link href="/css/fightclub.css" rel="stylesheet" type="text/css">
|
|
<link rel="stylesheet" type="text/css" href="https://new-combats.com/css/loc_bk.css">
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
|
<? if( $u->error != '' ) { ?>
|
|
<font color=red><b>
|
|
<? echo $u->error; ?></font></b>
|
|
<? } ?>
|
|
<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="230" valign="top" style="padding-top:19px;"><? require_once('modules_data/stats_loc.php'); ?></td>
|
|
<td valign="top"><div align="right">
|
|
<? if($u->error!=''){ echo '<font color="red"><b>'.$u->error.'</b></font>'; } ?>
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr align="right" valign="top">
|
|
<td>
|
|
<? if($re!=''){ echo '<font color="red"><b>'.$re.'</b></font>'; } ?>
|
|
<table width="500" border="0" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td id="ViewLocation"><?php
|
|
if(true == false){
|
|
?><script><?php
|
|
require_once('modules_data/location/fight-club.database.php');
|
|
?>
|
|
var json = <?php echo json_encode($Response); ?>;
|
|
var tgo = <?php echo ($tmGo*10); ?>;
|
|
var tgol = <?php echo ($tmGol*10); ?>;
|
|
ViewLocation(json);
|
|
</script><?php
|
|
}else{
|
|
?>
|
|
<div style="position:relative; cursor: pointer; width: 500;" id="ione"><img src="https://img.new-combats.com/i/images/loc_bk/bg.jpg" id="img_ione" width="500" height="240" border="1"/>
|
|
<img class="zv1" src="https://img.new-combats.com/i/images/loc_bk/1x1.gif" style="left: 50px; top: 169px; z-index:90;" <? thisInfRm('1.180.0.4'); ?>>
|
|
<img class="cp" src="https://img.new-combats.com/i/images/loc_bk/1x1.gif" style="left: 190px; top: 175px; z-index:90;" <? thisInfRm('1.180.0.9'); ?>>
|
|
<img class="dark_zv" src="https://img.new-combats.com/i/images/loc_bk/1x1.gif" style="left: 350px; top: 169px; z-index:90;" <? thisInfRm('1.180.0.2'); ?>>
|
|
<img class="neut_zv" src="https://img.new-combats.com/i/images/loc_bk/1x1.gif" style="left: 355px; top: 105px; z-index:90;" <? thisInfRm('1.180.0.5'); ?>>
|
|
<img class="light_zv" src="https://img.new-combats.com/i/images/loc_bk/1x1.gif" style="left: 340px; top: 40px; z-index:90;" <? thisInfRm('1.180.0.220'); ?>>
|
|
<img class="zn" src="https://img.legbk.net/i/images/loc_bk/1x1.gif" style="left: 190px; top: 30px; z-index:90;" <? thisInfRm('1.180.0.225'); ?>>
|
|
<img class="trade_zv" src="https://img.new-combats.com/i/images/loc_bk/1x1.gif" style="left: 43px; top: 50px; z-index:90;" <? thisInfRm('1.180.0.221'); ?>>
|
|
<img class="ric_zv" src="https://img.new-combats.com/i/images/loc_bk/1x1.gif" style="left: 25px; top: 105px; z-index:90;" <? thisInfRm('1.180.0.224'); ?>>
|
|
<img class="bk" src="https://img.new-combats.com/i/images/loc_bk/1x1.gif" style="left: 185px; top: 110px; z-index:90;" <? thisInfRm('1.180.0.3'); ?>>
|
|
<?
|
|
if($u->room['id']==3) {
|
|
?><div style="position:absolute; left:185px; top:110px; width:119px; height:34px; z-index:90;"><img onClick="alert('Âû óæå íàõîäèòåñü â ýòîé êîìíàòå!');" onMouseOver="this.className='aFilterhover';" onMouseOut="this.className='aFilter';" src="https://img.new-combats.com/i/images/loc_bk/bk_a.png" width="119" height="34" title="Âû óæå íàõîäèòåñü â ýòîé êîìíàòå!" class="aFilter" /></div>
|
|
<?}?>
|
|
<div id="snow"></div>
|
|
<? echo $goline; ?>
|
|
</div>
|
|
<?php } ?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div style="display:none; height:0px " id="moveto"></div>
|
|
<div align="right" style="padding: 3px;"><small>«<? echo $c['title3']; ?>» ïðèâåòñòâóåò Âàñ, <b><? echo $u->info['login']; ?></b>.<br />
|
|
<?php
|
|
if($u->info['level']<6)
|
|
{
|
|
echo '
|
|
Âàì âñå âðåìÿ êàæåòñÿ ÷òî çà âàìè ñëåäÿò? ×óäèòñÿ, ÷òî ñëó÷àéíûé ïîïóò÷èê ìå÷òàåò âñàäèòü âàì òîïîð â ñïèíó? Ïðè ñîâåðøåíèè î÷åðåäíîé ïîêóïêè â ãîñ. ìàãàçèíå ìó÷àåò îùóùåíèå, ÷òî âàñ îáìàíóëè? Êàæåòñÿ, ÷òî ñèìïàòè÷íàÿ äåâóøêà íàïðîòèâ ñìîòðèò íà âàñ êàê íà ïèùó? Óñïîêîéòåñü, ýòî íå ïàðàíîéÿ. Ýòî ðåàëèè Capital city. Ãîðîäà Òüìû.
|
|
';
|
|
}else{
|
|
echo 'Âîçìîæíî, âû îøèáëèñü ýòàæîì - íàñòîÿùèå ñðàæåíèÿ ïðîõîäÿò ýòàæîì âûøå.';
|
|
} ?>
|
|
</small></div></td>
|
|
<td>
|
|
<!-- <br /><span class="menutop"><nobr>Êîìíàòà äëÿ íîâè÷êîâ</nobr></span>-->
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<small>
|
|
<HR>
|
|
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('https://new-combats.com/news/', 'news', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Íîâîñòè" type="button" name="forum">
|
|
<? $hgo = $u->testHome(); if(!isset($hgo['id'])){ ?><INPUT onclick="location.href='main.php?homeworld=<? echo $code; ?>';" class="btn btn-inverse" value="Âîçâðàò" type="button" name="combats2"><? } unset($hgo); ?>
|
|
<INPUT id="forum" class="btn btn-inverse" onclick="window.open('https://new-combats.com/forum/', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')" value="Ôîðóì" type="button" name="forum">
|
|
<br />
|
|
<strong>Âíèìàíèå!</strong> Íèêîãäà è íèêîìó íå ãîâîðèòå ïàðîëü îò ñâîåãî ïåðñîíàæà. Íå ââîäèòå ïàðîëü íà äðóãèõ ñàéòàõ, òèïà "íîâûé ãîðîä", "ëîòåðåÿ", "òàì, ãäå âñå äàþò íà õàëÿâó". Ïàðîëü íå íóæåí íè ïàëàäèíàì, íè êëàíàì, íè àäìèíèñòðàöèè, <U>òîëüêî âçëîìùèêàì</U> äëÿ êðàæè âàøåãî ãåðîÿ.<BR>
|
|
<em>Àäìèíèñòðàöèÿ.</em></small> <BR>
|
|
<? echo $rowonmax; ?><BR>
|
|
|
|
</div></td>
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
} |