void main() { object oPC = GetLastUsedBy(); if(GetFirstItemInInventory(OBJECT_SELF) == GetObjectByTag("px_marsh_gem")) { } else { AssignCommand(GetObjectByTag("px_stonedoor_tmpl"),ActionCloseDoor(GetObjectByTag("px_stonedoor_tmpl"))); SetLocked(GetObjectByTag("px_stonedoor_tmpl"),TRUE); ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_FNF_SCREEN_SHAKE),OBJECT_SELF); ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_COM_HIT_NEGATIVE),OBJECT_SELF); ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_FNF_IMPLOSION),OBJECT_SELF); SpeakString("Who dares disturb MY rest?! You shall suffer in the name of the scribe of the damned for this offense!"); CreateObject(OBJECT_TYPE_CREATURE,"px_marsh_boss",GetLocation(OBJECT_SELF),FALSE); //SetLocalInt(oPC,"BossSpawned",1); DestroyObject(OBJECT_SELF); } }