summaryrefslogtreecommitdiff
path: root/npc/020-7-1/janitors.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/020-7-1/janitors.txt')
-rw-r--r--npc/020-7-1/janitors.txt21
1 files changed, 16 insertions, 5 deletions
diff --git a/npc/020-7-1/janitors.txt b/npc/020-7-1/janitors.txt
index 617028cd0..8b2583480 100644
--- a/npc/020-7-1/janitors.txt
+++ b/npc/020-7-1/janitors.txt
@@ -24,11 +24,11 @@ function askQuestion {
.@q2=getq2(NivalisQuest_BlueSage);
.@q3=getq3(NivalisQuest_BlueSage);
.@qs=BSQuestion(getq(NivalisQuest_BlueSage));
- .@qt=getq3(NivalisQuest_BlueSage);
+ .@qt=getq2(NivalisQuest_BlueSageSlimes);
next;
mes "";
select
- rif(.@qt < 255, "What are you doing?"),
+ rif(.@qt < BS_SNESTALL, "What are you doing?"),
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."));
@@ -56,6 +56,17 @@ function askQuestion {
close;
}
+OnSlimeDeath:
+ if (playerattached()) {
+ getmapxy(.@m$, .@x, .@y, 0);
+ // Capped at ~10% drop chance of book pages
+ if (rand(0,10000) <= 360+(readparam(bLuck)*7))
+ makeitem SpellBookPage, 1, .@m$, .@x, .@y;
+ if (rand(0,10000) <= 100)
+ makeitem Candy, 1, .@m$, .@x, .@y;
+ }
+ end;
+
OnInit:
.bsId=BS_NPC06;
.sex=G_MALE;
@@ -130,7 +141,7 @@ function askQuestion {
}
mes "";
select
- rif(.@qt < 255, ""),
+ rif(.@qt < BS_SNESTALL, ""),
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."));
@@ -234,7 +245,7 @@ function askQuestion {
next;
mes "";
select
- rif(.@qt < 255, ""),
+ rif(.@qt < BS_SNESTALL, ""),
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."));
@@ -334,7 +345,7 @@ function askQuestion {
}
mes "";
select
- rif(.@qt < 255, ""),
+ rif(.@qt < BS_SNESTALL, ""),
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."));