Added "Removed Files" folder
Added "Removed Files" folder in case we needed to review any of them.
This commit is contained in:
70
_module/_removed files/x2_s0_dtharm.nss
Normal file
70
_module/_removed files/x2_s0_dtharm.nss
Normal file
@@ -0,0 +1,70 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Death Armor
|
||||
//:: X2_S0_DthArm
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
You are surrounded with a magical aura that injures
|
||||
creatures that contact it. Any creature striking
|
||||
you with its body or handheld weapon takes 1d4 points
|
||||
of damage +1 point per 2 caster levels (maximum +5).
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Andrew Nobbs
|
||||
//:: Created On: Jan 6, 2003
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Last Updated By: Andrew Nobbs, 02/06/2003
|
||||
//:: 2003-07-07: Stacking Spell Pass, Georg Zoeller
|
||||
|
||||
#include "x2_inc_spellhook"
|
||||
#include "x0_i0_spells"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
/*
|
||||
Spellcast Hook Code
|
||||
Added 2003-07-07 by Georg Zoeller
|
||||
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
|
||||
object oTarget = GetSpellTargetObject();
|
||||
|
||||
int nDuration = GetCasterLevel(oTarget);
|
||||
int nCasterLvl = GetCasterLevel(oTarget)/2;
|
||||
if(nCasterLvl > 10)
|
||||
{
|
||||
nCasterLvl = 10;
|
||||
}
|
||||
int nMetaMagic = GetMetaMagicFeat();
|
||||
|
||||
effect eShield = EffectDamageShield(nCasterLvl, DAMAGE_BONUS_1d8, DAMAGE_TYPE_MAGICAL);
|
||||
effect eDur = EffectVisualEffect(463);
|
||||
|
||||
//Link effects
|
||||
effect eLink = EffectLinkEffects(eShield, eDur);
|
||||
|
||||
//Fire cast spell at event for the specified target
|
||||
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, GetSpellId(), FALSE));
|
||||
|
||||
//Enter Metamagic conditions
|
||||
if (nMetaMagic == METAMAGIC_EXTEND)
|
||||
{
|
||||
nDuration = nDuration *2; //Duration is +100%
|
||||
}
|
||||
|
||||
//Stacking Spellpass, 2003-07-07, Georg
|
||||
RemoveEffectsFromSpell(oTarget, GetSpellId());
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, RoundsToSeconds(nDuration));
|
||||
}
|
||||
|
Reference in New Issue
Block a user