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
In Project.cpp
In Project.h
In WndManager.cpp
In ExpTable.inc:
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.
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 )
Then right under that is:
void CMover::ResetSetItemAvail( int nAbilityOption )
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 );
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 );
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();
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;
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( 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%"
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:
Add in your custom stat at the end:
// ¸íÁß·ü ºí·°·ü Ãß°¡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
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
// ¸íÁß·ü ºí·°·ü Ãß°¡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
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: