summaryrefslogtreecommitdiff
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
parent04cd7299905c1578f2c767b632d4771bd3321d93 (diff)
downloadserverdata-f4ece38f71ded5eeda94d6a11faf7c9fc03aa56a.tar.gz
serverdata-f4ece38f71ded5eeda94d6a11faf7c9fc03aa56a.tar.bz2
serverdata-f4ece38f71ded5eeda94d6a11faf7c9fc03aa56a.tar.xz
serverdata-f4ece38f71ded5eeda94d6a11faf7c9fc03aa56a.zip
add basic Shovel NPC/item
-rw-r--r--db/re/item_db.conf6
-rw-r--r--npc/items/shovel.txt34
-rw-r--r--npc/scripts.conf1
3 files changed, 40 insertions, 1 deletions
diff --git a/db/re/item_db.conf b/db/re/item_db.conf
index bb428d52..7f9be932 100644
--- a/db/re/item_db.conf
+++ b/db/re/item_db.conf
@@ -1620,7 +1620,7 @@ item_db: (
Id: 729
AegisName: "IronShovel"
Name: "Iron Shovel"
- Type: "IT_ETC"
+ Type: "IT_USABLE"
Buy: 3000
Sell: 100
Weight: 210
@@ -1640,7 +1640,11 @@ item_db: (
BindOnEquip: false
BuyingStore: true
Delay: 0
+ KeepAfterUse: true
Sprite: 0
+ Script: <"
+ doevent "Shovel::OnUse";
+ ">
},
{
Id: 1300
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