~FlyFF DeV~
- Joined
- Mar 2, 2009
- Messages
- 579
- Reaction score
- 113
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 Stdafx.h:
Open FuncApplet.cpp (neuz solution , or _interface folder whichever you prefer):
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):
ENJOY LEECHARS!!
ALL CREDITS GO TO ME & gala labs(making window).
DON'T FORGET TO LIKE IT!
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 Stdafx.h:
And Add under this:
This:
Code:
// Interface
#include "EditString.h" // CStringŔ» Č®ŔĺÇŃ CEditString
#include "ToolTip.h" // ĹřĆÁ
#include "ITheme.h" // ŔÎĹÍĆäŔĚ˝şŔÇ »ö»ó, ˝şĹ˛, ĆůĆ® µűŔ§ŔÇ Á¤ŔÇ Ĺ¬·ą˝ş
#include "WndBase.h" // Ŕ©µµŔÇ ±âş» Ŭ·ˇ˝ş, ±âŸ °˘Áľ ÄÜĆ®·Ń (ąöĆ°, ˝şĹ©·ŃąŮ µîµî)
#include "WndControl.h" // Ŕ©µµ °˘Áľ ÄÜĆ®·Ń (ąöĆ°, ˝şĹ©·ŃąŮ µîµî)
#include "wndEditCtrl.h" // żˇµđĆ® ÄÜĆ®·Ń, IME, ą®ŔÚ ŔÔ·Â
#include "WndItemCtrl.h" // Ŕ©µµ °˘Áľ ÄÜĆ®·Ń (ąöĆ°, ˝şĹ©·ŃąŮ µîµî)
#include "WndTradeCtrl.h" // Ŕ©µµ °˘Áľ ÄÜĆ®·Ń (ąöĆ°, ˝şĹ©·ŃąŮ µîµî)
#include "WndNeuz.h" // Neuz ÇüĹÂŔÇ Ŕ©µµ Ăâ·Â ±âş» Ŭ·ˇ˝ş
#include "WndMessageBox.h" // ¸Ĺ˝ĂÁö ąÚ˝ş, °ć°í, Áľ·á µîµî
#include "WndGuideSystem.h"
#include "WndTitle.h" // TitleŔÇ Ŕ©µµ Ŭ·ˇ˝ş (Login, Character List µîµî)
#include "WndTaskBar.h" // Ĺ½şĹ© ąŮ Ŭ·ˇ˝ş °ü·Ă, ¸Ĺ´ş µîµî
#include "WndField.h" // FieldŔÇ Ŕ©µµ Ŭ·ˇ˝ş (»óĹÂ, ŔÎşĄĹ丮 µîµî)
#include "WndCommunication.h"// FieldŔÇ Ŕ©µµ Ŭ·ˇ˝ş (»óĹÂ, ŔÎşĄĹ丮 µîµî)
#include "WndOption.h" // Option °ü·Ă
#include "WndOptionGame.h" // °ÔŔÓ żÉĽÇ
#include "WndDialog.h" // ´ëČ
#include "WndShop.h" // »óÁˇ
#include "WndMessengerSearch.h" // ¸Ţ˝ĹŔú °Ë»öâ
#include "WndManager.h" // Ŕ©µµ ¸Ĺ´ĎŔú
#include "WndWorld.h" // żůµĺ Ŕ©µµ
#include "WndGuild.h" // ±ćµĺ Ŕ©µµ
#include "WndRankGuild.h" // ±ćµĺ ·©Ĺ·
#include "WndRankInfo.h"
#include "WndRankWar.h"
#include "WndGuildVote.h" // ±ćµĺĹőÇĄ Ŕ©µµ
#include "WndUpgradeBase.h" // Ŕç·ĂŔ©µµ
Code:
#include "WndSkillTree.h"
And add those to the code:
Go to DECLAREAPPLET and add this on beginning or end of declareapplets:
And Now 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:
Go to DECLAREAPPLET and add this on beginning or end of declareapplets:
Code:
#ifdef __V16_SKILLTREE
DECLAREAPPLET( AppMain_WndSkill , new CWndSkillTree );
#endif
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
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:
Now change it to this:
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:
Just change APP_SKILL3 to APP_SKILL4 or:
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:
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
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
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
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
@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 poop 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 - 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.
ENJOY LEECHARS!!
ALL CREDITS GO TO ME & gala labs(making window).
DON'T FORGET TO LIKE IT!
Attachments
You must be registered for see attachments list
Last edited: