Initial Upload
Initial Upload
This commit is contained in:
19
_module/nss/aa_wild_magic.nss
Normal file
19
_module/nss/aa_wild_magic.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
#include "x2_inc_switches"
|
||||
#include "prc_inc_spells"
|
||||
void main()
|
||||
{
|
||||
int nSpell = GetSpellId();
|
||||
object oItem = PRCGetSpellCastItem();
|
||||
|
||||
if(GetBaseItemType(oItem) == BASE_ITEM_POTIONS) return;
|
||||
|
||||
if(nSpell == SPELL_RESURRECTION || nSpell == SPELL_RAISE_DEAD) return;
|
||||
|
||||
int nRand = Random(100);
|
||||
if(nRand <= 50)
|
||||
{
|
||||
FloatingTextStrRefOnCreature(84829, OBJECT_SELF);
|
||||
ExecuteScript("aa_rod_of_wonder", OBJECT_SELF);
|
||||
SetModuleOverrideSpellScriptFinished();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user