summaryrefslogtreecommitdiff
path: root/npc/020-7-1/core.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/020-7-1/core.txt')
-rw-r--r--npc/020-7-1/core.txt30
1 files changed, 16 insertions, 14 deletions
diff --git a/npc/020-7-1/core.txt b/npc/020-7-1/core.txt
index fd039c275..a247aee3d 100644
--- a/npc/020-7-1/core.txt
+++ b/npc/020-7-1/core.txt
@@ -7,21 +7,23 @@
// Some setup is required
-// BSQuestion(quest state)
+// BSQuestion( )
function script BSQuestion {
- switch (getarg(0)) {
- case 3:
- case 4:
- return BS_QVISITOR;
- case 5:
- case 8:
- return BS_QHELPER;
- case 6:
- case 7:
- case 9:
- case 10:
- return BS_QVISITOR | BS_QHELPER;
+ .@b1=getq(NivalisQuest_BlueSage);
+ .@b2=getq2(NivalisQuest_BlueSage);
+ .@b3=getq3(NivalisQuest_BlueSage);
+ .@rt=0;
+
+ // After you collected everyone's feedback, hide the option
+ if (is_between(3,8,.@b1)) {
+ if (.@b2 < BS_NPCALL)
+ .@rt=.@rt | BS_QHELPER;
+ }
+
+ if (.@b1 == 7) {
+ if (.@b3 < BS_NPCALL)
+ .@rt=.@rt | BS_QVISITOR;
}
- return 0;
+ return .@rt;
}