Sign in to follow this  
Youness

GS_DISARM

Recommended Posts

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
Posted (edited)

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
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
Reply to this topic...

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

Loading...
Sign in to follow this