• 0
Sign in to follow this  
Followers 0
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

  • 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0