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.txt17
1 files changed, 12 insertions, 5 deletions
diff --git a/npc/021-4/main.txt b/npc/021-4/main.txt
index 8ecc59659..fefadf7e5 100644
--- a/npc/021-4/main.txt
+++ b/npc/021-4/main.txt
@@ -122,6 +122,7 @@ L_Reset:
end;
// Timeout
+OnReckless:
L_Reckless:
kamibroadcast("People failed to rescue Cindy!");
areatimer "021-4", 20, 20, 100, 80, 10, "Cindy#Outside::OnFail";
@@ -186,18 +187,23 @@ L_Winner:
kamibroadcast("Cindy was rescued by \""+.@v$+"\".");
}
+ // Better proccess this before everything else...
+ $@CINDY_HERO$="";
+ setnpcdisplay .name$, NPC_ICE_CAGE;
+
.@q=getq(NivalisQuest_Cindy);
// First time
- if (.@q == 4)
+ if (.@q == 4) {
getitem Earmuffs, 1;
- else
+ } else {
Zeny=Zeny+rand(5000,15000);
- $@CINDY_HERO$="";
+ getitem TreasureMap, 1;
+ getitem TreasureKey, 1;
+ }
setq1 NivalisQuest_Cindy, 5;
next;
npctalk l("Cindy is gone...");
closedialog;
- setnpcdisplay .name$, NPC_ICE_CAGE;
close;
// Events
@@ -236,8 +242,9 @@ L_CleanUp:
disablenpc "#CindySwitch_08";
disablenpc "#CindySwitch_09";
disablenpc "#CindySwitch_10";
- setnpcdisplay .name$, NPC_CINDY;
+ setnpcdisplay .name$, NPC_CINDY_CAGE;
changemusic "021-4", "water_prelude.ogg";
+ stopnpctimer;
end;
// Main loop