diff options
Diffstat (limited to 'example/scripts/npcs/banker.lua')
-rw-r--r-- | example/scripts/npcs/banker.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/scripts/npcs/banker.lua b/example/scripts/npcs/banker.lua index 4d5dda12..ce352a0c 100644 --- a/example/scripts/npcs/banker.lua +++ b/example/scripts/npcs/banker.lua @@ -11,9 +11,9 @@ ---------------------------------------------------------------------------------- function Banker(npc, ch) - if being_get_gender(ch) == GENDER_MALE then + if ch:gender() == GENDER_MALE then say("Welcome to the bank, sir!") - elseif being_get_gender(ch) == GENDER_FEMALE then + elseif ch:gender() == GENDER_FEMALE then say("Welcome to the bank, madam!") else say("Welcome to the bank... uhm... person of unspecified gender!") |