I could use a little guidance on variable usage please.
I have added the following line to \EQEmu-0.7.0-1118\zone\client_packet.cpp just before a character eats:
Code:
Message(13, "My current race is: ");
This will print a message in the client chat window.
I then began changing it to print the 'race' variable. I have tried:
Code:
Message(13, m_pp.race);
Message(13, pp.race);
Message(13, race);
In hopes of printing the 'race' variable to the chat window. The pourpose of this is so that I have an idea what to test for. At the present, I don't know if race is stored as a number (ie. Human=1, Elf=2, Dwarf=3) or if it is stored as a string (ie. Human="HUMAN", Elf="ELF", Dwarf="DWARF"). I also don't exactly know the name of the variable that holds the race value.
None of the above attempts would work. I have also seen in other code where things like the following were used:
Code:
scs->zone_id
zone->GetZoneID()
Maybe I need to use the -> thing to point to where the race variable is?
If anyone happens to know and can point me in the right direction, I would be *very* appreciative.
Thanks
-Codemephit