Initial commit
Initial commit. Updated release archive.
This commit is contained in:
52
_module/nss/qdb_sr_addline.nss
Normal file
52
_module/nss/qdb_sr_addline.nss
Normal file
@@ -0,0 +1,52 @@
|
||||
#include "qdb_include"
|
||||
|
||||
void main()
|
||||
{
|
||||
string sLine;
|
||||
string sResponse;
|
||||
string sToken;
|
||||
int iDone;
|
||||
int iAccept;
|
||||
int iNPC;
|
||||
int iIndex;
|
||||
int iStep;
|
||||
int iLine;
|
||||
int iOriginalLine;
|
||||
|
||||
iLine=GetLineNumber();
|
||||
iOriginalLine=iLine;
|
||||
iNPC=GetLineInt("NPC");
|
||||
iDone=GetResponseInt("Done");
|
||||
iAccept=GetResponseInt("Accept");
|
||||
|
||||
while (GetLine()!="")
|
||||
{
|
||||
iLine++;
|
||||
SetLineNumber(iLine);
|
||||
}
|
||||
|
||||
SetLineInt("NPC",iNPC);
|
||||
|
||||
//Link Goto To This Line.
|
||||
SetLineNumber(iOriginalLine);
|
||||
SetResponseInt("Goto",iLine);
|
||||
SetLineNumber(iLine);
|
||||
|
||||
//sLine=GetLine();
|
||||
//iStep=GetStepNumber();
|
||||
|
||||
|
||||
sToken=GetLineInfo();
|
||||
SetCustomToken(100,sToken);
|
||||
|
||||
iIndex=1;
|
||||
while (iIndex<=5)
|
||||
{
|
||||
SetResponseNumber(iIndex);
|
||||
sResponse=GetResponse();
|
||||
if (sResponse=="")
|
||||
sResponse="(No Response)";
|
||||
SetCustomToken(100+iIndex,sResponse);
|
||||
iIndex++;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user