summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid <reidyaro@gmail.com>2016-05-30 04:43:09 +0200
committerReid <reidyaro@gmail.com>2016-05-30 04:43:09 +0200
commit605c55c8537435ce798fc51068701349549c4bb9 (patch)
tree5e151ee526084c0930db9b2fbd4d1fa980e639fa
parent069c7d78a506a26d5f3c59b38159e8d87abad418 (diff)
downloadserverdata-605c55c8537435ce798fc51068701349549c4bb9.tar.gz
serverdata-605c55c8537435ce798fc51068701349549c4bb9.tar.bz2
serverdata-605c55c8537435ce798fc51068701349549c4bb9.tar.xz
serverdata-605c55c8537435ce798fc51068701349549c4bb9.zip
Add an early script template for oscar.
-rw-r--r--npc/001-2-12/oscar.txt24
1 files changed, 23 insertions, 1 deletions
diff --git a/npc/001-2-12/oscar.txt b/npc/001-2-12/oscar.txt
index ce9762c5..0de73c2b 100644
--- a/npc/001-2-12/oscar.txt
+++ b/npc/001-2-12/oscar.txt
@@ -2,9 +2,31 @@
// Authors:
// Reid
// Description:
-// Dye seller, she sells and explain how works dye cards.
+// Old man living in the rich hill, can bleach clothes.
001-2-12,38,30,0 script Oscar#001-2-12 NPC_OSCAR,{
+
+ .@hour = gettime(GETTIME_HOUR);
+ speech 4, (.@hour > 6 && .@hour < 18) ? l("Good day to you.") : lg("Good night milady.", "Good evening sir.");
+
+ do
+ {
+ menuint
+ l("Could you bleach my clothes?"), 1,
+ l(menuaction(l("Quit"))), 2;
+
+ switch (@menuret)
+ {
+ case 1:
+ speech 5, l("Oh my...");
+ break;
+ case 2:
+ speech 5, l("I wish you a good time in town.");
+ break;
+ }
+
+ } while (@menuret != 2);
+
closedialog;
goodbye;
close;