Files
HeroesStone_PRC8/_module/nss/qst_set_var_1p_x.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

25 lines
901 B
Plaintext

/* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Forsettii's Quest Builder System.
Version 1.0
Created for Layonara Online
Forsettii Forsettii@yahoo.com
April 7, 2004
Sets variable #1 and gives extra gold.
Variables: Quest_Name - Same as Journal Entry
extra_gold - gives extra gold
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
#include "x0_i0_partywide"
void main()
{
int iXGold = GetLocalInt(OBJECT_SELF, "extra_gold");
string sName = GetLocalString(OBJECT_SELF, "quest_name");
object oPC = GetPCSpeaker();
GiveGoldToAll(oPC, iXGold);
// Set the variables
SetLocalIntOnAll(oPC, sName, 1);
AddJournalQuestEntry(sName, 1, oPC, TRUE, FALSE, FALSE);
}