Initial Commit
Initial Commit
This commit is contained in:
19
_module/nss/quest_esreward.nss
Normal file
19
_module/nss/quest_esreward.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
#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);
|
||||
|
||||
RemoveJournalQuestEntry("random_quest", oPC, FALSE);
|
||||
RemoveHenchman(oPC, OBJECT_SELF);
|
||||
DeleteCampaignVariable(sDB, "QUEST_JOURNAL");
|
||||
SetLocalInt(OBJECT_SELF, "Quest_Halt", TRUE);
|
||||
SetPlotFlag(OBJECT_SELF, TRUE);
|
||||
if (GetCampaignInt(sDB, "QUEST_EVIL") == TRUE) AdjustAlignment(oPC, ALIGNMENT_EVIL, 3, FALSE);
|
||||
}
|
||||
Reference in New Issue
Block a user