void main() { object oPC = GetLastOpenedBy(); if(!GetIsDM(oPC)) { effect eDeath = EffectDeath(TRUE); ApplyEffectToObject(DURATION_TYPE_INSTANT,eDeath,oPC); } }