From ce895dd8b73cab254cef5e7772485db8d37d7a3a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 4 Jun 2018 18:12:10 -0300 Subject: PiouSlayer → BugSlayer Also rewrite Coconut opening script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- npc/items/croconut.txt | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) (limited to 'npc/items') diff --git a/npc/items/croconut.txt b/npc/items/croconut.txt index d6a6026c1..aef6b1af9 100644 --- a/npc/items/croconut.txt +++ b/npc/items/croconut.txt @@ -2,12 +2,9 @@ // Authors: // 4144 // Reid +// Jesusalva // Description: // Allows to cut a Croconut in multiple parts. -// -// Possible choices for L_Weapon: -// rif(countitem(35xx), l(getitemname(xx))), L_Weak, -// rif(countitem(35yy), l(getitemname(yy))), L_Good, 000-0,0,0,0 script Croconut NPC_HIDDEN,{ close; @@ -25,19 +22,17 @@ OnUse: 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); - next; - - // ToDo this must be replaced - menu - rif(countitem(Knife) > 0, l(getitemname(Knife))), L_Weak, - rif(countitem(PiouSlayer) > 0, l(getitemname(PiouSlayer))), L_Weak, - rif(countitem(TrainingGladius) > 0, l(getitemname(TrainingGladius))), L_Good, - rif(countitem(WoodenSword) > 0, l(getitemname(WoodenSword))), L_Weak, - rif(countitem(ArtisBacksword) > 0, l(getitemname(ArtisBacksword))), L_Good, - l("Bare Hands"), -; + .@r=rand(1,5); + switch (.@r) { + case 1: + case 2: + case 3: + goto L_TooWeak; break; + case 4: + goto L_Weak; break; + case 5: + goto L_Good; break; + } L_TooWeak: mes ""; @@ -57,12 +52,11 @@ L_TooWeak: if ( (.@q > 6) ) goto L_Good; L_TooWeakLost: - mes col(l("You hit too hard with your fist, you destroyed your @@.", getitemlink(Croconut)), 9); - + mes col(l("Ops! You destroyed your @@.", getitemlink(Croconut)), 9); close; L_TooWeakFail: - mes col(l("Your hands are too weak, you did not succeed in opening this @@.", getitemlink(Croconut)), 9); + mes col(l("Well... you did not succeed in opening this @@.", getitemlink(Croconut)), 9); getitem Croconut, 1; close; -- cgit v1.2.3-60-g2f50