From ce2d63e4aeddca0781c2eef764a6df0154f561fc Mon Sep 17 00:00:00 2001 From: KingPin Date: Wed, 29 Oct 2008 17:09:32 -0500 Subject: [svn] * Added npc follow, waterwalk, repairitems commands. Patch by dythzer * Prevent adding more than 5 people to raid - Apoc * fixed typo from one of our previous commits. * Fixed two strings in core, thanx to warhead for patch. --HG-- branch : trunk --- src/game/MapManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/MapManager.cpp') diff --git a/src/game/MapManager.cpp b/src/game/MapManager.cpp index e80cab60144..86206fef49b 100644 --- a/src/game/MapManager.cpp +++ b/src/game/MapManager.cpp @@ -165,7 +165,7 @@ bool MapManager::CanPlayerEnter(uint32 mapid, Player* player) { // probably there must be special opcode, because client has this string constant in GlobalStrings.lua // TODO: this is not a good place to send the message - player->GetSession()->SendAreaTriggerMessage("You must be in a raid group to enter %s instance", mapName); + player->GetSession()->SendAreaTriggerMessage(player->GetSession()->GetTrinityString(810), mapName); sLog.outDebug("MAP: Player '%s' must be in a raid group to enter instance of '%s'", player->GetName(), mapName); return false; } @@ -197,7 +197,7 @@ bool MapManager::CanPlayerEnter(uint32 mapid, Player* player) if (!instance_map) { - player->GetSession()->SendAreaTriggerMessage("You cannot enter %s while in a ghost mode", mapName); + player->GetSession()->SendAreaTriggerMessage(player->GetSession()->GetTrinityString(811), mapName); sLog.outDebug("MAP: Player '%s' doesn't has a corpse in instance '%s' and can't enter", player->GetName(), mapName); return false; } -- cgit v1.2.3