View Single Post
  #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