summaryrefslogtreecommitdiff
path: root/npc/woodland/alchemist.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/woodland/alchemist.txt')
-rw-r--r--npc/woodland/alchemist.txt39
1 files changed, 39 insertions, 0 deletions
diff --git a/npc/woodland/alchemist.txt b/npc/woodland/alchemist.txt
new file mode 100644
index 00000000..e065af34
--- /dev/null
+++ b/npc/woodland/alchemist.txt
@@ -0,0 +1,39 @@
+new_9-1.gat,117,77,0 script Alchemist 103,{
+ mes "[Alchemist]";
+ mes "I'm learning the ancient science of the alchemy.";
+ mes "I already know how to create a couple of potions!!";
+ next;
+
+ mes "[Alchemist]";
+ mes "Do you want me to create one for you?";
+ next;
+
+ menu "Iron potion",L_iron,"Concentration potion",L_concentration,"No thanks.",L_no;
+L_iron:
+ if(countitem(566) < 20) goto L_no_iron;
+ mes "[Alchemist]";
+ mes "Great! You brought me exactly what I need!";
+ mes "Here it is your Iron potion.";
+ delitem 566,20;
+ getitem 567,1;
+ close;
+
+L_concentration:
+ if(countitem(565) < 20) goto L_no_concentration;
+ mes "[Alchemist]";
+ mes "Great! You brought me exactly what I need!";
+ mes "Here it is your Concentration potion.";
+ delitem 565,20;
+ getitem 568,1;
+ close;
+
+L_no_iron:
+ mes "[Alchemist]";
+ mes "You have to bring me 20 small mushrooms.";
+ close;
+
+L_no_concentration:
+ mes "[Alchemist]";
+ mes "You have to bring me 20 petals.";
+ close;
+} \ No newline at end of file