summaryrefslogtreecommitdiff
path: root/npc/015-8/puzzle.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-09-03 14:07:53 -0300
committerJesusaves <cpntb1@ymail.com>2019-09-03 14:07:53 -0300
commit4fcbee767848cb0a4b34db504fa0cb30d55dc78d (patch)
treebb7b13be1935ae2769dc4aaf0b6b0644d28b83ae /npc/015-8/puzzle.txt
parent42ff46a168148ceb70bb37431ad4d162429be464 (diff)
downloadserverdata-4fcbee767848cb0a4b34db504fa0cb30d55dc78d.tar.gz
serverdata-4fcbee767848cb0a4b34db504fa0cb30d55dc78d.tar.bz2
serverdata-4fcbee767848cb0a4b34db504fa0cb30d55dc78d.tar.xz
serverdata-4fcbee767848cb0a4b34db504fa0cb30d55dc78d.zip
Use readparam2() instead of readparam() in several places
Diffstat (limited to 'npc/015-8/puzzle.txt')
-rw-r--r--npc/015-8/puzzle.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/npc/015-8/puzzle.txt b/npc/015-8/puzzle.txt
index 9fdd624c5..7417fbe16 100644
--- a/npc/015-8/puzzle.txt
+++ b/npc/015-8/puzzle.txt
@@ -42,7 +42,7 @@ OnTouch:
break;
// Let's climb the wall!
case 2:
- if (readparam(bStr) < 20 || (!countitem(MinerGloves) && !countitem(LeatherGloves))) {
+ if (readparam2(bStr) < 20 || (!countitem(MinerGloves) && !countitem(LeatherGloves))) {
mesc l("You don't have proper equipment for it.");
} else {
mesc l("Taking your sturdy glove, you attempt to walk by the wall! You are betting your life on it!");
@@ -56,7 +56,7 @@ OnTouch:
// We get a bit more than 50% - we take 60%, so your chances are
// higher than jumping... But you need two stats, instead of one!
// (Top will be 120 instead of 100 - thus, 720 out of 640)
- .@ponderate=(readparam(bStr)+readparam(bVit))/100*60;
+ .@ponderate=(readparam2(bStr)+readparam2(bVit))/100*60;
if (rand(0,1000) < 640-(.@ponderate*6)) {
mesc l("But unfortunately, a loose stone lodges and you fall to your death."), 1;
percentheal -100, -100;
@@ -68,7 +68,7 @@ OnTouch:
break;
// Let's run it!
case 3:
- if (readparam(bAgi) < 20 || Weight > 1500) {
+ if (readparam2(bAgi) < 20 || Weight > 1500) {
mesc l("You don't have enough agility / is carrying too much to attempt it.");
} else {
mesc l("You'll give your best and attempt to run!");
@@ -77,7 +77,7 @@ OnTouch:
next;
mesc l("YOU JUMP FOR ALL IT IS WORTH!!");
// (You can always fall as top is 600 of 640)
- if (rand(0,1000) < 640-(readparam(bAgi)*6)) {
+ if (rand(0,1000) < 640-(readparam2(bAgi)*6)) {
mesc l("But unfortunately, it was harder than you thought. You are dead."), 1;
percentheal -100, -100;
close;