summaryrefslogtreecommitdiff
path: root/npc/items/croconut.txt
diff options
context:
space:
mode:
authorjesusalva <cpntb1@ymail.com>2018-03-01 20:14:51 -0300
committerjesusalva <cpntb1@ymail.com>2018-03-01 20:15:16 -0300
commita2293899b18aac380aa1825c0b88a5396012394c (patch)
treeb12ee857bbff3793fd51e0500aab185301b3fa78 /npc/items/croconut.txt
parent120a0fe3b103afc7c5e6d0569aadd369cff1e1d5 (diff)
downloadserverdata-a2293899b18aac380aa1825c0b88a5396012394c.tar.gz
serverdata-a2293899b18aac380aa1825c0b88a5396012394c.tar.bz2
serverdata-a2293899b18aac380aa1825c0b88a5396012394c.tar.xz
serverdata-a2293899b18aac380aa1825c0b88a5396012394c.zip
Change croconut break-by-str rule
Diffstat (limited to 'npc/items/croconut.txt')
-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);