Quest persistence work
Quest persistence work.
This commit is contained in:
33
_module/nss/qst_altar_end.nss
Normal file
33
_module/nss/qst_altar_end.nss
Normal file
@@ -0,0 +1,33 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: qst_altar_start.nss
|
||||
//:: Copyright (c) 2022 Project RATDOG
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Ends & rewards the "Lost Altar" quest.
|
||||
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Tolen
|
||||
//:: Created On: 8/15/2005 10:59:16 PM
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "pqj_inc"
|
||||
#include "nw_i0_tool"
|
||||
|
||||
void main()
|
||||
{
|
||||
//:: Declare major variables
|
||||
object oPC = GetPCSpeaker();
|
||||
object oItemToTake;
|
||||
|
||||
//:: Give the PC's party some XP
|
||||
RewardPartyXP(250, oPC);
|
||||
|
||||
//:: Set quest stage & update DB.
|
||||
AddPersistentJournalQuestEntry("lostaltar", 4, oPC);
|
||||
|
||||
//:: Remove plot item from PC's inventory
|
||||
oItemToTake = GetItemPossessedBy(oPC, "ZEP_HOLYSYMBOLhec");
|
||||
if(GetIsObjectValid(oItemToTake) != 0)
|
||||
DestroyObject(oItemToTake);
|
||||
}
|
Reference in New Issue
Block a user