summaryrefslogtreecommitdiff
path: root/npc/020-7-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-22 10:27:57 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-22 10:27:57 -0300
commit5cd797d7e89b1e320cd37e385ca20bb7d8d7920a (patch)
treed2a9b830b5fbd3d3eb842e0d1fae6457c4ab36bc /npc/020-7-1
parentc5dcb8abaeb18eaddf792ad27f02f353cdb9b5e0 (diff)
downloadserverdata-5cd797d7e89b1e320cd37e385ca20bb7d8d7920a.tar.gz
serverdata-5cd797d7e89b1e320cd37e385ca20bb7d8d7920a.tar.bz2
serverdata-5cd797d7e89b1e320cd37e385ca20bb7d8d7920a.tar.xz
serverdata-5cd797d7e89b1e320cd37e385ca20bb7d8d7920a.zip
Populate 020-7-2
Diffstat (limited to 'npc/020-7-1')
-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."));