se7enet purgatorio

Page 1 of 2 12>
Topic Options
Rate This Topic
#18162 - 09/08/08 10:59 AM Player Map
Justas
Corn Flakes


Registered: 08/30/08
Posts: 63

Offline
http://dragon.se7enet.com/mods/index.php?do=file&id=175

I don't know why but its not working.. When noone is loged in (only me) I see blue dot in my location, but when someone logins, I see blue dot only in his location, and if there are logged many people, blue dot is only showing one location (but its moving) ..
I changed map.php with this code:

 Code:
<?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("Žem&#279;lap&#303; mato tik užsiregistrav&#281; nariai.", "Žem&#279;lapis"); die(); }
$controlquery = doquery("SELECT * FROM {{table}} WHERE id='1' LIMIT 1", "control");
$controlrow = mysql_fetch_array($controlquery);

if ($controlrow["gameopen"] == 0) { display("Žaidimas uždarytas atnaujinimui. Pabandykite užsukti v&#279;liau.","Žaidimas Uždarytas"); die(); }
if ($controlrow["verifyemail"] == 1 && $userrow["verify"] != 1) { header("Location: users.php?do=verify"); die(); }
if ($userrow["authlevel"] == 2) { die("J&#363;s&#371; profilis užblokuotas. J&#363;s negal&#279;site matyti žem&#279;lapio, kol bano galiojimas baigsis."); }


?>
<html>
<head>
<title>Žem&#279;lapis</title>
<meta http-equiv="refresh" content="10";URL="map.php">
<?

$usersquery = doquery("SELECT * FROM {{table}} 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>

Sorry, it's translated, but please help me with this code..

Top
#18163 - 09/08/08 11:24 AM Re: Player Map [Re: Justas]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Because that mod doesn't work.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#18165 - 09/08/08 11:36 AM Re: Player Map [Re: Fayt]
Justas
Corn Flakes


Registered: 08/30/08
Posts: 63

Offline
So how can I show my visitors where other players are?
Top
#18166 - 09/08/08 12:09 PM Re: Player Map [Re: Justas]
gamefreak888
Rice Krispies


Registered: 09/06/07
Posts: 215

Offline
You can't.
Or you can learn PHP and create a working mod yourself.

Top
#18169 - 09/08/08 01:46 PM Re: Player Map [Re: gamefreak888]
Justas
Corn Flakes


Registered: 08/30/08
Posts: 63

Offline
Hahaha.. very funny.. :|
Top
#18175 - 09/08/08 04:25 PM Re: Player Map [Re: Justas]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
What is funny about that?
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#18182 - 09/08/08 05:36 PM Re: Player Map [Re: Fayt]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
Or you can use Dragon Scourge. Which has a similar feature built in.
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#18186 - 09/08/08 08:14 PM Re: Player Map [Re: AnmanIndustries]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Not a fan of DS myself
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#18190 - 09/08/08 09:19 PM Re: Player Map [Re: Fayt]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
No one asked you ass monger.
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#18195 - 09/08/08 09:40 PM Re: Player Map [Re: AnmanIndustries]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
No one asked you to blow me, and you still did it
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#18198 - 09/08/08 11:42 PM Re: Player Map [Re: Fayt]
gamefreak888
Rice Krispies


Registered: 09/06/07
Posts: 215

Offline
I think DK is easier to edit, the fact that is has over 150 mods doesn't really help making it a better game than Scourge, since only 10 of those mods work properly.

The good thing about Scourge is that you don't need to do a lot of editing in some parts (like fighting, there's just a template for that!) but overall I prefer DK because creating mods for it just works better.

Top
#18379 - 09/28/08 06:42 AM Re: Player Map [Re: gamefreak888]
Justas
Corn Flakes


Registered: 08/30/08
Posts: 63

Offline
So would someone make mod there player can see other players?
Top
#18380 - 09/28/08 08:30 AM Re: Player Map [Re: Justas]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Give me more details
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#18381 - 09/28/08 12:15 PM Re: Player Map [Re: Fayt]
Justas
Corn Flakes


Registered: 08/30/08
Posts: 63

Offline
As I said before many times, I want to see all logged in players and their positions in the map (if it's easier I would be able to see only players who are 10 moves to south,north,east,west from me)

Sorry for my bad English.

Top
#18382 - 09/28/08 02:41 PM Re: Player Map [Re: Justas]
EAL
Grape Nuts


Registered: 07/03/08
Posts: 31

Offline
im trying to get the map to only show my location since it cant show everyones. so far i have :

$usersquery = doquery("SELECT * FROM {{table}} WHERE id = ".$userrow[id].", "users");

and

$usersquery = doquery("SELECT * FROM {{table}} WHERE id = '.$userrow[id].', "users");

but neither works can someone help me

Top
Page 1 of 2 12>


Hop to:

se7enet

Barack Obama Logo