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

32 lines
651 B
Plaintext

void main()
{
// Set the variables
SetLocalInt(GetPCSpeaker(), "malthrip", 1);
object oPC = GetPCSpeaker();
object oTarget;
location lTarget;
oTarget = GetWaypointByTag("WP_Malthrip_01");
lTarget = GetLocation(oTarget);
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
oTarget=GetFirstFactionMember(oPC, FALSE);
while (GetIsObjectValid(oTarget))
{
AssignCommand(oTarget, ClearAllActions());
AssignCommand(oTarget, ActionJumpToLocation(lTarget));
oTarget=GetNextFactionMember(oPC, FALSE);
}
oTarget = GetObjectByTag("Malthrip");
AssignCommand(GetObjectByTag("Hasan"), SetFacingPoint(GetPosition(oTarget)));
}