-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMultiBotHunter.lua
177 lines (150 loc) · 8.37 KB
/
MultiBotHunter.lua
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
MultiBot.addHunter = function(pFrame, pCombat, pNormal)
local tButton = pFrame.addButton("NonCombatAspect", 0, 0, "spell_nature_protectionformnature", MultiBot.tips.hunter.naspect.master)
tButton.doLeft = function(pButton)
MultiBot.ShowHideSwitch(pButton.parent.frames["NonCombatAspect"])
end
local tFrame = pFrame.addFrame("NonCombatAspect", -2, 30)
tFrame:Hide()
tFrame.addButton("NonCombatNature", 0, 0, "spell_nature_protectionformnature", MultiBot.tips.hunter.naspect.rnature)
.doLeft = function(pButton)
MultiBot.SelectToTarget(pButton.get(), "NonCombatAspect", pButton.texture, "nc +rnature,?", pButton.getName())
pButton.getButton("NonCombatAspect").doRight = function(pButton)
MultiBot.OnOffActionToTarget(pButton, "nc +rnature,?", "nc -rnature,?", pButton.getName())
end
end
tFrame.addButton("NonCombatSpeed", 0, 26, "ability_mount_whitetiger", MultiBot.tips.hunter.naspect.bspeed)
.doLeft = function(pButton)
MultiBot.SelectToTarget(pButton.get(), "NonCombatAspect", pButton.texture, "nc +bspeed,?", pButton.getName())
pButton.getButton("NonCombatAspect").doRight = function(pButton)
MultiBot.OnOffActionToTarget(pButton, "nc +bspeed,?", "nc -bspeed,?", pButton.getName())
end
end
tFrame.addButton("NonCombatMana", 0, 52, "ability_hunter_aspectoftheviper", MultiBot.tips.hunter.naspect.bmana)
.doLeft = function(pButton)
MultiBot.SelectToTarget(pButton.get(), "NonCombatAspect", pButton.texture, "nc +bmana,?", pButton.getName())
pButton.getButton("NonCombatAspect").doRight = function(pButton)
MultiBot.OnOffActionToTarget(pButton, "nc +bmana,?", "nc -bmana,?", pButton.getName())
end
end
tFrame.addButton("NonCombatDps", 0, 78, "ability_hunter_pet_dragonhawk", MultiBot.tips.hunter.naspect.bdps)
.doLeft = function(pButton)
MultiBot.SelectToTarget(pButton.get(), "NonCombatAspect", pButton.texture, "nc +bdps,?", pButton.getName())
pButton.getButton("NonCombatAspect").doRight = function(pButton)
MultiBot.OnOffActionToTarget(pButton, "nc +bdps,?", "nc -bdps,?", pButton.getName())
end
end
-- STRATEGIES:NON-COMBAT-BUFF --
if(MultiBot.isInside(pNormal, "rnature")) then
tButton.setTexture("spell_nature_protectionformnature").setEnable().doRight = function(pButton)
MultiBot.OnOffActionToTarget(pButton, "nc +rnature,?", "nc -rnature,?", pButton.getName())
end
elseif(MultiBot.isInside(pNormal, "bspeed")) then
tButton.setTexture("ability_mount_whitetiger").setEnable().doRight = function(pButton)
MultiBot.OnOffActionToTarget(pButton, "nc +bspeed,?", "nc -bspeed,?", pButton.getName())
end
elseif(MultiBot.isInside(pNormal, "bmana")) then
tButton.setTexture("ability_hunter_aspectoftheviper").setEnable().doRight = function(pButton)
MultiBot.OnOffActionToTarget(pButton, "nc +bmana,?", "nc -bmana,?", pButton.getName())
end
elseif(MultiBot.isInside(pNormal, "bdps")) then
tButton.setTexture("ability_hunter_pet_dragonhawk").setEnable().doRight = function(pButton)
MultiBot.OnOffActionToTarget(pButton, "nc +bdps,?", "nc -bdps,?", pButton.getName())
end
end
-- COMABT-BUFF --
local tButton = pFrame.addButton("CombatAspect", -30, 0, "spell_nature_protectionformnature", MultiBot.tips.hunter.caspect.master)
tButton.doLeft = function(pButton)
MultiBot.ShowHideSwitch(pButton.parent.frames["CombatAspect"])
end
local tFrame = pFrame.addFrame("CombatAspect", -32, 30)
tFrame:Hide()
tFrame.addButton("CombatNature", 0, 0, "spell_nature_protectionformnature", MultiBot.tips.hunter.caspect.rnature)
.doLeft = function(pButton)
MultiBot.SelectToTarget(pButton.get(), "CombatAspect", pButton.texture, "co +rnature,?", pButton.getName())
pButton.getButton("CombatAspect").doRight = function(pButton)
MultiBot.OnOffActionToTarget(pButton, "co +rnature,?", "co -rnature,?", pButton.getName())
end
end
tFrame.addButton("CombatSpeed", 0, 26, "ability_mount_whitetiger", MultiBot.tips.hunter.caspect.bspeed)
.doLeft = function(pButton)
MultiBot.SelectToTarget(pButton.get(), "CombatAspect", pButton.texture, "co +bspeed,?", pButton.getName())
pButton.getButton("NonCombatAspect").doRight = function(pButton)
MultiBot.OnOffActionToTarget(pButton, "co +bspeed,?", "co -bspeed,?", pButton.getName())
end
end
tFrame.addButton("CombatMana", 0, 52, "ability_hunter_aspectoftheviper", MultiBot.tips.hunter.caspect.bmana)
.doLeft = function(pButton)
MultiBot.SelectToTarget(pButton.get(), "CombatAspect", pButton.texture, "co +bmana,?", pButton.getName())
pButton.getButton("CombatAspect").doRight = function(pButton)
MultiBot.OnOffActionToTarget(pButton, "co +bmana,?", "co -bmana,?", pButton.getName())
end
end
tFrame.addButton("CombatDps", 0, 78, "ability_hunter_pet_dragonhawk", MultiBot.tips.hunter.caspect.bdps)
.doLeft = function(pButton)
MultiBot.SelectToTarget(pButton.get(), "CombatAspect", pButton.texture, "co +bdps,?", pButton.getName())
pButton.getButton("CombatAspect").doRight = function(pButton)
MultiBot.OnOffActionToTarget(pButton, "co +bdps,?", "co -bdps,?", pButton.getName())
end
end
-- STRATEGIES:COMABT-ASPECT --
if(MultiBot.isInside(pCombat, "rnature")) then
tButton.setTexture("spell_nature_protectionformnature").setEnable().doRight = function(pButton)
MultiBot.OnOffActionToTarget(pButton, "co +rnature,?", "co -rnature,?", pButton.getName())
end
elseif(MultiBot.isInside(pCombat, "bspeed")) then
tButton.setTexture("ability_mount_whitetiger").setEnable().doRight = function(pButton)
MultiBot.OnOffActionToTarget(pButton, "co +bspeed,?", "co -bspeed,?", pButton.getName())
end
elseif(MultiBot.isInside(pCombat, "bmana")) then
tButton.setTexture("ability_hunter_aspectoftheviper").setEnable().doRight = function(pButton)
MultiBot.OnOffActionToTarget(pButton, "co +bmana,?", "co -bmana,?", pButton.getName())
end
elseif(MultiBot.isInside(pCombat, "bdps")) then
tButton.setTexture("ability_hunter_pet_dragonhawk").setEnable().doRight = function(pButton)
MultiBot.OnOffActionToTarget(pButton, "co +bdps,?", "co -bdps,?", pButton.getName())
end
end
-- DPS --
pFrame.addButton("DpsControl", -60, 0, "ability_warrior_challange", MultiBot.tips.hunter.dps.master)
.doLeft = function(pButton)
MultiBot.ShowHideSwitch(pButton.getFrame("DpsControl"))
end
local tFrame = pFrame.addFrame("DpsControl", -62, 30)
tFrame:Hide()
tFrame.addButton("DpsAssist", 0, 0, "spell_holy_heroism", MultiBot.tips.hunter.dps.dpsAssist).setDisable()
.doLeft = function(pButton)
if(MultiBot.OnOffActionToTarget(pButton, "co +dps assist,?", "co -dps assist,?", pButton.getName())) then
pButton.getButton("TankAssist").setDisable()
pButton.getButton("DpsAoe").setDisable()
end
end
tFrame.addButton("DpsDebuff", 0, 26, "spell_holy_restoration", MultiBot.tips.hunter.dps.dpsDebuff).setDisable()
.doLeft = function(pButton)
MultiBot.OnOffActionToTarget(pButton, "co +dps debuff,?", "co -dps debuff,?", pButton.getName())
end
tFrame.addButton("DpsAoe", 0, 52, "spell_holy_surgeoflight", MultiBot.tips.hunter.dps.dpsAoe).setDisable()
.doLeft = function(pButton)
if(MultiBot.OnOffActionToTarget(pButton, "co +dps aoe,?", "co -dps aoe,?", pButton.getName())) then
pButton.getButton("TankAssist").setDisable()
pButton.getButton("DpsAssist").setDisable()
end
end
tFrame.addButton("Dps", 0, 78, "spell_holy_divinepurpose", MultiBot.tips.hunter.dps.dps).setDisable()
.doLeft = function(pButton)
MultiBot.OnOffActionToTarget(pButton, "co +dps,?", "co -dps,?", pButton.getName())
end
-- ASSIST --
pFrame.addButton("TankAssist", -90, 0, "ability_warrior_innerrage", MultiBot.tips.hunter.tankAssist).setDisable()
.doLeft = function(pButton)
if(MultiBot.OnOffActionToTarget(pButton, "co +tank assist,?", "co -tank assist,?", pButton.getName())) then
pButton.getButton("DpsAssist").setDisable()
pButton.getButton("DpsAoe").setDisable()
end
end
-- STRATEGIES --
if(MultiBot.isInside(pCombat, "dps,")) then pFrame.getButton("Dps").setEnable() end
if(MultiBot.isInside(pCombat, "dps aoe")) then pFrame.getButton("DpsAoe").setEnable() end
if(MultiBot.isInside(pCombat, "dps assist")) then pFrame.getButton("DpsAssist").setEnable() end
if(MultiBot.isInside(pCombat, "dps debuff")) then pFrame.getButton("DpsDebuff").setEnable() end
if(MultiBot.isInside(pCombat, "tank assist")) then pFrame.getButton("TankAssist").setEnable() end
end