Amon_PRC8/_module/nss/guild_armcheck.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

35 lines
558 B
Plaintext

string sDeny;
/* kick from armoury */
//Put this OnEnter
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
if (GetItemPossessedBy(oPC, "Heijanarmoury")!= OBJECT_INVALID)
{
return;
}
AssignCommand(oPC, ClearAllActions());
object oTarget;
location lTarget;
oTarget = GetWaypointByTag("TWILIGHT");
lTarget = GetLocation(oTarget);
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
AssignCommand(oPC, ActionJumpToLocation(lTarget));
sDeny="You do not belong here.";
SendMessageToPC(oPC, sDeny);
}