// OnEnter - Mage Guild only void main() { object oPC=GetEnteringObject(); object oMod=GetModule(); object oShout=GetNearestObjectByTag("Lamar"); int nMember=GetLocalInt(oPC,"nMGMember"); if (oShout==OBJECT_INVALID) oShout=GetNearestObjectByTag("EXPELLER"); if (nMember<1) { // not a member SetLocalInt(oMod,"nMGDefend",1); // Activate Sentinels if (oShout!=OBJECT_INVALID) { // shout warning AssignCommand(oShout,SpeakString("STOP! Only mage guild members are allowed that way! If you cross the light curtain you will be attacked!")); PlayVoiceChat(VOICE_CHAT_STOP,oShout); } // shout warning } // not a member }