tekkub / panda

WoW Addon - Prospecting and Disenchanting Aide

This URL has Read+Write access

panda / Milling.lua
100644 23 lines (21 sloc) 0.978 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

local NAME = GetSpellInfo(51005)
local NAME2 = GetSpellInfo(45357)
local inks = "39469 39774 43115 43116 43117 43118 43118 43119 43120 43121 43122 43123 43124 43125 43126 43127"
Panda.PanelFactory(NAME, 45357,
[[39151 0 39469 0 0 2447 765 2449
39334 43103 39774 43115 0 785 2450 2452 3820 2453
39338 43104 43116 43117 0 3369 3355 3356 3357
39339 43105 43118 43119 0 3818 3821 3358 3819
39340 43106 43120 43121 0 4625 8831 8836 8838 8845 8839 8846
39341 43107 43122 43123 0 13464 13463 13465 13466 13467
39342 43108 43124 43125 0 22785 22786 22787 22789 22790 22791 22792 22793
39343 43109 43126 43127 0 36901 36903 36904 36905 36906 36907 37921
]], nil, function(frame)
frame:SetAttribute("type", "macro")
if inks:match(frame.id) then
frame:SetAttribute("macrotext", Panda.CraftMacro(NAME2, frame.id))
else
frame:SetAttribute("macrotext", "/cast "..NAME.."\n/use "..frame.name)
end
end)