LoD_PRC8/_module/nss/mdg_merguardeath.nss

19 lines
606 B
Plaintext
Raw Normal View History

2023-09-21 21:20:34 -04:00
void main()
{
object oGateToWell = GetObjectByTag("GateToWell");
object oMerrowEncounter = GetObjectByTag("MerrowEncounter");
SetLocked(oGateToWell, FALSE);
AssignCommand(oGateToWell, ActionOpenDoor(oGateToWell));
DelayCommand( 0.8f, AssignCommand(oGateToWell, ActionOpenDoor(oGateToWell)));
// Destroy the encounter so the guardian doesn't reapawn again
if(oMerrowEncounter != OBJECT_INVALID)
{
// SpeakString( "Destroyed Encounter", TALKVOLUME_SHOUT);
SetEncounterSpawnsMax(0, oMerrowEncounter);
}
ExecuteScript("nw_c2_default7", OBJECT_SELF);
}