diff options
author | mekolat <mekolat@gmail.com> | 2014-10-24 15:39:43 -0400 |
---|---|---|
committer | mekolat <mekolat@gmail.com> | 2014-10-25 18:01:05 -0400 |
commit | 0ce5c3ab72899dea6489adff3bbd0eac8f3658ec (patch) | |
tree | bd3455db08019bca24e2312d9f9903cdb12f4158 /world/map/npc/items | |
parent | 8867fbcc8bf39ebdb4dfa6430c60554b4efea80c (diff) | |
download | serverdata-0ce5c3ab72899dea6489adff3bbd0eac8f3658ec.tar.gz serverdata-0ce5c3ab72899dea6489adff3bbd0eac8f3658ec.tar.bz2 serverdata-0ce5c3ab72899dea6489adff3bbd0eac8f3658ec.tar.xz serverdata-0ce5c3ab72899dea6489adff3bbd0eac8f3658ec.zip |
disallow hair 0
Diffstat (limited to 'world/map/npc/items')
-rw-r--r-- | world/map/npc/items/mirror.txt | 4 |
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; |