generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
34
_module/nss/aven_imbue.nss
Normal file
34
_module/nss/aven_imbue.nss
Normal file
@@ -0,0 +1,34 @@
|
||||
#include "spawner"
|
||||
#include "prc_x2_itemprop"
|
||||
|
||||
void Holy (object oItem)
|
||||
{
|
||||
itemproperty ipAdd;
|
||||
SetLocalInt(oItem, "holyA_done", 1);
|
||||
ipAdd = ItemPropertyHolyAvenger();
|
||||
IPSafeAddItemProperty(oItem, ipAdd);
|
||||
}
|
||||
void main ()
|
||||
{
|
||||
object oTarget;
|
||||
object oItem;
|
||||
|
||||
int oDamage;
|
||||
SetLocked(OBJECT_SELF, TRUE);
|
||||
oItem = GetFirstItemInInventory(OBJECT_SELF);
|
||||
while(GetIsObjectValid(oItem))
|
||||
{
|
||||
if (GetTag(oItem)=="coin1")
|
||||
{DestroyObject(oItem);}
|
||||
oItem = GetNextItemInInventory(OBJECT_SELF);
|
||||
}
|
||||
CastPC(0.0,SPELL_SHAPECHANGE, OBJECT_SELF);
|
||||
PCEffect(0.5,VFX_FNF_WAIL_O_BANSHEES, OBJECT_SELF);
|
||||
PCEffect(1.0,VFX_IMP_AURA_HOLY, OBJECT_SELF);
|
||||
PCEffect(3.0,VFX_IMP_PULSE_HOLY, OBJECT_SELF);
|
||||
DelayCommand(1.0, Holy(GetFirstItemInInventory(OBJECT_SELF)));
|
||||
DelayCommand(3.0, SetLocked(OBJECT_SELF, FALSE));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user