void main() { object oPC = GetEnteringObject(); object oKey = GetItemPossessedBy(oPC, "nk_fp_keygold"); if (GetIsObjectValid(oKey)) { object oBrain = GetNearestObjectByTag("nk_fp_brain", OBJECT_SELF, 1); SetLocalInt(oBrain, "GOLD", 1); ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_BREACH), oPC); SignalEvent(oBrain, EventUserDefined(1001)); } }