Register for your free account! | Forgot your password?

You last visited: Today at 13:57

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[WorldMap] Homepage Addon

Discussion on [WorldMap] Homepage Addon within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

View Poll Results: Wie findest du das Thema ?
Super 112 59.57%
Naja geht 23 12.23%
Schlecht 21 11.17%
Ich enthalte mich. 32 17.02%
Voters: 188. You may not vote on this poll

Reply
 
Old   #1

 
LordKill's Avatar
 
elite*gold: 41
Join Date: Oct 2007
Posts: 1,950
Received Thanks: 3,120
[WorldMap] Homepage Addon


Guten Morgen Mt2 Section.
Da nun wieder etwas public ist was ich gemacht habe versuche ich euch hier mit dem Tutorial zu zeigen wie man so etwas anstellen kann und gebe ich euch ein template dafür.

Fangen wir einmal an.
Wir erstellen eine neue php datei und schreiben zuerst die verbindungsdaten zur db hin, in meinem fall ist dies in einer anderen datei daher include ich diese.

PHP Code:
<?
require_once 'conn.php';
?>
Als nächstes müssen wir ja gucken ob der Spieler online ist oder nicht.
Die Datenbank wird erst nach einigen Minuten geupdated ich habe deshalb eine Verzögerung von 10 Minuten genommen

Vorab brauchen wir erstmal die aktuelle zeit dies machen wir wie folgt:
PHP Code:
$i 0;
 
$timestamp time();
 
$year1 date("Y",$timestamp);
 
$month12 date("m",$timestamp);
 
$day date("d",$timestamp);
 
$datum date("d.m.Y",$timestamp);
 
$hour date("H",$timestamp);
 
$min date("i",$timestamp);
 
$uhrzeit date("H:i:s",$timestamp); 
Nun habe ich paar Variablen mit dem Wert 0 versehen.
PHP Code:
$dayonline 0;
$currentonline 0;
$currentonlinered 0;
$currentonlineyel 0;
$currentonlineblue 0;
$currentonlineeis 0;
$currentonlinefeuer 0;
$currentonlinewueste 0;
$currentonlineot 0;
$currentonlinedt 0;
$currentonlinegw 0;
$currentonlinerw 0;
$currentonlinesd 0;
$currentonlinetempel 0
Diese brauchen wir gleich evtl nochmal. Dies hängt von eurem Wunsch ab ob ihr dies anzeigen möchtet oder nicht.

nun schauen wir mal wie viele "in diesem Moment" online sind.
PHP Code:
    require_once 'conn.php';
    
mysql_select_db("player");
    
$exec="select id from player";
    
$result=mysql_query($exec);
    
$numplayer mysql_numrows($result); 
Zuerst wurden alle spieler gezählt. das dient nur der Statistik. aber jetzt beachten wir die zeitangabe.
PHP Code:
    $exec="select id,last_play from player";
    
$result=mysql_query($exec);
  while(
$row mysql_fetch_object($result))
    {
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);


if(
$year33 == $year1 and $month12 == $month33 and $day == $day33){
$dayonline $dayonline+1;
}else{}

$year33,$month33,$day33 wurden aus der db ausgelesen und jetzt prüfen wir mit der anderen abfrage ob die auch an diesem Tag online waren. Diese abfrage zählt Anzahl der Spieler die an diesem Tag online waren.
Wir gehen einen Schritt weiter und schauen wer in den letzen 10 Minuten online war (soll die aktuelle online Anzahl ermitteln...)

PHP Code:
    $exec="select map_index,last_play from player";
    
$result=mysql_query($exec);
  while(
$row mysql_fetch_object($result))
    {
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);
$map $row->map_index;

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
$currentonline $currentonline+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map 6){
$currentonlinered $currentonlinered+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map 20 and $map 26){
$currentonlineyel $currentonlineyel+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map 40 and $map 46){
$currentonlineblue $currentonlineblue+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map == 61){
$currentonlineeis $currentonlineeis+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map == 62){
$currentonlinefeuer $currentonlinefeuer+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map == 63){
$currentonlinewueste $currentonlinewueste+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map == 64){
$currentonlineot $currentonlineot+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map == 66){
$currentonlinedt $currentonlinedt+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map == 67){
$currentonlinegw $currentonlinegw+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map == 68){
$currentonlinerw $currentonlinerw+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map == 104){
$currentonlinesd $currentonlinesd+1;
}else{}
if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map == 65){
$currentonlinetempel $currentonlinetempel+1;
}else{}

Die Variablen sollten euch helfen zu verstehen was abgefragt wird und was getan wird.

Quote:
PHP Code:
if($year33 == $year1 and $month12 == $month33 and $day == $day33 and  $hour33 == $hour and $min33 $min-10){
$currentonline $currentonline+1;
}else{} 
Diese Abfrage zählt die aktuellen Spiele die Online sind in den letzen 10 Minuten. D.h wenn ihr den Server rebootet und die Anzeige zeigt an, dass welche online sind ist das ein Schönheitsfehler. (Die Zeit könnt ihr hier auch einstellen. Bsp letze Stunde usw nur dann müsst ihr nicht nur die Minuten beachten. Es könnten hier auch kleine Fehler entstehen aber das werdet ihr evtl selber bemerken.)

Jetzt würde eure "Landkarte" oder Auswahl der Maps folgen.
Meine gebe ich jetzt nicht her verständlich oder?

als nächstes könnte man noch auf der anfangsseite der Worldmap die Statistik anzeigen die wir oben abgefragt haben.

PHP Code:
<table width="278" border="0">
  <tr>
    <td width="268" colspan="2"><p>Heute waren bisher <? echo $dayonline ?> Spieler online.</p>
      <p>Im moment sind <? echo $currentonline ?> Spieler online.</p>
      <table width="200" border="0" align="center">
        <tr>
          <td width="113">Blaues Reich</td>
          <td width="71"><? echo $currentonlineblue ?></td>
        </tr>
        <tr>
          <td>Rotes Reich</td>
          <td><? echo $currentonlinered ?></td>
        </tr>
        <tr>
          <td>Gelbes Reich</td>
          <td><? echo $currentonlineyel ?></td>
        </tr>
        <tr>
          <td>Orktal</td>
          <td><? echo $currentonlineot ?></td>
        </tr>
        <tr>
          <td>Eisland</td>
          <td><? echo $currentonlineeis ?></td>
        </tr>
        <tr>
          <td>Wüste</td>
          <td><? echo $currentonlinewueste ?></td>
        </tr>
        <tr>
          <td>Feuerland</td>
          <td><? echo $currentonlinefeuer ?></td>
        </tr>
        <tr>
          <td>Tempel</td>
          <td><? echo $currentonlinetempel ?></td>
        </tr>
      </table>
      <p>&nbsp;</p></td>
  </tr>
  </table>
Das ist euch überlassen.

