Initial commit

Initial commit.  Updated release archive.
This commit is contained in:
Jaysyn904
2024-06-13 15:08:33 -04:00
parent c0bd67a6a7
commit a6f6db7303
5236 changed files with 4203994 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
#include "qst_include"
void main()
{
string sDescription;
object oPC;
oPC=GetPCSpeaker();
if (GetLocalInt(oPC,"OnQuest") == 0)
{
if (GetLocalInt(oPC,"QuestStored") == 1)
{
SetPartyString(oPC,"QuestNPC",GetLocalString(oPC,"STORE_QuestNPC"));
SetPartyString(oPC,"QuestName",GetLocalString(oPC,"STORE_QuestName"));
SetPartyString(oPC,"QuestTarget",GetLocalString(oPC,"STORE_QuestTarget"));
SetPartyInt(oPC,"QuestStored",0);
//SetPartyVariables(oPC);
sDescription=GetLocalString(oPC,"STORE_JournalDesc");
SetPartyString(oPC,"QuestJournalDesc",sDescription);
SetJournalEntry(oPC,sDescription);
} else {
SendMessageToPC(GetPCSpeaker(),"There is no quest stored.");
}
} else {
SendMessageToPC(GetPCSpeaker(),"Cannot restore quest while you are on a quest.");
}
}