From a36fd4479a22281ea6e9d03e434d5dc6768f6c5a Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Tue, 8 Feb 2011 18:15:08 +0100 Subject: Implemented LUA binding to get the gender of a character The function is named mana.chr_get_gender. It returns 0 for male and 1 for female. libmana-constants.lua defines the variables GENDER_MALE and GENDER_FEMALE with these values. Also made the banker NPC refer to the gender of the player character. Reviewed-by: Jaxad0127 --- scripts/lua/libmana-constants.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/lua') diff --git a/scripts/lua/libmana-constants.lua b/scripts/lua/libmana-constants.lua index 227b93fb..f2140125 100644 --- a/scripts/lua/libmana-constants.lua +++ b/scripts/lua/libmana-constants.lua @@ -101,3 +101,6 @@ EMOTE_UPSET = 10010; EMOTE_PERTURBED = 10011; EMOTE_SPEECH = 10012; EMOTE_BLAH = 10013; + +GENDER_MALE = 0; +GENDER_FEMALE = 1; -- cgit v1.2.3-70-g09d2