summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-18 21:46:20 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-18 21:46:20 -0300
commit9eb41b519c61f2530e187c4e523c043238ef7c92 (patch)
treebf2a1c433c09686e053beb161b166c8a1a674798
parentae9b73f4f3558ce9b266fe6dda2991c89e1f0f1c (diff)
downloadserverdata-9eb41b519c61f2530e187c4e523c043238ef7c92.tar.gz
serverdata-9eb41b519c61f2530e187c4e523c043238ef7c92.tar.bz2
serverdata-9eb41b519c61f2530e187c4e523c043238ef7c92.tar.xz
serverdata-9eb41b519c61f2530e187c4e523c043238ef7c92.zip
Update Miro code too
-rw-r--r--npc/020-7/workers.txt33
1 files changed, 5 insertions, 28 deletions
diff --git a/npc/020-7/workers.txt b/npc/020-7/workers.txt
index 2e7388e8f..580cf78c8 100644
--- a/npc/020-7/workers.txt
+++ b/npc/020-7/workers.txt
@@ -13,31 +13,12 @@
mesn;
mesq l("After cleaning for twelve hours straight, they allowed me to rest a bit.");
.@q=getq(NivalisQuest_BlueSage);
- switch (.@q) {
- case 1:
- case 2:
- case 13:
- case 14:
- break;
- case 3:
- case 4:
- askQuestion(.Q_VISITOR);
- break;
- case 5:
- case 8:
- askQuestion(.Q_HELPER);
- break;
- case 6:
- case 7:
- case 9:
- case 10:
- askQuestion(.Q_VISITOR | .Q_HELPER);
- break;
- default:
+ if (BSQuestion(.@q))
+ askQuestion(BSQuestion(.@q));
+ if (.@q == 12) {
next;
mesn;
mesq l("You did a good job too. Rest a bit, too. There's still one chair.");
- close;
}
close;
@@ -47,8 +28,8 @@ function askQuestion {
.@q=getq(NivalisQuest_BlueSage);
next;
select
- rif(.@qs & .Q_VISITOR, l("Do you know anything about the strange visitor?")),
- rif(.@qs & .Q_HELPER, l("What's your opinion of Peetu and his work?")),
+ rif(.@qs & BS_QVISITOR, l("Do you know anything about the strange visitor?")),
+ rif(.@qs & BS_QHELPER, l("What's your opinion of Peetu and his work?")),
any(l("I need to leave."), l("See you."), l("Bye."));
mes "";
switch (@menu) {
@@ -71,10 +52,6 @@ function askQuestion {
}
OnInit:
- // Bitwise questions
- .Q_VISITOR=1;
- .Q_HELPER=2;
-
.sex=G_MALE;
.distance=5;
npcsit;