[1.7.1] Riding Skill Errors

Official announcements concerning bugs and fixes in the WoWRoster package
Posting is restricted to Forum Moderators

[1.7.1] Riding Skill Errors

Postby zanix » Mon Oct 23, 2006 8:15 am

Roster 1.7.1 was released without the riding skill icons fully working

Thanks to Romish for the fix

Here is the manual fix
Or you can download the patched files
[1.7.1] Riding Skill Icon fix

memberslist.php
Find the entire function Lines 631-660
Code: Select all
function tradeskill_icons $row )
{
    global 
$wowdb$roster_conf$wordings;

    if( 
$row['clientLocale'] != '' )
    {
        
$SQL_prof $wowdb->query"SELECT * FROM `".ROSTER_SKILLSTABLE."` WHERE `member_id` = '".$row['member_id']."' AND (`skill_type` = '".$wordings[$row['clientLocale']]['professions']."' OR `skill_type` = '".$wordings[$row['clientLocale']]['secondary']."') ORDER BY `skill_order` ASC" );

        
$cell_value '';
        while ( 
$r_prof $wowdb->fetch_assoc$SQL_prof ) )
        {
            
$toolTip str_replace(':','/',$r_prof['skill_level']);
            
$toolTiph $r_prof['skill_name'];

            
$skill_image 'Interface/Icons/'.$wordings[$row['clientLocale']]['ts_iconArray'][$r_prof['skill_name']];

            if(
$r_prof['skill_name'] == "Riding")
            {
                
$skill_image 'Interface/Icons/'.$wordings[$row['clientLocale']]['ts_ridingIcon'][$row['race']];
            }

            
$cell_value .= "<img class=\"membersRowimg\" width=\"".$roster_conf['index_iconsize']."\" height=\"".$roster_conf['index_iconsize']."\" src=\"".$roster_conf['interface_url'].$skill_image.'.'.$roster_conf['img_suffix']."\" alt=\"\" ".makeOverlib($toolTip,$toolTiph,'',2,'',',RIGHT,WRAP')." />\n";
        }
    }
    else
    {
        
$cell_value ' ';
    }
    return 
$cell_value;

Replace with this new function
Code: Select all
function tradeskill_icons $row )
{
    global 
$wowdb$roster_conf$wordings;

    if( 
$row['clientLocale'] != '' )
    {
        
$lang $row['clientLocale'];

        
$SQL_prof $wowdb->query"SELECT * FROM `".ROSTER_SKILLSTABLE."` WHERE `member_id` = '".$row['member_id']."' AND (`skill_type` = '".$wordings[$lang]['professions']."' OR `skill_type` = '".$wordings[$lang]['secondary']."') ORDER BY `skill_order` ASC" );

        
$cell_value '';
        while ( 
$r_prof $wowdb->fetch_assoc$SQL_prof ) )
        {
            
$toolTip str_replace(':','/',$r_prof['skill_level']);
            
$toolTiph $r_prof['skill_name'];

            if(
$r_prof['skill_name'] == $wordings[$lang]['riding'])
            {
                if(
$row['class']==$wordings[$lang]['Paladin'] || $row['class']==$wordings[$lang]['Warlock'])
                {
                    
$skill_image 'Interface/Icons/'.$wordings[$lang]['ts_ridingIcon'][$row['class']];
                }
                else
                {
                    
$skill_image 'Interface/Icons/'.$wordings[$lang]['ts_ridingIcon'][$row['race']];
                }
            }
            else
            {
                
$skill_image 'Interface/Icons/'.$wordings[$lang]['ts_iconArray'][$r_prof['skill_name']];
            }

            
$cell_value .= "<img class=\"membersRowimg\" width=\"".$roster_conf['index_iconsize']."\" height=\"".$roster_conf['index_iconsize']."\" src=\"".$roster_conf['interface_url'].$skill_image.'.'.$roster_conf['img_suffix']."\" alt=\"\" ".makeOverlib($toolTip,$toolTiph,'',2,'',',RIGHT,WRAP')." />\n";
        }
    }
    else
    {
        
$cell_value ' ';
    }
    return 
$cell_value;



localization/enUS.php
Find Lines 412-422
Code: Select all
// Riding Skill Icons-Array
$wordings['enUS']['ts_ridingIcon'] = array(
    
'Night Elf'=>'Ability_Mount_WhiteTiger',
    
'Human'=>'Ability_Mount_RidingHorse',
    
'Dwarf'=>'Ability_Mount_MountainRam',
    
'Gnome'=>'Ability_Mount_MechaStrider',
    
'Undead'=>'Ability_Mount_Undeadhorse',
    
'Troll'=>'Ability_Mount_Raptor',
    
'Tauren'=>'Ability_Mount_Kodo_03',
    
'Orc'=>'Ability_Mount_BlackDireWolf',
); 

