Jump to content
  • 0
Sign in to follow this  
Hadeszeus

Masquerade 100% Chance at 175 CAP

Question

I want to reduce the chance of Masq. Skill. Can someone guide me how to?

 

 

case SC_ENERVATION:		case SC_GROOMY:		case SC_IGNORANCE:		case SC_LAZINESS:		case SC_UNLUCKY:		case SC_WEAKNESS:			if( !(tsc && tsc->data[type]) ) {				int joblvbonus = 0;				int rate = 0;				if (is_boss(bl)) break;				joblvbonus = ( sd ? sd->status.job_level : 50 );				//First we set the success chance based on the caster's build which increases the chance.				rate = 10 * skill_lv + rnd_value( sstatus->dex / 12, sstatus->dex / 4 ) + joblvbonus + status->get_lv(src) / 10;				// We then reduce the success chance based on the target's build.				rate -= rnd_value( tstatus->agi / 6, tstatus->agi / 3 ) - tstatus->luk / 10 - ( dstsd ? (dstsd->max_weight / 10 - dstsd->weight / 10 ) / 100 : 0 ) - status->get_lv(bl) / 10;				//Finally we set the minimum success chance cap based on the caster's skill level and DEX.				rate = cap_value( rate, skill_lv + sstatus->dex / 20, 100);				clif->skill_nodamage(src,bl,skill_id,0,sc_start(src,bl,type,rate,skill_lv,skill->get_time(skill_id,skill_lv)));				if ( tsc && tsc->data[SC__IGNORANCE] && skill_id == SC_IGNORANCE) {					//If the target was successfully inflected with the Ignorance status, drain some of the targets SP.					int sp = 100 * skill_lv;					if( dstmd ) sp = dstmd->level * 2;					if( status_zap(bl,0,sp) )						status->heal(src,0,sp/2,3);//What does flag 3 do? [Rytech]				}				if ( tsc && tsc->data[SC__UNLUCKY] && skill_id == SC_UNLUCKY) {					//If the target was successfully inflected with the Unlucky status, give 1 of 3 random status's.					switch(rnd()%3) {//Targets in the Unlucky status will be affected by one of the 3 random status's reguardless of resistance.						case 0:							status->change_start(src,bl,SC_POISON,10000,skill_lv,0,0,0,skill->get_time(skill_id,skill_lv),10);							break;						case 1:							status->change_start(src,bl,SC_SILENCE,10000,skill_lv,0,0,0,skill->get_time(skill_id,skill_lv),10);							break;						case 2:							status->change_start(src,bl,SC_BLIND,10000,skill_lv,0,0,0,skill->get_time(skill_id,skill_lv),10);						}				}			} else if( sd )				clif->skill_fail(sd, skill_id, USESKILL_FAIL_LEVEL, 0);			break;

 

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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