Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Tutorial on changing upgraded set effects

Newbie Spellweaver
Joined
Mar 26, 2014
Messages
11
Reaction score
2
This is my first tutorial and I will show you how to change the effects of an upgraded set.
EX: a +10 set gives 45% hit rate, 15% block rate, 20% hp rate, 10 magic power, 3 all stats.

In Mover.cpp
Search for:
void CMover::SetSetItemAvail( int nAbilityOption )

Under this:
if( pSetItemAvail->nAdded != 0 )
{
SetDestParam( DST_STR, pSetItemAvail->nAdded, NULL_CHGPARAM );
SetDestParam( DST_DEX, pSetItemAvail->nAdded, NULL_CHGPARAM );
SetDestParam( DST_INT, pSetItemAvail->nAdded, NULL_CHGPARAM );
SetDestParam( DST_STA, pSetItemAvail->nAdded, NULL_CHGPARAM );
}

Add your custom effect. EX: I used PvP Damage.
if( pSetItemAvail->nPvpRate != 0 )
SetDestParam( DST_PVP_DMG, pSetItemAvail->nPvpRate, NULL_CHGPARAM );

Then right under that is:
void CMover::ResetSetItemAvail( int nAbilityOption )
Do the same and add in your custom code under the stat section.
if( pSetItemAvail->nPvpRate != 0 )
ResetDestParam( DST_PVP_DMG, pSetItemAvail->nPvpRate, TRUE );

In Project.cpp
Search for else if( script.Token == _T( "Setitem" ) )
add your custom text under nAdded, but above nVal. Make sure to use the nStat that you used. Mine is nPvpRate.
m_aSetItemAvail[nAbilityOption].nPvpRate = script.GetNumber();

In Project.h
Search for: typedef struct _SETITEMAVAIL
Add in your custom stat under nAdded and above SETITEMAVAIL.
int nPvpRate;

In WndManager.cpp
Search for: PSETITEMAVAIL psa = prj.GetSetItemAvail( nAbilityOption );
Add your custom stat under the DST_STAT_ALLUP
if( psa->nPvpRate > 0 )
{
strTemp.Format( "\n%s+%d%%", FindDstString( (int)DST_PVP_DMG ), (int)psa->nPvpRate );
pEdit->AddString( strTemp, dwItemColor[g_Option.m_nToolTipText].dwEnchantOption );
IF YOUR STAT USES A % MAKE SURE TO MAKE IT "\n%s+%d%%"
IF IT DOES NOT USE A % MAKE IT "\n%s+%d%"

In ExpTable.inc:
Go to the very bottom and you will see this table:
// ¸íÁß·ü ºí·°·ü Ãß°¡HP·ü ¸¶¹ý°ø°Ý·Â Ãß°¡½ºÅÈ
0 1 0 10 1 // +1
0 3 0 20 3 // +2
5 5 0 30 5 // +3
10 7 0 40 7 // +4
10 9 5 50 9 // +5
20 11 10 60 11 // +6
20 13 15 70 14 // +7
30 15 20 80 17 // +8
30 17 25 90 20 // +9
50 20 35 100 25 // +10
Add in your custom stat at the end:
// ¸íÁß·ü ºí·°·ü Ãß°¡HP·ü ¸¶¹ý°ø°Ý·Â Ãß°¡½ºÅÈ pvp
0 1 0 10 1 0 // +1
0 3 0 20 3 0 // +2
5 5 0 30 5 0 // +3
10 7 0 40 7 0 // +4
10 9 5 50 9 0 // +5
20 11 10 60 11 0 // +6
20 13 15 70 14 0 // +7
30 15 20 80 17 3 // +8
30 17 25 90 20 5 // +9
50 20 35 100 25 10 // +10

This guide is pretty self explanatory, so I wont offer any other assistance after that. If you got bugs you added it in wrong.

If done properly, you will get something that resembles this.
 
Last edited:
Owner
Loyal Member
Joined
May 13, 2011
Messages
1,497
Reaction score
157
Nicely done. This should help an lot of players.

Nicely explained.
 
Newbie Spellweaver
Joined
Jun 13, 2013
Messages
30
Reaction score
0
You do not have such a tutorial for Baruna ? )
 
Newbie Spellweaver
Joined
Sep 16, 2015
Messages
18
Reaction score
0
Hey i Edited all the files in Official source but how do i make it work in my Resource Folder?
Nvm Figured it out =]
 
Last edited:
Back
Top