Jump to content
  • 0
Sign in to follow this  
Begin

Auto-Falcon Assault when linked

Question

Hi Everyone!

Found this source mod on some topics:

                if(pc_isfalcon(sd) && sd->weapontype == W_BOW && sc && sc->data[SC_SOULLINK] && sc->data[SC_SOULLINK]->val2 == SL_HUNTER) {
                    skill->castend_damage_id(src,bl,SN_FALCONASSAULT,temp,tick,0);
                    }

And it says that this is 15% chance. But when I test it, it's like 100%. May I know where to edit the line to make it lower?

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
if( pc_isfalcon(sd) && sd->weapontype == W_BOW && sc && sc->data[SC_SOULLINK] && sc->data[SC_SOULLINK]->val2 == SL_HUNTER && pc->checkskill(sd,SN_FALCONASSAULT) > 0 && rand()%100 <= 15 )
	skill->castend_damage_id(src,bl,SN_FALCONASSAULT,1,tick,SD_LEVEL);

This will give you 15% chance.
Edit the <= 15 ) to chance you want.

Edited by vBrenth

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

  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  

×
×
  • Create New...

Important Information

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