38 lines
		
	
	
		
			895 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			895 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
//::///////////////////////////////////////////////
 | 
						|
//:: qst_altar_2nd.nss
 | 
						|
//:: Copyright (c) 2022 Project RATDOG
 | 
						|
//:://////////////////////////////////////////////
 | 
						|
/*
 | 
						|
    Sets stage #2 for the "Lost Altar" quest.
 | 
						|
    This destroys the altar.
 | 
						|
 | 
						|
*/
 | 
						|
//:://////////////////////////////////////////////
 | 
						|
//:: Created By:  Jaysyn
 | 
						|
//:: Created On:  20220705
 | 
						|
//:://////////////////////////////////////////////
 | 
						|
 | 
						|
#include "pqj_inc"
 | 
						|
 | 
						|
void main()
 | 
						|
{
 | 
						|
//:: Declare major variables
 | 
						|
    object oPC = GetPCSpeaker();
 | 
						|
 | 
						|
//:: Set quest stage & update DB.
 | 
						|
    AddPersistentJournalQuestEntry("lostaltar", 2, oPC);
 | 
						|
 | 
						|
//:: Destroy Altar
 | 
						|
//:: Set destroyable.
 | 
						|
    SetIsDestroyable(TRUE, FALSE, FALSE);
 | 
						|
 | 
						|
//:: Remove plot/immoral/lootable flags JUST in case.
 | 
						|
    SetPlotFlag(OBJECT_SELF, FALSE);
 | 
						|
    SetImmortal(OBJECT_SELF, FALSE);
 | 
						|
    SetLootable(OBJECT_SELF, FALSE);
 | 
						|
 | 
						|
//:: Destroy Altar
 | 
						|
    DestroyObject(OBJECT_SELF);
 | 
						|
}
 | 
						|
 |