From 5bc0bd0183f7a2d7e6876bf58409ea397e13ad56 Mon Sep 17 00:00:00 2001 From: Reid Date: Fri, 29 Apr 2016 17:14:46 +0200 Subject: Fix the random hair boundary, it could set an unknown hairstyle. --- npc/functions/barber.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npc/functions/barber.txt b/npc/functions/barber.txt index fe4da797..828b86dd 100644 --- a/npc/functions/barber.txt +++ b/npc/functions/barber.txt @@ -47,7 +47,7 @@ function script BarberChangeStyle { case 0: do { - .@rand_hair = rand(1,29); + .@rand_hair = rand(1,28); } while (.@rand_hair == getlook (LOOK_HAIR)); setlook LOOK_HAIR, .@rand_hair; setlook LOOK_HAIR_COLOR, getlook (LOOK_HAIR_COLOR); -- cgit v1.2.3-60-g2f50