Wir untermauern den Abfrageteil der Statistik mit einem Get parameter damit dies nur angezeigt wird wenn im link auch der parameter gegeben ist.
ein kleines beispiel wie es bis jetzt aussehen könnte:
PHP Code:
<?
require_once 'conn.php';

$i 0;
 
$timestamp time();
 
$year1 date("Y",$timestamp);
 
$month12 date("m",$timestamp);
 
$day date("d",$timestamp);
 
$datum date("d.m.Y",$timestamp);
 
$hour date("H",$timestamp);
 
$min date("i",$timestamp);
 
$uhrzeit date("H:i:s",$timestamp);
$page $_GET['page']; // linkbsp : test.de/index.php?page=index dann würde der untere inhalt angezeigt werden.
if($page=='index'){
    
$dayonline 0;
$currentonline 0;
$currentonlinered 0;
$currentonlineyel 0;
$currentonlineblue 0;
$currentonlineeis 0;
$currentonlinefeuer 0;
$currentonlinewueste 0;
$currentonlineot 0;
$currentonlinedt 0;
$currentonlinegw 0;
$currentonlinerw 0;
$currentonlinesd 0;
$currentonlinetempel 0;


 
 
//################################################################################################################
    
require_once 'conn.php';
    
mysql_select_db("player");
    
$exec="select id from player";
    
$result=mysql_query($exec);
    
$numplayer mysql_numrows($result);
//################################################################################################################    
    
$exec="select id,last_play from player";
    
$result=mysql_query($exec);
  while(
$row mysql_fetch_object($result))
    {
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);


if(
$year33 == $year1 and $month12 == $month33 and $day == $day33){
$dayonline $dayonline+1;
}else{}
}
//################################################################################################################
    
$exec="select map_index,last_play from player";
    
$result=mysql_query($exec);
  while(
$row mysql_fetch_object($result))
    {
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);
$map $row->map_index;

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
$currentonline $currentonline+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map 6){
$currentonlinered $currentonlinered+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map 20 and $map 26){
$currentonlineyel $currentonlineyel+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map 40 and $map 46){
$currentonlineblue $currentonlineblue+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map == 61){
$currentonlineeis $currentonlineeis+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map == 62){
$currentonlinefeuer $currentonlinefeuer+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map == 63){
$currentonlinewueste $currentonlinewueste+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map == 64){
$currentonlineot $currentonlineot+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map == 66){
$currentonlinedt $currentonlinedt+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map == 67){
$currentonlinegw $currentonlinegw+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map == 68){
$currentonlinerw $currentonlinerw+1;
}else{}

if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map == 104){
$currentonlinesd $currentonlinesd+1;
}else{}
if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10 and $map == 65){
$currentonlinetempel $currentonlinetempel+1;
}else{}
}
    
?>

<center>
<a href="map.php?page=rot1"><img src="Rot1.png" border="0" /></a>
<a href="map.php?page=rot2"><img src="Rot1.png" border="0" /></a>
<!-- Kann ausgebaut werden.-->
<br>
<table width="278" border="0">
  <tr>
    <td width="268" colspan="2"><p>Heute waren bisher <? echo $dayonline ?> Spieler online.</p>
      <p>Im moment sind <? echo $currentonline ?> Spieler online.</p>
      <table width="200" border="0" align="center">
        <tr>
          <td width="113">Blaues Reich</td>
          <td width="71"><? echo $currentonlineblue ?></td>
        </tr>
        <tr>
          <td>Rotes Reich</td>
          <td><? echo $currentonlinered ?></td>
        </tr>
        <tr>
          <td>Gelbes Reich</td>
          <td><? echo $currentonlineyel ?></td>
        </tr>
        <tr>
          <td>Orktal</td>
          <td><? echo $currentonlineot ?></td>
        </tr>
        <tr>
          <td>Eisland</td>
          <td><? echo $currentonlineeis ?></td>
        </tr>
        <tr>
          <td>Wüste</td>
          <td><? echo $currentonlinewueste ?></td>
        </tr>
        <tr>
          <td>Feuerland</td>
          <td><? echo $currentonlinefeuer ?></td>
        </tr>
        <tr>
          <td>Tempel</td>
          <td><? echo $currentonlinetempel ?></td>
        </tr>
      </table>
      <p>&nbsp;</p></td>
  </tr>
  </table>
</center>
<center>
<?
}
... 
weiterer Inhalt kommt ja noch
Nun wollen wir ja wenn wir auf die Links klicken, dass eine map angezeigt wird mit Spielern drauf.

PHP Code:
// BLAU 1
if($page=='blau1'){
    ?>
 <style type="text/css">
<!--
body {
    background-color: #ceb982;
}
#bild {
    position:absolute;
    top:14px;
    left:1px;
}
<?
mysql_select_db
('player');
    
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='41'";
    
$result=mysql_query($exec);
    
$i 0;
  while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);
            if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-921600)/500);
      
$y round(($row->y-204800)/500);
 
?>

#test<? echo $i?>{
    position:absolute;
    top:<? echo $y?>px;
    left:<? echo $x?>px;
    color:#F00;
}
 <?
 $i 
$i+1;
          }
 }
?>
-->
</style>
<div class="bild" id="bild"><img src="Blau1.png" style="top:5px; left:0px"></div>
 <?
 $i 
0;
     
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='41'";
    
$result=mysql_query($exec);
 while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);

           if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-921600)/500);
      
$y round(($row->y-204800)/500);
      
$charname $row->name;
      
$level $row->level;
      
$id $row->id;
      
$accountid $row->account_id;

     
$exec1="select guild_id from guild_member where pid='$id'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
    
$guildid $row->guild_id;
    
$exec1="select name from guild where id='$guildid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$gildenname $row->name;    

    
$exec1="select empire from player_index where id='$accountid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$empire $row->empire;    
    if(
$empire==1){$empire="rotes Reich";}
    if(
$empire==2){$empire="gelbes Reich";}
    if(
$empire==3){$empire="blaues Reich";}
 
?>
<div class="test<? echo $i?>" id="test<? echo $i?>" style="top:<? echo $y?>px; left:<? echo $x?>px"><b><a onmouseover="document.getElementById('infobox<? echo $i?>').style.visibility='visible'" onmouseout="document.getElementById('infobox<? echo $i ?>').style.visibility='hidden'" style="cursor:default">.</a></b>
</div>
 
 <div id="infobox<? echo $i?>" style="position:absolute; visibility:hidden; top:<? echo $y?>px; left:<? echo $x+15?>px">
<table width="150" border="1" cellpadding="1" cellspacing="0" bgcolor="#666666" style="color:#FFF">
  <tr>
    <td valign="top">Name:</td>
    <td valign="top"><? echo $charname ?></td>
  </tr>
  <tr>
    <td valign="top">Level</td>
    <td valign="top"><? echo $level ?></td>
  </tr>
  <tr>
    <td valign="top">Gilde:</td>
    <td valign="top"><? 
    
if(strlen($gildenname)<2){$gildenname "Keine Gilde";}
    echo 
$gildenname ;
    
