Hi as you might all have seen (those who compiled any source) the V16 SkillTree known to be in file WndSkillInventory.cpp has many lacks of functions so I decided to release my Skill Window which has all old functions (multi kill adding, tooltip, if skills have no level they only colorize when you move mouse on them...and etc.)
So let's start:
First download the rar file from Attachments.
Next put unpacked files(WndSkillTree .cpp and .h) to _interface folder.
Now add them to neuz project.
Okey you have now whole window with all functions. Now we will make it work!
Open FuncApplet.cpp (neuz solution , or _interface folder whichever you prefer):
And add those to the code:
This one put where the includes are:
Code:
#ifdef __V16_SKILLTREE
#include "WndSkillTree.h"
#endif
Next we go to DECLAREAPPLET and add this on beginning or end of declareapplets:
Code:
#ifdef __V16_SKILLTREE
DECLAREAPPLET( AppMain_WndSkill , new CWndSkillTree );
#endif
And Now last thing. You have to choose if you want to replace old window or try if this one works for you(it should lolz...). I will show you how to make safe replace. Search for
AddAppletFunc( AppMain_WndSkill2 and change that line to look like here:
Code:
#ifdef __V16_SKILLTREE
AddAppletFunc( AppMain_WndSkill , APP_SKILL4 , _T( "WndSkill" ) , _T( "Icon_Skill.dds" ) , GETTEXT( TID_TIP_SKILL ), 'K' );
#else
AddAppletFunc( AppMain_WndSkill2 , APP_SKILL3 , _T( "WndSkill" ) , _T( "Icon_Skill.dds" ) , GETTEXT( TID_TIP_SKILL ), 'K' );
#endif
If you did everything correctly the window should open change tabs, etc.
Now it's time to make your window be able to drop icons on TaskBar,add them to action slot and save skill points.
Open WndField.cpp( still same folder and solution):
Now search for APP_SKILL3. You should find something like this:
Code:
#if __VER >= 10 // __CSC_VER9_1
CWndSkillTreeEx* pSkillTree = (CWndSkillTreeEx*)g_WndMng.GetWndBase( APP_SKILL3 );
#else
CWndSkillTreeEx* pSkillTree = (CWndSkillTreeEx*)g_WndMng.GetWndBase( APP_SKILL1 );
#endif //__CSC_VER9_1
Now change it to this:
Code:
#ifdef __V16_SKILLTREE
[B][COLOR=Red]CWndSkillTree[/COLOR][/B]* pSkillTree = ([B][COLOR=Red]CWndSkillTree*[/COLOR][/B])g_WndMng.GetWndBase( [B][COLOR=Blue]APP_SKILL4 [/COLOR][/B]);
#else
CWndSkillTreeEx* pSkillTree = (CWndSkillTreeEx*)g_WndMng.GetWndBase( APP_SKILL3 );
#endif
Those 3 things are very important if you would leave the old CWndSkillTreeEx it would say you errors and would stop compile!
Search more....
This one is really easy:
Code:
#if __VER >= 10 // __CSC_VER9_1
CWndBase* pWndBase1 = (CWndBase*)g_WndMng.GetWndBase( [COLOR=Red]APP_SKILL3[/COLOR] );
#else
CWndBase* pWndBase1 = (CWndBase*)g_WndMng.GetWndBase( APP_SKILL1 );
#endif //__CSC_VER9_1
Just change APP_SKILL3 to APP_SKILL4 or:
Code:
#ifdef __V16_SKILLTREE
CWndBase* pWndBase1 = (CWndBase*)g_WndMng.GetWndBase( [COLOR=Red]APP_SKILL4[/COLOR] );
#else
CWndBase* pWndBase1 = (CWndBase*)g_WndMng.GetWndBase( [COLOR=Blue]APP_SKILL3[/COLOR] );
#endif
Now all what you have to do is search project for all APP_SKILL3 and replace them correctly with APP_SKILL4 or with safe method I've shown before.
@EDIT: When you replace those all APP_SKILL3 your window should:
- be in menus,
- open when you click K button,
- let you add skillpoints like in old skilltree(not one skill, save and next skill like in that horrible window),
- READ THIS:it shouldn't crash your client because it's made like the old tree so it deletes device objects(these shit v16 things were adding evertytime opened about 3-4mb to process use, you can check lol),
- you should be able to save skill points(when you add just window and click on ok button it will just open window and nothing happens :P - only when you do first part of tutorial),
- you can drop skills on taskbar,
- add skills to action slot by 2x clicking (It's mainly why I made this window LOL),
- if you went to functextcmd.cpp and changed too skilllevel should work with selected skill.
@EDIT:Small update. It's mostly for newbies but if you get error that WndSkillTree is not defined at includes of file(look at top of file) add this:
Code:
#ifdef __V16_SKILLTREE
#include "WndSkillTree.h"
#endif
ENJOY LEECHARS!!
ALL CREDITS GO TO ME and some to gala labs for making window :P
DON'T FORGET TO LIKE IT!
@Edit: If anyone want to translate it post here and I will Add German version of tut