15 lines
444 B
Plaintext
15 lines
444 B
Plaintext
#include "quest_inc"
|
|
void main()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
string sDB = CharacterDB(oPC);
|
|
|
|
int nRansom = StringToInt(GetCampaignString(sDB, "QUEST_EXTRA2"));
|
|
TakeGoldFromCreature(nRansom, oPC, TRUE);
|
|
string sToken = GetLocalString(oPC, "QuestToken");
|
|
RemoveJournalQuestEntry("random_quest"+sToken, oPC, FALSE);
|
|
|
|
DeleteCampaignVariable(sDB, "QUEST_JOURNAL");
|
|
ExecuteScript("client_walkaway", OBJECT_SELF);
|
|
}
|