summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/items/croconut.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/npc/items/croconut.txt b/npc/items/croconut.txt
index dfa008ba2..d6a6026c1 100644
--- a/npc/items/croconut.txt
+++ b/npc/items/croconut.txt
@@ -30,6 +30,7 @@ L_Weapon:
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,
@@ -43,9 +44,17 @@ L_TooWeak:
mesn "Narrator";
.@q = rand(5);
+ if (readparam(bStr) > 30)
+ .@q = .@q + 1;
+ if (readparam(bStr) > 60)
+ .@q = .@q + 1;
+ if (readparam(bStr) > 90)
+ .@q = .@q + 1;
+
if (.@q == 0) goto L_TooWeakLost;
if ( (.@q == 1) || (.@q == 2) ) goto L_TooWeakFail;
- if ( (.@q == 3) || (.@q == 4) || (.@q == 5) ) goto L_Weak;
+ if ( (.@q >= 3) && (.@q <= 6) ) goto L_Weak;
+ if ( (.@q > 6) ) goto L_Good;
L_TooWeakLost:
mes col(l("You hit too hard with your fist, you destroyed your @@.", getitemlink(Croconut)), 9);