From f4ece38f71ded5eeda94d6a11faf7c9fc03aa56a Mon Sep 17 00:00:00 2001 From: Joseph Botosh Date: Thu, 24 Sep 2015 04:09:14 +0300 Subject: add basic Shovel NPC/item --- npc/items/shovel.txt | 34 ++++++++++++++++++++++++++++++++++ npc/scripts.conf | 1 + 2 files changed, 35 insertions(+) create mode 100644 npc/items/shovel.txt (limited to 'npc') 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 -- cgit v1.2.3-70-g09d2