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

64 lines
1.7 KiB
Plaintext

//::///////////////////////////////////////////////
//:: x0_s2_fiend
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Summons the 'fiendish' servant for the player.
This is a modified version of Planar Binding
At Level 5 the Blackguard gets a Succubus
At Level 9 the Blackguard will get a Vrock
Will remain for one hour per level of blackguard
*/
//:://////////////////////////////////////////////
//:: Created By: Brent
//:: Created On: April 2003
//:://////////////////////////////////////////////
#include "inc_multisummon"
void main()
{
int nLevel = GetLevelByClass(CLASS_TYPE_BLACKGUARD, OBJECT_SELF);
string eSummon;
float fDelay = 3.0;
int nDuration = nLevel;
if(nDuration < SUMMON_DURATION_MIN)
nDuration = SUMMON_DURATION_MIN;
if (nLevel <= 9)
{
eSummon = "NW_S_SUCCUBUS";
}
else if (nLevel <= 10)
{
eSummon = "NW_S_VROCK";
}
else if (nLevel < 15 )
{
eSummon = "NW_S_VROCK";
}
else
{
if (GetHasFeat(1003,OBJECT_SELF)) // epic fiend feat
{
eSummon = "x2_s_vrock";
}
else
{
eSummon = "NW_S_VROCK";
}
}
int nFNF_Effect = VFX_FNF_SUMMON_GATE;
float fSummonDelay = 3.0;
if(GetLocalInt(GetModule(), "PnPSummonDuration")==FALSE)
PrimoEffectSummonCreature(eSummon, nFNF_Effect,
GetSpellTargetLocation(), DURATION_TYPE_TEMPORARY, HoursToSeconds(nDuration), fSummonDelay);
else
PrimoEffectSummonCreature(eSummon, nFNF_Effect,
GetSpellTargetLocation(), DURATION_TYPE_TEMPORARY, RoundsToSeconds(nDuration), fSummonDelay);
}