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,43 @@
#include "qst_include"
#include "nw_i0_tool"
void main()
{
object oPC;
object oQuestNPC;
int iStep;
string sQS;
string sItem;
oPC=GetPCSpeaker();
oQuestNPC=GetObjectByTag(GetLocalString(oPC,"QuestNPC"));
if (GetLocalInt(oQuestNPC,"MainQuestNPC") == 0)
{
SetLocalInt(oQuestNPC,"QuestComplete",1);
SetPartyInt(oPC,"OnQuest",0);
AddJournalQuestEntry("jQuest",21,oPC);
SetLocalInt(oQuestNPC,"QuestLine",0);
SetLocalInt(oQuestNPC,"QuestStep",1);
SetLocalInt(oQuestNPC,"QuestLineStart",100);
iStep=GetLocalInt(oQuestNPC,"QuestStep");
sQS="QuestStep" + IntToString(iStep);
sItem=GetLocalString(oQuestNPC,sQS + "Item");
if (sItem != "")
{
if (HasItem(oPC,sItem))
{
object oItemToTake = GetItemPossessedBy(oPC, sItem);
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
}
}
} else {
SendMessageToPC(oPC,"You are not allowed to remove main storyline quests.");
}
SetPartyVariables(oPC);
}