View Single Post
  #2  
Old 09-24-2014, 07:13 AM
zerjz3
Banned
 
Join Date: Aug 2010
Location: Sanctuary
Posts: 269
Default

Quote:
Originally Posted by Drajor View Post
I just tested this quickly, you can use strings from eqstr_us.txt for rank.
My level 1 cleric was listed as;
High Priest[1 Cleric] Daaxodush (Human).

Pretty neat.
How exactly did you go about this? I know that the names of the ranks can be edited in eqstr_us.txt , but if I wanted to have two available rank titles for each class, how would I execute this?

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

Code:
if ((level >= 70) 
{
    if ((client) && (client -> GetInv().HasItem(itemID, 0, 0xff)))
    {
            return "UberWarlord";
    }
    else
    {
            return "Warlord";
    }
}
to classes.cpp and compiling, but there were many errors when trying to compile.

Looking for just a little more hand holding here, as I think it seems like this is possible based on what you guys are saying, but just not exactly sure how to execute it yet.


Edit: These are the three errors I get when trying to compile:

Code:
Error	1	error C2065: 'client' : undeclared identifier	C:\EQ\Source\common\classes.cpp	24	1	common
Error	2	error C2227: left of '->GetInv' must point to class/struct/union/generic type	C:\EQ\Source\common\classes.cpp	24	1	common
Error	3	error C2228: left of '.HasItem' must have class/struct/union	C:\EQ\Source\common\classes.cpp	24	1	common
Reply With Quote