Changeset 19 for minimanager/scripts/id_tab.php
- Timestamp:
- Aug 13, 2007, 9:05:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/scripts/id_tab.php
r5 r19 185 185 //////////////////////////////////////////////////////////////////////////////////////////////// 186 186 //get zone name by mapid and players x,y 187 // Y1 ,Y2,X1,X2 - Upper left Y Coord of Box, Lower Right Y Coord of Box, Lower Right X Coord of Box, Upper Left X Coord of Box 188 $zone_0 = Array( //Azeroth 189 0 => Array(700,10,1244,1873,$lang_id_tab['undercity'],1497), 190 1 => Array(-840,-1330,-5050,-4560,$lang_id_tab['ironforge'],1537), 191 2 => Array(1190,200,-9074,-8280,$lang_id_tab['stormwind_city'],1519), 192 3 => Array(-2170,-4400,-7348,-6006,$lang_id_tab['badlands'],3), 193 4 => Array(-500,-4400,-4485,-2367,$lang_id_tab['wetlands'],11), 194 5 => Array(2220,-2250,-15422,-11299,$lang_id_tab['stranglethorn_vale'],33), 195 6 => Array(-1724,-3540,-9918,-8667,$lang_id_tab['redridge_mountains'],44), 196 7 => Array(-2480,-4400,-6006,-4485,$lang_id_tab['loch_modan'],38), 197 8 => Array(662,-1638,-11299,-9990,$lang_id_tab['duskwood'],10), 198 9 => Array(-1638,-2344,-11299,-9918,$lang_id_tab['deadwind_pass'],41), 199 10 => Array(834,-1724,-9990,-8526,$lang_id_tab['elwynn_forest'],12), 200 11 => Array(-500,-3100,-8667,-7348,$lang_id_tab['burning_steppes'],46), 201 12 => Array(-608,-2170,-7348,-6285,$lang_id_tab['searing_gorge'],51), 202 13 => Array(2000,-2480,-6612,-4485,$lang_id_tab['dun_morogh'],1), 203 14 => Array(-1575,-5425,-432,805,$lang_id_tab['the_hinterlands'],47), 204 15 => Array(3016,662,-11299,-9400,$lang_id_tab['westfall'],40), 205 16 => Array(600,-1575,-1874,220,$lang_id_tab['hillsbrad_foothills'],267), 206 17 => Array(-2725,-6056,805,3800,$lang_id_tab['eastern_plaguelands'],139), 207 18 => Array(-850,-2725,805,3400,$lang_id_tab['western_plaguelands'],28), 208 19 => Array(2200,600,-900,1525,$lang_id_tab['silverpine_forest'],130), 209 20 => Array(2200,-850,1525,3400,$lang_id_tab['tirisfal_glades'],85), 210 21 => Array(-2250,-3520,-12800,-10666,$lang_id_tab['blasted_lands'],4), 211 22 => Array(-2344,-4516,-11070,-9600,$lang_id_tab['swamp_of_sorrows'],8), 212 23 => Array(-1575,-3900,-2367,-432,$lang_id_tab['arathi_highlands'],45), 213 24 => Array(600,-1575,220,1525,$lang_id_tab['alterac_mountains'],36) 187 $zone_id = Array( 188 //Azeroth 189 1497 => Array($lang_id_tab['undercity'],1497), 190 1537 => Array($lang_id_tab['ironforge'],1537), 191 1519 => Array($lang_id_tab['stormwind_city'],1519), 192 3 => Array($lang_id_tab['badlands'],3), 193 11 => Array($lang_id_tab['wetlands'],11), 194 33 => Array($lang_id_tab['stranglethorn_vale'],33), 195 44 => Array($lang_id_tab['redridge_mountains'],44), 196 38 => Array($lang_id_tab['loch_modan'],38), 197 10 => Array($lang_id_tab['duskwood'],10), 198 41 => Array($lang_id_tab['deadwind_pass'],41), 199 12 => Array($lang_id_tab['elwynn_forest'],12), 200 46 => Array($lang_id_tab['burning_steppes'],46), 201 51 => Array($lang_id_tab['searing_gorge'],51), 202 1 => Array($lang_id_tab['dun_morogh'],1), 203 47 => Array($lang_id_tab['the_hinterlands'],47), 204 40 => Array($lang_id_tab['westfall'],40), 205 267 => Array($lang_id_tab['hillsbrad_foothills'],267), 206 139 => Array($lang_id_tab['eastern_plaguelands'],139), 207 28 => Array($lang_id_tab['western_plaguelands'],28), 208 130 => Array($lang_id_tab['silverpine_forest'],130), 209 85 => Array($lang_id_tab['tirisfal_glades'],85), 210 4 => Array($lang_id_tab['blasted_lands'],4), 211 8 => Array($lang_id_tab['swamp_of_sorrows'],8), 212 45 => Array($lang_id_tab['arathi_highlands'],45), 213 36 => Array($lang_id_tab['alterac_mountains'],36), 214 //Kalimdor 215 1657 => Array($lang_id_tab['darnassus'],1657), 216 1638 => Array($lang_id_tab['thunder_bluff'],1638), 217 1637 => Array($lang_id_tab['orgrimmar'],1637), 218 493 => Array($lang_id_tab['moonglade'],493), 219 1377 => Array($lang_id_tab['silithus'],1377), 220 618 => Array($lang_id_tab['winterspring'],618), 221 490 => Array($lang_id_tab['un_goro_crater'],490), 222 361 => Array($lang_id_tab['felwood'],361), 223 16 => Array($lang_id_tab['azshara'],16), 224 440 => Array($lang_id_tab['tanaris'],440), 225 15 => Array($lang_id_tab['dustwallow_marsh'],15), 226 215 => Array($lang_id_tab['mulgore'],215), 227 357 => Array($lang_id_tab['feralas'],357), 228 405 => Array($lang_id_tab['desolace'],405), 229 400 => Array($lang_id_tab['thousand_needles'],400), 230 14 => Array($lang_id_tab['durotar'],14), 231 331 => Array($lang_id_tab['ashenvale'],331), 232 148 => Array($lang_id_tab['darkshore'],148), 233 141 => Array($lang_id_tab['teldrassil'],141), 234 406 => Array($lang_id_tab['stonetalon_mountains'],406), 235 17 => Array($lang_id_tab['the_barrens'],17), 236 //Outland 237 3703 => Array($lang_id_tab['shattrath_city'],3703), 238 3487 => Array($lang_id_tab['silvermoon_city'],3487), 239 3523 => Array($lang_id_tab['netherstorm'],3523), 240 3519 => Array($lang_id_tab['terokkar_forest'],3519), 241 3518 => Array($lang_id_tab['nagrand'],3518), 242 3525 => Array($lang_id_tab['bloodmyst_isle'],3525), 243 3522 => Array($lang_id_tab['blades_edge_mountains'],3522), 244 3520 => Array($lang_id_tab['shadowmoon_valley'],3520), 245 3557 => Array($lang_id_tab['the_exodar'],3557), 246 3521 => Array($lang_id_tab['zangarmarsh'],3521), 247 3483 => Array($lang_id_tab['hellfire_peninsula'],3483), 248 3524 => Array($lang_id_tab['azuremyst_isle'],3524), 249 3433 => Array($lang_id_tab['ghostlands'],3433), 250 3430 => Array($lang_id_tab['eversong_woods'],3430) 214 251 ); 215 252 216 $zone_1 = Array( //Kalimdor 217 0 => Array(2698,2030,9575,10267,$lang_id_tab['darnassus'],1657), 218 1 => Array(326,-360,-1490,-910,$lang_id_tab['thunder_bluff'],1638), 219 2 => Array(-3849,-4809,1387,2222,$lang_id_tab['orgrimmar'],1637), 220 3 => Array(-1300,-3250,7142,8500,$lang_id_tab['moonglade'],493), 221 4 => Array(2021,-400,-9000,-6016,$lang_id_tab['silithus'],1377), 222 5 => Array(-2259,-7000,4150,8500,$lang_id_tab['winterspring'],618), 223 6 => Array(-400,-2094,-8221,-6016,$lang_id_tab['un_goro_crater'],490), 224 7 => Array(-590,-2259,3580,7142,$lang_id_tab['felwood'],361), 225 8 => Array(-3787,-8000,1370,6000,$lang_id_tab['azshara'],16), 226 9 => Array(-1900,-5500,-10475,-6825,$lang_id_tab['tanaris'],440), 227 10 => Array(-2478,-5500,-5135,-2330,$lang_id_tab['dustwallow_marsh'],15), 228 11 => Array(360,-1536,-3474,-412,$lang_id_tab['mulgore'],215), 229 12 => Array(4000,-804,-6828,-2477,$lang_id_tab['feralas'],357), 230 13 => Array(3500,360,-2477,372,$lang_id_tab['desolace'],405), 231 14 => Array(-804,-5500,-6828,-4566,$lang_id_tab['thousand_needles'],400), 232 15 => Array(-3758,-5500,-1300,1370,$lang_id_tab['durotar'],14), 233 16 => Array(1000,-3787,1370,4150,$lang_id_tab['ashenvale'],331), 234 17 => Array(2500,-1300,4150,8500,$lang_id_tab['darkshore'],148), 235 18 => Array(3814,-1100,8600,11831,$lang_id_tab['teldrassil'],141), 236 19 => Array(3500,-804,-412,3580,$lang_id_tab['stonetalon_mountains'],406), 237 20 => Array(-804,-4200,-4566,1370,$lang_id_tab['the_barrens'],17) 238 ); 239 240 $zone_530 = Array( //Outland 241 0 => Array(6135.25,4829,-2344.78,-1473.95,$lang_id_tab['shattrath_city'],3703), 242 1 => Array(-6400.75,-7612.20,9346.93,10153.70,$lang_id_tab['silvermoon_city'],3487), 243 2 => Array(5483.33,-91.66,1739.58,5456.25,$lang_id_tab['netherstorm'],3523), 244 3 => Array(7083.33,1683.33,-4600,-999.99,$lang_id_tab['terokkar_forest'],3519), 245 4 => Array(10295.83,4770.83,-3641.66,41.66,$lang_id_tab['nagrand'],3518), 246 5 => Array(-10075,-13337.49,-2933.33,-758.33,$lang_id_tab['bloodmyst_isle'],3525), 247 6 => Array(8845.83,3420.83,791.66,4408.33,$lang_id_tab['blades_edge_mountains'],3522), 248 7 => Array(4225,-1275,-5614.58,-1947.91,$lang_id_tab['shadowmoon_valley'],3520), 249 8 => Array(-11066.36,-12123.13,-4314.37,-3609.68,$lang_id_tab['the_exodar'],3557), 250 9 => Array(9475,4447.91,-1416.66,1935.41,$lang_id_tab['zangarmarsh'],3521), 251 10 => Array(5539.58,375,-1962.49,1481.25,$lang_id_tab['hellfire_peninsula'],3483), 252 11 => Array(-10500,-14570.83,-5508.33,-2793.75,$lang_id_tab['azuremyst_isle'],3524), 253 12 => Array(-5283.33,-8583.33,6066.66,8266.66,$lang_id_tab['ghostlands'],3433), 254 13 => Array(-4487.5,-9412.5,7758.33,11041.66,$lang_id_tab['eversong_woods'],3430) 255 ); 256 257 // Y1 ,Y2,X1,X2 - Upper left Y Coord of Box, Lower Right Y Coord of Box, Upper Left X Coord of Box, Lower Right X Coord of Box 258 function get_zone_name($map_id,$player_x,$player_y){ 259 global $zone_0,$zone_1,$zone_530; 260 switch ($map_id) { 261 case 0: 262 for ($i=0; $i < count($zone_0); $i++) 263 if (($zone_0[$i][2] < $player_x) && ($zone_0[$i][3] > $player_x) && ($zone_0[$i][1] < $player_y) && ($zone_0[$i][0] > $player_y)) return ($zone_0[$i][4]); 264 break; 265 case 1: 266 for ($i=0; $i < count($zone_1); $i++) 267 if (($zone_1[$i][2] < $player_x) && ($zone_1[$i][3] > $player_x) && ($zone_1[$i][1] < $player_y) && ($zone_1[$i][0] > $player_y)) return ($zone_1[$i][4]); 268 break; 269 case 530: 270 for ($i=0; $i < count($zone_530); $i++) 271 if (($zone_530[$i][2] < $player_x) && ($zone_530[$i][3] > $player_x) && ($zone_530[$i][1] < $player_y) && ($zone_530[$i][0] > $player_y)) return ($zone_530[$i][4]); 272 break; 273 274 default: 275 return(" "); 276 } 253 function get_zone_name($id){ 254 global $zone_id; 255 if( isset($zone_id[$id])) return $zone_id[$id][0]; 256 else return(" "); 277 257 } 278 258
Note:
See TracChangeset
for help on using the changeset viewer.