generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
35
_module/nss/mass_imbue.nss
Normal file
35
_module/nss/mass_imbue.nss
Normal file
@@ -0,0 +1,35 @@
|
||||
#include "spawner"
|
||||
#include "prc_x2_itemprop"
|
||||
|
||||
void Mass (object oItem)
|
||||
{
|
||||
itemproperty ipAdd;
|
||||
ipAdd = ItemPropertyMassiveCritical(IP_CONST_DAMAGEBONUS_1d10);
|
||||
IPSafeAddItemProperty(oItem, ipAdd);
|
||||
}
|
||||
|
||||
|
||||
void main ()
|
||||
{
|
||||
object oTarget;
|
||||
object oItem;
|
||||
|
||||
int oDamage;
|
||||
SetLocked(OBJECT_SELF, TRUE);
|
||||
SetLocalInt(GetPCSpeaker(), "mcfire_ldb", 1);
|
||||
oItem = GetFirstItemInInventory(OBJECT_SELF);
|
||||
while(GetIsObjectValid(oItem))
|
||||
{
|
||||
if (GetTag(oItem)=="pearl")
|
||||
{DestroyObject(oItem);}
|
||||
oItem = GetNextItemInInventory(OBJECT_SELF);
|
||||
}
|
||||
oItem = GetFirstItemInInventory(OBJECT_SELF);
|
||||
CastPC(0.0,SPELL_SHAPECHANGE, OBJECT_SELF);
|
||||
PCEffect(1.0,VFX_IMP_EVIL_HELP, OBJECT_SELF);
|
||||
PCEffect(2.0,VFX_FNF_LOS_EVIL_30, OBJECT_SELF);
|
||||
DelayCommand(1.0, Mass(GetFirstItemInInventory(OBJECT_SELF)));
|
||||
DelayCommand(3.0, SetLocked(OBJECT_SELF, FALSE));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user