Replace with
Code: Select all
// Riding Skill Icons-Array
$wordings['enUS']['riding'] = 'Riding';
$wordings['enUS']['ts_ridingIcon'] = array(
    
'Night Elf'=>'Ability_Mount_WhiteTiger',
    
'Human'=>'Ability_Mount_RidingHorse',
    
'Dwarf'=>'Ability_Mount_MountainRam',
    
'Gnome'=>'Ability_Mount_MechaStrider',
    
'Undead'=>'Ability_Mount_Undeadhorse',
    
'Troll'=>'Ability_Mount_Raptor',
    
'Tauren'=>'Ability_Mount_Kodo_03',
    
'Orc'=>'Ability_Mount_BlackDireWolf',
    
'Paladin'=>'Ability_Mount_Dreadsteed',
    
'Warlock'=>'Ability_Mount_NightmareHorse'
); 



localization/deDE.php
Find Lines 412-422
Code: Select all
// Riding Skill Icons-Array
$wordings['deDE']['ts_ridingIcon'] = array(
    
'Night Elf'=>'Ability_Mount_WhiteTiger',
    
'Human'=>'Ability_Mount_RidingHorse',
    
'Dwarf'=>'Ability_Mount_MountainRam',
    
'Gnome'=>'Ability_Mount_MechaStrider',
    
'Undead'=>'Ability_Mount_Undeadhorse',
    
'Troll'=>'Ability_Mount_Raptor',
    
'Tauren'=>'Ability_Mount_Kodo_03',
    
'Orc'=>'Ability_Mount_BlackDireWolf',
); 

Replace with
Code: Select all
// Riding Skill Icons-Array
$wordings['deDE']['riding'] = 'Reiten';
$wordings['deDE']['ts_ridingIcon'] = array(
    
'Nachtelf'=>'Ability_Mount_WhiteTiger',
    
'Mensch'=>'Ability_Mount_RidingHorse',
    
'Zwerg'=>'Ability_Mount_MountainRam',
    
'Gnom'=>'Ability_Mount_MechaStrider',
    
'Untoter'=>'Ability_Mount_Undeadhorse',
    
'Troll'=>'Ability_Mount_Raptor',
    
'Tauren'=>'Ability_Mount_Kodo_03',
    
'Orc'=>'Ability_Mount_BlackDireWolf',
    
'Paladin'=>'Ability_Mount_Dreadsteed',
    
'Hexenmeister'=>'Ability_Mount_NightmareHorse'
); 



localization/frFR.php
Find Lines 412-422
Code: Select all
// Riding Skill Icons-Array
$wordings['frFR']['ts_ridingIcon'] = array(
    
'Elfe de la nuit'=>'Ability_Mount_WhiteTiger',
    
'Humain'=>'Ability_Mount_RidingHorse',
    
'Nain'=>'Ability_Mount_MountainRam',
    
'Gnome'=>'Ability_Mount_MechaStrider',
    
'Mort-vivant'=>'Ability_Mount_Undeadhorse',
    
'Troll'=>'Ability_Mount_Raptor',
    
'Tauren'=>'Ability_Mount_Kodo_03',
    
'Orc'=>'Ability_Mount_BlackDireWolf',
); 

Replace with
Code: Select all
// Riding Skill Icons-Array
$wordings['frFR']['riding'] = 'Monte';
$wordings['frFR']['ts_ridingIcon'] = array(
    
'Elfe de la nuit'=>'Ability_Mount_WhiteTiger',
    
'Humain'=>'Ability_Mount_RidingHorse',
    
'Nain'=>'Ability_Mount_MountainRam',
    
'Gnome'=>'Ability_Mount_MechaStrider',
    
'Mort-vivant'=>'Ability_Mount_Undeadhorse',
    
'Troll'=>'Ability_Mount_Raptor',
    
'Tauren'=>'Ability_Mount_Kodo_03',
    
'Orc'=>'Ability_Mount_BlackDireWolf',
    
'Paladin'=>'Ability_Mount_Dreadsteed',
    
'Démoniste'=>'Ability_Mount_NightmareHorse'
); 
Last edited by zanix on Tue Oct 24, 2006 8:25 am, edited 2 times in total.
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

[1.7.1] Riding Skill Errors

Postby zanix » Tue Oct 24, 2006 8:28 am

New fix posted by Romish that actually fixes it correctly :)
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US


Return to Official Bugs & Updates

Who is online

Users browsing this forum: No registered users and 0 guests

cron