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

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-13-2012, 06:38 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

Code:
uint32 GetPartialMeleeRuneAmount(uint32 spell_id)
{
	for(int i = 0; i < EFFECT_COUNT; ++i)
	{
		if(spells[spell_id].effectid[i] == SE_MitigateMeleeDamage)
		{
			return spells[spell_id].max[i];
		}
	}
	return 0;
}
The 3 minute guess. Can't fit 50k into a sint16 which is what max[i] is there. The return value is a uint32, and with sign extension the negative 16-bit value becomes a very large unsigned 32-bit value, somewhere around 4 billion.
Reply With Quote
 


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 01:34 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