aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSpp <none@none>2010-04-27 09:45:43 +0200
committerSpp <none@none>2010-04-27 09:45:43 +0200
commit90f38341f05de2d517bc72d97672165dc3f5eb54 (patch)
tree29954743f430b9d2fba1c80a35f0855d9bc5d4a3 /src
parent31318eabfd3cced297af21af701cc7549c3d440f (diff)
Implement Opcode SMSG_CORPSE_NOT_IN_INSTANCE
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/MapManager.cpp4
-rw-r--r--src/game/Opcodes.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/game/MapManager.cpp b/src/game/MapManager.cpp
index a86bb910c20..49aba69a8c1 100644
--- a/src/game/MapManager.cpp
+++ b/src/game/MapManager.cpp
@@ -35,6 +35,7 @@
#include "Corpse.h"
#include "ObjectMgr.h"
#include "Language.h"
+#include "WorldPacket.h"
#define CLASS_LOCK Trinity::ClassLevelLockable<MapManager, ACE_Thread_Mutex>
INSTANTIATE_SINGLETON_2(MapManager, CLASS_LOCK);
@@ -215,7 +216,8 @@ bool MapManager::CanPlayerEnter(uint32 mapid, Player* player)
if (!instance_map)
{
- player->GetSession()->SendAreaTriggerMessage(player->GetSession()->GetTrinityString(811), mapName);
+ WorldPacket data(SMSG_CORPSE_NOT_IN_INSTANCE);
+ player->GetSession()->SendPacket(&data);
sLog.outDebug("MAP: Player '%s' doesn't has a corpse in instance '%s' and can't enter", player->GetName(), mapName);
return false;
}
diff --git a/src/game/Opcodes.h b/src/game/Opcodes.h
index 583d39932fb..c08c0284888 100644
--- a/src/game/Opcodes.h
+++ b/src/game/Opcodes.h
@@ -1322,7 +1322,7 @@ enum Opcodes
UMSG_UNKNOWN_1283 = 0x503,
UMSG_UNKNOWN_1284 = 0x504,
UMSG_UNKNOWN_1285 = 0x505,
- SMSG_UNKNOWN_1286 = 0x506, // ERR_CORPSE_IS_NOT_IN_INSTANCE = 0x1A8,
+ SMSG_CORPSE_NOT_IN_INSTANCE = 0x506,
UMSG_UNKNOWN_1287 = 0x507, // not found
CMSG_UNKNOWN_1288 = 0x508, // lua: SetAllowLowLevelRaid
CMSG_UNKNOWN_1289 = 0x509, // lua: SetAllowLowLevelRaid