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