summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-05 14:36:12 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-05 14:36:12 -0600
commit3657623f95258bd104b21921590c9f741121fb51 (patch)
treeff1e919d39918c4b4dcbb880a5e3bdae4bd7601c /npc
parent07b477de0392fe15c508f456fd2deb2c4e6c46e4 (diff)
downloadserverdata-3657623f95258bd104b21921590c9f741121fb51.tar.gz
serverdata-3657623f95258bd104b21921590c9f741121fb51.tar.bz2
serverdata-3657623f95258bd104b21921590c9f741121fb51.tar.xz
serverdata-3657623f95258bd104b21921590c9f741121fb51.zip
Add an NPC to test string and integer input
Only visible for 0.0.28 and above.
Diffstat (limited to 'npc')
-rw-r--r--npc/008-1_Hurnscald_outskirts/_import.txt1
-rw-r--r--npc/008-1_Hurnscald_outskirts/andra.txt24
2 files changed, 25 insertions, 0 deletions
diff --git a/npc/008-1_Hurnscald_outskirts/_import.txt b/npc/008-1_Hurnscald_outskirts/_import.txt
index e3e92081..3101190e 100644
--- a/npc/008-1_Hurnscald_outskirts/_import.txt
+++ b/npc/008-1_Hurnscald_outskirts/_import.txt
@@ -1,6 +1,7 @@
map: 008-1.gat
npc: npc/008-1_Hurnscald_outskirts/_mobs.txt
npc: npc/008-1_Hurnscald_outskirts/_warps.txt
+npc: npc/008-1_Hurnscald_outskirts/andra.txt
npc: npc/008-1_Hurnscald_outskirts/dock_worker.txt
npc: npc/008-1_Hurnscald_outskirts/george.txt
npc: npc/008-1_Hurnscald_outskirts/hinnak.txt
diff --git a/npc/008-1_Hurnscald_outskirts/andra.txt b/npc/008-1_Hurnscald_outskirts/andra.txt
new file mode 100644
index 00000000..e56cbbf5
--- /dev/null
+++ b/npc/008-1_Hurnscald_outskirts/andra.txt
@@ -0,0 +1,24 @@
+//
+
+008-1.gat,36,26,0 script Andra 201,{
+ mes "[Andra]";
+ mes "\"Hello, my name is Andra, what's yours?\"";
+ next;
+ input @name$;
+
+ mes "[Andra]";
+ mes "\"Hello, " + @name$ + "! What is your favorite number?\"";
+ next;
+ input @num;
+
+ if (@num == 5) goto L_Same;
+
+ mes "[Andra]";
+ mes "\"I don't like that one.\"";
+ close;
+
+L_Same:
+ mes "[Andra]";
+ mes "\"Mine too!\"";
+ close;
+}