[Fixed] Debug logic (don't drink and write code).
[Fixed] Tooltips will now display correctly if no ItemID is passed.
Moderator: ds
Subxero wrote:I found a little problem
on tooltips from gems
"Matches a Yellow Socket." its show the yellow square same on
"Matches a Red Socket."
"Matches a Blue Socket."
But on
"Matches a Blue or Yellow Socket." only shows the yellow square not blue.
same with
"Matches a Yellow or Blue Socket."
"Matches a Red or Yellow Socket."
"Matches a Yellow or Red Socket."
"Matches a Red or Blue Socket."
And dont show nothing on
"Only fits in a meta gem slot."
Its licit show gem socket images on these comments ?
elseif (preg_match('/(Yellow|Blue|Red|Meta)\sSocket/', $line))
elseif (preg_match('/^(Yellow|Blue|Red|Meta)\sSocket/', $line))
elseif (preg_match('/^(Yellow|Blue|Red|Meta)\sSocket/', $line))
{
$tooltip_out[] = preg_replace('/(Yellow|Blue|Red|Meta)\sSocket/', '<img src="'.$roster_conf['interface_url'].'Interface/ItemSocketingFrame/UI-EmptySocket-$1.'.$roster_conf['img_suffix'].'"> $1 Socket', $line).'<br />';
}
elseif (preg_match('/^(Gelber|Blauer|Roter|Meta)\sSockel/', $line))
{
$tooltip_out[] = preg_replace('/(Gelber|Blauer|Roter|Meta)\sSockel/', '<img src="'.$roster_conf['interface_url'].'Interface/ItemSocketingFrame/UI-EmptySocket-$1.'.$roster_conf['img_suffix'].'"> $1 Sockel', $line).'<br />';
}
SethDeBlade wrote:just make another elseif for metasockel
elseif (preg_match('/^Metasockel/', $line))
{
$tooltip_out[] = preg_replace('/Metasockel/', '<img src="'.$roster_conf['interface_url'].'Interface/ItemSocketingFrame/UI-EmptySocket-Meta.'.$roster_conf['img_suffix'].'"> Metasockel', $line).'<br />';
}
'2741' => array // added by Spacedrood
(
'name' => 'Royal Nightseye',
'txt' => '+9 Healing Spells and +2 Mana every 5 seconds',
'img' => 'INV_Jewelcrafting_Nightseye_03',
),
'2835' => array // added by Spacedrood
(
'name' => 'Insightful Earthstorm Diamond',
'txt' => '+12 Intellect & Chance to restore mana on spellcast',
'img' => 'INV_Misc_Gem_Diamond_06',
),
"<span style=\"color:#0070dd;font-size:12px;font-weight:bold;\">Evoker\'s Helmet of Second Sight<\/span><br \/><span style=\"color:#00bbff;\">Soulbound<\/span><br \/><table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"overlib_maintext\">Head<\/td><td align=\"right\" class=\"overlib_maintext\">Cloth<\/td><\/tr><\/table>120 Armor<br \/>+12 Stamina<br \/>+15 Intellect<br \/>+8 Spirit<br \/><img src=\"../images/Interface/ItemSocketingFrame/UI-EmptySocket-Blue.jpg\"> Blue Socket<br \/><img src=\"../images/Interface/ItemSocketingFrame/UI-EmptySocket-Blue.jpg\"> Blue Socket<br \/>+3 Spell Critical Rating and +4 Spell Penetration<br \/>Socket Bonus: +5 Spell Damage<br \/>Durability 25 / 50<br \/><span style=\"color:#00ff00;\">Equip: Improves spell critical strike rating by 24.<\/span><br \/><span style=\"color:#00ff00;\">Equip: Increases damage and healing done by magical spells and effects by up to 39.<\/span><br \/><span style=\"color:#00ff00;\">Equip: Allows the bearer to see into the ghost world of Shadowmoon Valley. Only effective in Shadowmoon Valley.<\/span><br \/><br \/>";
"<span style=\"color:#0070dd;font-size:12px;font-weight:bold;\">Shattrath Jumpers<\/span><br \/><span style=\"color:#00bbff;\">Soulbound<\/span><br \/><table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"overlib_maintext\">Feet<\/td><td align=\"right\" class=\"overlib_maintext\">Cloth<\/td><\/tr><\/table>107 Armor<br \/>+25 Stamina<br \/>+17 Intellect<br \/><img width=\"16px\" height=\"16px\" src=\"../images/Interface/Icons/INV_Misc_Gem_DeepPeridot_02.jpg\" alt=\"\" \/><span style=\"color:#00ff00;\"> +3 Spell Critical Rating and +4 Spell Penetration<\/span><br \/><img width=\"16px\" height=\"16px\" src=\"../images/Interface/Icons/INV_Misc_Gem_DeepPeridot_02.jpg\" alt=\"\" \/><span style=\"color:#00ff00;\"> +3 Spell Critical Rating and +4 Spell Penetration<\/span><br \/>Socket Bonus: +3 Intellect<br \/>Durability 18 / 40<br \/><span style=\"color:#00ff00;\">Equip: Increases damage and healing done by magical spells and effects by up to 29.<\/span><br \/><br \/>";
Subxero wrote:Same with items with 3 slots and the first one empty ...
The parse stops on first empty and dont take care of nexts slots.
Sugestion to make more realistic
The color of socket bonus: green when its correct gems color and grey on not correct ?
Return to Gem Sockets and Enchants (Roster Tooltip Mod)
Users browsing this forum: No registered users and 1 guest