Lineage 2 Tower Forum

Full Version: L2tower is sending ur database watch out
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(11-16-2012 19:08 PM)ClockMan Wrote: [ -> ]
(11-16-2012 15:48 PM)kerberos464 Wrote: [ -> ]my chat folder contains about 9500 files in about 29 gb... poor l2tower developers, they have to read all these =)
you can turn it off in logSettings.txt
of course, i will NOT turn it off Smile i like to analyze logs sometimes.
tell you more, i have created plugin to log chats according to my needs.
(11-16-2012 20:03 PM)kerberos464 Wrote: [ -> ]of course, i will NOT turn it off Smile i like to analyze logs sometimes.
tell you more, i have created plugin to log chats according to my needs.

now you have me curious just what plugins are you running to get what kind of information?
(11-16-2012 23:22 PM)nadmaster101 Wrote: [ -> ]
(11-16-2012 20:03 PM)kerberos464 Wrote: [ -> ]of course, i will NOT turn it off Smile i like to analyze logs sometimes.
tell you more, i have created plugin to log chats according to my needs.

now you have me curious just what plugins are you running to get what kind of information?

for chat logging i use this one:

    LUA Programming
ChatTypesToSkip = {
--0, -- general (white)
1, -- shout
--2, -- pm
--3, -- party
8, -- trade
10, -- announcements
17, -- hero
22, -- npc
23 -- npc
}
 
LoginTime = os.date("%Y-%m-%d__%H-%M-%S")
 
function CheckIfInsideList(smsg,rmsglist)
for x,y in pairs(rmsglist) do
	if (y == smsg) then
 return true;
	end;
end;
return false;
end;
 
function OnChatUserMessage(chatType, nick, msg)
	if (CheckIfInsideList(chatType,ChatTypesToSkip) == false) then
 local file = io.open(GetDir() .. "_chat\\" .. LoginTime .. "__" .. GetMe():GetName() .. ".txt", "a")
 file:write(os.date("%Y-%m-%d %H:%M:%S") .. " | " .. chatType .. "\t| " .. nick .. "\t| " .. msg .. "\n");
 file:close();
	end;
end;

Pages: 1 2
Reference URL's