summaryrefslogtreecommitdiff
path: root/npc/021-4/main.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/021-4/main.txt')
-rw-r--r--npc/021-4/main.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/021-4/main.txt b/npc/021-4/main.txt
index 862636260..477dbd57d 100644
--- a/npc/021-4/main.txt
+++ b/npc/021-4/main.txt
@@ -31,7 +31,7 @@ function script CindySwitch_Check_214 {
// Switches
021-4,101,33,0 script #CindySwitch_06 NPC_SWITCH_OFFLINE,{
.@q=getq(NivalisQuest_Cindy);
- if (.@q < 3) {
+ if (.@q < 3 || !countitem(TreasureKey)) {
mesn strcharinfo(0);
mesq l("This is a strange switch...");
close;
@@ -218,7 +218,7 @@ L_Winner:
if (.@q == 4) {
getitem Earmuffs, 1;
} else {
- Zeny=Zeny+rand(5000,15000);
+ Zeny=Zeny+rand(min(15000, 5000+BaseLevel*10),15000);
getitem TreasureMap, 1;
getitem TreasureKey, 1;
}