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.
		
			
				
	
	
		
			57 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| //::///////////////////////////////////////////////
 | |
| //:: Vine Mind, Hamper Movement: On Exit
 | |
| //:: X2_S0_VineMHmpB
 | |
| //:: Copyright (c) 2001 Bioware Corp.
 | |
| //:://////////////////////////////////////////////
 | |
| /*
 | |
|     Creatures entering the zone of Vine Mind, Hamper
 | |
|     Movement have their movement reduced by 1/2.
 | |
| */
 | |
| //:://////////////////////////////////////////////
 | |
| //:: Created By: Andrew Nobbs
 | |
| //:: Created On: Nov 25, 2002
 | |
| //:://////////////////////////////////////////////
 | |
| 
 | |
| //:: altered by mr_bumpkin Dec 4, 2003 for prc stuff
 | |
| #include "prc_inc_spells"
 | |
| #include "prc_alterations"
 | |
| #include "prc_add_spell_dc"
 | |
| 
 | |
| void main()
 | |
| {
 | |
| DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
 | |
| SetLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR", SPELL_SCHOOL_CONJURATION);
 | |
| 
 | |
|     //Declare major variables
 | |
|     //Get the object that is exiting the AOE
 | |
|     object oTarget = GetExitingObject();
 | |
|     //int bValid = FALSE; - x bug-fix
 | |
|     effect eAOE;
 | |
|     if(GetHasSpellEffect(SPELL_VINE_MINE_HAMPER_MOVEMENT, oTarget))
 | |
|     {
 | |
|         //Search through the valid effects on the target.
 | |
|         eAOE = GetFirstEffect(oTarget);
 | |
|         while (GetIsEffectValid(eAOE))// && bValid == FALSE)
 | |
|         {
 | |
|             if (GetEffectCreator(eAOE) == GetAreaOfEffectCreator())
 | |
|             {
 | |
|                 if(GetEffectType(eAOE) == EFFECT_TYPE_MOVEMENT_SPEED_DECREASE)
 | |
|                 {
 | |
|                     //If the effect was created by the Acid_Fog then remove it
 | |
|                     if(GetEffectSpellId(eAOE) == SPELL_VINE_MINE_HAMPER_MOVEMENT)
 | |
|                     {
 | |
|                         RemoveEffect(oTarget, eAOE);
 | |
|                         //bValid = TRUE;
 | |
|                     }
 | |
|                 }
 | |
|             }
 | |
|             //Get next effect on the target
 | |
|             eAOE = GetNextEffect(oTarget);
 | |
|         }
 | |
|     }
 | |
| 
 | |
| 
 | |
| DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
 | |
| // Erasing the variable used to store the spell's spell school
 | |
| }
 |