?>    
    </td>  
  </tr>
  <tr>
    <td valign="top">Reich</td>
    <td valign="top"><? echo $empire ?></td>
  </tr>
</table>
</div>
<?
$i 
$i +1;
}
 }
 
?>
<br /><br /><br /><br /><br /><br /><br /><br />
<center>Möglicher back link.</center>
<?
}
Die Position des bildes könnt ihr natürlich verändern, dann müsstet ihr die punkte auf der karte dementsprechen mitverändern.

Dies macht ihr dann für jede map und ihr seit fertig ;D
Was noch zu beachten ist:
Die Koordinaten in der Db wurden mit einem Wert addiert dieser steht in den Serverfiles.
Das ist eine nicht elegante Lösung von mir, da das Script schon älter ist und ich es auf zeitdruck geschrieben habe + probiert habe bis es funktioniert hat, daher könnte es sein dass überflüssige Codeschnippsel sich wiederholen.

Hier geht der 2. Teil Weiter bis zum Ende.

PHP Code:
// BLAU 1
if($page=='blau1'){
    ?>
 <style type="text/css">
<!--
body {
    background-color: #ceb982;
}
#bild {
    position:absolute;
    top:14px;
    left:1px;
}
<?
require_once 'conn.php';
mysql_select_db('player');
    
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='41'";
    
$result=mysql_query($exec);
    
$i 0;
  while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);
            if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-921600)/500);
      
$y round(($row->y-204800)/500);
 
?>

#test<? echo $i?>{
    position:absolute;
    top:<? echo $y?>px;
    left:<? echo $x?>px;
    color:#F00;
}
 <?
 $i 
$i+1;
          }
 }
?>
-->
</style>
<div class="bild" id="bild"><img src="Blau1.png" style="top:5px; left:0px"></div>
 <?
 $i 
0;
     
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='41'";
    
$result=mysql_query($exec);
 while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);

           if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-921600)/500);
      
$y round(($row->y-204800)/500);
      
$charname $row->name;
      
$level $row->level;
      
$id $row->id;
      
$accountid $row->account_id;

     
$exec1="select guild_id from guild_member where pid='$id'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
    
$guildid $row->guild_id;
    
$exec1="select name from guild where id='$guildid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$gildenname $row->name;    

    
$exec1="select empire from player_index where id='$accountid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$empire $row->empire;    
    if(
$empire==1){$empire="rotes Reich";}
    if(
$empire==2){$empire="gelbes Reich";}
    if(
$empire==3){$empire="blaues Reich";}
 
?>
<div class="test<? echo $i?>" id="test<? echo $i?>" style="top:<? echo $y?>px; left:<? echo $x?>px"><b><a onmouseover="document.getElementById('infobox<? echo $i?>').style.visibility='visible'" onmouseout="document.getElementById('infobox<? echo $i ?>').style.visibility='hidden'" style="cursor:default">.</a></b>
</div>
 
 <div id="infobox<? echo $i?>" style="position:absolute; visibility:hidden; top:<? echo $y?>px; left:<? echo $x+15?>px">
<table width="150" border="1" cellpadding="1" cellspacing="0" bgcolor="#666666" style="color:#FFF">
  <tr>
    <td valign="top">Name:</td>
    <td valign="top"><? echo $charname ?></td>
  </tr>
  <tr>
    <td valign="top">Level</td>
    <td valign="top"><? echo $level ?></td>
  </tr>
  <tr>
    <td valign="top">Gilde:</td>
    <td valign="top"><? 
    
if(strlen($gildenname)<2){$gildenname "Keine Gilde";}
    echo 
$gildenname ;
    
?>    
    </td>  
  </tr>
  <tr>
    <td valign="top">Reich</td>
    <td valign="top"><? echo $empire ?></td>
  </tr>
</table>
</div>
<?
$i 
$i +1;
}
 }
 
?>
<br /><br /><br /><br /><br /><br /><br /><br />
<center>Möglicher back link.</center>
<?
}
// BLAU 2
if($page=='blau2'){
    
?>
 <style type="text/css">
<!--
body {
    background-color: #ceb982;
}
#bild {
    position:absolute;
    top:14px;
    left:1px;
}
<?
require_once 'conn.php';
mysql_select_db('player');
    
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='43'";
    
$result=mysql_query($exec);
    
$i 0;
  while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);
            if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-819200)/400);
      
$y round(($row->y-204800)/400);

 
?>

#test<? echo $i?>{
    position:absolute;
    top:<? echo $y?>px;
    left:<? echo $x?>px;
    color:#F00;
}
 <?
 $i 
$i+1;
          }
 }
?>
-->
</style>
<div class="bild" id="bild"><img src="Blau2.bmp" style="top:5px; left:0px"></div>
 <?
 $i 
0;
     
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='43'";
    
$result=mysql_query($exec);
 while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);

           if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-819200)/400);
      
$y round(($row->y-204800)/400);
      
$charname $row->name;
      
$level $row->level;
      
$id $row->id;
      
$accountid $row->account_id;

     
$exec1="select guild_id from guild_member where pid='$id'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
    
$guildid $row->guild_id;
    
$exec1="select name from guild where id='$guildid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$gildenname $row->name;    

    
$exec1="select empire from player_index where id='$accountid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$empire $row->empire;    
    if(
$empire==1){$empire="rotes Reich";}
    if(
$empire==2){$empire="gelbes Reich";}
    if(
$empire==3){$empire="blaues Reich";}
 
?>
<div class="test<? echo $i?>" id="test<? echo $i?>" style="top:<? echo $y?>px; left:<? echo $x?>px"><b><a onmouseover="document.getElementById('infobox<? echo $i?>').style.visibility='visible'" onmouseout="document.getElementById('infobox<? echo $i ?>').style.visibility='hidden'" style="cursor:default">.</a></b>
</div>
 
 <div id="infobox<? echo $i?>" style="position:absolute; visibility:hidden; top:<? echo $y?>px; left:<? echo $x+15?>px">
<table width="150" border="1" cellpadding="1" cellspacing="0" bgcolor="#666666" style="color:#FFF">
  <tr>
    <td valign="top">Name:</td>
    <td valign="top"><? echo $charname ?></td>
  </tr>
  <tr>
    <td valign="top">Level</td>
    <td valign="top"><? echo $level ?></td>
  </tr>
  <tr>
    <td valign="top">Gilde:</td>
    <td valign="top"><? 
    
if(strlen($gildenname)<2){$gildenname "Keine Gilde";}
    echo 
$gildenname ;
    
?>    
    </td>  
  </tr>
  <tr>
    <td valign="top">Reich</td>
    <td valign="top"><? echo $empire ?></td>
  </tr>
</table>
</div>
<?
$i 
$i +1;
}
 }
 
?>
<br /><br /><br /><br /><br /><br /><br /><br />
<center>Möglicher back link.</center>
<?
}
//ROT1 
if($page=='rot1'){
    
?>
 <style type="text/css">
<!--
body {
    background-color: #ceb982;
}
#bild {
    position:absolute;
    top:14px;
    left:1px;
}
<?
require_once 'conn.php';
mysql_select_db('player');

    
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='1'";
    
