Initial commit
Initial commit. Updated release archive.
This commit is contained in:
27
_module/nss/qdb_addnew_step.nss
Normal file
27
_module/nss/qdb_addnew_step.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
#include "qdb_include"
|
||||
|
||||
void main()
|
||||
{
|
||||
string sQuest;
|
||||
int iType;
|
||||
int iStep;
|
||||
|
||||
iStep=GetStepNumber()+1;
|
||||
SetStepNumber(iStep);
|
||||
iType=GetStepInt("Type");
|
||||
|
||||
while (iType>0)
|
||||
{
|
||||
iStep++;
|
||||
SetStepNumber(iStep);
|
||||
iType=GetStepInt("Type");
|
||||
}
|
||||
|
||||
SetStepInt("Type",1);
|
||||
SetStepInt("NPCType",1);
|
||||
SetQuestInt("Steps",iStep);
|
||||
|
||||
sQuest=GetStepInfo();
|
||||
|
||||
SetCustomToken(100,sQuest);
|
||||
}
|
||||
Reference in New Issue
Block a user