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.
		
			
				
	
	
		
			99 lines
		
	
	
		
			3.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			99 lines
		
	
	
		
			3.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| //::///////////////////////////////////////////////
 | |
| //:: Hold Person
 | |
| //:: NW_S0_HoldPers
 | |
| //:: Copyright (c) 2001 Bioware Corp.
 | |
| //:://////////////////////////////////////////////
 | |
| /*
 | |
| //:: The target freezes in place, standing helpless.
 | |
| //:: He is aware and breathes normally but cannot take any physical
 | |
| //:: actions, even speech. He can, however, execute purely mental actions.
 | |
| //:: winged creature that is held cannot flap its wings and falls.
 | |
| //:: A swimmer can't swim and may drown.
 | |
| */
 | |
| //:://////////////////////////////////////////////
 | |
| //:: Created By: Keith Soleski
 | |
| //:: Created On: Jan 18, 2001
 | |
| //:://////////////////////////////////////////////
 | |
| //:: Last Updated By: Preston Watamaniuk, On: April 10, 2001
 | |
| //:: VFX Pass By: Preston W, On: June 20, 2001
 | |
| 
 | |
| //:: modified by mr_bumpkin Dec 4, 2003 for PRC stuff
 | |
| #include "prc_inc_spells"
 | |
| #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_ENCHANTMENT);
 | |
| /*
 | |
|   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 CasterLvl = PRCGetCasterLevel(OBJECT_SELF);
 | |
|     int nMeta = PRCGetMetaMagicFeat();
 | |
|     int nDuration = CasterLvl;
 | |
|     nDuration = PRCGetScaledDuration(nDuration, oTarget);
 | |
|     effect eParal = EffectParalyze();
 | |
|     effect eVis = EffectVisualEffect(82);
 | |
|     effect eDur = EffectVisualEffect(VFX_DUR_CESSATE_NEGATIVE);
 | |
|     effect eDur2 = EffectVisualEffect(VFX_DUR_PARALYZED);
 | |
|     effect eDur3 = EffectVisualEffect(VFX_DUR_PARALYZE_HOLD);
 | |
| 
 | |
|     effect eLink = EffectLinkEffects(eDur2, eDur);
 | |
|     eLink = EffectLinkEffects(eLink, eParal);
 | |
|     eLink = EffectLinkEffects(eLink, eVis);
 | |
|     eLink = EffectLinkEffects(eLink, eDur3);
 | |
| 
 | |
|     int nPenetr = CasterLvl +SPGetPenetr();
 | |
| 
 | |
|     if(!GetIsReactionTypeFriendly(oTarget))
 | |
|     {
 | |
|         //Fire cast spell at event for the specified target
 | |
|         SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, SPELL_HOLD_PERSON));
 | |
|         //Make sure the target is a humanoid
 | |
|         if (GetIsPlayableRacialType(oTarget) ||
 | |
|             MyPRCGetRacialType(oTarget) == RACIAL_TYPE_HUMANOID_GOBLINOID ||
 | |
|             MyPRCGetRacialType(oTarget) == RACIAL_TYPE_HUMANOID_MONSTROUS ||
 | |
|             MyPRCGetRacialType(oTarget) == RACIAL_TYPE_HUMANOID_ORC ||
 | |
|             MyPRCGetRacialType(oTarget) == RACIAL_TYPE_HUMANOID_REPTILIAN)
 | |
|         {
 | |
|             //Make SR Check
 | |
|             if (!PRCDoResistSpell(OBJECT_SELF, oTarget,nPenetr))
 | |
|             {
 | |
|                 //Make Will save
 | |
|                 if (!/*Will Save*/ PRCMySavingThrow(SAVING_THROW_WILL, oTarget, (PRCGetSaveDC(oTarget,OBJECT_SELF))))
 | |
|                 {
 | |
|                     //Make metamagic extend check
 | |
|                     if (nMeta == METAMAGIC_EXTEND)
 | |
|                     {
 | |
|                         nDuration = nDuration * 2;
 | |
|                     }
 | |
|                     //Apply paralyze effect and VFX impact
 | |
|                     SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, RoundsToSeconds(nDuration),TRUE,-1,CasterLvl);
 | |
|                 }
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| 
 | |
| DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
 | |
| // Getting rid of the local integer storing the spellschool name
 | |
| }
 |