Ignore:
Timestamp:
Nov 23, 2007, 11:29:33 PM (17 years ago)
Author:
george
Message:

Minimanager 0.1.5b

File:
1 edited

Legend:

Unmodified
Added
Removed
  • minimanager/scripts/gen_lib.php

    r19 r142  
    1212//SEND INGAME MAIL - SAFE TO USE ONLY WHILE SERVER IS OFFLINE
    1313function 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;
    1515       
    1616        $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']);
    1818 
    1919        $result = $sql_0->query("SELECT MAX(`id`) FROM item_text");
     
    4242//GENERATE ITEM_NSTANCE ENTRY
    4343function 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;
    4545
    4646 $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']);
    4848
    4949 $result = $sql_1->query("SELECT MAX(guid) FROM item_instance");
     
    5151
    5252 $result = $sql_1->query("SELECT flags,stackable,MaxDurability,spellcharges_1,spellcharges_2,
    53                                                         spellcharges_3,spellcharges_4,spellcharges_5 FROM item_template
     53                                                        spellcharges_3,spellcharges_4,spellcharges_5 FROM `".$mangos_db[$realm_id]['name']."`.`item_template`
    5454                                                        WHERE entry = '$item_id'");
    5555 $item_template = $sql_1->fetch_row($result);
Note: See TracChangeset for help on using the changeset viewer.