🎲 Monster Drop System

πŸ“– Overview

Monster drops are controlled by two main tables: cq_dropitemrule and cq_monstertype. Both must match using drop_item_rule ↔ group_id.

βš™οΈ cq_dropitemrule

βš”οΈ cq_monstertype

πŸ’» Example SQL


-- Set drop rule 1001 to drop item ID 729020 with lower chance
UPDATE cq_dropitemrule 
SET chance = 200000, item0 = 729020 
WHERE group_id = 1001;

-- Assign monster 1001 to use drop rule 1001
UPDATE cq_monstertype 
SET drop_money_min = 100,
    drop_money_max = 500,
    drop_money_chance = 800000,
    drop_item_chance = 500000, -- includes unidentified / low-quality equips
    drop_item_rule = 1001
WHERE id = 1001;