Ancordia_PRC8/_module/nss/quest_quitransom.nss
Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

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);
}