LearnSkill

Train spells at a trainer. Waits if unavailable or unaffordable; add the required MinLevel and class filters.

值的格式
table
作用范围
step

技术说明保留英文原文。字段名称和 Lua 示例保持不变。

示例

源文件示例。请根据你的路线替换 ID 和数值;本网站不会执行 Lua。

Lua · 01
LearnSkill = { spellID = 6673 }, MinLevel = 1
Lua · 02
LearnSkill = { allAvailable = true, npcID = 911 }
Lua · 03
APR.RouteQuestStepList["Forever-Training-Example"] = {
    label = "Training example",
    gameVersion = "forever",
    mapID = 1411,
    conditions = { Faction = "Horde", Class = "MAGE" },
    steps = {
        {
            LearnSkill = { spellID = 7411 },
            MinLevel = 5,
            SkipForPrimaryProfessions = 2,
            Coord = { x = -4960.0, y = -791.3 },
            Zone = 1411,
        },
        { PickUp = { 96873 }, Skill = { skillID = 333, rank = 1 }, Zone = 1411 },
        { RouteCompleted = true },
    },
}

已记录的参数

已记录的参数行为与详情值的格式
spellIDShown in the source example; this does not establish a required field.number
MinLevelShown in the source example; this does not establish a required field.number | string | table

行为与详情

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

Action / Progression Options

An action waits for completion; a failed step condition skips the step. Use one main action per step.

LearnSkill: named spells

spellID = 6673 or spellIDs = { 6673, 100 } supplies localized names; optional npcID restricts the trainer.

LearnSkill: all services

LearnSkill = { allAvailable = true, npcID = 911 }; trainer ID required. Use text for advice when no spell IDs are supplied.

Main actions

Use separate SellItems and Repair steps with the same coordinates; only one main action per step.

Example Route
APR.RouteQuestStepList["Forever-Training-Example"] = {
    label = "Training example",
    gameVersion = "forever",
    mapID = 1411,
    conditions = { Faction = "Horde", Class = "MAGE" },
    steps = {
        {
            LearnSkill = { spellID = 7411 },
            MinLevel = 5,
            SkipForPrimaryProfessions = 2,
            Coord = { x = -4960.0, y = -791.3 },
            Zone = 1411,
        },
        { PickUp = { 96873 }, Skill = { skillID = 333, rank = 1 }, Zone = 1411 },
        { RouteCompleted = true },
    },
}

搜索百科

开始使用 APR路线与兼容性按你的意愿自动化打造自己的界面卡在某一步?常用命令创建并分享路线组队做任务
浏览百科