tekkub / controlfreak

WoW Addon - Crowd control assistance

This URL has Read+Write access

controlfreak / ClassMacrotexts.lua
100644 214 lines (197 sloc) 6.671 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214

 
-- TODO:
-- Hunter: fear beast
-- Warlock: fear
 
function ControlFreak:LoadDefaultMacros()
local profile = self.db:GetCurrentProfile()
 
-- Druid - Hibernate --
self.db:SetProfile("Druid - Hibernate")
if self.db.profile.macrotext == "/freak" then
self.db.profile.macrotext = [[
/clearfocus [modifier:shift]
/stopmacro [modifier:shift]
/cast [target=focus,exists,nodead,harm] Hibernate
/stopmacro [target=focus,exists,nodead,harm]
/cast [combat,harm,exists,nodead] Hibernate
/focus [exists,harm,nodead] target
/clearfocus [target=focus,dead]
/stopmacro [button:1/3/4/5] [combat]
/freak
]]
self.db.profile.spellname = "Hibernate"
self.db.profile.targtypes = {Beast = true, Dragonkin = true}
end
 
-- Mage - Polymorph --
self.db:SetProfile("Mage - Polymorph")
if self.db.profile.macrotext == "/freak" then
self.db.profile.macrotext = [[
/clearfocus [modifier:shift]
/stopmacro [modifier:shift]
/cast [target=focus,exists,nodead,harm] Polymorph
/stopmacro [target=focus,exists,nodead,harm]
/cast [combat,harm,exists,nodead] Polymorph
/focus [exists,harm,nodead] target
/clearfocus [target=focus,dead]
/stopmacro [button:1/3/4/5] [combat]
/freak
]]
self.db.profile.spellname = "Polymorph"
self.db.profile.targtypes = {Beast = true, Humanoid = true}
end
 
-- Mage - Random Sheep/Pig --
self.db:SetProfile("Mage - Random Sheep/Pig")
if self.db.profile.macrotext == "/freak" then
self.db.profile.macrotext = [[
/clearfocus [modifier:shift]
/stopmacro [modifier:shift]
/castrandom [target=focus,exists,nodead,harm] Polymorph, Polymorph(Rank 1: Pig)
/stopmacro [target=focus,exists,nodead,harm]
/castrandom [combat,harm,exists,nodead] Polymorph, Polymorph(Rank 1: Pig)
/focus [exists,harm,nodead] target
/clearfocus [target=focus,dead]
/stopmacro [button:1/3/4/5] [combat]
/freak
]]
self.db.profile.spellname = "Polymorph"
self.db.profile.targtypes = {Beast = true, Humanoid = true}
end
 
-- Mage - Random Sheep/Pig/Turtle --
self.db:SetProfile("Mage - Random Sheep/Pig/Turtle")
if self.db.profile.macrotext == "/freak" then
self.db.profile.macrotext = [[
/clearfocus [modifier:shift]
/stopmacro [modifier:shift]
/castrandom [target=focus,exists,nodead,harm] Polymorph, Polymorph(Rank 1: Pig), Polymorph(Rank 1: Turtle)
/stopmacro [target=focus,exists,nodead,harm]
/castrandom [combat,harm,exists,nodead] Polymorph, Polymorph(Rank 1: Pig), Polymorph(Rank 1: Turtle)
/focus [exists,harm,nodead] target
/clearfocus [target=focus,dead]
/stopmacro [button:1/3/4/5] [combat]
/freak
]]
self.db.profile.spellname = "Polymorph"
self.db.profile.targtypes = {Beast = true, Humanoid = true}
end
 
-- Priest - Shackle Undead --
self.db:SetProfile("Priest - Shackle Undead")
if self.db.profile.macrotext == "/freak" then
self.db.profile.macrotext = [[
/clearfocus [modifier:shift]
/stopmacro [modifier:shift]
/cast [target=focus,exists,nodead,harm] Shackle Undead
/stopmacro [target=focus,exists,nodead,harm]
/cast [combat,harm,exists,nodead] Shackle Undead
/focus [exists,harm,nodead] target
/clearfocus [target=focus,dead]
/stopmacro [button:1/3/4/5] [combat]
/freak
]]
self.db.profile.spellname = "Shackle Undead"
self.db.profile.targtypes = {Undead = true}
end
 
