WoR_PRC8/_module/nss/sc_myraport2.nss

30 lines
729 B
Plaintext
Raw Permalink Normal View History

2025-04-03 11:49:34 -04:00
void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
object oTarget;
location lTarget;
oTarget = GetObjectByTag("sha_myratherend_p2");
lTarget = GetLocation(oTarget);
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
if(GetLocalInt(OBJECT_SELF, "BREAK_PORTAL") || !GetLocalInt(OBJECT_SELF, "SPEAK_ONCE"))
{
object LadyM = GetNearestObjectByTag("LADYMOON");
SetLocalInt(OBJECT_SELF, "SPEAK_ONCE", TRUE);
DelayCommand(18.0, SetLocalInt(OBJECT_SELF, "SPEAK_ONCE", FALSE));
AssignCommand(LadyM, SpeakString("Foolish traitor! Do you think I will allow you to leave here alive?!"));
return;
}
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionJumpToLocation(lTarget));
}