feat(Scripts/Commands): Display creature entry when using the npc nea… (#17331)

feat(Scripts/Commands): Display creature entry when using the npc near command
This commit is contained in:
Skjalf
2023-09-24 10:19:00 -03:00
committed by GitHub
parent f7779a8fe4
commit def86cc74e
2 changed files with 5 additions and 8 deletions

View File

@@ -15,13 +15,6 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* ScriptData
Name: npc_commandscript
%Complete: 100
Comment: All npc related commands
Category: commandscripts
EndScriptData */
#include "Chat.h"
#include "CreatureAI.h"
#include "CreatureGroups.h"
@@ -719,7 +712,7 @@ public:
if (!creatureTemplate)
continue;
handler->PSendSysMessage(LANG_CREATURE_LIST_CHAT, guid, guid, creatureTemplate->Name.c_str(), x, y, z, mapId, "", "");
handler->PSendSysMessage(LANG_CREATURE_LIST_CHAT, guid, entry, guid, creatureTemplate->Name.c_str(), x, y, z, mapId, "", "");
++count;
} while (result->NextRow());