Skip to content

Support for weapon trainers on TBC Anniversary - #851

Open
0x5d0 wants to merge 1 commit into
Xian55:devfrom
0x5d0:feature/weapon-training
Open

0x5d0 wants to merge 1 commit into
Xian55:devfrom
0x5d0:feature/weapon-training

Conversation

@0x5d0

@0x5d0 0x5d0 commented Sep 14, 2026

Copy link
Copy Markdown

Allows named generic trainer actions such as "Trainer Sayoc"
to open the trainer interface and execute their configured macro.

Weapon proficiencies are exposed through the existing spell
requirements and refreshed after skill changes.

Tested with Two-Handed Axes, Thrown, and One-Handed Swords
on TBC Anniversary.

Fist Weapons remain unsupported because the client reports
them through the existing Unarmed skill.

Possible implementation for #850

Example of how I'm currently successfully using it:

{
  "Name": "Trainer Sayoc",
  "Cost": 4,
  "Requirements": [
    "Level >= 10",
    "!Spell:197",
    "Money >= 1000"
  ],
  "MacroText": "/run for i=1,GetNumTrainerServices() do local n,_,c=GetTrainerServiceInfo(i) if n=='Two-Handed Axes' and c=='available' then BuyTrainerService(i) break end end"
}

@0x5d0
0x5d0 force-pushed the feature/weapon-training branch from e0ac88f to 8a17a24 Compare September 14, 2026 14:53
@Xian55

Xian55 commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Gooday keep in mind that the following macro only works on enUS client

/run for i=1,GetNumTrainerServices() do local n,_,c=GetTrainerServiceInfo(i) 

if n=='Two-Handed Axes' and c=='available' then  -- <-----------------

BuyTrainerService(i) break 
end end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants