πŸͺVending Logs

Logs player-to-player vending transactions to Discord

The Vending Log feature tracks player-to-player shop transactions. When someone buys items from a merchant's vending shop, the details are logged to Discord.

Action

vending_log

When It's Used

This log is triggered when:

  • A player purchases items from another player's vending shop

  • The transaction completes successfully

All items purchased in a single transaction are batched together.

Why Use It

  • Track your server's player economy in real-time

  • Monitor high-value trades for potential scams

  • Celebrate big sales in your community

  • Audit suspicious transactions between accounts

  • Understand market prices for popular items

Server Configuration

In conf/channels.conf:

Setting
Description
Default

enabled

Enable/disable vending logging

false

channel_id

Discord channel ID for vending logs

-

min_zeny

Minimum zeny threshold to log (0 = log all)

0

group_min

Minimum GM group level to log

0

group_max

Maximum GM group level to log

99

Note: This setting also controls vending_item messages when players open shops.

Message Format

The default message shows buyer, seller, items, and prices including tax:

Data Fields

Field
Type
Description

buyer_name

string

Character name of the buyer

seller_name

string

Character name of the seller

list

string

Batched item data (see format below)

pos

string

Shop location: `map

buyer_account_id

int

Buyer's account ID

buyer_char_id

int

Buyer's character ID

seller_account_id

int

Seller's account ID

seller_char_id

int

Seller's character ID

channel

string

Discord channel ID

List Format

Items are sent as a comma-separated list with pipe-delimited values:

Example:

Example Use Cases

Public Trading Channel

Let everyone see what's being traded on your server:

Monitor High-Value Trades

Watch for expensive items changing hands to prevent scams.

Track Economy Health

See what items players are actually buying and at what prices.

Celebrate Big Sales

When someone sells an MVP card, the whole community can see it!

Custom Templates

Customize vending log messages with templates:

Simple format:

Result: πŸ’° Buyer bought Apple x10 from Merchant for 20,000z

With tax details:

With location:

See Message Templates for all available placeholders.

Notes

  • Both buyer and seller information is tracked

  • Tax amount is calculated based on your server's vending tax rate

  • Position shows where the merchant's shop was located

  • All items from a single purchase are grouped together

  • Use alongside Vending Items to see complete shop activity

Last updated