Implement Opcode SMSG_CORPSE_NOT_IN_INSTANCE
--HG-- branch : trunk
This commit is contained in:
@@ -35,6 +35,7 @@
|
|||||||
#include "Corpse.h"
|
#include "Corpse.h"
|
||||||
#include "ObjectMgr.h"
|
#include "ObjectMgr.h"
|
||||||
#include "Language.h"
|
#include "Language.h"
|
||||||
|
#include "WorldPacket.h"
|
||||||
|
|
||||||
#define CLASS_LOCK Trinity::ClassLevelLockable<MapManager, ACE_Thread_Mutex>
|
#define CLASS_LOCK Trinity::ClassLevelLockable<MapManager, ACE_Thread_Mutex>
|
||||||
INSTANTIATE_SINGLETON_2(MapManager, CLASS_LOCK);
|
INSTANTIATE_SINGLETON_2(MapManager, CLASS_LOCK);
|
||||||
@@ -215,7 +216,8 @@ bool MapManager::CanPlayerEnter(uint32 mapid, Player* player)
|
|||||||
|
|
||||||
if (!instance_map)
|
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);
|
sLog.outDebug("MAP: Player '%s' doesn't has a corpse in instance '%s' and can't enter", player->GetName(), mapName);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1322,7 +1322,7 @@ enum Opcodes
|
|||||||
UMSG_UNKNOWN_1283 = 0x503,
|
UMSG_UNKNOWN_1283 = 0x503,
|
||||||
UMSG_UNKNOWN_1284 = 0x504,
|
UMSG_UNKNOWN_1284 = 0x504,
|
||||||
UMSG_UNKNOWN_1285 = 0x505,
|
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
|
UMSG_UNKNOWN_1287 = 0x507, // not found
|
||||||
CMSG_UNKNOWN_1288 = 0x508, // lua: SetAllowLowLevelRaid
|
CMSG_UNKNOWN_1288 = 0x508, // lua: SetAllowLowLevelRaid
|
||||||
CMSG_UNKNOWN_1289 = 0x509, // lua: SetAllowLowLevelRaid
|
CMSG_UNKNOWN_1289 = 0x509, // lua: SetAllowLowLevelRaid
|
||||||
|
|||||||
Reference in New Issue
Block a user