generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
37
_module/nss/keen_imbue.nss
Normal file
37
_module/nss/keen_imbue.nss
Normal file
@@ -0,0 +1,37 @@
|
||||
#include "spawner"
|
||||
#include "prc_x2_itemprop"
|
||||
void Keen(object oItem)
|
||||
{
|
||||
int oDamage;
|
||||
itemproperty ipAdd;
|
||||
SetLocalInt(oItem, "keen_done", 1);
|
||||
ipAdd = ItemPropertyKeen();
|
||||
IPSafeAddItemProperty(oItem, ipAdd);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
void KeenImbue ()
|
||||
{
|
||||
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(1.0,VFX_FNF_SUMMON_EPIC_UNDEAD, OBJECT_SELF);
|
||||
PCEffect(1.5,VFX_DUR_STONEHOLD, OBJECT_SELF);
|
||||
PCEffect(2.0,VFX_IMP_SUPER_HEROISM, OBJECT_SELF);
|
||||
PCEffect(2.5,VFX_DUR_PROTECTION_EVIL_MAJOR, OBJECT_SELF);
|
||||
DelayCommand(1.0, Keen(GetFirstItemInInventory(OBJECT_SELF)));
|
||||
DelayCommand(3.0, SetLocked(OBJECT_SELF, FALSE));
|
||||
}
|
||||
//void main (){}
|
||||
Reference in New Issue
Block a user