2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
if ( ! defined ( 'GAME' ))
{
die ();
}
$tattack = '' ;
if ( date ( 'H' ) >= 22 || date ( 'H' ) < 6 ) {
2023-01-10 16:29:32 +00:00
$tattack = '<a style="color:#D8D8D8" style="cursor:pointer" onclick="top.useMagic(\'Нападение на персонажа\',\'night_atack\',\'pal_button8.gif\',1,\'main.php?nightatack=1\');">Напасть</a> ' ;
2022-06-06 21:30:34 +00:00
}
if ( $u -> room [ 'file' ] == 'an/cp2' )
{
if ( date ( " H " ) >= 6 && date ( " H " ) < 22 ) {
$now = 'day' ;
} else {
$now = 'night' ;
}
?>
< script >
2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
if ( date ( " H " ) < 6 || date ( " H " ) >= 22 )
{
?>
function AtackNoWindow ()
{
var dt = document . getElementById ( 'atackDiv' );
if ( dt . style . display == 'none' )
{
dt . style . display = '' ;
} else {
dt . style . display = 'none' ;
}
}
2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
}
?>
var no = 20 ; // snow number
var speed = 15 ; // smaller number moves the snow faster
var sp_rel = 1.4 ; //speed relevation
2023-03-31 18:30:14 +00:00
var snowflake1 = " //img.new-combats.tech/i/itimeges/snow1.gif " ;
var snowflake2 = " //img.new-combats.tech/i/itimeges/snow2.gif " ;
2022-06-06 21:30:34 +00:00
var i , doc_width , doc_height ;
dx = new Array ();
xp = new Array ();
yp = new Array ();
am = new Array ();
stx = new Array ();
sty = new Array ();
Array . prototype . exists = function ( el )
{
for ( var i = 0 ; i < this . length ; i ++ )
if ( this [ i ] == el )
return true ;
return false ;
}
var rooms = [ '0' , '1' ];
function SetVariable ( c ) {
dx [ c ] = 0 ; // set coordinate variables
am [ c ] = Math . random () * 15 ; // set amplitude variables
xp [ c ] = Math . random () * ( doc_width - 35 ) + 0 + am [ c ]; // set position variables
yp [ c ] = 0 ;
stx [ c ] = 0.02 + Math . random () / 10 ; // set step variables
sty [ c ] = 0.7 + Math . random (); // set step variables
}
function DrawWeather ( room ) {
doc_width = document . getElementById ( 'img_ione' ) . width ;
doc_height = document . getElementById ( 'img_ione' ) . height ;
var div = '' ;
for ( i = 0 ; i < no ; ++ i ) {
SetVariable ( i );
2023-01-10 16:29:32 +00:00
div += " <div id= \" dot " + i + " \" style= \" POSITION: absolute; Z-INDEX: 30 " + i + " ; VISIBILITY: visible; TOP: " + 0 + " px; LEFT: " + 0 + " px; \" ><img id= \" im " + i + " \" src= \" " + ( sty [ i ] < sp_rel ? snowflake2 : snowflake1 ) + " \" border= \" 0 \" alt= \" Снежинка \" ></div> " ;
2022-06-06 21:30:34 +00:00
}
document . getElementById ( 'snow' ) . innerHTML = div ;
return 1 ;
}
function WeatherBegin () { // IE main animation function
for ( i = 0 ; i < no ; ++ i ) { // iterate for every dot
yp [ i ] += sty [ i ] < sp_rel ? sty [ i ] / 2 : sty [ i ];
if ( yp [ i ] > doc_height - 40 ) {
SetVariable ( i );
var im = document . getElementById ( 'im' + i );
im . src = ( sty [ i ] < sp_rel ) ? snowflake2 : snowflake1 ;
}
dx [ i ] += stx [ i ];
document . getElementById ( 'dot' + i ) . style . top = yp [ i ];
document . getElementById ( 'dot' + i ) . style . left = xp [ i ] + am [ i ] * Math . sin ( dx [ i ]);
}
setTimeout ( 'WeatherBegin()' , speed );
}
</ script >
< table width = " 100% " border = " 0 " cellspacing = " 0 " cellpadding = " 0 " >
< tr >
< td width = " 250 " valign = " top " >
2023-03-31 16:54:33 +00:00
< ? php $usee = $u -> getInfoPers ( $u -> info [ 'id' ], 0 ); if ( $usee != false ){ echo $usee [ 0 ]; } else { echo 'information is lost.' ; } ?>
2022-06-06 21:30:34 +00:00
</ td >
2023-03-31 16:54:33 +00:00
< td width = " 230 " valign = " top " style = " padding-top:19px; " >< ? php require_once ( 'modules_data/stats_loc.php' ); ?> </td>
2022-06-06 21:30:34 +00:00
< td valign = " top " >< div align = " right " >
< table border = " 0 " cellpadding = " 0 " cellspacing = " 0 " >
< tr align = " right " valign = " top " >
< td >
2023-03-31 16:54:33 +00:00
< ? php if ( $re != '' ){ echo '<font color="red"><b>' . $re . '</b></font>' ; } ?>
2022-06-06 21:30:34 +00:00
< table width = " 500 " border = " 0 " cellspacing = " 0 " cellpadding = " 0 " >
< tr >
< td >
2023-03-31 16:54:33 +00:00
< div style = " position:relative; cursor: pointer; " id = " ione " ><!-- < ? = $now ; ?> -->
2023-03-31 18:30:14 +00:00
< img src = " //img.new-combats.tech/city/angelscity/<?= $now ; ?>/angel_bg2_1.jpg " alt = " " name = " img_ione " width = " 500 " height = " 268 " border = " 1 " id = " img_ione " />
2022-06-06 21:30:34 +00:00
< div id = " buttons_on_image " style = " cursor:pointer; font-weight:bold; color:#D8D8D8; font-size:10px; " >
2023-03-31 16:54:33 +00:00
< ? = $tattack ; ?>
2022-06-06 21:30:34 +00:00
& nbsp ;
2023-03-31 18:30:14 +00:00
< span onMouseMove = " this.runtimeStyle.color = 'white'; " onMouseOut = " this.runtimeStyle.color = this.parentElement.style.color; " onclick = " window.open('/forum', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes') " > Форум </ span > & nbsp ;
2022-06-06 21:30:34 +00:00
</ div >
< script language = " javascript " type = " text/javascript " >
<!--
if ( document . getElementById ( 'ione' ))
{
document . getElementById ( 'ione' ) . appendChild ( document . getElementById ( 'buttons_on_image' ));
document . getElementById ( 'buttons_on_image' ) . style . position = 'absolute' ;
document . getElementById ( 'buttons_on_image' ) . style . bottom = '8px' ;
document . getElementById ( 'buttons_on_image' ) . style . right = '23px' ;
} else {
document . getElementById ( 'buttons_on_image' ) . style . display = 'none' ;
}
-->
</ script >
2023-03-31 18:30:14 +00:00
< div style = " position: absolute; left: 23px; top: 202px; width: 40px; height: 23px; z-index: 94; " >< img < ? php thisInfRm ( '2.180.0.234' ); ?> src="//img.new-combats.tech/city/angelscity/day/ang2strelka.gif" width="34" class="aFilter" height="20" /></div>
2022-06-06 21:30:34 +00:00
2023-03-31 18:30:14 +00:00
< div style = " position: absolute; left: 102px; top: 121px; width: 40px; height: 23px; z-index: 94; " >< img < ? php thisInfRm ( '2.180.0.237' ); ?> src="//img.new-combats.tech/city/angelscity/day/angbank.gif" width="66" class="aFilter" height="90" /></div>
2022-06-06 21:30:34 +00:00
2023-03-31 18:30:14 +00:00
< div style = " position: absolute; left: 234px; top: 44px; width: 40px; height: 23px; z-index: 95; " >< img < ? php thisInfRm ( '2.180.0.xx' ); ?> src="//img.new-combats.tech/city/angelscity/day/ang_1ubkill.gif" width="43" class="aFilter" height="129" /></div>
2022-06-06 21:30:34 +00:00
2023-03-31 18:30:14 +00:00
< div style = " position: absolute; left: 154px; top: 58px; width: 40px; height: 23px; z-index: 94; " >< img < ? php thisInfRm ( '2.180.0.253' ); ?> src="//img.new-combats.tech/city/angelscity/day/ang_hostel.gif" width="82" class="aFilter" height="74" /></div>
2022-06-06 21:30:34 +00:00
2023-03-31 18:30:14 +00:00
< div style = " position: absolute; left: 33px; top: 144px; width: 40px; height: 23px; z-index: 94; " >< img < ? php thisInfRm ( '2.180.0.251' ); ?> src="//img.new-combats.tech/city/angelscity/day/anfflshop.gif" width="70" class="aFilter" height="56" /></div>
2022-06-06 21:30:34 +00:00
2023-03-31 18:30:14 +00:00
< div style = " position: absolute; left: 337px; top: 93px; width: 40px; height: 23px; z-index: 94; " >< img < ? php thisInfRm ( '2.180.0.242' ); ?> src="//img.new-combats.tech/city/angelscity/day/ang_dungeon.gif" width="58" class="aFilter" height="29" /></div>
2022-06-06 21:30:34 +00:00
< div id = " snow " ></ div >
2023-03-31 16:54:33 +00:00
< ? = $goline ; ?>
2022-06-06 21:30:34 +00:00
</ div >
</ td >
</ tr >
</ table >
2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
if ( date ( " H " ) < 6 || date ( " H " ) >= 22 )
{
?>
< div align = " center " id = " atackDiv " style = " display:none; " >
< form method = " post " action = " main.php " >
< table width = " 300 " border = " 0 " cellspacing = " 0 " cellpadding = " 0 " >
< tr >
2023-01-10 16:29:32 +00:00
< td >< div style = " width:300px; padding:3px; margin:7px; background-color:#CCCCCC; border:1px solid #575757; " > Введите логин жертвы :< br />
2022-06-06 21:30:34 +00:00
< input name = " atack " type = " text " id = " atack " size = " 35 " maxlength = " 30 " />
< input type = " submit " name = " button " id = " button " class = " btn " value = " OK " />
</ div ></ td >
</ tr >
</ table >
</ form >
</ div >
2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
}
?>
<!-- -->
< div style = " width:500px; text-align:left; background-color:#D3D3D3; " >
2023-03-31 18:30:14 +00:00
< span style = " white-space:nowrap; padding-left:3px; padding-right:3px; height:10px " >< img src = " //img.new-combats.tech/i/move/links.gif " width = " 9 " height = " 7 " />& nbsp ; < a href = " # " class = " menutop " < ? php thisInfRm ( '2.180.0.234' ); ?> >Центральная площадь</a></span>
< span style = " white-space:nowrap; padding-left:3px; padding-right:3px; height:10px " >< img src = " //img.new-combats.tech/i/move/links.gif " width = " 9 " height = " 7 " />& nbsp ; < a href = " # " class = " menutop " < ? php thisInfRm ( '2.180.0.237' ); ?> >Банк</a></span>
< span style = " white-space:nowrap; padding-left:3px; padding-right:3px; height:10px " >< img src = " //img.new-combats.tech/i/move/links.gif " width = " 9 " height = " 7 " />& nbsp ; < a href = " # " class = " menutop " < ? php thisInfRm ( '2.180.0.253' ); ?> >Общежитие</a></span>
< span style = " white-space:nowrap; padding-left:3px; padding-right:3px; height:10px " >< img src = " //img.new-combats.tech/i/move/links.gif " width = " 9 " height = " 7 " />& nbsp ; < a href = " # " class = " menutop " < ? php thisInfRm ( '2.180.0.242' ); ?> >Вход в Бездну</a></span>
< span style = " white-space:nowrap; padding-left:3px; padding-right:3px; height:10px " >< img src = " //img.new-combats.tech/i/move/links.gif " width = " 9 " height = " 7 " />& nbsp ; < a href = " # " class = " menutop " < ? php thisInfRm ( '2.180.0.251' ); ?> >Цветочный магазин</a></span>
2022-06-06 21:30:34 +00:00
</ div >
<!-- -->
< div style = " display:none; height:0px " id = " moveto " ></ div >
</ td >
2023-03-31 18:30:14 +00:00
< td ></ td >
2022-06-06 21:30:34 +00:00
</ tr >
</ table >
< small >
< HR >
2023-01-10 16:29:32 +00:00
< strong > Внимание !</ strong > Никогда и никому не говорите пароль от своего персонажа . Н е вводите пароль на других сайтах , типа " новый город " , " лотерея " , " там, где все дают на халяву " . Пароль не нужен ни паладинам , ни кланам , ни администрации , < U > только взломщикам </ U > для кражи вашего героя .< BR >
< em > Администрация .</ em ></ small > < BR >
2023-03-31 16:54:33 +00:00
< ? = $rowonmax ; ?> <BR>
2022-06-06 21:30:34 +00:00
</ div ></ td >
</ tr >
</ table >
2023-03-31 18:42:06 +00:00
< ? php
2022-06-06 21:30:34 +00:00
}
?>