void main() { object oPC = GetEnteringObject(); if(GetIsPC(oPC)){ int nCount = GetLocalInt(OBJECT_SELF,"nCount"); SetLocalInt(OBJECT_SELF,"nCount",nCount+1); } }