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

47 lines
1.3 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Mummy Dust
//:: X2_S2_MumDust
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Summons a strong warrior mummy for you to
command.
*/
//:://////////////////////////////////////////////
//:: Created By: Andrew Nobbs
//:: Created On: Feb 07, 2003
//:://////////////////////////////////////////////
#include "inc_multisummon"
#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
int nDuration = 24;
//effect eVis = EffectVisualEffect(VFX_FNF_SUMMON_UNDEAD);
//Summon the appropriate creature based on the summoner level
//Warrior Mummy
string sSummon = "X2_S_MUMMYWARR";
int nFNF_Effect = 496;
//Apply the summon visual and summon the undead.
PrimoEffectSummonCreature(sSummon, nFNF_Effect,
GetSpellTargetLocation(), DURATION_TYPE_TEMPORARY, HoursToSeconds(nDuration), 1.0);
}