-- Warlock - Banish --
self.db:SetProfile("Warlock - Banish")
if self.db.profile.macrotext == "/freak" then
self.db.profile.macrotext = [[
/clearfocus [modifier:shift]
/stopmacro [modifier:shift]
/cast [target=focus,exists,nodead,harm] Banish
/stopmacro [target=focus,exists,nodead,harm]
/cast [combat,harm,exists,nodead] Banish
/focus [exists,harm,nodead] target
/clearfocus [target=focus,dead]
/stopmacro [button:1/3/4/5] [combat]
/freak
]]
self.db.profile.spellname = "Banish"
self.db.profile.targtypes = {Demon = true, Elemental = true}
end
 
-- Warlock - Seduction --
self.db:SetProfile("Warlock - Seduction")
if self.db.profile.macrotext == "/freak" then
self.db.profile.macrotext = [[
/clearfocus [modifier:shift]
/stopmacro [modifier:shift]
/petstay
/petfollow
/cast [pet:succubus,target=focus,exists,harm] Seduction
/stopmacro [target=focus,exists,nodead,harm]
/cast [pet:succubus, combat,harm,exists,nodead] Seduction
/focus [exists,harm,nodead] target
/clearfocus [target=focus,dead]
/stopmacro [button:1/3/4/5] [combat]
/freak
]]
self.db.profile.spellname = "Seduction"
self.db.profile.targtypes = {Humanoid = true}
end
 
-- Paladin - Turn Undead --
self.db:SetProfile("Paladin - Turn Undead")
if self.db.profile.macrotext == "/freak" then
self.db.profile.macrotext = [[
/clearfocus [modifier:shift]
/stopmacro [modifier:shift]
/cast [target=focus,exists,nodead,harm] Turn Undead
/stopmacro [target=focus,exists,nodead,harm]
/cast [combat,harm,exists,nodead] Turn Undead
/focus [exists,harm,nodead] target
/clearfocus [target=focus,dead]
/stopmacro [button:1/3/4/5] [combat]
/freak
]]
self.db.profile.spellname = "Turn Undead"
self.db.profile.targtypes = {Undead = true}
end
 
-- Paladin - Turn Evil --
self.db:SetProfile("Paladin - Turn Evil")
if self.db.profile.macrotext == "/freak" then
self.db.profile.macrotext = [[
/clearfocus [modifier:shift]
/stopmacro [modifier:shift]
/cast [target=focus,exists,nodead,harm] Turn Evil
/stopmacro [target=focus,exists,nodead,harm]
/cast [combat,harm,exists,nodead] Turn Evil
/focus [exists,harm,nodead] target
/clearfocus [target=focus,dead]
/stopmacro [button:1/3/4/5] [combat]
/freak
]]
self.db.profile.spellname = "Turn Undead"
self.db.profile.targtypes = {Undead = true, Demon = true}
end
 
-- Hunter - Freezing Trap --
self.db:SetProfile("Hunter - Freezing Trap")
if self.db.profile.macrotext == "/freak" then
self.db.profile.macrotext = [[
/clearfocus [modifier:shift]
/stopmacro [modifier:shift]
/cast [target=focus,exists,nodead,harm] Freezing Trap
/stopmacro [target=focus,exists,nodead,harm]
/cast [combat] Freezing Trap
/focus [exists,harm,nodead] target
/clearfocus [target=focus,dead]
/stopmacro [button:1/3/4/5] [combat]
/freak
]]
self.db.profile.spellname = "Freezing Trap Effect"
self.db.profile.targtypes = {Beast = true, Humanoid = true, Undead = true, Demon = true, Elemental = true, Dragonkin = true}
end
 
-- Rogue -- Sap --
self.db:SetProfile("Rogue - Sap")
if self.db.profile.macrotext == "/freak" then
self.db.profile.macrotext = [[
/clearfocus [modifier:shift]
/stopmacro [modifier:shift]
/cast [target=focus,exists,nodead,harm,nocombat] Sap
/stopmacro [target=focus,exists,nodead,harm]
/cast [nocombat] Sap
/focus [exists,harm,nodead] target
/clearfocus [target=focus,dead]
/stopmacro [button:1/3/4/5] [combat]
/freak
]]
self.db.profile.spellname = "Sap"
self.db.profile.targtypes = {Humanoid = true}
end
 
self.db:SetProfile(profile)
end