summaryrefslogtreecommitdiff
path: root/world/map/npc/001-1/sarah.txt
diff options
context:
space:
mode:
authorThe Kandiman <kandiman@kandiman.(none)>2011-08-27 00:54:21 -0400
committerJessica Tölke <jtoelke@mail.upb.de>2011-08-27 18:14:36 +0200
commitc8e0ce7f52ae0c8c4965170c9a3382005fd4231d (patch)
tree58bcf383f2220d3a45ea39c828fd25fc8db59058 /world/map/npc/001-1/sarah.txt
parent4b5ae2226b50c2c381ed7b9b0459b1778d2ac1ee (diff)
downloadserverdata-c8e0ce7f52ae0c8c4965170c9a3382005fd4231d.tar.gz
serverdata-c8e0ce7f52ae0c8c4965170c9a3382005fd4231d.tar.bz2
serverdata-c8e0ce7f52ae0c8c4965170c9a3382005fd4231d.tar.xz
serverdata-c8e0ce7f52ae0c8c4965170c9a3382005fd4231d.zip
First set of conversions to using 4 spaces in place of tabs. Also replaced tabs with pipes in headers. Map 001-1 complete.
Diffstat (limited to 'world/map/npc/001-1/sarah.txt')
-rw-r--r--world/map/npc/001-1/sarah.txt125
1 files changed, 62 insertions, 63 deletions
diff --git a/world/map/npc/001-1/sarah.txt b/world/map/npc/001-1/sarah.txt
index 1371d334..3bd2a447 100644
--- a/world/map/npc/001-1/sarah.txt
+++ b/world/map/npc/001-1/sarah.txt
@@ -1,91 +1,90 @@
//
-001-1.gat,137,78,0 script Sarah 106,{
- if (TMW_Quest >= 8) goto L_Done;
- if (TMW_Quest == 7) goto L_Progress;
- if (TMW_Quest == 6) goto L_Start;
- if (TMW_Quest < 6) goto L_Convince_Sarah_First;
+001-1.gat,137,78,0|script|Sarah|106,{
+ if (TMW_Quest >= 8) goto L_Done;
+ if (TMW_Quest == 7) goto L_Progress;
+ if (TMW_Quest == 6) goto L_Start;
+ if (TMW_Quest < 6) goto L_Convince_Sarah_First;
- // If this is shown, something is wrong with the above case handling.
- mes "Sarah looks confused.";
- close;
+ // If this is shown, something is wrong with the above case handling.
+ mes "Sarah looks confused.";
+ close;
L_Convince_Sarah_First:
- mes "[Sarah]";
- mes "\"Boy, am I hungry or what!\"";
- next;
- mes "\"The girl suddenly looks at you suspiciously.\"";
- next;
- mes "\"My mommy says not to talk to strangers!\"";
- close;
+ mes "[Sarah]";
+ mes "\"Boy, am I hungry or what!\"";
+ next;
+ mes "\"The girl suddenly looks at you suspiciously.\"";
+ next;
+ mes "\"My mommy says not to talk to strangers!\"";
+ close;
L_Start:
-
- set @TEMP, rand(2);
- if(@TEMP == 0) goto L_Opening0;
- if(@TEMP == 1) goto L_Opening1;
+ set @TEMP, rand(2);
+ if(@TEMP == 0) goto L_Opening0;
+ if(@TEMP == 1) goto L_Opening1;
L_Opening0:
- mes "[Sarah]";
- mes "\"Cherry Cake is the best!\"";
- next;
- goto L_Ask;
+ mes "[Sarah]";
+ mes "\"Cherry Cake is the best!\"";
+ next;
+ goto L_Ask;
L_Opening1:
- mes "[Sarah]";
- mes "\"Mmm, Cherry Cake... I love it!\"";
- next;
- goto L_Ask;
+ mes "[Sarah]";
+ mes "\"Mmm, Cherry Cake... I love it!\"";
+ next;
+ goto L_Ask;
L_Ask:
- mes "\"Can you bring me a piece of Cherry Cake? Pretty please?\"";
- menu
- "Yes.", L_Req0,
- "No.", L_No;
+ mes "\"Can you bring me a piece of Cherry Cake? Pretty please?\"";
+ menu
+ "Yes.", L_Req0,
+ "No.", L_No;
L_Req0:
- mes "[Sarah]";
- mes "\"Yippee! Bring me a piece of Cherry Cake, and I'll give you a nice hat!\"";
- next;
- goto L_Set;
+ mes "[Sarah]";
+ mes "\"Yippee! Bring me a piece of Cherry Cake, and I'll give you a nice hat!\"";
+ next;
+ goto L_Set;
L_Set:
- set TMW_Quest,7;
- mes "[Sarah]";
- mes "\"Please bring it to me!\"";
- close;
+ set TMW_Quest,7;
+ mes "[Sarah]";
+ mes "\"Please bring it to me!\"";
+ close;
L_Progress:
- if (countitem("CherryCake") < 1) goto L_NotEnough;
- mes "[Sarah]";
- mes "\"Whee!\"";
- next;
- mes "You brought me Cherry Cake! Here is your new hat, as promised.\"";
- emotion 9;
- getinventorylist;
- if ((@inventorylist_count - (countitem("CherryCake") == 1)) > 99) goto L_TooMany;
- delitem "CherryCake", 1;
- getitem "serfhat", 1;
- set TMW_Quest, 8;
- close;
+ if (countitem("CherryCake") < 1) goto L_NotEnough;
+ mes "[Sarah]";
+ mes "\"Whee!\"";
+ next;
+ mes "You brought me Cherry Cake! Here is your new hat, as promised.\"";
+ emotion 9;
+ getinventorylist;
+ if ((@inventorylist_count - (countitem("CherryCake") == 1)) > 99) goto L_TooMany;
+ delitem "CherryCake", 1;
+ getitem "serfhat", 1;
+ set TMW_Quest, 8;
+ close;
L_NotEnough:
- mes "[Sarah]";
- mes "\"Oh, I'm starving! Please bring me Cherry Cake!\"";
- close;
+ mes "[Sarah]";
+ mes "\"Oh, I'm starving! Please bring me Cherry Cake!\"";
+ close;
L_Done:
- mes "[Sarah]";
- mes "\"It was so tasty, I can't eat anything more... Thank you!\"";
- emotion 9;
- close;
+ mes "[Sarah]";
+ mes "\"It was so tasty, I can't eat anything more... Thank you!\"";
+ emotion 9;
+ close;
L_No:
- close;
+ close;
L_TooMany:
- next;
- mes "[Sarah]";
- mes "\"You don't have room for my reward. I'll wait until you do.\"";
- close;
+ next;
+ mes "[Sarah]";
+ mes "\"You don't have room for my reward. I'll wait until you do.\"";
+ close;
}