Skip to content

Commit 3683965

Browse files
committed
Various small fixes
1 parent 418bcb1 commit 3683965

36 files changed

+571
-263
lines changed

bot_custom_events.inc

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
|
2+
| bot_custom_events.inc
3+
|
4+
| Add your custom code here for event responses.
5+
|
6+
| Sub SetupCustomEvents MUST EXIST
7+
8+
9+
|------------------
10+
| SetupCustomEvents
11+
| This sub will be called once during program startup. Use it to setup timers and such.
12+
|------------------
13+
Sub SetupCustomEvents
14+
| hateplaneb
15+
/if (${Zone.ID}==76) /declare InnyDoomTimer timer global 5s
16+
/return
17+
18+
|------------
19+
| Event_Timer
20+
| Built in function that will trigger any time a timer expires.
21+
| Use this to call special handling routines as needed based on what timer expired.
22+
|------------
23+
Sub Event_Timer(Timer,OriginalValue)
24+
/if (${String[${Timer}].Equal[InnyDoomTimer]}) /call InnyDoomTimer ${OriginalValue}
25+
/return
26+
27+
|
28+
|### hateplaneb Inny Doom
29+
|
30+
31+
#event InnyDoom "#*#You feel a sense of doom upon you.#*#"
32+
33+
Sub Event_InnyDoom
34+
/if (${AnnounceChannel.NotEqual[NULL]}) /docommand /${AnnounceChannel} Inny wants to DT me!
35+
/while ( ${Me.Song[Doom].ID} && ${Me.State.NotEqual[HOVER]} ) {
36+
/bc -- Need Cure for Doom --
37+
/delay 2s ${Spawn[Cleansing Aura].ID}
38+
/doevents
39+
/moveto id ${Spawn[Cleansing Aura].ID} loose
40+
/delay 2s ${Math.Distance[${Me.Y},${Me.X}:${YLOC},${XLOC}]}<10
41+
}
42+
/return
43+
44+
Sub InnyDoomTimer(OriginalValue)
45+
/if (${Zone.ID}==76) {
46+
/call InnyDoomAura
47+
}
48+
/varset InnyDoomTimer ${OriginalValue}
49+
/return
50+
51+
Sub InnyDoomAura
52+
| Calls the Aura location for the raid, fixed approximate X locations are:
53+
| X=104 == door
54+
| X=125 == Corner
55+
| X=-4 == Spawn
56+
57+
/if (${Zone.ID}==76 && ${Spawn[Cleansing Aura].ID}) {
58+
/declare X int local
59+
/varset X ${Spawn[Cleansing Aura].X}
60+
/if (${X} < 0) {
61+
/rsay Aura at SPAWN
62+
} else /if ( ${X} < 112 ) {
63+
/rsay Aura at DOOR
64+
} else {
65+
/rsay Aura at CORNER
66+
}
67+
} else {
68+
/bc Can't find cleansing aura!
69+
}
70+
/return
71+

bot_melee.mac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Sub Main(string _tank1Name, string _tank2Name, string _tank3Name, int _healPoint
107107
|-- std library (burns/aa/clicks)
108108
/call chkAA
109109
/call chkBurn
110-
/call chkCryActive
110+
|/call chkCryActive
111111
/call chkClicky
112112

113113
|-- verify target status

bot_pal.mac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Sub Main(string _tank1Name, string _tank2Name, string _tank3Name, int _healPoint
123123
|-- std library (burns/aa/clicks)
124124
/call chkAA
125125
/call chkBurn
126-
/call chkCryActive
126+
|/call chkCryActive
127127
/call chkClicky
128128

129129
|-- verify target status

0 commit comments

Comments
 (0)