Jump to content
  • 0
Sign in to follow this  
Youness

GS_DISARM

Question

Hellos guys,

I have been testing a lot with this Skill and I can not solve the problem I have.
The animation always comes out. I would like only the animation comes out when the Skill makes the disarm (Strip).

I wish I could receive help.

Here my cases :
 case GS_DISARM:
            rate = 3*skilllv;
            if (sstatus->dex > tstatus->dex)
            rate += (sstatus->dex - tstatus->dex)/5;
            break;
case GS_DISARM:
            time = skill_get_time(skill_id, skill_lv);
            break;
case GS_DISARM:
            location = EQP_WEAPON;
            break;
case GS_DISARM:
        skill_strip_equip(src, bl, skill_id, skill_lv);
        clif_skill_nodamage(src,bl,skill_id,skill_lv,1);
        break;

 Thank you!!!

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hi! Done that recently on my server.

skill.cpp

case GS_DISARM:
        skill_strip_equip(src, bl, skill_id, skill_lv);
        clif_skill_nodamage(src,bl,skill_id,skill_lv,1);
        break;
To

case GS_DISARM:
        if( skill_strip_equip(src, bl, skill_id, skill_lv) )
            clif_skill_nodamage(src,bl,skill_id,skill_lv,1);
        break;

Edited by Sting0r

Share this post


Link to post
Share on other sites
  • 0
21 hours ago, Sting0r said:

Hi! Done that recently on my server.

skill.cpp

case GS_DISARM:
        skill_strip_equip(src, bl, skill_id, skill_lv);
        clif_skill_nodamage(src,bl,skill_id,skill_lv,1);
        break;
To

case GS_DISARM:
        if( skill_strip_equip(src, bl, skill_id, skill_lv) )
            clif_skill_nodamage(src,bl,skill_id,skill_lv,1);
        break;

case GS_DISARM:
        if( skill_strip_equip(src, bl, skill_id, skill_lv) )
            clif_skill_nodamage(src,bl,skill_id,skill_lv,1);
else
            clif_skill_nodamage(src,bl,skill_id,skill_lv,0);

        break;

 

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.