Jump to content

Question about GetName in char.cpp by vnum (GetName(189) for example)


Recommended Posts

Hey guys, is it possible to return the name from a item in char.cpp by vnum? For example.


LC_TEXT("%s was added to your Inventory", GetName(189));


Here is my function :)


const char* CHARACTER::GetName() const
	BYTE bLocale = GetDesc() ? GetDesc()->GetLanguage() : LOCALE_YMIR;
	return m_stName.empty() ? (m_pkMobData ? LC_LOCALE_MOB_TEXT(GetRaceNum(), bLocale) : "") : m_stName.c_str();


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.