Jump to content
  • 0

Need Help for skill Npc_Powerup


lordjedi3

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  03/26/14
  • Last Seen:  

hi guys...how to make this npc_powerup become weapon and magic  Attack type at same time? because can choose 1  Attack type only weapon or magic so i need both..THX....

Edited by lordjedi3
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   19
  • Joined:  10/27/12
  • Last Seen:  

On 1/6/2019 at 3:34 AM, lordjedi3 said:

hi guys...how to make this npc_powerup become weapon and magic  Attack type at same time? because can choose 1  Attack type only weapon or magic so i need both..THX....

is this what you wanted: 

In src/map/skill.cpp

look for the line of :

Spoiler

case NPC_POWERUP:
        sc_start(src,bl,SC_INCATKRATE,100,200,skill_get_time(skill_id, skill_lv));
        clif_skill_nodamage(src,bl,skill_id,skill_lv,
            sc_start(src,bl,type,100,100,skill_get_time(skill_id, skill_lv)));
        break;

and make that section to

Spoiler

case NPC_POWERUP:
        sc_start(src,bl,SC_INCATKRATE,100,200,skill_get_time(skill_id, skill_lv));
        sc_start(src,bl,SC_INCMATKRATE,100,200,skill_get_time(skill_id, skill_lv));
        clif_skill_nodamage(src,bl,skill_id,skill_lv,
            sc_start(src,bl,type,100,100,skill_get_time(skill_id, skill_lv)));
        break;

After that recompile your server.

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