For the complete documentation index, see llms.txt. This page is also available as Markdown.

Mob Drops

Logs rare item drops when a player directly kills a monster

The MobItemDropScript handles item drop logging when a player directly kills a monster.

Action

mob_item_drop

When It's Used

This script is triggered when:

  • A player lands the killing blow on a monster

  • The monster drops an item with a drop rate at or below the configured threshold

  • Mob item drop logging is enabled in the server configuration

Why Use It

  • Track valuable drops from normal gameplay where players are actively hunting

  • Monitor rare card drops across the server

  • Celebrate player achievements by announcing rare drops to Discord

  • Audit drop rates to ensure game balance

Server Configuration

In conf/channels.conf:

Setting
Description
Default

enabled

Enable/disable this logging type

false

channel_id

Discord channel ID to send messages to

-

min_rate

Minimum drop rate to log (500 = 5%, 100 = 1%)

500

types

Item categories to log β€” see below

all

Valid types values

This filter matches against item categories, not the mob class that dropped them. Comma-separated, case-insensitive.

Token
Filters drops of

all

Every item category (default)

healing

Healing items

usable

Consumables / usable items

etc

Miscellaneous / crafting materials

armor

Armor pieces

weapon

Weapons

card

Monster cards

petegg

Pet eggs

petarmor

Pet equipment

ammo

Arrows, bullets, other ammunition

shadowgear

Shadow equipment

cash

Cash shop items

There's no built-in way to filter by the mob class that dropped the item (e.g. "only log drops from MVPs"). Use min_rate to narrow down rare drops, or route messages through the dashboard for mob-specific alerts.

Drop Rate Values:

Value
Rate

10000

100%

1000

10%

500

5%

100

1%

10

0.1%

Message Format

The script sends formatted messages to Discord using monospace code blocks:

With drop rate (≀100%):

Without drop rate (>100%):

The columns are: Player, Monster, Item, and Drop Rate (hidden for common drops over 100%).

Each drop type uses a unique emoji:

  • πŸ’Ž Mob drops (player kills)

  • βš”οΈ Mercenary drops

  • 🐾 Homunculus drops

Data Fields

Field
Type
Description

player_name

string

Name of the player who killed the monster

mob_name

string

Name of the monster that was killed

mob_id

int

Monster ID

item_name

string

Name of the dropped item

item_id

int

Item ID

rate

float

Drop rate (e.g., 500 = 5.00%)

account_id

int

Player's account ID

char_id

int

Player's character ID

channel

string

Discord channel ID

Example Use Cases

Card Drop Alerts Only

Set a very low threshold to only log card drops:

All Rare Drops

Log anything 10% or rarer:

Custom Messages

Want to customize how these messages look? Head to the Message Routes page on your dashboard, set the format to Custom Message, and compose your own template using {{placeholder}} syntax.

Example template:

Available placeholders for this event:

Placeholder
Example

{{player_name}}

Marky

{{mob_name}}

Poring

{{mob_id}}

1002

{{item_name}}

Apple

{{item_id}}

512

{{rate}}

50.00%

{{rate_raw}}

5000

{{src_template}}

πŸ’Ž [Card Drop] Marky obtained Poring Card!

{{src_template}} contains the pre-formatted message from your game server's [template: ...] field. If your server doesn't send one, it resolves to empty. See Message Templates for details.

See Message Routing for more about formats, conditions, and multi-channel routing.

Last updated