$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) { ?> <?=$texmapid?> <?=$tiletypeid?> "; echo "terrain.".$_REQUEST["typename"]." = {".implode(",",$ids)."}"; exit(0); } for ($i=0;$i<=4;++$i) arsort($gTileTypeCount[$i]); echo ""; for ($iMapIndex=0;$iMapIndex<=4;++$iMapIndex) { echo ""; } echo "
"; echo $gMapNames[$iMapIndex]."[$iMapIndex]
"; $i = 0; echo "\n"; foreach ($gTileTypeCount[$iMapIndex] as $iTileTypeID => $c) { list($flag,$texmapid,$name) = $gTileType[$iTileTypeID]; $texmap_path = GetTexMapPath($texmapid); $artmap_path = GetArtMapPath($iTileTypeID); ?> = 200) break; } echo "




\n"; echo "
"; ?>