Modified announce command to be more blizzlike

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-07-29 15:29:49 +02:00
parent 969bf213b8
commit f3c9767bcf
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -14690,7 +14690,7 @@ LOCK TABLES `trinity_string` WRITE;
INSERT INTO `trinity_string` (`entry`,`content_default`,`content_loc1`,`content_loc2`,`content_loc3`,`content_loc4`,`content_loc5`,`content_loc6`,`content_loc7`,`content_loc8`) VALUES
(1, 'You should select a character or a creature.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(2, 'You should select a creature.', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(3, '|cffff0000[System Message]: %s|r', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(3, '[SERVER] %s', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(4, '|cffff0000[Event Message]: %s|r', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(5, 'There is no help for that command', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(6, 'There is no such command', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
@@ -0,0 +1 @@
UPDATE `trinity_string` SET `content_default`='[SERVER] %s' WHERE `entry`=3;
+3 -1
View File
@@ -164,7 +164,9 @@ bool ChatHandler::HandleAnnounceCommand(const char* args)
if (!*args)
return false;
sWorld.SendWorldText(LANG_SYSTEMMESSAGE,args);
char buff[2048];
sprintf(buff, GetTrinityString(LANG_SYSTEMMESSAGE), args);
sWorld.SendServerMessage(SERVER_MSG_STRING, buff);
return true;
}