zmref Posted July 4, 2012 Group: Members Topic Count: 148 Topics Per Day: 0.03 Content Count: 299 Reputation: 6 Joined: 06/14/12 Last Seen: March 30, 2013 Share Posted July 4, 2012 Problem: To change the effect of Assassin Spirit Skill Default effect of the SL Assassin: doubling the damage of Sonic Blow Skill Objective: I want to change it to +25% additional dmg instead of 100%. What I did was: -opened the skill C source located at (\src\map\skill.c) -Searched for the Soul Link Assasin (CTRL+F > type SL_Assasin) -And these are what I've found: 1.) case SL_ASSASIN: 2.) if ( sc && sc->data[sC_SPIRIT] ) { switch (skill_id) { case CR_SHIELDBOOMERANG: if (sc->data[sC_SPIRIT]->val2 == SL_CRUSADER) time /= 2; break; case AS_SONICBLOW: if (!map_flag_gvg(bl->m) && !map[bl->m].flag.battleground && sc->data[sC_SPIRIT]->val2 == SL_ASSASIN) time /= 2; break; } } I understand the code but not these ff: 1.) -> 2.) (bl->m) 3.)Where's the value for the additional damage so that I can change the effect? Quote Link to comment Share on other sites More sharing options...
Pavi Posted July 4, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 10 Reputation: 0 Joined: 03/03/12 Last Seen: February 9, 2015 Share Posted July 4, 2012 (\src\map\battle.c) switch (skill_num) { case AS_SONICBLOW: if (sc && sc->data[sC_SPIRIT] && sc->data[sC_SPIRIT]->val2 == SL_ASSASIN) ATK_ADDRATE(map_flag_gvg(src->m)?25:100); //+25% dmg on woe/+100% dmg on nonwoe[/font][/color] [color=#282828][font=helvetica, arial, sans-serif] Change 25:100 to 25:25 Quote Link to comment Share on other sites More sharing options...
Question
zmref
Problem: To change the effect of Assassin Spirit Skill
Default effect of the SL Assassin: doubling the damage of Sonic Blow Skill
Objective: I want to change it to +25% additional dmg instead of 100%.
What I did was:
-opened the skill C source located at (\src\map\skill.c)
-Searched for the Soul Link Assasin (CTRL+F > type SL_Assasin)
-And these are what I've found:
1.) case SL_ASSASIN:
2.) if ( sc && sc->data[sC_SPIRIT] )
{
switch (skill_id) {
case CR_SHIELDBOOMERANG:
if (sc->data[sC_SPIRIT]->val2 == SL_CRUSADER)
time /= 2;
break;
case AS_SONICBLOW:
if (!map_flag_gvg(bl->m) && !map[bl->m].flag.battleground && sc->data[sC_SPIRIT]->val2 == SL_ASSASIN)
time /= 2;
break;
}
}
I understand the code
but not these ff:
1.) ->
2.) (bl->m)
3.)Where's the value for the additional damage so that I can change the effect?
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.