summaryrefslogtreecommitdiff
path: root/world/map/npc/010-2/doug.txt
diff options
context:
space:
mode:
authorThe Kandiman <kandiman@kandiman.(none)>2011-09-05 00:59:06 -0400
committerJessica Tölke <jtoelke@mail.upb.de>2011-09-06 11:15:32 +0200
commita023cf16f0ec841620c975862cb5a96de99c577f (patch)
tree130b6e00993dbe275444743102031a2117c2f423 /world/map/npc/010-2/doug.txt
parent7ee49eb4acf3a6c047e18f36695c407740cfc523 (diff)
downloadserverdata-a023cf16f0ec841620c975862cb5a96de99c577f.tar.gz
serverdata-a023cf16f0ec841620c975862cb5a96de99c577f.tar.bz2
serverdata-a023cf16f0ec841620c975862cb5a96de99c577f.tar.xz
serverdata-a023cf16f0ec841620c975862cb5a96de99c577f.zip
Tab conversion project. Maps 007-1 to 010-2 complete.
Diffstat (limited to 'world/map/npc/010-2/doug.txt')
-rw-r--r--world/map/npc/010-2/doug.txt163
1 files changed, 84 insertions, 79 deletions
diff --git a/world/map/npc/010-2/doug.txt b/world/map/npc/010-2/doug.txt
index d072073d..5bcd8fef 100644
--- a/world/map/npc/010-2/doug.txt
+++ b/world/map/npc/010-2/doug.txt
@@ -1,110 +1,115 @@
//
-010-2.gat,68,87,0 script Doug 113,{
- if(CaveSnakeLamp == 1) goto L_State2;
- if(CaveSnakeLamp == 2) goto L_Done;
- set @TEMP, rand(4);
- if(@TEMP == 0) goto L_0;
- if(@TEMP == 1) goto L_1;
- if(@TEMP == 2) goto L_2;
- if(@TEMP == 3) goto L_3;
+010-2.gat,68,87,0|script|Doug|113,{
+ if(CaveSnakeLamp == 1) goto L_State2;
+ if(CaveSnakeLamp == 2) goto L_Done;
+ set @TEMP, rand(4);
+ if(@TEMP == 0) goto L_0;
+ if(@TEMP == 1) goto L_1;
+ if(@TEMP == 2) goto L_2;
+ if(@TEMP == 3) goto L_3;
L_0:
- mes "[Doug]";
- mes "\"I need 20 more Cave Snake Lamps to make my light!\"";
- next;
- goto L_Question;
+ mes "[Doug]";
+ mes "\"I need 20 more Cave Snake Lamps to make my light!\"";
+ next;
+ goto L_Question;
L_1:
- mes "[Doug]";
- mes "\"This lamp should light up this whole place! I just need 20 Cave Snake Lamps.\"";
- next;
- goto L_Question;
+ mes "[Doug]";
+ mes "\"This lamp should light up this whole place! I just need 20 Cave Snake Lamps.\"";
+ next;
+ goto L_Question;
L_2:
- mes "[Doug]";
- mes "\"This is gonna be bright! A must have for anyone! All I need is a few parts...\"";
- next;
- goto L_Question;
+ mes "[Doug]";
+ mes "\"This is gonna be bright! A must have for anyone! All I need is a few parts...\"";
+ next;
+ goto L_Question;
L_3:
- mes "[Doug]";
- mes "\"Can you get me 20 Cave Snake Lamps? I need them to get this light finished.\"";
- next;
- goto L_Question;
+ mes "[Doug]";
+ mes "\"Can you get me 20 Cave Snake Lamps? I need them to get this light finished.\"";
+ next;
+ goto L_Question;
L_Question:
- mes "[Doug]";
- mes "\"Will you help me find 20 Cave Snake Lamps?\"";
- next;
- menu
- "Yes", L_Sure,
- "No", -;
- close;
+ mes "[Doug]";
+ mes "\"Will you help me find 20 Cave Snake Lamps?\"";
+ next;
+ menu
+ "Yes", L_Sure,
+ "No", -;
+ close;
L_Sure:
- set CaveSnakeLamp, 1;
- set @TEMP, rand(4);
- if(@TEMP == 0) goto J_0;
- if(@TEMP == 1) goto J_1;
- if(@TEMP == 2) goto J_2;
- if(@TEMP == 3) goto J_3;
+ set CaveSnakeLamp, 1;
+ set @TEMP, rand(4);
+ if (@TEMP == 0)
+ goto J_0;
+ if (@TEMP == 1)
+ goto J_1;
+ if (@TEMP == 2)
+ goto J_2;
+ if (@TEMP == 3)
+ goto J_3;
J_0:
- mes "[Doug]";
- mes "\"Thank you!\"";
- next;
- goto L_Go;
+ mes "[Doug]";
+ mes "\"Thank you!\"";
+ next;
+ goto L_Go;
J_1:
- mes "[Doug]";
- mes "\"I don't know how to thank you enough!\"";
- next;
- goto L_Go;
+ mes "[Doug]";
+ mes "\"I don't know how to thank you enough!\"";
+ next;
+ goto L_Go;
J_2:
- mes "[Doug]";
- mes "\"I will pay you when you get them!\"";
- next;
- goto L_Go;
+ mes "[Doug]";
+ mes "\"I will pay you when you get them!\"";
+ next;
+ goto L_Go;
J_3:
- mes "[Doug]";
- mes "\"I'm sure I will give a small reward. :D\"";
- next;
- goto L_Go;
+ mes "[Doug]";
+ mes "\"I'm sure I will give a small reward. :D\"";
+ next;
+ goto L_Go;
L_Go:
- mes "[Doug]";
- mes "\"Now please go get me 20 Cave Snake Lamps.\"";
- close;
+ mes "[Doug]";
+ mes "\"Now please go get me 20 Cave Snake Lamps.\"";
+ close;
L_State2:
- if(countitem("CaveSnakeLamp") >= 20) goto L_Have;
- mes "[Doug]";
- mes "\"Please help me collect 20 Cave Snake Lamps!\"";
- close;
+ if(countitem("CaveSnakeLamp") >= 20)
+ goto L_Have;
+ mes "[Doug]";
+ mes "\"Please help me collect 20 Cave Snake Lamps!\"";
+ close;
L_Have:
- mes "[Doug]";
- mes "\"Cool! Now I can make this light!\"";
- next;
-
- if(countitem("CaveSnakeLamp") < 20) goto L_State2;
- delitem "CaveSnakeLamp", 20;
- set zeny, zeny + 5000;
- getexp 5000, 0;
- set CaveSnakeLamp, 2;
-
- mes "[Doug]";
- mes "\"Here's what I got to give you!\"";
- mes "";
- mes "[5000 experience points]";
- mes "[5000 gold]";
- close;
+ mes "[Doug]";
+ mes "\"Cool! Now I can make this light!\"";
+ next;
+ if(countitem("CaveSnakeLamp") < 20)
+ goto L_State2;
+ delitem "CaveSnakeLamp", 20;
+ set zeny, zeny + 5000;
+ getexp 5000, 0;
+ set CaveSnakeLamp, 2;
+
+ mes "[Doug]";
+ mes "\"Here's what I got to give you!\"";
+ mes "";
+ mes "[5000 experience points]";
+ mes "[5000 gold]";
+ close;
L_Done:
- mes "[Doug]";
- mes "\"Thanks for your help! Those snakes sure have bright lamps!\"";
- close;
+ mes "[Doug]";
+ mes "\"Thanks for your help! Those snakes sure have bright lamps!\"";
+ close;
}