-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathbst_parse.mac
More file actions
38 lines (33 loc) · 830 Bytes
/
bst_parse.mac
File metadata and controls
38 lines (33 loc) · 830 Bytes
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
#event OutOfStuff "You are missing some required components."
Sub Main(gemNumber)
/declare counter int local 0
/declare memaxmana int local
/declare mecurrmana int local
/declare manacost int local
/declare pctpres int local
:Loop
/if (${Me.PctMana} < 20) {
/if (${Me.Standing}) /sit on
/delay 15s
/goto :Loop
}
/if (!${Me.SpellReady[${gemNumber}]}) {
/if (${Me.Standing}) /sit on
/delay 1s
/goto :Loop
} else {
/varcalc counter ${counter}+1
/cast ${gemNumber}
/delay 10s !${Me.Casting.ID}
/varset mecurrmana ${Me.CurrentMana}
/varset memaxmana ${Me.MaxMana}
/varcalc manacost ${memaxmana}-${mecurrmana}
/varcalc pctpres ((525-${manacost})/525)*100
/mqlog ${counter},${mecurrmana},${memaxmana},525,${manacost},${pctpres}
/goto :Loop
}
/return
Sub Event_OutOfStuff
/beep
/endmacro
/return