Initial commit

Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
Jaysyn904
2024-01-04 07:49:38 -05:00
parent df18cd54c8
commit 28cdb617b3
12943 changed files with 9727121 additions and 0 deletions

70
_removed/x2_s0_dtharm.nss Normal file
View 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
// ANPH: Deals negative damage instead of magic, +10 max instead of +5
#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_1d4, DAMAGE_TYPE_NEGATIVE);
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));
}