예제 #1
0
            }
        }
    }
}
?>
$.extend(true, g_items, _);
_ = g_items;
_[<?php 
echo $proto->entry;
?>
].tooltip_enus = '<?php 
echo $proto->tooltip;
?>
';
<?php 
$vendors = WoW_Items::GetVendorsSource();
if (is_array($vendors)) {
    foreach ($vendors as $vendor) {
        if (isset($vendor['ext_cost_items']) && is_array($vendor['ext_cost_items'])) {
            foreach ($vendor['ext_cost_items'] as $item) {
                echo sprintf('_[%d]={name_enus:\'%d\',icon:[\'%s\',\'%s\']};', $item['entry'], WoW_Locale::GetLocaleID() != LOCALE_EN && isset($item['name_loc']) && $item['name_loc'] != null ? $item['name_loc'] : $item['name'], $item['icon'], $item['icon']);
            }
        }
    }
}
?>
//_[395]={name_enus:'Очки справедливости',icon:['pvecurrency-justice','pvecurrency-justice']};
//_[241]={name_enus:'Печать чемпиона',icon:['ability_paladin_artofwar','ability_paladin_artofwar']};
$.extend(true, g_gatheredcurrencies, _);
<?php 
$achievementsCriteria = WoW_Items::GetAchievementsCriteria();