Jump to content
  • 0

Split atcommandlog MySQL Table


Question

Posted

There is a way... to split the Normal Users and GM Players atcommmandlog MySQL database? this is because finding what a GM did in a day takes to much.. i mean i know how to use Querys but.. i think would be better if these db were splited

Baad english :( ..

3 answers to this question

Recommended Posts

Posted

You could only log GM @commands and not player @commands.

trunk/conf/groups.conf

<log_commands>
Boolean value. If true then all commands used by the group will be logged to 
atcommandlog. If setting is omitted in a group definition, false is assumed.
Requires 'log_commands' to be enabled in 'conf/log_athena.conf'.

Set log_commands: false for groups which you don't want @commands to be logged.

Posted

SELECT
atcommandlog.atcommand_date,
atcommandlog.atcommand_id,
atcommandlog.account_id,
atcommandlog.char_id,
atcommandlog.char_name,
atcommandlog.command,
atcommandlog.map
FROM atcommandlog
LEFT JOIN login ON( atcommandlog.account_id = login.account_id )
WHERE login.group_id > '<insert group id here>';

Should solve your problem. ;)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...