Overview
When an item lying on the ground matches a rule in ItemDrop.xml, the client draws a light beam with a light streak around that item, in the RGB color you choose. Rules can be set per item type and per item condition (+ level, skill, luck, option, excellent, ancient set, number of socket slots) so that only valuable items are highlighted.
GameServer sends the full rule list to each player when they enter the game and whenever Reload plugin is clicked. If the plugin is not purchased or is set to 0, the server sends an empty list and the client draws nothing.
Requirements
- The
DropEffectplugin is purchased and[Plugin] DropEffect = 1inData\Plugin\Plugin.ini. - Client: a recent
Main.dlland the two effect filesData\Custom\CustomEffect\DropItem.bmdandData\Custom\CustomEffect\DropEffect_Light.OZJ.
Configuration Data\Plugin\ItemDrop\ItemDrop.xml
The root <ItemDropEffect> contains <Item .../> lines. At most 512 lines; extra lines are dropped. The first line that matches an item is used; a second line for the same item is ignored. Lines whose Cat or Index is outside the allowed range are ignored.
| Attribute | Value | Default | Meaning |
|---|---|---|---|
Cat | 0 to 127 (in practice 0 to 20 are used) | -1 (invalid: line is dropped) | Item group (Type). Item code = Cat * 512 + Index. |
Index | 0 to 511 | -1 (invalid: line is dropped) | Item index within the group. |
MinLevel | 0 to 15 | 0 | Minimum + level of the item. |
MaxLevel | 0 to 15 | 15 | Maximum + level. |
Skill | -1, 0, 1 | -1 | -1 = any, 0 = no skill, 1 = has skill. |
Luck | -1, 0, 1 | -1 | -1 = any, 0 = no luck, 1 = has luck. |
Option | 0 to 7 | 0 | Minimum additional option level; 0 = any. |
Excellent | 0 to 6 | 0 | Minimum number of excellent lines; 0 = any. |
Set | 0 to 15 | 0 | Minimum ancient set value; 0 = any. |
Socket | 0 to 5 | 0 | Minimum number of socket slots; 0 = any. |
R, G, B | 0 to 255 | 255, 255, 255 | Light beam color (red, green, blue). |
Name | text | - | Only a description for you, it is not read. |
Values outside the range are clamped to the nearest limit. Usage: the same item can have several different colors by splitting rules by condition (for example different Excellent values); a narrower rule must be placed before a broader rule because the first matching line is used.
Example (abridged)
<ItemDropEffect>
<Item Cat="12" Index="15" MinLevel="0" MaxLevel="15" Skill="-1" Luck="-1" Option="0" Excellent="0" Set="0" Socket="0" R="206" G="173" B="26" Name="Jewel of Chaos" />
<Item Cat="14" Index="13" MinLevel="0" MaxLevel="15" Skill="-1" Luck="-1" Option="0" Excellent="0" Set="0" Socket="0" R="110" G="84" B="203" Name="Jewel of Bless" />
<Item Cat="14" Index="14" MinLevel="0" MaxLevel="15" Skill="-1" Luck="-1" Option="0" Excellent="0" Set="0" Socket="0" R="225" G="48" B="63" Name="Jewel of Soul" />
</ItemDropEffect>
The ItemDrop.txt file
The Data\Plugin\ItemDrop\ folder also contains an ItemDrop.txt file (an old column-style list). GameServer does not read this file; the rules currently in use are only in ItemDrop.xml.
[TO VERIFY: the Main.dll client still loads a separate file Data\Custom\ItemDropEffect.txt (the old item light effect, class CustomItemLight) that is different from this plugin mechanism; it has not been determined whether that file is still used and whether it shares the DropEffect plugin gate.]
Reloading the configuration
Edit ItemDrop.xml (or change [Plugin] DropEffect) and then click Reload plugin on the GameServer control panel. The new rules are reloaded and re-sent to everyone online, with no need to log in again. The GameServer log records the number of rules loaded and the plugin status (ON / OFF).