Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 27.03.2006, 00:05   #1
Silentz0r
Архивный участник
 
Join Date: Apr 2005
Posts: 122
Default [SHARE] C4 Geodata MAP.

Hi, hope you guys find it usefull.

i just made it 5min ago.

http://www.wca.com.ve/silent/C4GeodatamapENG.jpg
Silentz0r is offline  
Old 27.03.2006, 00:08   #2
kepler001
Архивный участник
 
Join Date: Jun 2005
Posts: 549
Default

great share thanks
kepler001 is offline  
Old 27.03.2006, 01:44   #3
wton
Архивный участник
 
Join Date: May 2005
Posts: 463
Default

=0 geniaaaaaaaaaaaaaaaalll
gracias

thanks very much
wton is offline  
Old 27.03.2006, 02:33   #4
Kenster
Архивный участник
 
Join Date: Sep 2005
Posts: 455
Default

Post a pic of it from the editor?
Kenster is offline  
Old 27.03.2006, 02:34   #5
Zil
Архивный участник
 
Join Date: Jan 2006
Posts: 277
Default

Really, thnx...greate
Zil is offline  
Old 27.03.2006, 03:29   #6
tpuNIsher
Архивный участник
 
Join Date: Mar 2006
Posts: 685
Default

nice work and thanks :]
tpuNIsher is offline  
Old 27.03.2006, 08:09   #7
Silentz0r
Архивный участник
 
Join Date: Apr 2005
Posts: 122
Default

Quote:
Originally Posted by Kenster
Post a pic of it from the editor?
What do you mean?
Silentz0r is offline  
Old 27.03.2006, 08:38   #8
Met45
Архивный участник
 
Join Date: Jan 2006
Posts: 281
Default

thx for the share!
Met45 is offline  
Old 28.03.2006, 04:09   #9
ANRDaemon
Архивный участник
 
Join Date: Feb 2006
Posts: 158
Default

Code:
<?php

require_once(DB interface);
require_once(Some configs);

$DB = new database connection;

// configure map dimension here
$worldMap = array(
  'startX' => 16,
  'startY' => 10,
  'lastX' => 26,
  'lastY' => 26,
);

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title>World map</title>
<link rel="stylesheet" href="style.css" type="text/css"/>
</head>
<body><table class="worldMap">
<?php

for($y = $worldMap['startY']; $y <= $worldMap['lastY']; $y++)
{
  print("<tr>\n");
  for($x = $worldMap['startX']; $x <= $worldMap['lastX']; $x++)
  {
    if(file_exists(sprintf('img/%02d_%02d.png', $x, $y)))
    {
      $content = "X: {$x} Y: {$y}
\n";
      // Fetch and paste some data from DB to map
      printf('  <td><div class="mapTile" style="background-image: url(\'img/%02d_%02d.png\');"><div>%s</div></div></td>
', $x, $y, $content);
    }
    else
    {
      print('<td></td>');
    }
  }
  print("</tr>\n");
}

?>
</table>
</body>
</html>
Place XX_YY.png files in ./img subfolder and see something like this:
http://www.l2aw.ru/shadows/HDGE/map/
ANRDaemon is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 20:08.