Jump to content
  • 0

Request > New effect for Magnum Break


acbx

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  05/17/20
  • Last Seen:  

Hello everybody!


I need help making sure that when the player activates the "magnum break" ability, the same effect as the teacher's "flame launcher" ability appears on the side of the screen, and obviously that he charms the weapon with fire. Could someone help me, please?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

In src/map/skill.cpp, find:
case SM_MAGNUM:
...
sc_start4(src,src,SC_WATK_ELEMENT,100,3,20,0,0,skill_get_time2(skill_id, skill_lv));

Add:
sc_start(src, src, SC_FIREWEAPON, 100, skill_lv, skill_get_time2(skill_id, skill_lv));

So it looks like:

case SM_MAGNUM:
...
sc_start4(src,src,SC_WATK_ELEMENT,100,3,20,0,0,skill_get_time2(skill_id, skill_lv));
sc_start(src, src, SC_FIREWEAPON, 100, skill_lv, skill_get_time2(skill_id, skill_lv));

Re-compile server and try it!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  18
  • Reputation:   0
  • Joined:  05/17/20
  • Last Seen:  

The above code worked. Thank you!

The problem is that the status on the side of the screen starts in the middle and lasts only a few seconds.

Where can I change this skill time?

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...