Jump to content
  • 0

Pick Log with account_id


XenaNyx

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   8
  • Joined:  02/08/12
  • Last Seen:  

now log update only

`time`, `char_id`, `type`, `nameid`, `amount`, `refine`, `card0`, `card1`, `card2`, `card3`, `map`

i want to insert account_id, when player delete character i can follow form account_id

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   12
  • Joined:  02/02/12
  • Last Seen:  

Add an account_id column to your database, it isn't necessary if you're using txt logs.

ALTER TABLE `picklog` ADD `account_id` int( 11 ) UNSIGNED NOT NULL DEFAULT '0' AFTER `char_id`;

And apply this diff:

http://pastebin.com/PcmXwVSZ

Edited by Wynn_
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   8
  • Joined:  02/08/12
  • Last Seen:  

i try this but have error

: DB error - Incorrect table name 'log/picklog.log'

[Debug]: at log.c:185 - INSERT DELAYED INTO `log/picklog.log` (`time`, `char_id`, `account_id`, `type`, `nameid`, `amount`, `refine`, `card0`, `card1`, `card2`, `card3`, `map`) VALUES (NOW(), '150001', '2000001', 'A', '984', '3', '0', '0', '0', '0', '0', 'payon')

i know problem

must change at

log_athena.conf

// Logging tables/files

// Following settings specify where to log to. If 'sql_logs' is

// enabled, SQL tables are assumed, otherwise flat files.

Edited by ROZEN
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  77
  • Reputation:   3
  • Joined:  03/25/12
  • Last Seen:  

how about a complete account information.

such as

account id, character id, and character name

Link to comment
Share on other sites

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.

×
×
  • Create New...