Jump to content
M2Tec Community

Recommended Posts

Hey  guys i've been wondering how can i do a bonus cap, like the attack speed/movement speed that if a player has more than a specific amount has the maxvalue i have define.

I want to do this for some percentage bonuses , so if anyone has time and wants to help , i will really appreciate it.

Share this post


Link to post
Share on other sites

In der char.ccp in der ApplyPoint Funktion in deinem gewünschten case, das maximum einbauen.

 

Bsp:

case APPLY_ATTBONUS_MILGYO:
	if (iVal >= maximum)
		PointChange(aApplyInfo[bApplyType].bPointType, maximum);

Achja dann das brake nicht vergessen.

Edited by FANTA
brake

Share this post


Link to post
Share on other sites

Like i mentioned above. You have to exit the switch case with break;

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  

×