summaryrefslogtreecommitdiff
path: root/npc/items/croconut.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-04 18:12:10 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-04 18:12:10 -0300
commitce895dd8b73cab254cef5e7772485db8d37d7a3a (patch)
tree769fe93097e4170667ccdc36c9ff39ccdf5fbc8e /npc/items/croconut.txt
parenta9222cade81e4a0bd3c4720e15b7d1dad4184a8d (diff)
downloadserverdata-ce895dd8b73cab254cef5e7772485db8d37d7a3a.tar.gz
serverdata-ce895dd8b73cab254cef5e7772485db8d37d7a3a.tar.bz2
serverdata-ce895dd8b73cab254cef5e7772485db8d37d7a3a.tar.xz
serverdata-ce895dd8b73cab254cef5e7772485db8d37d7a3a.zip
PiouSlayer → BugSlayer
Also rewrite Coconut opening script
Diffstat (limited to 'npc/items/croconut.txt')
-rw-r--r--npc/items/croconut.txt34
1 files changed, 14 insertions, 20 deletions
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;