custom_droplist.sql 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. -- Information about category:
  2. -- Only one drop will be given per category, except in the cases when category is -1.
  3. -- Category -1 is used for SPOIL/SWEEP drops only! Do NOT change this.
  4. -- In general, category 0 is for adena and 1 seal stone color (each seal stone color should be in a different category).
  5. -- In general, category 1 is for full drops and parts of equipable items. However, you can change this.
  6. -- In general, category 2 is for all other items. However, you can change this.
  7. -- In general, more categories are only used for RBs who have 1 item per category (i.e. do not really drop categorized),
  8. -- with the sole exception of category 200 that is used for Life Stones. However, you can change this too.
  9. -- You can create more categories as you see fit. Just make sure the "category" number is non-negative!!
  10. -- Also, it is NOT a problem if category numbers are skipped (so you can have -1, 1, 5, 10 as your categories).
  11. --
  12. -- If you wish to allow more than one item to be given from the same category, you can
  13. -- split them up over several categories.
  14. -- In addition, RBs and Grandbosses (mainly) may have the exact same item repeated in multiple categories.
  15. -- This allows mobs to give 1 copy of the drop to each of several people (if they are lucky enough to get the drops).
  16. -- Calculation for each drop, when in categories, is equivallent in chance as when outside of categories.
  17. -- First, the sum of chances for each category is calculated as category chance. If the category is selected
  18. -- for drops (i.e. its chance is successful), then exactly 1 item from that category will be selected, with
  19. -- such a chance that the overall probability is maintained unchanged.
  20. --
  21. -- Category Explanation (non-RaidBoss & non-GrandBoss)
  22. -- -1 is sweep
  23. -- 0 is adena and one of the seal stones (your choice)
  24. -- 1 is any item that is in weapon.sql, any item in armor.sql, and some of the items from etcitem. Before dropping the column, I had those marked in etcitem.sql. However, you can recognize them easily. If they are parts unique for crafting equipable items, it's category 1.
  25. -- 2 is almost all of the other items except:
  26. -- 3 and 4 are used for the other two seal stones (1 category each).
  27. --
  28. -- Category Explanation (RaidBoss & their minions)
  29. -- 0 is full armor and armor mats
  30. -- 1 is full weapon and weapon mats
  31. -- 2 is anything else (scrolls,arrows,etc)
  32. --
  33. -- Category Explanation (GrandBoss)
  34. -- 0+ is defined catagories
  35. -- Any other mobs within this range (minions, etc) use the default drop categories (most often 2)
  36. CREATE TABLE IF NOT EXISTS `custom_droplist` (
  37. `mobId` smallint(5) unsigned NOT NULL DEFAULT '0',
  38. `itemId` smallint(5) unsigned NOT NULL DEFAULT '0',
  39. `min` int(8) unsigned NOT NULL DEFAULT '0',
  40. `max` int(8) unsigned NOT NULL DEFAULT '0',
  41. `category` smallint(3) NOT NULL DEFAULT '0',
  42. `chance` mediumint(7) unsigned NOT NULL DEFAULT '0',
  43. PRIMARY KEY (`mobId`,`itemId`,`category`),
  44. KEY `key_mobId` (`mobId`)
  45. );