aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent_Michael <Vincent_Michael@gmx.de>2013-03-09 22:34:46 +0100
committerVincent_Michael <Vincent_Michael@gmx.de>2013-03-09 22:34:46 +0100
commit65b16a97bee09e9c5114a35be7b0122987d249e1 (patch)
tree5d42618930add2f230969b05e02a7cd515c102a4
parentce0add2121222f362537fff3f680d32cd55afe02 (diff)
Core/Commands: Add unit flags 2 for .npc info
-rw-r--r--sql/updates/world/2013_03_09_04_world_trinity_string.sql4
-rw-r--r--src/server/scripts/Commands/cs_npc.cpp2
2 files changed, 5 insertions, 1 deletions
diff --git a/sql/updates/world/2013_03_09_04_world_trinity_string.sql b/sql/updates/world/2013_03_09_04_world_trinity_string.sql
new file mode 100644
index 00000000000..dea2a044c99
--- /dev/null
+++ b/sql/updates/world/2013_03_09_04_world_trinity_string.sql
@@ -0,0 +1,4 @@
+UPDATE `trinity_string` SET `content_default`='Unit Flags: %u.
+Unit Flags 2: %u.
+Dynamic Flags: %u.
+Faction Template: %u.' WHERE `entry`=542;
diff --git a/src/server/scripts/Commands/cs_npc.cpp b/src/server/scripts/Commands/cs_npc.cpp
index 0d898ed45c2..79a74b0823d 100644
--- a/src/server/scripts/Commands/cs_npc.cpp
+++ b/src/server/scripts/Commands/cs_npc.cpp
@@ -647,7 +647,7 @@ public:
handler->PSendSysMessage(LANG_NPCINFO_LEVEL, target->getLevel());
handler->PSendSysMessage(LANG_NPCINFO_EQUIPMENT, target->GetCurrentEquipmentId(), target->GetOriginalEquipmentId());
handler->PSendSysMessage(LANG_NPCINFO_HEALTH, target->GetCreateHealth(), target->GetMaxHealth(), target->GetHealth());
- handler->PSendSysMessage(LANG_NPCINFO_FLAGS, target->GetUInt32Value(UNIT_FIELD_FLAGS), target->GetUInt32Value(UNIT_DYNAMIC_FLAGS), target->getFaction());
+ handler->PSendSysMessage(LANG_NPCINFO_FLAGS, target->GetUInt32Value(UNIT_FIELD_FLAGS), target->GetUInt32Value(UNIT_FIELD_FLAGS_2), target->GetUInt32Value(UNIT_DYNAMIC_FLAGS), target->getFaction());
handler->PSendSysMessage(LANG_COMMAND_RAWPAWNTIMES, defRespawnDelayStr.c_str(), curRespawnDelayStr.c_str());
handler->PSendSysMessage(LANG_NPCINFO_LOOT, cInfo->lootid, cInfo->pickpocketLootId, cInfo->SkinLootId);
handler->PSendSysMessage(LANG_NPCINFO_DUNGEON_ID, target->GetInstanceId());