diff options
author | Fate <fate-tmw@googlemail.com> | 2009-01-09 16:01:13 -0700 |
---|---|---|
committer | Fate <fate-tmw@googlemail.com> | 2009-01-09 16:01:13 -0700 |
commit | 072189e7036fa29d9849b992ce2f4a55c63cc066 (patch) | |
tree | b7cc451f90cbdc85694783d4a9e28d9aeb9fc49d /npc/005-1_Snake_desert/tree.txt | |
parent | b2ec357e68a1b2e692f1c1081c4cc4f11682576a (diff) | |
download | serverdata-072189e7036fa29d9849b992ce2f4a55c63cc066.tar.gz serverdata-072189e7036fa29d9849b992ce2f4a55c63cc066.tar.bz2 serverdata-072189e7036fa29d9849b992ce2f4a55c63cc066.tar.xz serverdata-072189e7036fa29d9849b992ce2f4a55c63cc066.zip |
Finished first pass of magic quest scripting
Diffstat (limited to 'npc/005-1_Snake_desert/tree.txt')
-rw-r--r-- | npc/005-1_Snake_desert/tree.txt | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/npc/005-1_Snake_desert/tree.txt b/npc/005-1_Snake_desert/tree.txt index d0072259..7c85c44b 100644 --- a/npc/005-1_Snake_desert/tree.txt +++ b/npc/005-1_Snake_desert/tree.txt @@ -78,17 +78,38 @@ L_water: mes "This must be the druid tree."; next; menu - "Water the tree", L_water, + "Water the tree", L_givewater, "Kiss tree", L_kiss, "Leave it alone", -; close; L_both: mes "[Dying Tree]"; - mes "This must be the druid tree, the one the earth spirit asked you to cut."; + mes "This must be the druid tree that Wyara and the earth spirit were talking about."; next; menu - "Water the + "Water the tree", L_givewater, + "Kiss tree", L_kiss, + "Cut off a branch", L_do_cut, + "Leave it alone", -; + close; + +L_givewater: + set @WATER, 541; + set @BOTTLE, 540; + + if (countitem(@WATER) < 1) + goto L_no_water; + delitem @WATER, 1; + getitem @BOTTLE, 541; + + mes "[Dying Tree]"; + mes "You pour a bottle of water into the sand. The water dissipates quickly, without any effect."; + next; + close; + +L_no_water: + mes "[Dying Tree]"; mes "You don't have any water."; next; close; @@ -118,7 +139,7 @@ L_do_cut: "Yes, let's cut!", L_really_cut; close; -L_really_cut; +L_really_cut: set MAGIC_FLAGS, MAGIC_FLAGS | MFLAG_DID_CUTTREE; getitem 732, 1; mes "[Dying Tree]"; @@ -133,10 +154,7 @@ L_no_boneknife: next; close; -L_do_cut: - L_happy: - close; } |