MaxLevel

Maximum level/XP threshold, inclusive.

Formato del valor
number | string | table
Ámbito
step-condition, parallel-group-condition, next-route-condition, prefab-condition, route-availability-condition

Las descripciones técnicas se conservan en su inglés original. Los nombres de los campos y los ejemplos de Lua no se modifican.

Ejemplos

Ejemplo de las fuentes. Sustituye los ID y valores según tu ruta; este sitio no ejecuta Lua.

Lua · 01
MaxLevel = 69

Funcionamiento y detalles

Forms shown in the documentation, not an exhaustive runtime schema. Constant runtime types are not inferred.

Filters and Conditions

Conditions on the same table combine with AND. Use AnyOf for alternatives, AllOf for repeated predicates and Not to invert a whole condition table.

Filters and Conditions
ScopeSupported conditions / result
Steps and parallelSteps[].conditionsAll filters below; group conditions control insertion, while a failed step filter skips that step.
Route conditions: visibilityInterfaceVersion, InterfaceVersionExact, DontHaveSpell, IsQuestReadyForTurnIn, HasAchievement, DontHaveAchievement, Faction, Race, Class, ClassNot, Event, AlliedRace, IsQuestCompleted, IsQuestUncompleted. Failure hides the route.
Route conditions: availabilityNumeric Level, MinLevel, MaxLevel, BeLvl, plus ClassSpec and Zones. Failure disables the route.
Route-level AnyOfAlternatives use step filters; failure hides the route, including failures of nested level conditions.
Conditional nextRoute / prefab entriesUse step filters; these affect the suggestion or prefab membership.
Level requirement forms
FormMeaning / supported fields
MinLevel = 10Whole level threshold.
Grind = 87.5Level 87 with at least 50% XP progress.
MinLevel = "MidnightDelves"Named dynamic threshold from the configured active XP bonuses.
Grind = { level = 3, xp = 325 }Level 3 with at least 325 XP into that level.
Grind = { level = 4, xp = -700 }At most 700 XP remaining before level 4.
Grind = { level = 60, xp = 0, questLogXP = { 4901, 4508 } }Deducts the current rewards of listed, completed quests still in the player's log. Unknown XP, unfinished quests and already rewarded quests give no credit.
SkipIfCooldown = { { itemID = 6948, operator = ">", seconds = 2, once = true } }Skips this step when the item cooldown exceeds the threshold on entry. Use spellID for a spell. Omit once to monitor continuously, for example < 300 on a farming/waiting step.
Supported fieldsStep Grind, Level, MinLevel, MaxLevel, SkipForLvl. Route-selection level thresholds remain numeric; BeLvl does not accept profiles or absolute XP tables.
Absolute XP validationFinite integers: level >= 1, signed xp. Uses the current client's XP range for the relevant level; out-of-range targets clamp to its boundaries. Missing XP data delays completion.
Configurable Level Profiles

Definitions live in APR-Core/config/LevelProfiles.lua. Reload after editing.

Configurable Level Profiles
Definition / fieldMeaning
APR.LevelBonusSourcesReusable XP-bonus sources referenced by name in profiles.
Source auras / isActiveAny listed active aura OR a true predicate activates the source once. Item ownership alone never activates a bonus.
Source bonusPercentage contributed while active.
Source achievementBonusesAchievement ID → percentage; highest completed tier wins, while the source must still be active.
Source auraBonusesAura ID → percentage or stack-count tiers. Selects the highest active variant and highest matched stack tier; missing/restricted counts use one application.
Source minLevel / maxLevelExclusiveInclusive minimum and exclusive maximum; sources outside their range contribute nothing.
Source itemsUsable item IDs offered as optional reminders when the source's aura is absent.
APR.LevelRequirementProfilesNamed profiles with bonuses = { "SourceName", ... } and levels = { [0] = 88, [20] = 87.25 }.
Profile levels[0] required. Greatest bonus breakpoint not exceeding the active total wins; no interpolation (12% uses 10%, if the next row is 20%).
Unknown source/profileRaises an error rather than silently dropping the threshold.
Refresh and progressionBonuses refresh as auras, achievements, levels and world state change. Updates do not rewind skipped steps or remove inserted parallel groups.
Absolute XP requirements

Step fields Grind, Level, MinLevel, MaxLevel and SkipForLvl also accept

{ level = N, xp = signedInteger }. This extends the existing level resolver;

numeric levels, fractional levels and named level profiles keep their behavior.

Absolute XP requirements
{ Grind = { level = 3, xp = 325 } }, -- Level 3 with at least 325 XP
{ Grind = { level = 4, xp = -700 } }, -- At most 700 XP remaining before level 4
{ PickUp = { 123 }, SkipForLvl = { level = 3, xp = 325 } },
Absolute XP requirements

A positive offset counts XP into level; a negative offset counts backwards

from reaching level. Both values must be finite integers, with level >= 1.

The resolver uses the current client's UnitXPMax while the player is at the

relevant level, so the route does not embed another client's XP table. Thresholds

outside that level's XP range are clamped to its boundaries. Missing XP data

delays completion until the total becomes available. These structures apply to

step fields only, not route visibility conditions or BeLvl.

Buscar en la wiki

Primeros pasos con APRRutas y compatibilidadAutomatización a tu medidaUna interfaz a tu gusto¿No puedes avanzar de paso?Comandos de uso diarioCrea y comparte una rutaMisiones en grupo
Explorar la wiki