PDA

View Full Version : High Priestesses


Baron Sprite
05-01-2002, 06:23 PM
Don't have access to all the source, but I have s classes.cpp and a few others... I was wondering, would anything like this work out? dunno if gender is based on 1/0 or male/female. Oh well guess I will mess around when I get home, was just a little feature that bugged me in eq. Lalala :rolleyes:

case CLERIC:
if (level >= 60 && gender == 1)
return "High Priestess";
else if (level >= 60 && gender == 0)
return "High Priest";
else if (level >= 55)
return "Templar";
else if (level >= 51)
return "Vicar";
else
return "Cleric";

DeletedUser
05-02-2002, 12:51 AM
0 = male, 1 = female:)

You would just need to change the function in classes.cpp, to tell it to read a 3rd parameter (gender), and you would be fine.

theCoder
05-02-2002, 07:42 AM
if (level >= 60 && gender == 01)
return "High Priestess";
else if (level >= 60 && gender == 00)
return "High Priest";


Not that it matters here, but when you prefix a number in c/c++ with 0, the compiler treats it as an octal number. So if you wrote 010, it would be treated as 8. It doesn't matter here because 01 is still 1 and 00 is still 0. But just be forewarned :)

(you probably won't do this on accident, but to represent numbers as hexadedimal, you prefix them with 0x, so 0xa is 10)

Baron Sprite
05-02-2002, 08:30 AM
yeah I was just saying in general :D I know all about the evil doings of Hex. ;) Hm I think I will do that when I get home from work today :p

Everdude02
05-02-2002, 09:31 AM
Preistesses and Preists... good idea Baron. :)

Waeric
05-03-2002, 04:17 AM
Wiz needed some help on this so I added it last night, I kinda like it =)

Baron Sprite
05-03-2002, 09:53 AM
Finished all the code, will post tonight or tomorrow morning :D For every class that has a male name... also did it for normal names if they needed it, yay :)

(yes I know it's minor and stupid, but I like it :p)

theCoder
05-03-2002, 12:45 PM
yes I know it's minor and stupid, but I like it

It's those minor things that added together will make this EMU better than Verant's real server.

Thanks for adding this!