This logs the players name next to their chat each time they type some thing in text..
Vary usful for admins, who want to know whats being texted in their server.
The chat log will be in a new folder named PlayerChatLog, in the live or public-test game folder, depending on where you stalled it..
//==============================================================================
// Chat Logging Mod, created by Defender
// Version 3-15-2013
// Add, $Host::ChatLogging = 1; to your config to enable
//==============================================================================
Download>>> http://tribalcombat.com/misc/chatLoggingMod.zip
Place the zip in the game folder you run your server from.
To install just place the chatLoggingMod.zip in your Legions Overdrive live or public-test/mods/autoexec
Add, $Host::ChatLogging = 1; to your config to enable
Or make a new scripts file named ChatLoggingMod.cs
Then copy and past this code below in it, and place the new ChatLoggingMod.cs in your mod folder, same as above.
Vary usful for admins, who want to know whats being texted in their server.
The chat log will be in a new folder named PlayerChatLog, in the live or public-test game folder, depending on where you stalled it..
//==============================================================================
// Chat Logging Mod, created by Defender
// Version 3-15-2013
// Add, $Host::ChatLogging = 1; to your config to enable
//==============================================================================
Download>>> http://tribalcombat.com/misc/chatLoggingMod.zip
Place the zip in the game folder you run your server from.
To install just place the chatLoggingMod.zip in your Legions Overdrive live or public-test/mods/autoexec
Add, $Host::ChatLogging = 1; to your config to enable
Or make a new scripts file named ChatLoggingMod.cs
Then copy and past this code below in it, and place the new ChatLoggingMod.cs in your mod folder, same as above.
Code:
//==============================================================================
// Chat Logging Mod, created by Defender
// Version 3-15-2013
// Add, $Host::ChatLogging = 1; to your config to enable
//==============================================================================
function chatMessageAll(%sendingCL, %msgString)
{
if ((%msgString $= "") || spamAlert(%sendingCL))
return;
if(MuteList::isMuted(%sendingCL)) {
chatMessageClient(%sendingCL, "", "You have been muted.", false);
return;
}
%count = ClientGroup.getCount();
for (%i = 0; %i < %count; %i++)
{
%recipientCL = ClientGroup.getObject(%i);
chatMessageClient(%recipientCL, %sendingCL, %msgString, false);
}
// -----------------------------------------------------------------------------
// Chat Logging Mod
ChatLog(%sendingCL, %msgString, true);
}
// -----------------------------------------------------------------------------
// Chat Logging Mod
// -----------------------------------------------------------------------------
function ChatLog(%sendingCL, %msgString){
if($Host::ChatLogging)
%name = %sendingCL.playerInfo.name;
$ChatLog = %name SPC getsimtime() @ ": " @ stripchars(%msgString,"\cp\co\c6\c7\c8\c9");
export("$ChatLog", "PlayerChatLog/PlayerChatLog.cs", true);
}
// -----------------------------------------------------------------------------