Exemple #1
0
function print_dbc_for_entry($table, $entry)
{
    list($res, $nr) = query_dbc($table, $entry);
    if ($nr != 0) {
        $entry = mysql_fetch_assoc($res);
        $index = 0;
        foreach ($entry as $key => $value) {
            if ($index > 1) {
                echo ", ";
            }
            if ($index > 0) {
                echo "{$key}: {$value}";
            }
            $index++;
        }
    }
}
Exemple #2
0
             } else {
                 if ($is_mechanic[$eff_idx]) {
                     echo $spell_mechanic[$value];
                 }
             }
         }
     }
 } else {
     if ($name == "EffectMiscValueB") {
         if ($is_summon[$eff_idx]) {
             echo $summon_type[$value];
         }
         //TODO: use SummonProperties table
     } else {
         if ($value != 0 && ($name == "EffectTriggerSpell" || $field == "casterAuraSpell" || $field == "targetAuraSpell" || $field == "excludeCasterAuraSpell" || $field == "excludeTargetAuraSpell")) {
             list($res, $nr) = query_dbc("Spell", $value);
             if ($nr) {
                 $sp_info = mysql_fetch_assoc($res);
                 echo $sp_info['SpellName'];
                 if ($sp_info['Rank'] != '') {
                     echo "({$sp_info['Rank']})";
                 }
             }
         } else {
             if ($field == "SpellFamilyName") {
                 echo $spell_family[$value];
             } else {
                 if ($field == "DmgClass") {
                     echo $damage_class[$value];
                 } else {
                     if ($field == "PreventionType") {