Files
HeroesStone_PRC8/_removed/x0_s2_blkdead.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

39 lines
1.2 KiB
Plaintext

//::///////////////////////////////////////////////
//:: x0_s2_blkdead
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Level 3 - 6: Summons Ghast
Level 7 - 10: Doom Knight
*/
//:://////////////////////////////////////////////
//:: Created By:
//:: Created On:
//:://////////////////////////////////////////////
#include "inc_multisummon"
void main()
{
int nLevel = GetLevelByClass(CLASS_TYPE_BLACKGUARD, OBJECT_SELF);
string sSummon;
float fDelay = 3.0;
int nDuration = nLevel;
if (nLevel >= 7)
sSummon = "NW_S_DOOMKGHT";
else
sSummon = "NW_S_GHAST";
if(nDuration < SUMMON_DURATION_MIN)
nDuration = SUMMON_DURATION_MIN;
if(GetLocalInt(GetModule(), "PnPSummonDuration")==FALSE)
nDuration = nLevel;
int nFNF_Effect = VFX_FNF_SUMMON_UNDEAD;
if(GetLocalInt(GetModule(), "PnPSummonDuration")==FALSE)
PrimoEffectSummonCreature(sSummon, nFNF_Effect,
GetSpellTargetLocation(), DURATION_TYPE_TEMPORARY, HoursToSeconds(nDuration));
else
PrimoEffectSummonCreature(sSummon, nFNF_Effect,
GetSpellTargetLocation(), DURATION_TYPE_TEMPORARY, RoundsToSeconds(nDuration));
}