Go Back   EQEmulator Home > EQEmulator Forums > Development > Development: Custom Code

Development: Custom Code This is for code thatdoes not emulate live and wont be added to the official code.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 09-24-2014, 07:39 AM
Drajor's Avatar
Drajor
Developer
 
Join Date: Nov 2012
Location: Halas
Posts: 355
Default

Quote:
Did you use the method written out by jdoran to do this or did you simply edit something in eqstr_us.txt? I tried adding this code
Neither. See EntityList::zoneWho, specifically;
Code:
if (ClientEntry->IsTrader())
	WAPP2->RankMSGID = 12315;
else if (ClientEntry->IsBuyer())
	WAPP2->RankMSGID = 6056;
else if (ClientEntry->Admin() >= 10)
	WAPP2->RankMSGID = 12312;
else
	WAPP2->RankMSGID = 0xFFFFFFFF;
The RankMSGID corresponds to a string ID from eqstr_us.txt. You could add more conditions there for detecting an item or whatever. If you check the hard coded IDs currently in use you find;

12315 TRADER
6056 BUYER
12312 * GM *

Based on my limited tests you can use any valid string ID. Note that this only applies to local zone who, not who all which happens in different place.
__________________
Drajor regards you indifferently -- what would you like your tombstone to say?
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 05:52 AM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3