Module commit

Module commit.
This commit is contained in:
Jaysyn904
2024-06-14 10:48:20 -04:00
parent 079830314c
commit f5ffe7d0b9
11110 changed files with 4747686 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
//::///////////////////////////////////////////////
//:: 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);
}