summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-02-27 15:47:51 -0300
committerJesusaves <cpntb1@ymail.com>2021-02-27 15:47:51 -0300
commitc25b05fb620fc559f08857daef2ab8dfc9d0ff4b (patch)
tree346ed3e61a5297a044c4953107dc9e72ae90eca7 /npc
parented215791bcecc57a4ab08ec396513664df7cc618 (diff)
downloadserverdata-c25b05fb620fc559f08857daef2ab8dfc9d0ff4b.tar.gz
serverdata-c25b05fb620fc559f08857daef2ab8dfc9d0ff4b.tar.bz2
serverdata-c25b05fb620fc559f08857daef2ab8dfc9d0ff4b.tar.xz
serverdata-c25b05fb620fc559f08857daef2ab8dfc9d0ff4b.zip
Just like the Mana Tree, the Great Tree quest is incomplete. Oh well.
Diffstat (limited to 'npc')
-rw-r--r--npc/018-5/tree.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/npc/018-5/tree.txt b/npc/018-5/tree.txt
index c4991686b..e80af7a2c 100644
--- a/npc/018-5/tree.txt
+++ b/npc/018-5/tree.txt
@@ -5,9 +5,39 @@
// Lilit's access
018-5,100,52,0 script Great Tree NPC_NO_SPRITE,{
+ function gtLocked;
+ function gtFirstTime;
+ function gtAccessOK;
+
+ .@q = getq(LilitQuest_Access);
+
+ if (JobLevel < 40) gtLocked();
+ switch (.@q) {
+ case 2:
+ gtAccessOK(); break;
+ case 1:
+ gtFirstTime(); break;
+ default:
+ gtLocked();
+ }
+ close;
+
+function gtFirstTime {
+ mesn l("Yetifly the Mighty");
+ mesq l("Your persistence is amusing.");
+ return;
+}
+
+function gtLocked {
mesn;
mesq l("The door is locked.");
close;
+}
+
+function gtAccessOK {
+ warp "018-7", 52, 33;
+ return;
+}
OnInit:
.sex = G_OTHER;