Changeset 142 for minimanager/scripts
- Timestamp:
- Nov 23, 2007, 11:29:33 PM (17 years ago)
- Location:
- minimanager/scripts
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/scripts/backup_tab.php
r5 r142 18 18 ); 19 19 20 //list of tables in mangos db will be saved on Global backup21 $tables_backup_ mangos = Array(20 //list of tables in characters db will be saved on Global backup 21 $tables_backup_characters = Array( 22 22 "auctionhouse", 23 23 "arena_team", … … 59 59 ); 60 60 61 //list of tables in mangos db you need to delete data from on user deletion62 $tab_del_user_ mangos = Array(61 //list of tables in characters db you need to delete data from on user deletion 62 $tab_del_user_characters = Array( 63 63 Array("auctionhouse","itemowner"), 64 64 Array("character_action","guid"), … … 98 98 ); 99 99 100 //list of tables in mangos db you need to backup data from on single user backup101 $tab_backup_user_ mangos = Array(100 //list of tables in characters db you need to backup data from on single user backup 101 $tab_backup_user_characters = Array( 102 102 Array("character_action","guid"), 103 103 Array("character_aura","guid"), -
minimanager/scripts/bbcode_lib.php
r19 r142 28 28 $bbcode_colors = Array( 29 29 0 => Array ("colors", "Colors"), 30 1 => Array (" black", "Black"),31 2 => Array (" white", "White"),32 3 => Array (" red", "Red"),33 4 => Array (" green", "Green"),34 5 => Array (" blue", "Blue"),35 6 => Array (" yellow", "Yellow"),36 7 => Array (" purple", "Purple"),37 8 => Array (" navy", "Navy"),30 1 => Array ("white", "White"), 31 2 => Array ("silver", "Silver"), 32 3 => Array ("gray", "Gray"), 33 4 => Array ("yellow", "Yellow"), 34 5 => Array ("olive", "Olive"), 35 6 => Array ("maroon", "Maroon"), 36 7 => Array ("red", "Red"), 37 8 => Array ("purple", "Purple"), 38 38 9 => Array ("fuchsia", "Fuchsia"), 39 10=> Array ("aqua", "Aqua"), 39 10=> Array ("navy", "Navy"), 40 11=> Array ("blue", "Blue"), 41 12=> Array ("teal", "Teal"), 42 13=> Array ("aqua", "Aqua"), 43 14=> Array ("lime", "Lime"), 44 15=> Array ("green", "Green"), 40 45 ); 41 46 … … 77 82 <option>".$bbcode_colors[0][1]."</option>"; 78 83 for($i=1;$i<count($bbcode_colors);$i++){ 79 $output .= "<option onclick=\"addbbcode('msg','color','{$bbcode_colors[$i][0]}');\" style=\"color:{$bbcode_colors[$i][0]}; \">{$bbcode_colors[$i][1]}</option>";84 $output .= "<option onclick=\"addbbcode('msg','color','{$bbcode_colors[$i][0]}');\" style=\"color:{$bbcode_colors[$i][0]};background-color:#383838;\">{$bbcode_colors[$i][1]}</option>"; 80 85 } 81 86 $output .= "</select> -
minimanager/scripts/config.sample.php
r73 r142 9 9 * Email: ***** 10 10 * License: GNU General Public License v2(GPL) 11 * 12 * Updated by Shnappie to work with 3 databases 13 * instead of 2 supported by version of Q.SA 11 14 */ 12 15 13 $version = "0.1. 4a";16 $version = "0.1.5b"; 14 17 15 18 //---- SQL Configuration ---- 16 19 17 20 /* SQL server type : 18 * "MySQL" - Mysql 21 * "MySQL" - Mysql 19 22 * "PgSQL" - PostgreSQL 20 23 * "MySQLi" - MySQLi 21 24 * "SQLLite" - SQLLite 22 25 */ 23 $db_type = "MySQL"; 26 $db_type = "MySQL"; 24 27 25 28 $realm_db = Array( 26 29 'addr' => "127.0.0.1:3306", //SQL server IP:port this realmd located on 27 'user' => " root", //SQL server login this realmd located on28 'pass' => " pass", //SQL server pass this realmd located on30 'user' => "mangos", //SQL server login this realmd located on 31 'pass' => "mangos", //SQL server pass this realmd located on 29 32 'name' => "realmd", //realmd DB name 30 33 'encoding' => "utf8" //SQL connection encoding 31 34 ); 32 33 35 $mangos_db = Array( 34 36 1 => array( //position in array must represent realmd ID 35 37 'id' => 1, //Realm ID 36 38 'addr' => "127.0.0.1:3306", //SQL server IP:port this DB located on 37 'user' => " root", //SQL server login this DB located on38 'pass' => " pass", //SQL server pass this DB located on39 'user' => "mangos", //SQL server login this DB located on 40 'pass' => "mangos", //SQL server pass this DB located on 39 41 'name' => "mangos", //World Database name 40 42 'encoding' => "utf8", //SQL connection encoding 41 'db_rev' => " SDB rev.24" //db rev. used43 'db_rev' => "UDB rev.0.8.2 rc 327" //db rev. used 42 44 ), 45 ); 46 47 $characters_db = Array( 48 1 => array( //position in array must represent realmd ID 49 'id' => 1, //Realm ID 50 'addr' => "127.0.0.1:3306", //SQL server IP:port this DB located on 51 'user' => "mangos", //SQL server login this DB located on 52 'pass' => "mangos", //SQL server pass this DB located on 53 'name' => "characters", //Character Database name 54 'encoding' => "utf8", //SQL connection encoding 55 ), //NOTE: THIS USER MUST HAVE AT LEAST READ ACCESS ON THE WORLD DATABASE 43 56 ); 44 57 … … 46 59 $server = Array( //if more than one realm used, even if they are on same system new subarray MUST be added. 47 60 1 => array( //position in array must represent realmd ID, same as in $mangos_db 48 'addr' => " 127.0.0.1", //Game Server IP - Must be external address61 'addr' => "wow.zdechov.net", //Game Server IP - Must be external address 49 62 'game_port' => 8085, //Game Server port 50 63 'term_type' => "SSH", //Terminal type - ("SSH"/"Telnet") 51 64 'term_port' => 22, //Terminal port 52 'rev' => "rev.4 285", //Mangos rev. used53 'both_factions' => false //Allow to see opponent faction characters. Affects only players.65 'rev' => "rev.4752 SD166", //Mangos rev. used 66 'both_factions' => true //Allow to see opponent faction characters. Affects only players. 54 67 ), 55 68 ); 56 57 69 $sql_search_limit = 100; //limit number of maximum search results 58 70 59 71 //---- Mail configuration ---- 60 $admin_mail = " root@admin.com"; //mail used for bug reports and other user contact72 $admin_mail = "wow@zdechov.net"; //mail used for bug reports and other user contact 61 73 62 74 $mailer_type = "smtp"; // type of mailer to be used("mail", "sendmail", "smtp") 63 $from_mail = " mail@mail.com"; //all emails will be sent from this email75 $from_mail = "wow@zdechov.net"; //all emails will be sent from this email 64 76 //smtp server config 65 77 $smtp_cfg = array( … … 72 84 //---- New account creation Options ---- 73 85 if($AllowedRegistrationCountPerDay == 0) $disable_acc_creation = true; //true = Do not allow new accounts to be created 74 else $disable_acc_creation = false; 75 //$MaximumAccountCount = 10000; // Total account count limitation 76 86 else $disable_acc_creation = false; 77 87 $send_mail_on_creation = false; //true = send mail at account creation. 78 88 $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. … … 87 97 88 98 //---- Layout configuration ---- 89 $title = " MiniManager for MaNgOs srv.";99 $title = "WoW server Heroes of Fantasy"; 90 100 $itemperpage = 25; 91 101 92 102 $css_template = "Sulfur"; //file/folder name of css tamplate to use from templates directory by default 93 $language = " enUS"; //default site language94 $site_encoding = "iso-8859- 1"; //default encoding103 $language = "csCZ"; //default site language 104 $site_encoding = "iso-8859-2"; //default encoding 95 105 96 106 //---- IRC Options ------ … … 98 108 'server' => "irc.quakenet.org", //irc server 99 109 'port' => 6667, //port 100 'channel' => " test" //channel110 'channel' => "#test" //channel 101 111 ); 102 112 103 113 //---- External Links ---- 104 114 $item_datasite = "http://www.wowhead.com/?item="; … … 123 133 //menu content by user level 124 134 $menu_array = Array( 125 3 => array("Admin" ,array( 126 array("index.php", 'main', array()), 127 array("user.php", 'users', array( 128 array("user.php", 'accounts'), 129 array("char_list.php", 'characters'), 130 array("guild.php", 'guilds'), 135 4 => array("SAdmin" ,array( 136 array("index.php", 'main', array()), 137 array("user.php", 'users', array( 138 array("user.php", 'accounts'), 139 array("char_list.php", 'characters'), 140 array("guild.php", 'guilds'), 141 array("arenateam.php", 'arena_teams'), 142 array("honor.php", 'honor'), 131 143 array("banned.php", 'banned_list'), 132 144 array("cleanup.php", 'cleanup'), … … 144 156 array("mail.php", 'mail'), 145 157 array("irc.php", 'irc'), 158 array("javascript:void(0);\" onclick=\"window.open('./forum.html', 'forum')", 'forums'), 146 159 ), 147 160 ), … … 158 171 ) 159 172 ), 173 3 => array("Admin" ,array( 174 array("index.php", 'main', array()), 175 array("user.php", 'users', array( 176 array("user.php", 'accounts'), 177 array("char_list.php", 'characters'), 178 array("guild.php", 'guilds'), 179 array("arenateam.php", 'arena_teams'), 180 array("honor.php", 'honor'), 181 array("banned.php", 'banned_list'), 182 array("cleanup.php", 'cleanup'), 183 array("stat.php", 'statistics'), 184 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'), 185 ), 186 ), 187 array("#", 'tools', array( 188 array("ssh.php", 'ssh_line'), 189 array("run_patch.php", 'run_sql_patch'), 190 array("ticket.php", 'tickets'), 191 array("ahstats.php", 'auctionhouse'), 192 array("realm.php", 'realm'), 193 array("motd.php", 'add_motd'), 194 array("mail.php", 'mail'), 195 array("irc.php", 'irc'), 196 array("javascript:void(0);\" onclick=\"window.open('./forum.html', 'forum')", 'forums'), 197 ), 198 ), 199 array("#", 'db', array( 200 array("item.php", 'items'), 201 array("creature.php", 'creatures'), 202 array("game_object.php", 'game_object'), 203 array("tele.php", 'teleports'), 204 array("command.php", 'command'), 205 array("backup.php", 'backup'), 206 array("repair.php", 'repair'), 207 ), 208 ), 209 ) 210 ), 160 211 2 => array("GameMaster" ,array( 161 212 array("index.php", 'main', array()), … … 164 215 array("char_list.php", 'characters'), 165 216 array("guild.php", 'guilds'), 217 array("arenateam.php", 'arena_teams'), 218 array("honor.php", 'honor'), 166 219 array("banned.php", 'banned_list'), 167 220 array("stat.php", 'statistics'), … … 175 228 array("mail.php", 'mail'), 176 229 array("irc.php", 'irc'), 230 array("javascript:void(0);\" onclick=\"window.open('./forum.html', 'forum')", 'forums'), 177 231 ), 178 232 ), … … 193 247 array("char_list.php", 'characters'), 194 248 array("guild.php", 'guilds'), 195 array("banned.php", 'banned_list'), 196 array("stat.php", 'statistics'), 197 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'), 198 ), 199 ), 200 array("#", 'tools', array( 201 array("ticket.php", 'tickets'), 202 array("ahstats.php", 'auctionhouse'), 203 array("motd.php", 'add_motd'), 204 array("mail.php", 'mail'), 205 array("irc.php", 'irc'), 206 ), 249 array("arenateam.php", 'arena_teams'), 250 array("honor.php", 'honor'), 251 array("banned.php", 'banned_list'), 252 array("stat.php", 'statistics'), 253 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'), 254 ), 255 ), 256 array("#", 'tools', array( 257 array("ticket.php", 'tickets'), 258 array("ahstats.php", 'auctionhouse'), 259 array("motd.php", 'add_motd'), 260 // array("mail.php", 'mail'), 261 array("irc.php", 'irc'), 262 array("javascript:void(0);\" onclick=\"window.open('./forum.html', 'forum')", 'forums'), 263 ), 207 264 ), 208 265 array("#", 'db', array( … … 219 276 array("index.php", 'main', array()), 220 277 array("user.php", 'users', array( 221 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'), 222 array("ahstats.php", 'auctionhouse'), 223 ), 224 ), 225 array("#", 'tools', array( 226 array("irc.php", 'irc'), 227 array("command.php", 'command'), 278 array("arenateam.php", 'arena_teams'), 279 array("honor.php", 'honor'), 280 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'), 281 array("ahstats.php", 'auctionhouse'), 282 ), 283 ), 284 array("#", 'tools', array( 285 array("irc.php", 'irc'), 286 array("command.php", 'command'), 287 array("javascript:void(0);\" onclick=\"window.open('./forum.html', 'forum')", 'forums'), 228 288 ), 229 289 ), -
minimanager/scripts/db_layer/mysqli.php
r19 r142 18 18 var $num_queries = 0; 19 19 20 function connect($db_host, $db_username, $db_password, $db_name = NULL, $use_names = '', $pconnect = true, $newlink = false) { {20 function connect($db_host, $db_username, $db_password, $db_name = NULL, $use_names = '', $pconnect = true, $newlink = false) { 21 21 global $lang_global; 22 22 -
minimanager/scripts/del_lib.php
r19 r142 14 14 //Delete character 15 15 function del_char($guid,$realm){ 16 global $ mangos_db, $realm_db, $user_lvl, $user_id, $tab_del_user_mangos;16 global $characters_db, $realm_db, $user_lvl, $user_id, $tab_del_user_characters; 17 17 18 18 $sql_01 = new SQL; 19 $sql_01->connect($ mangos_db[$realm]['addr'], $mangos_db[$realm]['user'], $mangos_db[$realm]['pass'], $mangos_db[$realm]['name']);19 $sql_01->connect($characters_db[$realm]['addr'], $characters_db[$realm]['user'], $characters_db[$realm]['pass'], $characters_db[$realm]['name']); 20 20 $query = $sql_01->query("SELECT account,online FROM `character` WHERE guid ='$guid' LIMIT 1"); 21 21 $owner_acc_id = $sql_01->result($query, 0, 'account'); … … 26 26 27 27 if (($user_lvl > $owner_gmlvl)||($owner_acc_id == $user_id)) { 28 $sql_01->connect($ mangos_db[$realm]['addr'], $mangos_db[$realm]['user'], $mangos_db[$realm]['pass'], $mangos_db[$realm]['name']);28 $sql_01->connect($characters_db[$realm]['addr'], $characters_db[$realm]['user'], $characters_db[$realm]['pass'], $characters_db[$realm]['name']); 29 29 30 30 if (!$sql_01->result($query, 0, 'online')){ 31 foreach ($tab_del_user_ mangos as $value){31 foreach ($tab_del_user_characters as $value){ 32 32 $query = $sql_01->query("DELETE FROM {$value[0]} WHERE {$value[1]} = '$guid'"); 33 33 } … … 51 51 //Delete Account - return array(deletion_flag , number_of_chars_deleted) 52 52 function del_acc($acc_id){ 53 global $ mangos_db, $realm_db, $user_lvl, $user_id, $tab_del_user_mangos, $tab_del_user_realmd;53 global $characters_db, $realm_db, $user_lvl, $user_id, $tab_del_user_characters, $tab_del_user_realmd; 54 54 55 55 $del_char = 0; … … 62 62 if (($user_lvl > $gmlevel)||($acc_id == $user_id)) { 63 63 if (!$sql_01->result($query, 0, 'online')){ 64 foreach ($ mangos_db as $db){64 foreach ($characters_db as $db){ 65 65 $sql_01->connect($db['addr'], $db['user'], $db['pass'], $db['name']); 66 66 $result = $sql_01->query("SELECT guid FROM `character` WHERE account='$acc_id'"); 67 67 while ($row = $sql_01->fetch_array($result)) { 68 foreach ($tab_del_user_ mangos as $value)68 foreach ($tab_del_user_characters as $value) 69 69 $query = $sql_01->query("DELETE FROM $value[0] WHERE $value[1] = '$row[0]'"); 70 70 $del_char++; … … 91 91 //Delete Guild 92 92 function del_guild($guid,$realm){ 93 global $ mangos_db, $realm_db;93 global $characters_db, $realm_db; 94 94 95 95 require_once("scripts/defines.php"); 96 96 97 97 $sql_01 = new SQL; 98 $sql_01->connect($ mangos_db[$realm]['addr'], $mangos_db[$realm]['user'], $mangos_db[$realm]['pass'], $mangos_db[$realm]['name']);98 $sql_01->connect($characters_db[$realm]['addr'], $characters_db[$realm]['user'], $characters_db[$realm]['pass'], $characters_db[$realm]['name']); 99 99 $query = $sql_01->query("DELETE FROM guild WHERE guildid = '$guid'"); 100 100 $query = $sql_01->query("DELETE FROM guild_rank WHERE guildid = '$guid'"); -
minimanager/scripts/gen_lib.php
r19 r142 12 12 //SEND INGAME MAIL - SAFE TO USE ONLY WHILE SERVER IS OFFLINE 13 13 function send_ingame_mail($to, $from, $subject, $body, $gold = 0, $item = 0, $stack = 1){ 14 global $lang_global, $ mangos_db, $realm_id;14 global $lang_global, $characters_db, $realm_id; 15 15 16 16 $sql_0 = new SQL; 17 $sql_0->connect($ mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']);17 $sql_0->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 18 18 19 19 $result = $sql_0->query("SELECT MAX(`id`) FROM item_text"); … … 42 42 //GENERATE ITEM_NSTANCE ENTRY 43 43 function gen_item_instance($owner, $item_id, $stack){ 44 global $lang_global, $ mangos_db, $realm_id;44 global $lang_global, $characters_db, $realm_id, $mangos_db; 45 45 46 46 $sql_1 = new SQL; 47 $sql_1->connect($ mangos_db[$realm_id]['addr'], $mangos_db[$realm_id]['user'], $mangos_db[$realm_id]['pass'], $mangos_db[$realm_id]['name']);47 $sql_1->connect($characters_db[$realm_id]['addr'], $characters_db[$realm_id]['user'], $characters_db[$realm_id]['pass'], $characters_db[$realm_id]['name']); 48 48 49 49 $result = $sql_1->query("SELECT MAX(guid) FROM item_instance"); … … 51 51 52 52 $result = $sql_1->query("SELECT flags,stackable,MaxDurability,spellcharges_1,spellcharges_2, 53 spellcharges_3,spellcharges_4,spellcharges_5 FROM item_template53 spellcharges_3,spellcharges_4,spellcharges_5 FROM `".$mangos_db[$realm_id]['name']."`.`item_template` 54 54 WHERE entry = '$item_id'"); 55 55 $item_template = $sql_1->fetch_row($result); -
minimanager/scripts/get_lib.php
r19 r142 369 369 switch ($dmg_type) { 370 370 case 0: // Physical 371 $tooltip .= "$min_dmg_value - $max_dmg_value {$lang_item['damage']}<br />(". round(((($min_dmg_value+$max_dmg_value)/2)/($item[52]/1000)),2)." DPS) {$lang_item['speed']} : ".(($item[52])/1000)."<br />";371 $tooltip .= "$min_dmg_value - $max_dmg_value {$lang_item['damage']}<br />(".($item[52] ? round(((($min_dmg_value+$max_dmg_value)/2)/($item[52]/1000)),2): $min_dmg_value)." DPS) {$lang_item['speed']} : ".(($item[52])/1000)."<br />"; 372 372 break; 373 373 case 1: // Holy … … 639 639 preg_match("~(Icon.create\('(.*?)')~", $temp, $temp); 640 640 if (!isset($temp[2])) return "img/INV/INV_blank_32.gif"; 641 641 $temp[2] = strtolower($temp[2]); 642 642 643 //get the icon itself 643 644 $fp = @fsockopen($proxy, $port, $errno, $errstr, 0.4); -
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.