Changeset 142 for minimanager/scripts/id_tab.php
- Timestamp:
- Nov 23, 2007, 11:29:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/scripts/id_tab.php
r19 r142 184 184 185 185 //////////////////////////////////////////////////////////////////////////////////////////////// 186 //get zone name by mapid and players x,y 187 $zone_id = Array( 186 //get zone name by mapid and players x,y 187 $zone_id = Array( 188 188 //Azeroth 189 189 1497 => Array($lang_id_tab['undercity'],1497), … … 355 355 if( isset($skill_id[$id])) return $skill_id[$id][1]; 356 356 else return 0; 357 } 357 } 358 359 $user_level = array( 360 0 => $lang_id_tab['Player'], 361 1 => $lang_id_tab['Moderator'], 362 2 => $lang_id_tab['Game_Master'], 363 3 => $lang_id_tab['Administrator'] 364 ); 365 366 function get_player_user_level($id){ 367 global $user_level; 368 return $user_level[$id] ; 369 } 370 371 $CHAR_FACTION = array( 372 0 => $lang_id_tab['Alliance'], 373 1 => $lang_id_tab['Horde'] 374 ); 375 376 $CHAR_RANK = array( 377 0 => array( 378 '00' => $lang_id_tab['None'], 379 '01' => $lang_id_tab['None'], 380 0 => $lang_id_tab['None'], 381 1 => $lang_id_tab['Private'], 382 2 => $lang_id_tab['Corporal'], 383 3 => $lang_id_tab['Sergeant'], 384 4 => $lang_id_tab['Master_Sergeant'], 385 5 => $lang_id_tab['Sergeant_Major'], 386 6 => $lang_id_tab['Knight'], 387 7 => $lang_id_tab['Knight-Lieutenant'], 388 8 => $lang_id_tab['Knight-Captain'], 389 9 => $lang_id_tab['Knight-Champion'], 390 10 => $lang_id_tab['Lieutenant_Commander'], 391 11 => $lang_id_tab['Commander'], 392 12 => $lang_id_tab['Marshal'], 393 13 => $lang_id_tab['Field_Marshal'], 394 14 => $lang_id_tab['Grand_Marshal'] 395 ), 396 1 => array( 397 '00' => $lang_id_tab['None'], 398 '01' => $lang_id_tab['None'], 399 0 => $lang_id_tab['None'], 400 1 => $lang_id_tab['Scout'], 401 2 => $lang_id_tab['Grunt'], 402 3 => $lang_id_tab['Sergeant'], 403 4 => $lang_id_tab['Senior_Sergeant'], 404 5 => $lang_id_tab['First_Sergeant'], 405 6 => $lang_id_tab['Stone_Guard'], 406 7 => $lang_id_tab['Blood_Guard'], 407 8 => $lang_id_tab['Legionnare'], 408 9 => $lang_id_tab['Centurion'], 409 10 => $lang_id_tab['Champion'], 410 11 => $lang_id_tab['Lieutenant_General'], 411 12 => $lang_id_tab['General'], 412 13 => $lang_id_tab['Warlord'], 413 14 => $lang_id_tab['High_Warlord'] 414 ) 415 416 ); 417 418 $CHAR_RACE = array( 419 1 => array($lang_id_tab['human'], 0), 420 2 => array($lang_id_tab['orc'], 1), 421 3 => array($lang_id_tab['dwarf'], 0), 422 4 => array($lang_id_tab['nightElf'], 0), 423 5 => array($lang_id_tab['undead'], 1), 424 6 => array($lang_id_tab['tauren'], 1), 425 7 => array($lang_id_tab['gnome'], 0), 426 8 => array($lang_id_tab['troll'], 1), 427 10 => array($lang_id_tab['bloodElf'], 1), 428 11 => array($lang_id_tab['draenei'], 0), 429 ); 430 431 432 function pvp_ranks($honor=0, $faction=0){ 433 $rank = '0'.$faction; 434 if($honor > 0){ 435 if($honor < 2000) $rank = 1; 436 else $rank = ceil($honor / 5000) + 1; 437 } 438 439 if ($rank>14) { $rank = 14; } 440 return $rank; 441 } 442 358 443 ?>
Note:
See TracChangeset
for help on using the changeset viewer.