Added "removed" folder
This commit is contained in:
74
_removed/x2_s2_dragknght.nss
Normal file
74
_removed/x2_s2_dragknght.nss
Normal file
@@ -0,0 +1,74 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: 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 "70_inc_spells"
|
||||
#include "x2_inc_toollib"
|
||||
#include "x2_inc_spellhook"
|
||||
|
||||
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
|
||||
spellsDeclareMajorVariables();
|
||||
effect eVis = EffectVisualEffect(460);
|
||||
|
||||
if (GetCasterLevel(OBJECT_SELF) >= 40)
|
||||
{
|
||||
int nDuration = 10;
|
||||
SetLocalString(OBJECT_SELF, "summoned_dragon", "na_s_epicdk");
|
||||
effect eSummon = EffectSummonCreature(GetLocalString(OBJECT_SELF, "summoned_dragon"),481,0.0,TRUE);
|
||||
|
||||
// * make it so dragon cannot be dispelled
|
||||
eSummon = ExtraordinaryEffect(eSummon);
|
||||
//Apply the summon visual and summon the dragon.
|
||||
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eSummon, spell.Loc, RoundsToSeconds(nDuration));
|
||||
DelayCommand(1.0,ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eVis, spell.Loc));
|
||||
}
|
||||
else if (GetCasterLevel(OBJECT_SELF) >= 31)
|
||||
{
|
||||
int nDuration = 20;
|
||||
SetLocalString(OBJECT_SELF, "summoned_dragon", "na_s_dkadult");
|
||||
effect eSummon = EffectSummonCreature(GetLocalString(OBJECT_SELF, "summoned_dragon"),481,0.0,TRUE);
|
||||
|
||||
// * make it so dragon cannot be dispelled
|
||||
eSummon = ExtraordinaryEffect(eSummon);
|
||||
//Apply the summon visual and summon the dragon.
|
||||
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eSummon, spell.Loc, RoundsToSeconds(nDuration));
|
||||
DelayCommand(1.0,ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eVis, spell.Loc));
|
||||
}
|
||||
else
|
||||
{
|
||||
int nDuration = 20;
|
||||
SetLocalString(OBJECT_SELF, "summoned_dragon", "na_s_dkyoung");
|
||||
effect eSummon = EffectSummonCreature(GetLocalString(OBJECT_SELF, "summoned_dragon"),481,0.0,TRUE);
|
||||
|
||||
// * make it so dragon cannot be dispelled
|
||||
eSummon = ExtraordinaryEffect(eSummon);
|
||||
//Apply the summon visual and summon the dragon.
|
||||
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eSummon, spell.Loc, RoundsToSeconds(nDuration));
|
||||
DelayCommand(1.0,ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eVis, spell.Loc));
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user