HoS_PRC8/_mod/_module/nss/oe_mageguild_onl.nss

19 lines
673 B
Plaintext
Raw Normal View History

2024-11-25 19:36:07 -05:00
// 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
}