Mercurial > wow > reagentmaker
comparison MillingData.lua @ 85:996aaa818d04 v1.0beta4
Clarify error message with cross-tradeskill, and clarify the use of GetTradeSkillLine() internally
author | contrebasse |
---|---|
date | Sun, 15 May 2011 12:45:52 +0200 |
parents | 32ec6417874a |
children | e1484cc77f01 |
comparison
equal
deleted
inserted
replaced
84:10a6078e132f | 85:996aaa818d04 |
---|---|
127 {52987,5,0.5}}, -- Twilight Jasmine | 127 {52987,5,0.5}}, -- Twilight Jasmine |
128 } | 128 } |
129 | 129 |
130 -- "Tradeskill" data | 130 -- "Tradeskill" data |
131 local MillID = 51005 | 131 local MillID = 51005 |
132 local macroMill = "/cast "..GetSpellInfo(MillID).."\n/use %s" | 132 local MillName = GetSpellInfo(MillID) |
133 local macroMill = "/cast "..MillName.."\n/use %s" | |
133 local MillLink = GetSpellLink(MillID) | 134 local MillLink = GetSpellLink(MillID) |
134 | 135 |
135 -- Add "Tradeskill" data to each "recipe" | 136 -- Add "Tradeskill" data to each "recipe" |
136 for itemID,t in pairs(A.MillingData) do | 137 for itemID,t in pairs(A.MillingData) do |
137 for i,v in ipairs(t) do | 138 for i,v in ipairs(t) do |
138 v.macro = macroMill | 139 v.macro = macroMill |
139 v.spellID = MillID | 140 v.spellID = MillID |
141 v.spellName = MillName | |
140 v.spellLink = MillLink | 142 v.spellLink = MillLink |
141 end | 143 end |
142 end | 144 end |