change
- Code: Select all
// make recipe row
if ($charskill_level >= $parsedrecipes[$sindex][$dindex]['skill']){
$skill_color = "00FF00";
} else {
$skill_color = "FF0000";
}
to this
- Code: Select all
$matches = array('<span class="orangename">','</span> <span class="yellowname">','</span> <span class="greenname">','</span> <span class="greyname">');
$imagex = str_replace( $matches, ':', $parsedrecipes[$sindex][$dindex]['skill'] );
list($bummy,$skill_lurn, $skill_yellow, $skill_green, $skill_white, ) = explode(":", $imagex, 5);
$charskill_level2 = explode(":", $charskill_level);
if ($charskill_level2[0]>=$skill_lurn )
{
$skill_color = "008000";
} else
{
$skill_color = "FF0000";
}
and how they will show green in the skill box if you can lurn it or red if you cant
also got crafty and added tooltips
see Missing recipies on my site this is my char
hope you enjoy this