35 lines
785 B
Plaintext
35 lines
785 B
Plaintext
#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));
|
|
}
|
|
|
|
|
|
|