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 시작하기노선과 호환성원하는 만큼 자동화하기나만의 인터페이스 만들기단계가 진행되지 않나요?자주 쓰는 명령어노선 제작과 공유파티와 퀘스트 진행하기
위키 둘러보기