Lankhmar_PRC8/_module/nss/enter_take_map.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

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)));
}