• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] [Trinitycore] How to get rid of .pinfo useless text ?

Status
Not open for further replies.

Tommy

Founder
Inside of Language.h file you can find the Ids associated with pinfo. Go into trinity_strings table in your world database and search for the strings via Language pInfo data type values.

Example:

LANG_PINFO_PLAYER = 453

I will go into trinity_strings table and search for 453:

http://prntscr.com/5id69g

You can edit the string value to your liking, however, "%s, %u, etc" can't be removed unless you remove the actual argument it is trying to get via pinfo code. You can do this by going into cs_misc.cpp under HandlePInfoCommand and find the correct LANG data type you want to edit. Let's start with LANG_PINFO_PLAYER inside of its PSendSysMessage. LANG_PINFO_PLAYER has three arguments "ÔöéPlayer %s %s (guid: %u)". If I were to remove the player name string via trinity_strings table I will need to remove it in the code too:

To remove (IN LIME):
Code:
handler->PSendSysMessage(LANG_PINFO_PLAYER, target ? "" : handler->GetTrinityString(LANG_OFFLINE), [COLOR="#00FF00"]nameLink.c_str()[/COLOR], targetGuid.ToString().c_str());

Should look like this now:

Code:
handler->PSendSysMessage(LANG_PINFO_PLAYER, target ? "" : handler->GetTrinityString(LANG_OFFLINE), targetGuid.ToString().c_str());

And the trinity_string LANG_PINFO_PLAYER value should look like:

"ÔöéPlayer %s (guid: %u)"

Hope this helped.
 

darksoke

OnTop500
Well it was enough to remove that symbols from trinity strings :) and now it worl like a charm :D thank you
 
Status
Not open for further replies.
Top