Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 09-20-2012, 10:50 PM
Irreverent
The Solo Server
 
Join Date: May 2007
Posts: 416
Default Warriors/Zerkers cripping too much(almost always)

Something in the code, I think, is causing the zerks/warriors to crip most if not all of the time.

I have looked at the rules, but any zerks/warriors with cleave5 and AAs seem to be doing it too much.

But, regardless of rules...warriors/zerks shouldn't be able to do crips unless under 30% health right?(or aa)
__________________
OP of Irreverent Server (The Solo Server)
Our Forums
Reply With Quote
  #2  
Old 09-20-2012, 10:53 PM
Irreverent
The Solo Server
 
Join Date: May 2007
Posts: 416
Default

also of note, any class with high enough cleave can land crips at anytime.
__________________
OP of Irreverent Server (The Solo Server)
Our Forums
Reply With Quote
  #3  
Old 09-21-2012, 01:33 AM
Kayen
Developer
 
Join Date: Mar 2009
Location: -
Posts: 228
Default

I fixed up this code not to long ago when revising critical hit function so I will explain how it works.

- Under 30% for warriors and berserker critical hits are automatically converted to crippling blows.

- If you have any +CripplingBlowChance modifiers item/spell/aa, you are given an innate chance to crippling blow from critical hits.

The percent value of the effect is applied to the your Chance to Critical. (ie You have 10% chance to critical and you have a 200% Chance to Critical Blow effect, therefore you have a 20% Chance to Critical Blow from a critical hit.

This has been implemented for a while now, if there was really a problem it would have shown up on PEQ.

However, the one problem I do see is for some reason it appears to be doubling your crippling blow chance from mods. So if you must have some custom effects with relatively higher crippling blow chance, and high critical hit chance then you would be seeing a lot of cripples.

Code:
sint16 Mob::GetCrippBlowChance()
{
	int crip_chance = 0;

	crip_chance += this->itembonuses.CrippBlowChance + this->spellbonuses.CrippBlowChance + 
					this->itembonuses.CrippBlowChance + this->spellbonuses.CrippBlowChance;
	
	if(IsClient())
		crip_chance += this->aabonuses.CrippBlowChance + this->aabonuses.CrippBlowChance;
					
	if(crip_chance < 0)
		crip_chance = 0;

	return crip_chance;
}
Anyways that is the story. Find out what crippling blow mod your character has and that might help solve why its so high.
Reply With Quote
  #4  
Old 09-21-2012, 08:03 AM
Irreverent
The Solo Server
 
Join Date: May 2007
Posts: 416
Default

This actually appeared last weekend with the update/patch to all of the AAs and the way they work. So I'm guessing it was a change to the AA system.

If no one else it getting the issue, the obviously its something I did or didn't do. I do use the CVS for the DB, so it clears/reloads the AAs so I would assume it would of been fine.

But its not.

Any hints on where to start?
__________________
OP of Irreverent Server (The Solo Server)
Our Forums
Reply With Quote
  #5  
Old 09-21-2012, 08:15 AM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

I would add some logging in the Mob::TryCriticalHit function so you can see what the numbers look like and go from there. There are some rules that affect the chance as well as the different bonuses. If you logged them out you could see which seem out of whack.
Reply With Quote
  #6  
Old 09-21-2012, 08:54 AM
Kayen
Developer
 
Join Date: Mar 2009
Location: -
Posts: 228
Default

There are actually no AA that use SE_CrippBlowChance in the dbase.

I would check your aa_effects table, see if there are any entries that use effectid 171.

Otherwise the only way your players are getting this is via a spell or item effect.

There are very few live spells with this, all are short duration discs.

Perhaps you have a custom one.
Reply With Quote
  #7  
Old 09-22-2012, 03:07 PM
Irreverent
The Solo Server
 
Join Date: May 2007
Posts: 416
Default

None have 171 as an effect id.

I also created a ranger, put to 70, basic weapons, and then added an item with cleave 5 and the ranger would even crippling blow.

no spells on, just aa's.

Perhaps for some reason cleave5 is adding to crit + crip chance? and not just crit?
__________________
OP of Irreverent Server (The Solo Server)
Our Forums
Reply With Quote
  #8  
Old 09-23-2012, 07:45 AM
Kayen
Developer
 
Join Date: Mar 2009
Location: -
Posts: 228
Default

Found the issue.

Was basically just a syntax issue missing a break statement in the bonus code, causing crippling blow bonus to get a value even if you had no crippling blow bonus. Committing the solution.

Sorry for sending you on a wild goose chase, just didn't have time to properly check this myself.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:05 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3