46 lines
1.3 KiB
Plaintext
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);
|
||
|
|
||
|
|
||
|
}
|
||
|
|