4 Скрипт показывает Зону по $entry
6 - Карту зоны (или карту той зоны в частью которой является)
7 - В состав какой зоны входит (если есть)
8 - Какие зоны входят в состав
9 - Какие НИП находятся в зоне
10 - Какие объекты находятся в зоне
11 - Лут с рыбалки в зоне
14 include_once("include/map_data.php");
15 include_once("include/report_generator.php");
16 include_once("include/info_table_generator.php");
18 $entry = intval(@$_REQUEST['zone']);
19 $npc_id = intval(@$_REQUEST['npc']);
20 $obj_id = intval(@$_REQUEST['obj']);
21 $width = intval(@$_REQUEST['width']) ?
intval(@$_REQUEST['width']) : 900;
23 $page = intval(@$_REQUEST['page']);
24 $mark = @$_REQUEST['mark'];
26 $area = getArea($entry);
29 RenderError($lang['area_not_found']);
33 $baseLink='?zone='.$entry;
34 if (@$_REQUEST['npc']) $baseLink.="&npc=$npc_id";
35 if (@$_REQUEST['obj']) $baseLink.="&obj=$obj_id";
36 if (@$_REQUEST['width']) $baseLink.="&width=$width";
38 $zentry = $area['zone_id'] ?
$area['zone_id'] : $entry;
39 $map = $area['map_id'];
40 $zone = getArea($zentry);
42 $area_data = @getRenderAreaData
($gZoneToAreaImage[$zentry]);
44 if ($area_data && !isset($_REQUEST['mark']))
48 if ($lang['www_zone'])
49 echo "<a href=\"".sprintf($lang['www_zone'], $entry)."\" target=\"_blank\"\">".sprintf($lang['www_zone'], $entry)."</a><br>";
51 echo $area['name'].'<br>';
52 echo "<div id=mapper>";
54 $pointsList = new mapPoints();
55 if ($npc_id) $pointsList->addNpc($npc_id, $map);
56 if ($obj_id) $pointsList->addGo($obj_id, $map);
57 renderArea($gZoneToAreaImage[$zentry], $width, $pointsList->points
);
61 echo "<script type=\"text/javascript\" src=\"js/mapper.js\"></script>";
62 echo "<script type=\"text/javascript\">cacheMap('$baseLink')</script>";
65 else if ($map && !isset($_REQUEST['mark']))
68 echo "<div id=mapper>";
69 if ($npc_id ||
$obj_id)
70 renderMap($map, $width, createPointsList($npc_id, $obj_id));
74 echo "<script type=\"text/javascript\" src=\"js/mapper.js\"></script>";
75 echo "<script type=\"text/javascript\">cacheMap('$baseLink')</script>";
79 function r_npcDungeon($data){global $lang; echo '<a href="?zone='.@$_REQUEST['zone'].'&npc='.$data['entry'].'" onClick="return uploadFromHref(this, \'mapper\');">'.$lang['map'].'</a>';}
80 function r_objDungeon($data){global $lang; echo '<a href="?zone='.@$_REQUEST['zone'].'&obj='.$data['entry'].'" onClick="return uploadFromHref(this, \'mapper\');">'.$lang['map'].'</a>';}
81 //********************************************************************************
83 //********************************************************************************
86 $parent =& new ZoneReportGenerator();
87 $fields = array('ZONE_REPORT_ID', 'ZONE_REPORT_NAME');
88 if ($parent->Init($fields, $baseLink, 'zoneLIST', $config['fade_limit'], 'name'))
90 $parent->parentZone($zentry);
91 $parent->createReport($lang['zone_parent']);
94 //********************************************************************************
96 //********************************************************************************
97 $sub =& new ZoneReportGenerator();
98 $fields = array('ZONE_REPORT_ID', 'ZONE_REPORT_NAME');
99 if ($sub->Init($fields, $baseLink, 'subzoneLIST', $config['fade_limit'], 'name'))
101 $sub->subZones($entry);
102 $sub->createReport($lang['zone_subzones']);
104 //********************************************************************************
106 //********************************************************************************
107 $npc =& new CreatureReportGenerator('position');
108 $fields = array('NPC_REPORT_LEVEL', 'NPC_REPORT_RNAME', 'NPC_REPORT_ROLE', 'NPC_REPORT_DUNGEON');
109 if ($npc->Init($fields, $baseLink, 'npcLIST', $config['fade_limit'], 'name'))
111 $npc->addColumnConfig('NPC_REPORT_DUNGEON', array('class'=>'small','sort'=>'','text'=>$lang['map'],'draw'=>'r_npcDungeon','sort_str'=>'','fields'=>''));
115 $npc->onArea($area_data);
116 $npc->createReport($lang['zone_npc_in']);
118 //********************************************************************************
120 //********************************************************************************
121 $go =& new GameobjectReportGenerator('position');
122 $fields = array('GO_REPORT_NAME', 'GO_REPORT_TYPE', 'GO_REPORT_DUNGEON');
123 if ($go->Init($fields, $baseLink, 'goLIST', $config['fade_limit'], 'name'))
125 $go->addColumnConfig('GO_REPORT_DUNGEON', array('class'=>'small','sort'=>'','text'=>$lang['map'],'draw'=>'r_objDungeon','sort_str'=>'','fields'=>''));
129 $go->onArea($area_data);
130 $go->createReport($lang['zone_go_in']);
132 //********************************************************************************
134 //********************************************************************************
137 $page_seek = init_pagePerMark($mark, "fishing_lootLIST", $page);
138 $rows = getLootList($entry, "fishing_loot_template", $totalRecords, $page_seek, $config['fade_limit']);
139 renderLootTableList($rows, $lang['contain_fishing_loot'], $page_seek, $totalRecords, $baseLink, "fishing_lootLIST");