Initial commit
Initial commit. Updated release archive.
This commit is contained in:
22
_module/nss/en6_quitquest.nss
Normal file
22
_module/nss/en6_quitquest.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
void main()
|
||||
{
|
||||
object oPC;
|
||||
object oQuestNPC;
|
||||
int iStep;
|
||||
int iSteps;
|
||||
|
||||
oPC=GetPCSpeaker();
|
||||
if (GetLocalString(oPC,"QuestNPC") != "")
|
||||
oQuestNPC=GetObjectByTag(GetLocalString(oPC,"QuestNPC"));
|
||||
else
|
||||
oQuestNPC=OBJECT_SELF;
|
||||
|
||||
iStep=GetLocalInt(oQuestNPC,"QuestStep");
|
||||
iStep--;
|
||||
if (iStep<1)
|
||||
iStep==1;
|
||||
|
||||
SetLocalInt(oQuestNPC,"QuestSteps",iStep);
|
||||
SetLocalInt(oQuestNPC,"QuestItemChance",-100);
|
||||
SetLocalString(oQuestNPC,"QuestAccomplishment","");
|
||||
}
|
||||
Reference in New Issue
Block a user