Initial Commit
Initial Commit
This commit is contained in:
18
_module/nss/quest_reward2.nss
Normal file
18
_module/nss/quest_reward2.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "quest_inc"
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
string sDB = CharacterDB(oPC);
|
||||
|
||||
int nReward = GetCampaignInt(sDB, "QUEST_REWARD");
|
||||
GiveGoldToCreature(oPC, nReward);
|
||||
|
||||
int nExp = GetCampaignInt(sDB, "QUEST_EXP");
|
||||
GiveXPToCreature(oPC, nExp);
|
||||
|
||||
if (GetCampaignInt(sDB, "QUEST_EVIL") == TRUE) AdjustAlignment(oPC, ALIGNMENT_EVIL, 5, FALSE);
|
||||
|
||||
string sToken = GetLocalString(oPC, "QuestToken");
|
||||
RemoveJournalQuestEntry("random_quest"+sToken, oPC, FALSE);
|
||||
DeleteCampaignVariable(sDB, "QUEST_JOURNAL");
|
||||
}
|
||||
Reference in New Issue
Block a user