forked from Jaysyn/PRC8
Updated Release Archive. Fixed Mage-killer prereqs. Removed old LETO & ConvoCC related files. Added organized spell scroll store. Fixed Gloura spellbook. Various TLK fixes. Reorganized Repo. Removed invalid user folders. Added DocGen back in.
27 lines
913 B
Plaintext
27 lines
913 B
Plaintext
//:://////////////////////////////////////////////
|
|
/*
|
|
Summons the demon for the player
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Oni5115
|
|
//:://////////////////////////////////////////////
|
|
|
|
#include "prc_alterations"
|
|
#include "x2_inc_spellhook"
|
|
#include "inc_utility"
|
|
|
|
void main()
|
|
{
|
|
float fDelay = 3.0;
|
|
int nLevel = GetLevelByClass(CLASS_TYPE_THRALL_OF_GRAZZT_A, OBJECT_SELF) + GetLevelByClass(CLASS_TYPE_THRALL_OF_GRAZZT_D, OBJECT_SELF);
|
|
int nDuration = PRCGetCasterLevel(OBJECT_SELF);
|
|
|
|
effect eSummon = EffectSummonCreature("TOG_SUCCUBUS",VFX_FNF_SUMMON_GATE, fDelay);
|
|
|
|
float fDuration = HoursToSeconds(24);
|
|
if(GetPRCSwitch(PRC_SUMMON_ROUND_PER_LEVEL))
|
|
fDuration = RoundsToSeconds(nDuration*GetPRCSwitch(PRC_SUMMON_ROUND_PER_LEVEL));
|
|
|
|
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eSummon, PRCGetSpellTargetLocation(), fDuration);
|
|
}
|