Jump to content
  • 0

Need Help for skill Npc_Powerup


Question

Posted (edited)

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

1 answer to this question

Recommended Posts

  • 0
Posted
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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...