Added Dev files / hak
Added hakbuilder program. Added Dev files / hak. Added some notes.
This commit is contained in:
55
_haks/poa_dev/x0_s2_shadsum.nss
Normal file
55
_haks/poa_dev/x0_s2_shadsum.nss
Normal file
@@ -0,0 +1,55 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Summon Shadow
|
||||
//:: X0_S2_ShadSum.nss
|
||||
//:: Copyright (c) 2002 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
PRESTIGE CLASS VERSION
|
||||
Spell powerful ally from the shadow plane to
|
||||
battle for the wizard
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Preston Watamaniuk
|
||||
//:: Created On: Oct 26, 2001
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
//Declare major variables
|
||||
int nMetaMagic = GetMetaMagicFeat();
|
||||
int nCasterLevel = GetLevelByClass(27);
|
||||
int nDuration = nCasterLevel;
|
||||
effect eSummon;
|
||||
|
||||
|
||||
|
||||
//Set the summoned undead to the appropriate template based on the caster level
|
||||
if (nCasterLevel <= 5)
|
||||
{
|
||||
eSummon = EffectSummonCreature("shadow01",VFX_FNF_SUMMON_UNDEAD);
|
||||
}
|
||||
else if (nCasterLevel <= 8)
|
||||
{
|
||||
eSummon = EffectSummonCreature("shadhound01",VFX_FNF_SUMMON_UNDEAD);
|
||||
}
|
||||
else if (nCasterLevel <=10)
|
||||
{
|
||||
eSummon = EffectSummonCreature("shadlord01",VFX_FNF_SUMMON_UNDEAD);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (GetHasFeat(1002,OBJECT_SELF))// has epic shadowlord feat
|
||||
{
|
||||
//GZ 2003-07-24: Epic shadow lord
|
||||
eSummon = EffectSummonCreature("shadlord02",VFX_FNF_SUMMON_UNDEAD);
|
||||
}
|
||||
else
|
||||
{
|
||||
eSummon = EffectSummonCreature("shadlord01",VFX_FNF_SUMMON_UNDEAD);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//Apply VFX impact and summon effect
|
||||
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eSummon, GetSpellTargetLocation(), HoursToSeconds(nDuration));
|
||||
}
|
Reference in New Issue
Block a user