20 lines
603 B
Plaintext
20 lines
603 B
Plaintext
#include "quest_inc"
|
|
void main()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
string sDB = CharacterDB(oPC);
|
|
|
|
if (GetCampaignInt(sDB, "QUEST_EVIL") == TRUE) AdjustAlignment(oPC, ALIGNMENT_EVIL, 5, FALSE);
|
|
|
|
int nReward = GetCampaignInt(sDB, "QUEST_REWARD");
|
|
GiveGoldToCreature(oPC, nReward);
|
|
|
|
int nExp = GetCampaignInt(sDB, "QUEST_EXP");
|
|
GiveXPToCreature(oPC, nExp);
|
|
|
|
string sToken = GetLocalString(oPC, "QuestToken");
|
|
RemoveJournalQuestEntry("random_quest"+sToken, oPC, FALSE);
|
|
DeleteCampaignVariable(sDB, "QUEST_JOURNAL");
|
|
ExecuteScript("client_walkaway", OBJECT_SELF);
|
|
}
|