$result=mysql_query($exec);
    
$i 0;
  while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);
            if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-409600)/500);
      
$y round(($row->y-896000)/500);

 
?>

#test<? echo $i?>{
    position:absolute;
    top:<? echo $y?>px;
    left:<? echo $x?>px;
    color:#F00;
}
 <?
 $i 
$i+1;
          }
 }
?>
-->
</style>
<div class="bild" id="bild"><img src="Rot1.png" style="top:5px; left:0px"></div>
 <?
 $i 
0;
     
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='1'";
    
$result=mysql_query($exec);
 while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);

           if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-409600)/500);
      
$y round(($row->y-896000)/500);
      
$charname $row->name;
      
$level $row->level;
      
$id $row->id;
      
$accountid $row->account_id;

     
$exec1="select guild_id from guild_member where pid='$id'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
    
$guildid $row->guild_id;
    
$exec1="select name from guild where id='$guildid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$gildenname $row->name;    

    
$exec1="select empire from player_index where id='$accountid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$empire $row->empire;    
    if(
$empire==1){$empire="rotes Reich";}
    if(
$empire==2){$empire="gelbes Reich";}
    if(
$empire==3){$empire="blaues Reich";}
 
?>
<div class="test<? echo $i?>" id="test<? echo $i?>" style="top:<? echo $y?>px; left:<? echo $x?>px"><b><a onmouseover="document.getElementById('infobox<? echo $i?>').style.visibility='visible'" onmouseout="document.getElementById('infobox<? echo $i ?>').style.visibility='hidden'" style="cursor:default">.</a></b>
</div>
 
 <div id="infobox<? echo $i?>" style="position:absolute; visibility:hidden; top:<? echo $y?>px; left:<? echo $x+15?>px">
<table width="150" border="1" cellpadding="1" cellspacing="0" bgcolor="#666666" style="color:#FFF">
  <tr>
    <td valign="top">Name:</td>
    <td valign="top"><? echo $charname ?></td>
  </tr>
  <tr>
    <td valign="top">Level</td>
    <td valign="top"><? echo $level ?></td>
  </tr>
  <tr>
    <td valign="top">Gilde:</td>
    <td valign="top"><? 
    
if(strlen($gildenname)<2){$gildenname "Keine Gilde";}
    echo 
$gildenname ;
    
?>    
    </td>  
  </tr>
  <tr>
    <td valign="top">Reich</td>
    <td valign="top"><? echo $empire ?></td>
  </tr>
</table>
</div>
<?
$i 
$i +1;
}
 }
 
?>
<br /><br /><br /><br /><br /><br /><br /><br />
<center>Möglicher back link.</center>
<?
}
//rot2
if($page=='rot2'){
    
?>
 <style type="text/css">
<!--
body {
    background-color: #ceb982;
}
#bild {
    position:absolute;
    top:14px;
    left:1px;
}
<?
require_once 'conn.php';
mysql_select_db('player');
    
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='3'";
    
$result=mysql_query($exec);
    
$i 0;
  while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);
            if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-307200)/400);
      
$y round(($row->y-819200)/400);

 
?>

#test<? echo $i?>{
    position:absolute;
    top:<? echo $y?>px;
    left:<? echo $x?>px;
    color:#F00;
}
 <?
 $i 
$i+1;
          }
 }
?>
-->
</style>
<div class="bild" id="bild"><img src="Rot2.bmp" style="top:5px; left:0px"></div>
 <?
 $i 
0;
     
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='3'";
    
$result=mysql_query($exec);
 while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);

           if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-307200)/400);
      
$y round(($row->y-819200)/400);
      
$charname $row->name;
      
$level $row->level;
      
$id $row->id;
      
$accountid $row->account_id;

     
$exec1="select guild_id from guild_member where pid='$id'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
    
$guildid $row->guild_id;
    
$exec1="select name from guild where id='$guildid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$gildenname $row->name;    

    
$exec1="select empire from player_index where id='$accountid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$empire $row->empire;    
    if(
$empire==1){$empire="rotes Reich";}
    if(
$empire==2){$empire="gelbes Reich";}
    if(
$empire==3){$empire="blaues Reich";}
 
?>
<div class="test<? echo $i?>" id="test<? echo $i?>" style="top:<? echo $y?>px; left:<? echo $x?>px"><b><a onmouseover="document.getElementById('infobox<? echo $i?>').style.visibility='visible'" onmouseout="document.getElementById('infobox<? echo $i ?>').style.visibility='hidden'" style="cursor:default">.</a></b>
</div>
 
 <div id="infobox<? echo $i?>" style="position:absolute; visibility:hidden; top:<? echo $y?>px; left:<? echo $x+15?>px">
<table width="150" border="1" cellpadding="1" cellspacing="0" bgcolor="#666666" style="color:#FFF">
  <tr>
    <td valign="top">Name:</td>
    <td valign="top"><? echo $charname ?></td>
  </tr>
  <tr>
    <td valign="top">Level</td>
    <td valign="top"><? echo $level ?></td>
  </tr>
  <tr>
    <td valign="top">Gilde:</td>
    <td valign="top"><? 
    
if(strlen($gildenname)<2){$gildenname "Keine Gilde";}
    echo 
$gildenname ;
    
?>    
    </td>  
  </tr>
  <tr>
    <td valign="top">Reich</td>
    <td valign="top"><? echo $empire ?></td>
  </tr>
</table>
</div>
<?
$i 
$i +1;
}
 }
 
?>
<br /><br /><br /><br /><br /><br /><br /><br />
<center>Möglicher back link.</center>
<?
}
//Gelb1 
if($page=='gelb1'){
    
?>
 <style type="text/css">
<!--
body {
    background-color: #ceb982;
}
#bild {
    position:absolute;
    top:14px;
    left:1px;
}
<?
require_once 'conn.php';
mysql_select_db('player');
    
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='21'";
    
$result=mysql_query($exec);
    
$i 0;
  while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);
            if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-0)/500);
      
$y round(($row->y-102400)/500);

 
?>

#test<? echo $i?>{
    position:absolute;
    top:<? echo $y?>px;
    left:<? echo $x?>px;
    color:#F00;
}
 <?
 $i 
$i+1;
          }
 }
?>
-->
</style>
<div class="bild" id="bild"><img src="Gelb1.png" style="top:5px; left:0px"></div>
 <?
 $i 
0;
     
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='21'";
    
$result=mysql_query($exec);
 while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);

           if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-0)/500);
      
$y round(($row->y-102400)/500);
      
$charname $row->name;
      
$level $row->level;
      
$id $row->id;
      
$accountid $row->account_id;

     
$exec1="select guild_id from guild_member where pid='$id'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
    
$guildid $row->guild_id;
    
