EN6_PRC8/_module/nss/qdb_testquest.nss
Jaysyn904 a6f6db7303 Initial commit
Initial commit.  Updated release archive.
2024-06-13 15:08:33 -04:00

37 lines
683 B
Plaintext

#include "qst_include"
void main()
{
int iIndex;
string sTag;
object oWP;
iIndex=1;
sTag="TST_C" + IntToString(iIndex) + "_1";
oWP=GetObjectByTag(sTag);
while (GetIsObjectValid(oWP))
{
SetLocalInt(oWP,"Quest",0);
iIndex++;
sTag="TST_C" + IntToString(iIndex) + "_1";
oWP=GetObjectByTag(sTag);
}
iIndex=1;
sTag="TST_S_" + IntToString(iIndex);
oWP=GetObjectByTag(sTag);
while (GetIsObjectValid(oWP))
{
SetLocalInt(oWP,"Quest",0);
iIndex++;
sTag="TST_S_" + IntToString(iIndex);
oWP=GetObjectByTag(sTag);
}
if (CheckQuest("TST"))
SetupQuest("TST");
else
SendMessageToPC(GetPCSpeaker(),"Could not setup quest for this zone");
}