Changeset 374 for minimanager/scripts
- Timestamp:
- Sep 11, 2008, 9:10:27 AM (16 years ago)
- Location:
- minimanager/scripts
- Files:
-
- 1 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/scripts/backup_tab.php
r364 r374 11 11 //list of tables in realmd db will be saved on Global backup 12 12 $tables_backup_realmd = Array( 13 14 15 16 17 13 "account", 14 "ip_banned", 15 "realmcharacters", 16 "account_banned", 17 "realmlist" 18 18 ); 19 19 20 20 //list of tables in characters db will be saved on Global backup 21 21 $tables_backup_characters = Array( 22 "auctionhouse", 23 "arena_team", 24 "arena_team_member", 25 "characters", 26 "character_action", 27 "character_aura", 28 "character_gifts", 29 "character_homebind", 30 "character_instance", 31 "character_inventory", 32 "character_kill", 33 "character_pet", 34 "character_queststatus", 35 "character_reputation", 36 "character_ticket", 37 "character_social", 38 "character_spell", 39 "character_spell_cooldown", 40 "character_tutorial", 41 "corpse", 42 "groups", 43 "group_member", 44 "guild", 45 "guild_member", 46 "guild_rank", 47 "petition", 48 "petition_sign", 49 "item_instance", 50 "mail", 51 "item_text" 22 "arena_team", 23 "arena_team_member", 24 "arena_team_stats", 25 "auctionhouse", 26 "characters", 27 "character_action", 28 "character_aura", 29 "character_gifts", 30 "character_homebind", 31 "character_instance", 32 "character_inventory", 33 "character_pet", 34 "character_queststatus", 35 "character_reputation", 36 "character_ticket", 37 "character_social", 38 "character_spell", 39 "character_spell_cooldown", 40 "character_tutorial", 41 "corpse", 42 "groups", 43 "group_member", 44 "guild", 45 "guild_bank_eventlog", 46 "guild_bank_item", 47 "guild_bank_right", 48 "guild_bank_tab", 49 "guild_member", 50 "guild_rank", 51 "instance", 52 "item_instance", 53 "item_text", 54 "mail", 55 "mail_items", 56 "petition", 57 "petition_sign", 58 "pet_aura", 59 "pet_spell", 60 "pet_spell_cooldown", 52 61 ); 53 62 54 63 //list of tables in realmd db you need to delete data on user deletion 55 64 $tab_del_user_realmd = Array( 56 57 65 Array("realmcharacters","acctid"), 66 Array("account_banned","id"), 58 67 Array("account","id") 59 68 ); … … 61 70 //list of tables in characters db you need to delete data from on user deletion 62 71 $tab_del_user_characters = Array( 63 Array("auctionhouse","itemowner"), 64 Array("character_action","guid"), 65 Array("character_aura","guid"), 66 Array("character_homebind","guid"), 67 Array("character_inventory","guid"), 68 // Array("character_kill","guid"), 69 Array("character_pet","owner"), 70 Array("character_queststatus","guid"), 71 Array("character_reputation","guid"), 72 Array("character_social","guid"), 73 Array("character_spell","guid"), 74 Array("character_spell_cooldown","guid"), 75 Array("character_ticket","guid"), 76 Array("character_tutorial","guid"), 77 Array("guild_member","guid"), 78 Array("corpse","guid"), 79 Array("groups","leaderGuid"), 80 Array("group_member","memberGuid"), 81 Array("group_member","leaderGuid"), 82 Array("mail","receiver"), 83 Array("item_instance","owner_guid"), 84 Array("character_gifts","guid"), 85 Array("character_instance","guid"), 86 Array("arena_team_member","guid"), 87 Array("petition","ownerguid"), 88 Array("petition_sign","ownerguid"), 89 Array("petition_sign","playerguid"), 90 Array("`characters`","guid") 72 Array("arena_team_member","guid"), 73 Array("auctionhouse","itemowner"), 74 Array("character_action","guid"), 75 Array("character_aura","guid"), 76 Array("character_gifts","guid"), 77 Array("character_homebind","guid"), 78 Array("character_instance","guid"), 79 Array("character_inventory","guid"), 80 Array("character_pet","owner"), 81 Array("character_queststatus","guid"), 82 Array("character_reputation","guid"), 83 Array("character_social","guid"), 84 Array("character_social","friend"), 85 Array("character_spell","guid"), 86 Array("character_spell_cooldown","guid"), 87 Array("character_ticket","guid"), 88 Array("character_tutorial","guid"), 89 Array("corpse","player"), 90 Array("groups","leaderGuid"), 91 Array("group_member","memberGuid"), 92 Array("group_member","leaderGuid"), 93 Array("guild_member","guid"), 94 Array("item_instance","owner_guid"), 95 Array("mail","receiver"), 96 Array("mail_items","receiver"), 97 Array("petition","ownerguid"), 98 Array("petition_sign","ownerguid"), 99 Array("petition_sign","playerguid"), 100 Array("characters","guid") 91 101 ); 92 102 93 103 //list of tables in realmd db you need to backup data on single user backup 94 104 $tab_backup_user_realmd = Array( 95 96 105 Array("realmcharacters","acctid"), 106 Array("account_banned","id"), 97 107 Array("account","id") 98 108 ); … … 100 110 //list of tables in characters db you need to backup data from on single user backup 101 111 $tab_backup_user_characters = Array( 102 Array("character_action","guid"), 103 Array("character_aura","guid"), 104 Array("character_homebind","guid"), 105 Array("character_inventory","guid"), 106 // Array("character_kill","guid"), 107 Array("character_pet","owner"), 108 Array("character_queststatus","guid"), 109 Array("character_reputation","guid"), 110 Array("character_social","guid"), 111 Array("character_spell","guid"), 112 Array("character_spell_cooldown","guid"), 113 Array("character_ticket","guid"), 114 Array("character_tutorial","guid"), 115 Array("corpse","guid"), 116 Array("item_instance","owner_guid"), 117 Array("character_gifts","guid"), 118 Array("character_instance","guid"), 119 Array("characters","guid") 112 Array("arena_team_member","guid"), 113 Array("auctionhouse","itemowner"), 114 Array("character_action","guid"), 115 Array("character_aura","guid"), 116 Array("character_gifts","guid"), 117 Array("character_homebind","guid"), 118 Array("character_inventory","guid"), 119 Array("character_pet","owner"), 120 Array("character_queststatus","guid"), 121 Array("character_reputation","guid"), 122 Array("character_social","guid"), 123 Array("character_social","friend"), 124 Array("character_spell","guid"), 125 Array("character_spell_cooldown","guid"), 126 Array("character_ticket","guid"), 127 Array("character_tutorial","guid"), 128 Array("corpse","player"), 129 Array("groups","leaderGuid"), 130 Array("group_member","memberGuid"), 131 Array("group_member","leaderGuid"), 132 Array("guild_member","guid"), 133 Array("item_instance","owner_guid"), 134 Array("mail","receiver"), 135 Array("mail_items","receiver"), 136 Array("petition","ownerguid"), 137 Array("petition_sign","ownerguid"), 138 Array("petition_sign","playerguid"), 139 Array("characters","guid") 120 140 ); 121 141 ?> -
minimanager/scripts/char_aura.php
r321 r374 3 3 require_once("config.php"); 4 4 $char_aura = Array( 5 2383 => array(2383,$lang_id_tab['CHAR_AURA_FIND_HERBS'],'FindHerbs.jpg'), 6 2580 => array(2580,$lang_id_tab['CHAR_AURA_FIND_MINERALS'],'FindMinerals.jpg'), 7 5784 => array(5784,$lang_id_tab['CHAR_AURA_SUMMON_FELSTEED'],'SummonFelsteed.jpg'), 8 13159 => array(13159,$lang_id_tab['CHAR_AURA_ASPECT_OF_THE_PACK'],'AspectOfThePack.jpg'), 9 13163 => array(13163,$lang_id_tab['CHAR_AURA_ASPECT_OF_THE_MONKEY'],'AspectOfTheMonkey.jpg'), 10 19878 => array(19878,$lang_id_tab['CHAR_AURA_TRACK_DEMONS'],'TrackDemons.jpg'), 11 1494 => array(1494,$lang_id_tab['CHAR_AURA_TRACK_BEASTS'],'TrackBeasts.jpg'), 12 19879 => array(19879,$lang_id_tab['CHAR_AURA_TRACK_DRAGONKIN'],'TrackDragonkin.jpg'), 13 19880 => array(19880,$lang_id_tab['CHAR_AURA_TRACK_ELEMENTALS'],'TrackElementals.jpg'), 14 19883 => array(19883,$lang_id_tab['CHAR_AURA_TRACK_HUMANOIDS'],'TrackHumanoids.jpg'), 15 19882 => array(19882,$lang_id_tab['CHAR_AURA_TRACK_GIANTS'],'TrackGiants.jpg'), 16 19884 => array(19884,$lang_id_tab['CHAR_AURA_TRACK_UNDEAD'],'TrackUndead.jpg'), 17 19885 => array(19885,$lang_id_tab['CHAR_AURA_TRACK_HIDDEN'],'TrackHidden.jpg'), 18 1126 => array(1126,$lang_id_tab['CHAR_AURA_MARK_OF_THE_WILD_RANK_1'],'MarkOfTheWild.jpg'), 19 5232 => array(5232,$lang_id_tab['CHAR_AURA_MARK_OF_THE_WILD_RANK_2'],'MarkOfTheWild.jpg'), 20 6756 => array(6756,$lang_id_tab['CHAR_AURA_MARK_OF_THE_WILD_RANK_3'],'MarkOfTheWild.jpg'), 21 5234 => array(5234,$lang_id_tab['CHAR_AURA_MARK_OF_THE_WILD_RANK_4'],'MarkOfTheWild.jpg'), 22 8907 => array(8907,$lang_id_tab['CHAR_AURA_MARK_OF_THE_WILD_RANK_5'],'MarkOfTheWild.jpg'), 23 9884 => array(9884,$lang_id_tab['CHAR_AURA_MARK_OF_THE_WILD_RANK_6'],'MarkOfTheWild.jpg'), 24 9885 => array(9885,$lang_id_tab['CHAR_AURA_MARK_OF_THE_WILD_RANK_7'],'MarkOfTheWild.jpg'), 25 26990 => array(26990,$lang_id_tab['CHAR_AURA_MARK_OF_THE_WILD_RANK_8'],'MarkOfTheWild.jpg'), 26 13165 => array(13165,$lang_id_tab['CHAR_AURA_ASPECT_OF_THE_HAWK_RANK_1'],'AspectOfTheHawk.jpg'), 27 14318 => array(14318,$lang_id_tab['CHAR_AURA_ASPECT_OF_THE_HAWK_RANK_2'],'AspectOfTheHawk.jpg'), 28 14319 => array(14319,$lang_id_tab['CHAR_AURA_ASPECT_OF_THE_HAWK_RANK_3'],'AspectOfTheHawk.jpg'), 29 14320 => array(14320,$lang_id_tab['CHAR_AURA_ASPECT_OF_THE_HAWK_RANK_4'],'AspectOfTheHawk.jpg'), 30 14321 => array(14321,$lang_id_tab['CHAR_AURA_ASPECT_OF_THE_HAWK_RANK_5'],'AspectOfTheHawk.jpg'), 31 14322 => array(14322,$lang_id_tab['CHAR_AURA_ASPECT_OF_THE_HAWK_RANK_6'],'AspectOfTheHawk.jpg'), 32 25296 => array(25296,$lang_id_tab['CHAR_AURA_ASPECT_OF_THE_HAWK_RANK_7'],'AspectOfTheHawk.jpg'), 33 27044 => array(27044,$lang_id_tab['CHAR_AURA_ASPECT_OF_THE_HAWK_RANK_8'],'AspectOfTheHawk.jpg'), 34 34074 => array(34074,$lang_id_tab['CHAR_AURA_ASPECT_OF_THE_VIPER'],'AspectOfTheViper.jpg'), 35 20043 => array(20043,$lang_id_tab['CHAR_AURA_ASPECT_OF_THE_WILD_RANK_1'],'AspectOfTheWild.jpg'), 36 20190 => array(20190,$lang_id_tab['CHAR_AURA_ASPECT_OF_THE_WILD_RANK_2'],'AspectOfTheWild.jpg'), 37 27045 => array(27045,$lang_id_tab['CHAR_AURA_ASPECT_OF_THE_WILD_RANK_3'],'AspectOfTheWild.jpg'), 38 19506 => array(19506,$lang_id_tab['CHAR_AURA_TRUESHOT_AURA_RANK_1'],'Trueshot.jpg'), 39 20905 => array(20905,$lang_id_tab['CHAR_AURA_TRUESHOT_AURA_RANK_2'],'Trueshot.jpg'), 40 20906 => array(20906,$lang_id_tab['CHAR_AURA_TRUESHOT_AURA_RANK_3'],'Trueshot.jpg'), 41 27066 => array(27066,$lang_id_tab['CHAR_AURA_TRUESHOT_AURA_RANK_4'],'Trueshot.jpg'), 42 1459 => array(1459,$lang_id_tab['CHAR_AURA_ARCANE_INTELLECT_RANK_1'],'ArcaneIntellect.jpg'), 43 1460 => array(1460,$lang_id_tab['CHAR_AURA_ARCANE_INTELLECT_RANK_2'],'ArcaneIntellect.jpg'), 44 1461 => array(1461,$lang_id_tab['CHAR_AURA_ARCANE_INTELLECT_RANK_3'],'ArcaneIntellect.jpg'), 45 10156 => array(10156,$lang_id_tab['CHAR_AURA_ARCANE_INTELLECT_RANK_4'],'ArcaneIntellect.jpg'), 46 10157 => array(10157,$lang_id_tab['CHAR_AURA_ARCANE_INTELLECT_RANK_5'],'ArcaneIntellect.jpg'), 47 27126 => array(27126,$lang_id_tab['CHAR_AURA_ARCANE_INTELLECT_RANK_6'],'ArcaneIntellect.jpg'), 48 168 => array(168,$lang_id_tab['CHAR_AURA_FROST_ARMOR_RANK_1'],'FrostArmor.jpg'), 49 7300 => array(7300,$lang_id_tab['CHAR_AURA_FROST_ARMOR_RANK_2'],'FrostArmor.jpg'), 50 7301 => array(7301,$lang_id_tab['CHAR_AURA_FROST_ARMOR_RANK_3'],'FrostArmor.jpg'), 51 6117 => array(6117,$lang_id_tab['CHAR_AURA_MAGE_ARMOR_RANK_1'],'MageArmor.jpg'), 52 22782 => array(22782,$lang_id_tab['CHAR_AURA_MAGE_ARMOR_RANK_2'],'MageArmor.jpg'), 53 22783 => array(22783,$lang_id_tab['CHAR_AURA_MAGE_ARMOR_RANK_3'],'MageArmor.jpg'), 54 27125 => array(27125,$lang_id_tab['CHAR_AURA_MAGE_ARMOR_RANK_4'],'MageArmor.jpg'), 55 30482 => array(30482,$lang_id_tab['CHAR_AURA_MOLTEN_ARMOR'],'MoltenArmor.jpg') 56 ); 57 58 function get_char_aura_name($id){ 59 global $lang_char_aura, $char_aura; 60 if( isset($char_aura[$id]) ) return $char_aura[$id][1]; 61 else return "Unknown"; 62 } 63 64 function get_char_aura_image($id){ 65 global $char_aura; 66 if( isset($char_aura[$id][2]) ) return $char_aura[$id][2]; 67 else return 'missing.jpg'; 68 } 69 70 71 5 2383 => array($lang_id_tab['CHAR_AURA_FIND_HERBS'],'INV_Misc_Flower_02'), 6 2580 => array($lang_id_tab['CHAR_AURA_FIND_MINERALS'],'Spell_Nature_Earthquake'), 7 5784 => array($lang_id_tab['CHAR_AURA_SUMMON_FELSTEED'],'Spell_Nature_Swiftness'), 8 13159 => array($lang_id_tab['CHAR_AURA_ASPECT_OF_THE_PACK'],'Ability_Mount_WhiteTiger'), 9 13163 => array($lang_id_tab['CHAR_AURA_ASPECT_OF_THE_MONKEY'],'Ability_Hunter_AspectOfTheMonkey'), 10 19878 => array($lang_id_tab['CHAR_AURA_TRACK_DEMONS'],'Spell_Shadow_SummonFelHunter'), 11 1494 => array($lang_id_tab['CHAR_AURA_TRACK_BEASTS'],'Ability_Tracking'), 12 19879 => array($lang_id_tab['CHAR_AURA_TRACK_DRAGONKIN'],'INV_Misc_Head_Dragon_01'), 13 19880 => array($lang_id_tab['CHAR_AURA_TRACK_ELEMENTALS'],'Spell_Frost_SummonWaterElemental'), 14 19883 => array($lang_id_tab['CHAR_AURA_TRACK_HUMANOIDS'],'Spell_Holy_PrayerOfHealing'), 15 19882 => array($lang_id_tab['CHAR_AURA_TRACK_GIANTS'],'Ability_Racial_Avatar'), 16 19884 => array($lang_id_tab['CHAR_AURA_TRACK_UNDEAD'],'Spell_Shadow_DarkSummoning'), 17 19885 => array($lang_id_tab['CHAR_AURA_TRACK_HIDDEN'],'Ability_Stealth'), 18 1126 => array($lang_id_tab['CHAR_AURA_MARK_OF_THE_WILD_RANK_1'],'Spell_Nature_Regeneration'), 19 5232 => array($lang_id_tab['CHAR_AURA_MARK_OF_THE_WILD_RANK_2'],'Spell_Nature_Regeneration'), 20 6756 => array($lang_id_tab['CHAR_AURA_MARK_OF_THE_WILD_RANK_3'],'Spell_Nature_Regeneration'), 21 5234 => array($lang_id_tab['CHAR_AURA_MARK_OF_THE_WILD_RANK_4'],'Spell_Nature_Regeneration'), 22 8907 => array($lang_id_tab['CHAR_AURA_MARK_OF_THE_WILD_RANK_5'],'Spell_Nature_Regeneration'), 23 9884 => array($lang_id_tab['CHAR_AURA_MARK_OF_THE_WILD_RANK_6'],'Spell_Nature_Regeneration'), 24 9885 => array($lang_id_tab['CHAR_AURA_MARK_OF_THE_WILD_RANK_7'],'Spell_Nature_Regeneration'), 25 26990 => array($lang_id_tab['CHAR_AURA_MARK_OF_THE_WILD_RANK_8'],'Spell_Nature_Regeneration'), 26 13165 => array($lang_id_tab['CHAR_AURA_ASPECT_OF_THE_HAWK_RANK_1'],'Spell_Nature_RavenForm'), 27 14318 => array($lang_id_tab['CHAR_AURA_ASPECT_OF_THE_HAWK_RANK_2'],'Spell_Nature_RavenForm'), 28 14319 => array($lang_id_tab['CHAR_AURA_ASPECT_OF_THE_HAWK_RANK_3'],'Spell_Nature_RavenForm'), 29 14320 => array($lang_id_tab['CHAR_AURA_ASPECT_OF_THE_HAWK_RANK_4'],'Spell_Nature_RavenForm'), 30 14321 => array($lang_id_tab['CHAR_AURA_ASPECT_OF_THE_HAWK_RANK_5'],'Spell_Nature_RavenForm'), 31 14322 => array($lang_id_tab['CHAR_AURA_ASPECT_OF_THE_HAWK_RANK_6'],'Spell_Nature_RavenForm'), 32 25296 => array($lang_id_tab['CHAR_AURA_ASPECT_OF_THE_HAWK_RANK_7'],'Spell_Nature_RavenForm'), 33 27044 => array($lang_id_tab['CHAR_AURA_ASPECT_OF_THE_HAWK_RANK_8'],'Spell_Nature_RavenForm'), 34 34074 => array($lang_id_tab['CHAR_AURA_ASPECT_OF_THE_VIPER'],'Ability_Hunter_AspectoftheViper'), 35 20043 => array($lang_id_tab['CHAR_AURA_ASPECT_OF_THE_WILD_RANK_1'],'Spell_Nature_ProtectionformNature'), 36 20190 => array($lang_id_tab['CHAR_AURA_ASPECT_OF_THE_WILD_RANK_2'],'Spell_Nature_ProtectionformNature'), 37 27045 => array($lang_id_tab['CHAR_AURA_ASPECT_OF_THE_WILD_RANK_3'],'Spell_Nature_ProtectionformNature'), 38 19506 => array($lang_id_tab['CHAR_AURA_TRUESHOT_AURA_RANK_1'],'Ability_TrueShot'), 39 20905 => array($lang_id_tab['CHAR_AURA_TRUESHOT_AURA_RANK_2'],'Ability_TrueShot'), 40 20906 => array($lang_id_tab['CHAR_AURA_TRUESHOT_AURA_RANK_3'],'Ability_TrueShot'), 41 27066 => array($lang_id_tab['CHAR_AURA_TRUESHOT_AURA_RANK_4'],'Ability_TrueShot'), 42 1459 => array($lang_id_tab['CHAR_AURA_ARCANE_INTELLECT_RANK_1'],'Spell_Holy_MagicalSentry'), 43 1460 => array($lang_id_tab['CHAR_AURA_ARCANE_INTELLECT_RANK_2'],'Spell_Holy_MagicalSentry'), 44 1461 => array($lang_id_tab['CHAR_AURA_ARCANE_INTELLECT_RANK_3'],'Spell_Holy_MagicalSentry'), 45 10156 => array($lang_id_tab['CHAR_AURA_ARCANE_INTELLECT_RANK_4'],'Spell_Holy_MagicalSentry'), 46 10157 => array($lang_id_tab['CHAR_AURA_ARCANE_INTELLECT_RANK_5'],'Spell_Holy_MagicalSentry'), 47 27126 => array($lang_id_tab['CHAR_AURA_ARCANE_INTELLECT_RANK_6'],'Spell_Holy_MagicalSentry'), 48 168 => array($lang_id_tab['CHAR_AURA_FROST_ARMOR_RANK_1'],'Spell_Frost_FrostArmor02'), 49 7300 => array($lang_id_tab['CHAR_AURA_FROST_ARMOR_RANK_2'],'Spell_Frost_FrostArmor02'), 50 7301 => array($lang_id_tab['CHAR_AURA_FROST_ARMOR_RANK_3'],'Spell_Frost_FrostArmor02'), 51 6117 => array($lang_id_tab['CHAR_AURA_MAGE_ARMOR_RANK_1'],'Spell_MageArmor'), 52 22782 => array($lang_id_tab['CHAR_AURA_MAGE_ARMOR_RANK_2'],'Spell_MageArmor'), 53 22783 => array($lang_id_tab['CHAR_AURA_MAGE_ARMOR_RANK_3'],'Spell_MageArmor'), 54 27125 => array($lang_id_tab['CHAR_AURA_MAGE_ARMOR_RANK_4'],'Spell_MageArmor'), 55 30482 => array($lang_id_tab['CHAR_AURA_MOLTEN_ARMOR'],'Ability_Mage_MoltenArmor') 56 ); 57 58 function get_char_aura_name($id){ 59 global $lang_char_aura, $char_aura; 60 if( isset($char_aura[$id]) ) return $char_aura[$id][0]; 61 else return "Unknown"; 62 } 63 ?> -
minimanager/scripts/config.sample.php
r368 r374 12 12 */ 13 13 14 $version = "0.1 .6g";14 $version = "0.12"; 15 15 16 16 //---- SQL Configuration ---- … … 24 24 $db_type = "MySQL"; 25 25 26 $mmfpm_db = Array( 27 'addr' => "127.0.0.1:3306", //SQL server IP:port this DB located on 28 'user' => "root", //SQL server login this DB located on 29 'pass' => "", //SQL server pass this DB located on 30 'name' => "mmfpm", //realmd DB name 31 'encoding' => "utf8" //SQL connection encoding 32 ); 33 26 34 $realm_db = Array( 27 35 'addr' => "127.0.0.1:3306", //SQL server IP:port this realmd located on 28 36 'user' => "root", //SQL server login this realmd located on 29 'pass' => " pass", //SQL server pass this realmd located on37 'pass' => "", //SQL server pass this realmd located on 30 38 'name' => "realmd", //realmd DB name 31 39 'encoding' => "utf8" //SQL connection encoding 32 40 ); 41 33 42 $mangos_db = Array( 34 43 1 => array( //position in array must represent realmd ID … … 36 45 'addr' => "127.0.0.1:3306", //SQL server IP:port this DB located on 37 46 'user' => "root", //SQL server login this DB located on 38 'pass' => " pass", //SQL server pass this DB located on47 'pass' => "", //SQL server pass this DB located on 39 48 'name' => "mangos", //World Database name 40 49 'encoding' => "utf8" //SQL connection encoding … … 47 56 'addr' => "127.0.0.1:3306", //SQL server IP:port this DB located on 48 57 'user' => "root", //SQL server login this DB located on 49 'pass' => " pass", //SQL server pass this DB located on58 'pass' => "", //SQL server pass this DB located on 50 59 'name' => "characters", //Character Database name 51 60 'encoding' => "utf8", //SQL connection encoding … … 60 69 'term_type' => "SSH", //Terminal type - ("SSH"/"Telnet") 61 70 'term_port' => 22, //Terminal port 62 'rev' => "rev. 5297 SD269", //Mangos rev. used71 'rev' => "rev. 6360", //Mangos rev. used 63 72 'both_factions' => true //Allow to see opponent faction characters. Affects only players. 64 73 ), … … 81 90 //---- New account creation Options ---- 82 91 $disable_acc_creation = false; //true = Do not allow new accounts to be created 92 $expansion_select = false; //true = Shows option to select expansion or classic False = no option(TBC) enabled by default 93 $defaultoption = 1; //if the above is false then set what the default option will be (1 = TBC, 0 = Classic) 94 $enable_captcha = true; //false = no security image check (enable for protection against 'bot' registrations) 83 95 $send_mail_on_creation = false; //true = send mail at account creation. 84 96 $create_acc_locked = 0; //if set to '1' newly created accounts will be made locked to 0.0.0.0 IP disallowing user to login. … … 97 109 98 110 $css_template = "Sulfur"; //file/folder name of css tamplate to use from templates directory by default 99 $language = "enUS"; //default site language 100 $site_encoding = "iso-8859-1"; //default encoding 111 $language = "english"; //default site language 112 $tt_lang = "www"; //wowhead tooltip language.....choices are 'fr', 'de', 'es' (for 'en' use www) 113 $timezone = "UTC"; //default timezone (use your local timezone code) 101 114 102 115 //---- IRC Options ------ 103 116 $irc_cfg = array( 104 'server' => " irc.quakenet.org", //irc server117 'server' => "mangos.cjb.net", //irc server 105 118 'port' => 6667, //port 106 'channel' => " test" //channel119 'channel' => "minimanager" //channel 107 120 ); 108 121 109 122 //---- External Links ---- 110 $item_datasite = "http:// www.wowhead.com/?item=";111 $quest_datasite = "http:// www.wowhead.com/?quest=";112 $creature_datasite = "http:// www.wowhead.com/?npc=";113 $spell_datasite = "http:// www.wowhead.com/?spell=";114 $skill_datasite = "http:// www.wowhead.com/?spells=";115 $talent_datasite = "http:// wowhead.com/?spell=";123 $item_datasite = "http://$tt_lang.wowhead.com/?item="; 124 $quest_datasite = "http://$tt_lang.wowhead.com/?quest="; 125 $creature_datasite = "http://$tt_lang.wowhead.com/?npc="; 126 $spell_datasite = "http://$tt_lang.wowhead.com/?spell="; 127 $skill_datasite = "http://$tt_lang.wowhead.com/?spells="; 128 $talent_datasite = "http://$tt_lang.wowhead.com/?spell="; 116 129 $talent_calculator_datasite = "http://www.worldofwarcraft.com/info/classes"; 117 $go_datasite = "http:// www.wowhead.com/?object=";130 $go_datasite = "http://$tt_lang.wowhead.com/?object="; 118 131 $get_icons_from_web = true; //wherever to get icons from the web in case they are missing in /img/INV dir. 119 132 … … 124 137 $proxy_cfg = Array( 125 138 'addr' => "", //configure only if requierd 126 'port' => 80 80,139 'port' => 80, 127 140 'user' => "", 128 141 'pass' => "" 129 142 ); 130 143 131 //menu content by user level 144 // ---- Module and Security settings ---- 145 // -- Meaning of the columns : TARGET, LANG_TEXT, ( READ/VIEW , UPDATE , INSERT , DELETE ) min Permission GM LEVEL 146 // -- Files excluded for this : Login.php, Pomm.php 147 // -- - Both files don't use header.php, so we can't include this method.. but its not a big deal 148 // 149 // -- Permmissions are set, but only READ Permission used right now... 150 // -- - Updates will follow 151 // -- 152 // -- If not set or lower, higher permission from lower rights overwrite higher permission ( Example : VIEW = 5, UDDATE = 0 >> UPDATE = 5) 153 132 154 $menu_array = Array( 133 5 => array("SysOP" ,array( 134 array("index.php", 'main', array()), 135 array("#", 'users', array( 136 array("user.php", 'accounts'), 137 array("char_list.php", 'characters'), 138 array("guild.php", 'guilds'), 139 array("arenateam.php", 'arena_teams'), 140 array("honor.php", 'honor'), 141 array("banned.php", 'banned_list'), 142 array("cleanup.php", 'cleanup'), 143 array("stat.php", 'statistics'), 144 array("stat_on.php", 'statistics_on'), 145 array("javascript:void(0);\" onclick=\"window.open('./pomm/pomm.php', 'pomm', 'Toolbar=0, Location=0, Directories=0, Status=0, Menubar=0, Scrollbar=0, Resizable=0, Copyhistory=1, Width=784, Height=525')", 'player_map'), 146 ), 147 ), 148 array("#", 'tools', array( 149 array("ssh.php", 'ssh_line'), 150 array("run_patch.php", 'run_sql_patch'), 151 array("ticket.php", 'tickets'), 152 array("ahstats.php", 'auctionhouse'), 153 array("events.php", 'events'), 154 array("realm.php", 'realm'), 155 array("motd.php", 'add_motd'), 156 array("mail.php", 'mail'), 157 array("irc.php", 'irc'), 158 array("instances.php", 'instances'), 159 ), 160 ), 161 array("#", 'db', array( 162 array("item.php", 'items'), 163 array("creature.php", 'creatures'), 164 array("game_object.php", 'game_object'), 165 array("tele.php", 'teleports'), 166 array("command.php", 'command'), 167 array("backup.php", 'backup'), 168 array("repair.php", 'repair'), 169 ), 170 ), 171 array("#", 'forums', array( 172 array("forum.php", 'forums'), 173 array("javascript:void(0);\" onclick=\"window.open('./forum.html', 'forum')", 'forums'), 174 ), 175 ), 176 ) 177 ), 178 4 => array("Admin" ,array( 179 array("index.php", 'main', array()), 180 array("#", 'users', array( 181 array("user.php", 'accounts'), 182 array("char_list.php", 'characters'), 183 array("guild.php", 'guilds'), 184 array("arenateam.php", 'arena_teams'), 185 array("honor.php", 'honor'), 186 array("banned.php", 'banned_list'), 187 array("cleanup.php", 'cleanup'), 188 array("stat.php", 'statistics'), 189 array("stat_on.php", 'statistics_on'), 190 array("javascript:void(0);\" onclick=\"window.open('./pomm/pomm.php', 'pomm', 'Toolbar=0, Location=0, Directories=0, Status=0, Menubar=0, Scrollbar=0, Resizable=0, Copyhistory=1, Width=784, Height=525')", 'player_map'), 191 ), 192 ), 193 array("#", 'tools', array( 194 array("ssh.php", 'ssh_line'), 195 array("run_patch.php", 'run_sql_patch'), 196 array("ticket.php", 'tickets'), 197 array("ahstats.php", 'auctionhouse'), 198 array("events.php", 'events'), 199 array("realm.php", 'realm'), 200 array("motd.php", 'add_motd'), 201 array("mail.php", 'mail'), 202 array("irc.php", 'irc'), 203 array("instances.php", 'instances'), 204 ), 205 ), 206 array("#", 'db', array( 207 array("item.php", 'items'), 208 array("creature.php", 'creatures'), 209 array("game_object.php", 'game_object'), 210 array("tele.php", 'teleports'), 211 array("command.php", 'command'), 212 array("backup.php", 'backup'), 213 array("repair.php", 'repair'), 214 ), 215 ), 216 array("#", 'forums', array( 217 array("forum.php", 'forums'), 218 array("javascript:void(0);\" onclick=\"window.open('./forum.html', 'forum')", 'forums'), 219 ), 220 ), 221 ) 222 ), 223 3 => array("BugTracker" ,array( 224 array("index.php", 'main', array()), 225 array("#", 'users', array( 226 array("user.php", 'accounts'), 227 array("char_list.php", 'characters'), 228 array("guild.php", 'guilds'), 229 array("arenateam.php", 'arena_teams'), 230 array("honor.php", 'honor'), 231 array("banned.php", 'banned_list'), 232 array("cleanup.php", 'cleanup'), 233 array("stat.php", 'statistics'), 234 array("stat_on.php", 'statistics_on'), 235 array("javascript:void(0);\" onclick=\"window.open('./pomm/pomm.php', 'pomm', 'Toolbar=0, Location=0, Directories=0, Status=0, Menubar=0, Scrollbar=0, Resizable=0, Copyhistory=1, Width=784, Height=525')", 'player_map'), 236 ), 237 ), 238 array("#", 'tools', array( 239 array("ssh.php", 'ssh_line'), 240 array("run_patch.php", 'run_sql_patch'), 241 array("ticket.php", 'tickets'), 242 array("ahstats.php", 'auctionhouse'), 243 array("events.php", 'events'), 244 array("realm.php", 'realm'), 245 array("motd.php", 'add_motd'), 246 array("mail.php", 'mail'), 247 array("irc.php", 'irc'), 248 array("instances.php", 'instances'), 249 ), 250 ), 251 array("#", 'db', array( 252 array("item.php", 'items'), 253 array("creature.php", 'creatures'), 254 array("game_object.php", 'game_object'), 255 array("tele.php", 'teleports'), 256 array("command.php", 'command'), 257 array("backup.php", 'backup'), 258 array("repair.php", 'repair'), 259 ), 260 ), 261 array("#", 'forums', array( 262 array("forum.php", 'forums'), 263 array("javascript:void(0);\" onclick=\"window.open('./forum.html', 'forum')", 'forums'), 264 ), 265 ), 266 ) 267 ), 268 2 => array("GameMaster" ,array( 269 array("index.php", 'main', array()), 270 array("#", 'users', array( 271 array("user.php", 'accounts'), 272 array("char_list.php", 'characters'), 273 array("guild.php", 'guilds'), 274 array("arenateam.php", 'arena_teams'), 275 array("honor.php", 'honor'), 276 array("banned.php", 'banned_list'), 277 array("stat.php", 'statistics'), 278 array("stat_on.php", 'statistics_on'), 279 array("javascript:void(0);\" onclick=\"window.open('./pomm/pomm.php', 'pomm', 'Toolbar=0, Location=0, Directories=0, Status=0, Menubar=0, Scrollbar=0, Resizable=0, Copyhistory=1, Width=784, Height=525')", 'player_map'), 280 ), 281 ), 282 array("#", 'tools', array( 283 array("ticket.php", 'tickets'), 284 array("ahstats.php", 'auctionhouse'), 285 array("events.php", 'events'), 286 array("motd.php", 'add_motd'), 287 array("mail.php", 'mail'), 288 array("irc.php", 'irc'), 289 array("instances.php", 'instances'), 290 ), 291 ), 292 array("#", 'db', array( 293 array("item.php", 'items'), 294 array("creature.php", 'creatures'), 295 array("game_object.php", 'game_object'), 296 array("tele.php", 'teleports'), 297 array("command.php", 'command'), 298 ), 299 ), 300 array("#", 'forums', array( 301 array("forum.php", 'forums'), 302 array("javascript:void(0);\" onclick=\"window.open('./forum.html', 'forum')", 'forums'), 303 ), 304 ), 305 ) 306 ), 307 1 => array("Moderator" ,array( 308 array("index.php", 'main', array()), 309 310 array("#", 'forums', array( 311 array("forum.php", 'forums'), 312 array("javascript:void(0);\" onclick=\"window.open('./forum.html', 'forum')", 'forums'), 313 ), 314 ), 315 ) 316 ), 317 0 => array("Player" ,array( 318 array("index.php", 'main', array()), 319 array("#", 'users', array( 320 array("guild.php", 'guilds'), 321 array("arenateam.php", 'arena_teams'), 322 array("honor.php", 'honor'), 323 array("stat.php", 'statistics'), 324 array("stat_on.php", 'statistics_on'), 325 array("javascript:void(0);\" onclick=\"window.open('./pomm/pomm.php', 'pomm', 'Toolbar=0, Location=0, Directories=0, Status=0, Menubar=0, Scrollbar=0, Resizable=0, Copyhistory=1, Width=784, Height=525')", 'player_map'), 326 ), 327 ), 328 array("#", 'tools', array( 329 array("ahstats.php", 'auctionhouse'), 330 array("command.php", 'command'), 331 array("events.php", 'events'), 332 array("irc.php", 'irc'), 333 array("instances.php", 'instances'), 334 ), 335 ), 336 array("#", 'forums', array( 337 array("forum.php", 'forums'), 338 array("javascript:void(0);\" onclick=\"window.open('./forum.html', 'forum')", 'forums'), 339 ), 340 ), 341 ) 342 ), 343 344 ); 345 155 array("index.php", 'main', array()), 156 array("#", 'users', array( 157 array("user.php", 'accounts',1,0,0,0), 158 array("char_list.php", 'characters',1,0,0,0), 159 array("guild.php", 'guilds',0,0,0,0), 160 array("arenateam.php", 'arena_teams',0,0,0,0), 161 array("honor.php", 'honor',0,0,0,0), 162 array("banned.php", 'banned_list',1,0,0,0), 163 array("cleanup.php", 'cleanup',3,0,0,0), 164 array("stat.php", 'statistics',0,0,0,0), 165 array("javascript:void(0);\" onclick=\"window.open('./pomm/pomm.php', 'pomm', 'Toolbar=0, Location=0, Directories=0, Status=0, Menubar=0, Scrollbar=0, Resizable=0, Copyhistory=1, Width=784, Height=525')", 'player_map',0,0,0,0), 166 ), 167 ), 168 array("#", 'tools', array( 169 array("ssh.php", 'ssh_line',3,0,0,0), 170 array("run_patch.php", 'run_sql_patch',3,0,0,0), 171 array("ticket.php", 'tickets',1,0,0,0), 172 array("ahstats.php", 'auctionhouse',0,0,0,0), 173 array("events.php", 'events',0,0,0,0), 174 array("realm.php", 'realm',3,0,0,0), 175 array("motd.php", 'add_motd',1,0,0,0), 176 array("mail.php", 'mail',3,0,0,0), 177 array("irc.php", 'irc',0,0,0,0), 178 array("instances.php", 'instances',0,0,0,0), 179 ), 180 ), 181 array("#", 'db', array( 182 array("item.php", 'items',1,0,0,0), 183 array("creature.php", 'creatures',1,0,0,0), 184 array("game_object.php", 'game_object',1,0,0,0), 185 array("tele.php", 'teleports',1,0,0,0), 186 array("command.php", 'command',0,0,0,0), 187 array("backup.php", 'backup',3,0,0,0), 188 array("repair.php", 'repair',3,0,0,0), 189 ), 190 ), 191 array("#", 'forums', array( 192 array("forum.php", 'forums',0,0,0,0), 193 array("javascript:void(0);\" onclick=\"window.open('./forum.html', 'forum')", 'forums',0,0,0,0), 194 ), 195 ), 196 array("#", 'invisible', array( 197 array("char.php", 'character',0,0,0,0), 198 array("char_edit.php", 'char_edit',1,0,0,0), 199 array("edit.php", 'MyAccount',0,0,0,0), 200 array("index.php, 'Startpage'",0,0,0,0), 201 ), 202 ), 203 ); 204 346 205 $debug = false; //set to true if full php debugging requierd. 347 206 ?> -
minimanager/scripts/defines.php
r350 r374 59 59 define('CHAR_DATA_OFFSET_RANGE_CRIT',1321); 60 60 define('CHAR_DATA_OFFSET_SPELL_CRIT_PER',1323); 61 define('CHAR_DATA_OFFSET_GOLD',1 397);62 define('CHAR_DATA_OFFSET_HONOR_KILL',1 453);63 define('CHAR_DATA_OFFSET_HONOR_POINTS',1 498);64 define('CHAR_DATA_OFFSET_ARENA_POINTS',1 499);61 define('CHAR_DATA_OFFSET_GOLD',1461); 62 define('CHAR_DATA_OFFSET_HONOR_KILL',1517); 63 define('CHAR_DATA_OFFSET_HONOR_POINTS',1562); 64 define('CHAR_DATA_OFFSET_ARENA_POINTS',1563); 65 65 ?> -
minimanager/scripts/del_lib.php
r307 r374 113 113 114 114 $query = $sql_01->query("DELETE FROM guild_member WHERE guildid = '$guid'"); 115 $query = $sql_01->query("DELETE FROM guild_bank_eventlog WHERE guildid = '$guid'"); 116 $query = $sql_01->query("DELETE FROM guild_bank_right WHERE guildid = '$guid'"); 117 $query = $sql_01->query("DELETE FROM guild_bank_tab WHERE guildid = '$guid'"); 118 $query = $sql_01->query("DELETE FROM guild_eventlog WHERE guildid = '$guid'"); 119 $query = $sql_01->query("DELETE FROM item_instance WHERE guid IN (SELECT item_guid FROM guild_bank_item WHERE guildid ='$guid')"); 120 $query = $sql_01->query("DELETE FROM guild_bank_item WHERE guildid = '$guid'"); 115 121 116 122 if ($sql_01->affected_rows()){ -
minimanager/scripts/fact_tab.php
r5 r374 8 8 * License: GNU General Public License v2(GPL) 9 9 */ 10 11 $fact_id = Array( 12 // 0 1 2 3 4 5 6 7 8 9 10 11 13 //id => array(name,team,n,reputationListID,BaseRepMask1,BaseRepMask2,BaseRepMask3,BaseRepMask4,BaseRepValue1,BaseRepValue2,BaseRepValue3,BaseRepValue4) 14 54 => array("Gnomeregan Exiles","Alliance",1,18,1037,690,64,0,3100,-42000,4000,0), 15 72 => array("Stormwind","Alliance",1,19,1100,690,1,0,3100,-42000,4000,0), 16 47 => array("Ironforge","Alliance",1,20,1097,690,4,0,3100,-42000,4000,0), 17 69 => array("Darnassus","Alliance",1,21,1093,690,8,0,3100,-42000,4000,0), 18 930 => array("Exodar","Alliance",1,49,77,946,1024,0,3000,-42000,4000,0), 19 20 76 => array("Orgrimmar","Horde",2,14,160,1101,2,528,3100,-42000,4000,500), 21 530 => array("Darkspear Trolls","Horde",2,15,34,1101,528,128,3100,-42000,500,4000), 22 81 => array("Thunder Bluff","Horde",2,16,130,1101,528,32,3100,-42000,500,4000), 23 68 => array("Undercity","Horde",2,17,162,1101,16,512,500,-42000,4000,3100), 24 911 => array("Silvermoon City","Horde",2,55,162,1101,512,16,400,-42000,4000,3100), 25 26 730 => array("Stormpike Guard","Alliance Forces",3,40,1101,690,0,0,0,-42000,0,0), 27 890 => array("Silverwing Sentinels","Alliance Forces",3,45,1101,690,0,0,0,-42000,0,0), 28 509 => array("The League of Arathor","Alliance Forces",3,53,1101,690,0,0,0,-42000,0,0), 29 30 729 => array("Frostwolf Clan","Horde Forces",4,41,690,1101,0,0,0,-42000,0,0), 31 889 => array("Warsong Outriders","Horde Forces",4,46,690,1101,0,0,0,-42000,0,0), 32 510 => array("The Defilers","Horde Forces",4,52,690,1101,0,0,0,-42000,0,0), 33 34 21 => array("Booty Bay","Steamwheedle Cartel",5,1,1791,0,0,0,500,0,0,0), 35 369 => array("Gadgetzan","Steamwheedle Cartel",5,7,1791,0,0,0,500,0,0,0), 36 470 => array("Ratchet","Steamwheedle Cartel",5,9,1791,0,0,0,500,0,0,0), 37 577 => array("Everlook","Steamwheedle Cartel",5,28,1791,0,0,0,500,0,0,0), 38 39 947 => array("Thrallmar","Outland",6,37,690,1101,0,0,0,-42000,0,0), 40 946 => array("Honor Hold","Outland",6,38,1101,690,0,0,0,-42000,0,0), 41 933 => array("The Consortium","Outland",6,60,2047,0,0,0,0,0,0,0), 42 941 => array("The Mag'har","Outland",6,61,690,1101,0,0,-500,-42000,0,0), 43 942 => array("Cenarion Expedition","Outland",6,64,2047,0,0,0,0,0,0,0), 44 970 => array("Sporeggar","Outland",6,65,2047,0,0,0,-2500,0,0,0), 45 978 => array("Kurenai","Outland",6,66,1101,690,0,0,-1200,-42000,0,0), 46 1012 => array("Ashtongue Deathsworn","Outland",6,70,1791,0,0,0,0,0,0,0), 47 1015 => array("Netherwing","Outland",6,71,1791,0,0,0,-42000,0,0,0), 48 1038 => array("Ogri'la","Outland",6,73,1791,0,0,0,0,0,0,0), 49 50 935 => array("The Sha'tar","Shattrath City",7,39,1791,0,0,0,0,0,0,0), 51 932 => array("The Aldor","Shattrath City",7,58,255,1024,512,0,0,3500,-3500,0), 52 934 => array("The Scryers","Shattrath City",7,62,255,1024,512,0,0,-3500,3500,0), 53 1011 => array("Lower City","Shattrath City",7,69,32767,0,0,0,0,0,0,0), 54 1031 => array("Sha'tari Skyguard","Shattrath City",7,72,1791,0,0,0,0,0,0,0), 55 56 87 => array("Bloodsail Buccaneers","Other",8,0,1791,0,0,0,-6500,0,0,0), 57 92 => array("Gelkis Clan Centaur","Other",8,2,1791,0,0,0,2000,0,0,0), 58 93 => array("Magram Clan Centaur","Other",8,3,1791,0,0,0,2000,0,0,0), 59 59 => array("Thorium Brotherhood","Other",8,4,1791,0,0,0,0,0,0,0), 60 349 => array("Ravenholdt","Other",8,5,1791,0,0,0,0,0,0,0), 61 70 => array("Syndicate","Other",8,6,1791,0,0,0,-10000,0,0,0), 62 471 => array("Wildhammer Clan","Other",8,8,1097,690,4,0,150,-42000,500,0), 63 169 => array("Steamwheedle Cartel","Other",8,10,1791,0,0,0,500,0,0,0), 64 469 => array("Alliance","Other",8,11,1101,690,0,0,3300,-42000,0,0), 65 67 => array("Horde","Other",8,12,690,1101,0,0,3500,-42000,0,0), 66 529 => array("Argent Dawn","Other",8,13,1791,0,0,0,200,0,0,0), 67 86 => array(" Leatherworking - Dragonscale","Other",8,22,1791,0,0,0,2999,0,0,0), 68 83 => array(" Leatherworking - Elemental","Other",8,23,1791,0,0,0,2999,0,0,0), 69 549 => array(" Leatherworking - Tribal","Other",8,24,1791,0,0,0,2999,0,0,0), 70 551 => array(" Engineering - Gnome","Other",8,25,1791,0,0,0,2999,0,0,0), 71 550 => array(" Engineering - Goblin","Other",8,26,1791,0,0,0,2999,0,0,0), 72 589 => array("Wintersaber Trainers","Other",8,27,690,1101,0,0,-42000,0,0,0), 73 46 => array(" Blacksmithing - Armorsmithing","Other",8,29,1791,0,0,0,0,0,0,0), 74 289 => array(" Blacksmithing - Weaponsmithing","Other",8,30,1791,0,0,0,0,0,0,0), 75 570 => array(" Blacksmithing - Axesmithing","Other",8,31,1791,0,0,0,0,0,0,0), 76 571 => array(" Blacksmithing - Swordsmithing","Other",8,32,1791,0,0,0,0,0,0,0), 77 569 => array(" Blacksmithing - Hammersmithing","Other",8,33,1791,0,0,0,0,0,0,0), 78 574 => array("Caer Darrow","Other",8,34,1791,0,0,0,0,0,0,0), 79 576 => array("Timbermaw Hold","Other",8,35,1791,0,0,0,-3500,0,0,0), 80 609 => array("Cenarion Circle","Other",8,36,1791,40,0,0,0,2000,0,0), 81 749 => array("Hydraxian Waterlords","Other",8,42,1791,0,0,0,0,0,0,0), 82 980 => array("Outland","Other",8,43,0,0,0,0,0,0,0,0), 83 809 => array("Shen'dralar","Other",8,44,1791,0,0,0,0,0,0,0), 84 891 => array("Alliance Forces","Other",8,47,1101,178,0,0,0,-42000,0,0), 85 892 => array("Horde Forces","Other",8,48,690,77,0,0,0,-42000,0,0), 86 909 => array("Darkmoon Faire","Other",8,50,1791,0,0,0,0,0,0,0), 87 270 => array("Zandalar Tribe","Other",8,51,1791,0,0,0,0,0,0,0), 88 910 => array("Brood of Nozdormu","Other",8,54,1791,0,0,0,-42000,0,0,0), 89 922 => array("Tranquillien","Other",8,56,690,1101,0,0,0,-42000,0,0), 90 990 => array("The Scale of the Sands","Other",8,57,1791,0,0,0,0,0,0,0), 91 936 => array("Shattrath City","Other",8,59,2047,0,0,0,0,0,0,0), 92 967 => array("The Violet Eye","Other",8,63,4095,0,0,0,0,0,0,0), 93 989 => array("Keepers of Time","Other",8,67,1791,0,0,0,0,0,0,0), 94 1005 => array("Friendly, Hidden","Other",8,68,32767,0,0,0,3000,0,0,0) 95 ); 10 96 11 $fact_id = Array( 12 13 69 => array(69,"Darnassus","Alliance",1), 14 54 => array(54,"Gnomeregan Exiles","Alliance",1), 15 47 => array(47,"Ironforge","Alliance",1), 16 72 => array(72,"Stormwind","Alliance",1), 17 930 => array(930,"Exodar","Alliance",1), 18 19 530 => array(530,"Darkspear","Horde",2), 20 76 => array(76,"Orgrimmar","Horde",2), 21 81 => array(81,"Thunder Bluff","Horde",2), 22 68 => array(68,"Undercity","Horde",2), 23 911 => array(911,"Silvermoon City","Horde",2), 24 25 509 => array(509,"League of Arathor","Battleground Forces - Alliance",3), 26 890 => array(890,"Silverwing Sentinels","Battleground Forces - Alliance",3), 27 730 => array(730,"Stormpike Guard","Battleground Forces - Alliance",3), 28 29 510 => array(510,"Forsaken Defilers","Battleground Forces - Horde",4), 30 729 => array(729,"Frostwolf Clan","Battleground Forces - Horde",4), 31 889 => array(889,"Warsong Outriders","Battleground Forces - Horde",4), 32 33 21 => array(21,"Booty Bay","Steamwheedle Cartel",5), 34 577 => array(577,"Everlook","Steamwheedle Cartel",5), 35 369 => array(369,"Gadgetzan","Steamwheedle Cartel",5), 36 470 => array(470,"Ratchet","Steamwheedle Cartel",5), 37 38 1012 => array(1012,"Ashtongue Deathsworn","Outland",6), 39 942 => array(942,"Cenarion Expedition","Outland",6), 40 933 => array(933,"The Consortium","Outland",6), 41 946 => array(946,"Honor Hold Alliance Crest","Outland",6), 42 941 => array(941,"Mag'har Horde Crest","Outland",6), 43 978 => array(978,"Kurenai Alliance Crest","Outland",6), 44 1015 => array(1015,"Netherwing","Outland",6), 45 970 => array(970,"Sporeggar","Outland",6), 46 947 => array(947,"Thrallmar Horde Crest","Outland",6), 47 48 936 => array(936,"Lower City","Shattrath City",7), 49 932 => array(932,"The Aldor","Shattrath City",7), 50 934 => array(934,"The Scryers","Shattrath City",7), 51 935 => array(935,"The Sha'tar","Shattrath City",7), 52 53 529 => array(529,"Argent Dawn","Other",8), 54 87 => array(87,"Bloodsail Buccaneers","Other",8), 55 910 => array(910,"Brood of Nozdormu","Other",8), 56 609 => array(609,"Cenarion Circle","Other",8), 57 909 => array(909,"Darkmoon Faire","Other",8), 58 92 => array(92,"Gelkis Clan Centaur","Other",8), 59 749 => array(749,"Hydraxian Waterlords","Other",8), 60 989 => array(989,"Keepers of Time","Other",8), 61 93 => array(93,"Magram Clan Centaur","Other",8), 62 349 => array(349,"Ravenholdt","Other",8), 63 990 => array(990,"Scale of the Sands","Other",8), 64 809 => array(809,"Shen'dralar","Other",8), 65 70 => array(70,"Syndicate","Other",8), 66 59 => array(59,"Thorium Brotherhood","Other",8), 67 576 => array(576,"Timbermaw Hold","Other",8), 68 922 => array(922,"Tranquillien Horde Crest","Other",8), 69 471 => array(471,"Wildhammer Clan","Other",8), 70 589 => array(589,"Wintersaber Trainers","Other",8), 71 967 => array(967,"Violet Eye","Other",8), 72 270 => array(270,"Zandalar Tribe","Other",8) 73 ); 74 97 $reputation_rank_length = array(36000, 3000, 3000, 3000, 6000, 12000, 21000, 999); 98 $reputation_cap = 42999; 99 $reputation_bottom = -42000; 100 $reputation_rank = array( 0 => "Hated", 1 => "Hostile", 2 => "Unfriendly", 3 => "Neutral", 4 => "Friendly", 5 => "Honored", 6 => "Revered", 7 => "Exalted"); 101 $MIN_REPUTATION_RANK = 0; 102 $MAX_REPUTATION_RANK = 8; 75 103 76 104 function get_faction_name($fid){ 77 105 global $lang_id_tab, $fact_id; 78 if( isset($fact_id[$fid])) return $fact_id[$fid][ 1];106 if( isset($fact_id[$fid])) return $fact_id[$fid][0]; 79 107 else return($lang_id_tab['unknown']); 80 108 } … … 82 110 function get_faction_tree($fid){ 83 111 global $fact_id; 84 if( isset($fact_id[$fid])) return $fact_id[$fid][ 3];112 if( isset($fact_id[$fid])) return $fact_id[$fid][2]; 85 113 else return 0; 86 114 } 87 115 116 function get_base_reputation($fid, $race) 117 { 118 global $fact_id; 119 120 if(!isset($fact_id[$fid])) return 0; 121 122 for ($i = 0; $i < 4; $i++) 123 { 124 if ($fact_id[$fid][4 + $i] & (1 << ($race-1))) 125 return $fact_id[$fid][8 + $i]; 126 } 127 // in faction.dbc exist factions with (RepListId >=0, listed in character reputation list) with all BaseRepMask[i]==0 128 return 0; 129 } 130 131 function get_reputation($fid, $standing, $race) 132 { 133 return get_base_reputation($fid, $race) + $standing; 134 } 135 136 function get_reputation_rank($fid, $standing, $race) 137 { 138 $reputation = get_reputation($fid, $standing, $race); 139 return reputation_to_rank($reputation); 140 } 141 142 function get_reputation_at_rank($fid, $standing, $race) 143 { 144 $reputation = get_reputation($fid, $standing, $race); 145 return reputation_at_rank($reputation); 146 } 147 148 function get_base_reputation_rank($fid, $race) 149 { 150 $reputation = get_base_reputation($fid, $race); 151 return reputation_to_rank($reputation); 152 } 153 154 function reputation_to_rank($standing) 155 { 156 global $reputation_rank_length, $reputation_cap, $reputation_bottom, $reputation_rank, $MIN_REPUTATION_RANK, $MAX_REPUTATION_RANK; 157 158 $limit = $reputation_cap; 159 for ($i = $MAX_REPUTATION_RANK-1; $i >= $MIN_REPUTATION_RANK; --$i) 160 { 161 $limit -= $reputation_rank_length[$i]; 162 if ($standing >= $limit ) 163 return $i; 164 } 165 return $MIN_REPUTATION_RANK; 166 } 167 168 function reputation_at_rank($standing) 169 { 170 global $reputation_rank_length, $reputation_cap, $reputation_bottom, $reputation_rank, $MIN_REPUTATION_RANK, $MAX_REPUTATION_RANK; 171 172 $limit = $reputation_cap; 173 for ($i = $MAX_REPUTATION_RANK-1; $i >= $MIN_REPUTATION_RANK; --$i) 174 { 175 $limit -= $reputation_rank_length[$i]; 176 if ($standing >= $limit ) 177 return $standing - $limit; 178 } 179 return 0; 180 } 88 181 ?> -
minimanager/scripts/get_lib.php
r307 r374 10 10 11 11 //########################################################################################## 12 13 require_once("item_display_info.php"); 14 require_once("char_aura.php"); 15 12 16 //get name from realmlist.name 13 17 function get_realm_name($realm_id){ … … 22 26 $sql_0->close(); 23 27 return $realm_name; 28 } 29 30 //get displayid of item 31 function get_displayid($itemid) 32 { 33 global $lang_global, $realm_id, $mangos_db; 34 $sql_0 = new SQL; 35 $sql_0->connect($mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']); 36 $result = $sql_0->query("SELECT `displayid` FROM `item_template` WHERE `entry` = $itemid"); 37 if ($result) 38 $displayid = $sql_0->result($result, 0); 39 else 40 $diaplayid = 0; 41 $sql_0->close(); 42 return $displayid; 24 43 } 25 44 … … 107 126 $tooltip = ""; 108 127 109 switch ($item[35]) { 128 $itemname = htmlspecialchars($item[32]); 129 switch ($item[35]) { 110 130 case 0: //Grey Poor 111 $tooltip .= "<font color='#b2c2b9' class='large'>$item [32]</font><br />";131 $tooltip .= "<font color='#b2c2b9' class='large'>$itemname</font><br />"; 112 132 break; 113 133 case 1: //White Common 114 $tooltip .= "<font color='white' class='large'>$item [32]</font><br />";134 $tooltip .= "<font color='white' class='large'>$itemname</font><br />"; 115 135 break; 116 136 case 2: //Green Uncommon 117 $tooltip .= "<font color='#1eff00' class='large'>$item [32]</font><br />";137 $tooltip .= "<font color='#1eff00' class='large'>$itemname</font><br />"; 118 138 break; 119 139 case 3: //Blue Rare 120 $tooltip .= "<font color='#0070dd' class='large'>$item [32]</font><br />";140 $tooltip .= "<font color='#0070dd' class='large'>$itemname</font><br />"; 121 141 break; 122 142 case 4: //Purple Epic 123 $tooltip .= "<font color='#a335ee' class='large'>$item [32]</font><br />";143 $tooltip .= "<font color='#a335ee' class='large'>$itemname</font><br />"; 124 144 break; 125 145 case 5: //Orange Legendary 126 $tooltip .= "<font color='orange' class='large'>$item [32]</font><br />";146 $tooltip .= "<font color='orange' class='large'>$itemname</font><br />"; 127 147 break; 128 148 case 6: //Red Artifact 129 $tooltip .= "<font color='red' class='large'>$item [32]</font><br />";149 $tooltip .= "<font color='red' class='large'>$itemname</font><br />"; 130 150 break; 131 151 default: … … 653 673 654 674 function get_icon($itemid) { 655 global $proxy_cfg, $get_icons_from_web; 656 if (file_exists("img/INV/$itemid.jpg")) return "img/INV/$itemid.jpg"; 657 658 if($get_icons_from_web){ 659 //only customitems have ids in this range. 660 if ($itemid > 35000) return "img/INV/INV_blank_32.gif"; 661 662 $xmlfilepath="http://www.wowhead.com/?item="; 663 $proxy = $proxy_cfg['addr']; 664 $port = $proxy_cfg['port']; 665 666 if (empty($proxy_cfg['addr'])) { 667 $proxy = "www.wowhead.com"; 668 $xmlfilepath = "?item="; 669 $port = 80; 670 } 671 672 //get the icon name 673 $fp = @fsockopen($proxy, $port, $errno, $errstr, 0.4); 674 if (!$fp) return "img/INV/INV_blank_32.gif"; 675 $out = "GET $xmlfilepath$itemid HTTP/1.0\r\nHost: $proxy\r\n"; 676 if (!empty($proxy_cfg['user'])) $out .= "Proxy-Authorization: Basic ". base64_encode ("{$proxy_cfg['user']}:{$proxy_cfg['pass']}")."\r\n"; 677 $out .="Connection: Close\r\n\r\n"; 675 $displayid = get_displayid($itemid); 676 677 return get_icon_by($displayid, $itemid); 678 } 679 680 function get_icon_by($displayid, $itemid) 681 { 682 global $proxy_cfg, $get_icons_from_web, $item_display_info; 683 684 if ($displayid) 685 { 686 $item = $item_display_info[$displayid]; 687 if ($item && file_exists("img/item_icons/$item.jpg")) 688 return "img/item_icons/$item.jpg"; 689 else 690 $item = ''; 691 } 692 else $item = ''; 693 694 if($get_icons_from_web) 695 { 696 $xmlfilepath="http://www.wowhead.com/?item="; 697 $proxy = $proxy_cfg['addr']; 698 $port = $proxy_cfg['port']; 699 700 if (empty($proxy_cfg['addr'])) 701 { 702 $proxy = "www.wowhead.com"; 703 $xmlfilepath = "?item="; 704 $port = 80; 705 } 706 707 if ($item == '') 708 { 709 //get the icon name 710 $fp = @fsockopen($proxy, $port, $errno, $errstr, 0.4); 711 if (!$fp) return "img/INV/INV_blank_32.gif"; 712 $out = "GET /$xmlfilepath$itemid HTTP/1.0\r\nHost: www.wowhead.com\r\n"; 713 if (!empty($proxy_cfg['user'])) $out .= "Proxy-Authorization: Basic ". base64_encode ("{$proxy_cfg['user']}:{$proxy_cfg['pass']}")."\r\n"; 714 $out .="Connection: Close\r\n\r\n"; 678 715 679 716 $temp = ""; 680 fwrite($fp, $out); 681 while ($fp && !feof($fp)) $temp .= fgets($fp, 4096); 682 fclose($fp); 683 684 preg_match("~(Icon.create\('(.*?)')~", $temp, $temp); 685 if (!isset($temp[2])) return "img/INV/INV_blank_32.gif"; 686 $temp[2] = strtolower($temp[2]); 687 688 //get the icon itself 689 $fp = @fsockopen($proxy, $port, $errno, $errstr, 0.4); 690 if (!$fp) return "img/INV/INV_blank_32.gif"; 691 $file = (empty($proxy_cfg['addr'])) ? "/images/icons/medium/$temp[2].jpg" : "http://www.wowhead.com/images/icons/medium/$temp[2].jpg"; 692 $out = "GET $file HTTP/1.0\r\nHost: $proxy\r\n"; 693 if (!empty($proxy_cfg['user'])) $out .= "Proxy-Authorization: Basic ". base64_encode ("{$proxy_cfg['user']}:{$proxy_cfg['pass']}")."\r\n"; 694 $out .="Connection: Close\r\n\r\n"; 695 fwrite($fp, $out); 696 697 //remove header 698 while ($fp && !feof($fp)){ 699 $headerbuffer = fgets($fp, 4096); 700 if (urlencode($headerbuffer) == "%0D%0A") break; 701 } 702 703 $img_file = fopen("img/INV/$itemid.jpg", 'wb'); 704 while (!feof($fp)) fwrite($img_file,fgets($fp, 4096)); 705 fclose($fp); 706 fclose($img_file); 707 708 if (file_exists("img/INV/$itemid.jpg")) return "img/INV/$itemid.jpg"; 709 else return "img/INV/INV_blank_32.gif"; 710 711 } else return "img/INV/INV_blank_32.gif"; 717 fwrite($fp, $out); 718 while ($fp && !feof($fp)) $temp .= fgets($fp, 4096); 719 fclose($fp); 720 721 //ADDED: 722 $wowhead_string = $temp; 723 //ENDOF ADDED 724 725 //preg_match("~(Icon.create\('(.*?)')~", $temp, $temp); 726 //foxpl regexp: 727 //preg_match("Icon.create\('([^\']*?)", $temp, $temp); 728 729 // if (!isset($temp[2])) return "img/INV/INV_blank_32.gif"; 730 //$item = $temp[2]; 731 } 732 //$iconfilename = strtolower($item); 733 734 //ADDED: 735 //GETTING ICON NAME FROM WOWHEAD STRING: 736 $temp_string1 = strstr($wowhead_string, "Icon.create("); 737 $temp_string2 = substr($temp_string1, 12, 50); 738 $temp_string3 = strtok($temp_string2, ','); 739 $temp_string4 = substr($temp_string3, 1, strlen($temp_string3) - 2); 740 741 $icon_name = $temp_string4; 742 $item = $icon_name; 743 $iconfilename = strtolower($icon_name); 744 //ENDOF ADDED 745 746 //get the icon itself 747 if (empty($proxy_cfg['addr'])) 748 { 749 $proxy = "static.wowhead.com"; 750 $port = 80; 751 } 752 $fp = @fsockopen($proxy, $port, $errno, $errstr, 0.4); 753 if (!$fp) return "img/INV/INV_blank_32.gif"; 754 $file = "http://static.wowhead.com/images/icons/medium/$iconfilename.jpg"; 755 $out = "GET $file HTTP/1.0\r\nHost: static.wowhead.com\r\n"; 756 if (!empty($proxy_cfg['user'])) $out .= "Proxy-Authorization: Basic ". base64_encode ("{$proxy_cfg['user']}:{$proxy_cfg['pass']}")."\r\n"; 757 $out .="Connection: Close\r\n\r\n"; 758 fwrite($fp, $out); 759 760 //remove header 761 while ($fp && !feof($fp)) 762 { 763 $headerbuffer = fgets($fp, 4096); 764 if (urlencode($headerbuffer) == "%0D%0A") break; 765 } 766 767 if (file_exists("img/item_icons/$item.jpg")) return "img/item_icons/$item.jpg"; 768 769 $img_file = fopen("img/item_icons/$item.jpg", 'wb'); 770 while (!feof($fp)) fwrite($img_file,fgets($fp, 4096)); 771 fclose($fp); 772 fclose($img_file); 773 774 if (file_exists("img/item_icons/$item.jpg")) return "img/item_icons/$item.jpg"; 775 else return "img/INV/INV_blank_32.gif"; 776 } 777 else return "img/INV/INV_blank_32.gif"; 778 } 779 780 //########################################################################################## 781 //get aura icon - if icon not exists in Char_AURA folder D/L it from web. 782 783 function get_aura_icon($auraid) 784 { 785 global $proxy_cfg, $get_icons_from_web, $char_aura; 786 if ($auraid) 787 { 788 $aura = $char_aura[$auraid[1]]; 789 if ($aura && file_exists("img/Char_AURA/$aura.jpg")) return "img/Char_AURA/$aura.jpg"; 790 else 791 $aura = ''; 792 } 793 else $aura = ''; 794 795 if($get_icons_from_web) 796 { 797 $xmlfilepath="http://www.wowhead.com/?spell="; 798 $proxy = $proxy_cfg['addr']; 799 $port = $proxy_cfg['port']; 800 801 if (empty($proxy_cfg['addr'])) 802 { 803 $proxy = "www.wowhead.com"; 804 $xmlfilepath = "?spell="; 805 $port = 80; 806 } 807 808 if ($aura == '') 809 { 810 //get the icon name 811 $fp = @fsockopen($proxy, $port, $errno, $errstr, 0.4); 812 if (!$fp) return "img/INV/INV_blank_32.gif"; 813 $out = "GET /$xmlfilepath$auraid HTTP/1.0\r\nHost: www.wowhead.com\r\n"; 814 if (!empty($proxy_cfg['user'])) $out .= "Proxy-Authorization: Basic ". base64_encode ("{$proxy_cfg['user']}:{$proxy_cfg['pass']}")."\r\n"; 815 $out .="Connection: Close\r\n\r\n"; 816 817 $temp = ""; 818 fwrite($fp, $out); 819 while ($fp && !feof($fp)) $temp .= fgets($fp, 4096); 820 fclose($fp); 821 822 //ADDED 823 $wowhead_string = $temp; 824 //ENDOF ADDED 825 826 //preg_match("~(Icon.create\('(.*?)')~", $temp, $temp); 827 //foxpl regexp: 828 //preg_match("Icon.create\('([^\']*?)\'", $temp, $temp); 829 // $temp = "test"; 830 //if (!isset($temp[2])) return "img/INV/INV_blank_32.gif"; 831 //$aura = $temp[2]; 832 } 833 //$iconfilename = strtolower($aura); 834 835 //ADDED: 836 //GETTING ICON NAME FROM WOWHEAD STRING: 837 $temp_string1 = strstr($wowhead_string, "Icon.create("); 838 $temp_string2 = substr($temp_string1, 12, 50); 839 $temp_string3 = strtok($temp_string2, ','); 840 $temp_string4 = substr($temp_string3, 1, strlen($temp_string3) - 2); 841 842 $aura_icon_name = $temp_string4; 843 $aura = $aura_icon_name; 844 $iconfilename = strtolower($aura_icon_name); 845 //ENDOF ADDED 846 847 //get the icon itself 848 if (empty($proxy_cfg['addr'])) 849 { 850 $proxy = "static.wowhead.com"; 851 $port = 80; 852 } 853 $fp = @fsockopen($proxy, $port, $errno, $errstr, 0.4); 854 if (!$fp) return "img/INV/INV_blank_32.gif"; 855 $file = "http://static.wowhead.com/images/icons/medium/$iconfilename.jpg"; 856 $out = "GET $file HTTP/1.0\r\nHost: static.wowhead.com\r\n"; 857 if (!empty($proxy_cfg['user'])) $out .= "Proxy-Authorization: Basic ". base64_encode ("{$proxy_cfg['user']}:{$proxy_cfg['pass']}")."\r\n"; 858 $out .="Connection: Close\r\n\r\n"; 859 fwrite($fp, $out); 860 861 //remove header 862 while ($fp && !feof($fp)) 863 { 864 $headerbuffer = fgets($fp, 4096); 865 if (urlencode($headerbuffer) == "%0D%0A") break; 866 } 867 868 if (file_exists("img/Char_AURA/$aura.jpg")) return "img/Char_AURA/$aura.jpg"; 869 870 $img_file = fopen("img/Char_AURA/$aura.jpg", 'wb'); 871 while (!feof($fp)) fwrite($img_file,fgets($fp, 4096)); 872 fclose($fp); 873 fclose($img_file); 874 if (file_exists("img/Char_AURA/$aura.jpg")) return "img/Char_AURA/$aura.jpg"; 875 else 876 return "img/INV/INV_blank_32.gif"; 877 } 878 else return "img/INV/INV_blank_32.gif"; 712 879 } 713 880 … … 729 896 return "icon_border_0"; 730 897 } 898 899 // for calc next level xp 900 function xp_Diff($lvl) 901 { 902 if( $lvl < 29 ) 903 return 0; 904 if( $lvl == 29 ) 905 return 1; 906 if( $lvl == 30 ) 907 return 3; 908 if( $lvl == 31 ) 909 return 6; 910 else 911 return (5*($lvl-30)); 912 } 913 914 function mxp($lvl) 915 { 916 if ($lvl < 60) 917 { 918 return (45 + (5*$lvl)); 919 } 920 else 921 { 922 return (235 + (5*$lvl)); 923 } 924 } 925 926 function xp_to_level($lvl) 927 { 928 $RATE_XP_PAST_70 = 1; 929 $xp = 0; 930 if (lvl < 60) 931 { 932 $xp = (8*$lvl + xp_Diff($lvl)) * mxp($lvl); 933 } 934 else if ($lvl == 60) 935 { 936 $xp = (155 + mxp($lvl) * (1344 - 70 - ((69 - $lvl) * (7 + (69 - $lvl) * 8 - 1)/2))); 937 } 938 else if ($lvl < 70) 939 { 940 $xp = (155 + mxp($lvl) * (1344 - ((69-$lvl) * (7 + (69 - $lvl) * 8 - 1)/2))); 941 }else 942 { 943 // level higher than 70 is not supported 944 $xp = (779700 * (pow($RATE_XP_PAST_70, $lvl - 69))); 945 return (($xp < 0x7fffffff) ? $xp : 0x7fffffff); 946 } 947 948 // The $xp to Level is always rounded to the nearest 100 points (50 rounded to high). 949 $xp = (($xp + 50) / 100) * 100; // use additional () for prevent free association operations in C++ 950 951 if (($lvl > 10) && ($lvl < 60)) // compute discount added in 2.3.x 952 { 953 $discount = ($lvl < 28) ? ($lvl - 10) : 18; 954 $xp = ($xp * (100 - $discount)) / 100; // apply discount 955 $xp = ($xp / 100) * 100; // floor to hundreds 956 } 957 958 return $xp; 959 } 731 960 ?> -
minimanager/scripts/global_lib.php
r19 r374 14 14 //to avoid Strict Standards notices in php 5.1 15 15 if (function_exists ('date_default_timezone_set') ) { 16 date_default_timezone_set( 'UTC');16 date_default_timezone_set($timezone); 17 17 } 18 18 … … 41 41 function maketooltip($text, $link, $tip, $class, $target = "target=\"_self\"") { 42 42 global $output; 43 $output .="<a style=\"padding:2px;\" href=\"$link\" $target onmouseover=\"toolTip('".addslashes($tip)."','$class')\" onmouseout=\"toolTip()\">$text</a>"; 43 //COMMENTED OUT SINCE WE WANT WOWHEAD TOOLTIPS ONLY 44 //$output .="<a style=\"padding:2px;\" href=\"$link\" $target onmouseover=\"toolTip('".addslashes($tip)."','$class')\" onmouseout=\"toolTip()\">$text</a>"; 45 46 //ADDED: 47 $output .="<a style=\"padding:2px;\" href=\"$link\" $target>$text</a>"; 48 //ENDOF ADDED 44 49 } 45 50 … … 52 57 } else die('<meta http-equiv="refresh" content="0;URL='.$url.'" />'); 53 58 } 54 59 60 //work around for MSIE and wowhead tooltip display error 61 if (ereg("MSIE" , $_SERVER["HTTP_USER_AGENT"])) { 62 $tt_scrip = ""; 63 } else { 64 $tt_scrip = "http://www.wowhead.com/widgets/power.js"; 65 } 66 55 67 //########################################################################################## 56 68 // Generate paging navigation. -
minimanager/scripts/id_tab.php
r304 r374 96 96 565 => array(565,$lang_id_tab['gruuls_lair']), 97 97 566 => array(566,$lang_id_tab['netherstorm_arena']), 98 568 => array(568,$lang_id_tab['zulaman']) 98 568 => array(568,$lang_id_tab['zulaman']), 99 571 => array(571,$lang_id_tab['northrend']), 100 574 => array(574,$lang_id_tab['utgarde_keep']), 101 575 => array(575,$lang_id_tab['utgarde_pinnacle']), 102 576 => array(576,$lang_id_tab['nexus']), 103 578 => array(578,$lang_id_tab['oculus']), 104 580 => array(580,$lang_id_tab['sunwell_plateau']), 105 585 => array(585,$lang_id_tab['magisters_terrace']), 106 595 => array(595,$lang_id_tab['cot_stratholme_past']), 107 599 => array(599,$lang_id_tab['halls_of_stone']), 108 600 => array(600,$lang_id_tab['draktheron_keep']), 109 601 => array(601,$lang_id_tab['azjol_nerub']), 110 602 => array(602,$lang_id_tab['halls_of_lightning']), 111 603 => array(603,$lang_id_tab['ulduar']), 112 604 => array(604,$lang_id_tab['gundrak']) 113 114 99 115 ); 100 116 … … 124 140 case 5: 125 141 return($lang_id_tab['priest']); 142 break; 143 case 6: 144 return($lang_id_tab['death_knight']); 126 145 break; 127 146 case 7: … … 262 281 //get skill name by its id 263 282 $skill_id = Array( 283 773 => array(773,$lang_id_tab['SKILL_INSCRIPTION']), 264 284 762 => array(762,$lang_id_tab['SKILL_RIDING']), 265 285 759 => array(759,$lang_id_tab['SKILL_LANG_DRAENEI']), -
minimanager/scripts/pets.php
r321 r374 4 4 $pet_ability = Array( 5 5 // Bite 6 6 17253 => array(17253,$lang_id_tab['PET_ABILITY_BITE_RANK_1'],'1','bite.jpg'), 7 7 17255 => array(17255,$lang_id_tab['PET_ABILITY_BITE_RANK_2'],'4','bite.jpg'), 8 17256 => array(17256,$lang_id_tab['PET_ABILITY_BITE_RANK_3'],'7','bite.jpg'), 9 17257 => array(17257,$lang_id_tab['PET_ABILITY_BITE_RANK_4'],'10','bite.jpg'), 10 17258 => array(17258,$lang_id_tab['PET_ABILITY_BITE_RANK_5'],'13','bite.jpg'), 11 17259 => array(17259,$lang_id_tab['PET_ABILITY_BITE_RANK_6'],'17','bite.jpg'), 12 17260 => array(17260,$lang_id_tab['PET_ABILITY_BITE_RANK_7'],'21','bite.jpg'), 13 17261 => array(17261,$lang_id_tab['PET_ABILITY_BITE_RANK_8'],'25','bite.jpg'), 14 27050 => array(27050,$lang_id_tab['PET_ABILITY_BITE_RANK_9'],'29','bite.jpg'), 15 // Claw 16 16827 => array(16827,$lang_id_tab['PET_ABILITY_CLAW_RANK_1'],'1','claw.jpg'), 17 16828 => array(16828,$lang_id_tab['PET_ABILITY_CLAW_RANK_2'],'4','claw.jpg'), 18 16829 => array(16829,$lang_id_tab['PET_ABILITY_CLAW_RANK_3'],'7','claw.jpg'), 19 16830 => array(16830,$lang_id_tab['PET_ABILITY_CLAW_RANK_4'],'10','claw.jpg'), 20 16831 => array(16831,$lang_id_tab['PET_ABILITY_CLAW_RANK_5'],'13','claw.jpg'), 21 16832 => array(16832,$lang_id_tab['PET_ABILITY_CLAW_RANK_6'],'17','claw.jpg'), 22 3010 => array(3010,$lang_id_tab['PET_ABILITY_CLAW_RANK_7'],'21','claw.jpg'), 23 3009 => array(3009,$lang_id_tab['PET_ABILITY_CLAW_RANK_8'],'25','claw.jpg'), 24 27049 => array(27049,$lang_id_tab['PET_ABILITY_CLAW_RANK_9'],'29','claw.jpg'), 25 // Cobra Reflexes 26 25076 => array(25076,$lang_id_tab['PET_ABILITY_COBRA_REFLEXES'],'15','cobrareflexes.jpg'), 27 // Cower 28 1742 => array(1742,$lang_id_tab['PET_ABILITY_COWER_RANK_1'],'8','cower.jpg'), 29 1753 => array(1753,$lang_id_tab['PET_ABILITY_COWER_RANK_2'],'10','cower.jpg'), 30 1754 => array(1754,$lang_id_tab['PET_ABILITY_COWER_RANK_3'],'12','cower.jpg'), 31 1755 => array(1755,$lang_id_tab['PET_ABILITY_COWER_RANK_4'],'14','cower.jpg'), 32 1756 => array(1756,$lang_id_tab['PET_ABILITY_COWER_RANK_5'],'16','cower.jpg'), 33 16697 => array(16697,$lang_id_tab['PET_ABILITY_COWER_RANK_6'],'18','cower.jpg'), 34 27048 => array(27048,$lang_id_tab['PET_ABILITY_COWER_RANK_7'],'21','cower.jpg'), 35 // Dash 36 23099 => array(23099,$lang_id_tab['PET_ABILITY_DASH_RANK_1'],'15','dash.jpg'), 37 23109 => array(23109,$lang_id_tab['PET_ABILITY_DASH_RANK_2'],'20','dash.jpg'), 38 23110 => array(23110,$lang_id_tab['PET_ABILITY_DASH_RANK_3'],'25','dash.jpg'), 39 // Dive 40 23146 => array(23146,$lang_id_tab['PET_ABILITY_DIVE_RANK_1'],'15','dive.jpg'), 41 23149 => array(23149,$lang_id_tab['PET_ABILITY_DIVE_RANK_2'],'20','dive.jpg'), 42 23150 => array(23150,$lang_id_tab['PET_ABILITY_DIVE_RANK_3'],'25','dive.jpg'), 43 // Firebreath 44 34889 => array(34889,$lang_id_tab['PET_ABILITY_FIRE_BREATH_RANK_1'],'5','firebreath.jpg'), 45 35323 => array(35323,$lang_id_tab['PET_ABILITY_FIRE_BREATH_RANK_2'],'25','firebreath.jpg'), 46 // Furious howl 47 24609 => array(24609,$lang_id_tab['PET_ABILITY_FURIOUS_HOWL_RANK_1'],'10','furioushowl.jpg'), 48 24608 => array(24608,$lang_id_tab['PET_ABILITY_FURIOUS_HOWL_RANK_2'],'15','furioushowl.jpg'), 49 24607 => array(24607,$lang_id_tab['PET_ABILITY_FURIOUS_HOWL_RANK_3'],'20','furioushowl.jpg'), 50 24599 => array(24599,$lang_id_tab['PET_ABILITY_FURIOUS_HOWL_RANK_4'],'25','furioushowl.jpg'), 51 // Gore 52 35290 => array(35290,$lang_id_tab['PET_ABILITY_GORE_RANK_1'],'1','gore.jpg'), 53 35291 => array(35291,$lang_id_tab['PET_ABILITY_GORE_RANK_2'],'4','gore.jpg'), 54 35292 => array(35292,$lang_id_tab['PET_ABILITY_GORE_RANK_3'],'7','gore.jpg'), 55 35293 => array(35293,$lang_id_tab['PET_ABILITY_GORE_RANK_4'],'10','gore.jpg'), 56 35294 => array(35294,$lang_id_tab['PET_ABILITY_GORE_RANK_5'],'13','gore.jpg'), 57 35295 => array(35295,$lang_id_tab['PET_ABILITY_GORE_RANK_6'],'17','gore.jpg'), 58 35296 => array(35296,$lang_id_tab['PET_ABILITY_GORE_RANK_7'],'21','gore.jpg'), 59 35297 => array(35297,$lang_id_tab['PET_ABILITY_GORE_RANK_8'],'25','gore.jpg'), 60 35298 => array(35298,$lang_id_tab['PET_ABILITY_GORE_RANK_9'],'29','gore.jpg'), 61 // Growl 62 2649 => array(2649,$lang_id_tab['PET_ABILITY_GROWL_RANK_1'],'0','growl.jpg'), 63 14916 => array(14916,$lang_id_tab['PET_ABILITY_GROWL_RANK_2'],'0','growl.jpg'), 64 14917 => array(14917,$lang_id_tab['PET_ABILITY_GROWL_RANK_3'],'0','growl.jpg'), 65 14918 => array(14918,$lang_id_tab['PET_ABILITY_GROWL_RANK_4'],'0','growl.jpg'), 66 14919 => array(14919,$lang_id_tab['PET_ABILITY_GROWL_RANK_5'],'0','growl.jpg'), 67 14920 => array(14920,$lang_id_tab['PET_ABILITY_GROWL_RANK_6'],'0','growl.jpg'), 68 14921 => array(14921,$lang_id_tab['PET_ABILITY_GROWL_RANK_7'],'0','growl.jpg'), 69 27047 => array(27047,$lang_id_tab['PET_ABILITY_GROWL_RANK_8'],'0','growl.jpg'), 70 // Lightning breath 71 24845 => array(24845,$lang_id_tab['PET_ABILITY_LIGHTNING_BREATH_RANK_1'],'1','lightningbreath.jpg'), 72 25013 => array(25013,$lang_id_tab['PET_ABILITY_LIGHTNING_BREATH_RANK_2'],'5','lightningbreath.jpg'), 73 25014 => array(25014,$lang_id_tab['PET_ABILITY_LIGHTNING_BREATH_RANK_3'],'10','lightningbreath.jpg'), 74 25015 => array(25015,$lang_id_tab['PET_ABILITY_LIGHTNING_BREATH_RANK_4'],'15','lightningbreath.jpg'), 75 25016 => array(25016,$lang_id_tab['PET_ABILITY_LIGHTNING_BREATH_RANK_5'],'20','lightningbreath.jpg'), 76 25017 => array(25017,$lang_id_tab['PET_ABILITY_LIGHTNING_BREATH_RANK_5'],'25','lightningbreath.jpg'), 77 // Poison Spit 78 35388 => array(35388,$lang_id_tab['PET_ABILITY_POISON_SPIT_RANK_1'],'5','poisonspit.jpg'), 79 35390 => array(35390,$lang_id_tab['PET_ABILITY_POISON_SPIT_RANK_2'],'20','poisonspit.jpg'), 80 35391 => array(35391,$lang_id_tab['PET_ABILITY_POISON_SPIT_RANK_3'],'25','poisonspit.jpg'), 81 // Prowl 82 24451 => array(24451,$lang_id_tab['PET_ABILITY_PROWL_RANK_1'],'15','prowl.jpg'), 83 24454 => array(24454,$lang_id_tab['PET_ABILITY_PROWL_RANK_2'],'20','prowl.jpg'), 84 24455 => array(24455,$lang_id_tab['PET_ABILITY_PROWL_RANK_3'],'25','prowl.jpg'), 85 // Scorpid Poison 86 24641 => array(24455,$lang_id_tab['PET_ABILITY_SCORPID_POISON_RANK_1'],'10','scorpidpoison.jpg'), 87 24584 => array(24584,$lang_id_tab['PET_ABILITY_SCORPID_POISON_RANK_2'],'15','scorpidpoison.jpg'), 88 24588 => array(24588,$lang_id_tab['PET_ABILITY_SCORPID_POISON_RANK_3'],'20','scorpidpoison.jpg'), 89 24589 => array(24589,$lang_id_tab['PET_ABILITY_SCORPID_POISON_RANK_4'],'25','scorpidpoison.jpg'), 90 27361 => array(27361,$lang_id_tab['PET_ABILITY_SCORPID_POISON_RANK_5'],'29','scorpidpoison.jpg'), 91 // Screech 92 24424 => array(24424,$lang_id_tab['PET_ABILITY_SCREECH_RANK_1'],'10','screech.jpg'), 93 24580 => array(24580,$lang_id_tab['PET_ABILITY_SCREECH_RANK_2'],'15','screech.jpg'), 94 24581 => array(24581,$lang_id_tab['PET_ABILITY_SCREECH_RANK_3'],'20','screech.jpg'), 95 24582 => array(24582,$lang_id_tab['PET_ABILITY_SCREECH_RANK_4'],'25','screech.jpg'), 96 27349 => array(27349,$lang_id_tab['PET_ABILITY_SCREECH_RANK_5'],'29','screech.jpg'), 97 // Shell Shield 98 26064 => array(26064,$lang_id_tab['PET_ABILITY_SHELL_SHIELD'],'15','shellshield.jpg'), 99 // Thunderstomp 100 26094 => array(26094,$lang_id_tab['PET_ABILITY_THUNDERSTOMP_RANK_1'],'15','thunderstomp.jpg'), 101 26189 => array(26189,$lang_id_tab['PET_ABILITY_THUNDERSTOMP_RANK_2'],'20','thunderstomp.jpg'), 102 26190 => array(26190,$lang_id_tab['PET_ABILITY_THUNDERSTOMP_RANK_3'],'25','thunderstomp.jpg'), 103 27366 => array(27366,$lang_id_tab['PET_ABILITY_THUNDERSTOMP_RANK_4'],'29','thunderstomp.jpg'), 104 // Warp 105 35348 => array(35348,$lang_id_tab['PET_ABILITY_WARP'],'1','warp.jpg'), 106 // Great Stamina 107 4195 => array(4195,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_1'],'5','greatstamina.jpg'), 108 4196 => array(4196,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_2'],'10','greatstamina.jpg'), 109 4197 => array(4197,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_3'],'15','greatstamina.jpg'), 110 4198 => array(4198,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_4'],'25','greatstamina.jpg'), 111 4199 => array(4199,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_5'],'50','greatstamina.jpg'), 112 4200 => array(4200,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_6'],'75','greatstamina.jpg'), 113 4201 => array(4201,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_7'],'100','greatstamina.jpg'), 114 4202 => array(4202,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_8'],'125','greatstamina.jpg'), 115 5048 => array(5048,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_9'],'150','greatstamina.jpg'), 116 5049 => array(5049,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_10'],'185','greatstamina.jpg'), 117 27364 => array(27364,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_11'],'215','greatstamina.jpg'), 118 // Natural Armor 119 24574 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_1'],'1','naturalarmor.jpg'), 120 24556 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_2'],'5','naturalarmor.jpg'), 121 24557 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_3'],'10','naturalarmor.jpg'), 122 24558 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_4'],'15','naturalarmor.jpg'), 123 24559 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_5'],'25','naturalarmor.jpg'), 124 24560 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_6'],'50','naturalarmor.jpg'), 125 24561 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_7'],'75','naturalarmor.jpg'), 126 24562 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_8'],'100','naturalarmor.jpg'), 127 24631 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_9'],'125','naturalarmor.jpg'), 128 24632 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_10'],'150','naturalarmor.jpg'), 129 27362 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_11'],'175','naturalarmor.jpg'), 130 // Arcane Resist 131 24495 => array(24495,$lang_id_tab['PET_ABILITY_ARCANE_RESIST_RANK_1'],'5','arcaneresist.jpg'), 132 24508 => array(24508,$lang_id_tab['PET_ABILITY_ARCANE_RESIST_RANK_2'],'15','arcaneresist.jpg'), 133 24509 => array(24509,$lang_id_tab['PET_ABILITY_ARCANE_RESIST_RANK_3'],'45','arcaneresist.jpg'), 134 24510 => array(24510,$lang_id_tab['PET_ABILITY_ARCANE_RESIST_RANK_4'],'90','arcaneresist.jpg'), 135 27350 => array(27350,$lang_id_tab['PET_ABILITY_ARCANE_RESIST_RANK_5'],'105','arcaneresist.jpg'), 136 // Fire Resist 137 24440 => array(24440,$lang_id_tab['PET_ABILITY_FIRE_RESIST_RANK_1'],'5','fireresist.jpg'), 138 24441 => array(24441,$lang_id_tab['PET_ABILITY_FIRE_RESIST_RANK_2'],'15','fireresist.jpg'), 139 24463 => array(24463,$lang_id_tab['PET_ABILITY_FIRE_RESIST_RANK_3'],'45','fireresist.jpg'), 140 24464 => array(24464,$lang_id_tab['PET_ABILITY_FIRE_RESIST_RANK_4'],'90','fireresist.jpg'), 141 27351 => array(27351,$lang_id_tab['PET_ABILITY_FIRE_RESIST_RANK_5'],'105','fireresist.jpg'), 142 // Frost Resist 143 24475 => array(24475,$lang_id_tab['PET_ABILITY_FROST_RESIST_RANK_1'],'5','frostresist.jpg'), 144 24476 => array(24476,$lang_id_tab['PET_ABILITY_FROST_RESIST_RANK_2'],'15','frostresist.jpg'), 145 24477 => array(24477,$lang_id_tab['PET_ABILITY_FROST_RESIST_RANK_3'],'45','frostresist.jpg'), 146 24478 => array(24478,$lang_id_tab['PET_ABILITY_FROST_RESIST_RANK_4'],'90','frostresist.jpg'), 147 27352 => array(27352,$lang_id_tab['PET_ABILITY_FROST_RESIST_RANK_5'],'105','frostresist.jpg'), 148 // Nature Resist 149 24494 => array(24494,$lang_id_tab['PET_ABILITY_NATURE_RESIST_RANK_1'],'5','natureresist.jpg'), 150 24511 => array(24511,$lang_id_tab['PET_ABILITY_NATURE_RESIST_RANK_2'],'15','natureresist.jpg'), 151 24512 => array(24512,$lang_id_tab['PET_ABILITY_NATURE_RESIST_RANK_3'],'45','natureresist.jpg'), 152 24513 => array(24513,$lang_id_tab['PET_ABILITY_NATURE_RESIST_RANK_4'],'90','natureresist.jpg'), 153 27354 => array(27354,$lang_id_tab['PET_ABILITY_NATURE_RESIST_RANK_5'],'105','natureresist.jpg'), 154 // Shadow Resist 155 24490 => array(24490,$lang_id_tab['PET_ABILITY_SHADOW_RESIST_RANK_1'],'5','shadowresist.jpg'), 156 24514 => array(24514,$lang_id_tab['PET_ABILITY_SHADOW_RESIST_RANK_2'],'15','shadowresist.jpg'), 157 24515 => array(24515,$lang_id_tab['PET_ABILITY_SHADOW_RESIST_RANK_3'],'45','shadowresist.jpg'), 158 24516 => array(24516,$lang_id_tab['PET_ABILITY_SHADOW_RESIST_RANK_4'],'90','shadowresist.jpg'), 159 27353 => array(27353,$lang_id_tab['PET_ABILITY_SHADOW_RESIST_RANK_5'],'105','shadowresist.jpg'), 160 // Avoidance 161 35699 => array(35699,$lang_id_tab['PET_ABILITY_AVOIDANCE_RANK_1'],'15','avoidance.jpg'), 162 35700 => array(35700,$lang_id_tab['PET_ABILITY_AVOIDANCE_RANK_2'],'25','avoidance.jpg') 163 ); 164 165 function get_pet_ability_name($id){ 166 global $lang_pet_ability, $pet_ability; 167 if( isset($pet_ability[$id]) ) return $pet_ability[$id][1]; 168 else return "Unknown"; 169 } 170 function get_pet_ability_trainvalue($id){ 171 global $lang_pet_ability, $pet_ability; 172 if( isset($pet_ability[$id][2]) ) return $pet_ability[$id][2]; 173 else return 0; 174 } 175 176 function get_pet_ability_image($id){ 177 global $lang_pet_ability, $pet_ability; 178 if( isset($pet_ability[$id][3]) ) return $pet_ability[$id][3]; 179 else return 'missing.jpg'; 180 } 181 182 183 ?> 184 8 17256 => array(17256,$lang_id_tab['PET_ABILITY_BITE_RANK_3'],'7','bite.jpg'), 9 17257 => array(17257,$lang_id_tab['PET_ABILITY_BITE_RANK_4'],'10','bite.jpg'), 10 17258 => array(17258,$lang_id_tab['PET_ABILITY_BITE_RANK_5'],'13','bite.jpg'), 11 17259 => array(17259,$lang_id_tab['PET_ABILITY_BITE_RANK_6'],'17','bite.jpg'), 12 17260 => array(17260,$lang_id_tab['PET_ABILITY_BITE_RANK_7'],'21','bite.jpg'), 13 17261 => array(17261,$lang_id_tab['PET_ABILITY_BITE_RANK_8'],'25','bite.jpg'), 14 27050 => array(27050,$lang_id_tab['PET_ABILITY_BITE_RANK_9'],'29','bite.jpg'), 15 // Claw 16 16827 => array(16827,$lang_id_tab['PET_ABILITY_CLAW_RANK_1'],'1','claw.jpg'), 17 16828 => array(16828,$lang_id_tab['PET_ABILITY_CLAW_RANK_2'],'4','claw.jpg'), 18 16829 => array(16829,$lang_id_tab['PET_ABILITY_CLAW_RANK_3'],'7','claw.jpg'), 19 16830 => array(16830,$lang_id_tab['PET_ABILITY_CLAW_RANK_4'],'10','claw.jpg'), 20 16831 => array(16831,$lang_id_tab['PET_ABILITY_CLAW_RANK_5'],'13','claw.jpg'), 21 16832 => array(16832,$lang_id_tab['PET_ABILITY_CLAW_RANK_6'],'17','claw.jpg'), 22 3010 => array(3010,$lang_id_tab['PET_ABILITY_CLAW_RANK_7'],'21','claw.jpg'), 23 3009 => array(3009,$lang_id_tab['PET_ABILITY_CLAW_RANK_8'],'25','claw.jpg'), 24 27049 => array(27049,$lang_id_tab['PET_ABILITY_CLAW_RANK_9'],'29','claw.jpg'), 25 // Cobra Reflexes 26 25076 => array(25076,$lang_id_tab['PET_ABILITY_COBRA_REFLEXES'],'15','cobrareflexes.jpg'), 27 // Cower 28 1742 => array(1742,$lang_id_tab['PET_ABILITY_COWER_RANK_1'],'8','cower.jpg'), 29 1753 => array(1753,$lang_id_tab['PET_ABILITY_COWER_RANK_2'],'10','cower.jpg'), 30 1754 => array(1754,$lang_id_tab['PET_ABILITY_COWER_RANK_3'],'12','cower.jpg'), 31 1755 => array(1755,$lang_id_tab['PET_ABILITY_COWER_RANK_4'],'14','cower.jpg'), 32 1756 => array(1756,$lang_id_tab['PET_ABILITY_COWER_RANK_5'],'16','cower.jpg'), 33 16697 => array(16697,$lang_id_tab['PET_ABILITY_COWER_RANK_6'],'18','cower.jpg'), 34 27048 => array(27048,$lang_id_tab['PET_ABILITY_COWER_RANK_7'],'21','cower.jpg'), 35 // Dash 36 23099 => array(23099,$lang_id_tab['PET_ABILITY_DASH_RANK_1'],'15','dash.jpg'), 37 23109 => array(23109,$lang_id_tab['PET_ABILITY_DASH_RANK_2'],'20','dash.jpg'), 38 23110 => array(23110,$lang_id_tab['PET_ABILITY_DASH_RANK_3'],'25','dash.jpg'), 39 // Dive 40 23146 => array(23146,$lang_id_tab['PET_ABILITY_DIVE_RANK_1'],'15','dive.jpg'), 41 23149 => array(23149,$lang_id_tab['PET_ABILITY_DIVE_RANK_2'],'20','dive.jpg'), 42 23150 => array(23150,$lang_id_tab['PET_ABILITY_DIVE_RANK_3'],'25','dive.jpg'), 43 // Firebreath 44 34889 => array(34889,$lang_id_tab['PET_ABILITY_FIRE_BREATH_RANK_1'],'5','firebreath.jpg'), 45 35323 => array(35323,$lang_id_tab['PET_ABILITY_FIRE_BREATH_RANK_2'],'25','firebreath.jpg'), 46 // Furious howl 47 24609 => array(24609,$lang_id_tab['PET_ABILITY_FURIOUS_HOWL_RANK_1'],'10','furioushowl.jpg'), 48 24608 => array(24608,$lang_id_tab['PET_ABILITY_FURIOUS_HOWL_RANK_2'],'15','furioushowl.jpg'), 49 24607 => array(24607,$lang_id_tab['PET_ABILITY_FURIOUS_HOWL_RANK_3'],'20','furioushowl.jpg'), 50 24599 => array(24599,$lang_id_tab['PET_ABILITY_FURIOUS_HOWL_RANK_4'],'25','furioushowl.jpg'), 51 // Gore 52 35290 => array(35290,$lang_id_tab['PET_ABILITY_GORE_RANK_1'],'1','gore.jpg'), 53 35291 => array(35291,$lang_id_tab['PET_ABILITY_GORE_RANK_2'],'4','gore.jpg'), 54 35292 => array(35292,$lang_id_tab['PET_ABILITY_GORE_RANK_3'],'7','gore.jpg'), 55 35293 => array(35293,$lang_id_tab['PET_ABILITY_GORE_RANK_4'],'10','gore.jpg'), 56 35294 => array(35294,$lang_id_tab['PET_ABILITY_GORE_RANK_5'],'13','gore.jpg'), 57 35295 => array(35295,$lang_id_tab['PET_ABILITY_GORE_RANK_6'],'17','gore.jpg'), 58 35296 => array(35296,$lang_id_tab['PET_ABILITY_GORE_RANK_7'],'21','gore.jpg'), 59 35297 => array(35297,$lang_id_tab['PET_ABILITY_GORE_RANK_8'],'25','gore.jpg'), 60 35298 => array(35298,$lang_id_tab['PET_ABILITY_GORE_RANK_9'],'29','gore.jpg'), 61 // Growl 62 2649 => array(2649,$lang_id_tab['PET_ABILITY_GROWL_RANK_1'],'0','growl.jpg'), 63 14916 => array(14916,$lang_id_tab['PET_ABILITY_GROWL_RANK_2'],'0','growl.jpg'), 64 14917 => array(14917,$lang_id_tab['PET_ABILITY_GROWL_RANK_3'],'0','growl.jpg'), 65 14918 => array(14918,$lang_id_tab['PET_ABILITY_GROWL_RANK_4'],'0','growl.jpg'), 66 14919 => array(14919,$lang_id_tab['PET_ABILITY_GROWL_RANK_5'],'0','growl.jpg'), 67 14920 => array(14920,$lang_id_tab['PET_ABILITY_GROWL_RANK_6'],'0','growl.jpg'), 68 14921 => array(14921,$lang_id_tab['PET_ABILITY_GROWL_RANK_7'],'0','growl.jpg'), 69 27047 => array(27047,$lang_id_tab['PET_ABILITY_GROWL_RANK_8'],'0','growl.jpg'), 70 // Lightning breath 71 24845 => array(24845,$lang_id_tab['PET_ABILITY_LIGHTNING_BREATH_RANK_1'],'1','lightningbreath.jpg'), 72 25013 => array(25013,$lang_id_tab['PET_ABILITY_LIGHTNING_BREATH_RANK_2'],'5','lightningbreath.jpg'), 73 25014 => array(25014,$lang_id_tab['PET_ABILITY_LIGHTNING_BREATH_RANK_3'],'10','lightningbreath.jpg'), 74 25015 => array(25015,$lang_id_tab['PET_ABILITY_LIGHTNING_BREATH_RANK_4'],'15','lightningbreath.jpg'), 75 25016 => array(25016,$lang_id_tab['PET_ABILITY_LIGHTNING_BREATH_RANK_5'],'20','lightningbreath.jpg'), 76 25017 => array(25017,$lang_id_tab['PET_ABILITY_LIGHTNING_BREATH_RANK_5'],'25','lightningbreath.jpg'), 77 // Poison Spit 78 35388 => array(35388,$lang_id_tab['PET_ABILITY_POISON_SPIT_RANK_1'],'5','poisonspit.jpg'), 79 35390 => array(35390,$lang_id_tab['PET_ABILITY_POISON_SPIT_RANK_2'],'20','poisonspit.jpg'), 80 35391 => array(35391,$lang_id_tab['PET_ABILITY_POISON_SPIT_RANK_3'],'25','poisonspit.jpg'), 81 // Prowl 82 24451 => array(24451,$lang_id_tab['PET_ABILITY_PROWL_RANK_1'],'15','prowl.jpg'), 83 24454 => array(24454,$lang_id_tab['PET_ABILITY_PROWL_RANK_2'],'20','prowl.jpg'), 84 24455 => array(24455,$lang_id_tab['PET_ABILITY_PROWL_RANK_3'],'25','prowl.jpg'), 85 // Scorpid Poison 86 24641 => array(24455,$lang_id_tab['PET_ABILITY_SCORPID_POISON_RANK_1'],'10','scorpidpoison.jpg'), 87 24584 => array(24584,$lang_id_tab['PET_ABILITY_SCORPID_POISON_RANK_2'],'15','scorpidpoison.jpg'), 88 24588 => array(24588,$lang_id_tab['PET_ABILITY_SCORPID_POISON_RANK_3'],'20','scorpidpoison.jpg'), 89 24589 => array(24589,$lang_id_tab['PET_ABILITY_SCORPID_POISON_RANK_4'],'25','scorpidpoison.jpg'), 90 27361 => array(27361,$lang_id_tab['PET_ABILITY_SCORPID_POISON_RANK_5'],'29','scorpidpoison.jpg'), 91 // Screech 92 24424 => array(24424,$lang_id_tab['PET_ABILITY_SCREECH_RANK_1'],'10','screech.jpg'), 93 24580 => array(24580,$lang_id_tab['PET_ABILITY_SCREECH_RANK_2'],'15','screech.jpg'), 94 24581 => array(24581,$lang_id_tab['PET_ABILITY_SCREECH_RANK_3'],'20','screech.jpg'), 95 24582 => array(24582,$lang_id_tab['PET_ABILITY_SCREECH_RANK_4'],'25','screech.jpg'), 96 27349 => array(27349,$lang_id_tab['PET_ABILITY_SCREECH_RANK_5'],'29','screech.jpg'), 97 // Shell Shield 98 26064 => array(26064,$lang_id_tab['PET_ABILITY_SHELL_SHIELD'],'15','shellshield.jpg'), 99 // Thunderstomp 100 26094 => array(26094,$lang_id_tab['PET_ABILITY_THUNDERSTOMP_RANK_1'],'15','thunderstomp.jpg'), 101 26189 => array(26189,$lang_id_tab['PET_ABILITY_THUNDERSTOMP_RANK_2'],'20','thunderstomp.jpg'), 102 26190 => array(26190,$lang_id_tab['PET_ABILITY_THUNDERSTOMP_RANK_3'],'25','thunderstomp.jpg'), 103 27366 => array(27366,$lang_id_tab['PET_ABILITY_THUNDERSTOMP_RANK_4'],'29','thunderstomp.jpg'), 104 // Warp 105 35348 => array(35348,$lang_id_tab['PET_ABILITY_WARP'],'1','warp.jpg'), 106 // Great Stamina 107 4195 => array(4195,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_1'],'5','greatstamina.jpg'), 108 4196 => array(4196,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_2'],'10','greatstamina.jpg'), 109 4197 => array(4197,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_3'],'15','greatstamina.jpg'), 110 4198 => array(4198,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_4'],'25','greatstamina.jpg'), 111 4199 => array(4199,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_5'],'50','greatstamina.jpg'), 112 4200 => array(4200,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_6'],'75','greatstamina.jpg'), 113 4201 => array(4201,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_7'],'100','greatstamina.jpg'), 114 4202 => array(4202,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_8'],'125','greatstamina.jpg'), 115 5048 => array(5048,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_9'],'150','greatstamina.jpg'), 116 5049 => array(5049,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_10'],'185','greatstamina.jpg'), 117 27364 => array(27364,$lang_id_tab['PET_ABILITY_GREAT_STAMINA_RANK_11'],'215','greatstamina.jpg'), 118 // Natural Armor 119 24574 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_1'],'1','naturalarmor.jpg'), 120 24556 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_2'],'5','naturalarmor.jpg'), 121 24557 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_3'],'10','naturalarmor.jpg'), 122 24558 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_4'],'15','naturalarmor.jpg'), 123 24559 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_5'],'25','naturalarmor.jpg'), 124 24560 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_6'],'50','naturalarmor.jpg'), 125 24561 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_7'],'75','naturalarmor.jpg'), 126 24562 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_8'],'100','naturalarmor.jpg'), 127 24631 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_9'],'125','naturalarmor.jpg'), 128 24632 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_10'],'150','naturalarmor.jpg'), 129 27362 => array(24574,$lang_id_tab['PET_ABILITY_NATURAL_ARMOR_RANK_11'],'175','naturalarmor.jpg'), 130 // Arcane Resist 131 24495 => array(24495,$lang_id_tab['PET_ABILITY_ARCANE_RESIST_RANK_1'],'5','arcaneresist.jpg'), 132 24508 => array(24508,$lang_id_tab['PET_ABILITY_ARCANE_RESIST_RANK_2'],'15','arcaneresist.jpg'), 133 24509 => array(24509,$lang_id_tab['PET_ABILITY_ARCANE_RESIST_RANK_3'],'45','arcaneresist.jpg'), 134 24510 => array(24510,$lang_id_tab['PET_ABILITY_ARCANE_RESIST_RANK_4'],'90','arcaneresist.jpg'), 135 27350 => array(27350,$lang_id_tab['PET_ABILITY_ARCANE_RESIST_RANK_5'],'105','arcaneresist.jpg'), 136 // Fire Resist 137 24440 => array(24440,$lang_id_tab['PET_ABILITY_FIRE_RESIST_RANK_1'],'5','fireresist.jpg'), 138 24441 => array(24441,$lang_id_tab['PET_ABILITY_FIRE_RESIST_RANK_2'],'15','fireresist.jpg'), 139 24463 => array(24463,$lang_id_tab['PET_ABILITY_FIRE_RESIST_RANK_3'],'45','fireresist.jpg'), 140 24464 => array(24464,$lang_id_tab['PET_ABILITY_FIRE_RESIST_RANK_4'],'90','fireresist.jpg'), 141 27351 => array(27351,$lang_id_tab['PET_ABILITY_FIRE_RESIST_RANK_5'],'105','fireresist.jpg'), 142 // Frost Resist 143 24475 => array(24475,$lang_id_tab['PET_ABILITY_FROST_RESIST_RANK_1'],'5','frostresist.jpg'), 144 24476 => array(24476,$lang_id_tab['PET_ABILITY_FROST_RESIST_RANK_2'],'15','frostresist.jpg'), 145 24477 => array(24477,$lang_id_tab['PET_ABILITY_FROST_RESIST_RANK_3'],'45','frostresist.jpg'), 146 24478 => array(24478,$lang_id_tab['PET_ABILITY_FROST_RESIST_RANK_4'],'90','frostresist.jpg'), 147 27352 => array(27352,$lang_id_tab['PET_ABILITY_FROST_RESIST_RANK_5'],'105','frostresist.jpg'), 148 // Nature Resist 149 24494 => array(24494,$lang_id_tab['PET_ABILITY_NATURE_RESIST_RANK_1'],'5','natureresist.jpg'), 150 24511 => array(24511,$lang_id_tab['PET_ABILITY_NATURE_RESIST_RANK_2'],'15','natureresist.jpg'), 151 24512 => array(24512,$lang_id_tab['PET_ABILITY_NATURE_RESIST_RANK_3'],'45','natureresist.jpg'), 152 24513 => array(24513,$lang_id_tab['PET_ABILITY_NATURE_RESIST_RANK_4'],'90','natureresist.jpg'), 153 27354 => array(27354,$lang_id_tab['PET_ABILITY_NATURE_RESIST_RANK_5'],'105','natureresist.jpg'), 154 // Shadow Resist 155 24490 => array(24490,$lang_id_tab['PET_ABILITY_SHADOW_RESIST_RANK_1'],'5','shadowresist.jpg'), 156 24514 => array(24514,$lang_id_tab['PET_ABILITY_SHADOW_RESIST_RANK_2'],'15','shadowresist.jpg'), 157 24515 => array(24515,$lang_id_tab['PET_ABILITY_SHADOW_RESIST_RANK_3'],'45','shadowresist.jpg'), 158 24516 => array(24516,$lang_id_tab['PET_ABILITY_SHADOW_RESIST_RANK_4'],'90','shadowresist.jpg'), 159 27353 => array(27353,$lang_id_tab['PET_ABILITY_SHADOW_RESIST_RANK_5'],'105','shadowresist.jpg'), 160 // Avoidance 161 35699 => array(35699,$lang_id_tab['PET_ABILITY_AVOIDANCE_RANK_1'],'15','avoidance.jpg'), 162 35700 => array(35700,$lang_id_tab['PET_ABILITY_AVOIDANCE_RANK_2'],'25','avoidance.jpg') 163 ); 164 165 function get_pet_ability_name($id){ 166 global $lang_pet_ability, $pet_ability; 167 if( isset($pet_ability[$id]) ) return $pet_ability[$id][1]; 168 else return "Unknown"; 169 } 170 function get_pet_ability_trainvalue($id){ 171 global $lang_pet_ability, $pet_ability; 172 if( isset($pet_ability[$id][2]) ) return $pet_ability[$id][2]; 173 else return 0; 174 } 175 176 function get_pet_ability_image($id){ 177 global $lang_pet_ability, $pet_ability; 178 if( isset($pet_ability[$id][3]) ) return $pet_ability[$id][3]; 179 else return 'missing.jpg'; 180 } 181 182 183 ?>
Note:
See TracChangeset
for help on using the changeset viewer.