summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJoseph Botosh <rumly111@gmail.com>2015-09-24 04:09:14 +0300
committerJoseph Botosh <rumly111@gmail.com>2015-09-24 04:09:28 +0300
commitf4ece38f71ded5eeda94d6a11faf7c9fc03aa56a (patch)
treee9acb2b694510e5e936b35be0bd1ebe1fa6d25b9 /npc
parent04cd7299905c1578f2c767b632d4771bd3321d93 (diff)
downloadserverdata-f4ece38f71ded5eeda94d6a11faf7c9fc03aa56a.tar.gz
serverdata-f4ece38f71ded5eeda94d6a11faf7c9fc03aa56a.tar.bz2
serverdata-f4ece38f71ded5eeda94d6a11faf7c9fc03aa56a.tar.xz
serverdata-f4ece38f71ded5eeda94d6a11faf7c9fc03aa56a.zip
add basic Shovel NPC/item
Diffstat (limited to 'npc')
-rw-r--r--npc/items/shovel.txt34
-rw-r--r--npc/scripts.conf1
2 files changed, 35 insertions, 0 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt
new file mode 100644
index 00000000..e79ead47
--- /dev/null
+++ b/npc/items/shovel.txt
@@ -0,0 +1,34 @@
+// Evol scripts.
+// Authors:
+// Travolta
+// Description:
+// NPC to use shovel (dig, bury etc)
+
+
+- script Shovel -1,{
+
+OnUse:
+ narrator
+ l("You hold the shovel in your hangs."),
+ l("What are you going to do?");
+
+ .@action = select(
+ l("Dig."),
+ l("Bury."),
+ l("Nothing."));
+
+ mes "";
+ switch(.@action)
+ {
+ case 1:
+ narrator l("DIG Not implemented.");
+ break;
+ case 2:
+ narrator l("BURY Not implemented.");
+ break;
+ case 3:
+ narrator l("You hide your shovel.");
+ break;
+ }
+ close;
+}
diff --git a/npc/scripts.conf b/npc/scripts.conf
index 522874d2..d4a606f8 100644
--- a/npc/scripts.conf
+++ b/npc/scripts.conf
@@ -3,6 +3,7 @@
// Item functions
npc: npc/items/croconut.txt
npc: npc/items/oldbook.txt
+npc: npc/items/shovel.txt
// Script functions
npc: npc/functions/asleep.txt