summaryrefslogtreecommitdiff
path: root/npc/002-1/peter.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-08-17 20:13:00 -0300
committerJesusaves <cpntb1@ymail.com>2021-08-17 20:13:00 -0300
commit57304701365054098b05fd6b657f5b0bc014766c (patch)
tree2d6001dcb0e1f762e373c492ba395afa5e90af5b /npc/002-1/peter.txt
parentb65cd50dc26ea7383cdfd6ebfbb9d41b1703aab2 (diff)
downloadserverdata-57304701365054098b05fd6b657f5b0bc014766c.tar.gz
serverdata-57304701365054098b05fd6b657f5b0bc014766c.tar.bz2
serverdata-57304701365054098b05fd6b657f5b0bc014766c.tar.xz
serverdata-57304701365054098b05fd6b657f5b0bc014766c.zip
Peter should stop complaining he is broken with this.
Maybe.
Diffstat (limited to 'npc/002-1/peter.txt')
-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;