FruitMaxPoint.xml
Sets how many fruit points each class can collect. Loaded with the character data at server start.
Fruit points are the stat points a character got from Create fruits. Decrease fruits have their own counter with the same cap. Both counters are never cleared, not even by a reset, so the cap is a lifetime limit that can grow as the character progresses.
File Location#
Data/Character/FruitMaxPoint.xml
Dependencies#
- Points per fruit:
FruitAddPointMin/FruitAddPointMaxin GameServerInfo - Common.dat. - Fruit success rate gets lower as the counter gets closer to the cap. A higher cap keeps the rate higher for longer.
Configuration#
Root <FruitMaxPoint>#
| Attribute | Type | Range | Default | Effect |
|---|---|---|---|---|
Enable | int | 0-1 | 0 | 0 = vanilla cap (grows every 10 levels: 127 at level 400, Magic Gladiator 100, Dark Lord 115). 1 = use the <Class> rows. |
<Class>#
One row per class. A class without a row keeps the vanilla cap.
Cap = Base + Level x PerLevel + Master Level x PerMasterLevel + Resets x PerReset + Grand Resets x PerGrandReset + Master Resets x PerMasterReset
| Attribute | Type | Range | Default | Effect |
|---|---|---|---|---|
Index | int | 0-6 | - | 0 Dark Wizard, 1 Dark Knight, 2 Fairy Elf, 3 Magic Gladiator, 4 Dark Lord, 5 Summoner, 6 Rage Fighter |
Base | decimal | any | 0 | Fixed points every character of the class gets |
PerLevel | decimal | any | 0 | Points per character level. 0.3 = 3 points every 10 levels |
PerMasterLevel | decimal | any | 0 | Points per master level |
PerReset | decimal | any | 0 | Points per reset |
PerGrandReset | decimal | any | 0 | Points per grand reset |
PerMasterReset | decimal | any | 0 | Points per master reset |
Max | int | -1 to 65535 | -1 | Upper limit. -1 = no limit (65535 at most) |
Name | text | - | - | Label only, not read |
Important Behavior#
- The result is rounded down. Below 0 counts as 0.
- Fruits per character = cap / points per fruit. Set
FruitAddPointMinandFruitAddPointMaxto the same value to get an exact number of fruits. - A reset that lowers the level also lowers a level-based cap. A character above the new cap keeps its fruit points but can't eat more until the cap passes them again. For reset servers, use
BaseandPerResetinstead ofPerLevel. - A reset that burns all stats (ResetSystem
ResetStatsandResetLevelUpPoints) gives the Create fruit points back as free points. - The C window shows the cap. It updates on level up, master level up and reset.
- Characters must be level 10 or higher to use fruits.
Examples#
<FruitMaxPoint Enable="1">
<Class Index="0" Base="100" PerReset="10" Max="-1"/>
<Class Index="1" Base="100" PerReset="10" Max="-1"/>
<Class Index="2" Base="100" PerReset="10" Max="-1"/>
<Class Index="3" Base="80" PerReset="10" Max="-1"/>
<Class Index="4" Base="90" PerReset="10" Max="-1"/>
<Class Index="5" Base="100" PerReset="10" Max="-1"/>
<Class Index="6" Base="100" PerReset="10" Max="-1"/>
</FruitMaxPoint>
With FruitAddPointMin = 5 and FruitAddPointMax = 5 in Common.dat, a Dark Knight can eat 20 fruits, plus 2 more after each reset.
To use fruits as part of progression, also set FruitAddPointWithGear = 1 (eat with gear on) and FruitSubPointSwitch = 0 (no Decrease) in Common.dat.
Common Issues#
| Symptom | Cause | Fix |
|---|---|---|
| "Impossible since the usable fruit points are at maximum" after a reset | Level-based cap dropped with the level | Move the class to Base + PerReset |
| Rows have no effect | Enable="0" or a wrong Index | Set Enable="1"; the GameServer log names rows with a bad Index |