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!

[RELEASE]Fix Inventory Weapons name(Client-sided)

Initiate Mage
Joined
Nov 25, 2015
Messages
97
Reaction score
2
First look to:

Code:
ScreenInventory.cpp

and find this code :

Code:
m_pFontWeaponTitle[nSlot]->DrawD3DText((*iter)->szName, lstrlen((*iter)->szName),DT_LEFT,D3D_TEXT_SHADOW );

Above him, its all commented. Uncomment all and comment that line above !

Obs: Has two codes, and is the same. So change both.

Obs2: If you compile and open your game, you will see that the name of weapons are followed by SA_

To remove that, add this line :

Code:
strName.erase(0,3);

before :

Code:
m_pFontWeaponTitle[nSlot]->DrawD3DText(strName.c_str(), lstrlen(strName.c_str()), DT_LEFT,D3D_TEXT_SHADOW   );

And then weapons name will appear.

Remember, this is only client-sided !

Thanks for all !
 
Initiate Mage
Joined
Jul 27, 2017
Messages
9
Reaction score
0
Juunr95 nice!can you make it to show the name of the characters too?
 
Initiate Mage
Joined
Nov 25, 2015
Messages
97
Reaction score
2
Sorry man this tutorial is obsolete. I've found a lot of other ways to do this. I'll make a tutorial here

Enviado de meu LG-K220 usando Tapatalk
 
Back
Top