Updated AMS marker feats. Removed arcane & divine marker feats. Updated Dread Necromancer for epic progression. Updated weapon baseitem models. Updated new weapons for crafting & npc equip. Updated prefix. Updated release archive.
		
			
				
	
	
		
			91 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			91 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| //::///////////////////////////////////////////////
 | |
| //:: Freedom of Movement
 | |
| //:: NW_S0_FreeMove.nss
 | |
| //:: Copyright (c) 2001 Bioware Corp.
 | |
| //:://////////////////////////////////////////////
 | |
| /*
 | |
|     The target creature gains immunity to the
 | |
|     Entangle, Slow and Paralysis effects
 | |
| */
 | |
| //:://////////////////////////////////////////////
 | |
| //:: Created By: Preston Watamaniuk
 | |
| //:: Created On: Oct 29, 2001
 | |
| //:://////////////////////////////////////////////
 | |
| //:: VFX Pass By: Preston W, On: June 21, 2001
 | |
| 
 | |
| 
 | |
| //:: modified by mr_bumpkin Dec 4, 2003 for PRC stuff
 | |
| #include "prc_inc_spells"
 | |
| 
 | |
| 
 | |
| 
 | |
| void main()
 | |
| {
 | |
| DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
 | |
| SetLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR", SPELL_SCHOOL_ABJURATION);
 | |
| 
 | |
| /*
 | |
|   Spellcast Hook Code
 | |
|   Added 2003-06-23 by GeorgZ
 | |
|   If you want to make changes to all spells,
 | |
|   check x2_inc_spellhook.nss to find out more
 | |
| 
 | |
| */
 | |
| 
 | |
|     if (!X2PreSpellCastCode())
 | |
|     {
 | |
|     // If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell
 | |
|         return;
 | |
|     }
 | |
| 
 | |
| // End of Spell Cast Hook
 | |
| 
 | |
| 
 | |
|     //Declare major variables
 | |
|     object oTarget = PRCGetSpellTargetObject();
 | |
|     int nMetaMagic = PRCGetMetaMagicFeat();
 | |
|     int CasterLvl = PRCGetCasterLevel(OBJECT_SELF);
 | |
|     int nDuration = CasterLvl;
 | |
|     effect eParal = EffectImmunity(IMMUNITY_TYPE_PARALYSIS);
 | |
|     effect eEntangle = EffectImmunity(IMMUNITY_TYPE_ENTANGLE);
 | |
|     effect eSlow = EffectImmunity(IMMUNITY_TYPE_SLOW);
 | |
|     effect eMove = EffectImmunity(IMMUNITY_TYPE_MOVEMENT_SPEED_DECREASE);
 | |
|     effect eVis = EffectVisualEffect(VFX_DUR_FREEDOM_OF_MOVEMENT);
 | |
|     effect eDur = EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE);
 | |
| 
 | |
|     //Link effects
 | |
|     effect eLink = EffectLinkEffects(eParal, eEntangle);
 | |
|     eLink = EffectLinkEffects(eLink, eSlow);
 | |
|     eLink = EffectLinkEffects(eLink, eVis);
 | |
|     eLink = EffectLinkEffects(eLink, eDur);
 | |
|     eLink = EffectLinkEffects(eLink, eMove);
 | |
| 
 | |
|     //Fire cast spell at event for the specified target
 | |
|     SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, SPELL_FREEDOM_OF_MOVEMENT, FALSE));
 | |
| 
 | |
|     //Search for and remove the above negative effects
 | |
|     effect eLook = GetFirstEffect(oTarget);
 | |
|     while(GetIsEffectValid(eLook))
 | |
|     {
 | |
|         if(GetEffectType(eLook) == EFFECT_TYPE_PARALYZE ||
 | |
|             GetEffectType(eLook) == EFFECT_TYPE_ENTANGLE ||
 | |
|             GetEffectType(eLook) == EFFECT_TYPE_SLOW ||
 | |
|             GetEffectType(eLook) == EFFECT_TYPE_MOVEMENT_SPEED_DECREASE)
 | |
|         {
 | |
|             RemoveEffect(oTarget, eLook);
 | |
|         }
 | |
|         eLook = GetNextEffect(oTarget);
 | |
|     }
 | |
|     //Meta-Magic Checks
 | |
|     if(nMetaMagic & METAMAGIC_EXTEND)
 | |
|     {
 | |
|         nDuration *= 2;
 | |
|     }
 | |
|     //Apply Linked Effect
 | |
|     SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, TurnsToSeconds(nDuration),TRUE,-1,CasterLvl);
 | |
| 
 | |
| DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
 | |
| // Getting rid of the local integer storing the spellschool name
 | |
| }
 | |
| 
 |