generated from Jaysyn/ModuleTemplate
28 lines
1.1 KiB
Plaintext
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, "Renthran");
|
|
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);
|
|
}
|