Jump to content
  • 0

Skill Editing Problem


zmref

Question


  • Group:  Members
  • Topic Count:  148
  • Topics Per Day:  0.03
  • Content Count:  299
  • Reputation:   6
  • Joined:  06/14/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  03/03/12
  • Last Seen:  

(\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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...