summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/002-1/peter.txt28
1 files changed, 16 insertions, 12 deletions
diff --git a/npc/002-1/peter.txt b/npc/002-1/peter.txt
index 37b60a6b1..15359caf2 100644
--- a/npc/002-1/peter.txt
+++ b/npc/002-1/peter.txt
@@ -237,21 +237,25 @@ OnTimeout:
OnDone:
.@q3 = getq3(ShipQuests_Peter);
//instance_destroy(.@q3);
- if (@peter)
- setq ShipQuests_Peter, getq(ShipQuests_Peter)|@peter, 0, -1;
+ setq ShipQuests_Peter, getq(ShipQuests_Peter)|@peter, 0, -1;
.@q = getq(ShipQuests_Peter);
- mesn;
- mesq l("Good job!") + " " + l("Here's your reward!");
- getexp @peter*52, @peter;
- switch (@peter) {
- case 2: @peter=350; break;
- case 4: @peter=550; break;
- case 8: @peter=1000; break;
+ if (@peter) {
+ mesn;
+ mesq l("Good job!") + " " + l("Here's your reward!");
+ getexp @peter*52, @peter;
+ switch (@peter) {
+ case 2: @peter=350; break;
+ case 4: @peter=550; break;
+ case 8: @peter=1000; break;
+ }
+
+ Zeny = Zeny + @peter;
+ message strcharinfo(0), l("You receive @@ GP!", @peter);
+ } else {
+ mesn;
+ mesq l("Good job!") + " " + l("Thanks for helping!");
}
-
- Zeny = Zeny + @peter;
- message strcharinfo(0), l("You receive @@ GP!", @peter);
deltimer("Peter::OnLowTime");
deltimer("Peter::OnTimeout");
@peter=0;