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

34 lines
731 B
Plaintext

#include "x0_i0_partywide"
void main()
{
object oTarget;
int nInt;
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
// Give 5 experience (to party) to the PC.
GiveXPToAll(oPC, 5);
oTarget = GetObjectByTag("levcltdr");
AssignCommand(oTarget, ActionCloseDoor(oTarget));
SetLocked(oTarget, TRUE);
oTarget = GetObjectByTag("levcult1");
AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_levcult1")));
oTarget = GetObjectByTag("levcult1");
nInt = GetObjectType(oTarget);
oTarget = GetObjectByTag("levcult1");
DestroyObject(oTarget, 1.0);
oTarget = GetObjectByTag("levcltdr");
DelayCommand(1.0, AssignCommand(oTarget, ActionCloseDoor(oTarget)));
DelayCommand(1.0, SetLocked(oTarget, TRUE));
}