diff options
-rw-r--r-- | db/re/item_db.conf | 6 | ||||
-rw-r--r-- | npc/items/shovel.txt | 34 | ||||
-rw-r--r-- | npc/scripts.conf | 1 |
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 |