Go Back   EQEmulator Home > EQEmulator Forums > Support > Spell Support

Spell Support Broken Spells? Want them Fixed? Request it here.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-28-2012, 08:51 PM
Hateborne
Hill Giant
 
Join Date: May 2010
Posts: 125
Default Massive Issues with WeaponProc now too :-(

My WeaponProc is calling all kinds of random effects. It is set to WeaponProc 10220 with 400 limit value (ppm?). It procs 10267 instead? I set it to 9836, 6667, or 6101...it procs spell 10221 (which has procs 10223, etc etc).

What have I done? :-(

-Hate
Reply With Quote
  #2  
Old 04-28-2012, 09:06 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

I assume you mean you're using SE_WeaponProc (85).

The way the proc to add is calculated can be seen here:
Code:
//for some stupid reason SK procs return theirs one base off...
uint16 Mob::GetProcID(uint16 spell_id, uint8 effect_index) {
	bool sk = false;
	bool other = false;
	for(int x = 0; x < 16; x++)
	{
		if(x == 4){
			if(spells[spell_id].classes[4] < 255)
				sk = true;
		}
		else{
			if(spells[spell_id].classes[x] < 255)
				other = true;
		}
	}
	
	if(sk && !other)
	{
		return(spells[spell_id].base[effect_index] + 1);
	}
	else{
		return(spells[spell_id].base[effect_index]);
	}
}
So, whichever effect slot the 85 is in it appears you want the proc spell id in the corresponding base slot, and if it's a SK only spell you want to subtract 1 from the value.

Not sure why it would add more than one proc or vary the number chosen though. Seems like something you would want to debug to see where it's going wrong.
Reply With Quote
  #3  
Old 04-29-2012, 02:27 PM
Hateborne
Hill Giant
 
Join Date: May 2010
Posts: 125
Thumbs up

You Sir...are my hero.

That was it. I have 3 ranks of the spell, and 3 ranks of the strike effect.

Each rank was proc'ing the next rank. The final rank was proc'ing a wizard spell.

Thank you again so much.

-Hate
Reply With Quote
Reply

Thread Tools
Display Modes

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 11:15 PM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3