Changeset 142 for minimanager/scripts/gen_lib.php
- Timestamp:
- Nov 23, 2007, 11:29:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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);
Note:
See TracChangeset
for help on using the changeset viewer.