summaryrefslogtreecommitdiff
path: root/world/map/npc/items
diff options
context:
space:
mode:
authorWushin <pasekei@gmail.com>2014-11-01 20:07:51 -0500
committerWushin <pasekei@gmail.com>2014-11-01 20:07:51 -0500
commit04bbfd617fd238f8650b892de350cb24e82ab7d6 (patch)
tree93b86473057d10179ea5756a43b03ec3676fba4c /world/map/npc/items
parent3a5bc4a33708f18dd4d481006337f2ea2e60326e (diff)
parent36c115f9dd3554ad8f4b6461a0f30fd7aaa0825e (diff)
downloadserverdata-04bbfd617fd238f8650b892de350cb24e82ab7d6.tar.gz
serverdata-04bbfd617fd238f8650b892de350cb24e82ab7d6.tar.bz2
serverdata-04bbfd617fd238f8650b892de350cb24e82ab7d6.tar.xz
serverdata-04bbfd617fd238f8650b892de350cb24e82ab7d6.zip
Merge pull request #187 from mekolat/headstyle20
barber & species & headstyles
Diffstat (limited to 'world/map/npc/items')
-rw-r--r--world/map/npc/items/mirror.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/world/map/npc/items/mirror.txt b/world/map/npc/items/mirror.txt
index fc2ca69b..82aeb7a7 100644
--- a/world/map/npc/items/mirror.txt
+++ b/world/map/npc/items/mirror.txt
@@ -4,8 +4,8 @@ function|script|useMirror|,
goto L_Rand;
L_Rand:
- set @style, rand(0,(getarraysize(@HairStyles$) -2));
- set @color, rand((15 * Class),((getarraysize(@HairColors$) -2) + (15 * Class)));
+ set @style, rand(1,(getarraysize(@HairStyles$) -2));
+ set @color, rand((15 * (Class - 1)),((getarraysize(@HairColors$) -2) + (15 * (Class - 1))));
if((getlook(LOOK_HAIR_STYLE) == @style) || (getlook(LOOK_HAIR_COLOR) == @color))
goto L_Rand;
goto L_Proceed;