From 5cd797d7e89b1e320cd37e385ca20bb7d8d7920a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 22 May 2019 10:27:57 -0300 Subject: Populate 020-7-2 --- npc/020-7-1/janitors.txt | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'npc/020-7-1/janitors.txt') 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.")); -- cgit v1.2.3-70-g09d2