35 lines
558 B
Plaintext
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);
|
|
}
|
|
|