Magery One Button Hotkey by jolanar

Related: Magery

Description:

Set the variables as desired. 1 = yes, 0 = no.

This will cast Reactive Armor if it's needed. It can also cast Leyline if you want. It will also use cure potion, heal potion if needed. You'll need to set a 5 second Leyline cooldown so that it doesn't just constantly turn it on and off. It will then cast Flamestrike until you are below 60 mana, then it will cast Magic Arrow, Harm, Fireball, Lightning if they are off cooldown (use variables to set cooldown length). Otherwise it will cast Flamestrike until below 40 mana, then Mind Blast.

1#Wizard Grimoire
2@setvar! castLightning 1
3@setvar! cdLightning 20000
4@setvar! castFireball 1
5@setvar! cdFireball 40000
6@setvar! castHarm 1
7@setvar! cdHarm 20000
8@setvar! castArrow 1
9@setvar! cdArrow 20000
10
11#Potions
12@setvar! useCurePotion 1
13@setvar! useHealthPotion 1
14    
15#Misc
16@setvar! castFlamestrike 1
17@setvar! castLeyline 1
18@setvar! cdLeyline 5000
19@setvar! castReactiveArmor 1
20@setvar! useTaunt 0
21
22
23if useCurePotion = 1 and poisoned
24    if findtype "Orange Potion" backpack as pot
25        dclick pot
26    endif
27endif
28
29if useHealthPotion = 1 and diffhits > 50
30    if findtype "Yellow Potion" backpack as pot
31        dclick pot
32    endif
33endif
34
35
36if castReactiveArmor = 1 and not findbuff "Reactive Armor" and mana >= 5
37    cast "Reactive Armor"
38    endif
39endif
40
41
42if useTaunt = 1 and not cooldown Taunt
43    say '[taunt'
44stop
45endif
46
47
48if diffmana > 30 and not cooldown Leyline and castLeyline = 1
49    say '[weaponability2'
50    cooldown Leyline cdLeyline
51endif
52
53if castFlamestrike = 1 and mana >= 80
54    cast 'Flamestrike'
55    while not targetexists 
56    endwhile
57    while targetexists 
58    endwhile
59    stop
60endif
61
62if castArrow = 1 and mana >= 5 and not cooldown Arrow
63    cast 'magic arrow'
64    while not targetexists
65    endwhile
66    while targetexists
67    endwhile
68    cooldown Arrow cdArrow
69    stop
70endif
71
72if castHarm = 1 and mana >= 9 and not cooldown Harm
73    cast 'harm'
74    while not targetexists
75    endwhile
76    while targetexists
77    endwhile
78    cooldown Harm cdHarm
79    stop
80endif
81           
82if castFireball = 1 and mana >= 12 and not cooldown Fireball
83    cast 'fireball'
84    while not targetexists
85    endwhile
86    while targetexists
87    endwhile
88    cooldown Fireball cdFireball
89    stop
90endif
91
92if castLightning = 1 and mana >= 12 and not cooldown Lightning
93    cast 'Lightning'
94    while not targetexists
95    endwhile
96    while targetexists
97    endwhile
98    cooldown Lightning cdLightning
99    stop                   
100endif
101
102if mana < 40 and not cooldown MagicMushroom
103    hotkey 'Eat Magic Mushroom'
104endif
105
106
107if castFlamestrike = 1 and mana >= 40
108    cast 'Flamestrike'
109    while not targetexists 
110    endwhile
111    while targetexists 
112    endwhile
113    stop
114endif
115
116cast 'mind blast'