This system assigns fixed options (57 types, ID 0-56) to worn items when the item meets the conditions of a configuration row: + level, Ancient, number of Excellent lines, number of sockets, Fenrir type, Legendary weapon... It also applies to Muun and socket items (according to the seeds). The item tooltip on the client shows the extra option lines, together with the condition if it is not yet met.
Requirements
PluginPlushas been purchased andData\Plugin\Plugin.inihasPluginPlus = 1(see PluginPlus).Enabled="1"inData\Plugin\ItemOptionSystem_Exc.xml(the sample file leaves it at 0).- The client uses a new
Main.dll. The tooltip lines are sent by the server when the character enters the game, so no client file needs to be edited.
If any condition is missing, no option is applied and the tooltip shows nothing.
Items that count for options
The following items are considered: worn equipment slots, the Pentagram slot, the 2 earring slots, and items in the inventory that are in the activated state (see Items activated in the inventory (UseInventoryItem)); plus the 3 Muun slots. Items that have expired / are invalid are skipped. Options on the same character are stacked (values and rates).
Configuration
File: Data\Plugin\ItemOptionSystem_Exc.xml, root element <ItemOptionSystem>.
Root attributes and <Notices>
| Key | Value | Default | Meaning |
|---|---|---|---|
Enabled | 0 / 1 | 0 | Turn the system off / on. |
ReduceEffectDuration | seconds, >= 1 | 5 | Effect duration of options 0 and 1 (reduce target's max HP / reduce target's attack speed). |
ReduceEffectMaxRate | 0 - 99 | 50 | Maximum percentage that the total of options 0 and 1 can reach when stacking several items. |
Notices PrintRequirementNotice | 0 / 1 | 0 | 1 = options whose conditions are not met are still shown on the tooltip in the color ColorID together with the condition text; 0 = not shown. |
Notices ColorID | number 0 - 21 | 10 | Color of the condition line (color table below). |
The ColorID color table: 0 White, 1 Light blue, 2 Red, 3 Gold, 4 Green, 5 Dark red, 6 Pink-purple, 7 Dark blue, 8 Brown, 9 Lime, 10 Gray, 11 Orchid, 12 Purple, 13 Orange, 14 Dark purple, 15 Yellow, 16 Sky blue, 17 Turquoise, 18 Yellow-green, 19 Cyan, 20 Silver, 21 Olive.
<Items> <Item> (equipment)
Each row is one option of one item code. An item can have several rows. A row with Cat outside 0-127, Index outside 0-511, or OptionIndex outside 0-56 is skipped (an error is logged for a wrong OptionIndex). The tooltip shows at most the first 2800 rows.
| Key | Value | Default | Meaning |
|---|---|---|---|
Cat, Index | 0-127 / 0-511 | -1 (row skipped) | Item code. |
OptionIndex | 0 - 56 | 0 | Option type (table below). |
OptionValue | number (may be decimal) | 0 | Option value. |
OptionProbability | number | 0 | Probability n/10000 for options that have a "probability". Option 3 (Stun) alone uses n/100 (according to the guide in the file). Options without a probability ignore this column. |
MinLevel | 0 - 15 | 0 | Minimum item level (+0 to +15). 0 = not required. |
SocketCount | number | 0 | Minimum number of sockets. Only checked for socket items; 0 = not required. |
Ancient | -1 / 0 / 1 | 0 (when the attribute is omitted) | -1 = any; 0 = the item must not be Ancient; 1 = must be Ancient. Note that the default when left blank is 0, not -1. |
Excellent | number | 0 | Minimum number of Excellent lines on the item (0 = not required). |
SpecialOpt | number | 0 | Fenrir condition: 1 = Blue Fenrir, 2 = Black Fenrir, 4 = Gold Fenrir. 0 = not required. The server compares by bits on the item's Excellent byte. |
LegendaryWeapon | 0 - 3 | 0 | Number of Legendary weapon option lines the item must have (1 base line + at most 2 Excellent lines). When non-zero, all other conditions of the row are ignored. The client tooltip does not check this condition (always white). Does not apply to Legendary armor. |
BuffIndex | buff ID | 0 | Optional buff of the row (ID in Data\BuffTemplate.xml), 0 = none. |
BuffEffectType | number | 0 | Effect of the buff (the GameServer's BUFF_OPTION number); 0 = only show the buff icon. |
BuffValue | number | 0 | Value of the buff effect. |
BuffProbability | number | 0 | Probability n/10000 of applying the buff on each hit (bad buffs on the target, good buffs on the attacker). 10000 = a good buff lasts as long as the item is worn. 0 = no buff is used. |
BuffDuration | seconds | 0 | Duration of the buff applied on a successful hit. |
<Muun> <Item>
| Key | Value | Default | Meaning |
|---|---|---|---|
Cat1, Index1 | number | 0 | Muun code (considered in any of the 3 Muun slots). |
MinLevel1, MaxLevel1 | number | 0, 0 | Level range of that Muun (both default to 0, meaning only level 0 if left blank). |
IsGrouped | 0 / 1 | 0 | 1 = the row is only satisfied when slot 2 is Cat2/Index2 and slot 3 is Cat3/Index3 within the correct level range. |
Cat2, Index2, MinLevel2, MaxLevel2 | number | 0 | Muun required in slot 2 (when IsGrouped="1"). |
Cat3, Index3, MinLevel3, MaxLevel3 | number | 0 | Muun required in slot 3 (when IsGrouped="1"). |
OptionIndex, OptionValue, OptionProbability | 0 | Same as the equipment rows. An OptionIndex outside 0-56 causes the row to be skipped. |
<Socket> <Item>
Calculated by the number of seed spheres fitted in the socket item. The <Socket> element in the sample file is left empty.
| Key | Value | Default | Meaning |
|---|---|---|---|
Cat, Index | number | 0 | Socket item code. |
MinLevel, MaxLevel | number | 0, 15 | Level range of the item. |
SeedMinLevel, SeedMaxLevel | 1 - 5 | 0, 0 | Level range (1-5) of the seeds that are counted. Both should be declared, because the default 0-0 counts no seed at all. |
SeedCountFire, SeedCountWater, SeedCountIce, SeedCountWind, SeedCountLight, SeedCountEarth | number | 0 | Minimum number of seeds of each element (Fire, Water, Ice, Wind, Light, Earth). 0 = not required. |
OptionIndex, OptionValue, OptionProbability | 0 | Same as the equipment rows. |
<OptionText> <Text>
| Key | Value | Default | Meaning |
|---|---|---|---|
OptionId | 0 - 56 | -1 (row skipped) | The option whose color is to be changed. |
ColorID | 0 - 21 | 1 | Color of that option's line in the tooltip (color table above). Options that are not declared use the server's default color. |
<OptionSettings> <OneShotPVE>
| Key | Value | Default | Meaning |
|---|---|---|---|
ImmuneMonsters | list of monster codes separated by ;, for example "275;295;" | empty | Monster types that option 11 (One-hit monster kill) cannot kill. |
Option list (OptionIndex)
IDs in the range 0-56 are all loaded; IDs 44 and 47 have no function and no tooltip text. A "probability" value in the table means OptionProbability applies.
| ID | Effect |
|---|---|
| 0 | Reduce the target's max HP by OptionValue % for ReduceEffectDuration seconds (probability) |
| 1 | Reduce the target's attack speed by OptionValue % for ReduceEffectDuration seconds (probability) |
| 2 | Freeze the target for OptionValue seconds (probability) |
| 3 | Stun the target for OptionValue seconds, probability n/100, takes the target's stun resistance into account |
| 4 | Auto Combo: a hit can become a Combo hit (probability) |
| 5 | Double damage rate +OptionValue % |
| 6 | Attack power +OptionValue % |
| 7 | Max HP +OptionValue |
| 8 | Defense +OptionValue |
| 9 | Damage reduction +OptionValue % |
| 10 | Max AG +OptionValue |
| 11 | Kill a monster in one hit (probability), except the monsters in ImmuneMonsters |
| 12 | Kill a player in one hit in PvP (probability) |
| 13 | Damage reflection +OptionValue % |
| 14 | Poison the target for 5 seconds (OptionValue % of HP per tick), probability, takes poison resistance into account |
| 15 | When hit, a chance to fully restore HP +OptionValue % |
| 16 | When hit (PvP), become invisible for OptionValue seconds (probability) |
| 17 | When hit (PvP), the attacker dies instantly (probability) |
| 18 | A PvP hit removes OptionValue % of the target's current HP (probability) |
| 19 | When hit (PvP), reflect all the damage (probability) |
| 20 | Excellent damage resistance +OptionValue % |
| 21 | Critical damage resistance +OptionValue % |
| 22 | Double damage resistance +OptionValue % |
| 23 | Ignore-defense damage resistance +OptionValue % |
| 24 | Combo damage +OptionValue % |
| 25 | Absorb OptionValue % of PvP damage (100 or more = absorb all) |
| 26 | Excellent damage rate +OptionValue % |
| 27 | Critical damage rate +OptionValue % |
| 28 | Ignore-defense damage rate +OptionValue % |
| 29 | Triple damage rate +OptionValue % |
| 30 | Triple damage resistance +OptionValue % (PvP) |
| 31 | Invincible for OptionValue seconds when hit by a player or monster, no re-roll while invincible (probability) |
| 32 | A PvP hit blinds the target for 3 seconds (reduces hit rate by OptionValue %) (probability) |
| 33 | All stats +OptionValue (STR, AGI, VIT, ENE; plus Command if Dark Lord) |
| 34 | Ignore SD rate +OptionValue % |
| 35 | Skill damage +OptionValue % |
| 36 | Paralyze the target for OptionValue seconds when hitting with elemental damage (probability; 0 = use Radiance's Paralysis rate) |
| 37 | Hit rate +OptionValue (PvM and PvP) |
| 38 | Ignore-SD resistance +OptionValue % |
| 39 | Stun resistance +OptionValue % |
| 40 | Reduce incoming Combo damage by OptionValue % (PvP) |
| 41 | Triple damage +OptionValue |
| 42 | Elemental damage +OptionValue % |
| 43 | Elemental defense +OptionValue |
| 45 | Defense success rate +OptionValue |
| 46 | Stun (4th tree) for OptionValue seconds (probability, takes stun resistance into account) |
| 48 | Complete invincibility (the character cannot be hit) |
| 49 | Chaos Mix success rate +OptionValue % |
| 50 | Experience +OptionValue % |
| 51 | Item drop rate +OptionValue % |
| 52 | Hunt points +OptionValue % (the server currently has no Hunt Point system: only shown on the tooltip) |
| 53 | Max SD +OptionValue |
| 54 | Attack speed +OptionValue (only when the value is positive) |
| 55 | Elemental critical rate +(OptionValue / 100) %, for example 500 = 5% |
| 56 | Damage to monsters (PvE) +OptionValue % |
Example
<ItemOptionSystem Enabled="1" ReduceEffectDuration="5" ReduceEffectMaxRate="50">
<Notices PrintRequirementNotice="1" ColorID="10" />
<Items>
<Item Cat="13" Index="37" MinLevel="0" SocketCount="0" OptionIndex="54" OptionValue="5" OptionProbability="100" Ancient="-1" Excellent="0" SpecialOpt="4" />
<Item Cat="0" Index="132" MinLevel="0" SocketCount="0" OptionIndex="3" OptionValue="5" OptionProbability="100" Ancient="-1" Excellent="0" SpecialOpt="0" LegendaryWeapon="3" />
<Item Cat="5" Index="10" MinLevel="15" SocketCount="0" OptionIndex="6" OptionValue="5" OptionProbability="100" Ancient="-1" Excellent="1" />
</Items>
<Muun>
<Item Cat1="16" Index1="1" MinLevel1="0" MaxLevel1="3" Cat2="16" Index2="2" Cat3="16" Index3="3" MinLevel2="0" MaxLevel2="3" MinLevel3="0" MaxLevel3="3" IsGrouped="1" OptionIndex="1" OptionValue="15" OptionProbability="0" />
</Muun>
<Socket>
</Socket>
<OptionText>
<Text OptionId="11" ColorID="3" />
</OptionText>
<OptionSettings>
<OneShotPVE ImmuneMonsters="" />
</OptionSettings>
</ItemOptionSystem>
<!-- --> comments inside XML tags. If an item has several rows, declare several <Item> tags with the same Cat/Index.Tooltip text (Lang)
The <ItemOptionSystem> section in the Data\Lang files:
- ID 0-56: the name of each option. In the text:
%d=OptionValue,%r= probability (%),%v=OptionValue / 100,%%= the % sign. Example ID 3:Stun target for %d sec (%r%% chance). IDs 44 and 47 have no text. - ID 100: the beginning of the condition line (
(Req.). - ID 101: level (
Level >= +%d); 102: Ancient; 103: Excellent (Exc >= %d); 104: Socket (Socket >= %d); 105: Legendary (Legendary >= %d).
Reload
Press Reload plugin on the GameServer control panel: the file is reloaded, new tooltips are sent and stats are recalculated immediately for players who are online, with no need to log in again.