Updated AMS marker feats

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.
This commit is contained in:
Jaysyn904
2024-02-11 14:01:05 -05:00
parent 618cd42b82
commit 6ec137a24e
24762 changed files with 1528530 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
//::///////////////////////////////////////////////
//:: Name Dragon Ward
//:: FileName inv_dragonward.nss
//::///////////////////////////////////////////////
/*
Greater Invocation
6th Level Spell
This invocation makes you resistant to the special
abilities of dragons. You become immune to fear,
and gain damage resistance 20 to any fire, acid,
sonic, electric, or cold damage dealt by breath
weapons. This invocation lasts 24 hours.
*/
//::///////////////////////////////////////////////
#include "inv_inc_invfunc"
#include "inv_invokehook"
void RemoveDragonWard(object oTarget, int CurrentDragonWard)
{
if(GetPersistantLocalInt(oTarget, "nTimesDragonWarded") != CurrentDragonWard)
return;
DeleteLocalInt(oTarget, "DragonWard");
}
void main()
{
if(!PreInvocationCastCode()) return;
//Declare major variables
object oCaster = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
int CasterLvl = GetInvokerLevel(oCaster, GetInvokingClass());
int nTimesDragonWarded = GetPersistantLocalInt(oTarget, "nTimesDragonWarded");
float fDuration = HoursToSeconds(24);
effect eImm1 = EffectImmunity(IMMUNITY_TYPE_FEAR);
effect eVis = EffectVisualEffect(VFX_DUR_MIND_AFFECTING_POSITIVE);
effect eDur = EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE);
effect eLink = EffectLinkEffects(eImm1, eVis);
eLink = EffectLinkEffects(eLink, eDur);
nTimesDragonWarded++;
if(nTimesDragonWarded > 9) nTimesDragonWarded = 0;
SetPersistantLocalInt(oTarget, "nTimesDragonWarded", nTimesDragonWarded);
SetLocalInt(oTarget, "DragonWard", TRUE);
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, fDuration, TRUE, -1, CasterLvl);
DelayCommand(fDuration, RemoveDragonWard(oTarget, nTimesDragonWarded));
}