Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 10-05-2009, 04:06 PM
nilbog
Hill Giant
 
Join Date: Nov 2007
Posts: 198
Default

All the credit for this comes from Ladoth, from project 1999, not myself :o
Here is how we have it set up. Still more work to be done when we hit kunark.. because there are full duration invisibilities, but I hope this helps you out!


around line 100 in spdat.cpp

Code:
///////////////////////////////////////////////////////////////////////////////
// spell property testing functions

// @LADOTH 07182009 Is invis type spell
bool IsInvisibilitySpell(int16 spell_id)
{
	bool bResult = false;

	if( IsValidSpell(spell_id) && 
		(IsEffectInSpell(spell_id, SE_Invisibility) ||
		 IsEffectInSpell(spell_id, SE_Invisibility2) ||
		 IsEffectInSpell(spell_id, SE_InvisVsAnimals) ||
		 IsEffectInSpell(spell_id, SE_InvisVsUndead) ||
		 IsEffectInSpell(spell_id, SE_InvisVsUndead2))
		 )
	{
		bResult = true;
	}

	return bResult;
}
around line 610 of spdat.h

Code:
#endif
// @LADOTH 07182009 Is invis type spell
bool IsInvisibilitySpell(int16 spell_id);
bool IsTargetableAESpell(int16 spell_id);
around line 500 in spell_effects.cpp

Code:
#ifdef SPELL_EFFECT_SPAM
				snprintf(effect_desc, _EDLEN, "Invisibility");
#endif
				// solar: TODO already invis message and spell kill from SpellOnTarget
				SetInvisible(true);
				// @LADOTH 07252009 randomize time remaining for invis type spell
				float randscale = MakeRandomInt(1, 100) / 100.0f;
				buffs[buffslot].ticsremaining *= randscale;
around line 520 in spell_effects.cpp

Code:
#ifdef SPELL_EFFECT_SPAM
				snprintf(effect_desc, _EDLEN, "Invisibility to Animals");
#endif

				// @LADOTH 07252009 randomize time remaining for invis type spell
				float randscale = MakeRandomInt(1, 100) / 100.0f;
				buffs[buffslot].ticsremaining *= randscale;
around line 540 in spell_effects.cpp

Code:
#ifdef SPELL_EFFECT_SPAM
				snprintf(effect_desc, _EDLEN, "Invisibility to Undead");
#endif
				// @LADOTH 07252009 randomize time remaining for invis type spell
				float randscale = MakeRandomInt(1, 100) / 100.0f;
				buffs[buffslot].ticsremaining *= randscale;
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 12:28 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