39 lines
769 B
Plaintext
39 lines
769 B
Plaintext
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetEnteringObject();
|
|
object oActor;
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF));
|
|
|
|
if (DoOnce==TRUE) return;
|
|
|
|
SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE);
|
|
|
|
object oItem;
|
|
|
|
oItem = GetItemPossessedBy(oPC, "sextant");
|
|
|
|
if (GetIsObjectValid(oItem))
|
|
DestroyObject(oItem);
|
|
|
|
oItem = GetItemPossessedBy(oPC, "angmapcopy");
|
|
|
|
if (GetIsObjectValid(oItem))
|
|
DestroyObject(oItem);
|
|
|
|
oItem = GetItemPossessedBy(oPC, "maptotheangarngi");
|
|
|
|
if (GetIsObjectValid(oItem))
|
|
DestroyObject(oItem);
|
|
|
|
// Have "lankh_signpost" strike up a conversation with the PC.
|
|
oActor = GetNearestObjectByTag("lankh_signpost", oPC);
|
|
DelayCommand(2.0, AssignCommand(oActor, ActionStartConversation(oPC)));
|
|
|
|
}
|
|
|