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

  • PluginPlus has been purchased and Data\Plugin\Plugin.ini has PluginPlus = 1 (see PluginPlus).
  • Enabled="1" in Data\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>

KeyValueDefaultMeaning
Enabled0 / 10Turn the system off / on.
ReduceEffectDurationseconds, >= 15Effect duration of options 0 and 1 (reduce target's max HP / reduce target's attack speed).
ReduceEffectMaxRate0 - 9950Maximum percentage that the total of options 0 and 1 can reach when stacking several items.
Notices PrintRequirementNotice0 / 101 = 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 ColorIDnumber 0 - 2110Color 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.

KeyValueDefaultMeaning
Cat, Index0-127 / 0-511-1 (row skipped)Item code.
OptionIndex0 - 560Option type (table below).
OptionValuenumber (may be decimal)0Option value.
OptionProbabilitynumber0Probability 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.
MinLevel0 - 150Minimum item level (+0 to +15). 0 = not required.
SocketCountnumber0Minimum number of sockets. Only checked for socket items; 0 = not required.
Ancient-1 / 0 / 10 (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.
Excellentnumber0Minimum number of Excellent lines on the item (0 = not required).
SpecialOptnumber0Fenrir condition: 1 = Blue Fenrir, 2 = Black Fenrir, 4 = Gold Fenrir. 0 = not required. The server compares by bits on the item's Excellent byte.
LegendaryWeapon0 - 30Number 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.
BuffIndexbuff ID0Optional buff of the row (ID in Data\BuffTemplate.xml), 0 = none.
BuffEffectTypenumber0Effect of the buff (the GameServer's BUFF_OPTION number); 0 = only show the buff icon.
BuffValuenumber0Value of the buff effect.
BuffProbabilitynumber0Probability 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.
BuffDurationseconds0Duration of the buff applied on a successful hit.

<Muun> <Item>

KeyValueDefaultMeaning
Cat1, Index1number0Muun code (considered in any of the 3 Muun slots).
MinLevel1, MaxLevel1number0, 0Level range of that Muun (both default to 0, meaning only level 0 if left blank).
IsGrouped0 / 101 = 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, MaxLevel2number0Muun required in slot 2 (when IsGrouped="1").
Cat3, Index3, MinLevel3, MaxLevel3number0Muun required in slot 3 (when IsGrouped="1").
OptionIndex, OptionValue, OptionProbability0Same as the equipment rows. An OptionIndex outside 0-56 causes the row to be skipped.
[TO VERIFY: according to the code, the group condition (slot 2 and slot 3) is only checked when the matching Muun is in slot 1; if the same Muun code is in slot 2 or 3, only the level range is considered, not the group. The guide at the top of the XML file says "only counts for the Muun in slot 1"]

<Socket> <Item>

Calculated by the number of seed spheres fitted in the socket item. The <Socket> element in the sample file is left empty.

KeyValueDefaultMeaning
Cat, Indexnumber0Socket item code.
MinLevel, MaxLevelnumber0, 15Level range of the item.
SeedMinLevel, SeedMaxLevel1 - 50, 0Level 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, SeedCountEarthnumber0Minimum number of seeds of each element (Fire, Water, Ice, Wind, Light, Earth). 0 = not required.
OptionIndex, OptionValue, OptionProbability0Same as the equipment rows.

<OptionText> <Text>

KeyValueDefaultMeaning
OptionId0 - 56-1 (row skipped)The option whose color is to be changed.
ColorID0 - 211Color of that option's line in the tooltip (color table above). Options that are not declared use the server's default color.
[TO VERIFY: the color used for options not listed in OptionText has not been traced in the code that builds the tooltip packet]

<OptionSettings> <OneShotPVE>

KeyValueDefaultMeaning
ImmuneMonsterslist of monster codes separated by ;, for example "275;295;"emptyMonster 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.

IDEffect
0Reduce the target's max HP by OptionValue % for ReduceEffectDuration seconds (probability)
1Reduce the target's attack speed by OptionValue % for ReduceEffectDuration seconds (probability)
2Freeze the target for OptionValue seconds (probability)
3Stun the target for OptionValue seconds, probability n/100, takes the target's stun resistance into account
4Auto Combo: a hit can become a Combo hit (probability)
5Double damage rate +OptionValue %
6Attack power +OptionValue %
7Max HP +OptionValue
8Defense +OptionValue
9Damage reduction +OptionValue %
10Max AG +OptionValue
11Kill a monster in one hit (probability), except the monsters in ImmuneMonsters
12Kill a player in one hit in PvP (probability)
13Damage reflection +OptionValue %
14Poison the target for 5 seconds (OptionValue % of HP per tick), probability, takes poison resistance into account
15When hit, a chance to fully restore HP +OptionValue %
16When hit (PvP), become invisible for OptionValue seconds (probability)
17When hit (PvP), the attacker dies instantly (probability)
18A PvP hit removes OptionValue % of the target's current HP (probability)
19When hit (PvP), reflect all the damage (probability)
20Excellent damage resistance +OptionValue %
21Critical damage resistance +OptionValue %
22Double damage resistance +OptionValue %
23Ignore-defense damage resistance +OptionValue %
24Combo damage +OptionValue %
25Absorb OptionValue % of PvP damage (100 or more = absorb all)
26Excellent damage rate +OptionValue %
27Critical damage rate +OptionValue %
28Ignore-defense damage rate +OptionValue %
29Triple damage rate +OptionValue %
30Triple damage resistance +OptionValue % (PvP)
31Invincible for OptionValue seconds when hit by a player or monster, no re-roll while invincible (probability)
32A PvP hit blinds the target for 3 seconds (reduces hit rate by OptionValue %) (probability)
33All stats +OptionValue (STR, AGI, VIT, ENE; plus Command if Dark Lord)
34Ignore SD rate +OptionValue %
35Skill damage +OptionValue %
36Paralyze the target for OptionValue seconds when hitting with elemental damage (probability; 0 = use Radiance's Paralysis rate)
37Hit rate +OptionValue (PvM and PvP)
38Ignore-SD resistance +OptionValue %
39Stun resistance +OptionValue %
40Reduce incoming Combo damage by OptionValue % (PvP)
41Triple damage +OptionValue
42Elemental damage +OptionValue %
43Elemental defense +OptionValue
45Defense success rate +OptionValue
46Stun (4th tree) for OptionValue seconds (probability, takes stun resistance into account)
48Complete invincibility (the character cannot be hit)
49Chaos Mix success rate +OptionValue %
50Experience +OptionValue %
51Item drop rate +OptionValue %
52Hunt points +OptionValue % (the server currently has no Hunt Point system: only shown on the tooltip)
53Max SD +OptionValue
54Attack speed +OptionValue (only when the value is positive)
55Elemental critical rate +(OptionValue / 100) %, for example 500 = 5%
56Damage to monsters (PvE) +OptionValue %
[TO VERIFY: the meanings of the options that trigger on hit / when hit (0-4, 11-19, 24, 25, 30-32, 36, 40, 46, 48-52, 56) are taken from the guide in the XML file; each combat-handling branch in the code has not been traced. The options that add stats directly (5, 7-10, 13, 15, 20-23, 26-29, 33-35, 37-39, 42, 43, 45, 53-55) have been cross-checked against the stat-adding function]

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>
Do not write <!-- --> 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.