2022-06-19 23:39:17 -04:00
|
|
|
//:://////////////////////////////////////////////
|
|
|
|
//:: qst_marthek_end.nss
|
|
|
|
//:: Copyright (c) 2022 Project RATDOG
|
|
|
|
//:://////////////////////////////////////////////
|
|
|
|
/*
|
|
|
|
Ends & rewards the "Marthek the Madman" quest.
|
|
|
|
This is the good ending.
|
|
|
|
*/
|
|
|
|
//:://////////////////////////////////////////////
|
|
|
|
//:: Created By: Jaysyn
|
|
|
|
//:: Created On: 20220619
|
|
|
|
//:://////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "nw_i0_tool"
|
|
|
|
#include "pqj_inc"
|
2022-11-19 00:37:42 -05:00
|
|
|
#include "x0_i0_partywide"
|
2022-06-19 23:39:17 -04:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
//:: Declare major variables
|
|
|
|
object oPC = GetPCSpeaker();
|
|
|
|
|
2022-11-19 00:37:42 -05:00
|
|
|
//:: Reward the party
|
|
|
|
int nGold = 1500;
|
|
|
|
|
|
|
|
//:: Get gold for each PC
|
|
|
|
//:: Take one off GetNumberPartyMembers(), see known bugs
|
|
|
|
int nMembers = GetNumberPartyMembers(oPC) - 1;
|
2022-06-19 23:39:17 -04:00
|
|
|
|
2022-11-19 00:37:42 -05:00
|
|
|
//:: Give the correct gold to all of them
|
|
|
|
GiveGoldToAll(oPC, nGold/nMembers);
|
2022-06-19 23:39:17 -04:00
|
|
|
|
|
|
|
//:: Give the PC's party some XP
|
|
|
|
RewardPartyXP(700, oPC);
|
|
|
|
|
2022-11-19 00:37:42 -05:00
|
|
|
//:: Set quest stage & update DB.
|
|
|
|
AddPersistentJournalQuestEntry("marthek", 5, oPC);
|
|
|
|
}
|