generated from Jaysyn/ModuleTemplate
48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Dragon Knight
|
|
//:: X2_S2_DragKnght
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Summons an adult red dragon for you to
|
|
command.
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Andrew Nobbs
|
|
//:: Created On: Feb 07, 2003
|
|
//:://////////////////////////////////////////////
|
|
#include "x2_inc_toollib"
|
|
|
|
#include "x2_inc_spellhook"
|
|
#include "inc_multisummon"
|
|
void main()
|
|
{
|
|
|
|
/*
|
|
Spellcast Hook Code
|
|
Added 2003-06-20 by Georg
|
|
If you want to make changes to all spells,
|
|
check x2_inc_spellhook.nss to find out more
|
|
*/
|
|
if (!X2PreSpellCastCode())
|
|
{
|
|
// If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell
|
|
return;
|
|
}
|
|
|
|
|
|
//Declare major variables
|
|
int nDuration = 20;
|
|
effect eVis = EffectVisualEffect(460);
|
|
string sSummon = "x2_s_drgred001";
|
|
int nFNF_Effect = 481;
|
|
|
|
// * make it so dragon cannot be dispelled
|
|
//Apply the summon visual and summon the dragon.
|
|
PrimoEffectSummonCreature(sSummon, nFNF_Effect,
|
|
GetSpellTargetLocation(), DURATION_TYPE_TEMPORARY, HoursToSeconds(nDuration));
|
|
DelayCommand(1.0f,ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eVis,GetSpellTargetLocation()));
|
|
}
|
|
|
|
|