diff options
author | Emistry <Equinox1991@gmail.com> | 2016-01-25 23:00:26 +0800 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-02-29 01:52:22 +0100 |
commit | 05a2538114972de94352e66586f6f2a5affea9c6 (patch) | |
tree | f39d3e659d9b3801cc42a7b14e41aeec16c93ddf /npc/other/Global_Functions.txt | |
parent | 75ba7024fe3b68718d0f0a289a68ea0719054d3b (diff) | |
download | hercules-05a2538114972de94352e66586f6f2a5affea9c6.tar.gz hercules-05a2538114972de94352e66586f6f2a5affea9c6.tar.bz2 hercules-05a2538114972de94352e66586f6f2a5affea9c6.tar.xz hercules-05a2538114972de94352e66586f6f2a5affea9c6.zip |
Replaced the SEX_FEMALE/SEX_MALE constants to scripts, where appropriate
Diffstat (limited to 'npc/other/Global_Functions.txt')
-rw-r--r-- | npc/other/Global_Functions.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/npc/other/Global_Functions.txt b/npc/other/Global_Functions.txt index 8f7899555..1e431b7d8 100644 --- a/npc/other/Global_Functions.txt +++ b/npc/other/Global_Functions.txt @@ -160,7 +160,10 @@ function script F_Rand { // Returns 1st argument if female, 2nd argument otherwise // Example: mes callfunc("F_Sex","What a beautiful lady!","What a handsome man!"); function script F_SexMes { - return getarg(Sex); + if (Sex == SEX_MALE) + return getarg(0); + else + return getarg(1); } //== Function F_Hi ========================================= |