Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 07-22-2008, 08:09 AM
CodeMephit
Fire Beetle
 
Join Date: Oct 2006
Posts: 18
Default

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
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 06:41 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3