50 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			1.3 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
 | 
						|
//:://////////////////////////////////////////////
 | 
						|
void main()
 | 
						|
{
 | 
						|
    int nLevel = GetLevelByClass(CLASS_TYPE_BLACKGUARD, OBJECT_SELF);
 | 
						|
    effect eSummon;
 | 
						|
    float fDelay = 3.0;
 | 
						|
    int nDuration = nLevel;
 | 
						|
 | 
						|
    if (nLevel < 9)
 | 
						|
    {
 | 
						|
        eSummon = EffectSummonCreature("NW_S_SUCCUBUS",VFX_FNF_SUMMON_GATE, fDelay);
 | 
						|
    }
 | 
						|
    else if (nLevel < 15 )
 | 
						|
    {
 | 
						|
        eSummon = EffectSummonCreature("NW_S_VROCK2", VFX_FNF_SUMMON_GATE, fDelay);
 | 
						|
    }
 | 
						|
    else
 | 
						|
    {
 | 
						|
       if (GetHasFeat(1003,OBJECT_SELF)) // epic fiend feat
 | 
						|
       {
 | 
						|
           eSummon = EffectSummonCreature("x2_s_vrock2", VFX_FNF_SUMMON_GATE, fDelay);
 | 
						|
       }
 | 
						|
       else
 | 
						|
       {
 | 
						|
        eSummon = EffectSummonCreature("NW_S_VROCK2", VFX_FNF_SUMMON_GATE, fDelay);
 | 
						|
       }
 | 
						|
    }
 | 
						|
 | 
						|
    ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eSummon, GetSpellTargetLocation(), HoursToSeconds(nDuration));
 | 
						|
 | 
						|
}
 |