!IMPORTANT!
Due to the inability to determine what layer covers what height-level
in multilayer-zones, spawns and waypoints WILL have duplicates and must
be removed manually from ?_spawns and ?_waypoints respectively, if
nessecary. Besides, the other points may also need manual love.
- NPC:
* removed a redundant cuFlags for Bosses
* set NPC_CU_INSTANCE_BOSS with data from world.instance_encounters
* removed misc. factions from tooltip
* fixed malformed condition for creature-loot
* location is displayed in Listviews (also for GOs)
* enabled filters foundIn and relatedEvent (also for GOs)
* do not display empty quotes
- Zone:
* initial implementation of detail page
- Misc:
* fixed notices being displayed without restrictions
* added RewriteBase hint to .htaccess (lost several hours to this one)
* removed lost isles from dataset 'zones'
* updated sql-archives and removed old sql updates, db_setup_2.zip
will need to be reapplied
71 lines
2.3 KiB
PHP
71 lines
2.3 KiB
PHP
<?php
|
|
if (isset($this->map) && empty($this->map)):
|
|
echo Lang::$zone['noMap'];
|
|
elseif (!empty($this->map['data'])):
|
|
if ($this->type != TYPE_ZONE):
|
|
echo ' <div>'.($this->type == TYPE_OBJECT ? Lang::$gameObject['foundIn'] : Lang::$npc['foundIn']).' <span id="locations">';
|
|
|
|
$n = count($this->map['mapperData']);
|
|
$i = 0;
|
|
foreach ($this->map['mapperData'] as $areaId => $areaData):
|
|
if ($n > 1 && $i++ > 0):
|
|
echo $i < $n ? ', ' : Lang::$main['and'];
|
|
endif;
|
|
|
|
echo '<a href="javascript:;" onclick="myMapper.update({zone: '.$areaId.'}); g_setSelectedLink(this, \'mapper\'); return false" onmousedown="return false">'.$this->map['extra'][$areaId].'</a> ('.reset($areaData)['count'].')';
|
|
endforeach;
|
|
|
|
echo ".</span></div>\n";
|
|
endif;
|
|
|
|
if (!empty($this->map['data']['zone']) && $this->map['data']['zone'] < 0):
|
|
?>
|
|
<div id="mapper" style="width: 778px; margin: 0 auto">
|
|
<?php
|
|
if (isset($this->map['som'])):
|
|
?>
|
|
<div id="som-generic"></div>
|
|
<?php
|
|
endif;
|
|
?>
|
|
<div id="mapper-generic"></div>
|
|
<div class="pad clear"></div>
|
|
</div>
|
|
<?php
|
|
else:
|
|
?>
|
|
<div class="pad"></div>
|
|
<?php
|
|
if (isset($this->map['som'])):
|
|
?>
|
|
<div id="som-generic"></div>
|
|
<?php
|
|
endif;
|
|
?>
|
|
<div id="mapper-generic"></div>
|
|
<div style="clear: left"></div>
|
|
<?php
|
|
endif;
|
|
?>
|
|
|
|
<script type="text/javascript">//<![CDATA[
|
|
<?php
|
|
if (!empty($this->map['data']['zone'])):
|
|
echo " var g_pageInfo = {id: ".$this->map['data']['zone']."};\n";
|
|
elseif (!empty($this->map['mapperData'])):
|
|
echo " var g_mapperData = ".json_encode($this->map['mapperData'], JSON_NUMERIC_CHECK).";\n";
|
|
endif;
|
|
|
|
// dont forget to set "parent: 'mapper-generic'"
|
|
echo " var myMapper = new Mapper(".json_encode($this->map['data'], JSON_NUMERIC_CHECK).");\n";
|
|
|
|
if (isset($this->map['som'])):
|
|
echo " new ShowOnMap(".json_encode($this->map['som'], JSON_NUMERIC_CHECK).");\n";
|
|
endif;
|
|
|
|
if ($this->type != TYPE_ZONE):
|
|
echo " \$WH.gE(\$WH.ge('locations'), 'a')[0].onclick();\n";
|
|
endif;
|
|
?>
|
|
//]]></script>
|
|
<?php endif; ?>
|