πMob Item 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
min_rate
Minimum drop rate to log (500 = 5.00% or rarer)
500
channel_id
Discord channel ID to send messages to
-
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 Templates
Want to customize how your drop messages look? You can add a [template: ...] field to create your own format instead of the default table layout.
Example:
Result: π Marky got Apple from Poring! (0.25%)
See Message Templates for all available placeholders and examples.
Last updated
