summaryrefslogtreecommitdiff
path: root/world/map/npc/051-1/forest.txt
diff options
context:
space:
mode:
authorVincent Petithory <vincent.petithory@gmail.com>2012-09-24 21:11:33 +0200
committerVincent Petithory <vincent.petithory@gmail.com>2012-12-17 19:55:26 +0100
commit32cbb82b32d4ccbc3b5090ca517ed74feb5c9b5f (patch)
treef960e08320c2bfec54a3220c16734befea0f606e /world/map/npc/051-1/forest.txt
parenta6910cd696eccbef6f056fb0f7f4d0f2b72a2ede (diff)
downloadserverdata-32cbb82b32d4ccbc3b5090ca517ed74feb5c9b5f.tar.gz
serverdata-32cbb82b32d4ccbc3b5090ca517ed74feb5c9b5f.tar.bz2
serverdata-32cbb82b32d4ccbc3b5090ca517ed74feb5c9b5f.tar.xz
serverdata-32cbb82b32d4ccbc3b5090ca517ed74feb5c9b5f.zip
Add Illia quest scripts. Update submodule pointer.
Diffstat (limited to 'world/map/npc/051-1/forest.txt')
-rw-r--r--world/map/npc/051-1/forest.txt85
1 files changed, 85 insertions, 0 deletions
diff --git a/world/map/npc/051-1/forest.txt b/world/map/npc/051-1/forest.txt
new file mode 100644
index 00000000..e21940ce
--- /dev/null
+++ b/world/map/npc/051-1/forest.txt
@@ -0,0 +1,85 @@
+//-----------------------------------------------------------------------------
+// Forest
+// $@illia_progress = 1
+//
+// Level progress:
+// 0: Did not start the task yet
+// 1: Players are searching for the rock.
+// 2: Players found the rock
+// 3: Players unlocked the door
+//-----------------------------------------------------------------------------
+
+051-1.gat,64,46,0|script|Strange Stone|127,{
+ set @step, 1;
+ if ($@illia_progress < @step) goto L_ShouldNotBeHere;
+ if (isin("051-1.gat", 65,45, 67,48) == 0) end;
+ if (strcharinfo(0) != $@ILLIA_HERO$) goto L_HandleHelper;
+ if ($@illia_level_1_progress == 0) goto L_GiveTask;
+ if ($@illia_level_1_progress == 1) goto L_TaskNotComplete;
+ if ($@illia_level_1_progress == 2) goto L_TaskComplete;
+ if ($@illia_level_1_progress == 3) goto L_NothingElseToDo;
+ end;
+
+L_ShouldNotBeHere:
+ percentheal -100, 0;
+ end;
+
+L_HandleHelper:
+ mes "This stuff sounds complicated.";
+ mes "I should ask " + $@ILLIA_HERO$ + " what to do.";
+ close;
+
+L_NothingElseToDo:
+ mes "The door is opened... What am I waiting for?";
+ close;
+
+L_GiveTask:
+ mes "You look at the rocks with attention.";
+ mes "You are smart enough to notice that there seems to be a missing rock that could activate a mechanism.";
+ next;
+ menu
+ "This rock must not be far... Let's look around.", -;
+ set $@illia_level_1_progress, 1;
+ set $@illia_level_1_num_deaths, 0;
+ close;
+
+L_TaskNotComplete:
+ mes "It's not working. I have to find the rock.";
+ mes "With all the slimes around here, maybe one absorbed it.";
+ close;
+
+L_TaskComplete:
+ set $@illia_level_1_progress, 3;
+ set $@illia_progress, 2;
+ set $@illia_max_time, $@illia_max_time + 900;
+ mes "You insert the rock in the mechanism, then hear an unlock noise. The rocks move by themselves in a rumbling noise, making an opening in the wall.";
+ close;
+
+}
+
+// Warp from the forest, to the cave
+051-1.gat,66,44,0|script|#ToCave|32767,1,1,{
+ set @step, 1;
+ if ($@illia_progress < @step) goto L_ShouldNotBeHere;
+ if ($@illia_level_1_progress < 2) goto L_Blocked;
+ if ($@illia_level_1_progress == 2 && strcharinfo(0) == $@ILLIA_HERO$) goto L_SeeStone;
+ if ($@illia_level_1_progress == 3) goto L_Warp;
+ end;
+
+L_ShouldNotBeHere:
+ percentheal -100, 0;
+ end;
+
+L_Blocked:
+ message strcharinfo(0), "There should be a way to open this... but not with my bare hands.";
+ end;
+
+L_SeeStone:
+ message strcharinfo(0), "I should take a look at the stone.";
+ end;
+
+L_Warp:
+ warp "051-3.gat", 24, 60;
+ end;
+}
+