$exec1="select name from guild where id='$guildid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$gildenname $row->name;    

    
$exec1="select empire from player_index where id='$accountid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$empire $row->empire;    
    if(
$empire==1){$empire="rotes Reich";}
    if(
$empire==2){$empire="gelbes Reich";}
    if(
$empire==3){$empire="blaues Reich";}
 
?>
<div class="test<? echo $i?>" id="test<? echo $i?>" style="top:<? echo $y?>px; left:<? echo $x?>px"><b><a onmouseover="document.getElementById('infobox<? echo $i?>').style.visibility='visible'" onmouseout="document.getElementById('infobox<? echo $i ?>').style.visibility='hidden'" style="cursor:default">.</a></b>
</div>
 
 <div id="infobox<? echo $i?>" style="position:absolute; visibility:hidden; top:<? echo $y?>px; left:<? echo $x+15?>px">
<table width="150" border="1" cellpadding="1" cellspacing="0" bgcolor="#666666" style="color:#FFF">
  <tr>
    <td valign="top">Name:</td>
    <td valign="top"><? echo $charname ?></td>
  </tr>
  <tr>
    <td valign="top">Level</td>
    <td valign="top"><? echo $level ?></td>
  </tr>
  <tr>
    <td valign="top">Gilde:</td>
    <td valign="top"><? 
    
if(strlen($gildenname)<2){$gildenname "Keine Gilde";}
    echo 
$gildenname ;
    
?>    
    </td>  
  </tr>
  <tr>
    <td valign="top">Reich</td>
    <td valign="top"><? echo $empire ?></td>
  </tr>
</table>
</div>
<?
$i 
$i +1;
}
 }
 
?>
<br /><br /><br /><br /><br /><br /><br /><br />
<center>Möglicher back link.</center>
<?
}
//GELB2
if($page=='gelb2'){
    
?>
 <style type="text/css">
<!--
body {
    background-color: #ceb982;
}
#bild {
    position:absolute;
    top:14px;
    left:1px;
}
<?
require_once 'conn.php';
mysql_select_db('player');
    
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='23'";
    
$result=mysql_query($exec);
    
$i 0;
  while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);
            if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-102400)/400);
      
$y round(($row->y-204800)/400);

 
?>

#test<? echo $i?>{
    position:absolute;
    top:<? echo $y?>px;
    left:<? echo $x?>px;
    color:#F00;
}
 <?
 $i 
$i+1;
          }
 }
?>
-->
</style>
<div class="bild" id="bild"><img src="Gelb2.bmp" style="top:5px; left:0px"></div>
 <?
 $i 
0;
     
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='23'";
    
$result=mysql_query($exec);
 while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);

           if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-102400)/400);
      
$y round(($row->y-204800)/400);
      
$charname $row->name;
      
$level $row->level;
      
$id $row->id;
      
$accountid $row->account_id;

     
$exec1="select guild_id from guild_member where pid='$id'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
    
$guildid $row->guild_id;
    
$exec1="select name from guild where id='$guildid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$gildenname $row->name;    

    
$exec1="select empire from player_index where id='$accountid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$empire $row->empire;    
    if(
$empire==1){$empire="rotes Reich";}
    if(
$empire==2){$empire="gelbes Reich";}
    if(
$empire==3){$empire="blaues Reich";}
 
?>
<div class="test<? echo $i?>" id="test<? echo $i?>" style="top:<? echo $y?>px; left:<? echo $x?>px"><b><a onmouseover="document.getElementById('infobox<? echo $i?>').style.visibility='visible'" onmouseout="document.getElementById('infobox<? echo $i ?>').style.visibility='hidden'" style="cursor:default">.</a></b>
</div>
 
 <div id="infobox<? echo $i?>" style="position:absolute; visibility:hidden; top:<? echo $y?>px; left:<? echo $x+15?>px">
<table width="150" border="1" cellpadding="1" cellspacing="0" bgcolor="#666666" style="color:#FFF">
  <tr>
    <td valign="top">Name:</td>
    <td valign="top"><? echo $charname ?></td>
  </tr>
  <tr>
    <td valign="top">Level</td>
    <td valign="top"><? echo $level ?></td>
  </tr>
  <tr>
    <td valign="top">Gilde:</td>
    <td valign="top"><? 
    
if(strlen($gildenname)<2){$gildenname "Keine Gilde";}
    echo 
$gildenname ;
    
?>    
    </td>  
  </tr>
  <tr>
    <td valign="top">Reich</td>
    <td valign="top"><? echo $empire ?></td>
  </tr>
</table>
</div>
<?
$i 
$i +1;
}
 }
 
?>
<br /><br /><br /><br /><br /><br /><br /><br />
<center>Möglicher back link.</center>
<?
}
//Orktal 
if($page=='ot'){
    
?>
 <style type="text/css">
<!--
body {
    background-color: #ceb982;
}
#bild {
    position:absolute;
    top:14px;
    left:1px;
}
<?
require_once 'conn.php';
mysql_select_db('player');
    
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='64'";
    
$result=mysql_query($exec);
    
$i 0;
  while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);
            if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-256000)/600);
      
$y round(($row->y-665600)/600);

 
?>

#test<? echo $i?>{
    position:absolute;
    top:<? echo $y?>px;
    left:<? echo $x?>px;
    color:#F00;
}
 <?
 $i 
$i+1;
          }
 }
?>
-->
</style>
<div class="bild" id="bild"><img src="Orktal.bmp" style="top:5px; left:0px"></div>
 <?
 $i 
0;
     
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='64'";
    
$result=mysql_query($exec);
 while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);

           if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-256000)/600);
      
$y round(($row->y-665600)/600);
      
$charname $row->name;
      
$level $row->level;
      
$id $row->id;
      
$accountid $row->account_id;

     
$exec1="select guild_id from guild_member where pid='$id'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
    
$guildid $row->guild_id;
    
$exec1="select name from guild where id='$guildid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$gildenname $row->name;    

    
$exec1="select empire from player_index where id='$accountid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$empire $row->empire;    
    if(
$empire==1){$empire="rotes Reich";}
    if(
$empire==2){$empire="gelbes Reich";}
    if(
$empire==3){$empire="blaues Reich";}
 
?>
<div class="test<? echo $i?>" id="test<? echo $i?>" style="top:<? echo $y?>px; left:<? echo $x?>px"><b><a onmouseover="document.getElementById('infobox<? echo $i?>').style.visibility='visible'" onmouseout="document.getElementById('infobox<? echo $i ?>').style.visibility='hidden'" style="cursor:default">.</a></b>
</div>
 
 <div id="infobox<? echo $i?>" style="position:absolute; visibility:hidden; top:<? echo $y?>px; left:<? echo $x+15?>px">
<table width="150" border="1" cellpadding="1" cellspacing="0" bgcolor="#666666" style="color:#FFF">
  <tr>
    <td valign="top">Name:</td>
    <td valign="top"><? echo $charname ?></td>
  </tr>
  <tr>
    <td valign="top">Level</td>
    <td valign="top"><? echo $level ?></td>
  </tr>
  <tr>
    <td valign="top">Gilde:</td>
    <td valign="top"><? 
    
if(strlen($gildenname)<2){$gildenname "Keine Gilde";}
    echo 
$gildenname ;
    
?>    
    </td>  
  </tr>
  <tr>
    <td valign="top">Reich</td>
    <td valign="top"><? echo $empire ?></td>
  </tr>
</table>
</div>
<?
$i 
$i +1;
}
 }
 
?>
<br /><br /><br /><br /><br /><br /><br /><br />
<center>Möglicher back link.</center>
<?
}
//Eisland
if($page=='eisland'){
    
?>
 <style type="text/css">
<!--
body {
    background-color: #ceb982;
}
#bild {
    position:absolute;
    top:14px;
    left:1px;
}
<?
require_once 'conn.php';
mysql_select_db('player');
    
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='61'";
    
$result=mysql_query($exec);
    
$i 0;
  while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);
            if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-358400)/600);
      
$y round(($row->y-153600)/600);

 
?>

#test<? echo $i?>{
    position:absolute;
    top:<? echo $y?>px;
    left:<? echo $x?>px;
    color:#F00;
}
 <?
 $i 
$i+1;
          }
 }
?>
-->
</style>
<div class="bild" id="bild">
<img src="Eisland.bmp" style="top:5px; left:0px" border=0 alt="">
</div>

 <?
 $i 
0;
     
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='61'";
    
$result=mysql_query($exec);
 while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);

           if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-358400)/600);
      
$y round(($row->y-153600)/600);
      
$charname $row->name;
      
$level $row->level;
      
$id $row->id;
      
$accountid $row->account_id;

     
$exec1="select guild_id from guild_member where pid='$id'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
    
$guildid $row->guild_id;
    
$exec1="select name from guild where id='$guildid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$gildenname $row->name;    

    
$exec1="select empire from player_index where id='$accountid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$empire $row->empire;    
    if(
$empire==1){$empire="rotes Reich";}
    if(
$empire==2){$empire="gelbes Reich";}
    if(
$empire==3){$empire="blaues Reich";}
 
?>
<div class="test<? echo $i?>" id="test<? echo $i?>" style="top:<? echo $y?>px; left:<? echo $x?>px"><b><a onmouseover="document.getElementById('infobox<? echo $i?>').style.visibility='visible'" onmouseout="document.getElementById('infobox<? echo $i ?>').style.visibility='hidden'" style="cursor:default">.</a></b>
</div>
 
 <div id="infobox<? echo $i?>" style="position:absolute; visibility:hidden; top:<? echo $y?>px; left:<? echo $x+15?>px">
<table width="150" border="1" cellpadding="1" cellspacing="0" bgcolor="#666666" style="color:#FFF">
  <tr>
    <td valign="top">Name:</td>
    <td valign="top"><? echo $charname ?></td>
  </tr>
  <tr>
    <td valign="top">Level</td>
    <td valign="top"><? echo $level ?></td>
  </tr>
  <tr>
    <td valign="top">Gilde:</td>
    <td valign="top"><? 
    
if(strlen($gildenname)<2){$gildenname "Keine Gilde";}
    echo 
$gildenname ;
    
?>    
    </td>  
  </tr>
  <tr>
    <td valign="top">Reich</td>
    <td valign="top"><? echo $empire ?></td>
  </tr>
</table>
</div>
<?
$i 
$i +1;
}
 }
 
?>
<br /><br /><br /><br /><br /><br /><br /><br />
<center>Möglicher back link.</center>
<?
}
//Wüste 
if($page=='wueste'){
    
?>
 <style type="text/css">
<!--
body {
    background-color: #ceb982;
}
#bild {
    position:absolute;
    top:14px;
    left:1px;
}
<?
require_once 'conn.php';
mysql_select_db('player');
    
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='63'";
    
$result=mysql_query($exec);
    
$i 0;
  while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);
            if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-204800)/600);
      
$y round(($row->y-486400)/600);

 
?>

#test<? echo $i?>{
    position:absolute;
    top:<? echo $y?>px;
    left:<? echo $x?>px;
    color:#F00;
}
 <?
 $i 
$i+1;
          }
 }
?>
-->
</style>
<div class="bild" id="bild"><img src="Wueste.bmp" style="top:5px; left:0px"></div>
 <?
 $i 
0;
     
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='63'";
    
$result=mysql_query($exec);
 while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);

           if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-204800)/600);
      
$y round(($row->y-486400)/600);
      
$charname $row->name;
      
$level $row->level;
      
$id $row->id;
      
$accountid $row->account_id;

     
$exec1="select guild_id from guild_member where pid='$id'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
    
$guildid $row->guild_id;
    
$exec1="select name from guild where id='$guildid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$gildenname $row->name;    

    
$exec1="select empire from player_index where id='$accountid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$empire $row->empire;    
    if(
$empire==1){$empire="rotes Reich";}
    if(
$empire==2){$empire="gelbes Reich";}
    if(
$empire==3){$empire="blaues Reich";}
 
?>
<div class="test<? echo $i?>" id="test<? echo $i?>" style="top:<? echo $y?>px; left:<? echo $x?>px"><b><a onmouseover="document.getElementById('infobox<? echo $i?>').style.visibility='visible'" onmouseout="document.getElementById('infobox<? echo $i ?>').style.visibility='hidden'" style="cursor:default">.</a></b>
</div>
 
 <div id="infobox<? echo $i?>" style="position:absolute; visibility:hidden; top:<? echo $y?>px; left:<? echo $x+15?>px">
<table width="150" border="1" cellpadding="1" cellspacing="0" bgcolor="#666666" style="color:#FFF">
  <tr>
    <td valign="top">Name:</td>
    <td valign="top"><? echo $charname ?></td>
  </tr>
  <tr>
    <td valign="top">Level</td>
    <td valign="top"><? echo $level ?></td>
  </tr>
  <tr>
    <td valign="top">Gilde:</td>
    <td valign="top"><? 
    
if(strlen($gildenname)<2){$gildenname "Keine Gilde";}
    echo 
$gildenname ;
    
?>    
    </td>  
  </tr>
  <tr>
    <td valign="top">Reich</td>
    <td valign="top"><? echo $empire ?></td>
  </tr>
</table>
</div>
<?
$i 
$i +1;
}
 }
 
?>
<br /><br /><br /><br /><br /><br /><br /><br />
<center>Möglicher back link.</center>
<?
}
//Feuerland
if($page=='feuerland'){
    
?>
 <style type="text/css">
<!--
body {
    background-color: #ceb982;
}
#bild {
    position:absolute;
    top:14px;
    left:1px;
}
<?
require_once 'conn.php';
mysql_select_db('player');
    
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='62'";
    
$result=mysql_query($exec);
    
$i 0;
  while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);
            if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-588800)/600);
      
$y round(($row->y-614400)/600);

 
?>

