Amon_PRC8/_module/nss/guild_tailorchec.nss

35 lines
557 B
Plaintext
Raw Permalink Normal View History

2025-04-03 19:00:46 -04:00
string sDeny;
/* kick from armoury */
//Put this OnEnter
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
if (GetItemPossessedBy(oPC, "HeijanTailor")!= 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);
}