20 lines
613 B
Plaintext
20 lines
613 B
Plaintext
#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);
|
|
}
|