Onlykl
04-07-09, 12:23 PM
Remeber this is just for ArcEmu core tutorial....
1) Open Arcemu/trunk/src/arcemu-world/player.cpp
2) Use Ctrl+F 'Find' to find these sections of code. Replace where i Have placed a '###' with your new max skill cap.
To Edit Weapon Max Skill level
// force to be within limits
#if PLAYER_LEVEL_CAP==80
Curr_sk = ( Curr_sk > ### ? ### : ( Curr_sk <1 ? 1 : Curr_sk ) );
Max_sk = ( Max_sk > ### ? ### : Max_sk );
#else
Curr_sk = ( Curr_sk > ### ? ### : ( Curr_sk <1 ? 1 : Curr_sk ) );
Max_sk = ( Max_sk > ### ? ### : Max_sk );
#endif
To Edit max Profession Level (If your level cap is higher then 80 follow the direcions on the next box down)
For Max Level 80:
{
new_max = itr->second.MaximumValue;
if (new_max >= ###)
new_max = ###;
}
else
{
new_max = 1;
}
// force to be within limits
#if PLAYER_LEVEL_CAP==80
if (new_max > ###)
new_max = ###;
#else
if (new_max > ###)
new_max = ###;
#endif
If your Max level is higher then 80 then replace the section of code mentioned above (in your player.cpp file) with this code
(Replace the ### with the new max skill level as usual and the $$$ with your servers max level
{
new_max = itr->second.MaximumValue;
if (new_max >= ###)
new_max = ###;
}
else
{
new_max = 1;
}
// force to be within limits
#if PLAYER_LEVEL_CAP==80
if (new_max > ###)
new_max = ###;
#else
if (new_max > ###)
new_max = ###;
#endif
#if PLAYER_LEVEL_CAP==$$$
if (new_max > ###)
new_max = ###;
#else
if (new_max > ###)
new_max = ###;
#endif
This is for All skills
void Player::_ModifySkillMaximum(uint32 SkillLine, uint32 NewMax)
{
// force to be within limits
#if PLAYER_LEVEL_CAP==80
NewMax = ( NewMax > ### ? ### : NewMax );
#else
NewMax = ( NewMax > ### ? ### : NewMax );
#endif
That's it. Recompile your Arcemu Core and you enter in game.. Enjoy...
1) Open Arcemu/trunk/src/arcemu-world/player.cpp
2) Use Ctrl+F 'Find' to find these sections of code. Replace where i Have placed a '###' with your new max skill cap.
To Edit Weapon Max Skill level
// force to be within limits
#if PLAYER_LEVEL_CAP==80
Curr_sk = ( Curr_sk > ### ? ### : ( Curr_sk <1 ? 1 : Curr_sk ) );
Max_sk = ( Max_sk > ### ? ### : Max_sk );
#else
Curr_sk = ( Curr_sk > ### ? ### : ( Curr_sk <1 ? 1 : Curr_sk ) );
Max_sk = ( Max_sk > ### ? ### : Max_sk );
#endif
To Edit max Profession Level (If your level cap is higher then 80 follow the direcions on the next box down)
For Max Level 80:
{
new_max = itr->second.MaximumValue;
if (new_max >= ###)
new_max = ###;
}
else
{
new_max = 1;
}
// force to be within limits
#if PLAYER_LEVEL_CAP==80
if (new_max > ###)
new_max = ###;
#else
if (new_max > ###)
new_max = ###;
#endif
If your Max level is higher then 80 then replace the section of code mentioned above (in your player.cpp file) with this code
(Replace the ### with the new max skill level as usual and the $$$ with your servers max level
{
new_max = itr->second.MaximumValue;
if (new_max >= ###)
new_max = ###;
}
else
{
new_max = 1;
}
// force to be within limits
#if PLAYER_LEVEL_CAP==80
if (new_max > ###)
new_max = ###;
#else
if (new_max > ###)
new_max = ###;
#endif
#if PLAYER_LEVEL_CAP==$$$
if (new_max > ###)
new_max = ###;
#else
if (new_max > ###)
new_max = ###;
#endif
This is for All skills
void Player::_ModifySkillMaximum(uint32 SkillLine, uint32 NewMax)
{
// force to be within limits
#if PLAYER_LEVEL_CAP==80
NewMax = ( NewMax > ### ? ### : NewMax );
#else
NewMax = ( NewMax > ### ? ### : NewMax );
#endif
That's it. Recompile your Arcemu Core and you enter in game.. Enjoy...