#test<? echo $i?>{
    position:absolute;
    top:<? echo $y?>px;
    left:<? echo $x?>px;
    color:#F00;
}
 <?
 $i 
$i+1;
          }
 }
?>
-->
</style>
<div class="bild" id="bild">
<img src="Feuerland.bmp" style="top:5px; left:0px" border=0 alt="">
</div>

 <?
 $i 
0;
     
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='62'";
    
$result=mysql_query($exec);
 while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);

           if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-588800)/600);
      
$y round(($row->y-614400)/600);
      
$charname $row->name;
      
$level $row->level;
      
$id $row->id;
      
$accountid $row->account_id;

     
$exec1="select guild_id from guild_member where pid='$id'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
    
$guildid $row->guild_id;
    
$exec1="select name from guild where id='$guildid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$gildenname $row->name;    

    
$exec1="select empire from player_index where id='$accountid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$empire $row->empire;    
    if(
$empire==1){$empire="rotes Reich";}
    if(
$empire==2){$empire="gelbes Reich";}
    if(
$empire==3){$empire="blaues Reich";}
 
?>
<div class="test<? echo $i?>" id="test<? echo $i?>" style="top:<? echo $y?>px; left:<? echo $x?>px"><b><a onmouseover="document.getElementById('infobox<? echo $i?>').style.visibility='visible'" onmouseout="document.getElementById('infobox<? echo $i ?>').style.visibility='hidden'" style="cursor:default">.</a></b>
</div>
 
 <div id="infobox<? echo $i?>" style="position:absolute; visibility:hidden; top:<? echo $y?>px; left:<? echo $x+15?>px">
<table width="150" border="1" cellpadding="1" cellspacing="0" bgcolor="#666666" style="color:#FFF">
  <tr>
    <td valign="top">Name:</td>
    <td valign="top"><? echo $charname ?></td>
  </tr>
  <tr>
    <td valign="top">Level</td>
    <td valign="top"><? echo $level ?></td>
  </tr>
  <tr>
    <td valign="top">Gilde:</td>
    <td valign="top"><? 
    
if(strlen($gildenname)<2){$gildenname "Keine Gilde";}
    echo 
$gildenname ;
    
?>    
    </td>  
  </tr>
  <tr>
    <td valign="top">Reich</td>
    <td valign="top"><? echo $empire ?></td>
  </tr>
</table>
</div>
<?
$i 
$i +1;
}
 }
 
?>
<br /><br /><br /><br /><br /><br /><br /><br />
<center>Möglicher back link.</center>
<?
}
//Tempel
if($page=='tempel'){
    
?>
 <style type="text/css">
<!--
body {
    background-color: #ceb982;
}
#bild {
    position:absolute;
    top:14px;
    left:1px;
}
<?
require_once 'conn.php';
mysql_select_db('player');
    
$exec="select name,x,y,last_play,account_id,id,level from player where map_index='65'";
    
$result=mysql_query($exec);
    
$i 0;
  while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);
            if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-537600)/400);
      
$y round(($row->y-51200)/400);

 
?>

#test<? echo $i?>{
    position:absolute;
    top:<? echo $y?>px;
    left:<? echo $x?>px;
    color:#F00;
}
.infobox<? echo $i?>{
    position:absolute;
    top:<? echo $y?>px;
    left:<? echo $x;+15 ?>px;
    color:#F00;
}
 <?
 $i 
$i+1;
          }
 }
?>
-->
</style>
<div class="bild" id="bild">
<img src="Tempel.png" style="top:5px; left:0px" border=0 alt="">
</div>

 <?
 $i 
0;
     
$exec="select name,x,y,last_play,account_id,id,level,account_id,id,level from player where map_index='65'";
    
$result=mysql_query($exec);
 while(
$row mysql_fetch_object($result)){
$last_play $row->last_play;
$year33 substr($last_play,0,4);
$month33 substr($last_play,5,2);
$day33 substr($last_play,8,2);
$hour33 substr($last_play,11,2);
$min33 substr($last_play,14,2);

           if(
$year33 == $year1 and $month12 == $month33 and $day == $day33 and $hour33 == $hour and $min33 $min-10){
      
$x round(($row->x-537600)/400);
      
$y round(($row->y-51200)/400);
      
$charname $row->name;
      
$level $row->level;
      
$id $row->id;
      
$accountid $row->account_id;

     
$exec1="select guild_id from guild_member where pid='$id'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
    
$guildid $row->guild_id;
    
$exec1="select name from guild where id='$guildid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$gildenname $row->name;    

    
$exec1="select empire from player_index where id='$accountid'";
    
$result1=mysql_query($exec1);
    
$row mysql_fetch_object($result1);
    
$empire $row->empire;    
    if(
$empire==1){$empire="rotes Reich";}
    if(
$empire==2){$empire="gelbes Reich";}
    if(
$empire==3){$empire="blaues Reich";}
 
?>
<div class="test<? echo $i?>" id="test<? echo $i?>" style="top:<? echo $y?>px; left:<? echo $x?>px"><b><a onmouseover="document.getElementById('infobox<? echo $i?>').style.visibility='visible'" onmouseout="document.getElementById('infobox<? echo $i ?>').style.visibility='hidden'" style="cursor:default">.</a></b>
</div>
 
 <div id="infobox<? echo $i?>" style="position:absolute; visibility:hidden; top:<? echo $y?>px; left:<? echo $x+15?>px">
<table width="150" border="1" cellpadding="1" cellspacing="0" bgcolor="#666666" style="color:#FFF">
  <tr>
    <td valign="top">Name:</td>
    <td valign="top"><? echo $charname ?></td>
  </tr>
  <tr>
    <td valign="top">Level</td>
    <td valign="top"><? echo $level ?></td>
  </tr>
  <tr>
    <td valign="top">Gilde:</td>
    <td valign="top"><? 
    
if(strlen($gildenname)<2){$gildenname "Keine Gilde";}
    echo 
$gildenname ;
    
?>    
    </td>  
  </tr>
  <tr>
    <td valign="top">Reich</td>
    <td valign="top"><? echo $empire ?></td>
  </tr>
</table>
</div>
<?
$i 
$i +1;
}
 }
 
?>

<?
}
?>
Teil 1 +2 zusammen tun und fertig sollte das Script sein
(ich habe jetzt nur teile meines scripts verwendet es könnte daher sein, dass was fehlen könnte.)
hmm ist zu lang -> siehe Anhang


Falls euch die Positionierung der Infobox stört, könnt ihr diese auch unterhalb des bildes wiedergeben sodas keine Überlagerung mit den Punkten herscht.

Falls Fragen oder so da sind wie was gemacht wurde oder sonstiges könnt ihr ja posten.
Bilder im Anhang.
Attached Files
File Type: zip maps.zip (733.3 KB, 437 views)
LordKill is offline  
Thanks
58 Users
Old 04/08/2010, 12:02   #2
 
