mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[11565] Output guid string instead low guid only for .npc info
Command can be used not only with plain creatures and just low guid not describe propertly target.
This commit is contained in:
parent
59bd6947dd
commit
2dbc5b219a
5 changed files with 14 additions and 7 deletions
|
|
@ -4111,11 +4111,11 @@ bool ChatHandler::HandleNpcInfoCommand(char* /*args*/)
|
|||
break;
|
||||
|
||||
if (diff < MAX_DIFFICULTY)
|
||||
PSendSysMessage(LANG_NPCINFO_CHAR_DIFFICULTY, target->GetGUIDLow(), faction, npcflags,
|
||||
PSendSysMessage(LANG_NPCINFO_CHAR_DIFFICULTY, target->GetGuidStr().c_str(), faction, npcflags,
|
||||
Entry, target->GetCreatureInfo()->Entry, diff,
|
||||
displayid, nativeid);
|
||||
else
|
||||
PSendSysMessage(LANG_NPCINFO_CHAR, target->GetGUIDLow(), faction, npcflags, Entry, displayid, nativeid);
|
||||
PSendSysMessage(LANG_NPCINFO_CHAR, target->GetGuidStr().c_str(), faction, npcflags, Entry, displayid, nativeid);
|
||||
|
||||
PSendSysMessage(LANG_NPCINFO_LEVEL, target->getLevel());
|
||||
PSendSysMessage(LANG_NPCINFO_HEALTH,target->GetCreateHealth(), target->GetMaxHealth(), target->GetHealth());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue