Simple Online Map [Php]

http://paste2.org/p/1797389

http://i.imgur.com/0MIKU.jpg

Put them in same directory, change all caps values in php to your host/user/pass/db and voil’a

I feel terrible for the Outlands.

[SPOILER]<?php

$img = imagecreatefrompng(‘wowmap.png’);

header(‘Content-type: image/png’);

$mysql = mysql_connect(‘HOST’, ‘USER’, ‘PASSWORD’);

mysql_select_db(‘DATABASE’);

$query = mysql_query(‘select race, position_x, position_y, map from characters where online = 1 and map in (0,1)’); // wanna add 527 if northrend is actually there

while ($row = mysql_fetch_array($query))

{

$faction = (array_key_exists($row[‘race’], array(1, 3, 4, 7, 11)) ? imagecolorallocatealpha($img, 0, 0, 255, 64) : imagecolorallocatealpha($img, 255, 0, 0, 64));

imagefilledellipse($img, $row[‘position_y’] * -0.025 + ($row[‘map’] == 1 ? 300 : 900), $row[‘position_x’] * -0.025 + ($row[‘map’] == 1 ? 500 : 380), 10, 10, $faction);

}

imagepng($img);

mysql_close();

?>

[/SPOILER]

give example output?

http://i.imgur.com/3Eg3h.jpg

lol paint ftw ^^

this script http://paste2.org/p/1797389 is incomplete

mysql_close();

?>

on end line is missing

Also need to convert jpg to png after downloading. Works great though, thanks /emoticons/default_smile.png

Not Working…

Have Tasted 30 Minutes and Teleport … Negativ

Sure, its working. But the coordinates not exactly.

Only the BC lands (+ easter kingdom) and northend is missing. /emoticons/default_wacko.png

(With this “Template”, i think i can do more good maps.) /emoticons/default_smile.png

/Edit:

Here is my version.

I’ll hope i’ll doing it right

https://rapidshare.com/files/60855308/onlinemap.rar (3,73MB)

i got arcemu stalker map system to work with trinitycore

this map system is lite and interesting

[FONT=helvetica]i created a php file to generate the stat file needed for stalker. go to *****************[/FONT][FONT=helvetica] see it in action[/FONT]