Commands: lookup player shows which character is online
Port From (https://github.com/TrinityCore/TrinityCore/commit/)
This commit is contained in:
@@ -1049,8 +1049,9 @@ namespace Game.Chat
|
||||
{
|
||||
ObjectGuid guid = ObjectGuid.Create(HighGuid.Player, result2.Read<ulong>(0));
|
||||
string name = result2.Read<string>(1);
|
||||
bool online = result2.Read<bool>(2);
|
||||
|
||||
handler.SendSysMessage(CypherStrings.LookupPlayerCharacter, name, guid.ToString());
|
||||
handler.SendSysMessage(CypherStrings.LookupPlayerCharacter, name, guid.ToString(), online ? handler.GetCypherString(CypherStrings.Online) : "");
|
||||
++counter;
|
||||
}
|
||||
while (result2.NextRow() && (limit == -1 || counter < limit));
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
-- Show if player is online in lookup player commands
|
||||
DELETE FROM `trinity_string` WHERE `entry` = '48';
|
||||
INSERT INTO `trinity_string` (`entry`, `content_default`) VALUES ('48', '(online)');
|
||||
UPDATE `trinity_string` SET `content_default` = ' %s (%s) %s' WHERE (`entry` = '329');
|
||||
Reference in New Issue
Block a user