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:
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.
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
Drop Rate Values:
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
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:
{{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!
See Message Routing for more about formats, conditions, and multi-channel routing.
Last updated
