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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
|
local WHITE = "|cffffffff"
local SILVER = "|cffc0c0c0"
local GREEN = "|cff00ff00"
local LTBLUE = "|cffa0a0ff"
function DIYCE_DebugSkills(skillList)
DEFAULT_CHAT_FRAME:AddMessage(GREEN.."Skill List:")
for i,v in ipairs(skillList) do
DEFAULT_CHAT_FRAME:AddMessage(SILVER.." ['..WHITE..i..SILVER..']: "..LTBLUE.."" "..WHITE..v.name..LTBLUE.."" use = "..WHITE..(v.use and "true" or "false"))
end
DEFAULT_CHAT_FRAME:AddMessage(GREEN.."----------")
end
function DIYCE_DebugBuffList(buffList)
DEFAULT_CHAT_FRAME:AddMessage(GREEN.."Buff List:")
for k,v in pairs(buffList) do
-- We ignore numbered entries because both the ID and name
-- are stored in the list. This avoids doubling the output.
if type(k) ~= "number" then
DEFAULT_CHAT_FRAME:AddMessage(SILVER.." ['..WHITE..k..SILVER..']: "..LTBLUE.."id: "..WHITE..v.id..LTBLUE.." stack: "..WHITE..v.stack..LTBLUE.." time: "..WHITE..v.time)
end
end
DEFAULT_CHAT_FRAME:AddMessage(GREEN.."----------")
end
local silenceList = {
['Annihilation'] = true,
['King Bug Shock'] = true,
['Mana Rift'] = true,
['Dream of Gold'] = true,
['Flame'] = true,
['Flame Spell'] = true,
['Wave Bomb'] = true,
['Silence'] = true,
['Recover'] = true,
['Restore Life'] = true,
['Heal'] = true,
['Curing Shot'] = true,
['Leaves of Fire'] = true,
['Urgent Heal'] = true,
['Heavy Shelling'] = true,
['Dark Healing'] = true,
}
local subList = {
['Sharp Slash'] = true, -- 1st Boss DOD
['Conjure Energy'] = true, -- 4th boss GC HM AOE
['Cat Claw Whirlwind'] = true, --1st boss RT AOE
['Void Fire'] = true, --2nd boss RT AOE
}
arrowTime = 0
SlotRWB = 16 --Action Bar Slot # for Rune War Bow
SlotMNB = 17 --Action Bar Slot # for your Main Bow
local g_lastaction = ""
function CustomAction(action)
if CD(action) then
if IsShiftKeyDown() then Msg("- "..action) end
g_lastaction = action
CastSpellByName(action)
return true
else
return false
end
end
function Potion(healthpot,manapot)
local Skill = {}
local i = 0
local phealth = PctH("player")
local pctmana = PctM("player")
healthpot = healthpot or 0
manapot = manapot or 0
Skill = {
{ name = "Action: "..healthpot, use = (phealth <= .70) },
{ name = "Action: "..manapot, use = (pctmana <= .40) },
}
MyCombat(Skill,arg1)
end
function Pet(petnum)
if IsPetSummoned(petnum)
then ReturnPet(petnum)
else SummonPet(petnum)
end
end
function WardenPet(arg1)
local Skill = {}
local pctEB1 = PctM("player")
local pbuffs = BuffList("player")
local SpiritOfTheOakActive = UnitExists("pet") and (UnitName("pet") == "Spirit of the Oak")
local NatureCrystalActive = UnitExists("pet") and (UnitName("pet") == "Nature Crystal")
Skill = {
{ name = "Summon Spirit of the Oak", use = (not pbuffs['Heart of the Oak']) and (not SpiritOfTheOakActive) and (pctEB1 >= .15) },
{ name = "Heart of the Oak", use = SpiritOfTheOakActive and (not pbuffs['Heart of the Oak']) and (pctEB1 >= .05) },
{ name = "Summon Nature Crystal", use = (pbuffs['Heart of the Oak']) and (not NatureCrystalActive) and (pctEB1 >= .15) },
}
MyCombat(Skill, arg1)
end
function PriestFairySequence(arg1)
local Skill = {}
local Skill2 = {}
local i = 0
local FairyExists = UnitExists("playerpet")
local FairyBuffs = BuffList("playerpet")
local combat = GetPlayerCombatState()
--Determine Class-Combo
mainClass, subClass = UnitClassToken( "player" )
--main, second = UnitClass("player")
--Summon Fairy
if (not FairyExists) and (not combat) then
if mainClass == "AUGUR" then
if subClass == "THIEF" then
Skill = {
{ name = "Shadow Fairy", use = true },
}
elseif subClass == "RANGER" then
Skill = {
{ name = "Water Fairy", use = true },
}
elseif subClass == "MAGE" then
Skill = {
{ name = "Wind Fairy", use = true },
}
elseif subClass == "KNIGHT" then
Skill = {
{ name = "Light Fairy", use = true },
}
elseif subClass == "WARRIOR" then
Skill = {
{ name = "Fire Fairy", use = true },
}
end
end
end
--Cast Halo
if FairyExists then
if mainClass == "AUGUR" then
if subClass == "THIEF" then
if (not FairyBuffs[503459]) then
if (arg1 == "v1") then
Msg("- Activating Halo", 0, 1, 1)
end
Skill = {
{ name = "Pet Skill: 6 (Wraith Halo)", use = true },
}
end
elseif subClass == "RANGER" then
if (not FairyBuffs[503457]) then
if (arg1 == "v1") then
Msg("- Activating Halo", 0, 1, 1)
end
Skill = {
{ name = "Pet Skill: 6 (Frost Halo)", use = true },
}
end
elseif subClass == "MAGE" then
if (not FairyBuffs[503461]) then
if (arg1 == "v1") then
Msg("- Activating Halo", 0, 1, 1)
end
Skill = {
{ name = "Pet Skill: 6 (Windrider Halo)", use = true },
}
end
elseif subClass == "KNIGHT" then
if (not FairyBuffs[503507]) then
if (arg1 == "v1") then
Msg("- Activating Halo", 0, 1, 1)
end
Skill = {
{ name = "Pet Skill: 6 (Devotion Halo)", use = true },
}
end
elseif subClass == "WARRIOR" then
if (not FairyBuffs[503455]) then
if (arg1 == "v1") then
Msg("- Activating Halo", 0, 1, 1)
end
Skill = {
{ name = "Pet Skill: 6 (Accuracy Halo)", use = true },
}
end
end
--Cast Conceal
if (not MyCombat(Skill, arg1)) then
if (not FairyBuffs[503753]) then
if (arg1 == "v1") then
Msg("- Activating Conceal", 0, 1, 1)
end
Skill2 = {
{ name = "Pet Skill: 7 (Conceal)", use = true },
}
end
end
end
end
if (not MyCombat(Skill, arg1)) then
MyCombat(Skill2, arg1)
end
end
function KillSequence(arg1, healthpot, manapot, Healslot, foodslot, speedpot, ragepot, HoTslot)
--arg1 = "v1" or "v2" or for debugging
--healthpot = # of actionbar slot for health potions
--manapot = # of actionbar slot for mana potions
--foodslot = # of actionbar slot for food (add more args for more foodslots if needed)
local Skill = {}
local Skill2 = {}
local i = 0
-- Player and target status.
local combat = GetPlayerCombatState()
local enemy = UnitCanAttack("player","target")
local EnergyBar1 = UnitMana("player")
local EnergyBar2 = UnitSkill("player")
local pctEB1 = PctM("player")
local pctEB2 = PctS("player")
local tbuffs = BuffList("target")
local pbuffs = BuffList("player")
local tDead = UnitIsDeadOrGhost("target")
local behind = (not UnitIsUnit("player", "targettarget"))
local melee = GetActionUsable(13) -- # is your melee range spell slot number
local a1,a2,a3,a4,a5,ASon = GetActionInfo(14) -- # is your Autoshot slot number
local _,_,_,_,RWB,_ = GetActionInfo( SlotRWB )
local _,_,_,_,MNB,_ = GetActionInfo( SlotMNB )
local phealth = PctH("player")
local thealth = PctH("target")
local LockedOn = UnitExists("target")
local boss = UnitSex("target") > 2
local elite = UnitSex("target") == 2
local party = GetNumPartyMembers() >= 2
local PsiPoints, PsiStatus = GetSoulPoint()
local zoneid = (GetZoneID() % 1000)
local pvp = (zoneid == 402)
--Determine Class-Combo
mainClass, subClass = UnitClassToken( "player" )
--main, second = UnitClass("player")
--Silence Logic
local tSpell,tTime,tElapsed = UnitCastingTime("target")
local silenceThis = tSpell and silenceList[tSpell] and ((tTime - tElapsed) > 0.1)
--Substitute Logic (for R/S combo)
local subThis = tSpell and subList[tSpell] and ((tTime - tElapsed) > 0.1)
--Potion & Food Checks
healthpot = healthpot or 0
manapot = manapot or 0
speedpot = speedpot or 0
foodslot = foodslot or 0
--Equipment and Pet Protection
if phealth <= .04 then
--SwapEquipmentItem() --Note: Remove the first double dash to re-enable equipment protection.
for i=1,6 do
if (IsPetSummoned(i) == true) then
ReturnPet(i);
end
end
end
if (LockedOn and (UnitLevel("target") < 2)) then
TargetNearestEnemy()
return
end
--Begin Player Skill Sequences
--Priest = AUGUR, Druid = DRUID, Mage = MAGE, Knight = KNIGHT,
--Scout = RANGER, Rogue = THIEF, Warden = WARDEN, Warrior = WARRIOR
--Warlock = HARPSYN, Champion = PSYRON
-- Class: Warrior/Mage
if mainClass == "WARRIOR" and subClass == "MAGE" then
local SurpriseAttack = GetActionUsable(14)
--Potions and Buffs
Skill = {
{ name = "Action: "..healthpot, use = (phealth <= .70) },
{ name = "Survival Instinct", use = (phealth <= .30) and combat },
{ name = "Sense of Danger", use = (phealth <= .30) and combat },
{ name = "Action: "..manapot, use = (pctEB2 <= .40) },
{ name = "Action: "..Healslot, use = (phealth < .70) and (not combat) and (not party) },
{ name = "Action: "..HoTslot, use = (phealth < .80) and (not party) },
{ name = "Intensification", use = (pctEB2 >= .05) and (not pbuffs['Intensification']) and boss and enemy },
{ name = "Aggressiveness", use = boss and enemy },
{ name = "Electric Attack", use = (pctEB2 >= .05) and ((not pbuffs['Electric Attack']) or (pbuffs['Electric Attack'].time <= 45)) },
}
--Combat
if enemy then
Skill2 = {
{ name = "Silence", use = (silenceThis) },
{ name = "Surprise Attack", use = SurpriseAttack },
{ name = "Enraged", use = (EnergyBar1 <= 30) and (boss or elite) },
{ name = "Electrical Rage", use = (EnergyBar1 >= 15) and (pctEB2 >=.05) and (not pbuffs['High Voltage III']) },
{ name = "Thunder Sword", use = (pctEB2 >= .05) },
{ name = "Lightning's Touch", use = (pctEB2 >= .05) },
{ name = "Attack", use = (thealth == 1) },
}
end
-- Class: Warrior/Rogue
elseif mainClass == "WARRIOR" and subClass == "THIEF" then
local SurpriseAttack = GetActionUsable(14)
CreateDIYCETimer("SSBleed", 7) --Change the value between 6 -> 7.5 depending on your lag.
CreateDIYCETimer("SlashBleed", 6) --Change the value between 5.8 -> 6.2 depending on your lag.
--Ammo Check and Equip
local ammo = (GetEquipSlotInfo(10) ~= nil)
if (ammo == false) then
local HaveAmmo = false
local daggers = ""
for i=1,60 do
local x,y,name = GetBagItemInfo(i)
if (string.find(name, " Axe")) then --[[This will equip the daggers bought in Dalanis.
Change this name to whatever current throwing dagger you use.]]
HaveAmmo = true
daggers = name
end
end
if (HaveAmmo == true) then
i=i+1; Skill[i] = { name = "Item: "..daggers, use = (not ammo) } --Equip daggers if have
elseif ((g_cnt%100) == 0) then
SendChatMessage(DEFAULT_CHAT_FRAME:AddMessage"I need to get throwing daggers!")
end
g_cnt = g_cnt + 1
end
--[[if (goat = 'BossBuffs') then
Skill= {
{ name = 'Aggressiveness', use = boss and enemy },
{ name = 'Berserk', use = boss and enemy },
{ name = 'Frenzied Attack', use = boss and enemy },
}
end ]]--
--Potions and Buffs
Skill = {
{ name = "Action: "..healthpot, use = (phealth <= .70) },
{ name = "Survival Instinct", use = (phealth <= .33) and combat },
{ name = "Action: "..Healslot, use = (phealth < .70) and (not combat) and (not party) },
{ name = "Action: "..HoTslot, use = (phealth < .80) and (not party) },
}
--Combat
if enemy then
Skill2 = {
{ name = "Shout", use = (silenceThis) },
{ name = "Surprise Attack", use = SurpriseAttack },
{ name = "Feint", use = ((_target == UnitName("target")) and (_type == "DODGE")) },
{ name = "Enraged", use = (EnergyBar1 <= 30) and (boss or elite) },
{ name = "Blood Dance", use = (phealth >= .80) and boss },
{ name = "Slash", use = (EnergyBar1 >= 25), timer = "SlashBleed" },
{ name = "Shadowstab", use = (EnergyBar2 >= 20), timer = "SSBleed"},
{ name = "Blasting Cyclone", use = (EnergyBar1 >= 35) },
{ name = "Probing Attack", use = (EnergyBar1 >= 20) and (not pbuffs['Vulnerable']) },
{ name = "Open Flank", use = (EnergyBar1 >= 10) and (pbuffs['Vulnerable']) },
{ name = "Splitting Chop", use = (EnergyBar1 >= 15) and (pbuffs['Weakened']) },
{ name = "Keen Attack", use = (EnergyBar2 >= 20) and (pbuffs['Vulnerable']) },
{ name = "Shadowstab", use = (EnergyBar2 >= 20)},
{ name = "Attack", use = (thealth == 1) },
}
end
--Class: Druid/Mage
elseif mainClass == "DRUID" and subClass == "MAGE" then
--Potions and buffs
Skill = {
{ name = "Action: "..healthpot, use = (phealth <= .70) },
{ name = "Action: "..manapot, use = (pctEB1 <= .40) },
{ name = "Savage Blessing", use = (pctEB1 >= .05) and ((not pbuffs['Savage Blessing']) or (pbuffs['Savage Blessing'].time <= 45)) },
{ name = "Concentration Prayer", use = (pctEB1 >= .05) and ((not pbuffs['Concentration Prayer']) or (pbuffs ['Concentration Prayer'].time <= 45)) },
{ name = "Intensification", use = (pctEB1 >= .05) and (not pbuffs['Intensification']) and boss and enemy },
}
--Combat
if enemy then
Skill2 = {
{ name = "Binding Silence", use = (silenceThis) },
{ name = "Silence", use = (silenceThis) },
{ name = "Weakening Seed", use = (pctEB1 >= .05) and boss and ((not tbuffs['Weakening Seed']) or (tbuffs['Weakening Seed'].time < 4)) },
{ name = "Mother Nature's Wrath", use = (pctEB1 >= .05) },
{ name = "Briar Entwinement", use = (pctEB1 >= .05) and ((not tbuffs['Briar Entwinement']) or (tbuffs['Briar Entwinement'].time < 4)) },
{ name = "Lightning", use = (pctEB1 >= .05) },
{ name = "Fireball", use = (pctEB1 >= .05) },
{ name = "Earth Arrow", use = (pctEB1 >= .05) },
}
end
--Class: Mage/Warrior
elseif mainClass == "MAGE" and subClass == "WARRIOR" then
--Potions and buffs
Skill = {
{ name = "Action: "..healthpot, use = (phealth <= .70) },
{ name = "Action: "..manapot, use = (pctEB1 <= .40) },
{ name = "Intensification", use = (pctEB1 >= .05) and (not pbuffs['Intensification']) and boss and enemy },
{ name = "Magical Talent", use = (EnergyBar2 >= 20) and (not pbuffs['Magical Talent']) },
{ name = "Magical Enlightenment", use = (EnergyBar2 >= 35) and (not pbuffs['Magical Enlightenment']) },
{ name = "Elemental Explosion", use = (EnergyBar2 >= 35) and (not pbuffs['Elemental Explosion']) },
{ name = "Activate Mana", use = (EnergyBar2 <= 90) and ((not pbuffs['Magical Talent']) or (not pbuffs['Magical Enlightenment']) or (not pbuffs['Elemental Explosion'])) },
{ name = "Enraged", use = ((EnergyBar2 >= 15) and (EnergyBar2 <= 35)) and ((not pbuffs['Magical Talent']) or (not pbuffs['Magical Enlightenment']) or (not pbuffs['Elemental Explosion'])) },
}
--Combat
if enemy then
Skill2 = {
{ name = "Silence", use = (silenceThis) },
{ name = "Fireball", use = (pctEB1 >= .05) },
{ name = "Lightning", use = (pctEB1 >= .05) },
}
end
--Class: Knight/Mage
elseif mainClass == "KNIGHT" and subClass == "MAGE" then
local LKBR = GetActionUsable(20) -- # is Lion King Battle Roar spell slot number
--Potions and buffs
Skill = {
{ name = "Action: "..healthpot, use = (phealth <= .70) },
{ name = "Action: "..manapot, use = (pctEB1 <= .40) },
{ name = "Enhanced Armor", use = (pctEB1 >= .05) and ((not pbuffs['Enhanced Armor']) or (pbuffs['Enhanced Armor'].time <= 45)) },
{ name = "Holy Seal", use = (pctEB1 >= .05) and ((not pbuffs['Holy Seal']) or (pbuffs['Holy Seal'].time <= 45)) },
{ name = "Lightning Armor", use = (pctEB1 >= .05) and ((not pbuffs['Lightning Armor']) or (pbuffs['Lightning Armor'].time <= 45)) },
}
--Mana Shield
if IsShiftKeyDown() and (pbuffs['Mana Shield']) then
CancelBuff("Mana Shield")
end
Skill2 = {
{ name = "Mana Shield", use = (pctEB1 <= .25) },
}
--Combat
if enemy then
Skill3 = {
{ name = "Silence", use = (silenceThis) },
{ name = "Resolution", use = party and boss },
{ name = "Shield of Discipline", use = party and boss },
{ name = "Intensification", use = party and boss },
{ name = "Shield of Valor", use = party and boss },
{ name = "Hatred Strike", use = (pctEB1 >= .05) and party and boss },
{ name = "Threaten", use = (pctEB1 >= .05) and party and boss and (tbuffs['Holy Seals 3']) },
{ name = "Action: 20", use = (pctEB1 >= .07) and LKBR and party and boss },
{ name = "Custom: Holy Light Domain", use = (pctEB1 >= .05) and (not tbuffs['Holy Illumination']) and ((tbuffs['Light Seal I']) or (tbuffs['Light Seal II']) or (tbuffs['Light Seal III'])) and (g_lastaction ~= "Holy Light Domain") },
{ name = "Mana Return", use = (pctEB1 <= .80) and (tbuffs['Holy Seals 3']) },
{ name = "Whirlwind Shield", use = (pctEB1 >= .05) and (tbuffs['Holy Illumination']) },
{ name = "Custom: Holy Strike", use = (pctEB1 >= .05) and (not tbuffs['Light Seal III']) },
{ name = "Disarmament", use = (pctEB1 >= .05) and (not tbuffs['Disarmament IV']) and (tbuffs['Holy Illumination']) and party and boss },
{ name = "Custom: Holy Strike", use = (pctEB1 >= .05) },
{ name = "Attack", use = (thealth == 1) },
}
end
--Class: Mage/Druid
elseif mainClass == "MAGE" and subClass == "DRUID" then
--Potions and buffs
Skill = {
{ name = "Action: "..healthpot, use = (phealth <= .70) },
{ name = "Action: "..manapot, use = (pctEB1 <= .40) },
{ name = "Intensification", use = (pctEB1 >= .05) and (not pbuffs['Intensification']) and boss and enemy },
{ name = "Savage Blessing", use = (pctEB1 >= .05) and ((not pbuffs['Savage Blessing']) or (pbuffs['Savage Blessing'].time <= 45)) },
{ name = "Perception", use = (pctEB1 >= .05) and ((not pbuffs['Perception']) or (pbuffs['Perception'].time <= 45)) },
{ name = "Magic Target", use = (pctEB1 >= .05) and ((not pbuffs['Magic Target']) or (pbuffs['Magic Target'].time <= 45)) },
}
--Combat
if enemy then
Skill2 = {
{ name = "Silence", use = (silenceThis) },
{ name = "Fireball", use = (pctEB1 >= .05) },
{ name = "Magma Blade", use = (pctEB1 >= .05) },
{ name = "Lightning", use = (pctEB1 >= .05) },
}
end
--Class: Mage/Rogue
elseif mainClass == "MAGE" and subClass == "THIEF" then
--Potions and buffs
Skill = {
{ name = "Action: "..healthpot, use = (phealth <= .70) },
{ name = "Action: "..manapot, use = (pctEB1 <= .40) },
{ name = "Kiss of the Vampire", use = (pctEB1 >= .05) and (phealth <= .90) },
{ name = "Intensification", use = (pctEB1 >= .05) and (not pbuffs['Intensification']) and boss and enemy },
{ name = "Fang Ritual", use = (pctEB1 >= .05) and ((not pbuffs['Fang Ritual']) or (pbuffs['Fang Ritual'].time <= 45)) },
{ name = "Shadow Protection", use = (pctEB1 >= .05) and ((not pbuffs['Shadow Protection']) or (pbuffs['Shadow Protection'].time <= 45)) },
}
--Combat
if enemy then
if (not melee) then
Skill2 = {
{ name = "Silence", use = (silenceThis) },
{ name = "Cursed Fangs", use = (pctEB1 >= .05) and ((not tbuffs['Cursed Fangs']) or (tbuffs['Cursed Fangs'].time <= 2)) and (thealth >= .10) },
{ name = "Fireball", use = (pctEB1 >= .05) },
{ name = "Demoralize", use = (EnergyBar2 >= 30) and (boss or elite) },
}
elseif melee then
Skill3 = {
{ name = "Silence", use = (silenceThis) },
--{ name = "Cursed Fangs", use = (pctEB1 >= .05) and ((not tbuffs['Cursed Fangs']) or (tbuffs['Cursed Fangs'].time <= 2)) and (thealth >= .10) },
{ name = "Demoralize", use = (EnergyBar2 >= 30) and (boss or elite) },
{ name = "Fireball", use = (pctEB1 >= .05) },
{ name = "Blind Stab", use = (EnergyBar2 >= 20) },
{ name = "Shadowstab", use = (EnergyBar2 >= 20) },
}
end
end
--Class: Rogue/Scout
elseif mainClass == "THIEF" and subClass == "RANGER" then
--Timers for this class
CreateDIYCETimer("SSBleed", 8.8) --Change the value between 6 -> 7.5 depending on your lag.
CreateDIYCETimer("LBBleed", 8.8) --Change the value between 7 -> 8.5 depending on your lag.
--Ammo Check and Equip
if GetCountInBagByName("Runic Thorn") > 0 then
UseItemByName("Runic Thorn")
return true
end
if GetInventoryItemDurable("player", 9) == 0
and GetTime() - arrowTime > 2 then
if (not RWB) then
UseAction(SlotRWB)
return
end
UseEquipmentItem(10)
arrowTime = GetTime()
return true
end
if (not MNB) then
UseAction(SlotMNB)
return
end
--Potions and Buffs
Skill = {
{ name = "Action: "..healthpot, use = (phealth <= .70) },
{ name = "Combat Master", use = ((not pbuffs['Combat Master']) or (pbuffs['Combat Master'].time <= 45)) and (EnergyBar2 >= 30) },
{ name = "Poison", use = (not combat) and ((not pbuffs['Poisonous']) or (pbuffs['Poisonous'].time <= 45)) },
{ name = "Action: "..speedpot, use = (not pbuffs['Unbridled Enthusiasm']) },
{ name = "Action: "..foodslot, use = (not pbuffs['Spicy Meatsauce Burrito']) },
}
--Combat
if enemy then
Skill2 = {
{ name = "Throat Attack", use = melee and (silenceThis) },
{ name = "Substitute", use = subThis and (EnergyBar2 >= 30) },
{ name = "Energy Thief", use = ((EnergyBar1 < 25) and (boss) and (not tDead)) },
{ name = "Fervent Attack", use = (pbuffs['Energy Thief']) },
{ name = "Premeditation", use = (not combat) and boss and (EnergyBar1 >= 50) and (not pbuffs['Premeditation']) },
{ name = "Informer", use = boss },
{ name = "Assassins Rage", use = boss },
{ name = "Evasion", use = boss },
{ name = "Wrist Attack", use = (EnergyBar2 >= 35) and boss },
{ name = "Sneak Attack", use = (EnergyBar1 >= 20) and boss and behind and party and (not combat) },
{ name = "Blind Spot", use = (EnergyBar1 >= 20) and boss and behind and party },
{ name = "Vampire Arrows", use = (not melee) and (EnergyBar2 >= 20) },
{ name = "Shot", use = (not melee) },
{ name = "Wound Attack", use = (EnergyBar1 >= 35) and (tbuffs[620313]) and (tbuffs[500704]) },
{ name = "Low Blow", use = (EnergyBar1 >= 25) and (tbuffs[620313]) and (not tbuffs[500704]), timer = "LBBleed" },
{ name = "Shadowstab", use = (EnergyBar1 >= 20) and (not tbuffs[620313]), timer = "SSBleed" },
{ name = "Vampire Arrows", use = (EnergyBar2 >= 20) },
{ name = "Shot", use = true },
{ name = "Shadowstab", use = (EnergyBar1 >= 20) },
{ name = "Attack", use = (thealth == 1) },
}
end
--Class: Rogue/Priest
elseif mainClass == "THIEF" and subClass == "AUGUR" then
--Timers for this class
CreateDIYCETimer("SSBleed", 8.8) --Change the value between 6 -> 7.5 depending on your lag.
CreateDIYCETimer("LBBleed", 8.8) --Change the value between 7 -> 8.5 depending on your lag.
--Potions and Buffs
Skill = {
{ name = "Holy Aura", use = (phealth <= .20) },
{ name = "Regenerate", use = (phealth <= .90) and (pctEB2 >= .05) and (not pbuffs['Regenerate']) },
{ name = "Urgent Heal", use = (phealth <= .70) and (pctEB2 >= .05) and (not combat) },
{ name = "Action: "..healthpot, use = (phealth <= .70) },
{ name = "Action: "..manapot, use = (pctEB2 <= .40) },
{ name = "Magic Barrier", use = (pctEB2 >= .05) and ((not pbuffs['Magic Barrier']) or (pbuffs['Magic Barrier'].time <= 45)) },
{ name = "Quickness Aura", use = (pctEB2 >= .05) and ((not pbuffs['Quickness Aura']) or (pbuffs['Quickness Aura'].time <= 45)) },
{ name = "Poison", use = (not combat) and ((not pbuffs['Poisonous']) or (pbuffs['Poisonous'].time <= 45))},
{ name = "Action: "..speedpot, use = (not pbuffs['Unbridled Enthusiasm']) },
{ name = "Action: "..foodslot, use = (not pbuffs['Spicy Meatsauce Burrito']) },
}
--Combat
if enemy then
Skill2 = {
--{ name = "Throw", use = (not melee) and (not boss) },
{ name = "Premeditation", use = (not combat) and boss and (EnergyBar1 >= 50) and (not pbuffs['Premeditiation']) },
{ name = "Slowing Poison", use = boss },
{ name = "Informer", use = boss },
{ name = "Fervent Attack", use = boss },
{ name = "Assassins Rage", use = boss },
{ name = "Kick", use = (pctEB2 >= .05) },
{ name = "Sneak Attack", use = (EnergyBar1 >= 20) and boss and behind and party },
{ name = "Blind Spot Attack", use = (EnergyBar1 >= 20) and boss and behind and party },
{ name = "Wound Attack", use = (EnergyBar1 >= 35) and (tbuffs[620313]) and (tbuffs[500704]) },
{ name = "Low Blow", use = (EnergyBar1 >= 25) and (tbuffs[620313]) and (not tbuffs[500704]), timer = "LBBleed" },
{ name = "Shadowstab", use = (EnergyBar1 >= 20) and (not tbuffs[620313]), timer = "SSBleed" },
{ name = "Shadowstab", use = (EnergyBar1 >= 20) },
{ name = "Attack", use = (thealth == 1) },
}
end
--Class: Priest/Scout
elseif mainClass == "AUGUR" and subClass == "RANGER" then
--Ammo Check and Equip
if GetCountInBagByName("Runic Thorn") > 0 then
UseItemByName("Runic Thorn")
return true
end
if GetInventoryItemDurable("player", 9) == 0
and GetTime() - arrowTime > 2 then
if (not RWB) then
UseAction(SlotRWB)
return
end
UseEquipmentItem(10)
arrowTime = GetTime()
return true
end
if (not MNB) then
UseAction(SlotMNB)
return
end
--Potions and Buffs
Skill = {
{ name = "Holy Aura", use = (phealth <= .20) },
{ name = "Soul Source", use = (phealth <= .20) },
{ name = "Regenerate", use = (phealth <= .90) and (pctEB2 >= .05) and (not pbuffs['Regenerate']) },
{ name = "Urgent Heal", use = (phealth <= .70) and (pctEB2 >= .05) and (not combat) },
{ name = "Grace of Life", use = (pctEB2 >= .05) and ((not pbuffs['Grace of Life']) or (pbuffs['Grace of Life'].time <= 45)) },
{ name = "Magic Barrier", use = (pctEB2 >= .05) and ((not pbuffs['Magic Barrier']) or (pbuffs['Magic Barrier'].time <= 45)) },
{ name = "Embrace of the Water Spirit", use = (pctEB2 >= .05) and ((not pbuffs['Embrace of the Water Spirit']) or (pbuffs['Embrace of the Water Spirit'].time <= 45)) },
{ name = "Magic Barrier", use = (pctEB2 >= .05) and ((not pbuffs['Magic Barrier']) or (pbuffs['Magic Barrier'].time <= 45)) },
{ name = "Action: "..manapot, use = (pctEB1 <= .40) },
{ name = "Action: "..foodslot, use = (not pbuffs['Deluxe Seafood']) },
{ name = "Action: "..speedpot, use = (not pbuffs['Unbridled Enthusiasm']) },
}
--Combat
if enemy then
Skill2 = {
{ name = "Throat Attack", use = (silenceThis) },
{ name = "Ice Blade", use = (pctEB1 >= .05) },
{ name = "Vampire Arrows", use = (EnergyBar2 >= 20) },
{ name = "Shot", use = true },
}
end
elseif mainClass == "AUGUR" and subClass == "WARRIOR" then
--Potions and Buffs
Skill = {
{ name = "Holy Aura", use = (phealth <= .20) },
{ name = "Soul Source", use = (phealth <= .20) },
{ name = "Healing Salve", use = (phealth <= .90) and (pctEB1 >= .05) and (not pbuffs['Healing Salve']) },
{ name = "Regenerate", use = (phealth <= .90) and (pctEB1 >= .05) and (not pbuffs['Regenerate']) },
{ name = "Urgent Heal", use = (phealth <= .60) and (pctEB1 >= .05) },
{ name = "Grace of Life", use = (pctEB1 >= .05) and ((not pbuffs['Grace of Life']) or (pbuffs['Grace of Life'].time <= 45)) },
{ name = "Amplified Attack", use = (pctEB1 >= .05) and ((not pbuffs['Amplified Attack']) or (pbuffs['Grace of Life'].time <= 45)) },
{ name = "Magic Barrier", use = (pctEB1 >= .05) and ((not pbuffs['Magic Barrier']) or (pbuffs['Magic Barrier'].time <= 45)) },
{ name = "Blessed Spring Water", use = (pctEB1 >= .05) and ((not pbuffs['Blessed Spring Water']) or (pbuffs['Blessed Spring Water'].time <= 45)) },
{ name = "Battle Monk Stance", use = (pctEB1 >= .05) and ((not pbuffs['Battle Monk Stance']) or (pbuffs['Battle Monk Stance'].time <= 45)) },
{ name = "Power Build-Up", use = (pctEB1 >= .05) and ((not pbuffs['Power Build-Up']) or (pbuffs['Power Build-Up'].time <= 45)) },
{ name = "Condensed Rage", use = (EnergyBar2 >= 25) and ((not pbuffs['Condensed Rage']) or (pbuffs['Condensed Rage'].time <= 45)) },
{ name = "Action: "..manapot, use = (pctEB1 <= .60) },
{ name = "Action: "..foodslot, use = (not pbuffs['Unimaginable Salad']) },
{ name = "Action: "..speedpot, use = (not pbuffs['Unbridled Enthusiasm']) },
}
--Combat
if enemy then
Skill2 = {
{ name = "Vindictive Strike", use = (silenceThis) and (EnergyBar2 >= 10) },
{ name = "Regenerate", use = (pctEB1 >= .05) and (not pbuffs['Regenerate']) and boss },
{ name = "Vindictive Strike", use = (EnergyBar2 >= 10) },
{ name = "Ascending Dragin Strike", use = (EnergyBar2 >= 30) },
{ name = "Fighting Spirit Combination", use = (pctEB1 >= .05) },
{ name = "Explosion of Fighting Spirit",use = (pctEB1 >= .05) },
{ name = "Shot", use = true },
}
end
elseif mainClass == "AUGUR" and subClass == "THIEF" then
--Potions and Buffs
Skill = {
{ name = "Holy Aura", use = (phealth <= .20) },
}
--Combat
if enemy then
Skill2 = {
--{ name = "Wave Armor", use = (pctEB1 >= .05) and ((not pbuffs['Wave Armor']) or (pbuffs['Wave Armor'].time <= 2)) },
{ name = "Snake Curse", use = (EnergyBar2 >= 30) and ((not tbuffs['Snake Curse']) or (tbuffs['Snake Curse'].time <= 2)) },
{ name = "Ice Fog", use = (pctEB1 >= .05) and ((not tbuffs['Ice Fog I']) or (not tbuffs['Ice Fog II']) or (not tbuffs['Ice Fog III'])) },
{ name = "Infectious Wound", use = (EnergyBar2 >= 30) },
{ name = "Lure of the Snake Woman", use = (EnergyBar2 >= 40) and (boss) },
{ name = "Bone Chill", use = (pctEB1 >= .05) and ((not tbuffs['Bone Chill']) or (tbuffs['Bone Chill'].time <= 2)) },
{ name = "Rising Tide", use = (pctEB1 >= .05) },
{ name = "Action: "..speedpot, use = (not pbuffs['Unbridled Enthusiasm']) },
}
end
elseif mainClass == "RANGER" and subClass == "AUGUR" then
--Ammo Check and Equip
if GetCountInBagByName("Runic Thorn") > 0 then
UseItemByName("Runic Thorn")
return true
end
if GetInventoryItemDurable("player", 9) == 0
and GetTime() - arrowTime > 2 then
if (not RWB) then
UseAction(SlotRWB)
return
end
UseEquipmentItem(10)
arrowTime = GetTime()
return true
end
--[[ if (not MNB) then
UseAction(SlotMNB)
return
end ]]--
--Potions and Buffs
Skill = {
{ name = "Regenerate", use = (phealth <= .90) and (pctEB2 >= .05) and (not pbuffs['Regenerate']) },
{ name = "Urgent Heal", use = (phealth <= .70) and (pctEB2 >= .05) and (not combat) },
{ name = "Action: "..healthpot, use = (phealth <= .70) },
{ name = "Action: "..manapot, use = (pctEB2 <= .40) },
{ name = "Magic Barrier", use = (pctEB2 >= .05) and ((not pbuffs['Magic Barrier']) or (pbuffs['Magic Barrier'].time <= 45)) },
--{ name = "Frost Arrow", use = (not combat) and (EnergyBar1 >= 20) and ((not pbuffs['Frost Arrow']) or (pbuffs['Frost Arrow'].time <= 45)) },
{ name = "Blood Arrow", use = ((not combat or (phealth <= .45)) and (pbuffs['Blood Arrow'])) },
{ name = "Target Area", use = (tdead and (pbuffs['Target Area'])) },
{ name = "Action: "..speedpot, use = (not pbuffs['Unbridled Enthusiasm']) },
}
--Combat
if enemy then
Skill2 = {
{ name = "Throat Attack", use = melee and (silenceThis) },
{ name = "Neck Strike", use = (silenceThis) },
{ name = "Blood Arrow", use = (phealth >= .95) and (not pbuffs['Blood Arrow']) and boss },
{ name = "Target Area", use = (EnergyBar1 >= 40) and (not pbuffs['Target Area']) and boss },
{ name = "Concentration", use = (not pbuffs['Concentration']) and boss },
{ name = "Arrow of Essence", use = (not pbuffs['Arrow of Essence']) and boss },
{ name = "Autoshot", use = (not ASon) },
{ name = "Vampire Arrows", use = (EnergyBar1 >= 20) },
{ name = "Shot", use = true },
}
end
--Class: Scout/Rogue
elseif mainClass == "RANGER" and subClass == "THIEF" then
--Timers for this class
--[[ --Ammo Check and Equip
if GetCountInBagByName('Runic Thorn') > 0 then
UseItemByName('Runic Thorn')
return true
end
if GetInventoryItemDurable('player', 9) == 0
and GetTime() - arrowTime > 2 then
if (not RWB) then
UseAction(SlotRWB)
return
end
UseEquipmentItem(10)
arrowTime = GetTime()
return true
end
if (not MNB) then
UseAction(SlotMNB)
return
end ]]--
--Potions and Buffs
Skill = {
{ name = "Action: "..healthpot, use = (phealth <= .70) },
}
--Combat
if enemy then
Skill2 = {
{ name = "Neck Strike", use = melee and (silenceThis) },
{ name = "Sapping Arrow", use = (EnergyBar2 >= 30) },
{ name = "Weak Spot", use = (EnergyBar1 >= 30) },
{ name = "Piercing Arrow", use = true },
{ name = "Custom: Shot", use = (g_lastaction ~= "Shot") },
{ name = "Vampire Arrows", use = (EnergyBar1 >= 20) and CD("Deadly Poison Bite")},
{ name = "Deadly Poison Bite", use = (EnergyBar2 >= 30) },
{ name = "Custom: Reflected Shot", use = true },
{ name = "Shot", use = true },
}
end
--Class: Rogue/Warden
elseif mainClass == "THIEF" and subClass == "WARDEN" then
--Timers for this class
CreateDIYCETimer("SSBleed", 8.8) --Change the value between 6 -> 7.5 depending on your lag.
CreateDIYCETimer("LBBleed", 8.8) --Change the value between 7 -> 8.5 depending on your lag.
CreateDIYCETimer("BBCritBonus", 20) --Timer for Bloodthirsty Blade Crit Bonus Effect
CreateDIYCETimer("PotWSBonus", 20) --Timer for Power of the Wood Spirit Damage Bonus Effect
--Potions and Buffs
Skill = {
{ name = "Action: "..Healslot, use = (phealth <= .70) and (not combat) and (not party) },
{ name = "Action: "..healthpot, use = (phealth <= .70) },
{ name = "Action: "..manapot, use = (pctEB2 <= .40) },
{ name = "Briar Shield", use = ((not pbuffs['Briar Shield']) or (pbuffs['Briar Shield'].time <= 45))},
{ name = "Poison", use = (not combat) and ((not pbuffs['Poisonous']) or (pbuffs['Poisonous'].time <= 45))},
{ name = "Wound Patch", use = ((not pbuffs['Wound Patch']) or (pbuffs['Wound Patch'].time <= 45)) and (EnergyBar1 >= 50) },
{ name = "Action: "..speedpot, use = (not pbuffs['Unbridled Enthusiasm']) },
{ name = "Action: "..foodslot, use = (not pbuffs['Spicy Meatsauce Burrito']) },
}
--Combat
if enemy then
Skill2 = {
{ name = "Premeditation", use = (not combat) and boss and (EnergyBar1 >= 50) and (not pbuffs['Premeditation']) },
{ name = "Informer", use = boss },
{ name = "Fervent Attack", use = boss },
{ name = "Savage Power", use = boss },
{ name = "Assassins Rage", use = boss },
-- { name = "Phantom Blade", use = (pctEB2 >= .1) and (phealth >= .60) },
{ name = "Weak Point Strike", use = (pctEB2 >= .1) },
{ name = "Bloodthirsty Blade", use = (pctEB2 >= .1), timer = "BBCritBonus" },
{ name = "Power of the Wood Spirit", use = (pctEB2 >= .1), timer = "PotWSBonus" },
--{ name = "Sneak Attack", use = (EnergyBar1 >= 20) and boss and behind and party },
--{ name = "Blind Spot Attack", use = (EnergyBar1 >= 20) and boss and behind and party },
{ name = "Wound Attack", use = (EnergyBar1 >= 35) and ((tbuffs[620313]) and (tbuffs['Grievous Wound'])) },
{ name = "Low Blow", use = (EnergyBar1 >= 30) and (tbuffs[620313]) and (not tbuffs['Grievous Wound']), timer = "LBBleed" },
{ name = "Shadowstab", use = (EnergyBar1 >= 20) and (not tbuffs[620313]), timer = "SSBleed" },
{ name = "Shadowstab", use = (EnergyBar1 >= 20) },
{ name = "Power of the Wood Spirit", use = (pctEB2 >= .1) },
{ name = "Attack", use = (thealth == 1) },
}
end
--Class: Warden/Rogue
elseif mainClass == "WARDEN" and subClass == "THIEF" then
CreateDIYCETimer("SSBleed", 3.0) --Set to 3 so it will go off, then PotWS, then back to SS, etc.
--Potions and Buffs
Skill = {
{ name = "Walker Spirit", use = (phealth <= .40) },
{ name = "Action: "..Healslot, use = (phealth <= .70) and (not combat) and (not party) },
{ name = "Action: "..healthpot, use = (phealth <= .70) },
{ name = "Action: "..manapot, use = (pctEB1 <= .40) },
{ name = "Briar Shield", use = ((not pbuffs['Briar Shield']) or (pbuffs['Briar Shield'].time <= 45))},
{ name = "Action: "..speedpot, use = (not pbuffs['Unbridled Enthusiasm']) },
{ name = "Action: "..foodslot, use = (not pbuffs['Spicy Meatsauce Burrito']) },
}
--Combat
if enemy then
Skill2 = {
{ name = "Savage Power", use = boss },
{ name = "Together", use = (EnergyBar2 >= 50) },
{ name = "Achilles' Heel Strike", use = (EnergyBar2 >= 30) },
{ name = "Thorny Vines", use = (pctEB1 >= .05) and (not pbuffs['Thorny Vine']) },
{ name = "Gravel Attack", use = (EnergyBar2 >= 30) },
{ name = "Shadowstab", use = (EnergyBar2 >= 20), timer = "SSBleed" },
{ name = "Power of the Wood Spirit", use = (pctEB1 >= .05) },
{ name = "Attack", use = (thealth == 1) },
}
end
-- Class: Warrior/Warden
elseif mainClass == "WARRIOR" and subClass == "WARDEN" then
local SurpriseAttack = GetActionUsable(17)
CreateDIYCETimer("SlashBleed", 6) --Change the value between 5.8 -> 6.2 depending on your lag.
--Combat
if enemy then
Skill = {
{ name = "Shout", use = (silenceThis) },
{ name = "Surprise Attack", use = SurpriseAttack },
{ name = "Savage Whirlwind", use = (pctEB2 >= .05) },
{ name = "Probing Attack", use = (EnergyBar1 >= 20) },
{ name = "Open Flank", use = (EnergyBar1 >= 10) and (tbuffs['Vulnerable']) },
{ name = "Slash", use = (EnergyBar1 >= 25), timer = "SlashBleed" },
{ name = "Tactical Attack", use = (EnergyBar1 >= 15) and (tbuffs[500081])},
{ name = "Power of the Wood Spirit",use = (pctEB2 >= .05) },
{ name = "Attack", use = (thealth == 1) },
}
end
--Class Warlock/Warrior
elseif mainClass == "HARPSYN " and subClass == "WARRIOR" then
--Combat
if enemy then
Skill = {
{ name = "Weakening Weave Curse", use = ((EnergyBar1 >= 20) and (not tbuffs['Weakened'])) },
{ name = "Perception Extraction", use = (EnergyBar1 >= 15) and (not tbuffs['Perception Extraction']) },
{ name = "Warp Charge", use = ((EnergyBar1 >= 30) and (not pbuffs['Warp Charge'])) },
{ name = "Psychic Arrows", use = (EnergyBar1 >= 20) },
}
end
end
--End Player Skill Sequences
if (not MyCombat(Skill, arg1)) then
MyCombat(Skill2, arg1)
end
--Select Next Enemy
if (tDead) then
TargetUnit("")
return
end
if mainClass == "RANGER" and (not party) then --To keep scouts from pulling mobs without meaning to.
if (not LockedOn) or (not enemy) then
TargetNearestEnemy()
return
end
elseif mainClass ~= "RANGER" then --Let all other classes auto target.
if (not LockedOn) or (not enemy) then
TargetNearestEnemy()
return
end
end
end
|