//:://///////////////////////////////////////////// //:: 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 //::////////////////////////////////////////////// //:: modified by mr_bumpkin Dec 15, 2003 for PRC stuff #include "prc_inc_spells" void main() { DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR"); SetLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR", SPELL_SCHOOL_NECROMANCY); /* 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); effect eSummon; //Summon the appropriate creature based on the summoner level //Warrior Mummy eSummon = EffectSummonCreature("X2_S_MUMMYWARR",496,1.0f); eSummon = ExtraordinaryEffect(eSummon); //Apply the summon visual and summon the undead. //ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eVis, PRCGetSpellTargetLocation()); MultisummonPreSummon(); ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eSummon, PRCGetSpellTargetLocation(), HoursToSeconds(nDuration)); DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR"); // Getting rid of the local integer storing the spellschool name }