Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Share] ItemID & GenID

Initiate Mage
Joined
Dec 30, 2022
Messages
17
Reaction score
20
A little and easy share. I know everyone has this function. I just wanted to share to others that doesn't have this one. I'm using Juver Source for this Function.

How is this gonna work?:oops:
- GenID will show if the Item has GenID
- Only GM Accounts can see the ItemID & GenID

So how you gonna put it into your server?

Open UIItemInfoLoader.cpp

Find:
Code:
SITEM* pItemData = GLItemMan::GetInstance().GetItem ( sItemCustom.sNativeID );

Paste this Code Below:
Code:
// Added GenID & ItemID | LuciFXServer | 4/14/23
    CString strItemID,strGen;
    strItemID.Format("ID:[%03d_%03d]", sItemCustom.sNativeID.wMainID, sItemCustom.sNativeID.wSubID  );
    strGen.Format("GenID:[%d] ", pItemData->sGenerateOp.dwSpecID  );


    DWORD dwUSERLVL = GLGaeaClient::GetInstance().GetCharacter()->m_dwUserLvl;
    if ( dwUSERLVL > 1  )
    {
        AddTextNoSplit ( strItemID, NS_UITEXTCOLOR::PRIVATE );
        if ( pItemData->sGenerateOp.dwSpecID ) AddTextNoSplit ( strGen, pItemData->sGenerateOp.bGenEnable ? NS_UITEXTCOLOR::ENABLE : NS_UITEXTCOLOR::DISABLE );
          
    }

Credits:
Juver
and the people who did this. I just revised it.
 
Computers are fast; programmers keep it slow.
[VIP] Member
Joined
Feb 15, 2016
Messages
413
Reaction score
265
For further enhancement instead of:
Code:
if ( dwUSERLVL > 1  )

You can use:
Code:
if ( dwUSERLVL > USER_GM3  )

This way the checking of dwUSERLVL is the same as the GM Commands under dxincommand.cpp

Take it or leave it.
 
Back
Top