15 lines
487 B
Plaintext
15 lines
487 B
Plaintext
#include "quest_inc"
|
|
void main()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
string sDB = CharacterDB(oPC);
|
|
int nRansom;
|
|
SetQuestTokens(oPC);
|
|
DelayCommand(0.1, AddRandomQuestJournalEntry(oPC)); //TEST - let's see if it can fix the problem of messed-up journal entries in multiplayer
|
|
if (GetCampaignString(sDB, "QUEST_TEMPLATE") == "ransom")
|
|
{
|
|
nRansom = StringToInt(GetCampaignString(sDB, "QUEST_EXTRA2"));
|
|
GiveGoldToCreature(oPC, nRansom);
|
|
}
|
|
}
|