Jump to content
  • 0
Sign in to follow this  
Nameleszx

Trade logs in web page mode

Question

2 answers to this question

Recommended Posts

  • 0

The server only has picklogs to work as tradelogs, assuming you have enabled them in the configuration.

Those logs are found at your logs database under the pickog table with type 'T'

 

Working with tradelogs as it is is a slightly complex issue, since logs only save "half" of the deal (aka player X gave *someone else* item Y or player X received from *someone else* item Y), but the tables currently do not support identifying the other half of the deal, so it ends up as being pretty hard to do link trades.

 

You'd most likely have to do:

1.- Query for trades of player X

2.- Fetch the specific trade you'd like more info

3.- Search for trades over the specific time and map (assuming it wasnt @trade'd)

Share this post


Link to post
Share on other sites
  • 0

From my experience, whole trade is logged as two consecutive rows (ids) in picklog, so if you found one part, you only need to check previous/next row in table.

 

Also, every item put into the trade is logged separately. Zeny trades are logged to zenylog table.

 

Basically there is an algorithm on what to query to get the whole image of trades. It should be quite easy to translate it into PHP for example. However, querying picklog is a performance killer. If you intend to do it on regular basis, I strongly recommend putting picklog on a seperate physical drive (I/O lag) and adding some indexes to the table (full table scans).

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.