$c) { if ($k >= 0x4000) echo "warning ! terraintype outside 0x4000 ! $k\n"; }
}
exit(0);
}
$gTileTypeNames = array("NoName","sand","forest","jungle","grass","rock","cave",
"snow","water","stone","dirt","wooden floor","sand stone","marble","flagstone",
"void","lava","cobblestones","embank","brick","planks","tree","furrows","leaves","tile","acid","cave exit");
$gMapNames = array("Trammel","Felucca","Ilshenar","Malas","Tokuno");
foreach ($gTileTypeNames as $name) { echo "$name "; } echo "
";
function GetTexMapPath ($texmapid) { return sprintf("mytexmaps/texmap%08d.png",$texmapid); }
function GetArtMapPath ($artmapid) { return sprintf("myartmaps/artmap%08d.png",$artmapid); }
if (isset($_REQUEST["typename"])) {
$ids = array();
foreach ($gTileType as $tiletypeid => $arr) {
list($flag,$texmapid,$name) = $arr;
if ($name != $_REQUEST["typename"]) continue;
$texmap_path = GetTexMapPath($texmapid);
$artmap_path = GetArtMapPath($tiletypeid);
$ids[] = $tiletypeid;
if (1) {
?>
| ";
echo $gMapNames[$iMapIndex]."[$iMapIndex] "; $i = 0; echo "
| ";
}
echo "