Cornwallis
Member
- Joined
- Jan 3, 2010
- Messages
- 480
- Reaction score
- 16
I'm using 0.2.14, and I'm trying to add a LUA function, getPlayerRebirths(cid). I have rebirths as a field in my SQL database, and I'm trying to make this return how many rebirths the player has. I tried to do it like the getPlayerLevel, but there was an error on compiling. Then I tried doing it like the getPlayerSex, basically because the tibia client doesn't have the players sex anywhere on it. I figured maybe the getPlayerLevel gets the level from the tibia client because that would be quicker than checking the database, but I could, and probably are, wrong. But I'm not sure where everything's located because for the getPlayerSex, it returns getSex, then getSex returns Sex, and i just don't know where it actually finds if your sex is = 1 or 2 is lol, so if someone could give me some help with this that would be great.