From 44862dca9b6f26513f23ea1fd79365c7a8d33d9e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 1 Jun 2019 21:30:02 -0300 Subject: Use rand2() instead of rand() in several places --- npc/functions/nurse.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'npc/functions/nurse.txt') diff --git a/npc/functions/nurse.txt b/npc/functions/nurse.txt index 0e6b0b4b4..7335c74f6 100644 --- a/npc/functions/nurse.txt +++ b/npc/functions/nurse.txt @@ -27,7 +27,7 @@ function script Nurse { mesn getarg(0); // Random message - .@temp = rand(1,4); + .@temp = rand2(1,4); switch (.@temp) { case 1: mesq l("You don't look too well; let me treat your wounds."); @@ -72,7 +72,7 @@ function script Nurse { sc_end(SC_SLOWPOISON); percentheal 100,100; // We can also use "recovery()" but that revives players :o mesn getarg(0); - @temp = rand(1,4); + @temp = rand2(1,4); if(@temp == 1) mesq l("Here you go!"); if(@temp == 2) mesq l("Painless, wasn't it?"); if(@temp == 3) mesq l("You should be more careful."); -- cgit v1.2.3-60-g2f50