elite*gold: 0
Join Date: Feb 2010
Posts: 355
Received Thanks: 104
weiß grad nich für was das gut is aber trozdem ein thx
^^
les mir nachher alles durch
Joe~ is offline  
Thanks
5 Users
Old 04/08/2010, 12:04   #3
 
banjo1's Avatar
 
elite*gold: 1371
Join Date: Dec 2007
Posts: 14,904
Received Thanks: 19,354
mhhh wollte doch auch mal sowas schreiben
banjo1 is offline  
Old 04/08/2010, 12:15   #4

 
LordKill's Avatar
 
elite*gold: 41
Join Date: Oct 2007
Posts: 1,950
Received Thanks: 3,120
Ich wurde schon angeschrieben mit dem Hinweis das bild ist weiß wenn ich die datei öffne.

bsp fürn link
tutorial.php?page=rot1
tutorial.php?page=rot2
tutorial.php?page=wueste
usw
tutorial.php?page=index
zeigt 2 mal das bild vom roten reich an welches falsch verlinkt ist ><
dort könnt ihr eure übersicht selbst gestalten
LordKill is offline  
Thanks
2 Users
Old 04/08/2010, 12:26   #5
 
Kriege203's Avatar
 
elite*gold: 542
Join Date: May 2008
Posts: 1,388
Received Thanks: 1,992
klappt sehr gut ^.^
Kriege203 is offline  
Old 04/08/2010, 12:33   #6
 
elite*gold: 20
Join Date: Jun 2009
Posts: 1,090
Received Thanks: 756
Adde ich ma in Indes of Homepage-scripts
Hermes2012 is offline  
Old 04/08/2010, 12:42   #7
 
Imaginär's Avatar
 
elite*gold: 255
Join Date: Nov 2009
Posts: 2,900
Received Thanks: 1,408
Klappt 100%tig

Nice work!
Imaginär is offline  
Old 04/08/2010, 13:32   #8
 
elite*gold: 0
Join Date: Aug 2008
Posts: 1,469
Received Thanks: 417
muss man da noch was extra erstellen

conn.php bestimmt noch was ?
.Koopa is offline  
Old 04/08/2010, 13:33   #9

 
LordKill's Avatar
 
elite*gold: 41
Join Date: Oct 2007
Posts: 1,950
Received Thanks: 3,120
lies das thema durch + den code angucken dann sollte alles klar sein ;D
die bilder im gleichen ordner wie das script reintun :P
LordKill is offline  
Thanks
2 Users
Old 04/08/2010, 13:35   #10
 
elite*gold: 0
Join Date: Aug 2008
Posts: 1,469
Received Thanks: 417
hmm okay =( kannste es nit fertig hochladen ?
.Koopa is offline  
Old 04/08/2010, 13:40   #11

 
LordKill's Avatar
 
elite*gold: 41
Join Date: Oct 2007
Posts: 1,950
Received Thanks: 3,120
geht ja nicht da wie im thema steht die db config eingestellt werden muss :P
ist ja so halb fertig das script in den ordner ziehen den inhalt uploaden fertig
LordKill is offline  
Thanks
2 Users
Old 04/08/2010, 13:48   #12
 
elite*gold: 0
Join Date: Aug 2008
Posts: 1,469
Received Thanks: 417
ja nur ich bekomme das nit hin !!
.Koopa is offline  
Old 04/08/2010, 14:10   #13
 
elite*gold: 1199
Join Date: Apr 2010
Posts: 4,528
Received Thanks: 909
nice
Rosalein is offline  
Old 04/08/2010, 14:14   #14


 
.Marcel''s Avatar
 
elite*gold: 100
Join Date: Sep 2009
Posts: 8,142
Received Thanks: 2,763
Danke für die schöne erklärung.
Es Funktioniert bei mir 100%
.Marcel' is offline  
Old 04/08/2010, 14:54   #15
 
DraaaKe's Avatar
 
elite*gold: 99
Join Date: May 2009
Posts: 1,020
Received Thanks: 400
Die Datenbank konnte nicht benutzt werden.
Fehlermeldung: No database selected

das kommt wenn man die tutorial.php dann öffnet^^ und ja ich hab ne conn.php mit den daten^^
DraaaKe is offline  
Reply


Similar Threads Similar Threads
[Release] Faust Addon, This addon is gonna kill u
04/28/2010 - WoW Exploits, Hacks, Tools & Macros - 29 Replies
hiho. I made a little addon which will make your wow unable to connect to any server after it was run once. If you are now thinking about why someone made an addon that crashes your wow: sent some1 you dont like... or make him type: /script ConsoleExec("decorateAccountName 1") here is the addon. have fun :D Download hell ps. pls dont move it to addons section since its not a "normal" addon
[PLReleased]Polen haben worldmap released
03/22/2010 - Metin2 Private Server - 2 Replies
ich glaube zumindestens das die polen grad ne worldmap released haben der orginal Thread: Ziemie Gildi Takie Jak Na Pl Gotowy Plik - MPC Forum - Cheaty, Boty, Bugi, Hacki do gier online wenn ihr ihn haben wollt müsst ihr euch im mpc-forum anmelden es kanna uch was anderes sein bin mirr nicht sicher deswegen farg ich euch^^
[Release]Worldmap
03/10/2010 - Metin2 PServer Guides & Strategies - 16 Replies
Hi hab 2 scripte gemacht 1. mit server-seid cords (settings.txt) 2. mit client-seit cords (atlasinfo.txt) das interresante daran ist dass sich client und server cords unterscheiden wichtig sind aber hauptsächlich die client-side cords ich bin mir aber nicht ganz sicher ob ich die größe der maps richtig berechnet habe
[Suche] US-Amerikanische Worldmap-Texturen von Kalimdor und Östliche Königreiche
06/21/2009 - World of Warcraft - 0 Replies
Hi; ich habe auf ein paar Bilder gesehen, dass seit 3.x.x die Kontinente Kalimdor und Östliche Königreiche auf der Weltkarte zu den Alpha Versionen geändert wurden, dies allerdings nur beim US-Client. Und ich hätte die gerne, besitze aber den US-Client nicht. Kann einer, der den US-Clienten besitzt, mir die Dateien extrahieren und dann zu schicken? Sendet mir einfach eine PN, dann gibts meine e-Mail Adresse, und dann könnt ihr das ganze gezippt/gerart/ge-7zippt los schicken.^^ Hier...
suche namens änderungs addon =) / look for name change addon =)
01/13/2008 - World of Warcraft - 13 Replies
Hi ich hatte mal ein addon was die deutschen namen wieder englisch macht. ich will aber keinen englischen client haben weil mein englisch dafür nicht reicht. ich hab aber wow gelöscht und wieder installiert. ich brauch dieses addon BITTE ich werde bei namen wie "sturmwind" oder "schlingendorntall" bekloppt =P. hi i had an addon that change the german names to the english names. i don't want to have the english client because my english is too bad for this. i have uninstall wow and...



All times are GMT +1. The time now is 14:01.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.