You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* New EventAI Events (EVENT_T_TARGET_HP, EVENT_T_TARGET_CASTING). New Cast flags (CAST_NO_MELEE_IF_OOM, CAST_FORCE_TARGET_SELF). Please read EventAI.txt
* Prevent crash in C'thun if no instance script. Boss will just not react to anything if instance script not set.
* Possibly fix Karathress.
* Add triggered bool to CanCast function.
git-svn-id: https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2@383 5f9c896b-1e26-0410-94da-f77f675e2462
Copy file name to clipboardexpand all lines: docs/EventAI.txt
+6-2
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,8 @@ Params are always read from Param1, then Param2, then Param3.
63
63
11 EVENT_T_RANGE MinDist, MaxDist, TimeUnitlRepeat Expires when the highest threat target distance is greater than (Param1) and less than (Param2). Repeats every (Param3) or never if Param3 = 0.
64
64
12 EVENT_T_OOC_LOS NoHostile, NoFriendly, TimeUntilRepeat Expires when a Player moves within visible distance to creature. Does not expire for Hostile Players if (Param1) is not 0. Does not expire for Friendly Players if (Param2) is not 0. Will repeat every (Param3) or never if Param3 = 0. Does not expire for creatures or pet or when the creature is in combat.
65
65
13 EVENT_T_SPAWNED NONE Expires at initial spawn and at creature respawn (useful for setting ranged movement type)
66
+
14 EVENT_T_TARGET_HP HPMax%, HPMin%, TimeUntilRepeat Expires when Current Target's HP is between (Param1) and (Param2). Will repeat every (Param3) or never repeat if Param3 = 0.
67
+
15 EVENT_T_TARGET_CASTING TimeUntilRepeat Expires when the player is casting a spell. Will repeat every (Param1) or never repeat if Param1 = 0.
66
68
67
69
-----------------------------------------
68
70
Action Types
@@ -128,9 +130,11 @@ Cast Flags
128
130
-----------------------------------------
129
131
Below is the list of current Cast Flags that EventAI's spell casting can handle.
130
132
Cast flags are handled bitwise. Bit 0 is Interrupt Previous, bit 1 is triggered, etc.
131
-
So for example the number "3"(11 in binary) would mean that this cast should both interrupt previous and triggered spell.
133
+
So for example the number "3"(11 in binary) would mean that this cast has both CAST_INTURRUPT_PREVIOUS and CAST_TRIGGERED.
132
134
133
135
(bit# Internal Name Discription)
134
136
0 CAST_INTURRUPT_PREVIOUS Interrupts any previous spell casting (basicaly makes sure that this spell goes off)
135
137
1 CAST_TRIGGERED Forces the spell to be instant cast and require no mana/reagents.
136
-
2 CAST_FORCE_CAST Forces spell to cast even if the player is possibly out of range or the creature is possibly out of mana
138
+
2 CAST_FORCE_CAST Forces spell to cast even if the target is possibly out of range or the creature is possibly out of mana
139
+
3 CAST_NO_MELEE_IF_OOM Prevents creature from entering melee if out of mana or out of range
140
+
4 CAST_FORCE_TARGET_SELF Forces the target to cast this spell on itself
0 commit comments