#include "spawner" #include "prc_x2_itemprop" void Speedup(object oItem) { int oDamage; itemproperty ipAdd; ipAdd = ItemPropertyHaste(); IPSafeAddItemProperty(oItem, ipAdd); } void HasteImbue () { object oTarget; object oItem; int oDamage; SetLocked(OBJECT_SELF, TRUE); oItem = GetFirstItemInInventory(OBJECT_SELF); while(GetIsObjectValid(oItem)) { if (GetTag(oItem)=="pearl") {DestroyObject(oItem);} oItem = GetNextItemInInventory(OBJECT_SELF); } CastPC(0.0,SPELL_SHAPECHANGE, OBJECT_SELF); PCEffect(1.0,VFX_IMP_HASTE, OBJECT_SELF); PCEffect(1.5,VFX_IMP_SUPER_HEROISM, OBJECT_SELF); PCEffect(2.0,VFX_DUR_CESSATE_POSITIVE, OBJECT_SELF); DelayCommand(1.0, Speedup(GetFirstItemInInventory(OBJECT_SELF))); DelayCommand(3.0, SetLocked(OBJECT_SELF, FALSE)); } //void main (){}