Aschbourne_PRC8/_module/nss/end_tcsb_quest.nss
GetOffMyYarn 69879d6957 Areas and Fixes
Added CCOH and missing areas
Changed some areas to be craftable,
Fixed some on death issues,
Fixed the Gaurd
2024-08-30 11:38:44 -04:00

46 lines
1.3 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Name
//:: FileName
//:://////////////////////////////////////////////
/*
Give Rewards at the end of the quest.
*/
//:://////////////////////////////////////////////
//:: Created By:
//:: Created On:
//:://////////////////////////////////////////////
#include "toolbox_quests"
void main()
{
object oPC = GetPCSpeaker();
int Quest_State = SW_GetQuestInt(oPC, "TCSB_Quest_State");
// Set Variable to 99 to signfy quest has been completed
SW_SetQuestInt(oPC, "TCSB_Quest_State", 99);
///////////////////////////////////////////
// Give Rewards
GiveGoldToCreature(oPC, 250);
GiveXPToCreature(oPC, 450);
// Create an Item reward if you wish (make sure to uncomment)
// CreateItemOnObject("RESREFHERE", oPC, 1);
// Add 1 to the total number of quest completed
UpdateQuestCount(oPC);
// Add a user set amount to the fame score for the proper faction
UpdateFame(oPC, "Everclear", 1);
//////////////////////////////////////////
// Clean Up
// Remove items from the player's inventory
object oItemToTake;
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "Light_Beacon");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
}