From a860d9a123cf99989854aa492b76da9e3d199afc Mon Sep 17 00:00:00 2001 From: Reid Date: Sat, 22 Dec 2012 11:11:26 +0100 Subject: Correct various bugs on croconut item function Add Piou Slayer in this same function. --- npc/items/croconut.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'npc') diff --git a/npc/items/croconut.txt b/npc/items/croconut.txt index d4f3a729..a17c7013 100644 --- a/npc/items/croconut.txt +++ b/npc/items/croconut.txt @@ -13,24 +13,25 @@ OnUse: mesn "Narrator"; - mes col(l("Do you want to cut this @@?", getitemlink(Croconut)), 9); + mes col(l("Do you want to cut this @@?", getitemlink("Croconut")), 9); next; menu l("Yes."), L_Weapon, l("No."), -; - getitem Croconut, 1, 1; + getitem "Croconut", 1; close; L_Weapon: mes ""; mesn "Narrator"; - mes col(l("Which of your weapons do you want to use in order to cut this @@?", getitemlink(Croconut)), 9); + mes col(l("Which of your weapons do you want to use in order to cut this @@?", getitemlink("Croconut")), 9); next; menu - rif(countitem(Knife, 1), l(getitemname("Knife"))), L_Weak, + rif(countitem("Knife") > 0, l(getitemname("Knife"))), L_Weak, + rif(countitem("PiouSlayer") > 0, l(getitemname("PiouSlayer"))), L_Weak, l("Bare Hands"), -; L_TooWeak: -- cgit v1.2.3-70-g09d2