[committed] Info fix for the new Trainer Window

A place to submit .patch fixes for the DOL SVN

Moderator: Developer Team

[committed] Info fix for the new Trainer Window

Postby Xaves » Fri May 27, 2011 10:02 pm

With the new trainer window the Info button is gone and instead you can use shift + i on the icons, but appearantly noone ever implemented those 2 cases so here:
Code: Select all

#region Trainer Window
//styles
case 20:
{
Style style = SkillBase.GetStyleByID((int)objectID, client.Player.CharacterClass.ID);
if (style == null) return;

caption = style.Name;
WriteStyleInfo(objectInfo, style, client);
break;
}
//spells
case 22:
{
Spell spell = SkillBase.GetSpellByID((int)objectID);
if (spell == null) return;

caption = spell.Name;
WriteSpellInfo(objectInfo, spell, SkillBase.GetSpellLine(GlobalSpellsLines.Reserved_Spells), client);
break;
}
#endregion
Just add these 2 cases to the DetailDisplayHandler switch and you are done ;)
*the spellline is only needed to create a spellhandler to check wether the spellhandler is implemented, so it's player independable
Last edited by Xaves on Fri May 27, 2011 10:24 pm, edited 1 time in total.
Xaves
DOL Initiate
 
Posts: 17
Joined: Sat Apr 14, 2007 8:39 pm

Re: Info fix for the new Trainer Window

Postby Blue » Fri May 27, 2011 10:04 pm

Thanks Xaves!
ex DOL Lead Developer
Blue
Uthgard Admin
 
Posts: 961
Joined: Wed Jan 21, 2004 11:07 pm
ICQ: 63977313

Re: Info fix for the new Trainer Window

Postby Tolakram » Fri May 27, 2011 10:48 pm

Excellent, thanks.
- Mark
User avatar
Tolakram
Storm / Storm-D2 Admin
 
Posts: 9189
Joined: Tue Jun 13, 2006 1:49 am
Location: Kentucky, USA

Re: Info fix for the new Trainer Window

Postby Graveen » Sat May 28, 2011 2:23 pm

nice, ty !

Accepted, soon in SVN, thank you !
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France


Return to “%s” DOL Code Contributions

Who is online

Users browsing this forum: No registered users and 1 guest