PLAYERS MAP       Back to File List | Edit This File

PLAYERS MAP - Click to Download
Submitted by ZDMaster on 09.18.2007 (1530 Downloads)
How to install PLAYERS MAP? Very simple! You don`t need GD libs etc.
My Map script show dot, where is player (Online 10 minutes) position.
++add: Refresh map window every 10s
PS: True code is simple! If you think it`s code do nothing, you dumkopf =)

File rating: 4.26 out of 5.00 (19 votes total).
Rate this file:       (Sucks) 1   2   3   4   5 (Rocks)      

Posted by masterofollies on 09.18.2007
This is about the smallest file you can make. There is no hardcore coding. It really doesn't do anything. Nice try on making a mod, but yeah.
Posted by SkyRover on 09.19.2007
Сейчас попробуем.
Если это то что, я думаю, то скрипт должен "оживить игру".
Posted by TuiTi on 10.24.2007
this script sux ! .... the dot won't change position .... I hope u don'yt scripting for living dude ...
Posted by Whiz on 10.28.2007
This mod works just as described.  Thanks.  :D  To the person who complained that the dot doesn't move, you need to refresh the map window.
Posted by Ziedaan on 11.08.2007
what does this mean:
P.S. А теперь по-русски и ясно: Пропорции положения точки на карте
считаются автоматически. Остается только добавить автоматическое обновление
страницы, и всплывающее описание игрока,
и тогда карта будет просто ОФИГИТЕЛЬНАЯ!
Posted by SkyRover on 12.10.2007
It's mean:
And now in russian: Coordinats and proportion of dot are reading automayicly... bla bla bla
(like in english)
Posted by svenn on 12.11.2007
actually youre code wasn't right; this isn't right neather but it works for me : map.php
<?php  // map.php :: Players Map script created by ZDMaster. RUSSIA, Volgodonsk.
require_once('lib.php');
include('cookies.php');
$link = opendb();
$userrow = checkcookies();
if ($userrow == false) { display("The players map is for registered players only.", "Map"); die(); }
$controlquery = doquery("SELECT * FROM dkm_comments WHERE id='1' LIMIT 1", "control");
$controlrow = mysql_fetch_array($controlquery);

// Close game.
if ($controlrow["gameopen"] == 0) { display("The game is currently closed for maintanence. Please check back later.","Game Closed"); die(); }
// Force verify if the user isn't verified yet.
if ($controlrow["verifyemail"] == 1 && $userrow["verify"] != 1) { header("Location: users.php?do=verify"); die(); }
// Block user if he/she has been banned.
if ($userrow["authlevel"] == 2) { die("Your account has been blocked. Please try back later."); }


?>
<html>
<head>
<title>Map</title>
<meta name="description" content="ZDMaster`s PLAYERS MAP. From RUSSIA with Love =)">
<meta http-equiv="refresh" content="10";URL="map.php">

</head>
<body background="images/map.gif">
<?

$usersquery = doquery("SELECT * FROM dkm_comments WHERE UNIX_TIMESTAMP(onlinetime) >= '".(time()-600)."' ORDER BY id", "users");
while ($usersrow = mysql_fetch_array($usersquery)) {
$brx = $controlrow["gamesize"] - 3 + $usersrow["longitude"];    
$bry = $controlrow["gamesize"] - 3 - $usersrow["latitude"];    
   
   echo "<img src=\"images/dot.gif\" alt=\"".$usersrow["charname"]."\"; style=\"position: absolute; border: 0px; left: $brx px; top: $bry px;\">;\n";
}
?>
</body>
</html>

Posted by svenn on 12.11.2007
lol seems the system is little bug : dkm_comments should be { { table } } without the spaces :)
Posted by svenn on 12.11.2007
omg im stupid posted the wrong piece of code this should work :$
<?php  // map.php :: Players Map script created by ZDMaster. RUSSIA, Volgodonsk.
require_once('lib.php');
include('cookies.php');
$link = opendb();
$userrow = checkcookies();
if ($userrow == false) { display("The players map is for registered players only.", "Map"); die(); }
$controlquery = doquery("SELECT * FROM dkm_comments WHERE id='1' LIMIT 1", "control");
$controlrow = mysql_fetch_array($controlquery);

if ($controlrow["gameopen"] == 0) { display("The game is currently closed for maintanence. Please check back later.","Game Closed"); die(); }
if ($controlrow["verifyemail"] == 1 && $userrow["verify"] != 1) { header("Location: users.php?do=verify"); die(); }
if ($userrow["authlevel"] == 2) { die("Your account has been blocked. Please try back later."); }


?>
<html>
<head>
<title>Map</title>
<meta http-equiv="refresh" content="10";URL="map.php">
<?

$usersquery = doquery("SELECT * FROM dkm_comments WHERE UNIX_TIMESTAMP(onlinetime) >= '".(time()-600)."' ORDER BY id", "users");
while ($usersrow = mysql_fetch_array($usersquery)) {
$brx = $controlrow["gamesize"] - 3 + $usersrow["longitude"];    
$bry = $controlrow["gamesize"] - 3 - $usersrow["latitude"];    

echo "
<style>
.d{
position: absolute;
border: 0px;
left: ".$brx."px;
top: ".$bry."px;
}
</style>
</head>
<body background=\"images/map.gif\">
<img id='d' class='d' src='images/dot.gif' title='".$usersrow["charname"]."' alt='".$usersrow["charname"]."'>";
}
?>
</body>
</html>

Posted by Noramros on 03.07.2008
It works really well, thank you!
Posted by szcieder on 06.06.2008
this doesn't work for me....what is the real code anyways?
Posted by Justas on 09.07.2008
If player logins, it doesn't show my location.. :\
Posted by EAL on 09.29.2008
can anyone get this mod to work. if so can you post how to get it to work.
Posted by ErRoR on 12.27.2010
Use svenn's map.php code (shown above) instead of the default one. Make sure you do as he says and change the dkm_comments to { { table } } without the spaces
Add A Comment

In order to cut down on comment spam, you must be registered on the support forums and provide your username and password before you are allowed to comment. The name shown in your comment will be your forums display name. Sorry it had to be like this. If you haven't already, please register an account.

Forums Username:


Forums Password:


Your Comment:




Information & Rules
This is a file index for any Dragon Knight modifications. If you've made a mod you'd like to share with the community, upload it.

Mod authors, please include a name, version, and brief description along with your file. All files should be submitted in a zip file that includes the actual PHP scripts as well as any readme/instruction files.

DISCLAIMER: I take absolutely no responsibility for the content or functionality of any of these files. You use them entirely at your own risk. Make sure to run all files through a virus scanner before opening them. Hopefully the people here are above such petty nonsense as putting a virus in the files, but you can never be to careful.