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

28 lines
1.1 KiB
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 item if requires
Variables: Quest_Name - Same as Journal Entry
item_2_give_s - Item to give at start.
like if you want to give a skinning knife for a quest.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
void main()
{
string sName = GetLocalString(OBJECT_SELF, "quest_name");
object oPC = GetPCSpeaker();
string sGve_Item = GetLocalString(OBJECT_SELF, "item_2_give_s");
// Give the speaker the items
CreateItemOnObject(sGve_Item, oPC, 1);
// Remove PC from Party since this is an individual Quest
RemoveFromParty(oPC);
// Set the variables
SetLocalInt(oPC, sName, 1);
AddJournalQuestEntry(sName, 1, oPC, FALSE, FALSE, FALSE);
}