Initial Commit
Initial Commit
This commit is contained in:
14
_module/nss/quest_quitransom.nss
Normal file
14
_module/nss/quest_quitransom.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user