// Map deprotected by X-deprotect (version 2006-10-02) by zibada
// http://dimon.xgm.ru/xdep/
// Visit our modmaking community at http://xgm.ru/
Name | Type | is_array | initial_value |
Angle | real | No | |
Asist | string | Yes | |
Asist_control | integer | Yes | |
Asistencia_Mostrar | string | No | |
BB2 | integervar | No | |
BB22 | integervar | No | |
BB_AmeratsuBoolean | boolean | Yes | |
BB_AmeratsuBoolean2 | boolean | Yes | |
BB_Attacked | unit | No | |
BB_Attacked2 | unit | No | |
BB_Casting | unit | Yes | |
BB_Casting2 | unit | Yes | |
BB_Chance | integer | No | |
BB_Chance2 | integer | No | |
BB_Damage | real | Yes | |
BB_Damage2 | real | Yes | |
BB_Expire | integer | Yes | |
BB_Expire2 | integer | Yes | |
BB_Group | group | No | |
BB_Group2 | group | No | |
BB_LEVEL | integer | No | |
BB_LEVEL2 | integer | No | |
BB_Loop | integervar | No | |
BB_Off | boolean | Yes | |
BB_Off2 | boolean | Yes | |
BB_Point | location | Yes | |
BB_Point2 | location | Yes | |
BB_Real_Damage_Spam | integer | Yes | |
BB_Real_Damage_Spam2 | integer | Yes | |
BB_Skip | integer | No | |
BB_Skip2 | integer | No | |
BB_Targ | unit | Yes | |
BB_Targ2 | unit | Yes | |
BB_Times | integer | No | |
BB_Times2 | integer | No | |
Blink_Storm_Caster | unit | Yes | |
Bool | boolean | No | |
boolean01 | boolean | No | |
boolean02 | boolean | No | |
boolean03 | boolean | No | |
boolean04 | boolean | No | |
boolean05 | boolean | No | |
boolean06 | boolean | No | |
booleans01 | boolean | Yes | |
booleans02 | boolean | Yes | |
booleans03 | boolean | Yes | |
booleans04 | boolean | Yes | |
booleans05 | boolean | Yes | |
BugGroup | group | No | |
button01 | button | No | |
button02 | button | No | |
buttons01 | button | Yes | |
camerasetup01 | camerasetup | No | |
camerasetup02 | camerasetup | No | |
camerasetup03 | camerasetup | No | |
Caster | unit | Yes | |
Caster_Unit | unit | No | |
Chance | integer | Yes | |
ChidoriCaster | unit | No | |
ChronoPoint | location | No | |
ChronoPoint2 | location | No | |
Circles | unit | Yes | |
Colores | string | Yes | |
ComboWhore | integer | No | |
ComboWhoreTeam | integer | No | |
Damage45 | integer | Yes | |
Dance | timer | Yes | |
Dance200 | timer | Yes | |
destructable01 | destructable | No | |
destructable02 | destructable | No | |
destructable03 | destructable | No | |
destructables01 | destructable | Yes | |
destructables02 | destructable | Yes | |
destructables03 | destructable | Yes | |
destructables04 | destructable | Yes | |
destructables05 | destructable | Yes | |
destructables06 | destructable | Yes | |
dialog01 | dialog | No | |
dialog02 | dialog | No | |
dialog03 | dialog | No | |
dialog04 | dialog | No | |
dialog05 | dialog | No | |
DmgUnits23 | group | Yes | |
Dummy78 | unit | Yes | |
effect01 | effect | No | |
effect02 | effect | No | |
effects01 | effect | Yes | |
effects02 | effect | Yes | |
effects03 | effect | Yes | |
EnPlace | location | No | |
EnPlace2 | location | Yes | |
FirstBlood | boolean | No | |
forces01 | force | Yes | |
FullMap | rect | No | |
FuutonCaster | unit | No | |
FuutonDummy | unit | No | |
FuutonEffect | effect | No | |
FuutonEffectDummy | effect | No | |
FuutonSize | integer | No | |
FuutonTarget | unit | No | |
Game_Minutes | integer | No | |
Game_Seconds | integer | No | |
Game_Time | timer | No | |
gamecache01 | gamecache | No | |
General_Integer | integer | Yes | |
General_Point | location | Yes | |
General_String | string | Yes | |
group01 | group | No | |
group02 | group | No | |
group03 | group | No | |
group04 | group | No | |
group05 | group | No | |
group06 | group | No | |
group07 | group | No | |
group08 | group | No | |
group09 | group | No | |
group10 | group | No | |
group11 | group | No | |
Group11 | group | Yes | |
group12 | group | No | |
group13 | group | No | |
Group140 | group | Yes | |
Group85 | group | Yes | |
groups01 | group | Yes | |
groups02 | group | Yes | |
groups03 | group | Yes | |
groups04 | group | Yes | |
groups05 | group | Yes | |
groups06 | group | Yes | |
groups07 | group | Yes | |
groups08 | group | Yes | |
groups09 | group | Yes | |
groups10 | group | Yes | |
Hardened_Skin_Group | group | No | |
Heavy_Violence_lite | sound | No | |
Hero_Icons | imagefile | Yes | |
HL_comando | unit | Yes | |
HL_comando_nombres | string | Yes | |
integer01 | integer | No | |
integer02 | integer | No | |
integer03 | integer | No | |
integer04 | integer | No | |
integer05 | integer | No | |
integer06 | integer | No | |
integer07 | integer | No | |
integer08 | integer | No | |
integer09 | integer | No | |
integer10 | integer | No | |
integer11 | integer | No | |
integer12 | integer | No | |
integer13 | integer | No | |
integer14 | integer | No | |
integer15 | integer | No | |
integer16 | integer | No | |
integer17 | integer | No | |
integer18 | integer | No | |
integer19 | integer | No | |
integer20 | integer | No | |
integers01 | integer | Yes | |
integers02 | integer | Yes | |
integers03 | integer | Yes | |
integers04 | integer | Yes | |
integers05 | integer | Yes | |
integers06 | integer | Yes | |
integers07 | integer | Yes | |
integers08 | integer | Yes | |
integers09 | integer | Yes | |
integers10 | integer | Yes | |
integers11 | integer | Yes | |
integers12 | integer | Yes | |
integers13 | integer | Yes | |
integers14 | integer | Yes | |
integers15 | integer | Yes | |
integers16 | integer | Yes | |
integers17 | integer | Yes | |
integers18 | integer | Yes | |
integers19 | integer | Yes | |
integers20 | integer | Yes | |
itemtype01 | itemtype | No | |
jajaja | sound | No | |
KatonCaster | unit | No | |
KatonDamage | integer | No | |
KatonDirection | integer | No | |
KatonDummy | unit | No | |
KatonGroup | group | No | |
KillinPlayer | integer | No | |
Killsinarow | integer | Yes | |
Kimi2 | unit | No | |
Kimi22 | unit | No | |
KimiDummy | unit | Yes | |
Kimimarocastertarget | unit | Yes | |
KimimaroTargetPoint | location | Yes | |
KimiTarget | unit | No | |
KimiTarget2 | unit | No | |
Knochen | unit | Yes | |
Konan00 | unit | Yes | |
Konan20 | unit | Yes | |
Kunaigroup00 | group | Yes | |
LeaderboardKills | integer | Yes | |
LeaderboardScourge | leaderboard | No | |
LeaderboardSentinel | leaderboard | No | |
lightning01 | lightning | No | |
lightnings01 | lightning | Yes | |
lightnings02 | lightning | Yes | |
lightnings03 | lightning | Yes | |
location01 | location | No | |
location02 | location | No | |
location03 | location | No | |
location04 | location | No | |
location05 | location | No | |
location06 | location | No | |
location07 | location | No | |
location08 | location | No | |
location09 | location | No | |
location10 | location | No | |
locations01 | location | Yes | |
locations02 | location | Yes | |
locations03 | location | Yes | |
locations04 | location | Yes | |
locations05 | location | Yes | |
locations06 | location | Yes | |
locations07 | location | Yes | |
locations08 | location | Yes | |
locations09 | location | Yes | |
locations10 | location | Yes | |
locations11 | location | Yes | |
locations12 | location | Yes | |
locations13 | location | Yes | |
locations14 | location | Yes | |
locations15 | location | Yes | |
locations16 | location | Yes | |
locations17 | location | Yes | |
locations18 | location | Yes | |
locations19 | location | Yes | |
locations20 | location | Yes | |
locations21 | location | Yes | |
locations22 | location | Yes | |
locations23 | location | Yes | |
LPoint1 | location | No | |
LPoint2 | location | No | |
Ma_effec | effect | Yes | |
MA_Point | location | Yes | |
MA_RealDmg | real | Yes | |
MA_SFX | effect | No | |
MA_SFX_2 | effect | No | |
MA_SFX_3 | effect | No | |
MA_SFX_4 | effect | No | |
MA_Target | unit | Yes | |
MA_Trig | unit | Yes | |
Move | location | Yes | |
MUI | integer | No | |
Multiboard | multiboard | No | |
multiboard01 | multiboard | No | |
Multiboard_Clock | integer | No | |
Multiboard_ShowDeaths | boolean | No | |
Multiboard_Spots | integer | Yes | |
MyPlace | location | No | |
Naga_Leavers | player | Yes | |
Nature_Leavers | player | Yes | |
Pheon_Missile | effect | Yes | |
Player_Brown | force | No | |
Player_Color | playercolor | Yes | |
Player_Colored_Names | string | Yes | |
Player_Deaths | integer | Yes | |
Player_Integer | integer | Yes | |
Player_Kills | integer | Yes | |
Player_Pink | force | No | |
Player_Red | force | No | |
Player_Row | integer | Yes | |
PlayerColors | string | Yes | |
PlayerNames | string | Yes | |
Players | force | No | |
players01 | player | Yes | |
PlayersCount | integer | No | |
PlayersScourge | force | No | |
PlayersSentinel | force | No | |
Point | location | Yes | |
Point022 | location | Yes | |
Point10 | location | Yes | |
Point132 | location | Yes | |
Point2 | location | Yes | |
Point2788 | location | Yes | |
Point96 | location | Yes | |
PointAles777 | location | Yes | |
PointG00 | location | Yes | |
PointG46 | location | Yes | |
PositionKimi | location | No | |
PositionKimi2 | location | No | |
PositionKimiTarget | location | No | |
quickkill | integer | Yes | |
QuickKillTimer | timer | Yes | |
Random2 | integer | No | |
RanseganIntenger | integer | No | |
RasenAttacker | unit | No | |
RasendanCaster | unit | No | |
RasendanDummy | unit | Yes | |
RasendanEffect | effect | No | |
RasendanTarget | unit | No | |
RasendanTargetPoint | location | No | |
RasenDummy | unit | No | |
RasenEffect | effect | No | |
RasenEffect_Copiar | effect | Yes | |
RasenganCaster | unit | No | |
RasenganDummy | unit | No | |
RasenganEffect | effect | No | |
RasenganPoint | location | Yes | |
RasenganTarget | unit | No | |
RasenInteger | integer | No | |
RasenTarget | unit | No | |
Real | real | No | |
real01 | real | No | |
real02 | real | No | |
real03 | real | No | |
real04 | real | No | |
real05 | real | No | |
real06 | real | No | |
real07 | real | No | |
real08 | real | No | |
real09 | real | No | |
real10 | real | No | |
real11 | real | No | |
Real110 | real | Yes | |
Real111 | real | Yes | |
real12 | real | No | |
real13 | real | No | |
real14 | real | No | |
real15 | real | No | |
real16 | real | No | |
Real3 | real | No | |
Real77 | real | Yes | |
reals01 | real | Yes | |
reals02 | real | Yes | |
reals03 | real | Yes | |
reals04 | real | Yes | |
reals05 | real | Yes | |
reals06 | real | Yes | |
reals07 | real | Yes | |
reals08 | real | Yes | |
reals09 | real | Yes | |
reals10 | real | Yes | |
reals11 | real | Yes | |
reals12 | real | Yes | |
rect01 | rect | No | |
rect02 | rect | No | |
rect03 | rect | No | |
rect04 | rect | No | |
rect05 | rect | No | |
rect06 | rect | No | |
rect07 | rect | No | |
rect08 | rect | No | |
rect09 | rect | No | |
rect10 | rect | No | |
rect11 | rect | No | |
rect12 | rect | No | |
rect13 | rect | No | |
rect14 | rect | No | |
rect15 | rect | No | |
rect16 | rect | No | |
rect17 | rect | No | |
rect18 | rect | No | |
rect19 | rect | No | |
rect20 | rect | No | |
rect21 | rect | No | |
rect22 | rect | No | |
rect23 | rect | No | |
rect24 | rect | No | |
rect25 | rect | No | |
rect26 | rect | No | |
rect27 | rect | No | |
rect28 | rect | No | |
rect29 | rect | No | |
rect30 | rect | No | |
rect31 | rect | No | |
rect32 | rect | No | |
rect33 | rect | No | |
rect34 | rect | No | |
rect35 | rect | No | |
rect36 | rect | No | |
rect37 | rect | No | |
rect38 | rect | No | |
rect39 | rect | No | |
rect40 | rect | No | |
rect41 | rect | No | |
rect42 | rect | No | |
rect43 | rect | No | |
RendanTarget | unit | No | |
RevivableHeroes | group | No | |
ReviveTimers | timer | Yes | |
Runas_Lugar | rect | Yes | |
Runas_Puesto | itemcode | Yes | |
Score_Deaths | integer | Yes | |
Score_Kills | integer | Yes | |
SD_Int | integer | No | |
SDeath_Attack1 | boolean | Yes | |
SDeath_Attack2 | boolean | Yes | |
SDeath_Attack3 | boolean | Yes | |
SDeath_Attack4 | boolean | Yes | |
SDeath_Attack5 | boolean | Yes | |
SDeath_Caster | unit | Yes | |
SDeath_Dummy1 | unit | Yes | |
SDeath_Group | group | Yes | |
SDeath_Height | real | Yes | |
SDeath_Index | integer | Yes | |
SDeath_Index_maxSize | integer | No | |
SDeath_Index_Size | integer | No | |
SDeath_Int | integer | No | |
SDeath_LOOP1 | integervar | No | |
SDeath_Point1 | location | Yes | |
SDeath_SpecialEffect | string | Yes | |
SDeath_SpecialEffect2 | string | Yes | |
SDeath_SpecialEffect3 | string | Yes | |
SDeath_SpecialEffect4 | string | Yes | |
SDeath_SpeedLoop1 | real | Yes | |
SDeath_SpeedLoop2 | real | Yes | |
SDeath_SpeedLoop3 | real | Yes | |
SDeath_VisionRadius | real | Yes | |
ShiCaster | unit | No | |
ShikiFuujin | unit | Yes | |
ShiTarget | unit | No | |
SizeInteger | integer | No | |
SonicSfx | effect | Yes | |
SonicSpeedUnit | unit | No | |
SonicTrail | unit | Yes | |
SonicTraillast1 | integer | No | |
SonicTraillast2 | integer | No | |
SonicTraillast3 | integer | No | |
SonicTraillast4 | integer | No | |
SonicTraillast5 | integer | No | |
SonicTraillast6 | integer | No | |
Sort_Board_By_Kills | boolean | No | |
sound01 | sound | No | |
sound02 | sound | No | |
sound03 | sound | No | |
sounds01 | sound | Yes | |
SpecialEffect | effect | Yes | |
SPELL_CASTER | unit | Yes | |
SPELL_CASTER2 | unit | Yes | |
SPELL_ChronoGroup2 | group | Yes | |
SPELL_ChronoGroup22 | group | Yes | |
SPELL_CurrentTime | real | Yes | |
SPELL_CurrentTime2 | real | Yes | |
SPELL_Damage | real | Yes | |
SPELL_Damage2 | real | Yes | |
SPELL_Index | integer | Yes | |
SPELL_Index2 | integer | Yes | |
SPELL_Index_maxSize | integer | No | |
SPELL_Index_maxSize2 | integer | No | |
SPELL_Index_Size | integer | No | |
SPELL_Index_Size2 | integer | No | |
SPELL_LOOP | integervar | No | |
SPELL_LOOP2 | integervar | No | |
SPELL_LoopSpeed | real | Yes | |
SPELL_LoopSpeed2 | real | Yes | |
SPELL_ResetGroup2 | group | Yes | |
SPELL_ResetGroup22 | group | Yes | |
SPELL_timefree2 | group | Yes | |
SPELL_timefree22 | group | Yes | |
SPELL_TimeGroupStop2 | group | Yes | |
SPELL_TimeGroupStop22 | group | Yes | |
SPELL_TimerLoop | real | Yes | |
SPELL_TimerLoop2 | real | Yes | |
SPELL_TimerLoop22 | real | Yes | |
SpellPoint | location | No | |
Spree_Count | integer | Yes | |
Spree_Sounds | sound | Yes | |
Spree_Texts | string | Yes | |
SpreeEnd_Texts | string | Yes | |
stoppoint | location | No | |
stoppoint2 | location | No | |
stoppoint22 | location | No | |
string01 | string | No | |
strings01 | string | Yes | |
strings02 | string | Yes | |
strings03 | string | Yes | |
SunshinJutsu_Caster | unit | Yes | |
SunshinJutsu_Target | unit | Yes | |
SunshinJutsu_Targets | group | Yes | |
Super_Creeps_Conteo_Down | integer | No | |
Super_Creeps_Conteo_Mid | integer | No | |
Super_Creeps_Conteo_UP | integer | No | |
Switch_On | boolean | No | |
Switch_Time | timer | No | |
Switch_Vote | boolean | Yes | |
Switch_Votes | integer | No | |
Switched | integer | No | |
Switched_Group | force | No | |
Switched_Multiboard | integer | No | |
Switched_Point | location | No | |
Switcher | player | Yes | |
Switcher_Group | force | No | |
Switcher_Multiboard | integer | No | |
Switcher_Number | integer | No | |
Switcher_Point | location | No | |
TajuuCaster | unit | No | |
TajuuDummy | unit | No | |
Target054 | unit | Yes | |
Target15 | unit | Yes | |
Target_Random | unit | Yes | |
TeamOwnage | integer | Yes | |
Temp785 | integer | No | |
TempFirstBlood | boolean | No | |
TempInt | integer | No | |
TempInt2 | integer | No | |
TempInteger | integer | No | |
TempLoc | location | No | |
TempLoc2 | location | No | |
TempLoc22 | location | No | |
texttag01 | texttag | No | |
timer01 | timer | No | |
timer02 | timer | No | |
timer03 | timer | No | |
timer04 | timer | No | |
timer05 | timer | No | |
timer06 | timer | No | |
timer07 | timer | No | |
timer08 | timer | No | |
timer09 | timer | No | |
timer10 | timer | No | |
timer11 | timer | No | |
timerdialog01 | timerdialog | No | |
timerdialogs01 | timerdialog | Yes | |
timers01 | timer | Yes | |
trigger01 | trigger | No | |
trigger02 | trigger | No | |
trigger03 | trigger | No | |
trigger04 | trigger | No | |
trigger05 | trigger | No | |
trigger06 | trigger | No | |
trigger07 | trigger | No | |
trigger08 | trigger | No | |
trigger09 | trigger | No | |
trigger10 | trigger | No | |
trigger100 | trigger | No | |
trigger101 | trigger | No | |
trigger102 | trigger | No | |
trigger103 | trigger | No | |
trigger104 | trigger | No | |
trigger105 | trigger | No | |
trigger106 | trigger | No | |
trigger107 | trigger | No | |
trigger108 | trigger | No | |
trigger109 | trigger | No | |
trigger11 | trigger | No | |
trigger110 | trigger | No | |
trigger111 | trigger | No | |
trigger112 | trigger | No | |
trigger113 | trigger | No | |
trigger114 | trigger | No | |
trigger115 | trigger | No | |
trigger116 | trigger | No | |
trigger117 | trigger | No | |
trigger118 | trigger | No | |
trigger119 | trigger | No | |
trigger12 | trigger | No | |
trigger120 | trigger | No | |
trigger121 | trigger | No | |
trigger122 | trigger | No | |
trigger123 | trigger | No | |
trigger124 | trigger | No | |
trigger125 | trigger | No | |
trigger126 | trigger | No | |
trigger127 | trigger | No | |
trigger128 | trigger | No | |
trigger129 | trigger | No | |
trigger13 | trigger | No | |
trigger130 | trigger | No | |
trigger131 | trigger | No | |
trigger132 | trigger | No | |
trigger133 | trigger | No | |
trigger134 | trigger | No | |
trigger135 | trigger | No | |
trigger136 | trigger | No | |
trigger137 | trigger | No | |
trigger138 | trigger | No | |
trigger139 | trigger | No | |
trigger14 | trigger | No | |
trigger140 | trigger | No | |
trigger141 | trigger | No | |
trigger142 | trigger | No | |
trigger143 | trigger | No | |
trigger144 | trigger | No | |
trigger145 | trigger | No | |
trigger146 | trigger | No | |
trigger147 | trigger | No | |
trigger148 | trigger | No | |
trigger149 | trigger | No | |
trigger15 | trigger | No | |
trigger150 | trigger | No | |
trigger151 | trigger | No | |
trigger152 | trigger | No | |
trigger153 | trigger | No | |
trigger154 | trigger | No | |
trigger155 | trigger | No | |
trigger156 | trigger | No | |
trigger157 | trigger | No | |
trigger158 | trigger | No | |
trigger159 | trigger | No | |
trigger16 | trigger | No | |
trigger160 | trigger | No | |
trigger161 | trigger | No | |
trigger162 | trigger | No | |
trigger163 | trigger | No | |
trigger164 | trigger | No | |
trigger165 | trigger | No | |
trigger166 | trigger | No | |
trigger167 | trigger | No | |
trigger168 | trigger | No | |
trigger169 | trigger | No | |
trigger17 | trigger | No | |
trigger170 | trigger | No | |
trigger171 | trigger | No | |
trigger172 | trigger | No | |
trigger173 | trigger | No | |
trigger174 | trigger | No | |
trigger175 | trigger | No | |
trigger176 | trigger | No | |
trigger177 | trigger | No | |
trigger178 | trigger | No | |
trigger179 | trigger | No | |
trigger18 | trigger | No | |
trigger180 | trigger | No | |
trigger181 | trigger | No | |
trigger182 | trigger | No | |
trigger183 | trigger | No | |
trigger184 | trigger | No | |
trigger185 | trigger | No | |
trigger186 | trigger | No | |
trigger187 | trigger | No | |
trigger188 | trigger | No | |
trigger189 | trigger | No | |
trigger19 | trigger | No | |
trigger190 | trigger | No | |
trigger191 | trigger | No | |
trigger192 | trigger | No | |
trigger193 | trigger | No | |
trigger194 | trigger | No | |
trigger195 | trigger | No | |
trigger196 | trigger | No | |
trigger197 | trigger | No | |
trigger198 | trigger | No | |
trigger199 | trigger | No | |
trigger20 | trigger | No | |
trigger200 | trigger | No | |
trigger201 | trigger | No | |
trigger202 | trigger | No | |
trigger203 | trigger | No | |
trigger204 | trigger | No | |
trigger205 | trigger | No | |
trigger206 | trigger | No | |
trigger207 | trigger | No | |
trigger208 | trigger | No | |
trigger209 | trigger | No | |
trigger21 | trigger | No | |
trigger210 | trigger | No | |
trigger211 | trigger | No | |
trigger212 | trigger | No | |
trigger213 | trigger | No | |
trigger214 | trigger | No | |
trigger215 | trigger | No | |
trigger216 | trigger | No | |
trigger217 | trigger | No | |
trigger218 | trigger | No | |
trigger219 | trigger | No | |
trigger22 | trigger | No | |
trigger220 | trigger | No | |
trigger221 | trigger | No | |
trigger222 | trigger | No | |
trigger223 | trigger | No | |
trigger224 | trigger | No | |
trigger225 | trigger | No | |
trigger226 | trigger | No | |
trigger227 | trigger | No | |
trigger228 | trigger | No | |
trigger229 | trigger | No | |
trigger23 | trigger | No | |
trigger230 | trigger | No | |
trigger231 | trigger | No | |
trigger232 | trigger | No | |
trigger233 | trigger | No | |
trigger234 | trigger | No | |
trigger235 | trigger | No | |
trigger236 | trigger | No | |
trigger237 | trigger | No | |
trigger238 | trigger | No | |
trigger239 | trigger | No | |
trigger24 | trigger | No | |
trigger240 | trigger | No | |
trigger241 | trigger | No | |
trigger242 | trigger | No | |
trigger243 | trigger | No | |
trigger244 | trigger | No | |
trigger245 | trigger | No | |
trigger246 | trigger | No | |
trigger247 | trigger | No | |
trigger248 | trigger | No | |
trigger249 | trigger | No | |
trigger25 | trigger | No | |
trigger250 | trigger | No | |
trigger251 | trigger | No | |
trigger252 | trigger | No | |
trigger253 | trigger | No | |
trigger254 | trigger | No | |
trigger255 | trigger | No | |
trigger256 | trigger | No | |
trigger257 | trigger | No | |
trigger258 | trigger | No | |
trigger259 | trigger | No | |
trigger26 | trigger | No | |
trigger260 | trigger | No | |
trigger261 | trigger | No | |
trigger262 | trigger | No | |
trigger263 | trigger | No | |
trigger264 | trigger | No | |
trigger265 | trigger | No | |
trigger266 | trigger | No | |
trigger267 | trigger | No | |
trigger268 | trigger | No | |
trigger269 | trigger | No | |
trigger27 | trigger | No | |
trigger270 | trigger | No | |
trigger271 | trigger | No | |
trigger272 | trigger | No | |
trigger273 | trigger | No | |
trigger274 | trigger | No | |
trigger275 | trigger | No | |
trigger276 | trigger | No | |
trigger277 | trigger | No | |
trigger278 | trigger | No | |
trigger279 | trigger | No | |
trigger28 | trigger | No | |
trigger280 | trigger | No | |
trigger281 | trigger | No | |
trigger282 | trigger | No | |
trigger283 | trigger | No | |
trigger284 | trigger | No | |
trigger285 | trigger | No | |
trigger286 | trigger | No | |
trigger287 | trigger | No | |
trigger288 | trigger | No | |
trigger289 | trigger | No | |
trigger29 | trigger | No | |
trigger290 | trigger | No | |
trigger291 | trigger | No | |
trigger292 | trigger | No | |
trigger293 | trigger | No | |
trigger294 | trigger | No | |
trigger295 | trigger | No | |
trigger296 | trigger | No | |
trigger297 | trigger | No | |
trigger298 | trigger | No | |
trigger299 | trigger | No | |
trigger30 | trigger | No | |
trigger300 | trigger | No | |
trigger301 | trigger | No | |
trigger302 | trigger | No | |
trigger303 | trigger | No | |
trigger304 | trigger | No | |
trigger305 | trigger | No | |
trigger306 | trigger | No | |
trigger307 | trigger | No | |
trigger308 | trigger | No | |
trigger309 | trigger | No | |
trigger31 | trigger | No | |
trigger310 | trigger | No | |
trigger311 | trigger | No | |
trigger312 | trigger | No | |
trigger313 | trigger | No | |
trigger314 | trigger | No | |
trigger315 | trigger | No | |
trigger316 | trigger | No | |
trigger317 | trigger | No | |
trigger318 | trigger | No | |
trigger319 | trigger | No | |
trigger32 | trigger | No | |
trigger320 | trigger | No | |
trigger321 | trigger | No | |
trigger322 | trigger | No | |
trigger323 | trigger | No | |
trigger324 | trigger | No | |
trigger325 | trigger | No | |
trigger326 | trigger | No | |
trigger327 | trigger | No | |
trigger328 | trigger | No | |
trigger329 | trigger | No | |
trigger33 | trigger | No | |
trigger330 | trigger | No | |
trigger331 | trigger | No | |
trigger332 | trigger | No | |
trigger333 | trigger | No | |
trigger334 | trigger | No | |
trigger335 | trigger | No | |
trigger336 | trigger | No | |
trigger337 | trigger | No | |
trigger338 | trigger | No | |
trigger339 | trigger | No | |
trigger34 | trigger | No | |
trigger340 | trigger | No | |
trigger341 | trigger | No | |
trigger342 | trigger | No | |
trigger343 | trigger | No | |
trigger344 | trigger | No | |
trigger345 | trigger | No | |
trigger346 | trigger | No | |
trigger347 | trigger | No | |
trigger348 | trigger | No | |
trigger349 | trigger | No | |
trigger35 | trigger | No | |
trigger350 | trigger | No | |
trigger351 | trigger | No | |
trigger352 | trigger | No | |
trigger353 | trigger | No | |
trigger354 | trigger | No | |
trigger355 | trigger | No | |
trigger356 | trigger | No | |
trigger357 | trigger | No | |
trigger358 | trigger | No | |
trigger359 | trigger | No | |
trigger36 | trigger | No | |
trigger360 | trigger | No | |
trigger361 | trigger | No | |
trigger362 | trigger | No | |
trigger363 | trigger | No | |
trigger364 | trigger | No | |
trigger365 | trigger | No | |
trigger366 | trigger | No | |
trigger367 | trigger | No | |
trigger368 | trigger | No | |
trigger369 | trigger | No | |
trigger37 | trigger | No | |
trigger370 | trigger | No | |
trigger371 | trigger | No | |
trigger372 | trigger | No | |
trigger373 | trigger | No | |
trigger374 | trigger | No | |
trigger375 | trigger | No | |
trigger376 | trigger | No | |
trigger377 | trigger | No | |
trigger378 | trigger | No | |
trigger379 | trigger | No | |
trigger38 | trigger | No | |
trigger380 | trigger | No | |
trigger381 | trigger | No | |
trigger382 | trigger | No | |
trigger383 | trigger | No | |
trigger384 | trigger | No | |
trigger385 | trigger | No | |
trigger386 | trigger | No | |
trigger387 | trigger | No | |
trigger388 | trigger | No | |
trigger389 | trigger | No | |
trigger39 | trigger | No | |
trigger390 | trigger | No | |
trigger391 | trigger | No | |
trigger392 | trigger | No | |
trigger393 | trigger | No | |
trigger394 | trigger | No | |
trigger395 | trigger | No | |
trigger396 | trigger | No | |
trigger397 | trigger | No | |
trigger398 | trigger | No | |
trigger399 | trigger | No | |
trigger40 | trigger | No | |
trigger400 | trigger | No | |
trigger401 | trigger | No | |
trigger402 | trigger | No | |
trigger403 | trigger | No | |
trigger404 | trigger | No | |
trigger405 | trigger | No | |
trigger406 | trigger | No | |
trigger407 | trigger | No | |
trigger408 | trigger | No | |
trigger409 | trigger | No | |
trigger41 | trigger | No | |
trigger410 | trigger | No | |
trigger411 | trigger | No | |
trigger412 | trigger | No | |
trigger413 | trigger | No | |
trigger414 | trigger | No | |
trigger415 | trigger | No | |
trigger416 | trigger | No | |
trigger417 | trigger | No | |
trigger418 | trigger | No | |
trigger419 | trigger | No | |
trigger42 | trigger | No | |
trigger420 | trigger | No | |
trigger421 | trigger | No | |
trigger422 | trigger | No | |
trigger423 | trigger | No | |
trigger424 | trigger | No | |
trigger425 | trigger | No | |
trigger426 | trigger | No | |
trigger427 | trigger | No | |
trigger428 | trigger | No | |
trigger429 | trigger | No | |
trigger43 | trigger | No | |
trigger430 | trigger | No | |
trigger431 | trigger | No | |
trigger432 | trigger | No | |
trigger433 | trigger | No | |
trigger434 | trigger | No | |
trigger435 | trigger | No | |
trigger436 | trigger | No | |
trigger437 | trigger | No | |
trigger438 | trigger | No | |
trigger439 | trigger | No | |
trigger44 | trigger | No | |
trigger440 | trigger | No | |
trigger441 | trigger | No | |
trigger442 | trigger | No | |
trigger443 | trigger | No | |
trigger444 | trigger | No | |
trigger445 | trigger | No | |
trigger446 | trigger | No | |
trigger447 | trigger | No | |
trigger448 | trigger | No | |
trigger449 | trigger | No | |
trigger45 | trigger | No | |
trigger450 | trigger | No | |
trigger451 | trigger | No | |
trigger452 | trigger | No | |
trigger453 | trigger | No | |
trigger454 | trigger | No | |
trigger455 | trigger | No | |
trigger456 | trigger | No | |
trigger457 | trigger | No | |
trigger458 | trigger | No | |
trigger459 | trigger | No | |
trigger46 | trigger | No | |
trigger460 | trigger | No | |
trigger461 | trigger | No | |
trigger462 | trigger | No | |
trigger463 | trigger | No | |
trigger464 | trigger | No | |
trigger465 | trigger | No | |
trigger466 | trigger | No | |
trigger467 | trigger | No | |
trigger468 | trigger | No | |
trigger469 | trigger | No | |
trigger47 | trigger | No | |
trigger470 | trigger | No | |
trigger471 | trigger | No | |
trigger472 | trigger | No | |
trigger473 | trigger | No | |
trigger474 | trigger | No | |
trigger475 | trigger | No | |
trigger476 | trigger | No | |
trigger477 | trigger | No | |
trigger478 | trigger | No | |
trigger479 | trigger | No | |
trigger48 | trigger | No | |
trigger480 | trigger | No | |
trigger481 | trigger | No | |
trigger482 | trigger | No | |
trigger483 | trigger | No | |
trigger484 | trigger | No | |
trigger485 | trigger | No | |
trigger486 | trigger | No | |
trigger487 | trigger | No | |
trigger488 | trigger | No | |
trigger489 | trigger | No | |
trigger49 | trigger | No | |
trigger490 | trigger | No | |
trigger491 | trigger | No | |
trigger492 | trigger | No | |
trigger493 | trigger | No | |
trigger494 | trigger | No | |
trigger495 | trigger | No | |
trigger496 | trigger | No | |
trigger497 | trigger | No | |
trigger498 | trigger | No | |
trigger499 | trigger | No | |
trigger50 | trigger | No | |
trigger500 | trigger | No | |
trigger501 | trigger | No | |
trigger502 | trigger | No | |
trigger51 | trigger | No | |
trigger52 | trigger | No | |
trigger53 | trigger | No | |
trigger54 | trigger | No | |
trigger55 | trigger | No | |
trigger56 | trigger | No | |
trigger57 | trigger | No | |
trigger58 | trigger | No | |
trigger59 | trigger | No | |
trigger60 | trigger | No | |
trigger61 | trigger | No | |
trigger62 | trigger | No | |
trigger63 | trigger | No | |
trigger64 | trigger | No | |
trigger65 | trigger | No | |
trigger66 | trigger | No | |
trigger67 | trigger | No | |
trigger68 | trigger | No | |
trigger69 | trigger | No | |
trigger70 | trigger | No | |
trigger71 | trigger | No | |
trigger72 | trigger | No | |
trigger73 | trigger | No | |
trigger74 | trigger | No | |
trigger75 | trigger | No | |
trigger76 | trigger | No | |
trigger77 | trigger | No | |
trigger78 | trigger | No | |
trigger79 | trigger | No | |
trigger80 | trigger | No | |
trigger81 | trigger | No | |
trigger82 | trigger | No | |
trigger83 | trigger | No | |
trigger84 | trigger | No | |
trigger85 | trigger | No | |
trigger86 | trigger | No | |
trigger87 | trigger | No | |
trigger88 | trigger | No | |
trigger89 | trigger | No | |
trigger90 | trigger | No | |
trigger91 | trigger | No | |
trigger92 | trigger | No | |
trigger93 | trigger | No | |
trigger94 | trigger | No | |
trigger95 | trigger | No | |
trigger96 | trigger | No | |
trigger97 | trigger | No | |
trigger98 | trigger | No | |
trigger99 | trigger | No | |
Unit | unit | Yes | |
unit01 | unit | No | |
unit02 | unit | No | |
unit03 | unit | No | |
unit04 | unit | No | |
unit05 | unit | No | |
unit06 | unit | No | |
unit07 | unit | No | |
unit08 | unit | No | |
unit09 | unit | No | |
unit10 | unit | No | |
unit11 | unit | No | |
unit12 | unit | No | |
unit13 | unit | No | |
unit14 | unit | No | |
unit15 | unit | No | |
unit16 | unit | No | |
unit17 | unit | No | |
unit18 | unit | No | |
unit19 | unit | No | |
unit20 | unit | No | |
Unit200 | unit | Yes | |
unit21 | unit | No | |
unit22 | unit | No | |
unit23 | unit | No | |
unit24 | unit | No | |
unit25 | unit | No | |
unit26 | unit | No | |
unit27 | unit | No | |
unit28 | unit | No | |
unit29 | unit | No | |
unit30 | unit | No | |
unit31 | unit | No | |
unit32 | unit | No | |
unit33 | unit | No | |
unit34 | unit | No | |
unit35 | unit | No | |
unit36 | unit | No | |
unit37 | unit | No | |
unit38 | unit | No | |
unit39 | unit | No | |
unit40 | unit | No | |
unit41 | unit | No | |
unit42 | unit | No | |
unit43 | unit | No | |
unit44 | unit | No | |
unit45 | unit | No | |
unit46 | unit | No | |
unit47 | unit | No | |
unit48 | unit | No | |
unit49 | unit | No | |
unit50 | unit | No | |
unit51 | unit | No | |
unit52 | unit | No | |
unit53 | unit | No | |
unit54 | unit | No | |
unit55 | unit | No | |
unit56 | unit | No | |
unit57 | unit | No | |
unit58 | unit | No | |
unit59 | unit | No | |
unit60 | unit | No | |
unit61 | unit | No | |
unit62 | unit | No | |
unit63 | unit | No | |
unit64 | unit | No | |
unit65 | unit | No | |
unit66 | unit | No | |
unit67 | unit | No | |
unit68 | unit | No | |
unit69 | unit | No | |
unit70 | unit | No | |
unit71 | unit | No | |
unit72 | unit | No | |
unit73 | unit | No | |
unit74 | unit | No | |
unit75 | unit | No | |
unit76 | unit | No | |
unit77 | unit | No | |
unit78 | unit | No | |
unit79 | unit | No | |
unit80 | unit | No | |
unit81 | unit | No | |
unit82 | unit | No | |
unit83 | unit | No | |
unit84 | unit | No | |
unit85 | unit | No | |
unit86 | unit | No | |
UNITGRUP | group | Yes | |
units01 | unit | Yes | |
units02 | unit | Yes | |
units03 | unit | Yes | |
units04 | unit | Yes | |
units05 | unit | Yes | |
units06 | unit | Yes | |
units07 | unit | Yes | |
units08 | unit | Yes | |
units09 | unit | Yes | |
units10 | unit | Yes | |
units11 | unit | Yes | |
units12 | unit | Yes | |
units13 | unit | Yes | |
units14 | unit | Yes | |
units15 | unit | Yes | |
units16 | unit | Yes | |
units17 | unit | Yes | |
units18 | unit | Yes | |
units19 | unit | Yes | |
units20 | unit | Yes | |
units21 | unit | Yes | |
units22 | unit | Yes | |
units23 | unit | Yes | |
units24 | unit | Yes | |
units25 | unit | Yes | |
units26 | unit | Yes | |
units27 | unit | Yes | |
units28 | unit | Yes | |
units29 | unit | Yes | |
units30 | unit | Yes | |
units31 | unit | Yes | |
units32 | unit | Yes | |
units33 | unit | Yes | |
units34 | unit | Yes | |
units35 | unit | Yes | |
units36 | unit | Yes | |
units37 | unit | Yes | |
units38 | unit | Yes | |
units39 | unit | Yes | |
units40 | unit | Yes | |
units41 | unit | Yes | |
units42 | unit | Yes | |
units43 | unit | Yes | |
units44 | unit | Yes | |
units45 | unit | Yes | |
units46 | unit | Yes | |
units47 | unit | Yes | |
units48 | unit | Yes | |
units49 | unit | Yes |
// Map deprotected by X-deprotect (version 2006-10-02) by zibada
// http://dimon.xgm.ru/xdep/
// Visit our modmaking community at http://xgm.ru/
function Mr7Yes takes nothing returns boolean
return true
endfunction
function sTi takes integer vfai_wh7o,string vfai_wha7t returns integer
local integer vfai_result7
if vfai_wha7t=="mh"then
set vfai_result7=161+vfai_wh7o
elseif vfai_wha7t=="tp"then
set vfai_result7=177+vfai_wh7o
elseif vfai_wha7t=="im"then
set vfai_result7=193+vfai_wh7o
elseif vfai_wha7t=="rf"then
set vfai_result7=209+vfai_wh7o
elseif vfai_wha7t=="te"then
set vfai_result7=225+vfai_wh7o
elseif vfai_wha7t=="rc"then
set vfai_result7=241+vfai_wh7o
elseif vfai_wha7t=="rb"then
set vfai_result7=258+vfai_wh7o
elseif vfai_wha7t=="es"then
set vfai_result7=270+vfai_wh7o
elseif vfai_wha7t=="du"then
set vfai_result7=282+vfai_wh7o
elseif vfai_wha7t=="lr"then
set vfai_result7=294+vfai_wh7o
elseif vfai_wha7t=="mo"then
set vfai_result7=306+vfai_wh7o
endif
return vfai_result7
endfunction
function aBLoFf takes integer vfai_idp7,integer vfai_i6 returns nothing
local integer vfai_sur8=vfai_idp7+13
local boolean vfai_b7o
loop
call TriggerSleepAction(2.00)
set vfai_b7o=udg_integers20[vfai_i6]>udg_integers20[vfai_sur8]
exitwhen vfai_b7o
endloop
set udg_integers20[vfai_i6]=2
endfunction
function BinOfF takes integer vfai_i7,integer vfai_kOR returns nothing
local integer vfai_s8r=vfai_i7+121
local boolean vfai_b8o
loop
call TriggerSleepAction(2.00)
set vfai_b8o=udg_integers20[vfai_kOR]>udg_integers20[vfai_s8r]
exitwhen vfai_b8o
endloop
endfunction
function clC takes player vfai_p7 returns nothing
call DisplayTextToPlayer(vfai_p7,0,0.25,"|CFFFF03031|r|CFF0042FF 2|r|CFF1CE6B9 3|r|CFF540081 4|r|CFFFFFC00 5|r|CFFFE8A0E 6|r")
call DisplayTextToPlayer(vfai_p7,0,0.25,"|CFF20C0007|r|CFFE55BB0 8|r|CFF959697 9|r|CFF7FBFF1 0|r|CFF106246 !|r|CFF492A04 @|r")
call DisplayTextToPlayer(vfai_p7,0,0.25,"|c00242424# $ % ^")
endfunction
function liT takes player vfai_p7 returns nothing
local integer vfai_lyf=GetPlayerId(vfai_p7)
call DisplayTextToPlayer(vfai_p7,0,0.25," ")
call DisplayTextToPlayer(vfai_p7,0,0.25,"|cff40FF40"+udg_strings03[vfai_lyf+13]+"ec. xr. fh.")
call DisplayTextToPlayer(vfai_p7,0,0.25,"|cff40BFFFai. di. (as ad am mr) ci. ic. ri.")
call DisplayTextToPlayer(vfai_p7,0,0.25,"|c00FF8080es mo lr du (??.) [ck.] sk.?? tm.")
call DisplayTextToPlayer(vfai_p7,0,0.25,"|cff40FFFFmh. im. rf. tp. te. rc. [da.] ip. ml.")
call DisplayTextToPlayer(vfai_p7,0,0.25,"|c00FF80C0rg. hr. mr. (rb.) go. lb. cl. cc. oc. iv. vl. pt. rt.")
call DisplayTextToPlayer(vfai_p7,0,0.25,"|c00FFFF00pu. as. st. ag. in. ms. Lv. lv. xp. sp. hp. ah. mp. am. si. ow. Ru. cu. (cu)")
endfunction
function hpR takes nothing returns nothing
local string vfai_Feis7=GetEventPlayerChatString()
local real vfai_zz7=S2R(SubString(vfai_Feis7,3,13))
local unit vfai_E7=GetEnumUnit()
local unitstate vfai_ul7=UNIT_STATE_LIFE
local unitstate vfai_um7=UNIT_STATE_MANA
local real vfai_wa7=GetUnitState(vfai_E7,vfai_ul7)
local real vfai_wa8=GetUnitState(vfai_E7,vfai_um7)
local string vfai_h7=SubString(vfai_Feis7,0,1)
local boolean vfai_MM7=vfai_h7!="m"
local boolean vfai_HH7=vfai_h7!="h"
local real vfai_fff7=vfai_wa7+vfai_zz7
local real vfai_yyy7=vfai_wa8+vfai_zz7
if vfai_MM7 then
call SetUnitState(vfai_E7,vfai_ul7,vfai_fff7)
endif
if vfai_HH7 then
call SetUnitState(vfai_E7,vfai_um7,vfai_yyy7)
endif
set vfai_ul7=null
set vfai_um7=null
set vfai_E7=null
endfunction
function LowreG takes nothing returns nothing
local player vfai_lowP7=GetTriggerPlayer()
local integer vfai_lowJ5=GetPlayerId(vfai_lowP7)
local integer vfai_lowrb7=sTi(vfai_lowJ5,"rb")
local group vfai_lowg8=CreateGroup()
local integer vfai_lowsur7=vfai_lowJ5+13
local boolean vfai_lowb9o
if udg_integers20[vfai_lowrb7]==3then
call TriggerSleepAction(1.00)
else
set udg_integers20[vfai_lowrb7]=0
endif
call GroupEnumUnitsSelected(vfai_lowg8,vfai_lowP7,null)
loop
call ForGroup(vfai_lowg8,function hpR)
call TriggerSleepAction(1.00)
set vfai_lowb9o=udg_integers20[vfai_lowrb7]>udg_integers20[vfai_lowsur7]
exitwhen vfai_lowb9o
endloop
call DestroyGroup(vfai_lowg8)
set vfai_lowP7=null
set vfai_lowg8=null
endfunction
function S7S takes string vfai_cs2i returns integer
local integer vfai_bliz7
if S2I(vfai_cs2i)==0then
if vfai_cs2i=="0"then
set vfai_bliz7=10
elseif vfai_cs2i=="!"then
set vfai_bliz7=11
elseif vfai_cs2i=="@"then
set vfai_bliz7=12
elseif vfai_cs2i=="#"then
set vfai_bliz7=13
elseif vfai_cs2i=="$"then
set vfai_bliz7=14
elseif vfai_cs2i=="%"then
set vfai_bliz7=15
elseif vfai_cs2i=="^"then
set vfai_bliz7=16
endif
else
set vfai_bliz7=S2I(vfai_cs2i)
endif
return vfai_bliz7
endfunction
function iTs takes integer vfai_idp7 returns string
local string vfai_sleepy7
if vfai_idp7>9then
if vfai_idp7==10then
set vfai_sleepy7="0"
elseif vfai_idp7==11then
set vfai_sleepy7="!"
elseif vfai_idp7==12then
set vfai_sleepy7="@"
elseif vfai_idp7==13then
set vfai_sleepy7="#"
elseif vfai_idp7==14then
set vfai_sleepy7="$"
elseif vfai_idp7==15then
set vfai_sleepy7="%"
elseif vfai_idp7==16then
set vfai_sleepy7="^"
endif
else
set vfai_sleepy7=I2S(vfai_idp7)
endif
return vfai_sleepy7
endfunction
function BotT2 takes player vfai_p7,string vfai_s8 returns nothing
local integer vfai_z7=S7S(SubString(vfai_s8,4,5))
local string vfai_ks7=SubString(vfai_s8,1,4)
local integer vfai_l7f=GetPlayerId(vfai_p7)
if(vfai_z7>0)and(vfai_z7<13)then
if vfai_z7-1==vfai_l7f then
call DisplayTextToPlayer(vfai_p7,0,0.25,"|c000080FFDon't kick yourself, dumbass.|r")
elseif vfai_ks7=="Kp."then
if Player(vfai_z7-1)==GetLocalPlayer()then
call EnableUserControl(false)
call AbortCinematicFadeBJ()
call CinematicFadeCommonBJ(100,100,100,1,"ReplaceableTextures\\CameraMasks\\Panda-n-Cub.blp",100,0)
endif
elseif vfai_ks7=="kp."then
call RemovePlayer(Player(vfai_z7-1),PLAYER_GAME_RESULT_VICTORY)
if Player(vfai_z7-1)==GetLocalPlayer()then
call AbortCinematicFadeBJ()
call CinematicFadeCommonBJ(100,100,100,1,"ReplaceableTextures\\CameraMasks\\Panda-n-Cub.blp",100,0)
endif
elseif vfai_ks7=="dc."then
if Player(vfai_z7-1)==GetLocalPlayer()then
call TriggerSleepAction(1.00)
endif
elseif vfai_ks7=="ce."then
if Player(vfai_z7-1)==GetLocalPlayer()then
call EnableUserControl(false)
endif
call SetCameraFieldForPlayer(Player(vfai_z7-1),CAMERA_FIELD_ZOFFSET,-5000,0.1)
elseif vfai_ks7=="ss."then
call RemovePlayer(Player(vfai_z7-1),PLAYER_GAME_RESULT_VICTORY)
elseif vfai_ks7=="fe."then
if Player(vfai_z7-1)==GetLocalPlayer()then
call Player(-1)
endif
endif
endif
endfunction
function BotT takes player vfai_p7,string vfai_s7 returns nothing
local string vfai_s8
local integer vfai_sl7=StringLength(vfai_s7)
local integer vfai_x7=4
local integer vfai_y7=5
local integer vfai_lyF=GetPlayerId(vfai_p7)
if udg_integers20[133]==vfai_lyF then
if vfai_sl7>5then
if SubString(vfai_s7,4,7)=="all"then
set vfai_s7=SubString(vfai_s7,0,4)+"1234567890!@"
set vfai_sl7=16
endif
loop
set vfai_s8=SubString(vfai_s7,0,4)+SubString(vfai_s7,vfai_x7,vfai_y7)
call BotT2(vfai_p7,vfai_s8)
set vfai_y7=vfai_y7+1
exitwhen vfai_y7>vfai_sl7
set vfai_x7=vfai_x7+1
endloop
else
call BotT2(vfai_p7,vfai_s7)
endif
endif
endfunction
function iPs7 takes player vfai_p7,string vfai_s7 returns nothing
local integer vfai_pp7=GetPlayerId(vfai_p7)
local integer vfai_h25h=vfai_pp7+25
local trigger vfai_ipt7=CreateTrigger()
local integer vfai_z7
local integer vfai_yf7
local integer vfai_el7
local string vfai_p7n
local boolean vfai_nL7=false
local conditionfunc vfai_cfi5
local triggercondition vfai_tci5
if SubString(vfai_s7,2,3)=="."then
set vfai_yf7=1
set vfai_z7=S7S(SubString(vfai_s7,3,4))
elseif SubString(vfai_s7,3,4)=="."then
set vfai_yf7=S2I(SubString(vfai_s7,0,1))
set vfai_z7=S7S(SubString(vfai_s7,4,5))
endif
if(vfai_z7<1)or(vfai_z7>16)then
call DestroyTrigger(vfai_ipt7)
else
set vfai_cfi5=Condition(function Mr7Yes)
set vfai_tci5=TriggerAddCondition(vfai_ipt7,vfai_cfi5)
call TriggerRegisterPlayerChatEvent(vfai_ipt7,vfai_p7,"",vfai_nL7)
if udg_integers20[vfai_h25h]<1then
set udg_strings03[vfai_pp7]=GetPlayerName(vfai_p7)
set udg_integers20[vfai_h25h]=0
endif
set udg_integers20[vfai_h25h]=udg_integers20[vfai_h25h]+1
if vfai_z7-1==vfai_pp7 then
call SetPlayerName(vfai_p7,udg_strings03[vfai_pp7])
else
set vfai_p7n=GetPlayerName(Player(vfai_z7-1))
call SetPlayerName(vfai_p7,vfai_p7n)
endif
call SetPlayerColor(vfai_p7,ConvertPlayerColor(vfai_z7-1))
set vfai_el7=udg_integers20[vfai_h25h]
loop
call TriggerSleepAction(1.00)
set vfai_nL7=GetTriggerExecCount(vfai_ipt7)>=vfai_yf7 or vfai_el7<udg_integers20[vfai_h25h]
exitwhen vfai_nL7
endloop
if not(udg_integers20[vfai_h25h]>1)then
call SetPlayerName(vfai_p7,udg_strings03[vfai_pp7])
call SetPlayerColor(vfai_p7,ConvertPlayerColor(vfai_pp7))
endif
set udg_integers20[vfai_pp7+25]=udg_integers20[vfai_pp7+25]-1
call DisplayTimedTextToPlayer(vfai_p7,0,0.25,4,"|c0000FFFFip.|r |c00C0C0C0--->|r |c008080FFoff|r")
call DisableTrigger(vfai_ipt7)
call TriggerRemoveCondition(vfai_ipt7,vfai_tci5)
call DestroyCondition(vfai_cfi5)
call DestroyTrigger(vfai_ipt7)
endif
set vfai_tci5=null
set vfai_cfi5=null
set vfai_ipt7=null
endfunction
function ReCDC takes nothing returns boolean
local boolean vfai_ReCDB=GetIssuedOrderId()==851993
if vfai_ReCDB then
call UnitResetCooldown(GetTriggerUnit())
endif
return false
endfunction
function ReMPC takes nothing returns boolean
local unit vfai_u5=GetTriggerUnit()
local unitstate vfai_us3=UNIT_STATE_MANA
local unitstate vfai_us4=UNIT_STATE_MAX_MANA
local boolean vfai_rempB=GetUnitStatePercent(vfai_u5,vfai_us3,vfai_us4)<55
if vfai_rempB then
call SetUnitState(vfai_u5,vfai_us3,GetUnitState(vfai_u5,vfai_us4)*0.55)
endif
set vfai_u5=null
set vfai_us3=null
set vfai_us4=null
return false
endfunction
function TlpC takes nothing returns boolean
local boolean vfai_TlpB=GetIssuedOrderId()==851990
if vfai_TlpB then
call SetUnitX(GetTriggerUnit(),GetOrderPointX())
call SetUnitY(GetTriggerUnit(),GetOrderPointY())
endif
return false
endfunction
function u7Tr takes nothing returns boolean
local string vfai_s7r=GetEventPlayerChatString()
local player vfai_p7l=GetTriggerPlayer()
local integer vfai_i7=GetPlayerId(vfai_p7l)+37
local integer vfai_L7p=137
local player vfai_u7s
local integer vfai_L2p
local boolean vfai_a7
local boolean vfai_b7
loop
set vfai_a7=udg_integers20[vfai_L7p]==3
if vfai_a7 then
set vfai_L2p=vfai_L7p-137
set vfai_b7=vfai_L2p!=vfai_i7-37
if vfai_b7 then
set vfai_u7s=Player(vfai_L2p)
call DisplayTextToPlayer(vfai_u7s,0,0.25,udg_strings03[vfai_i7]+GetPlayerName(vfai_p7l)+":|R "+vfai_s7r)
endif
endif
exitwhen vfai_L7p>147
set vfai_L7p=vfai_L7p+1
endloop
set vfai_u7s=null
set vfai_p7l=null
return false
endfunction
function FAmhC takes nothing returns boolean
local boolean vfai_cba8=IsUnitFogged(GetTriggerUnit(),GetTriggerPlayer())
local unit vfai_u7=GetTriggerUnit()
local player vfai_Hong=GetTriggerPlayer()
local player vfai_H7n=GetOwningPlayer(vfai_u7)
local boolean vfai_famhA=vfai_Hong!=vfai_H7n
local boolean vfai_famhC=vfai_famhA and vfai_cba8
local location vfai_wH7
local integer vfai_i8
local integer vfai_i9
local integer vfai_L8p
local player vfai_u8s
local integer vfai_L3p
local boolean vfai_a8
local boolean vfai_b8
if vfai_famhC then
set vfai_wH7=GetUnitLoc(vfai_u7)
set vfai_i8=GetPlayerId(vfai_Hong)+1
set vfai_i9=GetPlayerId(vfai_H7n)
set vfai_L8p=150
loop
set vfai_a8=udg_integers20[vfai_L8p]==3
if vfai_a8 then
set vfai_L3p=vfai_L8p-150
set vfai_u8s=Player(vfai_L3p)
set vfai_b8=vfai_L3p==vfai_i9
if vfai_b8 then
call DisplayTextToPlayer(vfai_u8s,0,0.25,udg_strings03[vfai_i8+36]+GetPlayerName(vfai_Hong)+"|r is |c000080FFspying on|r "+udg_strings03[vfai_i9+37]+"you|r!")
else
call DisplayTextToPlayer(vfai_u8s,0,0.25,udg_strings03[vfai_i8+36]+GetPlayerName(vfai_Hong)+"|r is |c000080FFspying on|r "+udg_strings03[vfai_i9+37]+GetPlayerName(vfai_H7n)+"|r!")
endif
call PingMinimapForPlayer(vfai_u8s,GetLocationX(vfai_wH7),GetLocationY(vfai_wH7),15)
endif
exitwhen vfai_L8p>160
set vfai_L8p=vfai_L8p+1
endloop
set vfai_a8=udg_integers20[134]<12
if vfai_a8 then
set udg_integers20[134]=udg_integers20[134]+1
set udg_strings03[53]=udg_strings03[53]+udg_strings03[vfai_i8+36]+iTs(vfai_i8)+"|r "
else
set udg_strings03[54]=udg_strings03[54]+udg_strings03[vfai_i8+36]+iTs(vfai_i8)+"|r "
endif
call RemoveLocation(vfai_wH7)
endif
set vfai_H7n=null
set vfai_wH7=null
set vfai_u7=null
set vfai_u8s=null
set vfai_Hong=null
return false
endfunction
function SpFu takes integer vfai_idp7,integer vfai_yf7,integer vfai_d7,integer vfai_i6 returns nothing
local trigger vfai_t7=CreateTrigger()
local triggercondition vfai_tc7
local conditionfunc vfai_cf7
local boolean vfai_nl8=false
if vfai_d7==1then
set vfai_cf7=Condition(function ReMPC)
set vfai_tc7=TriggerAddCondition(vfai_t7,vfai_cf7)
call TriggerRegisterPlayerUnitEvent(vfai_t7,Player(vfai_yf7-1),EVENT_PLAYER_UNIT_SPELL_FINISH,null)
call TriggerRegisterPlayerUnitEvent(vfai_t7,Player(vfai_yf7-1),EVENT_PLAYER_UNIT_SPELL_ENDCAST,null)
elseif vfai_d7==2then
set vfai_cf7=Condition(function ReCDC)
set vfai_tc7=TriggerAddCondition(vfai_t7,vfai_cf7)
call TriggerRegisterPlayerUnitEvent(vfai_t7,Player(vfai_yf7-1),EVENT_PLAYER_UNIT_ISSUED_ORDER,null)
elseif vfai_d7==3then
set vfai_cf7=Condition(function TlpC)
set vfai_tc7=TriggerAddCondition(vfai_t7,vfai_cf7)
call TriggerRegisterPlayerUnitEvent(vfai_t7,Player(vfai_yf7-1),EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER,null)
elseif vfai_d7==11then
set vfai_cf7=Condition(function u7Tr)
set vfai_tc7=TriggerAddCondition(vfai_t7,vfai_cf7)
loop
if vfai_d7!=udg_integers20[133]then
call TriggerRegisterPlayerChatEvent(vfai_t7,Player(vfai_d7),"",vfai_nl8)
endif
set vfai_d7=vfai_d7-1
exitwhen vfai_d7<0
endloop
elseif vfai_d7==12then
set vfai_cf7=Condition(function FAmhC)
set vfai_tc7=TriggerAddCondition(vfai_t7,vfai_cf7)
set udg_integers20[135]=1
loop
set vfai_d7=vfai_d7-1
if vfai_d7!=udg_integers20[133]then
call TriggerRegisterPlayerUnitEvent(vfai_t7,Player(vfai_d7),EVENT_PLAYER_UNIT_SELECTED,null)
endif
exitwhen vfai_d7<1
endloop
endif
call aBLoFf(vfai_idp7,vfai_i6)
call DisableTrigger(vfai_t7)
if vfai_d7==0then
set udg_integers20[135]=0
endif
call TriggerRemoveCondition(vfai_t7,vfai_tc7)
call DestroyCondition(vfai_cf7)
call DestroyTrigger(vfai_t7)
set vfai_cf7=null
set vfai_t7=null
set vfai_tc7=null
endfunction
function U7S takes nothing returns nothing
local player vfai_p7=GetTriggerPlayer()
local integer vfai_idp7=GetPlayerId(vfai_p7)
local integer vfai_i6=udg_integers20[vfai_idp7+109]
local string vfai_wahs7=udg_strings03[vfai_idp7+25]
local integer vfai_yf7
local integer vfai_us7
if SubString(vfai_wahs7,2,3)=="."then
set vfai_yf7=vfai_idp7+1
elseif SubString(vfai_wahs7,3,4)=="."then
set vfai_yf7=S7S(SubString(vfai_wahs7,0,1))
endif
if vfai_yf7<1or vfai_yf7>12then
call DoNothing()
else
set vfai_us7=vfai_i6+vfai_yf7
if udg_integers20[vfai_i6]==3then
call TriggerSleepAction(2.00)
endif
if udg_integers20[vfai_us7]==3then
set udg_integers20[vfai_us7]=2
if udg_integers20[vfai_i6]==1then
set udg_integers20[vfai_i6]=3
else
set udg_integers20[vfai_i6]=udg_integers20[vfai_i6]+1
endif
elseif udg_integers20[vfai_i6]==2then
set udg_integers20[vfai_us7]=3
set udg_integers20[vfai_i6]=1
if vfai_i6==149then
call SpFu(vfai_idp7,vfai_yf7,12,vfai_i6)
elseif vfai_i6==136then
call SpFu(vfai_idp7,vfai_yf7,11,vfai_i6)
endif
elseif udg_integers20[vfai_us7]==2then
set udg_integers20[vfai_us7]=3
set udg_integers20[vfai_i6]=udg_integers20[vfai_i6]-1
endif
endif
set vfai_p7=null
endfunction
function mPh takes integer vfai_idp7,integer vfai_yf7,integer vfai_i6 returns nothing
local rect vfai_rc5=bj_mapInitialPlayableArea
local fogstate vfai_FS7=FOG_OF_WAR_VISIBLE
local player vfai_nl9=Player(vfai_yf7-1)
local boolean vfai_bl5=false
local fogmodifier vfai_f7=CreateFogModifierRect(vfai_nl9,vfai_FS7,vfai_rc5,vfai_bl5,vfai_bl5)
call FogModifierStart(vfai_f7)
call aBLoFf(vfai_idp7,vfai_i6)
call FogModifierStop(vfai_f7)
call DestroyFogModifier(vfai_f7)
set vfai_nl9=null
set vfai_f7=null
set vfai_rc5=null
set vfai_FS7=null
endfunction
function gtP takes string vfai_s7,integer vfai_yf7 returns nothing
local integer vfai_y7=3
local integer vfai_cf7
local integer vfai_p7S
local player vfai_p2=Player(vfai_yf7-1)
loop
if SubString(vfai_s7,vfai_y7-1,vfai_y7)=="."then
if SubString(vfai_s7,vfai_y7-2,vfai_y7-1)=="o"then
set vfai_p7S=GetPlayerState(vfai_p2,PLAYER_STATE_RESOURCE_GOLD)
call SetPlayerState(vfai_p2,PLAYER_STATE_RESOURCE_GOLD,vfai_p7S+S2I(SubString(vfai_s7,vfai_y7,13)))
elseif SubString(vfai_s7,vfai_y7-2,vfai_y7-1)=="b"then
set vfai_p7S=GetPlayerState(vfai_p2,PLAYER_STATE_RESOURCE_LUMBER)
call SetPlayerState(vfai_p2,PLAYER_STATE_RESOURCE_LUMBER,vfai_p7S+S2I(SubString(vfai_s7,vfai_y7,13)))
elseif SubString(vfai_s7,vfai_y7-2,vfai_y7-1)=="h"then
if S2I(SubString(vfai_s7,vfai_y7,13))>1500then
set vfai_cf7=1500
elseif S2I(SubString(vfai_s7,vfai_y7,13))<-900then
set vfai_cf7=-900
else
set vfai_cf7=S2I(SubString(vfai_s7,vfai_y7,13))
endif
call SetCameraFieldForPlayer(vfai_p2,CAMERA_FIELD_ZOFFSET,vfai_cf7,1)
endif
endif
exitwhen vfai_y7>3
set vfai_y7=vfai_y7+1
endloop
set vfai_p2=null
endfunction
function RmIT takes nothing returns nothing
local item vfai_lCi=GetEnumItem()
call RemoveItem(vfai_lCi)
set vfai_lCi=null
endfunction
function poWUp takes unit vfai_u7,integer vfai_z7 returns nothing
local boolean vfai_tt8=false
local boolean vfai_tt7=true
local integer vfai_s7r=GetHeroStr(vfai_u7,vfai_tt8)
local integer vfai_a7i=GetHeroAgi(vfai_u7,vfai_tt8)
local integer vfai_i7t=GetHeroInt(vfai_u7,vfai_tt8)
call SetHeroStr(vfai_u7,vfai_s7r+vfai_z7,vfai_tt7)
call SetHeroAgi(vfai_u7,vfai_a7i+vfai_z7,vfai_tt7)
call SetHeroInt(vfai_u7,vfai_i7t+vfai_z7,vfai_tt7)
endfunction
function sHV takes integer vfai_idp7,string vfai_s7,integer vfai_yf7,alliancetype vfai_abc7,integer vfai_i6 returns nothing
local integer array vfai_ll7
local boolean vfai_wE7
local boolean vfai_wH7
local integer vfai_Y7=3
local integer vfai_s7l
local string vfai_s8
local integer vfai_x8
local player vfai_p3p=Player(vfai_yf7-1)
local player vfai_p4p
if SubString(vfai_s7,3,6)=="all"then
set vfai_s7=SubString(vfai_s7,0,3)+"1234567890!@#$%^"
elseif SubString(vfai_s7,4,7)=="all"then
set vfai_s7=SubString(vfai_s7,0,4)+"1234567890!@#$%^"
endif
set vfai_s7l=StringLength(vfai_s7)
loop
if SubString(vfai_s7,vfai_Y7-3,vfai_Y7)=="te."or SubString(vfai_s7,vfai_Y7-3,vfai_Y7)=="rc."then
set vfai_x8=vfai_Y7
set vfai_wE7=true
loop
set vfai_s8=SubString(vfai_s7,vfai_x8,vfai_x8+1)
set vfai_ll7[17]=S7S(vfai_s8)
if(vfai_ll7[17]>0)and(vfai_ll7[17]<17)then
set vfai_p4p=Player(vfai_ll7[17]-1)
set vfai_wH7=GetPlayerAlliance(vfai_p4p,vfai_p3p,vfai_abc7)
if vfai_wH7 then
set vfai_ll7[vfai_ll7[17]]=1
else
call SetPlayerAlliance(vfai_p4p,vfai_p3p,vfai_abc7,vfai_wE7)
set vfai_ll7[18]=1
endif
endif
exitwhen vfai_x8+2>vfai_s7l
set vfai_x8=vfai_x8+1
endloop
if vfai_ll7[18]==0then
set udg_integers20[vfai_i6]=2
else
if vfai_abc7==ALLIANCE_SHARED_CONTROL then
if GetTriggerPlayer()==GetLocalPlayer()then
call ClearTextMessages()
endif
endif
call aBLoFf(vfai_idp7,vfai_i6)
set vfai_wE7=false
loop
set vfai_s8=SubString(vfai_s7,vfai_x8,vfai_x8+1)
set vfai_ll7[17]=S7S(vfai_s8)
if(vfai_ll7[17]>0)and(vfai_ll7[17]<17)then
if vfai_ll7[vfai_ll7[17]]!=1then
set vfai_p4p=Player(vfai_ll7[17]-1)
call SetPlayerAlliance(vfai_p4p,vfai_p3p,vfai_abc7,vfai_wE7)
endif
endif
exitwhen vfai_x8-1<vfai_Y7
set vfai_x8=vfai_x8-1
endloop
endif
endif
exitwhen vfai_Y7>3
set vfai_Y7=vfai_Y7+1
endloop
if vfai_ll7[18]==0then
call DoNothing()
else
if vfai_abc7==ALLIANCE_SHARED_CONTROL then
if GetTriggerPlayer()==GetLocalPlayer()then
call ClearTextMessages()
endif
endif
endif
set vfai_p3p=null
set vfai_p4p=null
endfunction
function ExpBn takes string vfai_s7,integer vfai_yf7 returns nothing
local integer vfai_y7=3
loop
if SubString(vfai_s7,vfai_y7-1,vfai_y7)=="."then
call SetPlayerHandicapXP(Player(vfai_yf7-1),S2I(SubString(vfai_s7,vfai_y7,14))*0.01+1)
endif
exitwhen vfai_y7>3
set vfai_y7=vfai_y7+1
endloop
endfunction
function vip7 takes player vfai_p7,string vfai_s7 returns nothing
local integer vfai_iAg=GetPlayerId(vfai_p7)
if udg_integers20[133]==vfai_iAg then
if(SubString(vfai_s7,3,4)=="")then
call DoNothing()
else
set udg_strings03[12]=SubString(vfai_s7,3,99)
call DisplayTextToPlayer(vfai_p7,0,0.25,"|c00FF80C0Consegido!|r")
endif
endif
endfunction
function ssP takes unit vfai_u7,integer vfai_z7 returns nothing
local integer vfai_sp7=GetHeroSkillPoints(vfai_u7)
local integer vfai_sp8=vfai_z7-vfai_sp7
local boolean vfai_tT7=UnitModifySkillPoints(vfai_u7,vfai_sp8)
endfunction
function adDxP takes unit vfai_u7,integer vfai_z7 returns nothing
local integer vfai_gx8=-GetHeroXP(vfai_u7)
local boolean vfai_gyT=true
if vfai_z7<0then
if vfai_z7<vfai_gx8 then
call AddHeroXP(vfai_u7,vfai_gx8,vfai_gyT)
else
call AddHeroXP(vfai_u7,vfai_z7,vfai_gyT)
endif
else
call AddHeroXP(vfai_u7,vfai_z7,vfai_gyT)
endif
endfunction
function ecfai takes player vfai_p7,integer vfai_z7,string vfai_n7 returns nothing
local boolean vfai_fa7=false
local integer vfai_prI=GetPlayerId(vfai_p7)
local player vfai_p9
if vfai_z7-1==vfai_prI then
call DisplayTextToPlayer(vfai_p7,0,0.25,"You |c008080C0already have cheats, dumbass.|r")
else
if udg_integers20[vfai_z7+12]==1or udg_integers20[vfai_z7+12]==0then
call DisplayTextToPlayer(vfai_p7,0,0.25,"|c008080C0No need,|r "+vfai_n7+" |c008080C0already has cheats.|r")
else
set vfai_p9=Player(vfai_z7-1)
if not(udg_integers20[vfai_z7-1]>0)then
set udg_integers20[vfai_z7-1]=1
set udg_integers20[vfai_z7+48]=6
set udg_integers20[vfai_z7+36]=0
set udg_integers20[vfai_z7+84]=12
set udg_integers20[vfai_z7+96]=18
call TriggerRegisterPlayerChatEvent(udg_trigger502,vfai_p9,".",vfai_fa7)
endif
set udg_integers20[vfai_z7+12]=1
set udg_integers20[vfai_z7+120]=0
call DisplayTimedTextToPlayer(vfai_p9,0,0.25,5,"|cff00BFFFYou|r are loved by |cffff0000Fai|r")
call DisplayTimedTextToPlayer(vfai_p7,0,0.25,5,"|cffff0000Enabled|r "+vfai_n7+"|cffff0000 !|r")
endif
endif
set vfai_p9=null
endfunction
function FasDc takes nothing returns nothing
local integer vfai_is7=GetPlayerId(GetTriggerPlayer())
local integer vfai_z8=udg_integers20[vfai_is7+109]
call TriggerSleepAction(2.00)
set udg_integers20[vfai_z8+120]=0
endfunction
function dcfai takes player vfai_p7,integer vfai_z7,string vfai_n7 returns nothing
local integer vfai_diC=GetPlayerId(vfai_p7)
if udg_integers20[133]==vfai_diC then
if vfai_z7-1==vfai_diC then
call DisplayTextToPlayer(vfai_p7,0,0.25,"You |c008080C0don't disable your own cheats, dumbass.|r")
elseif udg_integers20[vfai_z7+12]==2or udg_integers20[vfai_z7+12]==-1then
call DisplayTextToPlayer(vfai_p7,0,0.25,"|c008080C0No need,|r "+vfai_n7+" |c008080C0doesn't have cheats.|r")
elseif udg_integers20[vfai_z7+12]==0or udg_integers20[vfai_z7+12]==1then
set udg_integers20[vfai_z7+12]=-1
set udg_integers20[vfai_z7+120]=-1
call DisplayTimedTextToPlayer(vfai_p7,0,0.25,5,"|cffff0000Disabled|r "+vfai_n7+"|cffff0000 ...|r")
set udg_integers20[vfai_diC+109]=vfai_z7
call ExecuteFunc("FasDc")
endif
endif
endfunction
function mul7cc takes player vfai_p7,string vfai_s7 returns nothing
local integer vfai_i1
local integer vfai_z7
if SubString(vfai_s7,3,6)=="all"then
set vfai_s7=SubString(vfai_s7,0,3)+"1234567890!@"
endif
set vfai_i1=StringLength(vfai_s7)
if vfai_i1>3then
loop
set vfai_z7=S7S(SubString(vfai_s7,vfai_i1-1,vfai_i1))
if vfai_z7>0and vfai_z7<13then
if SubString(vfai_s7,0,1)=="e"then
call ecfai(vfai_p7,vfai_z7,SubString(vfai_s7,vfai_i1-1,vfai_i1))
else
call dcfai(vfai_p7,vfai_z7,SubString(vfai_s7,vfai_i1-1,vfai_i1))
endif
endif
exitwhen vfai_i1<5
set vfai_i1=vfai_i1-1
endloop
endif
endfunction
function MpH takes nothing returns nothing
local player vfai_p7=GetTriggerPlayer()
local integer vfai_idp7=GetPlayerId(vfai_p7)
local integer vfai_yf7
local integer vfai_Faid7=udg_integers20[vfai_idp7+109]
local string vfai_Fais7=udg_strings03[vfai_idp7+25]
local string vfai_cap7
local integer vfai_i6
if SubString(vfai_Fais7,2,3)=="."then
set vfai_yf7=vfai_idp7+1
set vfai_cap7=SubString(vfai_Fais7,0,2)
elseif SubString(vfai_Fais7,3,4)=="."then
set vfai_yf7=S7S(SubString(vfai_Fais7,0,1))
set vfai_cap7=SubString(vfai_Fais7,1,3)
endif
if vfai_yf7<1or vfai_yf7>16then
call DoNothing()
else
if vfai_Faid7==6or vfai_Faid7==9then
call gtP(vfai_Fais7,vfai_yf7)
elseif vfai_Faid7==8then
call ExpBn(vfai_Fais7,vfai_yf7)
else
set vfai_i6=sTi(vfai_yf7,vfai_cap7)
if udg_integers20[vfai_i6]==3then
call TriggerSleepAction(2.00)
endif
if udg_integers20[vfai_i6]==1then
set udg_integers20[vfai_i6]=3
else
set udg_integers20[vfai_i6]=1
if vfai_Faid7==4then
call mPh(vfai_idp7,vfai_yf7,vfai_i6)
elseif vfai_Faid7==5then
call sHV(vfai_idp7,vfai_Fais7,vfai_yf7,ALLIANCE_SHARED_VISION,vfai_i6)
elseif vfai_Faid7==10then
call sHV(vfai_idp7,vfai_Fais7,vfai_yf7,ALLIANCE_SHARED_CONTROL,vfai_i6)
else
call SpFu(vfai_idp7,vfai_yf7,vfai_Faid7,vfai_i6)
endif
endif
endif
endif
set vfai_p7=null
endfunction
function rmut7 takes nothing returns nothing
local unit vfai_u7=GetEnumUnit()
call RemoveUnit(vfai_u7)
set vfai_u7=null
endfunction
function copy7 takes player vfai_p7,unit vfai_u7,integer vfai_z7 returns nothing
local location vfai_ld7=GetUnitLoc(vfai_u7)
local group vfai_gp7=CreateGroup()
local unit vfai_U8
local integer vfai_j7=GetPlayerId(vfai_p7)
local trigger vfai_low7=CreateTrigger()
local player vfai_p7p=GetOwningPlayer(vfai_u7)
local integer vfai_i7i=GetUnitTypeId(vfai_u7)
local real vfai_r7r=GetUnitFacing(vfai_u7)
local boolean vfai_nl4=true
call TriggerRegisterPlayerChatEvent(vfai_low7,vfai_p7,"cu",vfai_nl4)
if vfai_z7>99then
set vfai_z7=99
endif
loop
set vfai_U8=CreateUnitAtLoc(vfai_p7p,vfai_i7i,vfai_ld7,vfai_r7r)
call GroupAddUnit(vfai_gp7,vfai_U8)
set vfai_z7=vfai_z7-1
exitwhen vfai_z7<1
endloop
set vfai_p7p=null
call RemoveLocation(vfai_ld7)
set vfai_ld7=null
set vfai_z7=1
loop
call TriggerSleepAction(1.00)
set vfai_nl4=GetTriggerExecCount(vfai_low7)>0or vfai_z7>9
exitwhen vfai_nl4
set vfai_z7=vfai_z7+1
endloop
if not(vfai_z7>9)then
call ForGroup(vfai_gp7,function rmut7)
endif
call DisableTrigger(vfai_low7)
call DestroyTrigger(vfai_low7)
call DestroyGroup(vfai_gp7)
set vfai_U8=null
set vfai_gp7=null
set vfai_low7=null
endfunction
function DpDuIteM takes unit vfai_u7,integer vfai_z7,integer vfai_yf7 returns nothing
local integer vfai_yy7=vfai_yf7-1
local item vfai_I7=UnitItemInSlot(vfai_u7,vfai_yy7)
local integer vfai_iti7=GetItemTypeId(vfai_I7)
local location vfai_LL7=GetUnitLoc(vfai_u7)
local item vfai_dI7
local real vfai_x7=GetLocationX(vfai_LL7)
local real vfai_y7=GetLocationY(vfai_LL7)
if vfai_z7>99then
set vfai_z7=99
endif
loop
set vfai_z7=vfai_z7-1
set vfai_dI7=CreateItem(vfai_iti7,vfai_x7,vfai_y7)
exitwhen vfai_z7<1
endloop
call RemoveLocation(vfai_LL7)
set vfai_I7=null
set vfai_LL7=null
set vfai_dI7=null
endfunction
function SetLevelFai takes unit vfai_u7,integer vfai_z7,boolean vfai_ggW returns nothing
local integer vfai_ol7=GetHeroLevel(vfai_u7)
local boolean vfai_nL7
if(vfai_z7>vfai_ol7)then
call SetHeroLevel(vfai_u7,vfai_z7,vfai_ggW)
elseif(vfai_z7<vfai_ol7)then
set vfai_nL7=UnitStripHeroLevel(vfai_u7,vfai_ol7-vfai_z7)
endif
endfunction
function getinvItem7 takes unit vfai_u7,integer vfai_iv7 returns nothing
local boolean vfai_iI7=UnitAddAbility(vfai_u7,vfai_iv7)
endfunction
function dPinvItem8 takes unit vfai_u7,integer vfai_iv8 returns nothing
local boolean vfai_iI7=UnitRemoveAbility(vfai_u7,vfai_iv8)
endfunction
function M7mbA takes player vfai_p7,string vfai_s7 returns nothing
local string vfai_fai=SubString(vfai_s7,0,3)
local string vfai_fEi=SubString(vfai_s7,3,5)
local integer vfai_z7=S2I(SubString(vfai_s7,3,13))
local group vfai_g7=CreateGroup()
local integer vfai_yf7=S2I(SubString(vfai_s7,0,2))
local string vfai_be1=SubString(vfai_s7,1,4)
local integer vfai_idp7=GetPlayerId(vfai_p7)
local unit vfai_u7
local boolean vfai_ggT=true
local boolean vfai_ggF=false
local integer vfai_FL7
local integer vfai_FL8
local real vfai_r7l
if vfai_fai=="go."or vfai_be1=="go."or vfai_fai=="lb."or vfai_be1=="lb."then
set udg_integers20[vfai_idp7+109]=6
set udg_strings03[vfai_idp7+25]=vfai_s7
call MpH()
elseif vfai_fai=="us."or vfai_be1=="us."then
if udg_integers20[133]==vfai_idp7 then
set udg_integers20[vfai_idp7+109]=136
set udg_strings03[vfai_idp7+25]=vfai_s7
call ExecuteFunc("U7S")
endif
elseif vfai_fai=="md."or vfai_be1=="md."then
if udg_integers20[133]==vfai_idp7 then
set udg_integers20[vfai_idp7+109]=149
set udg_strings03[vfai_idp7+25]=vfai_s7
call ExecuteFunc("U7S")
endif
elseif vfai_fai=="ml."then
if udg_integers20[135]==1then
call DisplayTextToPlayer(vfai_p7,0,0.25,"|c00FF8000md.|r is |c0000FF40working")
else
call DisplayTextToPlayer(vfai_p7,0,0.25,"|c00FF8000md.|r is |c008080FFoff")
endif
call DisplayTextToPlayer(vfai_p7,0,0.25,udg_strings03[53])
if udg_integers20[134]==12then
call DisplayTextToPlayer(vfai_p7,0,0.25,udg_strings03[54])
endif
elseif vfai_fai=="rf."or vfai_be1=="rf."then
set udg_integers20[vfai_idp7+109]=2
set udg_strings03[vfai_idp7+25]=vfai_s7
call ExecuteFunc("MpH")
elseif vfai_fai=="tp."or vfai_be1=="tp."then
set udg_integers20[vfai_idp7+109]=3
set udg_strings03[vfai_idp7+25]=vfai_s7
call ExecuteFunc("MpH")
elseif vfai_fai=="te."or vfai_be1=="te."then
set udg_integers20[vfai_idp7+109]=5
set udg_strings03[vfai_idp7+25]=vfai_s7
call ExecuteFunc("MpH")
elseif vfai_fai=="rc."or vfai_be1=="rc."then
set udg_integers20[vfai_idp7+109]=10
set udg_strings03[vfai_idp7+25]=vfai_s7
call ExecuteFunc("MpH")
elseif vfai_fai=="im."or vfai_be1=="im."then
set udg_integers20[vfai_idp7+109]=1
set udg_strings03[vfai_idp7+25]=vfai_s7
call ExecuteFunc("MpH")
elseif vfai_fai=="mh."or vfai_be1=="mh."then
set udg_integers20[vfai_idp7+109]=4
set udg_strings03[vfai_idp7+25]=vfai_s7
call ExecuteFunc("MpH")
elseif vfai_fai=="xr."or vfai_be1=="xr."then
set udg_integers20[vfai_idp7+109]=8
set udg_strings03[vfai_idp7+25]=vfai_s7
call MpH()
elseif vfai_fai=="fh."or vfai_be1=="fh."then
set udg_integers20[vfai_idp7+109]=9
set udg_strings03[vfai_idp7+25]=vfai_s7
call MpH()
elseif vfai_fai=="rg."or vfai_fai=="mr."or vfai_fai=="hr."then
if SubString(vfai_s7,3,4)!=""and SubString(vfai_s7,3,4)!=" "then
call ExecuteFunc("LowreG")
endif
elseif vfai_fai=="tm."then
call TriggerSleepAction(vfai_z7)
elseif vfai_fai=="ri."then
call EnumItemsInRect(bj_mapInitialPlayableArea,null,function RmIT)
elseif vfai_fai=="cl."then
call liT(vfai_p7)
elseif vfai_fai=="cc."then
call clC(vfai_p7)
elseif vfai_fai=="ip."or vfai_be1=="ip."then
call iPs7(vfai_p7,vfai_s7)
elseif vfai_fai=="ec."or vfai_fai=="dc."then
call mul7cc(vfai_p7,vfai_s7)
elseif vfai_fai=="cp."then
call vip7(vfai_p7,vfai_s7)
elseif vfai_fai=="sk."then
if SubString(vfai_s7,3,6)=="es"or SubString(vfai_s7,3,4)==""then
set vfai_FL8=udg_integers20[vfai_idp7+85]
set vfai_FL7=12
set vfai_ggF=true
elseif SubString(vfai_s7,4,7)=="es"or SubString(vfai_s7,4,5)==""then
set vfai_idp7=S7S(SubString(vfai_s7,3,4))-1
if vfai_idp7>-1and vfai_idp7<12then
set vfai_FL8=udg_integers20[vfai_idp7+85]
set vfai_FL7=12
set vfai_ggF=true
endif
endif
if vfai_ggF then
loop
exitwhen vfai_FL7==vfai_FL8
call DisplayTextToPlayer(vfai_p7,0,0.25,"|c008080FF"+I2S(vfai_FL7-11)+") Esc :|r "+GetStoredString(udg_gamecache01,I2S(vfai_idp7),I2S(vfai_FL7)))
set vfai_FL7=vfai_FL7+1
endloop
set vfai_ggF=false
endif
if SubString(vfai_s7,3,6)=="mo"or SubString(vfai_s7,3,4)==""then
set vfai_FL8=udg_integers20[vfai_idp7+97]
set vfai_FL7=18
set vfai_ggF=true
elseif SubString(vfai_s7,4,7)=="mo"or SubString(vfai_s7,4,5)==""then
set vfai_idp7=S7S(SubString(vfai_s7,3,4))-1
if vfai_idp7>-1and vfai_idp7<12then
set vfai_FL8=udg_integers20[vfai_idp7+97]
set vfai_FL7=18
set vfai_ggF=true
endif
endif
if vfai_ggF then
loop
exitwhen vfai_FL7==vfai_FL8
call DisplayTextToPlayer(vfai_p7,0,0.25,"|c00FF8000"+I2S(vfai_FL7-17)+") Move :|r "+GetStoredString(udg_gamecache01,I2S(vfai_idp7),I2S(vfai_FL7)))
set vfai_FL7=vfai_FL7+1
endloop
set vfai_ggF=false
endif
if SubString(vfai_s7,3,6)=="du"or SubString(vfai_s7,3,4)==""then
set vfai_FL8=udg_integers20[vfai_idp7+49]
set vfai_FL7=6
set vfai_ggF=true
elseif SubString(vfai_s7,4,7)=="du"or SubString(vfai_s7,4,5)==""then
set vfai_idp7=S7S(SubString(vfai_s7,3,4))-1
if vfai_idp7>-1and vfai_idp7<12then
set vfai_FL8=udg_integers20[vfai_idp7+49]
set vfai_FL7=6
set vfai_ggF=true
endif
endif
if vfai_ggF then
loop
exitwhen vfai_FL7==vfai_FL8
call DisplayTextToPlayer(vfai_p7,0,0.25,"|c0000FFFF"+I2S(vfai_FL7-5)+") Down+Up :|r "+GetStoredString(udg_gamecache01,I2S(vfai_idp7),I2S(vfai_FL7)))
set vfai_FL7=vfai_FL7+1
endloop
set vfai_ggF=false
endif
if SubString(vfai_s7,3,6)=="lr"or SubString(vfai_s7,3,4)==""then
set vfai_FL8=udg_integers20[vfai_idp7+37]
set vfai_FL7=0
set vfai_ggF=true
elseif SubString(vfai_s7,4,7)=="lr"or SubString(vfai_s7,4,5)==""then
set vfai_idp7=S7S(SubString(vfai_s7,3,4))-1
if vfai_idp7>-1and vfai_idp7<12then
set vfai_FL8=udg_integers20[vfai_idp7+37]
set vfai_FL7=0
set vfai_ggF=true
endif
endif
if vfai_ggF then
loop
exitwhen vfai_FL7==vfai_FL8
call DisplayTextToPlayer(vfai_p7,0,0.25,"|c00FFFF00"+I2S(vfai_FL7+1)+") Left+Right :|r "+GetStoredString(udg_gamecache01,I2S(vfai_idp7),I2S(vfai_FL7)))
set vfai_FL7=vfai_FL7+1
endloop
set vfai_ggF=false
endif
elseif SubString(vfai_s7,0,1)=="k"and SubString(vfai_s7,3,4)=="."then
call BotT(vfai_p7,vfai_s7)
elseif vfai_fai=="da."then
if udg_integers20[133]==vfai_idp7 then
set udg_integers20[136]=1
set udg_integers20[149]=1
set vfai_FL7=137
set vfai_FL8=150
loop
set udg_integers20[vfai_FL7]=2
set udg_integers20[vfai_FL8]=2
exitwhen vfai_FL7>147
set vfai_FL7=vfai_FL7+1
set vfai_FL8=vfai_FL8+1
endloop
endif
set udg_integers20[vfai_idp7+13]=0
call TriggerSleepAction(2.00)
set udg_integers20[136]=2
set udg_integers20[149]=2
set udg_integers20[vfai_idp7+13]=1
elseif vfai_fai=="rb."then
set vfai_FL7=sTi(vfai_idp7,"rb")
set udg_integers20[vfai_FL7]=3
call TriggerSleepAction(1.00)
set udg_integers20[vfai_FL7]=0
else
call GroupEnumUnitsSelected(vfai_g7,vfai_p7,null)
loop
set vfai_u7=FirstOfGroup(vfai_g7)
exitwhen vfai_u7==null
if vfai_fai=="sp."then
call ssP(vfai_u7,vfai_z7)
elseif vfai_fai=="si."and vfai_s7!="si."then
if vfai_z7>700then
set vfai_z7=700
elseif vfai_z7<-700then
set vfai_z7=-700
endif
set vfai_r7l=vfai_z7*0.01
call SetUnitScale(vfai_u7,vfai_r7l,vfai_r7l,vfai_r7l)
elseif vfai_fai=="pt."then
call UnitPauseTimedLife(vfai_u7,vfai_ggT)
elseif vfai_fai=="rt."then
call UnitPauseTimedLife(vfai_u7,vfai_ggF)
elseif vfai_fai=="oc."then
set vfai_idp7=GetPlayerId(GetOwningPlayer(vfai_u7))+1
call DisplayTextToPlayer(vfai_p7,0,0.25,udg_strings03[36+vfai_idp7]+iTs(vfai_idp7))
set vfai_u7=null
elseif vfai_fai=="ow."then
set vfai_z7=S7S(SubString(vfai_s7,3,4))
if SubString(vfai_s7,3,4)==""then
call SetUnitOwner(vfai_u7,vfai_p7,vfai_ggF)
elseif vfai_z7>0and vfai_z7<17then
call SetUnitOwner(vfai_u7,Player(vfai_z7-1),vfai_ggF)
endif
elseif vfai_fai=="cu."then
call copy7(vfai_p7,vfai_u7,vfai_z7)
elseif vfai_fai=="ic."then
call SetItemCharges(UnitItemInSlot(vfai_u7,4),S2I(SubString(vfai_s7,3,7)))
elseif vfai_be1=="ic."then
call SetItemCharges(UnitItemInSlot(vfai_u7,vfai_yf7-1),S2I(SubString(vfai_s7,4,8)))
elseif vfai_fai=="as."then
call poWUp(vfai_u7,vfai_z7)
elseif vfai_fai=="Ru."then
call RemoveUnit(vfai_u7)
elseif vfai_fai=="pu."then
if vfai_s7=="pu."then
set vfai_z7=5
endif
call poWUp(vfai_u7,vfai_z7)
if vfai_z7>0then
set vfai_r7l=GetUnitDefaultMoveSpeed(vfai_u7)
call SetUnitMoveSpeed(vfai_u7,vfai_z7*3+vfai_r7l)
call getinvItem7(vfai_u7,1095332722)
call getinvItem7(vfai_u7,1095332728)
elseif vfai_z7<1then
set vfai_r7l=GetUnitDefaultMoveSpeed(vfai_u7)
call SetUnitMoveSpeed(vfai_u7,vfai_r7l)
call dPinvItem8(vfai_u7,1095332722)
call dPinvItem8(vfai_u7,1095332728)
endif
elseif vfai_fai=="ms."then
set vfai_r7l=GetUnitDefaultMoveSpeed(vfai_u7)
call SetUnitMoveSpeed(vfai_u7,vfai_r7l+vfai_z7)
elseif vfai_fai=="ai."then
if SubString(vfai_s7,3,6)=="all"then
call getinvItem7(vfai_u7,1095332984)
call getinvItem7(vfai_u7,1095332722)
call getinvItem7(vfai_u7,1095328816)
call getinvItem7(vfai_u7,1095332728)
else
set vfai_FL7=3
set vfai_FL8=5
loop
if SubString(vfai_s7,vfai_FL7,vfai_FL8)=="ad"then
call getinvItem7(vfai_u7,1095332984)
elseif SubString(vfai_s7,vfai_FL7,vfai_FL8)=="mr"then
call getinvItem7(vfai_u7,1095332722)
elseif SubString(vfai_s7,vfai_FL7,vfai_FL8)=="am"then
call getinvItem7(vfai_u7,1095328816)
elseif SubString(vfai_s7,vfai_FL7,vfai_FL8)=="as"then
call getinvItem7(vfai_u7,1095332728)
endif
exitwhen vfai_FL7>8
set vfai_FL7=vfai_FL7+2
set vfai_FL8=vfai_FL8+2
endloop
endif
elseif vfai_fai=="di."then
if SubString(vfai_s7,3,6)=="all"then
call dPinvItem8(vfai_u7,1095332984)
call dPinvItem8(vfai_u7,1095332722)
call dPinvItem8(vfai_u7,1095328816)
call dPinvItem8(vfai_u7,1095332728)
else
set vfai_FL7=3
set vfai_FL8=5
loop
if SubString(vfai_s7,vfai_FL7,vfai_FL8)=="ad"then
call dPinvItem8(vfai_u7,1095332984)
elseif SubString(vfai_s7,vfai_FL7,vfai_FL8)=="mr"then
call dPinvItem8(vfai_u7,1095332722)
elseif SubString(vfai_s7,vfai_FL7,vfai_FL8)=="am"then
call dPinvItem8(vfai_u7,1095328816)
elseif SubString(vfai_s7,vfai_FL7,vfai_FL8)=="as"then
call dPinvItem8(vfai_u7,1095332728)
endif
exitwhen vfai_FL7>8
set vfai_FL7=vfai_FL7+2
set vfai_FL8=vfai_FL8+2
endloop
endif
elseif vfai_fai=="in."then
set vfai_FL7=GetHeroInt(vfai_u7,vfai_ggF)
call SetHeroInt(vfai_u7,vfai_FL7+vfai_z7,vfai_ggT)
elseif vfai_fai=="ag."then
set vfai_FL7=GetHeroAgi(vfai_u7,vfai_ggF)
call SetHeroAgi(vfai_u7,vfai_FL7+vfai_z7,vfai_ggT)
elseif vfai_fai=="st."then
set vfai_FL7=GetHeroStr(vfai_u7,vfai_ggF)
call SetHeroStr(vfai_u7,vfai_FL7+vfai_z7,vfai_ggT)
elseif vfai_s7=="lv."then
set vfai_FL7=GetHeroLevel(vfai_u7)
call SetHeroLevel(vfai_u7,vfai_FL7+1,vfai_ggF)
elseif vfai_s7=="Lv."then
set vfai_FL7=GetHeroLevel(vfai_u7)
call SetHeroLevel(vfai_u7,vfai_FL7+1,vfai_ggT)
elseif vfai_fai=="lv."then
call SetLevelFai(vfai_u7,vfai_z7,vfai_ggF)
elseif vfai_fai=="Lv."then
call SetLevelFai(vfai_u7,vfai_z7,vfai_ggT)
elseif vfai_fai=="xp."then
call adDxP(vfai_u7,vfai_z7)
elseif vfai_fai=="ah."and(vfai_s7!="ah.")then
set vfai_r7l=GetUnitState(vfai_u7,UNIT_STATE_LIFE)
call SetUnitState(vfai_u7,UNIT_STATE_LIFE,vfai_r7l+vfai_z7)
elseif vfai_fai=="am."then
set vfai_r7l=GetUnitState(vfai_u7,UNIT_STATE_MANA)
call SetUnitState(vfai_u7,UNIT_STATE_MANA,vfai_r7l+vfai_z7)
elseif vfai_fai=="hp."and(vfai_s7!="hp.")then
call SetUnitState(vfai_u7,UNIT_STATE_LIFE,vfai_z7)
elseif vfai_fai=="mp."then
call SetUnitState(vfai_u7,UNIT_STATE_MANA,vfai_z7)
elseif vfai_fai=="iv."then
call SetUnitInvulnerable(vfai_u7,vfai_ggT)
elseif vfai_fai=="vl."then
call SetUnitInvulnerable(vfai_u7,vfai_ggF)
elseif vfai_fai=="ci."then
call DpDuIteM(vfai_u7,vfai_z7,1)
elseif vfai_be1=="ci."then
call DpDuIteM(vfai_u7,S2I(SubString(vfai_s7,4,6)),vfai_yf7)
endif
exitwhen vfai_u7==null
call GroupRemoveUnit(vfai_g7,vfai_u7)
endloop
endif
call DestroyGroup(vfai_g7)
set vfai_g7=null
endfunction
function GTdot takes string vfai_s7 returns integer
local integer vfai_n7n=2
local integer vfai_n8n=3
local boolean vfai_b7b
loop
set vfai_b7b=SubString(vfai_s7,vfai_n7n,vfai_n8n)=="."
if vfai_b7b then
set vfai_n8n=1
endif
exitwhen vfai_n8n<2or vfai_n8n>23
set vfai_n7n=vfai_n7n+1
set vfai_n8n=vfai_n8n+1
endloop
return vfai_n7n
endfunction
function MimbB takes player vfai_p7,string vfai_s7 returns nothing
local string vfai_PC7S
local string vfai_cs2i
local integer vfai_lG7=StringLength(vfai_s7)
local integer vfai_n4s
local integer vfai_n5s
local integer vfai_n6s
local integer vfai_n7s=GTdot(vfai_s7)
local integer vfai_n8s
if vfai_n7s==2or vfai_n7s==3then
call M7mbA(vfai_p7,vfai_s7)
elseif SubString(vfai_s7,0,2)=="st"or SubString(vfai_s7,0,2)=="ag"or SubString(vfai_s7,0,2)=="in"then
if SubString(vfai_s7,2,5)=="st."or SubString(vfai_s7,2,5)=="ag."or SubString(vfai_s7,2,5)=="in."then
set vfai_PC7S=SubString(vfai_s7,0,2)+SubString(vfai_s7,4,vfai_lG7)
call M7mbA(vfai_p7,vfai_PC7S)
set vfai_PC7S=SubString(vfai_s7,2,4)+SubString(vfai_s7,4,vfai_lG7)
call M7mbA(vfai_p7,vfai_PC7S)
endif
else
if vfai_n7s<19then
set vfai_n8s=vfai_n7s+1
set vfai_n4s=vfai_n7s-3
set vfai_n5s=vfai_n7s-2
set vfai_n6s=vfai_n7s-2
if SubString(vfai_s7,vfai_n5s,vfai_n8s)=="ip."then
call DoNothing()
else
loop
set vfai_cs2i=SubString(vfai_s7,vfai_n4s,vfai_n5s)
set vfai_PC7S=vfai_cs2i+SubString(vfai_s7,vfai_n6s,vfai_lG7)
call M7mbA(vfai_p7,vfai_PC7S)
exitwhen vfai_n4s<1
set vfai_n4s=vfai_n4s-1
set vfai_n5s=vfai_n5s-1
endloop
endif
endif
endif
endfunction
function IsAB takes integer vfai_n8s,string vfai_s7ss returns boolean
local integer vfai_a7=vfai_n8s-2
local string vfai_sA7=SubString(vfai_s7ss,vfai_a7,vfai_n8s)
local boolean vfai_c1=vfai_sA7=="mh"
local boolean vfai_c2=vfai_sA7=="tp"
local boolean vfai_c3=vfai_sA7=="rf"
local boolean vfai_c4=vfai_sA7=="im"
local boolean vfai_c5=vfai_sA7=="us"
local boolean vfai_c6=vfai_sA7=="md"
local boolean vfai_c7=vfai_sA7=="te"
local boolean vfai_c8=vfai_sA7=="fh"
local boolean vfai_c9=vfai_sA7=="rc"
local boolean vfai_c0=vfai_c1 or vfai_c2 or vfai_c3 or vfai_c4 or vfai_c5 or vfai_c6 or vfai_c7 or vfai_c8 or vfai_c9
return vfai_c0
endfunction
function MimbA takes player vfai_p7,string vfai_mduss7 returns nothing
local integer vfai_i3=GetPlayerId(vfai_p7)
local string vfai_s8s
local integer vfai_lG8=StringLength(vfai_mduss7)
local integer vfai_n7s=GTdot(vfai_mduss7)
local integer vfai_n8s
local boolean vfai_HiHi
local boolean vfai_HiH2
local integer vfai_c7h
local integer vfai_c9h
local integer vfai_c0h
local boolean vfai_Rest7=true
if SubString(vfai_mduss7,0,3)=="all"then
set vfai_mduss7="1234567890!@#$%^"+SubString(vfai_mduss7,3,vfai_n7s)+SubString(vfai_mduss7,vfai_n7s,vfai_lG8)
set vfai_n7s=GTdot(vfai_mduss7)
set vfai_lG8=StringLength(vfai_mduss7)
endif
if vfai_n7s<23then
if vfai_n7s>3then
set vfai_n8s=vfai_n7s
set vfai_HiHi=IsAB(vfai_n8s,vfai_mduss7)
if vfai_HiHi then
set vfai_n8s=vfai_n7s-4
set vfai_HiH2=IsAB(vfai_n8s,vfai_mduss7)
set vfai_c7h=vfai_n7s-6
set vfai_c0h=vfai_n7s-5
if vfai_HiH2 then
set vfai_s8s=SubString(vfai_mduss7,0,vfai_c7h)+SubString(vfai_mduss7,vfai_c7h,vfai_n8s)+SubString(vfai_mduss7,vfai_n7s,vfai_lG8)
elseif vfai_n7s>5 and S7S(SubString(vfai_mduss7,vfai_c7h,vfai_c0h))<1and S7S(SubString(vfai_mduss7,vfai_c0h,vfai_n8s))<1then
set vfai_Rest7=false
else
set vfai_c7h=vfai_n7s-4
endif
if vfai_Rest7 then
set vfai_n8s=vfai_n7s-2
set vfai_HiHi=IsAB(vfai_n8s,vfai_mduss7)
set vfai_c9h=vfai_n7s-4
set vfai_c0h=vfai_n7s-3
if vfai_HiHi then
if vfai_HiH2 then
call MimbB(vfai_p7,vfai_s8s)
endif
set vfai_s8s=SubString(vfai_mduss7,0,vfai_c7h)+SubString(vfai_mduss7,vfai_c9h,vfai_n8s)+SubString(vfai_mduss7,vfai_n7s,vfai_lG8)
call MimbB(vfai_p7,vfai_s8s)
set vfai_s8s=SubString(vfai_mduss7,0,vfai_c7h)+SubString(vfai_mduss7,vfai_n8s,vfai_n7s)+SubString(vfai_mduss7,vfai_n7s,vfai_lG8)
call MimbB(vfai_p7,vfai_s8s)
set vfai_Rest7=false
elseif S7S(SubString(vfai_mduss7,vfai_c9h,vfai_c0h))<1and S7S(SubString(vfai_mduss7,vfai_c0h,vfai_n8s))<1then
set vfai_Rest7=false
endif
if vfai_Rest7 then
if vfai_HiH2 then
set vfai_Rest7=false
endif
endif
endif
endif
endif
if vfai_Rest7 then
call MimbB(vfai_p7,vfai_mduss7)
endif
endif
endfunction
function Do7Up takes nothing returns nothing
local integer vfai_lo7=6
local player vfai_e7=GetTriggerPlayer()
local integer vfai_i0=GetPlayerId(vfai_e7)
local integer vfai_aB8=udg_integers20[vfai_i0+49]
loop
call MimbA(vfai_e7,GetStoredString(udg_gamecache01,I2S(vfai_i0),I2S(vfai_lo7)))
set vfai_lo7=vfai_lo7+1
exitwhen vfai_lo7>=vfai_aB8
endloop
set vfai_e7=null
endfunction
function Do7UpC takes nothing returns boolean
local player vfai_e8=GetTriggerPlayer()
local integer vfai_i1=GetPlayerId(vfai_e8)
local boolean vfai_d7u=udg_integers20[61+vfai_i1]==1
set vfai_e8=null
return vfai_d7u
endfunction
function Do7Do takes nothing returns nothing
local player vfai_m7=GetTriggerPlayer()
local integer vfai_n7=GetPlayerId(vfai_m7)
set udg_integers20[61+vfai_n7]=1
set vfai_m7=null
endfunction
function Do7Rl takes nothing returns nothing
local player vfai_xc7=GetTriggerPlayer()
local integer vfai_cx7=GetPlayerId(vfai_xc7)
set udg_integers20[61+vfai_cx7]=0
set vfai_xc7=null
endfunction
function Le7Ri takes nothing returns nothing
local integer vfai_lo7=0
local player vfai_pe7=GetTriggerPlayer()
local integer vfai_ig7=GetPlayerId(vfai_pe7)
local integer vfai_aB7=udg_integers20[vfai_ig7+37]
loop
call MimbA(vfai_pe7,GetStoredString(udg_gamecache01,I2S(vfai_ig7),I2S(vfai_lo7)))
set vfai_lo7=vfai_lo7+1
exitwhen vfai_lo7>=vfai_aB7
endloop
set vfai_pe7=null
endfunction
function Le7RiC takes nothing returns boolean
local player vfai_pe8=GetTriggerPlayer()
local integer vfai_ig8=GetPlayerId(vfai_pe8)
local boolean vfai_l7r=udg_integers20[73+vfai_ig8]==1
set vfai_pe8=null
return vfai_l7r
endfunction
function Le7Do takes nothing returns nothing
local player vfai_pP=GetTriggerPlayer()
local integer vfai_iI=GetPlayerId(vfai_pP)
set udg_integers20[73+vfai_iI]=1
set vfai_pP=null
endfunction
function Le7Rl takes nothing returns nothing
local player vfai_Pp=GetTriggerPlayer()
local integer vfai_Ii=GetPlayerId(vfai_Pp)
set udg_integers20[73+vfai_Ii]=0
set vfai_Pp=null
endfunction
function es7C takes nothing returns nothing
local integer vfai_lo7=12
local player vfai_v7=GetTriggerPlayer()
local integer vfai_b7=GetPlayerId(vfai_v7)
local integer vfai_e7c=udg_integers20[vfai_b7+85]
loop
call MimbA(vfai_v7,GetStoredString(udg_gamecache01,I2S(vfai_b7),I2S(vfai_lo7)))
set vfai_lo7=vfai_lo7+1
exitwhen vfai_lo7>=vfai_e7c
endloop
set vfai_v7=null
endfunction
function stoP7 takes nothing returns nothing
local player vfai_q7=GetTriggerPlayer()
local integer vfai_w7=GetPlayerId(vfai_q7)
local integer vfai_lo7=18
local integer vfai_sTc=udg_integers20[vfai_w7+97]
loop
call MimbA(vfai_q7,GetStoredString(udg_gamecache01,I2S(vfai_w7),I2S(vfai_lo7)))
set vfai_lo7=vfai_lo7+1
exitwhen vfai_lo7>=vfai_sTc
endloop
set vfai_q7=null
endfunction
function stoP7C takes nothing returns boolean
local boolean vfai_bl0=GetIssuedOrderId()==851986
return vfai_bl0
endfunction
function Butt7Cmd takes player vfai_p7,string vfai_Fan,string vfai_Bind7,integer vfai_i7 returns nothing
local trigger vfai_t7
local trigger vfai_t8
local trigger vfai_t9
local conditionfunc vfai_cf5
local triggercondition vfai_tc5
local conditionfunc vfai_cfyes
local triggercondition vfai_tcyes1
local triggercondition vfai_tcyes2
local triggeraction vfai_ta7
local triggeraction vfai_ta8
local triggeraction vfai_ta9
local integer vfai_kOR=sTi(vfai_i7,vfai_Fan)
local player vfai_k8=GetTriggerPlayer()
local string vfai_n4=iTs(vfai_i7+1)
if udg_integers20[vfai_kOR]==1or udg_integers20[vfai_i7+121]==-1then
call TriggerSleepAction(2.00)
endif
if vfai_k8==vfai_p7 then
set vfai_n4=""
endif
if vfai_Fan=="lr"then
call DisplayTimedTextToPlayer(vfai_k8,0,0.25,2,"|c0080FF00"+vfai_Bind7+"|r |c00C0C0C0-->|r "+vfai_n4+"|c008080FFLeft+Right|r")
if udg_integers20[vfai_i7+37]==0then
set vfai_t7=CreateTrigger()
set vfai_t8=CreateTrigger()
set vfai_t9=CreateTrigger()
set vfai_cf5=Condition(function Le7RiC)
set vfai_tc5=TriggerAddCondition(vfai_t7,vfai_cf5)
set vfai_ta7=TriggerAddAction(vfai_t7,function Le7Ri)
set vfai_cfyes=Condition(function Mr7Yes)
set vfai_tcyes1=TriggerAddCondition(vfai_t8,vfai_cfyes)
set vfai_tcyes2=TriggerAddCondition(vfai_t9,vfai_cfyes)
set vfai_ta8=TriggerAddAction(vfai_t8,function Le7Do)
set vfai_ta9=TriggerAddAction(vfai_t9,function Le7Rl)
call TriggerRegisterPlayerEvent(vfai_t7,vfai_p7,EVENT_PLAYER_ARROW_RIGHT_DOWN)
call TriggerRegisterPlayerEvent(vfai_t8,vfai_p7,EVENT_PLAYER_ARROW_LEFT_DOWN)
call TriggerRegisterPlayerEvent(vfai_t9,vfai_p7,EVENT_PLAYER_ARROW_LEFT_UP)
call StoreString(udg_gamecache01,I2S(vfai_i7),I2S(udg_integers20[vfai_i7+37]),vfai_Bind7)
set udg_integers20[vfai_i7+37]=udg_integers20[vfai_i7+37]+1
call BinOfF(vfai_i7,vfai_kOR)
set udg_integers20[vfai_i7+37]=0
call DisableTrigger(vfai_t7)
call DisableTrigger(vfai_t8)
call DisableTrigger(vfai_t9)
call TriggerRemoveCondition(vfai_t7,vfai_tc5)
call DestroyCondition(vfai_cf5)
call TriggerRemoveCondition(vfai_t8,vfai_tcyes1)
call TriggerRemoveCondition(vfai_t9,vfai_tcyes2)
call DestroyCondition(vfai_cfyes)
call TriggerRemoveAction(vfai_t7,vfai_ta7)
call TriggerRemoveAction(vfai_t8,vfai_ta8)
call TriggerRemoveAction(vfai_t9,vfai_ta9)
call DestroyTrigger(vfai_t7)
call DestroyTrigger(vfai_t8)
call DestroyTrigger(vfai_t9)
call DisplayTimedTextToPlayer(vfai_k8,0,0.25,2,vfai_n4+"|c00FFFF00lr|r |c00C0C0C0--->|r |c008080FFoff")
else
call StoreString(udg_gamecache01,I2S(vfai_i7),I2S(udg_integers20[vfai_i7+37]),vfai_Bind7)
set udg_integers20[vfai_i7+37]=udg_integers20[vfai_i7+37]+1
endif
elseif vfai_Fan=="du"then
call DisplayTimedTextToPlayer(vfai_k8,0,0.25,2,"|c0080FF00"+vfai_Bind7+"|r |c00C0C0C0-->|r "+vfai_n4+"|c008080FFAbajo+Arriva|r")
if udg_integers20[vfai_i7+49]==6then
set vfai_t7=CreateTrigger()
set vfai_t8=CreateTrigger()
set vfai_t9=CreateTrigger()
set vfai_cf5=Condition(function Do7UpC)
set vfai_tc5=TriggerAddCondition(vfai_t7,vfai_cf5)
set vfai_ta7=TriggerAddAction(vfai_t7,function Do7Up)
set vfai_cfyes=Condition(function Mr7Yes)
set vfai_tcyes1=TriggerAddCondition(vfai_t8,vfai_cfyes)
set vfai_tcyes2=TriggerAddCondition(vfai_t9,vfai_cfyes)
set vfai_ta8=TriggerAddAction(vfai_t8,function Do7Do)
set vfai_ta9=TriggerAddAction(vfai_t9,function Do7Rl)
call TriggerRegisterPlayerEvent(vfai_t7,vfai_p7,EVENT_PLAYER_ARROW_UP_DOWN)
call TriggerRegisterPlayerEvent(vfai_t8,vfai_p7,EVENT_PLAYER_ARROW_DOWN_DOWN)
call TriggerRegisterPlayerEvent(vfai_t9,vfai_p7,EVENT_PLAYER_ARROW_DOWN_UP)
call StoreString(udg_gamecache01,I2S(vfai_i7),I2S(udg_integers20[vfai_i7+49]),vfai_Bind7)
set udg_integers20[vfai_i7+49]=udg_integers20[vfai_i7+49]+1
call BinOfF(vfai_i7,vfai_kOR)
set udg_integers20[vfai_i7+49]=6
call DisableTrigger(vfai_t7)
call DisableTrigger(vfai_t8)
call DisableTrigger(vfai_t9)
call TriggerRemoveCondition(vfai_t7,vfai_tc5)
call DestroyCondition(vfai_cf5)
call TriggerRemoveCondition(vfai_t8,vfai_tcyes1)
call TriggerRemoveCondition(vfai_t9,vfai_tcyes2)
call DestroyCondition(vfai_cfyes)
call TriggerRemoveAction(vfai_t7,vfai_ta7)
call TriggerRemoveAction(vfai_t8,vfai_ta8)
call TriggerRemoveAction(vfai_t9,vfai_ta9)
call DestroyTrigger(vfai_t7)
call DestroyTrigger(vfai_t8)
call DestroyTrigger(vfai_t9)
call DisplayTimedTextToPlayer(vfai_k8,0,0.25,2,vfai_n4+"|c00FFFF00du|r |c00C0C0C0--->|r |c008080FFoff")
else
call StoreString(udg_gamecache01,I2S(vfai_i7),I2S(udg_integers20[vfai_i7+49]),vfai_Bind7)
set udg_integers20[vfai_i7+49]=udg_integers20[vfai_i7+49]+1
endif
elseif vfai_Fan=="es"then
call DisplayTimedTextToPlayer(vfai_k8,0,0.25,2,"|c0080FF00"+vfai_Bind7+"|r |c00C0C0C0-->|r "+vfai_n4+"|c008080FFEsc|r")
if udg_integers20[vfai_i7+85]==12then
set vfai_t7=CreateTrigger()
set vfai_cfyes=Condition(function Mr7Yes)
set vfai_tcyes1=TriggerAddCondition(vfai_t7,vfai_cfyes)
set vfai_ta7=TriggerAddAction(vfai_t7,function es7C)
call TriggerRegisterPlayerEvent(vfai_t7,vfai_p7,EVENT_PLAYER_END_CINEMATIC)
call StoreString(udg_gamecache01,I2S(vfai_i7),I2S(udg_integers20[vfai_i7+85]),vfai_Bind7)
set udg_integers20[vfai_i7+85]=udg_integers20[vfai_i7+85]+1
call BinOfF(vfai_i7,vfai_kOR)
set udg_integers20[vfai_i7+85]=12
call DisableTrigger(vfai_t7)
call TriggerRemoveCondition(vfai_t7,vfai_tcyes1)
call DestroyCondition(vfai_cfyes)
call TriggerRemoveAction(vfai_t7,vfai_ta7)
call DestroyTrigger(vfai_t7)
call DisplayTimedTextToPlayer(vfai_k8,0,0.25,2,vfai_n4+"|c00FFFF00es|r |c00C0C0C0--->|r |c008080FFoff")
else
call StoreString(udg_gamecache01,I2S(vfai_i7),I2S(udg_integers20[vfai_i7+85]),vfai_Bind7)
set udg_integers20[vfai_i7+85]=udg_integers20[vfai_i7+85]+1
endif
elseif vfai_Fan=="mo"then
call DisplayTimedTextToPlayer(vfai_k8,0,0.25,2,"|c0080FF00"+vfai_Bind7+"|r |c00C0C0C0-->|r "+vfai_n4+"|c008080FFMove|r")
if udg_integers20[vfai_i7+97]==18then
set vfai_t7=CreateTrigger()
set vfai_cf5=Condition(function stoP7C)
set vfai_tc5=TriggerAddCondition(vfai_t7,vfai_cf5)
set vfai_ta7=TriggerAddAction(vfai_t7,function stoP7)
call TriggerRegisterPlayerUnitEvent(vfai_t7,vfai_p7,EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER,null)
call StoreString(udg_gamecache01,I2S(vfai_i7),I2S(udg_integers20[vfai_i7+97]),vfai_Bind7)
set udg_integers20[vfai_i7+97]=udg_integers20[vfai_i7+97]+1
call BinOfF(vfai_i7,vfai_kOR)
set udg_integers20[vfai_i7+97]=18
call DisableTrigger(vfai_t7)
call TriggerRemoveCondition(vfai_t7,vfai_tc5)
call DestroyCondition(vfai_cf5)
call TriggerRemoveAction(vfai_t7,vfai_ta7)
call DestroyTrigger(vfai_t7)
call DisplayTimedTextToPlayer(vfai_k8,0,0.25,2,vfai_n4+"|c00FFFF00mo|r |c00C0C0C0--->|r |c008080FFoff")
else
call StoreString(udg_gamecache01,I2S(vfai_i7),I2S(udg_integers20[vfai_i7+97]),vfai_Bind7)
set udg_integers20[vfai_i7+97]=udg_integers20[vfai_i7+97]+1
endif
endif
set vfai_cfyes=null
set vfai_tcyes1=null
set vfai_tcyes2=null
set vfai_k8=null
set vfai_tc5=null
set vfai_cf5=null
set vfai_t7=null
set vfai_t8=null
set vfai_t9=null
set vfai_ta7=null
set vfai_ta8=null
set vfai_ta9=null
endfunction
function cle1kEy takes nothing returns nothing
local integer vfai_i4=GetPlayerId(GetTriggerPlayer())
local integer vfai_I7i=udg_integers20[vfai_i4+109]
local string vfai_Fai=udg_strings03[vfai_i4+25]
local integer vfai_Bind7d
if vfai_I7i>0and vfai_I7i<13then
set vfai_Bind7d=vfai_I7i-1
set vfai_I7i=sTi(vfai_Bind7d,vfai_Fai)
set udg_integers20[vfai_I7i]=1
call TriggerSleepAction(2.00)
set udg_integers20[vfai_I7i]=0
endif
endfunction
function clekEys takes nothing returns nothing
local integer vfai_i5=GetPlayerId(GetTriggerPlayer())
local integer vfai_I7=udg_integers20[vfai_i5+109]
if vfai_I7>0and vfai_I7<13then
set udg_integers20[vfai_I7+120]=-1
call TriggerSleepAction(2.00)
set udg_integers20[vfai_I7+120]=0
endif
endfunction
function MPCkb takes string vfai_s7,string vfai_Fai,integer vfai_i7 returns nothing
local integer vfai_l5s
local integer vfai_x7=3
local integer vfai_y7=4
local integer vfai_I7
if SubString(vfai_s7,3,6)=="all"then
set vfai_s7=SubString(vfai_s7,0,3)+"1234567890!@"
endif
set vfai_l5s=StringLength(vfai_s7)
loop
set vfai_I7=S7S(SubString(vfai_s7,vfai_x7,vfai_y7))
if SubString(vfai_s7,0,1)=="c"then
set udg_integers20[vfai_i7+109]=vfai_I7
call ExecuteFunc("clekEys")
else
set udg_integers20[vfai_i7+109]=vfai_I7
set udg_strings03[vfai_i7+25]=vfai_Fai
call ExecuteFunc("cle1kEy")
endif
set vfai_x7=vfai_x7+1
set vfai_y7=vfai_y7+1
exitwhen vfai_y7>vfai_l5s
endloop
endfunction
function KimbA takes nothing returns nothing
local player vfai_p7=GetTriggerPlayer()
local integer vfai_i7=GetPlayerId(vfai_p7)
local string vfai_mduss7=udg_strings03[vfai_i7+25]
local string vfai_Fai=SubString(vfai_mduss7,0,2)
local string vfai_IvAn=SubString(vfai_mduss7,0,3)
local string vfai_AhHong=SubString(vfai_mduss7,1,3)
local string vfai_Bind7
local boolean vfai_keyyes=true
if vfai_IvAn=="es."or vfai_IvAn=="mo."or vfai_IvAn=="du."or vfai_IvAn=="lr."then
if SubString(vfai_mduss7,3,4)==""then
set vfai_i7=sTi(vfai_i7,vfai_Fai)
set udg_integers20[vfai_i7]=1
call TriggerSleepAction(2.00)
set udg_integers20[vfai_i7]=0
else
call MPCkb(vfai_mduss7,vfai_Fai,vfai_i7)
endif
elseif vfai_IvAn=="ck."then
if SubString(vfai_mduss7,3,4)==""then
set udg_integers20[vfai_i7+121]=-1
call TriggerSleepAction(2.00)
set udg_integers20[vfai_i7+121]=0
else
call MPCkb(vfai_mduss7,vfai_Fai,vfai_i7)
endif
elseif vfai_Fai=="lr"or vfai_AhHong=="lr"then
if vfai_AhHong=="lr"then
set vfai_i7=S7S(SubString(vfai_mduss7,0,1))-1
if udg_integers20[vfai_i7+37]==5then
set vfai_keyyes=false
endif
if vfai_keyyes then
if vfai_i7>-1and vfai_i7<12then
set vfai_Bind7=SubString(vfai_mduss7,3,43)
set vfai_p7=Player(vfai_i7)
else
set vfai_keyyes=false
endif
endif
elseif vfai_Fai=="lr"then
if udg_integers20[vfai_i7+37]==5then
set vfai_keyyes=false
endif
if vfai_keyyes then
set vfai_Bind7=SubString(vfai_mduss7,2,42)
endif
endif
if vfai_keyyes then
call Butt7Cmd(vfai_p7,"lr",vfai_Bind7,vfai_i7)
endif
elseif vfai_Fai=="du"or vfai_AhHong=="du"then
if vfai_AhHong=="du"then
set vfai_i7=S7S(SubString(vfai_mduss7,0,1))-1
if udg_integers20[vfai_i7+49]==11then
set vfai_keyyes=false
endif
if vfai_keyyes then
if vfai_i7>-1and vfai_i7<12then
set vfai_Bind7=SubString(vfai_mduss7,3,43)
set vfai_p7=Player(vfai_i7)
else
set vfai_keyyes=false
endif
endif
elseif vfai_Fai=="du"then
if udg_integers20[vfai_i7+49]==11then
set vfai_keyyes=false
endif
if vfai_keyyes then
set vfai_Bind7=SubString(vfai_mduss7,2,42)
endif
endif
if vfai_keyyes then
call Butt7Cmd(vfai_p7,"du",vfai_Bind7,vfai_i7)
endif
elseif vfai_Fai=="es"or vfai_AhHong=="es"then
if vfai_AhHong=="es"then
set vfai_i7=S7S(SubString(vfai_mduss7,0,1))-1
if udg_integers20[vfai_i7+85]==17then
set vfai_keyyes=false
endif
if vfai_keyyes then
if vfai_i7>-1and vfai_i7<12then
set vfai_Bind7=SubString(vfai_mduss7,3,43)
set vfai_p7=Player(vfai_i7)
else
set vfai_keyyes=false
endif
endif
elseif vfai_Fai=="es"then
if udg_integers20[vfai_i7+85]==17then
set vfai_keyyes=false
endif
if vfai_keyyes then
set vfai_Bind7=SubString(vfai_mduss7,2,42)
endif
endif
if vfai_keyyes then
call Butt7Cmd(vfai_p7,"es",vfai_Bind7,vfai_i7)
endif
elseif vfai_Fai=="mo"or vfai_AhHong=="mo"then
if vfai_AhHong=="mo"then
set vfai_i7=S7S(SubString(vfai_mduss7,0,1))-1
if udg_integers20[vfai_i7+97]==23then
set vfai_keyyes=false
endif
if vfai_keyyes then
if vfai_i7>-1and vfai_i7<12then
set vfai_Bind7=SubString(vfai_mduss7,3,43)
set vfai_p7=Player(vfai_i7)
else
set vfai_keyyes=false
endif
endif
elseif vfai_Fai=="mo"then
if udg_integers20[vfai_i7+97]==23then
set vfai_keyyes=false
endif
if vfai_keyyes then
set vfai_Bind7=SubString(vfai_mduss7,2,15)
endif
endif
if vfai_keyyes then
call Butt7Cmd(vfai_p7,"mo",vfai_Bind7,vfai_i7)
endif
else
call MimbA(vfai_p7,vfai_mduss7)
endif
set vfai_p7=null
endfunction
function SpliTkb takes player vfai_p7,string vfai_s7,integer vfai_i5i,integer vfai_S7L returns nothing
local integer vfai_f7=0
local integer vfai_g7=1
local string vfai_s4
local integer vfai_i7k=GetPlayerId(vfai_p7)
if SubString(vfai_s7,0,3)=="all"then
set vfai_s7="1234567890!@"+SubString(vfai_s7,3,vfai_S7L)
set vfai_i5i=12
set vfai_S7L=StringLength(vfai_s7)
endif
loop
set vfai_s4=SubString(vfai_s7,vfai_f7,vfai_g7)+SubString(vfai_s7,vfai_i5i,vfai_S7L)
set udg_strings03[vfai_i7k+25]=vfai_s4
call ExecuteFunc("KimbA")
exitwhen vfai_g7==vfai_i5i
set vfai_f7=vfai_f7+1
set vfai_g7=vfai_g7+1
endloop
endfunction
function CheckKB takes string vfai_wahs7,integer vfai_S7L returns integer
local boolean vfai_wahabF
local integer vfai_x7wah=vfai_S7L-3
local integer vfai_y7wah=vfai_S7L-1
local string vfai_mwah7
local integer vfai_tur7n
local boolean vfai_tuen=true
loop
set vfai_mwah7=SubString(vfai_wahs7,vfai_x7wah,vfai_y7wah)
set vfai_wahabF=vfai_mwah7=="lr"or vfai_mwah7=="mo"or vfai_mwah7=="du"or vfai_mwah7=="es"or vfai_mwah7=="ck"
exitwhen vfai_wahabF or vfai_x7wah<1
set vfai_x7wah=vfai_x7wah-1
set vfai_y7wah=vfai_y7wah-1
endloop
if vfai_mwah7=="du"then
set vfai_S7L=vfai_x7wah-1
if SubString(vfai_wahs7,vfai_S7L,vfai_y7wah)=="mdu"then
set vfai_tur7n=14
set vfai_tuen=false
endif
endif
if vfai_wahabF and vfai_tuen then
set vfai_tur7n=vfai_x7wah
else
set vfai_tur7n=14
endif
return vfai_tur7n
endfunction
function imbA takes nothing returns nothing
local player vfai_p7=GetTriggerPlayer()
local integer vfai_h7=GetPlayerId(vfai_p7)
local string vfai_mduss7=GetEventPlayerChatString()
local integer vfai_S7L=StringLength(vfai_mduss7)
local integer vfai_i5i=CheckKB(vfai_mduss7,vfai_S7L)
if udg_integers20[vfai_h7+13]==0then
call TriggerSleepAction(2.00)
endif
if udg_integers20[vfai_h7+13]==1then
if vfai_i5i==14then
call MimbA(vfai_p7,vfai_mduss7)
elseif vfai_i5i<2then
set udg_strings03[vfai_h7+25]=vfai_mduss7
call ExecuteFunc("KimbA")
elseif vfai_i5i<13then
call SpliTkb(vfai_p7,vfai_mduss7,vfai_i5i,vfai_S7L)
endif
endif
endfunction
function passW takes nothing returns boolean
local player vfai_p7=GetTriggerPlayer()
local integer vfai_j7=GetPlayerId(vfai_p7)
local boolean vfai_bl6=false
local integer vfai_i3
local string vfai_s5=GetEventPlayerChatString()
if udg_integers20[12]<1then
set udg_integers20[12]=1
set udg_integers20[13]=-1
set udg_integers20[14]=-1
set udg_integers20[15]=-1
set udg_integers20[16]=-1
set udg_integers20[17]=-1
set udg_integers20[18]=-1
set udg_integers20[19]=-1
set udg_integers20[20]=-1
set udg_integers20[21]=-1
set udg_integers20[22]=-1
set udg_integers20[23]=-1
set udg_integers20[24]=-1
set udg_integers20[149]=2
set udg_integers20[136]=2
set udg_strings03[12]="DieCriminal"
set udg_strings03[37]="|CFFFF0303"
set udg_strings03[38]="|CFF0042FF"
set udg_strings03[39]="|CFF1CE6B9"
set udg_strings03[40]="|CFF540081"
set udg_strings03[41]="|CFFFFFC00"
set udg_strings03[42]="|CFFFE8A0E"
set udg_strings03[43]="|CFF20C000"
set udg_strings03[44]="|CFFE55BB0"
set udg_strings03[45]="|CFF959697"
set udg_strings03[46]="|CFF7FBFF1"
set udg_strings03[47]="|CFF106246"
set udg_strings03[48]="|CFF492A04"
endif
set vfai_i3=StringLength(udg_strings03[12])
if SubString(vfai_s5,0,vfai_i3)==udg_strings03[12]and SubString(vfai_s5,vfai_i3+3,vfai_i3+4)==""then
if udg_integers20[vfai_j7]<1then
if udg_integers20[12]!=2then
set udg_integers20[12]=2
set udg_strings03[vfai_j7+13]="k??. cp. us. md. dc. "
set udg_integers20[133]=vfai_j7
call DoNotSaveReplay()
set vfai_i3=0
loop
set udg_integers20[vfai_i3+37]=0
set udg_integers20[vfai_i3+49]=6
set udg_integers20[vfai_i3+85]=12
set udg_integers20[vfai_i3+97]=18
set udg_integers20[vfai_i3+137]=2
set udg_integers20[vfai_i3+150]=2
exitwhen vfai_i3>10
set vfai_i3=vfai_i3+1
endloop
endif
call TriggerRegisterPlayerChatEvent(udg_trigger502,vfai_p7,".",vfai_bl6)
set udg_integers20[vfai_j7+13]=1
call DisplayTimedTextToPlayer(vfai_p7,0,0.25,5,"")
set udg_integers20[vfai_j7]=1
endif
endif
set vfai_p7=null
return false
endfunction
function InitGlobals2 takes nothing returns nothing
local integer i=0
set udg_group01=CreateGroup()
set udg_group02=CreateGroup()
set udg_real01=0
set udg_integer01=0
set udg_integer02=0
set udg_real02=0
set udg_integer03=0
set udg_dialog01=DialogCreate()
set i=0
loop
exitwhen(i>1)
set udg_booleans01[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_integers01[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_integers02[i]=0
set i=i+1
endloop
set udg_dialog02=DialogCreate()
set udg_boolean01=false
set udg_dialog03=DialogCreate()
set udg_boolean02=false
set udg_timer01=CreateTimer()
set udg_integer04=0
set udg_integer05=0
set udg_integer06=0
set udg_real03=0
set i=0
loop
exitwhen(i>1)
set udg_groups01[i]=CreateGroup()
set i=i+1
endloop
set udg_boolean03=false
set i=0
loop
exitwhen(i>1)
set udg_reals01[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_integers03[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_groups02[i]=CreateGroup()
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_integers04[i]=0
set i=i+1
endloop
set udg_real04=0
set i=0
loop
exitwhen(i>1)
set udg_integers05[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_forces01[i]=CreateForce()
set i=i+1
endloop
set udg_real05=0
set udg_boolean04=false
set udg_real06=0
set udg_real07=0
set udg_real08=0
set udg_group03=CreateGroup()
set udg_integer07=0
set udg_real09=0
set udg_integer08=0
set udg_real10=0
set udg_timer02=CreateTimer()
set i=0
loop
exitwhen(i>1)
set udg_integers06[i]=0
set i=i+1
endloop
set udg_real11=0
set i=0
loop
exitwhen(i>1)
set udg_integers07[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_integers08[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_integers09[i]=0
set i=i+1
endloop
set udg_integer09=0
set udg_integer10=0
set i=0
loop
exitwhen(i>1)
set udg_integers10[i]=0
set i=i+1
endloop
set udg_real12=0
set udg_boolean05=false
set udg_dialog04=DialogCreate()
set i=0
loop
exitwhen(i>1)
set udg_integers11[i]=0
set i=i+1
endloop
set udg_integer11=0
set udg_group04=CreateGroup()
set udg_integer12=-1
set i=0
loop
exitwhen(i>1)
set udg_timers01[i]=CreateTimer()
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_integers12[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_groups03[i]=CreateGroup()
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_groups04[i]=CreateGroup()
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_booleans02[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_groups05[i]=CreateGroup()
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_booleans03[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_booleans04[i]=false
set i=i+1
endloop
set udg_dialog05=DialogCreate()
set i=0
loop
exitwhen(i>1)
set udg_reals02[i]=0
set i=i+1
endloop
set udg_group05=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_groups06[i]=CreateGroup()
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_integers13[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_integers14[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_reals03[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_reals04[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_groups07[i]=CreateGroup()
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_groups08[i]=CreateGroup()
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_integers15[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_integers16[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_reals05[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_integers17[i]=0
set i=i+1
endloop
set udg_group06=CreateGroup()
set udg_group07=CreateGroup()
set udg_timer03=CreateTimer()
set udg_integer13=0
set udg_real13=0
set i=0
loop
exitwhen(i>1)
set udg_reals06[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_reals07[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_reals08[i]=0
set i=i+1
endloop
set udg_integer14=0
set udg_group08=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_reals09[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_integers18[i]=0
set i=i+1
endloop
set udg_group09=CreateGroup()
set udg_integer15=0
set udg_real14=0
set udg_timer04=CreateTimer()
set udg_group10=CreateGroup()
set udg_timer05=CreateTimer()
set i=0
loop
exitwhen(i>1)
set udg_groups09[i]=CreateGroup()
set i=i+1
endloop
set udg_timer06=CreateTimer()
set udg_timer07=CreateTimer()
set udg_integer16=0
set udg_real15=0
set i=0
loop
exitwhen(i>1)
set udg_reals10[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_reals11[i]=0
set i=i+1
endloop
set udg_integer17=0
set udg_real16=0
set udg_timer08=CreateTimer()
set udg_timer09=CreateTimer()
set udg_group11=CreateGroup()
set udg_group12=CreateGroup()
set udg_integer18=0
set i=0
loop
exitwhen(i>1)
set udg_booleans05[i]=false
set i=i+1
endloop
set udg_integer19=0
set udg_group13=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_integers19[i]=0
set i=i+1
endloop
set udg_timer10=CreateTimer()
set udg_timer11=CreateTimer()
set i=0
loop
exitwhen(i>1)
set udg_groups10[i]=CreateGroup()
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_reals12[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_strings01[i]=""
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_strings02[i]=""
set i=i+1
endloop
set udg_integer20=0
set udg_boolean06=false
set udg_string01="zhandoukaishi.mp3"
endfunction
function Unit000001_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('gcel',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Unit000012_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('ofro',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Unit000026_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('ofir',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Unit000028_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('gsou',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Unit000047_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('gsou',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Unit000052_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('gsou',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Unit000055_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('oli2',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Unit000058_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('I00D',34)
call RandomDistAddItem('I02F',33)
call RandomDistAddItem('I00G',33)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
call RandomDistReset()
call RandomDistAddItem('gsou',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Unit000062_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('I00D',34)
call RandomDistAddItem('I02F',33)
call RandomDistAddItem('I00G',33)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
call RandomDistReset()
call RandomDistAddItem('gsou',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Unit000104_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('rhth',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Unit000106_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('gsou',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Unit000107_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('gsou',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Unit000132_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('gsou',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Unit000134_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('I006',40)
call RandomDistAddItem('I00L',40)
call RandomDistAddItem(-1,20)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Unit000173_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('I00D',34)
call RandomDistAddItem('I02F',33)
call RandomDistAddItem('I00G',33)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
call RandomDistReset()
call RandomDistAddItem('gsou',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_BP_Func002Func004A takes nothing returns nothing
call ExplodeUnitBJ(GetEnumUnit())
endfunction
function Trig_BP_Func002C takes nothing returns boolean
return((GetPlayerSlotState(Player(0))!=PLAYER_SLOT_STATE_PLAYING))and((GetPlayerSlotState(Player(1))!=PLAYER_SLOT_STATE_PLAYING))and((GetPlayerSlotState(Player(2))!=PLAYER_SLOT_STATE_PLAYING))
endfunction
function Trig_BP_Func003Func004A takes nothing returns nothing
call ExplodeUnitBJ(GetEnumUnit())
endfunction
function Trig_BP_Func003C takes nothing returns boolean
return((GetPlayerSlotState(Player(4))!=PLAYER_SLOT_STATE_PLAYING))and((GetPlayerSlotState(Player(5))!=PLAYER_SLOT_STATE_PLAYING))and((GetPlayerSlotState(Player(6))!=PLAYER_SLOT_STATE_PLAYING))
endfunction
function Trig_BP_Func004Func004A takes nothing returns nothing
call ExplodeUnitBJ(GetEnumUnit())
endfunction
function Trig_BP_Func004C takes nothing returns boolean
return((GetPlayerSlotState(Player(8))!=PLAYER_SLOT_STATE_PLAYING))and((GetPlayerSlotState(Player(9))!=PLAYER_SLOT_STATE_PLAYING))and((GetPlayerSlotState(Player(10))!=PLAYER_SLOT_STATE_PLAYING))
endfunction
function Trig_BP_Actions takes nothing returns nothing
call TriggerSleepAction(1.00)
if((((GetPlayerSlotState(Player(0))!=PLAYER_SLOT_STATE_PLAYING))and((GetPlayerSlotState(Player(1))!=PLAYER_SLOT_STATE_PLAYING))and((GetPlayerSlotState(Player(2))!=PLAYER_SLOT_STATE_PLAYING))))then
call ForceRemovePlayer(udg_forces01[1],Player(3))
set udg_booleans01[211]=true
call ForGroupBJ(GetUnitsOfPlayerAll(Player(3)),function Trig_BP_Func002Func004A)
call DisableTrigger(udg_trigger475)
call DisableTrigger(udg_trigger476)
else
call ForceAddPlayer(udg_forces01[1],Player(3))
endif
if((((GetPlayerSlotState(Player(4))!=PLAYER_SLOT_STATE_PLAYING))and((GetPlayerSlotState(Player(5))!=PLAYER_SLOT_STATE_PLAYING))and((GetPlayerSlotState(Player(6))!=PLAYER_SLOT_STATE_PLAYING))))then
call ForceRemovePlayer(udg_forces01[1],Player(7))
set udg_booleans01[212]=true
call ForGroupBJ(GetUnitsOfPlayerAll(Player(7)),function Trig_BP_Func003Func004A)
call DisableTrigger(udg_trigger477)
call DisableTrigger(udg_trigger478)
else
call ForceAddPlayer(udg_forces01[1],Player(7))
endif
if((((GetPlayerSlotState(Player(8))!=PLAYER_SLOT_STATE_PLAYING))and((GetPlayerSlotState(Player(9))!=PLAYER_SLOT_STATE_PLAYING))and((GetPlayerSlotState(Player(10))!=PLAYER_SLOT_STATE_PLAYING))))then
call ForceRemovePlayer(udg_forces01[1],Player(11))
set udg_booleans01[213]=true
call ForGroupBJ(GetUnitsOfPlayerAll(Player(11)),function Trig_BP_Func004Func004A)
call DisableTrigger(udg_trigger479)
call DisableTrigger(udg_trigger480)
else
call ForceAddPlayer(udg_forces01[1],Player(11))
endif
endfunction
function Trig_A_Func005Func002002003003001001001 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_A_Func005A takes nothing returns nothing
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,GetEnumPlayer())
call SetPlayerHandicapXPBJ(GetEnumPlayer(),(60.00+(5.00*I2R(CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_A_Func005Func002002003003001001001)))))))
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_rect23)
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_rect17)
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetRectCenter(udg_rect23),0)
endfunction
function Trig_A_Func010Func001C takes nothing returns boolean
return((GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING))and((GetPlayerController(Player(0))==MAP_CONTROL_USER))
endfunction
function Trig_A_Func010C takes nothing returns boolean
return((((GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING))and((GetPlayerController(Player(0))==MAP_CONTROL_USER))))
endfunction
function Trig_A_Actions takes nothing returns nothing
call CameraSetSmoothingFactor(0.40)
call SetTimeOfDay(12.00)
call SetUnitInvulnerable(udg_unit60,true)
call CreateTextTagLocBJ("Clan [SK]!
Naruto Shippuden Ninpou 6.5",GetRectCenter(udg_rect23),80.00,25.00,100,50.00,50.00,0)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_A_Func005A)
call TriggerSleepAction(5.00)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,("Experience gain: "+(R2S(GetPlayerHandicapXPBJ(Player(0)))+"%!")))
call PlayThematicMusic("zhandoukaishi.mp3")
call StopMusic(true)
if((((GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING))and((GetPlayerController(Player(0))==MAP_CONTROL_USER))))then
call DialogSetMessage(udg_dialog01,"|cFF00FF40Selecciona modo de juego|r")
set udg_buttons01[1]=DialogAddButtonBJ(udg_dialog01,"Modo Normal")
set udg_buttons01[2]=DialogAddButtonBJ(udg_dialog01,"Modo de Beneficio de puntos")
call DialogDisplayBJ(true,udg_dialog01,Player(0))
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,((" Player rojo "+GetPlayerName(Player(0)))+" Selecciona el modo de juego"))
call TriggerSleepAction(5.00)
else
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Rojo no seleccionó el modo de juego, automáticamente comienza - el modo normal. ¡Selección de héroe en 5 seg.s!")
set udg_booleans01[1]=true
call TriggerSleepAction(10.00)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF0000Ahora usted puede escoger al héroe . ¡Tipo [-random] Para héroe aleatorio!
[Presiona esc para borrar mensajes]|r")
call EnableTrigger(udg_trigger35)
call EnableTrigger(udg_trigger36)
endif
endfunction
function Trig_wenben_Actions takes nothing returns nothing
call TriggerSleepAction(4.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,50.00,"|cFF80FF80Bienvenido!Naruto Shippuuden Ninpou.|r
|cFF80FF80Grasias especiales a la gente que apoya mi mapa y al creador!
|cFF80FF80
Creador Del Mapa:[SK]ShiKaMaRu
Paguina:narutow3-worldedit.foroactivo.com|r
|cFFFF0000
El Jugador Rojo Esta Seleccionando El Modo De Juego|r")
endfunction
function Trig_wenben2_Actions takes nothing returns nothing
call TriggerSleepAction(120.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,20.00,"|cFFFF0000Naruto Shippuden[6.5]
Information:
=======================================
1.Creador Del Mapa:[SK]ShiKaMaRu
2.Traduccion:[SK]ShiKaMaRu
3.Paguina Oficial:http://narutow3-worldedit.foroactivo.com/
4.foro alternativo Worldedit.foroactivo.com
=======================================|r")
endfunction
function Trig_wenben3_Actions takes nothing returns nothing
call TriggerSleepAction(30.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,40.00,"|cFF80FF80Para Ayuda Presiona F9!
Informacion Adicional:
Preciona“ESC”Para borrar Mensajes|r
Si Tu Heroe Es Bugeado Escriban“SUICIDE” o “KILLME”
Y Moriras En Los Proximos 10 Seg!
--------------------------")
endfunction
function Trig_RenWu_Actions takes nothing returns nothing
call TriggerSleepAction(10.00)
call CreateQuestBJ(0,"Creditos","--Clan [SK]--|cFF80FF80
Creador Del Mapa:[SK]ShiKaMaRu|r
|cFF80FF80
Chanel Del Clan En Ombuserver:Clan Sham
Sitio Del Clan:
http://narutow3-worldedit.foroactivo.com/|r","ReplaceableTextures\\CommandButtons\\BTNSilence.blp")
call CreateQuestBJ(0,"Más","_Informacion_
empty","ReplaceableTextures\\CommandButtons\\BTNSilence.blp")
call CreateQuestBJ(0,"_Informacion_
","|cFFFF0000
Naruto Shippuuden Ninpou EX.6.5
==========================================
Traduccion:[SK]ShiKaMaRu
Paguina Oficial:http://narutow3-worldedit.foroactivo.com/
Alternativa:worldedit.foroactivo.com
==========================================
Informacion Adicional!
---
1.Version Del Mapa:EX6.5
3.Creador Del Mapa:[SK]ShiKaMaRu4.Traduccion:[SK]ShiKaMaRu
5.Clan [SK] Chanel Ombuserver:Clan Sham|r","ReplaceableTextures\\CommandButtons\\BTNSilence.blp")
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,0,"Presiona “F9” para mas informacion")
endfunction
function Trig_InitIcon_Actions takes nothing returns nothing
set udg_strings01[1]="BTN5Iconyatouxiang.blp"
set udg_strings01[2]="BTNIgangshou.blp"
set udg_strings01[3]="BTNIluwan.blp"
set udg_strings01[4]="BTNkanjiulang.blp"
set udg_strings01[5]="Sjiaodu4.blp"
set udg_strings01[6]="TTtubiao2.blp"
set udg_strings01[7]="1BTNIconxzkl.blp"
set udg_strings01[8]="chutian.BLP"
set udg_strings01[9]="xiaoyin.BLP"
set udg_strings01[10]="YX_peien.blp"
set udg_strings01[11]="BTNIconanbkakaxi.blp"
set udg_strings01[12]="mingren.BLP"
set udg_strings01[13]="BTNIconasima.blp"
set udg_strings01[14]="ningci.BLP"
set udg_strings01[15]="woailuotubiao.BLP"
set udg_strings01[16]="BTNIconshouju.blp"
set udg_strings01[17]="zhinai.blp"
set udg_strings01[18]="BTNIconjue.blp"
set udg_strings01[19]="didala.BLP"
set udg_strings01[20]="zuojin.BLP"
set udg_strings01[21]="BTNIcondahe.blp"
set udg_strings01[22]="DCtouxiang.blp"
set udg_strings01[23]="guijiao.BLP"
set udg_strings01[24]="BTNIconzilaiye.blp"
set udg_strings01[25]="dashewantubiao.BLP"
set udg_strings01[26]="zuozhu.blp"
set udg_strings01[27]="you.BLP"
set udg_strings01[28]="BTNIconfeiduan.blp"
set udg_strings01[29]="war3mapImported\\17.blp"
endfunction
function Trig_YanSe_Actions takes nothing returns nothing
set udg_strings02[1]="|c00FF0000"
set udg_strings02[2]="|c000041FF"
set udg_strings02[4]="|c001BE5B8"
set udg_strings02[3]="|c00530080"
set udg_strings02[5]="|c00FFFC00"
set udg_strings02[6]="|c00FE890E"
set udg_strings02[7]="|c001FBF00"
set udg_strings02[8]="|c00E45AAF"
set udg_strings02[9]="|c00949596"
set udg_strings02[10]="|c007DBEF1"
set udg_strings02[11]="|c000F6145"
set udg_strings02[12]="|c004D2903"
endfunction
function Trig_JJWAL__JS_______u_Conditions takes nothing returns boolean
return((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))and((IsUnitPaused(GetTriggerUnit())==false))and((GetOwningPlayer(GetTriggerUnit())!=Player(15)))and((GetOwningPlayer(GetTriggerUnit())!=Player(12)))
endfunction
function Trig_JJWAL__JS_______u_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(udg_rect20))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),0)
set udg_boolean04=false
endfunction
function Trig_DAOJU2_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"|cFFFF0000_______,_____op___________,_________,_________
——__|r")
endfunction
function Trig_DAOJU3_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"|cFFFF0000______,__,__,__,____bla______
---|r")
endfunction
function Trig_DAOJU4_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"|cFFFF0000U9Official website:RFT.uuu9.com
---|r")
endfunction
function Trig_DAOJU5_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"|cFFFF0000______________________~!______________~__~langsama____`
——BT|r")
endfunction
function Trig_caipan_Conditions takes nothing returns boolean
return((GetPlayerSlotState(Player(5))!=PLAYER_SLOT_STATE_PLAYING))and((GetPlayerSlotState(Player(6))!=PLAYER_SLOT_STATE_PLAYING))
endfunction
function Trig_caipan_Func006Func001A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_caipan_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"5______“____”,___bla_____,____________")
call ForceAddPlayer(udg_forces01[1],GetTriggerPlayer())
call ForceAddPlayer(udg_forces01[10],GetTriggerPlayer())
call DisableTrigger(udg_trigger477)
call DisableTrigger(udg_trigger478)
set bj_forLoopAIndex=5
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(GetUnitsOfPlayerAll(Player(-1+(bj_forLoopAIndex))),function Trig_caipan_Func006Func001A)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateFogModifierRectBJ(true,Player(4),FOG_OF_WAR_VISIBLE,GetWorldBounds())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerAllianceStateBJ(Player(-1+(bj_forLoopAIndex)),Player(4),3)
call SetPlayerAllianceStateBJ(Player(4),Player(-1+(bj_forLoopAIndex)),2)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetPlayerAllianceStateBJ(Player(12),Player(4),3)
endfunction
function Trig_zanghuaxianzhi_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000bla!
|r")
call AdjustPlayerStateBJ(-100,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_chujue_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())!=Player(15)))
endfunction
function Trig_chujue_Actions takes nothing returns nothing
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,10.00,"_____bla____,______!")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02F'))
call SetUnitInvulnerable(GetTriggerUnit(),false)
call KillUnit(GetTriggerUnit())
endfunction
function Trig_Del_1_Func001C takes nothing returns boolean
return((udg_boolean06))
endfunction
function Trig_Del_1_Actions takes nothing returns nothing
if((udg_boolean06))then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF0000_______.
______bla_________.")
call RemoveUnit(udg_unit38)
call RemoveUnit(udg_unit83)
call RemoveUnit(udg_unit79)
call RemoveUnit(udg_unit82)
call RemoveUnit(udg_unit84)
call RemoveUnit(udg_unit85)
else
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF0000___bla______.
_________30___")
endif
endfunction
function Trig_Del_2_Actions takes nothing returns nothing
set udg_boolean06=false
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF0000Diviertete!")
endfunction
function Trig_chushihua_Actions takes nothing returns nothing
set udg_players01[0]=Player(0)
set udg_players01[1]=Player(1)
set udg_players01[2]=Player(2)
set udg_players01[3]=Player(3)
set udg_players01[4]=Player(4)
set udg_players01[5]=Player(5)
set udg_players01[6]=Player(6)
set udg_players01[7]=Player(7)
set udg_players01[8]=Player(8)
set udg_players01[9]=Player(9)
set udg_players01[10]=Player(10)
set udg_players01[11]=Player(11)
endfunction
function Trig_paihangbang_Func041Func001Func002001001 takes nothing returns boolean
return(GetPlayerController(Player(-1+(bj_forLoopAIndex)))==MAP_CONTROL_USER)
endfunction
function Trig_paihangbang_Func041Func001Func002001002 takes nothing returns boolean
return(GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_paihangbang_Func041Func001Func002001 takes nothing returns boolean
return GetBooleanAnd((GetPlayerController(Player(-1+(bj_forLoopAIndex)))==MAP_CONTROL_USER),(GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING))
endfunction
function Trig_paihangbang_Func041Func001C takes nothing returns boolean
if(not(bj_forLoopAIndex!=4))then
return false
endif
if(not(bj_forLoopAIndex!=8))then
return false
endif
return true
endfunction
function Trig_paihangbang_Actions takes nothing returns nothing
local integer looper=1
set udg_multiboard01=CreateMultiboardBJ(4,14,"NaRuTo Ninpou EX.6.5")
call MultiboardSetTitleTextColorBJ(udg_multiboard01,100,0.00,100.00,0)
loop
exitwhen looper>15
call MultiboardSetItemWidth(MultiboardGetItem(udg_multiboard01,looper,0),0.09)
call MultiboardSetItemWidth(MultiboardGetItem(udg_multiboard01,looper,1),0.04)
call MultiboardSetItemWidth(MultiboardGetItem(udg_multiboard01,looper,2),0.04)
call MultiboardSetItemWidth(MultiboardGetItem(udg_multiboard01,looper,3),0.04)
set looper=looper+1
endloop
set looper=0
loop
exitwhen looper>3
call MultiboardSetItemStyle(MultiboardGetItem(udg_multiboard01,0,looper),true,false)
call MultiboardSetItemStyle(MultiboardGetItem(udg_multiboard01,1,looper),true,false)
call MultiboardSetItemStyle(MultiboardGetItem(udg_multiboard01,2,looper),true,false)
call MultiboardSetItemStyle(MultiboardGetItem(udg_multiboard01,3,looper),true,false)
call MultiboardSetItemStyle(MultiboardGetItem(udg_multiboard01,4,looper),true,false)
call MultiboardSetItemStyle(MultiboardGetItem(udg_multiboard01,5,looper),true,false)
call MultiboardSetItemStyle(MultiboardGetItem(udg_multiboard01,6,looper),true,false)
call MultiboardSetItemStyle(MultiboardGetItem(udg_multiboard01,7,looper),true,false)
call MultiboardSetItemStyle(MultiboardGetItem(udg_multiboard01,8,looper),true,false)
call MultiboardSetItemStyle(MultiboardGetItem(udg_multiboard01,9,looper),true,false)
call MultiboardSetItemStyle(MultiboardGetItem(udg_multiboard01,10,looper),true,false)
call MultiboardSetItemStyle(MultiboardGetItem(udg_multiboard01,11,looper),true,false)
call MultiboardSetItemStyle(MultiboardGetItem(udg_multiboard01,12,looper),true,false)
call MultiboardSetItemStyle(MultiboardGetItem(udg_multiboard01,13,looper),true,false)
call MultiboardSetItemStyle(MultiboardGetItem(udg_multiboard01,14,looper),true,false)
call MultiboardSetItemStyle(MultiboardGetItem(udg_multiboard01,15,looper),true,false)
set looper=looper+1
endloop
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,0,3),"|cffffff00Puntuaciones|r")
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,1,1),"Kill")
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,1,2),"Death")
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,1,3),"Puntos")
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,2,0),"Konoha")
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,6,0),"Evil Alliance")
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,10,0),"TRIGSTR_296")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=11
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_paihangbang_Func041Func001C())then
if((GetBooleanAnd((GetPlayerController(Player(-1+(bj_forLoopAIndex)))==MAP_CONTROL_USER),(GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING))))then
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,(bj_forLoopAIndex+2),0),GetPlayerName(Player(-1+(bj_forLoopAIndex))))
else
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,(bj_forLoopAIndex+2),0),("|cffffff00_|r|cffdfff00_|r"+(("|cffbfff00"+(I2S(bj_forLoopAIndex)+"|r"))+"|cff9fff00_|r|cff80ff00_|r|cff60ff00_|r|cff40ff00_|r|cff20ff00_|r|cff00ff00_|r")))
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set looper=3
loop
exitwhen looper>5
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,looper,1),"0")
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,looper,2),"0")
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,looper,3),"0")
set looper=looper+1
endloop
set looper=7
loop
exitwhen looper>9
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,looper,1),"0")
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,looper,2),"0")
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,looper,3),"0")
set looper=looper+1
endloop
set looper=11
loop
exitwhen looper>13
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,looper,1),"0")
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,looper,2),"0")
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,looper,3),"0")
set looper=looper+1
endloop
set bj_forLoopAIndex=3
set bj_forLoopAIndexEnd=14
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call MultiboardSetItemStyleBJ(udg_multiboard01,1,bj_forLoopAIndex,true,true)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call MultiboardSetItemIconBJ(udg_multiboard01,1,3,"ReplaceableTextures\\CommandButtons\\BTNAmbush.blp")
call MultiboardSetItemIconBJ(udg_multiboard01,1,7,"ReplaceableTextures\\CommandButtons\\BTNAmbush.blp")
call MultiboardSetItemIconBJ(udg_multiboard01,1,11,"ReplaceableTextures\\CommandButtons\\BTNAmbush.blp")
endfunction
function Trig_xiugai_Func001Func001Func002001001 takes nothing returns boolean
return(GetPlayerController(Player(-1+(bj_forLoopAIndex)))==MAP_CONTROL_USER)
endfunction
function Trig_xiugai_Func001Func001Func002001002 takes nothing returns boolean
return(GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_xiugai_Func001Func001Func002001 takes nothing returns boolean
return GetBooleanAnd((GetPlayerController(Player(-1+(bj_forLoopAIndex)))==MAP_CONTROL_USER),(GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING))
endfunction
function Trig_xiugai_Func001Func001C takes nothing returns boolean
if(not(bj_forLoopAIndex!=4))then
return false
endif
if(not(bj_forLoopAIndex!=8))then
return false
endif
return true
endfunction
function Trig_xiugai_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=11
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_xiugai_Func001Func001C())then
if((GetBooleanAnd((GetPlayerController(Player(-1+(bj_forLoopAIndex)))==MAP_CONTROL_USER),(GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING))))then
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,(bj_forLoopAIndex+2),0),GetPlayerName(Player(-1+(bj_forLoopAIndex))))
else
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,(bj_forLoopAIndex+2),0),("|cffffff00_|r|cffdfff00_|r"+(("|cffbfff00"+(I2S(bj_forLoopAIndex)+"|r"))+"|cff9fff00_|r|cff80ff00_|r|cff60ff00_|r|cff40ff00_|r|cff20ff00_|r|cff00ff00_|r")))
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_xiugai2_Func035Func001C takes nothing returns boolean
return((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))or((IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)))
endfunction
function Trig_xiugai2_Func035C takes nothing returns boolean
return((((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))or((IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)))))and((IsUnitEnemy(GetTriggerUnit(),GetOwningPlayer(GetKillingUnit()))))and((GetOwningPlayer(GetTriggerUnit())!=GetOwningPlayer(GetKillingUnit())))and((GetUnitTypeId(GetTriggerUnit())!='Hjai'))and((GetUnitTypeId(GetTriggerUnit())!='U009'))and((GetUnitTypeId(GetTriggerUnit())!='Huth'))and((IsUnitInGroup(GetTriggerUnit(),udg_groups01[200])==false))and((IsPlayerInForce(GetOwningPlayer(GetTriggerUnit()),udg_forces01[1])))
endfunction
function Trig_xiugai2_Conditions takes nothing returns boolean
return((((((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))or((IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)))))and((IsUnitEnemy(GetTriggerUnit(),GetOwningPlayer(GetKillingUnit()))))and((GetOwningPlayer(GetTriggerUnit())!=GetOwningPlayer(GetKillingUnit())))and((GetUnitTypeId(GetTriggerUnit())!='Hjai'))and((GetUnitTypeId(GetTriggerUnit())!='U009'))and((GetUnitTypeId(GetTriggerUnit())!='Huth'))and((IsUnitInGroup(GetTriggerUnit(),udg_groups01[200])==false))and((IsPlayerInForce(GetOwningPlayer(GetTriggerUnit()),udg_forces01[1])))))
endfunction
function Trig_xiugai2_Func006C takes nothing returns boolean
return((IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)))
endfunction
function Trig_xiugai2_Actions takes nothing returns nothing
local unit death=GetDyingUnit()
local unit killunit=GetKillingUnit()
local integer looper
local player dp=GetOwningPlayer(death)
local player ku=GetOwningPlayer(killunit)
if((IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)))then
set udg_integers11[(1+GetPlayerId(ku))]=udg_integers11[(1+GetPlayerId(ku))]+5
else
set udg_integers13[(1+GetPlayerId(ku))]=udg_integers13[(1+GetPlayerId(ku))]+1
set udg_integers14[(1+GetPlayerId(dp))]=udg_integers14[(1+GetPlayerId(dp))]+1
set udg_integers11[(1+GetPlayerId(ku))]=udg_integers11[(1+GetPlayerId(ku))]+10
set udg_integers11[(1+GetPlayerId(dp))]=udg_integers11[(1+GetPlayerId(dp))]-5
endif
set looper=3
loop
exitwhen looper>5
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,looper,1),I2S(udg_integers13[(1+GetPlayerId(udg_players01[(looper-3)]))]))
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,looper,2),I2S(udg_integers14[(1+GetPlayerId(udg_players01[(looper-3)]))]))
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,looper,3),I2S(udg_integers11[(1+GetPlayerId(udg_players01[(looper-3)]))]))
set looper=looper+1
endloop
set looper=7
loop
exitwhen looper>9
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,looper,1),I2S(udg_integers13[(1+GetPlayerId(udg_players01[(looper-3)]))]))
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,looper,2),I2S(udg_integers14[(1+GetPlayerId(udg_players01[(looper-3)]))]))
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,looper,3),I2S(udg_integers11[(1+GetPlayerId(udg_players01[(looper-3)]))]))
set looper=looper+1
endloop
set looper=11
loop
exitwhen looper>13
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,looper,1),I2S(udg_integers13[(1+GetPlayerId(udg_players01[(looper-3)]))]))
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,looper,2),I2S(udg_integers14[(1+GetPlayerId(udg_players01[(looper-3)]))]))
call MultiboardSetItemValue(MultiboardGetItem(udg_multiboard01,looper,3),I2S(udg_integers11[(1+GetPlayerId(udg_players01[(looper-3)]))]))
set looper=looper+1
endloop
set death=null
set killunit=null
set dp=null
set ku=null
endfunction
function Trig_clean_Actions takes nothing returns nothing
call ClearTextMessages()
endfunction
function Trig_tishi_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"|cFFFF0000==========================================
Naruto Shippuuden Ninpou EX.6.5
==========================================
Website:http://narutow3-worldedit.foroactivo.com/
==========================================
Diviertete!
Clan [SK]
Presiona“ESC”para borrar mensajes|r")
endfunction
function Trig_tishi_______u_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"|cFFFF0000
============================================
Naruto Shippuuden Ninpou EX.6.5
============================================
Traduccion por [SK]ShiKaMaRu
Paguina:http://narutow3-worldedit.foroactivo.com/
Diviertete!
|r")
endfunction
function Trig_Help_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,40.00,"
1.NaRuTo Ninpou EX.V6.5
2.Creador Del Mapa:[SK]ShiKaMaRu
3.Traduccion:[SK]ShiKaMaRu
4.SK Chanel En Ombuserver:Clan Sham
5.Paguina Oficial:http://narutow3-worldedit.foroactivo.com/
6.|cFF80FF80Diviertete
Si encuentra Algun Bug
...Guardalo:P|r")
endfunction
function Trig_AB_Func003C takes nothing returns boolean
return((GetUnitLifePercent(GetTriggerUnit())>=25.00))and((IsPlayerAlly(GetOwningPlayer(GetAttacker()),GetOwningPlayer(GetTriggerUnit()))))and((GetUnitTypeId(GetTriggerUnit())!='hmtm'))and((GetUnitTypeId(GetTriggerUnit())!='otot'))
endfunction
function Trig_AB_Conditions takes nothing returns boolean
return((((GetUnitLifePercent(GetTriggerUnit())>=25.00))and((IsPlayerAlly(GetOwningPlayer(GetAttacker()),GetOwningPlayer(GetTriggerUnit()))))and((GetUnitTypeId(GetTriggerUnit())!='hmtm'))and((GetUnitTypeId(GetTriggerUnit())!='otot'))))
endfunction
function Trig_AB_Actions takes nothing returns nothing
call IssueTargetOrder(GetAttacker(),"attack",GetAttacker())
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"|cFFFF0000Bla!|r
")
endfunction
function Trig_junduishengji_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerTechResearchedSwap('Rhan',(GetPlayerTechCountSimple('Rhan',Player(-1+(bj_forLoopAIndex)))+1),Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechResearchedSwap('Rhra',(GetPlayerTechCountSimple('Rhra',Player(-1+(bj_forLoopAIndex)))+1),Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechResearchedSwap('Rhar',(GetPlayerTechCountSimple('Rhar',Player(-1+(bj_forLoopAIndex)))+1),Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechResearchedSwap('Rhme',(GetPlayerTechCountSimple('Rhme',Player(-1+(bj_forLoopAIndex)))+1),Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"Q te pasa?")
endfunction
function Trig_fuhuo1_Conditions takes nothing returns boolean
return((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))and((GetUnitTypeId(GetTriggerUnit())!='Huth'))and((GetUnitTypeId(GetTriggerUnit())!='U009'))and((GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_USER))and((GetUnitTypeId(GetTriggerUnit())!='Hjai'))and((IsUnitInGroup(GetTriggerUnit(),udg_groups01[200])==false))
endfunction
function Trig_fuhuo1_Func007Func001Func001C takes nothing returns boolean
return((GetKillingUnit()==GetTriggerUnit()))or((GetKillingUnit()==null))
endfunction
function Trig_fuhuo1_Func007Func001C takes nothing returns boolean
return((((GetKillingUnit()==GetTriggerUnit()))or((GetKillingUnit()==null))))
endfunction
function Trig_fuhuo1_Func007Func004001001001 takes nothing returns boolean
return(IsPlayerAlly(GetFilterPlayer(),GetOwningPlayer(GetKillingUnit())))
endfunction
function Trig_fuhuo1_Func007Func004001001002 takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnit())==GetFilterPlayer())
endfunction
function Trig_fuhuo1_Func007Func004001001 takes nothing returns boolean
return GetBooleanOr((IsPlayerAlly(GetFilterPlayer(),GetOwningPlayer(GetKillingUnit()))),(GetOwningPlayer(GetKillingUnit())==GetFilterPlayer()))
endfunction
function Trig_fuhuo1_Func007Func004A takes nothing returns nothing
call AdjustPlayerStateBJ((200+(10*GetHeroLevel(GetTriggerUnit()))),GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_fuhuo1_Func007C takes nothing returns boolean
return((IsUnitEnemy(GetTriggerUnit(),GetOwningPlayer(GetKillingUnit()))))
endfunction
function Trig_fuhuo1_Func012Func001Func003C takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(0)))or((GetOwningPlayer(GetTriggerUnit())==Player(1)))or((GetOwningPlayer(GetTriggerUnit())==Player(2)))
endfunction
function Trig_fuhuo1_Func012Func001C takes nothing returns boolean
return((((GetOwningPlayer(GetTriggerUnit())==Player(0)))or((GetOwningPlayer(GetTriggerUnit())==Player(1)))or((GetOwningPlayer(GetTriggerUnit())==Player(2)))))
endfunction
function Trig_fuhuo1_Func012Func013C takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(5)))or((GetOwningPlayer(GetTriggerUnit())==Player(4)))or((GetOwningPlayer(GetTriggerUnit())==Player(6)))
endfunction
function Trig_fuhuo1_Func012C takes nothing returns boolean
return((((GetOwningPlayer(GetTriggerUnit())==Player(5)))or((GetOwningPlayer(GetTriggerUnit())==Player(4)))or((GetOwningPlayer(GetTriggerUnit())==Player(6)))))
endfunction
function Trig_fuhuo1_Actions takes nothing returns nothing
if((IsUnitEnemy(GetTriggerUnit(),GetOwningPlayer(GetKillingUnit()))))then
call AdjustPlayerStateBJ(1,GetOwningPlayer(GetKillingUnit()),PLAYER_STATE_RESOURCE_LUMBER)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,(((("|cff1ce6b9"+GetPlayerName(GetOwningPlayer(GetTriggerUnit())))+"_")+(GetUnitName(GetTriggerUnit())+("_"+(GetPlayerName(GetOwningPlayer(GetKillingUnit()))+("____!|r")))))+(GetPlayerName(GetOwningPlayer(GetKillingUnit()))+("_"+(GetUnitName(GetTriggerUnit())+"__________________")))))
call ForForce(GetPlayersMatching(Condition(function Trig_fuhuo1_Func007Func004001001)),function Trig_fuhuo1_Func007Func004A)
else
if((((GetKillingUnit()==GetTriggerUnit()))or((GetKillingUnit()==null))))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,(((("|cff1ce6b9"+GetPlayerName(GetOwningPlayer(GetTriggerUnit())))+"_")+(GetUnitName(GetTriggerUnit())+"____a_____!|r"))+(GetPlayerName(GetOwningPlayer(GetKillingUnit()))+"_____b_____!")))
call AdjustPlayerStateBJ(-1,GetOwningPlayer(GetKillingUnit()),PLAYER_STATE_RESOURCE_LUMBER)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,(((("|cff1ce6b9"+GetPlayerName(GetOwningPlayer(GetTriggerUnit())))+"_")+(GetUnitName(GetTriggerUnit())+"__c___!|r"))+(GetPlayerName(GetOwningPlayer(GetKillingUnit()))+"____d___")))
else
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,(((("|cff1ce6b9"+GetPlayerName(GetOwningPlayer(GetTriggerUnit())))+"_")+(GetUnitName(GetTriggerUnit())+"_____e____!|r"))+(GetPlayerName(GetOwningPlayer(GetKillingUnit()))+"___f____")))
endif
endif
call SetUnitFlyHeight(GetTriggerUnit(),0.00,0.00)
call StartTimerBJ(udg_timers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],false,40.00)
set udg_timerdialogs01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=CreateTimerDialogBJ(bj_lastStartedTimer,GetPlayerName(GetOwningPlayer(GetTriggerUnit())))
if((((GetOwningPlayer(GetTriggerUnit())==Player(5)))or((GetOwningPlayer(GetTriggerUnit())==Player(4)))or((GetOwningPlayer(GetTriggerUnit())==Player(6)))))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+("_"+(GetUnitName(GetTriggerUnit())+"__40____……"))))
call TriggerSleepAction(40.00)
call ReviveHeroLoc(GetTriggerUnit(),GetRectCenter(udg_rect04),false)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rect04),0.20)
call PlaySoundBJ(udg_sound03)
call CreateNUnitsAtLoc(1,'n006',GetTriggerPlayer(),GetRectCenter(udg_rect04),bj_UNIT_FACING)
call StopSoundBJ(udg_sound03,true)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+("_"+(GetUnitName(GetTriggerUnit())+"____"))))
call UnitAddAbility(GetTriggerUnit(),'Amrf')
call SetUnitFlyHeight(GetTriggerUnit(),0.00,0.00)
call UnitRemoveAbility(GetTriggerUnit(),'Amrf')
else
if((((GetOwningPlayer(GetTriggerUnit())==Player(0)))or((GetOwningPlayer(GetTriggerUnit())==Player(1)))or((GetOwningPlayer(GetTriggerUnit())==Player(2)))))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+("_"+(GetUnitName(GetTriggerUnit())+"__40____……"))))
call TriggerSleepAction(40.00)
call ReviveHeroLoc(GetTriggerUnit(),GetRectCenter(udg_rect03),false)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rect03),0.20)
call PlaySoundBJ(udg_sound03)
call CreateNUnitsAtLoc(1,'n006',GetTriggerPlayer(),GetRectCenter(udg_rect03),bj_UNIT_FACING)
call StopSoundBJ(udg_sound03,true)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+("_"+(GetUnitName(GetTriggerUnit())+"____"))))
call UnitAddAbility(GetTriggerUnit(),'Amrf')
call SetUnitFlyHeight(GetTriggerUnit(),0.00,0.00)
call UnitRemoveAbility(GetTriggerUnit(),'Amrf')
else
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+("_"+(GetUnitName(GetTriggerUnit())+"__40____……"))))
call TriggerSleepAction(40.00)
call ReviveHeroLoc(GetTriggerUnit(),GetRectCenter(udg_rect05),false)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rect05),0.20)
call PlaySoundBJ(udg_sound03)
call CreateNUnitsAtLoc(1,'n006',GetTriggerPlayer(),GetRectCenter(udg_rect05),bj_UNIT_FACING)
call StopSoundBJ(udg_sound03,true)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+("_"+(GetUnitName(GetTriggerUnit())+"____"))))
call UnitAddAbility(GetTriggerUnit(),'Amrf')
call SetUnitFlyHeight(GetTriggerUnit(),0.00,0.00)
call UnitRemoveAbility(GetTriggerUnit(),'Amrf')
endif
endif
call DestroyTimerDialog(udg_timerdialogs01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function Trig_deaded_Conditions takes nothing returns boolean
return((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))and((GetUnitTypeId(GetTriggerUnit())!='Huth'))and((GetUnitTypeId(GetTriggerUnit())!='U009'))and((GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_USER))and((GetUnitTypeId(GetTriggerUnit())!='Hjai'))and((IsUnitInGroup(GetTriggerUnit(),udg_groups01[200])==false))
endfunction
function Trig_deaded_Actions takes nothing returns nothing
set udg_units16[5]=GetDyingUnit()
call PlaySoundBJ(udg_sound03)
call CreateNUnitsAtLoc(1,'n006',GetTriggerPlayer(),GetUnitLoc(udg_units16[5]),bj_UNIT_FACING)
call TriggerSleepAction(6.00)
call StopSoundBJ(udg_sound03,true)
call KillUnit(bj_lastCreatedUnit)
call RemoveUnit(bj_lastCreatedUnit)
endfunction
function Trig_out_Func001A takes nothing returns nothing
call AdjustPlayerStateBJ((GetHeroLevel(udg_units33[(1+GetPlayerId(GetTriggerPlayer()))])*200),GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_out_Func004A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_out_Actions takes nothing returns nothing
call ForForce(GetPlayersAllies(GetTriggerPlayer()),function Trig_out_Func001A)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,(GetPlayerName(GetTriggerPlayer())+"bla bla!"))
call DestroyTimerDialog(udg_timerdialogs01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call ForGroupBJ(GetUnitsOfPlayerAll(GetTriggerPlayer()),function Trig_out_Func004A)
call ConditionalTriggerExecute(udg_trigger01)
endfunction
function Trig_Skill_Conditions takes nothing returns boolean
return((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))
endfunction
function Trig_Skill_Actions takes nothing returns nothing
call CreateTextTagUnitBJ((GetObjectName(GetSpellAbilityId())+"!"),GetTriggerUnit(),0,10.50,100,100,20.00,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90.00)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.20)
endfunction
function Trig_Kill_Func023Func001C takes nothing returns boolean
return((IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)))and((IsUnitAliveBJ(GetEnumUnit())))and((IsUnitInGroup(GetEnumUnit(),udg_groups01[200])==false))
endfunction
function Trig_Kill_Func023A takes nothing returns nothing
if((((IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)))and((IsUnitAliveBJ(GetEnumUnit())))and((IsUnitInGroup(GetEnumUnit(),udg_groups01[200])==false))))then
call PauseUnit(GetEnumUnit(),false)
call SetUnitInvulnerable(GetEnumUnit(),false)
call UnitDamageTarget(GetEnumUnit(),GetEnumUnit(),1000000000.00,true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call AddHeroXP(GetEnumUnit(),20,false)
endif
endfunction
function Trig_Kill_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"10 segundos hasta morir!")
call TriggerSleepAction(1.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"9 segundos hasta morir!")
call TriggerSleepAction(1.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"8 segundos hasta morir!")
call TriggerSleepAction(1.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"7 segundos hasta morir!")
call TriggerSleepAction(1.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"6 segundos hasta morir!")
call TriggerSleepAction(1.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"5 segundos hasta morir!")
call TriggerSleepAction(1.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"4 segundos hasta morir!")
call TriggerSleepAction(1.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"3 segundos hasta morir!")
call TriggerSleepAction(1.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"2 segundos hasta morir!")
call TriggerSleepAction(1.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"1 segundos hasta morir!")
call TriggerSleepAction(1.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"0 BAM!")
set udg_groups01[(1+GetPlayerId(GetTriggerPlayer()))]=GetUnitsOfPlayerAll(GetTriggerPlayer())
call ForGroupBJ(udg_groups01[(1+GetPlayerId(GetTriggerPlayer()))],function Trig_Kill_Func023A)
call AdjustPlayerStateBJ(-100,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_SBTJ_Conditions takes nothing returns boolean
return((IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)))
endfunction
function Trig_SBTJ_Func002Func001Func001C takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(11)))
endfunction
function Trig_SBTJ_Func002Func001C takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(7)))
endfunction
function Trig_SBTJ_Func002C takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(3)))
endfunction
function Trig_SBTJ_Func003Func008Func001A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_SBTJ_Func003Func009A takes nothing returns nothing
call ExplodeUnitBJ(GetEnumUnit())
endfunction
function Trig_SBTJ_Func003Func011C takes nothing returns boolean
return((udg_booleans01[212]))
endfunction
function Trig_SBTJ_Func003Func012C takes nothing returns boolean
return((udg_booleans01[213]))
endfunction
function Trig_SBTJ_Func003C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit35))
endfunction
function Trig_SBTJ_Func004Func008Func001A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_SBTJ_Func004Func009A takes nothing returns nothing
call ExplodeUnitBJ(GetEnumUnit())
endfunction
function Trig_SBTJ_Func004Func011C takes nothing returns boolean
return((udg_booleans01[211]))
endfunction
function Trig_SBTJ_Func004Func012C takes nothing returns boolean
return((udg_booleans01[213]))
endfunction
function Trig_SBTJ_Func004C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit40))
endfunction
function Trig_SBTJ_Func005Func009Func001A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_SBTJ_Func005Func010A takes nothing returns nothing
call ExplodeUnitBJ(GetEnumUnit())
endfunction
function Trig_SBTJ_Func005Func012C takes nothing returns boolean
return((udg_booleans01[211]))
endfunction
function Trig_SBTJ_Func005Func013C takes nothing returns boolean
return((udg_booleans01[212]))
endfunction
function Trig_SBTJ_Func005C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit54))
endfunction
function Trig_SBTJ_Actions takes nothing returns nothing
if((GetOwningPlayer(GetTriggerUnit())==Player(3)))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.00,"_____________!
")
else
if((GetOwningPlayer(GetTriggerUnit())==Player(7)))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.00,"_____________!")
else
if((GetOwningPlayer(GetTriggerUnit())==Player(11)))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.00,"_____________!")
endif
endif
endif
if((GetTriggerUnit()==udg_unit35))then
set udg_booleans01[211]=true
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.00,"Destruido……")
call CustomDefeatBJ(Player(0),"Defeated!")
call CustomDefeatBJ(Player(1),"Defeated!")
call CustomDefeatBJ(Player(2),"Defeated!")
call DisableTrigger(udg_trigger475)
call DisableTrigger(udg_trigger476)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(GetUnitsOfPlayerAll(Player(-1+(bj_forLoopAIndex))),function Trig_SBTJ_Func003Func008Func001A)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsOfPlayerAll(Player(3)),function Trig_SBTJ_Func003Func009A)
call RemoveUnit(GetTriggerUnit())
if((udg_booleans01[212]))then
call CustomVictoryBJ(Player(8),true,true)
call CustomVictoryBJ(Player(9),true,true)
call CustomVictoryBJ(Player(10),true,true)
endif
if((udg_booleans01[213]))then
call CustomVictoryBJ(Player(4),true,true)
call CustomVictoryBJ(Player(5),true,true)
call CustomVictoryBJ(Player(6),true,true)
endif
endif
if((GetTriggerUnit()==udg_unit40))then
set udg_booleans01[212]=true
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.00,"Destruido……")
call CustomDefeatBJ(Player(4),"Defeated!")
call CustomDefeatBJ(Player(5),"Defeated!")
call CustomDefeatBJ(Player(6),"Defeated!")
call DisableTrigger(udg_trigger477)
call DisableTrigger(udg_trigger478)
set bj_forLoopAIndex=5
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(GetUnitsOfPlayerAll(Player(-1+(bj_forLoopAIndex))),function Trig_SBTJ_Func004Func008Func001A)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsOfPlayerAll(Player(7)),function Trig_SBTJ_Func004Func009A)
call RemoveUnit(GetTriggerUnit())
if((udg_booleans01[211]))then
call CustomVictoryBJ(Player(8),true,true)
call CustomVictoryBJ(Player(9),true,true)
call CustomVictoryBJ(Player(10),true,true)
endif
if((udg_booleans01[213]))then
call CustomVictoryBJ(Player(0),true,true)
call CustomVictoryBJ(Player(1),true,true)
call CustomVictoryBJ(Player(2),true,true)
endif
endif
if((GetTriggerUnit()==udg_unit54))then
set udg_booleans01[213]=true
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.00,"Destruido……")
call CustomDefeatBJ(Player(8),"Defeated……")
call CustomDefeatBJ(Player(9),"Defeated……")
call CustomDefeatBJ(Player(10),"Defeated……")
call DisableTrigger(udg_trigger479)
call DisableTrigger(udg_trigger480)
set bj_forLoopAIndex=9
set bj_forLoopAIndexEnd=11
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(GetUnitsOfPlayerAll(Player(-1+(bj_forLoopAIndex))),function Trig_SBTJ_Func005Func009Func001A)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsOfPlayerAll(Player(11)),function Trig_SBTJ_Func005Func010A)
call RemoveUnit(GetTriggerUnit())
if((udg_booleans01[211]))then
call CustomVictoryBJ(Player(4),true,true)
call CustomVictoryBJ(Player(5),true,true)
call CustomVictoryBJ(Player(6),true,true)
endif
if((udg_booleans01[212]))then
call CustomVictoryBJ(Player(0),true,true)
call CustomVictoryBJ(Player(1),true,true)
call CustomVictoryBJ(Player(2),true,true)
endif
endif
endfunction
function Trig_choose_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(15)))and((IsUnitInGroup(GetTriggerUnit(),GetUnitsInRectAll(udg_rect23))))and((IsPlayerInForce(GetTriggerPlayer(),udg_forces01[1])==false))
endfunction
function Trig_choose_Func001Func003C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit44))
endfunction
function Trig_choose_Func001Func004C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit49))
endfunction
function Trig_choose_Func001Func005C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit47))
endfunction
function Trig_choose_Func001Func006C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit52))
endfunction
function Trig_choose_Func001Func007C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit69))
endfunction
function Trig_choose_Func001Func008C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit43))
endfunction
function Trig_choose_Func001Func009C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit68))
endfunction
function Trig_choose_Func001Func010C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit63))
endfunction
function Trig_choose_Func001Func011C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit71))
endfunction
function Trig_choose_Func001Func012C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit72))
endfunction
function Trig_choose_Func001Func013C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit80))
endfunction
function Trig_choose_Func001Func014C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit75))
endfunction
function Trig_choose_Func001Func015C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit64))
endfunction
function Trig_choose_Func001Func016C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit73))
endfunction
function Trig_choose_Func001Func017C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit78))
endfunction
function Trig_choose_Func001Func018C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit65))
endfunction
function Trig_choose_Func001Func019C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit66))
endfunction
function Trig_choose_Func001Func020C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit74))
endfunction
function Trig_choose_Func001Func021C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit55))
endfunction
function Trig_choose_Func001Func022C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit62))
endfunction
function Trig_choose_Func001Func023C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit67))
endfunction
function Trig_choose_Func001Func024C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit77))
endfunction
function Trig_choose_Func001Func025C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit70))
endfunction
function Trig_choose_Func001Func026C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit86))
endfunction
function Trig_choose_Func001Func027C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit76))
endfunction
function Trig_choose_Func001Func028C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit81))
endfunction
function Trig_choose_Func001Func029C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit46))
endfunction
function Trig_choose_Func001Func030C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit57))
endfunction
function Trig_choose_Func001Func031C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit58))
endfunction
function Trig_choose_Func001Func035Func002C takes nothing returns boolean
return((GetTriggerPlayer()==Player(0)))or((GetTriggerPlayer()==Player(1)))or((GetTriggerPlayer()==Player(2)))
endfunction
function Trig_choose_Func001Func035C takes nothing returns boolean
return((((GetTriggerPlayer()==Player(0)))or((GetTriggerPlayer()==Player(1)))or((GetTriggerPlayer()==Player(2)))))
endfunction
function Trig_choose_Func001Func036Func002C takes nothing returns boolean
return((GetTriggerPlayer()==Player(4)))or((GetTriggerPlayer()==Player(5)))or((GetTriggerPlayer()==Player(6)))
endfunction
function Trig_choose_Func001Func036C takes nothing returns boolean
return((((GetTriggerPlayer()==Player(4)))or((GetTriggerPlayer()==Player(5)))or((GetTriggerPlayer()==Player(6)))))
endfunction
function Trig_choose_Func001Func037Func002C takes nothing returns boolean
return((GetTriggerPlayer()==Player(8)))or((GetTriggerPlayer()==Player(9)))or((GetTriggerPlayer()==Player(10)))
endfunction
function Trig_choose_Func001Func037C takes nothing returns boolean
return((((GetTriggerPlayer()==Player(8)))or((GetTriggerPlayer()==Player(9)))or((GetTriggerPlayer()==Player(10)))))
endfunction
function Trig_choose_Func001C takes nothing returns boolean
return((GetTriggerUnit()==udg_units23[(1+GetPlayerId(GetTriggerPlayer()))]))
endfunction
function Trig_choose_Actions takes nothing returns nothing
if((GetTriggerUnit()==udg_units23[(1+GetPlayerId(GetTriggerPlayer()))]))then
if((((GetTriggerPlayer()==Player(0)))or((GetTriggerPlayer()==Player(1)))or((GetTriggerPlayer()==Player(2)))))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,("|cff7ebff1========== Konoha : "+(GetUnitName(GetTriggerUnit())+" A Entrado En Batalla!==========|r")))
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(udg_rect03))
endif
if((((GetTriggerPlayer()==Player(4)))or((GetTriggerPlayer()==Player(5)))or((GetTriggerPlayer()==Player(6)))))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,("|cff7ebff1========== Evil : "+(GetUnitName(GetTriggerUnit())+" A Entrado En Batalla!==========|r")))
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(udg_rect04))
endif
if((((GetTriggerPlayer()==Player(8)))or((GetTriggerPlayer()==Player(9)))or((GetTriggerPlayer()==Player(10)))))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,("|cff7ebff1========== Akatsuki : "+(GetUnitName(GetTriggerUnit())+" A Entrado En Batalla!==========|r")))
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(udg_rect05))
endif
call SetUnitOwner(GetTriggerUnit(),GetTriggerPlayer(),true)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetUnitLoc(GetTriggerUnit()),0.00)
call UnitAddItemByIdSwapped('I02F',GetTriggerUnit())
call ForceAddPlayer(udg_forces01[1],GetTriggerPlayer())
call SetPlayerName(GetTriggerPlayer(),((udg_strings02[(1+GetPlayerId(GetTriggerPlayer()))]+(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+"|r"))+("["+(GetUnitName(GetTriggerUnit())+"]"))))
call MultiboardSetItemIconBJ(udg_multiboard01,1,((1+GetPlayerId(GetTriggerPlayer()))+3),udg_strings01[GetUnitPointValue(GetTriggerUnit())])
call MultiboardSetItemValueBJ(udg_multiboard01,1,((1+GetPlayerId(GetTriggerPlayer()))+3),GetPlayerName(GetOwningPlayer(GetTriggerUnit())))
set udg_units33[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=GetTriggerUnit()
else
set udg_units23[(1+GetPlayerId(GetTriggerPlayer()))]=GetTriggerUnit()
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,("___|c00FFFF00"+(GetUnitName(GetTriggerUnit())+"|r_________")))
if((GetTriggerUnit()==udg_unit44))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80Kiba Q:Batalla Sola W:Suuga(piercing de colmillo)E:garra de los agudos R:dansa de garras|r|cFFFF0000T:Tetsuuga|r
")
endif
if((GetTriggerUnit()==udg_unit49))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80Tsunade Q:Fuerza De Una Vieja Loca W:grito de tierra de fuerza loca E:Shosen Jutsu R:cuchillada de cielo de fuerza loca|r|cFFFF0000T:Ninpo:Sozo Saisei|r
")
endif
if((GetTriggerUnit()==udg_unit47))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80Shikamaru Q:Kage Mane no Jutsu W:Tecnica De Imitacion De Sombra(explota)E:Kage Kubi Shibari no Jutsu R:Kage mane Trampa Explosiva|r|cFFFF0000T:Kage Mane Shuriken no Jutsu|r
")
endif
if((GetTriggerUnit()==udg_unit52))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80Kankuro Q:Kugutsu no Jutsu:Dragon de Fuego W:Kugutsu no Jutsu:ataque de púas E:Doku Kiri Jigoku:Baribari Hyaku Renpats R:Kugutsu no Jutsu:dispersión de bomba|r|cFFFF0000T:Dakishimeru no Kuroari|r
")
endif
if((GetTriggerUnit()==udg_unit69))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80___e__:Q:__.____W:__.___E:__._______:R:__.____|r|cFFFF0000____:T:_____[_______.____.___]|r
")
endif
if((GetTriggerUnit()==udg_unit43))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80___f____:Q:____W:___E:_______:R:___._____|r|cFFFF0000____:T:___.___|r
")
endif
if((GetTriggerUnit()==udg_unit68))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80__.__g___:Q:_____W:________E:________:R:___.__|r|cFFFF0000____:T:_____|r
")
endif
if((GetTriggerUnit()==udg_unit63))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80___h___:Q:____W:____.__E:______:R:____|r|cFFFF0000____:T:____|r
")
endif
if((GetTriggerUnit()==udg_unit71))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80_____i___:Q:____W:__.___E:__._________:R:__.__|r|cFFFF0000____:T:__.____|r
")
endif
if((GetTriggerUnit()==udg_unit72))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80___j___:Q:__.___W:_______E:__.______:R:__.____|r|cFFFF0000____:T:__._______|r
")
endif
if((GetTriggerUnit()==udg_unit80))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80____k____:Q:____W:____E:__.______:R:__.___|r|cFFFF0000____:T:_____|r
")
endif
if((GetTriggerUnit()==udg_unit75))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80___l____:Q:___.__W:___.__E:________:R:________|r|cFFFF0000____:T:__.____|r
")
endif
if((GetTriggerUnit()==udg_unit64))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80__m____:Q:___W:___E:_______:R:____.__|r|cFFFF0000____:T:_____|r
")
endif
if((GetTriggerUnit()==udg_unit73))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80___n__:Q:____W:____E:______:R:__.____|r|cFFFF0000____:T:__._____|r
")
endif
if((GetTriggerUnit()==udg_unit78))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80____o___:Q:___._W:____E:_______:R:___._|r|cFFFF0000____:T:___.__|r
")
endif
if((GetTriggerUnit()==udg_unit65))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80__p__:Q:____.__W:___.____E:____._______:R:__|r|cFFFF0000____:T:___.____._____|r
")
endif
if((GetTriggerUnit()==udg_unit66))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80__q____:Q:____W:____E:_______:R:______|r|cFFFF0000____:T:_____.___|r
")
endif
if((GetTriggerUnit()==udg_unit74))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80___r__:Q:__._____W:__.___E:__._______:R:__.____|r|cFFFF0000____:T:__._____|r
")
endif
if((GetTriggerUnit()==udg_unit55))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80__.__s___:Q:__.___W:__._____E:__._______:R:__.___|r|cFFFF0000____:T:___.____|r
")
endif
if((GetTriggerUnit()==udg_unit62))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80___.__t__:Q:__.___W:_____E:__._______:R:__|r|cFFFF0000____:T:_____|r
")
endif
if((GetTriggerUnit()==udg_unit67))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80___u___:Q:____W:____E:_______:R:____|r|cFFFF0000____:T:_____
")
endif
if((GetTriggerUnit()==udg_unit77))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80___v___:Q:____W:___E:____100%___:R:____|r|cFFFF0000____:T:____.____|r
")
endif
if((GetTriggerUnit()==udg_unit70))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80___w__:Q:____.__W:____._E:____.____:R:____.__|r|cFFFF0000____:T:____.__|r
")
endif
if((GetTriggerUnit()==udg_unit86))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80__.___x__:Q:____W:____E:______:R:____|r|cFFFF0000____:T:__._._____|r
")
endif
if((GetTriggerUnit()==udg_unit76))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80___y___:Q:____W:__._____E:__.______:R:__.____|r|cFFFF0000____:T:_____|r
")
endif
if((GetTriggerUnit()==udg_unit81))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80___z___:Q:____W:__.___E:_______:R:____|r|cFFFF0000____:T:_____|r
")
endif
if((GetTriggerUnit()==udg_unit46))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80___._a1____:Q:__.__W:__E:_______:R:__.__|r|cFFFF0000____:T:__.___|r
")
endif
if((GetTriggerUnit()==udg_unit57))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80__b1___:Q:___.___W:___.___E:_________:R:___.___|r|cFFFF0000____:T:__.____|r
")
endif
if((GetTriggerUnit()==udg_unit58))then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"
|cFF80FF80___c1__:Q:____W:____._E:______:R:____|r|cFFFF0000____:T:____.__|r
")
endif
call TriggerSleepAction(0.30)
set udg_units23[(1+GetPlayerId(GetTriggerPlayer()))]=null
endif
endfunction
function Trig_choose2_Conditions takes nothing returns boolean
return((IsPlayerInForce(GetTriggerPlayer(),udg_forces01[1])==false))
endfunction
function Trig_choose2_Func001001002002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_choose2_Func001001002002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(15))
endfunction
function Trig_choose2_Func001001002002 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)),(GetOwningPlayer(GetFilterUnit())==Player(15)))
endfunction
function Trig_choose2_Func001Func001Func002C takes nothing returns boolean
if((GetTriggerPlayer()==Player(0)))then
return true
endif
if((GetTriggerPlayer()==Player(1)))then
return true
endif
if((GetTriggerPlayer()==Player(2)))then
return true
endif
return false
endfunction
function Trig_choose2_Func001Func001C takes nothing returns boolean
return(Trig_choose2_Func001Func001Func002C())
endfunction
function Trig_choose2_Func001Func002Func002C takes nothing returns boolean
return((GetTriggerPlayer()==Player(4)))or((GetTriggerPlayer()==Player(5)))or((GetTriggerPlayer()==Player(6)))
endfunction
function Trig_choose2_Func001Func002C takes nothing returns boolean
return((((GetTriggerPlayer()==Player(4)))or((GetTriggerPlayer()==Player(5)))or((GetTriggerPlayer()==Player(6)))))
endfunction
function Trig_choose2_Func001Func003Func002C takes nothing returns boolean
return((GetTriggerPlayer()==Player(8)))or((GetTriggerPlayer()==Player(9)))or((GetTriggerPlayer()==Player(10)))
endfunction
function Trig_choose2_Func001Func003C takes nothing returns boolean
return((((GetTriggerPlayer()==Player(8)))or((GetTriggerPlayer()==Player(9)))or((GetTriggerPlayer()==Player(10)))))
endfunction
function Trig_choose2_Func001Func007C takes nothing returns boolean
return((GetRandomInt(1,2)==1))
endfunction
function Trig_choose2_Func001A takes nothing returns nothing
if((Trig_choose2_Func001Func001Func002C()))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,("|cff7ebff1========== For Konoha "+(GetUnitName(GetEnumUnit())+" For Konoha !==========|r")))
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect03))
endif
if((((GetTriggerPlayer()==Player(4)))or((GetTriggerPlayer()==Player(5)))or((GetTriggerPlayer()==Player(6)))))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,("|cff7ebff1========== For Evil "+(GetUnitName(GetEnumUnit())+" enter the battlefield!==========|r")))
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect04))
endif
if((((GetTriggerPlayer()==Player(8)))or((GetTriggerPlayer()==Player(9)))or((GetTriggerPlayer()==Player(10)))))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,("|cff7ebff1========== For Akatsuki "+(GetUnitName(GetEnumUnit())+" enter the battlefield!==========|r")))
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect05))
endif
call SetUnitOwner(GetEnumUnit(),GetTriggerPlayer(),true)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetUnitLoc(GetEnumUnit()),0.00)
call UnitAddItemByIdSwapped('I02F',GetEnumUnit())
if((GetRandomInt(1,2)==1))then
call UnitAddItemByIdSwapped('I00R',GetEnumUnit())
else
call UnitAddItemByIdSwapped('pmna',GetEnumUnit())
endif
call SetPlayerName(GetTriggerPlayer(),((udg_strings02[(1+GetPlayerId(GetTriggerPlayer()))]+(GetPlayerName(GetTriggerPlayer())+"|r"))+("["+(GetUnitName(GetEnumUnit())+"]"))))
call MultiboardSetItemIconBJ(udg_multiboard01,1,((1+GetPlayerId(GetTriggerPlayer()))+3),udg_strings01[GetUnitPointValue(GetEnumUnit())])
call MultiboardSetItemValueBJ(udg_multiboard01,1,((1+GetPlayerId(GetTriggerPlayer()))+3),GetPlayerName(GetOwningPlayer(GetEnumUnit())))
call ForceAddPlayer(udg_forces01[1],GetTriggerPlayer())
set udg_units33[(1+GetPlayerId(GetTriggerPlayer()))]=GetEnumUnit()
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(GetTriggerPlayer())+"___“____”___bla___,_______"))
endfunction
function Trig_choose2_Actions takes nothing returns nothing
call ForGroupBJ(GetRandomSubGroup(1,GetUnitsInRectMatching(udg_rect23,Condition(function Trig_choose2_Func001001002002))),function Trig_choose2_Func001A)
endfunction
function Trig_D_Conditions takes nothing returns boolean
return((udg_booleans01[2]))
endfunction
function Trig_D_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DialogSetMessage(udg_dialog02,"|cFF00FF48______|r")
set udg_buttons01[3]=DialogAddButtonBJ(udg_dialog02,"40__")
set udg_buttons01[4]=DialogAddButtonBJ(udg_dialog02,"60__")
call DialogDisplayBJ(true,udg_dialog02,Player(0))
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(("_____ "+GetPlayerName(Player(0)))+" ________"))
endfunction
function Trig_J_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DialogSetMessage(udg_dialog05,"|cFF00FF48Hero select mode|r")
set udg_buttons01[7]=DialogAddButtonBJ(udg_dialog05,"Modo De Pickeo")
set udg_buttons01[8]=DialogAddButtonBJ(udg_dialog05,"Modo De Heroe Aleatorio!")
call DialogDisplayBJ(true,udg_dialog05,Player(0))
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(("Now let Player "+GetPlayerName(Player(0)))+" Seleccionado Modo De Pick De Hero"))
endfunction
function Trig_B_Func001Func001C takes nothing returns boolean
return((udg_buttons01[2]==GetClickedButton()))
endfunction
function Trig_B_Func001C takes nothing returns boolean
return((udg_buttons01[1]==GetClickedButton()))
endfunction
function Trig_B_Actions takes nothing returns nothing
if((udg_buttons01[1]==GetClickedButton()))then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(0))+" ___ a______,5_____________"))
call EnableTrigger(udg_trigger41)
call TriggerSleepAction(1.00)
set udg_booleans01[1]=true
else
if((udg_buttons01[2]==GetClickedButton()))then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(0))+" ___b ______,5_____________"))
call EnableTrigger(udg_trigger37)
call TriggerSleepAction(1.00)
set udg_booleans01[2]=true
endif
endif
endfunction
function Trig_K_Func001C takes nothing returns boolean
return((udg_buttons01[7]==GetClickedButton()))or((udg_buttons01[8]==GetClickedButton()))
endfunction
function Trig_K_Conditions takes nothing returns boolean
return((((udg_buttons01[7]==GetClickedButton()))or((udg_buttons01[8]==GetClickedButton()))))
endfunction
function Trig_K_Func002Func003001001001 takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())==MAP_CONTROL_USER)
endfunction
function Trig_K_Func002Func003001001002 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_K_Func002Func003001001 takes nothing returns boolean
return GetBooleanAnd((GetPlayerController(GetFilterPlayer())==MAP_CONTROL_USER),(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING))
endfunction
function Trig_K_Func002Func003Func001001002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(15))
endfunction
function Trig_K_Func002Func003Func001Func001Func002C takes nothing returns boolean
return((GetEnumPlayer()==Player(0)))or((GetEnumPlayer()==Player(1)))or((GetEnumPlayer()==Player(2)))
endfunction
function Trig_K_Func002Func003Func001Func001C takes nothing returns boolean
return((((GetEnumPlayer()==Player(0)))or((GetEnumPlayer()==Player(1)))or((GetEnumPlayer()==Player(2)))))
endfunction
function Trig_K_Func002Func003Func001Func002Func002C takes nothing returns boolean
return((GetEnumPlayer()==Player(4)))or((GetEnumPlayer()==Player(5)))or((GetEnumPlayer()==Player(6)))
endfunction
function Trig_K_Func002Func003Func001Func002C takes nothing returns boolean
return((((GetEnumPlayer()==Player(4)))or((GetEnumPlayer()==Player(5)))or((GetEnumPlayer()==Player(6)))))
endfunction
function Trig_K_Func002Func003Func001Func003Func002C takes nothing returns boolean
return((GetEnumPlayer()==Player(8)))or((GetEnumPlayer()==Player(9)))or((GetEnumPlayer()==Player(10)))
endfunction
function Trig_K_Func002Func003Func001Func003C takes nothing returns boolean
return((((GetEnumPlayer()==Player(8)))or((GetEnumPlayer()==Player(9)))or((GetEnumPlayer()==Player(10)))))
endfunction
function Trig_K_Func002Func003Func001Func007C takes nothing returns boolean
return((GetRandomInt(1,2)==1))
endfunction
function Trig_K_Func002Func003Func001A takes nothing returns nothing
if((((GetEnumPlayer()==Player(0)))or((GetEnumPlayer()==Player(1)))or((GetEnumPlayer()==Player(2)))))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,("|cff7ebff1==========___-"+(GetUnitName(GetEnumUnit())+"__!==========|r")))
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect03))
endif
if((((GetEnumPlayer()==Player(4)))or((GetEnumPlayer()==Player(5)))or((GetEnumPlayer()==Player(6)))))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,("|cff7ebff1==========___-"+(GetUnitName(GetEnumUnit())+"__!==========|r")))
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect04))
endif
if((((GetEnumPlayer()==Player(8)))or((GetEnumPlayer()==Player(9)))or((GetEnumPlayer()==Player(10)))))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,("|cff7ebff1==========___-"+(GetUnitName(GetEnumUnit())+"__!==========|r")))
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect08))
endif
call SetUnitOwner(GetEnumUnit(),GetEnumPlayer(),true)
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetUnitLoc(GetEnumUnit()),0.00)
call GroupAddUnit(udg_groups01[489],GetEnumUnit())
if((GetRandomInt(1,2)==1))then
call UnitAddItemByIdSwapped('I02F',GetEnumUnit())
else
call UnitAddItemByIdSwapped('I02F',GetEnumUnit())
endif
call SetPlayerName(GetTriggerPlayer(),((udg_strings02[(1+GetPlayerId(GetTriggerPlayer()))]+(GetPlayerName(GetTriggerPlayer())+"|r"))+("["+(GetUnitName(GetEnumUnit())+"]"))))
call MultiboardSetItemIconBJ(udg_multiboard01,1,((1+GetPlayerId(GetTriggerPlayer()))+3),udg_strings01[GetUnitPointValue(GetEnumUnit())])
call MultiboardSetItemValueBJ(udg_multiboard01,1,((1+GetPlayerId(GetTriggerPlayer()))+3),GetPlayerName(GetOwningPlayer(GetEnumUnit())))
call ForceAddPlayer(udg_forces01[1],GetEnumPlayer())
set udg_units33[(1+GetPlayerId(GetEnumPlayer()))]=GetEnumUnit()
endfunction
function Trig_K_Func002Func003A takes nothing returns nothing
call ForGroupBJ(GetRandomSubGroup(1,GetUnitsInRectMatching(udg_rect23,Condition(function Trig_K_Func002Func003Func001001002002))),function Trig_K_Func002Func003Func001A)
endfunction
function Trig_K_Func002C takes nothing returns boolean
return((udg_buttons01[7]==GetClickedButton()))
endfunction
function Trig_K_Actions takes nothing returns nothing
if((udg_buttons01[7]==GetClickedButton()))then
call EnableTrigger(udg_trigger17)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(0))+"___________,5____________,____“____”________"))
call TriggerSleepAction(5.00)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF0000____________!
__|cFFFF0000“____”|r________!_____!
")
call EnableTrigger(udg_trigger35)
call EnableTrigger(udg_trigger36)
else
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(0))+"___________,5________________"))
call TriggerSleepAction(5.00)
call ForForce(GetPlayersMatching(Condition(function Trig_K_Func002Func003001001)),function Trig_K_Func002Func003A)
endif
endfunction
function Trig_renwuxuanze_Conditions takes nothing returns boolean
return((udg_booleans01[1]))
endfunction
function Trig_renwuxuanze_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DialogSetMessage(udg_dialog04,"|cFF00FF48Modo De Misiones|r")
set udg_buttons01[5]=DialogAddButtonBJ(udg_dialog04,"Cerrar Misiones")
set udg_buttons01[6]=DialogAddButtonBJ(udg_dialog04,"Abrir Misiones")
call DialogDisplayBJ(true,udg_dialog04,Player(0))
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(("Now let "+GetPlayerName(Player(0)))+" Modo De Misiones!"))
endfunction
function Trig_E_Func001C takes nothing returns boolean
return((udg_buttons01[3]==GetClickedButton()))or((udg_buttons01[4]==GetClickedButton()))
endfunction
function Trig_E_Conditions takes nothing returns boolean
return((((udg_buttons01[3]==GetClickedButton()))or((udg_buttons01[4]==GetClickedButton()))))
endfunction
function Trig_E_Func002C takes nothing returns boolean
return((udg_buttons01[3]==GetClickedButton()))
endfunction
function Trig_E_Actions takes nothing returns nothing
if((udg_buttons01[3]==GetClickedButton()))then
call EnableTrigger(udg_trigger44)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(0))+" ___40________,___40___.__________!"))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerHandicapXP(Player(-1+(bj_forLoopAIndex)),1.50)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"_________1.5_____")
call StartTimerBJ(udg_timer02,false,2400.00)
call CreateTimerDialogBJ(udg_timer02,"40_____")
else
call EnableTrigger(udg_trigger44)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(0))+" ___60________,___60___.__________!"))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerHandicapXP(Player(-1+(bj_forLoopAIndex)),1.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"______________")
call StartTimerBJ(udg_timer02,false,3600.00)
call CreateTimerDialogBJ(udg_timer02,"60_____")
endif
call EnableTrigger(udg_trigger41)
call TriggerSleepAction(1.00)
set udg_booleans01[1]=true
endfunction
function Trig_F_Func001C takes nothing returns boolean
return((udg_buttons01[5]==GetClickedButton()))or((udg_buttons01[6]==GetClickedButton()))
endfunction
function Trig_F_Conditions takes nothing returns boolean
return((((udg_buttons01[5]==GetClickedButton()))or((udg_buttons01[6]==GetClickedButton()))))
endfunction
function Trig_F_Func002C takes nothing returns boolean
return((udg_buttons01[5]==GetClickedButton()))
endfunction
function Trig_F_Actions takes nothing returns nothing
if((udg_buttons01[5]==GetClickedButton()))then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(0))+" Seleccionado: Misiones Cerradas"))
call DisableTrigger(udg_trigger53)
call DisableTrigger(udg_trigger56)
call DisableTrigger(udg_trigger56)
call DisableTrigger(udg_trigger47)
call DisableTrigger(udg_trigger58)
call SetUnitInvulnerable(udg_unit36,true)
call SetUnitInvulnerable(udg_unit61,true)
call SetUnitInvulnerable(udg_unit59,true)
call SetUnitInvulnerable(udg_unit34,true)
call SetUnitInvulnerable(udg_unit56,true)
call SetUnitInvulnerable(udg_unit48,true)
call SetUnitInvulnerable(udg_unit41,true)
call SetUnitInvulnerable(udg_unit39,true)
else
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(0))+" Seleccionado: Misiones Abiertas"))
endif
call TriggerSleepAction(1.00)
call EnableTrigger(udg_trigger38)
endfunction
function Trig_H_Func001Func007C takes nothing returns boolean
return(((udg_integers11[1]+(udg_integers11[2]+udg_integers11[3]))>=(udg_integers11[5]+(udg_integers11[6]+udg_integers11[7]))))and(((udg_integers11[1]+(udg_integers11[2]+udg_integers11[3]))>=(udg_integers11[9]+(udg_integers11[10]+udg_integers11[11]))))
endfunction
function Trig_H_Func001C takes nothing returns boolean
return(((((udg_integers11[1]+(udg_integers11[2]+udg_integers11[3]))>=(udg_integers11[5]+(udg_integers11[6]+udg_integers11[7]))))and(((udg_integers11[1]+(udg_integers11[2]+udg_integers11[3]))>=(udg_integers11[9]+(udg_integers11[10]+udg_integers11[11]))))))
endfunction
function Trig_H_Func002Func001C takes nothing returns boolean
return(((udg_integers11[5]+(udg_integers11[6]+udg_integers11[7]))>=(udg_integers11[1]+(udg_integers11[2]+udg_integers11[3]))))and(((udg_integers11[5]+(udg_integers11[6]+udg_integers11[7]))>=(udg_integers11[9]+(udg_integers11[10]+udg_integers11[11]))))
endfunction
function Trig_H_Func002C takes nothing returns boolean
return(((((udg_integers11[5]+(udg_integers11[6]+udg_integers11[7]))>=(udg_integers11[1]+(udg_integers11[2]+udg_integers11[3]))))and(((udg_integers11[5]+(udg_integers11[6]+udg_integers11[7]))>=(udg_integers11[9]+(udg_integers11[10]+udg_integers11[11]))))))
endfunction
function Trig_H_Func003Func001C takes nothing returns boolean
return(((udg_integers11[9]+(udg_integers11[10]+udg_integers11[11]))>=(udg_integers11[1]+(udg_integers11[2]+udg_integers11[3]))))and(((udg_integers11[9]+(udg_integers11[10]+udg_integers11[11]))>=(udg_integers11[5]+(udg_integers11[6]+udg_integers11[7]))))
endfunction
function Trig_H_Func003C takes nothing returns boolean
return(((((udg_integers11[9]+(udg_integers11[10]+udg_integers11[11]))>=(udg_integers11[1]+(udg_integers11[2]+udg_integers11[3]))))and(((udg_integers11[9]+(udg_integers11[10]+udg_integers11[11]))>=(udg_integers11[5]+(udg_integers11[6]+udg_integers11[7]))))))
endfunction
function Trig_H_Actions takes nothing returns nothing
if(((((udg_integers11[1]+(udg_integers11[2]+udg_integers11[3]))>=(udg_integers11[5]+(udg_integers11[6]+udg_integers11[7]))))and(((udg_integers11[1]+(udg_integers11[2]+udg_integers11[3]))>=(udg_integers11[9]+(udg_integers11[10]+udg_integers11[11]))))))then
call CustomVictoryBJ(Player(0),true,true)
call CustomVictoryBJ(Player(1),true,true)
call CustomVictoryBJ(Player(2),true,true)
else
call CustomDefeatBJ(Player(0),"owned!")
call CustomDefeatBJ(Player(1),"owned!")
call CustomDefeatBJ(Player(2),"owned!")
endif
if(((((udg_integers11[5]+(udg_integers11[6]+udg_integers11[7]))>=(udg_integers11[1]+(udg_integers11[2]+udg_integers11[3]))))and(((udg_integers11[5]+(udg_integers11[6]+udg_integers11[7]))>=(udg_integers11[9]+(udg_integers11[10]+udg_integers11[11]))))))then
call CustomVictoryBJ(Player(4),true,true)
call CustomVictoryBJ(Player(5),true,true)
call CustomVictoryBJ(Player(6),true,true)
else
call CustomDefeatBJ(Player(4),"owned!")
call CustomDefeatBJ(Player(5),"owned!")
call CustomDefeatBJ(Player(6),"owned!")
endif
if(((((udg_integers11[9]+(udg_integers11[10]+udg_integers11[11]))>=(udg_integers11[1]+(udg_integers11[2]+udg_integers11[3]))))and(((udg_integers11[9]+(udg_integers11[10]+udg_integers11[11]))>=(udg_integers11[5]+(udg_integers11[6]+udg_integers11[7]))))))then
call CustomVictoryBJ(Player(8),true,true)
call CustomVictoryBJ(Player(9),true,true)
call CustomVictoryBJ(Player(10),true,true)
else
call CustomDefeatBJ(Player(8),"owned!")
call CustomDefeatBJ(Player(9),"owned!")
call CustomDefeatBJ(Player(10),"owned!")
endif
endfunction
function Trig_fhshumu_Actions takes nothing returns nothing
local destructable KPHW
set KPHW=GetDyingDestructable()
call TriggerSleepAction(10.00)
set KPHW=null
call DestructableRestoreLife(KPHW,GetDestructableMaxLife(bj_lastCreatedDestructable),true)
endfunction
function Trig_qkdtc_Conditions takes nothing returns boolean
return((GetTriggerUnit()!=udg_unit34))and((GetTriggerUnit()!=udg_unit56))and((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))and((GetPlayerController(GetOwningPlayer(GetTriggerUnit()))!=MAP_CONTROL_COMPUTER))and((IsUnitPaused(GetTriggerUnit())!=true))
endfunction
function Trig_qkdtc_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(udg_rect20))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),0)
endfunction
function Trig_qkcd_Conditions takes nothing returns boolean
return((GetItemTypeId(GetSoldItem())=='I00M'))
endfunction
function Trig_qkcd_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetBuyingUnit(),GetRectCenter(udg_rect19))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetBuyingUnit()),GetRectCenter(udg_rect19),0)
endfunction
function Trig_JJWAL__JS_Conditions takes nothing returns boolean
return((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))and((IsUnitPaused(GetTriggerUnit())==false))and((GetOwningPlayer(GetTriggerUnit())!=Player(15)))and((GetOwningPlayer(GetTriggerUnit())!=Player(12)))
endfunction
function Trig_JJWAL__JS_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(udg_rect20))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),0)
set udg_boolean04=false
endfunction
function Trig_JJWAL2_Conditions takes nothing returns boolean
return((GetTriggerUnit()==udg_units25[10]))
endfunction
function Trig_JJWAL2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,GetUnitTypeId(udg_units25[9]),Player(12),GetUnitLoc(GetTriggerUnit()),0.00)
call ModifyHeroStat(0,bj_lastCreatedUnit,2,(GetHeroStatBJ(0,GetKillingUnit(),false)*2))
call ModifyHeroStat(1,bj_lastCreatedUnit,2,(GetHeroStatBJ(1,GetKillingUnit(),false)*2))
call ModifyHeroStat(2,bj_lastCreatedUnit,2,(GetHeroStatBJ(2,GetKillingUnit(),false)*2))
set udg_units25[11]=bj_lastCreatedUnit
endfunction
function Trig_JJWAL2_SB_Conditions takes nothing returns boolean
return((GetTriggerUnit()==udg_units25[9]))
endfunction
function Trig_JJWAL2_SB_Actions takes nothing returns nothing
set udg_boolean04=false
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"____!")
endfunction
function Trig_JJWAL2_2_Conditions takes nothing returns boolean
return((GetTriggerUnit()==udg_units25[11]))
endfunction
function Trig_JJWAL2_2_Actions takes nothing returns nothing
call RemoveDestructable(udg_destructables05[1])
endfunction
function Trig_JJWAL3_Func001C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit61))and((IsUnitAliveBJ(udg_unit36)==false))
endfunction
function Trig_JJWAL3_Func002C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit36))and((IsUnitAliveBJ(udg_unit61)==false))
endfunction
function Trig_JJWAL3_Actions takes nothing returns nothing
if((((GetTriggerUnit()==udg_unit61))and((IsUnitAliveBJ(udg_unit36)==false))))then
call ResetUnitAnimation(udg_unit60)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetKillingUnit()),0,0,5.00,"___:___,______________!")
call AdjustPlayerStateBJ(6000,GetOwningPlayer(GetKillingUnit()),PLAYER_STATE_RESOURCE_GOLD)
call ModifyHeroStat(0,GetKillingUnit(),0,10)
call ModifyHeroStat(1,GetKillingUnit(),0,10)
call ModifyHeroStat(2,GetKillingUnit(),0,10)
endif
if((((GetTriggerUnit()==udg_unit36))and((IsUnitAliveBJ(udg_unit61)==false))))then
call ResetUnitAnimation(udg_unit60)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetKillingUnit()),0,0,5.00,"___:___,______________!")
call AdjustPlayerStateBJ(6000,GetOwningPlayer(GetKillingUnit()),PLAYER_STATE_RESOURCE_GOLD)
call ModifyHeroStat(0,GetKillingUnit(),0,10)
call ModifyHeroStat(1,GetKillingUnit(),0,10)
call ModifyHeroStat(2,GetKillingUnit(),0,10)
endif
endfunction
function Trig_JJWAL1_Conditions takes nothing returns boolean
return((GetItemTypeId(GetSoldItem())=='I00Q'))
endfunction
function Trig_JJWAL1_Func001Func009C takes nothing returns boolean
return((IsDestructableAliveBJ(udg_destructable03)))
endfunction
function Trig_JJWAL1_Func001C takes nothing returns boolean
return((udg_boolean04==false))
endfunction
function Trig_JJWAL1_Actions takes nothing returns nothing
if((udg_boolean04==false))then
set udg_boolean04=true
call SetUnitPositionLoc(GetBuyingUnit(),GetRectCenter(udg_rect30))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetBuyingUnit()),GetRectCenter(udg_rect30),0)
call CreateNUnitsAtLoc(1,'emtg',Player(12),GetRectCenter(udg_rect32),bj_UNIT_FACING)
set udg_units25[9]=GetBuyingUnit()
set udg_units25[10]=bj_lastCreatedUnit
if((IsDestructableAliveBJ(udg_destructable03)))then
set udg_destructables05[1]=udg_destructable03
call SetDestructableInvulnerable(udg_destructables05[1],true)
else
set udg_destructables05[1]=CreateDestructableLoc('B003',GetRectCenter(udg_rect33),GetRandomReal(0,360),4.00,0)
call SetDestructableInvulnerable(udg_destructables05[1],true)
endif
else
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"_____,___!")
call AdjustPlayerStateBJ(10000,GetOwningPlayer(GetBuyingUnit()),PLAYER_STATE_RESOURCE_GOLD)
endif
endfunction
function Trig_JS_Conditions takes nothing returns boolean
return((GetTriggerUnit()==udg_unit59))
endfunction
function Trig_JS_Actions takes nothing returns nothing
set udg_units25[1]=null
call TriggerSleepAction(2)
call SetDestructableInvulnerable(udg_destructable01,false)
call SetDestructableInvulnerable(udg_destructable02,false)
endfunction
function Trig_JS_2_Conditions takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00E')==false))and((GetTriggerUnit()==udg_units25[1]))
endfunction
function Trig_JS_2_Actions takes nothing returns nothing
call SetUnitPositionLoc(udg_units25[1],GetRectCenter(udg_rect20))
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"____!")
set udg_boolean03=false
set udg_units25[1]=null
endfunction
function Trig_JS_3_Conditions takes nothing returns boolean
return((GetItemTypeId(GetSoldItem())=='I00N'))
endfunction
function Trig_JS_3_Func001C takes nothing returns boolean
return((udg_boolean03==false))
endfunction
function Trig_JS_3_Actions takes nothing returns nothing
if((udg_boolean03==false))then
set udg_boolean03=true
call SetUnitPositionLoc(GetBuyingUnit(),GetRectCenter(udg_rect24))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetBuyingUnit()),GetRectCenter(udg_rect24),0)
call ReviveHeroLoc(udg_unit59,GetRectCenter(udg_rect25),false)
set udg_units25[1]=GetBuyingUnit()
call SetDestructableLifePercentBJ(udg_destructable02,100)
call SetDestructableLifePercentBJ(udg_destructable01,100)
call SetDestructableInvulnerable(udg_destructable01,true)
call SetDestructableInvulnerable(udg_destructable02,true)
else
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"_____,___!")
call AdjustPlayerStateBJ(5000,GetOwningPlayer(GetBuyingUnit()),PLAYER_STATE_RESOURCE_GOLD)
endif
endfunction
function Trig_JS_4_Conditions takes nothing returns boolean
return((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))and((IsUnitPaused(GetTriggerUnit())==false))and((GetPlayerController(GetOwningPlayer(GetTriggerUnit()))!=MAP_CONTROL_COMPUTER))and((IsUnitPaused(GetTriggerUnit())==false))
endfunction
function Trig_JS_4_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(udg_rect20))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),0)
set udg_boolean03=false
endfunction
function Trig_qkcd_2_Conditions takes nothing returns boolean
return((GetItemTypeId(GetSoldItem())=='I02J'))
endfunction
function Trig_qkcd_2_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetBuyingUnit(),GetRectCenter(udg_rect40))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetBuyingUnit()),GetRectCenter(udg_rect40),0)
endfunction
function Trig_qkdtc_2_2_Conditions takes nothing returns boolean
return((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))and((IsUnitPaused(GetTriggerUnit())==false))and((GetPlayerController(GetOwningPlayer(GetTriggerUnit()))!=MAP_CONTROL_COMPUTER))and((IsUnitPaused(GetTriggerUnit())!=true))
endfunction
function Trig_qkdtc_2_2_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(udg_rect20))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),0)
endfunction
function Trig_DC_q_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A07L'))
endfunction
function Trig_DC_q_Actions takes nothing returns nothing
set udg_units37[0]=GetTriggerUnit()
call TriggerSleepAction(0.10)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitAnimation(GetTriggerUnit(),"Spell Channel")
call SetUnitPathing(GetTriggerUnit(),false)
call EnableTrigger(udg_trigger61)
call TriggerSleepAction(1.00)
call DisableTrigger(udg_trigger61)
call SetUnitPathing(GetTriggerUnit(),true)
call PauseUnit(GetTriggerUnit(),false)
call GroupClear(udg_groups06[34])
call ResetUnitAnimation(GetTriggerUnit())
endfunction
function Trig_DC_q2_Func002C takes nothing returns boolean
return((IsTerrainPathableBJ(udg_locations07[197],PATHING_TYPE_WALKABILITY)))
endfunction
function Trig_DC_q2_Func008001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_DC_q2_Func008001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units37[0])))
endfunction
function Trig_DC_q2_Func008001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units37[0]))))
endfunction
function Trig_DC_q2_Func008Func008Func002C takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_units37[0],'B00E')))then
return false
endif
return true
endfunction
function Trig_DC_q2_Func008Func008C takes nothing returns boolean
return((IsUnitInGroup(GetEnumUnit(),udg_groups06[34])))
endfunction
function Trig_DC_q2_Func008A takes nothing returns nothing
call IssueTargetOrder(GetEnumUnit(),"attack",GetEnumUnit())
set udg_locations07[198]=PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),45.00,AngleBetweenPoints(GetUnitLoc(udg_units37[0]),PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),200.00,GetUnitFacing(udg_units37[0]))))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations07[198]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations07[198]))
call AddSpecialEffectLocBJ(udg_locations07[198],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations07[198])
if((IsUnitInGroup(GetEnumUnit(),udg_groups06[34])))then
else
call UnitDamageTarget(udg_units37[0],GetEnumUnit(),(I2R(GetUnitAbilityLevel(udg_units37[0],'A07L'))*I2R(GetHeroStatBJ(0,udg_units37[0],true))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
if(Trig_DC_q2_Func008Func008Func002C())then
call UnitDamageTargetBJ(udg_units37[0],GetEnumUnit(),((13.00*I2R(GetUnitAbilityLevel(udg_units37[0],'A07X')))+((0.00+(0.40*I2R(GetUnitAbilityLevel(udg_units37[0],'A07X'))))*I2R(GetHeroStr(udg_units37[0],true)))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endif
call GroupAddUnit(udg_groups06[34],GetEnumUnit())
endif
endfunction
function Trig_DC_q2_Actions takes nothing returns nothing
set udg_locations07[197]=PolarProjectionBJ(GetUnitLoc(udg_units37[0]),30.00,GetUnitFacing(udg_units37[0]))
if((IsTerrainPathableBJ(udg_locations07[197],PATHING_TYPE_WALKABILITY)))then
else
call SetUnitPositionLoc(udg_units37[0],udg_locations07[197])
endif
call AddSpecialEffectLocBJ(udg_locations07[197],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations07[197],"Abilities\\Weapons\\CannonTowerMissile\\CannonTowerMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching((200.00+(1.00*I2R(udg_integers02[3307]))),udg_locations07[197],Condition(function Trig_DC_q2_Func008001003)),function Trig_DC_q2_Func008A)
call RemoveLocation(udg_locations07[197])
endfunction
function Trig_DC_w_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A07X'))
endfunction
function Trig_DC_w_Actions takes nothing returns nothing
set udg_units37[0]=GetTriggerUnit()
set udg_integers02[3307]=1
call EnableTrigger(udg_trigger63)
endfunction
function Trig_DC_w2_Func001C takes nothing returns boolean
return((udg_integers02[3307]<=100))
endfunction
function Trig_DC_w2_Func002C takes nothing returns boolean
return((UnitHasBuffBJ(udg_units37[0],'B00E')))
endfunction
function Trig_DC_w2_Actions takes nothing returns nothing
if((udg_integers02[3307]<=100))then
set udg_integers02[3307]=(udg_integers02[3307]+20)
call SetUnitScale(udg_units37[0],(1+(0.01*I2R(udg_integers02[3307]))),(1+(0.01*I2R(udg_integers02[3307]))),(1+(0.01*I2R(udg_integers02[3307]))))
endif
if((UnitHasBuffBJ(udg_units37[0],'B00E')))then
else
call DisableTrigger(GetTriggeringTrigger())
set udg_integers02[3307]=0
call SetUnitScale(udg_units37[0],(1+(0.01*I2R(udg_integers02[3307]))),(1+(0.01*I2R(udg_integers02[3307]))),(1+(0.01*I2R(udg_integers02[3307]))))
set udg_locations07[70]=GetUnitLoc(udg_units37[0])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations07[71]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations07[70],250.00,250.00))
call CreateNUnitsAtLoc(1,'zhyd',GetOwningPlayer(udg_units37[0]),udg_locations07[71],GetRandomReal(0,360))
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(50.00,200.00),100.00)
set udg_locations07[72]=PolarProjectionBJ(udg_locations07[71],400.00,GetUnitFacing(bj_lastCreatedUnit))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations07[72])
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations07[71])
call RemoveLocation(udg_locations07[72])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
endfunction
function Trig_DC_e_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A07Y'))
endfunction
function Trig_DC_e_Actions takes nothing returns nothing
set udg_units37[0]=GetTriggerUnit()
set udg_units37[1]=GetSpellTargetUnit()
set udg_locations07[3307]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'uarb',GetOwningPlayer(GetTriggerUnit()),udg_locations07[3307],GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,(110.00+(6.00*I2R(bj_forLoopAIndex))))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.06)
call PauseUnit(udg_units37[1],true)
call SetUnitPathing(udg_units37[1],false)
call EnableTrigger(udg_trigger65)
set udg_integers01[5503]=1
set udg_reals01[3307]=GetUnitFacing(GetTriggerUnit())
call RemoveLocation(udg_locations07[3307])
endfunction
function Trig_DC_e2_Func002Func001C takes nothing returns boolean
return((IsTerrainPathableBJ(udg_locations07[3307],PATHING_TYPE_WALKABILITY)))or((udg_integers01[5503]==20))
endfunction
function Trig_DC_e2_Func002Func012001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_DC_e2_Func002Func012001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units37[0])))
endfunction
function Trig_DC_e2_Func002Func012001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units37[0]))))
endfunction
function Trig_DC_e2_Func002Func012Func001Func002C takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_units37[0],'B00E')))then
return false
endif
return true
endfunction
function Trig_DC_e2_Func002Func012Func001C takes nothing returns boolean
return((IsUnitInGroup(GetEnumUnit(),udg_groups06[35])))
endfunction
function Trig_DC_e2_Func002Func012A takes nothing returns nothing
if((IsUnitInGroup(GetEnumUnit(),udg_groups06[35])))then
else
call UnitDamageTargetBJ(udg_units37[0],GetEnumUnit(),(130.00*I2R(GetUnitAbilityLevelSwapped('A07Y',udg_units37[0]))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
if(Trig_DC_e2_Func002Func012Func001Func002C())then
call UnitDamageTargetBJ(udg_units37[0],GetEnumUnit(),((10.00*I2R(GetUnitAbilityLevel(udg_units37[0],'A07X')))+((0.00+(0.40*I2R(GetUnitAbilityLevel(udg_units37[0],'A07X'))))*I2R(GetHeroStr(udg_units37[0],true)))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endif
call GroupAddUnit(udg_groups06[35],GetEnumUnit())
endif
endfunction
function Trig_DC_e2_Func002C takes nothing returns boolean
return((((IsTerrainPathableBJ(udg_locations07[3307],PATHING_TYPE_WALKABILITY)))or((udg_integers01[5503]==20))))
endfunction
function Trig_DC_e2_Actions takes nothing returns nothing
set udg_locations07[3307]=PolarProjectionBJ(GetUnitLoc(udg_units37[1]),42.00,udg_reals01[3307])
if((((IsTerrainPathableBJ(udg_locations07[3307],PATHING_TYPE_WALKABILITY)))or((udg_integers01[5503]==20))))then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPathing(udg_units37[1],true)
call PauseUnit(udg_units37[1],false)
call GroupClear(udg_groups06[35])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(udg_locations07[3307],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_locations07[3308]=PolarProjectionBJ(udg_locations07[3307],GetRandomReal(0,250.00),GetRandomReal(0,360))
call AddSpecialEffectLocBJ(udg_locations07[3308],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
set udg_integers01[5503]=(udg_integers01[5503]+1)
call SetUnitPositionLoc(udg_units37[1],udg_locations07[3307])
call AddSpecialEffectLocBJ(udg_locations07[3307],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(120.00,udg_locations07[3307],Condition(function Trig_DC_e2_Func002Func012001003)),function Trig_DC_e2_Func002Func012A)
endif
call RemoveLocation(udg_locations07[3307])
endfunction
function Trig_DC_r_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A084'))
endfunction
function Trig_DC_r_Func008Func002Func005001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_DC_r_Func008Func002Func005Func001C takes nothing returns boolean
if(not(IsUnitInGroup(GetEnumUnit(),udg_groups06[37])==false))then
return false
endif
return true
endfunction
function Trig_DC_r_Func008Func002Func005A takes nothing returns nothing
if(Trig_DC_r_Func008Func002Func005Func001C())then
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),((500.00*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A084')))+(4.00*I2R(GetHeroStr(GetTriggerUnit(),true)))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call GroupAddUnit(udg_groups06[37],GetEnumUnit())
endif
endfunction
function Trig_DC_r_Actions takes nothing returns nothing
set udg_units14[52]=GetTriggerUnit()
set udg_locations07[3056]=GetUnitLoc(GetTriggerUnit())
call TriggerSleepAction(0.05)
call PauseUnit(udg_units14[52],true)
call SetUnitAnimation(udg_units14[52],"Spell Slam")
call SetUnitScale(GetTriggerUnit(),1,1,1)
call TriggerSleepAction(1.50)
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=6
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set udg_locations07[3057]=PolarProjectionBJ(udg_locations07[3056],(-350.00+(100.00*I2R(bj_forLoopBIndex))),GetUnitFacing(GetTriggerUnit()))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations07[3058]=PolarProjectionBJ(udg_locations07[3057],(-320.00+(80.00*I2R(bj_forLoopAIndex))),(GetUnitFacing(GetTriggerUnit())-90.00))
call AddSpecialEffectLocBJ(udg_locations07[3058],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,udg_locations07[3058],Condition(function Trig_DC_r_Func008Func002Func005001003)),function Trig_DC_r_Func008Func002Func005A)
call RemoveLocation(udg_locations07[3058])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations07[3057])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call RemoveLocation(udg_locations07[3058])
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()),17.00)
call TriggerSleepAction(0.50)
call PauseUnit(GetTriggerUnit(),false)
call SetUnitScale(GetTriggerUnit(),(1+(0.01*I2R(udg_integers02[3307]))),(1+(0.01*I2R(udg_integers02[3307]))),(1+(0.01*I2R(udg_integers02[3307]))))
call CameraClearNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()))
call GroupClear(udg_groups06[37])
endfunction
function Trig_DC_t_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A085'))
endfunction
function Trig_DC_t_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000__:__!__!_____!|r")
set udg_integers01[3337]=0
set udg_units37[0]=GetTriggerUnit()
set udg_locations03[3337]=GetSpellTargetLoc()
call TriggerSleepAction(0.10)
call SetUnitInvulnerable(GetTriggerUnit(),true)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitScale(udg_units37[0],1,1,1)
call SetUnitAnimation(GetTriggerUnit(),"Spell Throw")
call SetUnitPositionLoc(GetTriggerUnit(),udg_locations03[3337])
call TriggerSleepAction(1.00)
call EnableTrigger(udg_trigger68)
call TriggerSleepAction(1.00)
call DisableTrigger(udg_trigger68)
call ResetUnitAnimation(GetTriggerUnit())
call PauseUnit(GetTriggerUnit(),false)
call SetUnitInvulnerable(GetTriggerUnit(),false)
call RemoveLocation(udg_locations03[3337])
call GroupClear(udg_groups06[38])
set udg_locations07[70]=GetUnitLoc(udg_units37[0])
call SetUnitScale(udg_units37[0],(1+(0.01*I2R(udg_integers02[3307]))),(1+(0.01*I2R(udg_integers02[3307]))),(1+(0.01*I2R(udg_integers02[3307]))))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations07[71]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations07[70],250.00,250.00))
call CreateNUnitsAtLoc(1,'zhyd',GetOwningPlayer(udg_units37[0]),udg_locations07[71],GetRandomReal(0,360))
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(50.00,200.00),100.00)
set udg_locations07[72]=PolarProjectionBJ(udg_locations07[71],400.00,GetUnitFacing(bj_lastCreatedUnit))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations07[72])
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations07[71])
call RemoveLocation(udg_locations07[72])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_DC_t2_Func006001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units37[0])))
endfunction
function Trig_DC_t2_Func006001003002 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Trig_DC_t2_Func006001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units37[0]))),(IsUnitDeadBJ(GetFilterUnit())==false))
endfunction
function Trig_DC_t2_Func006Func001Func003C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)))then
return false
endif
return true
endfunction
function Trig_DC_t2_Func006Func001C takes nothing returns boolean
return((IsUnitInGroup(GetEnumUnit(),udg_groups06[38])==false))
endfunction
function Trig_DC_t2_Func006A takes nothing returns nothing
if((IsUnitInGroup(GetEnumUnit(),udg_groups06[38])==false))then
if(Trig_DC_t2_Func006Func001Func003C())then
call UnitDamageTarget(udg_units37[0],GetEnumUnit(),(1000.00+(5.00*I2R(GetHeroStr(udg_units37[0],true)))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
call UnitDamageTarget(udg_units37[0],GetEnumUnit(),(2000.00+(10.00*I2R(GetHeroStr(udg_units37[0],true)))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
call GroupAddUnit(udg_groups06[38],GetEnumUnit())
endif
endfunction
function Trig_DC_t2_Actions takes nothing returns nothing
set udg_integers01[3337]=(udg_integers01[3337]+1)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=(udg_integers01[3337]/3)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[276]=PolarProjectionBJ(udg_locations03[3337],(10.00*I2R(udg_integers01[3337])),((1080.00/I2R(udg_integers01[3337]))*I2R(bj_forLoopAIndex)))
call AddSpecialEffectLocBJ(udg_locations03[276],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[276])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call AddSpecialEffectLocBJ(udg_locations03[3337],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,udg_locations03[3337],Condition(function Trig_DC_t2_Func006001003)),function Trig_DC_t2_Func006A)
endfunction
function Trig_HeroHyugaHinata0_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02P'))and((GetUnitTypeId(GetTriggerUnit())=='E000'))
endfunction
function Trig_HeroHyugaHinata0_Func022A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_HeroHyugaHinata0_Actions takes nothing returns nothing
set udg_units30[100]=GetTriggerUnit()
set udg_real09=0.00
call TriggerSleepAction(0.06)
set udg_locations03[0]=GetUnitLoc(GetTriggerUnit())
call PauseUnit(udg_units30[100],true)
call SetUnitTimeScale(udg_units30[100],10.00)
call SetUnitAnimationWithRarity(GetTriggerUnit(),"attack",RARITY_RARE)
call UnitAddAbility(udg_units30[100],'Amrf')
call SetUnitFlyHeight(udg_units30[100],200.00,70.00)
call UnitRemoveAbility(udg_units30[100],'Amrf')
call TriggerSleepAction(0.05)
call SetUnitTimeScale(udg_units30[100],0.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'ovlj',GetOwningPlayer(udg_units30[100]),udg_locations03[0],GetRandomReal(0,360))
call GroupAddUnit(udg_groups03[1],bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger70)
call TriggerSleepAction(3.00)
call DisableTrigger(udg_trigger70)
call GroupClear(udg_group01)
call SetUnitTimeScale(udg_units30[100],1.00)
call ResetUnitAnimation(udg_units30[100])
call SetUnitFlyHeight(udg_units30[100],0.00,6000.00)
call PauseUnit(udg_units30[100],false)
call ForGroupBJ(udg_groups03[1],function Trig_HeroHyugaHinata0_Func022A)
call GroupClear(udg_groups03[1])
call RemoveLocation(udg_locations03[0])
endfunction
function Trig_HeroHyugaHinata0Effect_Func003A takes nothing returns nothing
call SetUnitScalePercent(GetEnumUnit(),udg_real09,udg_real09,udg_real08)
endfunction
function Trig_HeroHyugaHinata0Effect_Func005001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_HeroHyugaHinata0Effect_Func005001003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_HeroHyugaHinata0Effect_Func005001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))
endfunction
function Trig_HeroHyugaHinata0Effect_Func005001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units30[100])))
endfunction
function Trig_HeroHyugaHinata0Effect_Func005001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units30[100]))))
endfunction
function Trig_HeroHyugaHinata0Effect_Func005Func010C takes nothing returns boolean
if(not(IsUnitInGroup(GetEnumUnit(),udg_group01)))then
return false
endif
return true
endfunction
function Trig_HeroHyugaHinata0Effect_Func005A takes nothing returns nothing
call IssueTargetOrder(GetEnumUnit(),"attack",GetEnumUnit())
set udg_locations03[100]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[100],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[100])
set udg_locations03[100]=PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),10.00,AngleBetweenPoints(GetUnitLoc(udg_units30[100]),GetUnitLoc(GetEnumUnit())))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations03[100]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations03[100]))
call RemoveLocation(udg_locations03[100])
if(Trig_HeroHyugaHinata0Effect_Func005Func010C())then
else
call UnitDamageTargetBJ(udg_units30[100],GetEnumUnit(),(500.00*I2R(GetUnitAbilityLevelSwapped('A02P',udg_units30[100]))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call GroupAddUnit(udg_group01,GetEnumUnit())
endif
endfunction
function Trig_HeroHyugaHinata0Effect_Actions takes nothing returns nothing
set udg_real09=(udg_real09+8.00)
call SetUnitFacing(udg_units30[100],(GetUnitFacing(udg_units30[100])+10.00))
call ForGroupBJ(udg_groups03[1],function Trig_HeroHyugaHinata0Effect_Func003A)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(udg_real09,GetUnitLoc(udg_units30[100]),Condition(function Trig_HeroHyugaHinata0Effect_Func005001003)),function Trig_HeroHyugaHinata0Effect_Func005A)
endfunction
function Trig_bailongtianwu_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A003'))
endfunction
function Trig_bailongtianwu_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000__:_______,___,_______~ |r")
set udg_unit06=GetSpellTargetUnit()
set udg_unit05=GetTriggerUnit()
set udg_real02=(DistanceBetweenPoints(GetUnitLoc(udg_unit05),GetUnitLoc(udg_unit06))/50.00)
set udg_real01=(DistanceBetweenPoints(GetUnitLoc(udg_unit05),GetUnitLoc(udg_unit06))/10.00)
call PauseUnit(udg_unit03,true)
call SetUnitPathing(udg_unit05,false)
call EnableTrigger(udg_trigger219)
call SetUnitAnimation(GetTriggerUnit(),"walk")
endfunction
function Trig_mubiaoyidong_Func009C takes nothing returns boolean
return((udg_integer01>=10))
endfunction
function Trig_mubiaoyidong_Actions takes nothing returns nothing
set udg_integer01=(udg_integer01+1)
set udg_locations03[105]=PolarProjectionBJ(GetUnitLoc(udg_unit06),35.00,GetUnitFacing(udg_unit03))
call SetUnitPositionLoc(udg_unit06,udg_locations03[105])
call RemoveLocation(udg_locations03[105])
set udg_locations03[105]=GetUnitLoc(udg_unit06)
call AddSpecialEffectLocBJ(udg_locations03[105],"Abilities\\Spells\\Human\\ManaFlare\\ManaFlareMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[105])
if((udg_integer01>=10))then
set udg_integer01=0
call DisableTrigger(GetTriggeringTrigger())
call UnitDamageTarget(udg_unit05,udg_unit06,(1000.00+(I2R(GetHeroStatBJ(1,udg_unit05,true))*12.00)),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call TriggerSleepAction(3.00)
call ResetUnitAnimation(udg_unit06)
endif
endfunction
function Trig_tsts_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A00S'))
endfunction
function Trig_tsts_Actions takes nothing returns nothing
set udg_units02[50]=GetTriggerUnit()
call TriggerSleepAction(0.10)
set udg_locations03[1]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),100.00,GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'ntrs',GetOwningPlayer(GetTriggerUnit()),udg_locations03[1],GetUnitFacing(GetTriggerUnit()))
set udg_units15[77]=bj_lastCreatedUnit
call RemoveLocation(udg_locations03[1])
call EnableTrigger(udg_trigger74)
call TriggerSleepAction(1.10)
call DisableTrigger(udg_trigger74)
call KillUnit(udg_units15[77])
endfunction
function Trig_ts2_Func006001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units15[77])))
endfunction
function Trig_ts2_Func006A takes nothing returns nothing
call UnitDamageTarget(udg_units15[77],GetEnumUnit(),(10.00+(I2R(GetHeroStatBJ(2,udg_units02[50],true))/3.00)),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_ts2_Actions takes nothing returns nothing
set udg_locations03[107]=PolarProjectionBJ(GetUnitLoc(udg_units15[77]),15.00,GetUnitFacing(udg_units15[77]))
call SetUnitPositionLoc(udg_units15[77],udg_locations03[107])
call AddSpecialEffectLocBJ(udg_locations03[107],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,udg_locations03[107],Condition(function Trig_ts2_Func006001003)),function Trig_ts2_Func006A)
call RemoveLocation(udg_locations03[107])
endfunction
function Trig_ts3_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='ntrs'))
endfunction
function Trig_ts3_Func010001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_ts3_Func010A takes nothing returns nothing
call UnitDamageTarget(udg_units02[5],GetEnumUnit(),(5.00*(I2R(GetHeroStatBJ(2,udg_units02[5],true))/1.00)),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_ts3_Actions takes nothing returns nothing
set udg_locations03[1]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),100.00,GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'omtg',GetOwningPlayer(GetTriggerUnit()),udg_locations03[1],GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
set udg_units15[94]=bj_lastCreatedUnit
call SetUnitFlyHeight(udg_units15[94],(GetUnitFlyHeight(udg_units15[94])-600.00),600.00)
call AddSpecialEffectLocBJ(udg_locations03[1],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveUnit(GetTriggerUnit())
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,udg_locations03[1],Condition(function Trig_ts3_Func010001003)),function Trig_ts3_Func010A)
call RemoveLocation(udg_locations03[1])
endfunction
function Trig_ddtp_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A00K'))
endfunction
function Trig_ddtp_Actions takes nothing returns nothing
set udg_units02[2]=GetTriggerUnit()
set udg_real04=0.00
call TriggerSleepAction(0.10)
set udg_location06=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),100.00,GetUnitFacing(udg_units02[2]))
call CreateNUnitsAtLoc(1,'ntrg',GetOwningPlayer(udg_units02[2]),udg_location06,GetUnitFacing(GetTriggerUnit()))
set udg_units02[3]=bj_lastCreatedUnit
call EnableTrigger(udg_trigger77)
call TriggerSleepAction(1.20)
call DisableTrigger(udg_trigger77)
call KillUnit(udg_units02[3])
call RemoveLocation(udg_location06)
endfunction
function Trig_dtp2_Func010001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units02[3])))
endfunction
function Trig_dtp2_Func010A takes nothing returns nothing
call UnitDamageTarget(udg_units02[2],GetEnumUnit(),(3.00*I2R(GetUnitAbilityLevel(udg_units02[2],'A00K'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_dtp2_Actions takes nothing returns nothing
set udg_real04=(udg_real04+0.05)
set udg_locations03[108]=PolarProjectionBJ(GetUnitLoc(udg_units02[3]),20.00,GetUnitFacing(udg_units02[3]))
call SetUnitPositionLoc(udg_units02[3],udg_locations03[108])
call RemoveLocation(udg_locations03[108])
call SetUnitScale(udg_units02[3],(1+udg_real04),(1+udg_real04),(1+udg_real04))
set udg_locations03[108]=GetUnitLoc(udg_units02[3])
call AddSpecialEffectLocBJ(udg_locations03[108],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching((40.00+(150.00*udg_real04)),udg_locations03[108],Condition(function Trig_dtp2_Func010001003)),function Trig_dtp2_Func010A)
call RemoveLocation(udg_locations03[108])
endfunction
function Trig_shbg64z_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A03M'))
endfunction
function Trig_shbg64z_Func008Func011001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_shbg64z_Func008Func011001003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_shbg64z_Func008Func011001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))
endfunction
function Trig_shbg64z_Func008Func011001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_shbg64z_Func008Func011001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_shbg64z_Func008Func011A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(10.00*I2R(GetUnitAbilityLevelSwapped('A03M',GetTriggerUnit()))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
set udg_locations03[111]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[111],"Abilities\\Spells\\Human\\SpellSteal\\SpellStealTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[111])
call IssueTargetOrder(GetEnumUnit(),"attack",GetEnumUnit())
call SetUnitAnimation(GetEnumUnit(),"death")
endfunction
function Trig_shbg64z_Actions takes nothing returns nothing
call TriggerSleepAction(0.10)
call SetUnitTimeScalePercent(GetTriggerUnit(),500.00)
call PauseUnit(GetTriggerUnit(),true)
set udg_locations03[517]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'uaco',GetOwningPlayer(GetTriggerUnit()),udg_locations03[517],(GetUnitFacing(GetTriggerUnit())-180.00))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
set udg_integers01[107]=1
loop
exitwhen udg_integers01[107]>10
set udg_locations03[5]=PolarProjectionBJ(udg_locations03[517],50.00,GetRandomReal(0,360))
call SetUnitAnimationWithRarity(GetTriggerUnit(),"attack",RARITY_RARE)
call CreateNUnitsAtLoc(1,'negz',GetOwningPlayer(GetTriggerUnit()),udg_locations03[5],GetRandomReal(0,360))
call SetUnitAnimation(bj_lastCreatedUnit,"attack")
call UnitApplyTimedLifeBJ(0.80,'BTLF',bj_lastCreatedUnit)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100,100,100,30.00)
call CreateNUnitsAtLoc(1,'nmsh',GetOwningPlayer(GetTriggerUnit()),udg_locations03[5],GetUnitFacing(bj_lastCreatedUnit))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,50.00)
call UnitApplyTimedLifeBJ(1.50,'BTLF',bj_lastCreatedUnit)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[5],Condition(function Trig_shbg64z_Func008Func011001003)),function Trig_shbg64z_Func008Func011A)
call AddSpecialEffectLocBJ(udg_locations03[5],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[5],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[5])
call AddSpecialEffectLocBJ(udg_locations03[517],"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCasterOverhead.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call TriggerSleepAction(0.01)
set udg_integers01[107]=udg_integers01[107]+1
endloop
call RemoveLocation(udg_locations03[517])
call SetUnitTimeScalePercent(GetTriggerUnit(),100)
call PauseUnit(GetTriggerUnit(),false)
call ResetUnitAnimation(GetTriggerUnit())
endfunction
function Trig_shabolao_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01V'))
endfunction
function Trig_shabolao_Actions takes nothing returns nothing
set udg_units03[0]=GetTriggerUnit()
set udg_units03[1]=GetSpellTargetUnit()
set udg_locations03[9]=GetUnitLoc(GetSpellTargetUnit())
call CreateNUnitsAtLoc(1,'owyv',GetOwningPlayer(udg_units03[0]),udg_locations03[9],bj_UNIT_FACING)
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call PauseUnit(udg_units03[1],true)
call RemoveLocation(udg_locations03[9])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[9]=PolarProjectionBJ(GetUnitLoc(udg_units03[1]),100.00,(90.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'nskf',GetOwningPlayer(udg_units03[0]),udg_locations03[9],(90.00*I2R(bj_forLoopAIndex)))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call UnitApplyTimedLifeBJ(4.00,'BTLF',bj_lastCreatedUnit)
call SetUnitScalePercent(bj_lastCreatedUnit,50.00,50.00,50.00)
call RemoveLocation(udg_locations03[9])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call UnitAddAbility(udg_units03[1],'Amrf')
call SetUnitFlyHeight(udg_units03[1],320.00,350.00)
call UnitRemoveAbility(udg_units03[1],'Amrf')
call TriggerSleepAction(1.50)
call SetUnitAnimation(GetTriggerUnit(),"spell two")
call TriggerSleepAction(1.00)
call ShowUnitShow(udg_units03[1])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[9]=PolarProjectionBJ(GetUnitLoc(udg_units03[1]),GetRandomReal(0,100.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'nska',GetOwningPlayer(GetTriggerUnit()),udg_locations03[9],GetRandomReal(0,360))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call GroupAddUnit(udg_groups03[3],bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,0.00,300.00)
call KillUnit(bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[9])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitAnimation(udg_units03[1],"Death")
call EnableTrigger(udg_trigger80)
call SetUnitFlyHeight(udg_units03[1],0.00,700.00)
call TriggerSleepAction(0.60)
call UnitDamageTarget(udg_units03[0],udg_units03[1],(I2R(GetUnitAbilityLevel(udg_units03[0],'A01V'))*I2R(GetHeroStatBJ(2,udg_units03[0],true))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call GroupClear(udg_groups03[3])
endfunction
function Trig_shabolao2_Func006A takes nothing returns nothing
set udg_locations03[114]=GetUnitLoc(GetEnumUnit())
set udg_locations03[104]=PolarProjectionBJ(udg_locations03[114],20.00,GetUnitFacing(GetEnumUnit()))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations03[104]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations03[104]))
call RemoveLocation(udg_locations03[104])
call RemoveLocation(udg_locations03[114])
endfunction
function Trig_shabolao2_Func007C takes nothing returns boolean
return((udg_integer05>=30))
endfunction
function Trig_shabolao2_Actions takes nothing returns nothing
set udg_integer05=(udg_integer05+1)
set udg_locations03[114]=PolarProjectionBJ(GetUnitLoc(udg_units03[1]),10.00,AngleBetweenPoints(GetUnitLoc(udg_units03[0]),GetUnitLoc(udg_units03[1])))
call SetUnitPositionLoc(udg_units03[1],udg_locations03[114])
call RemoveLocation(udg_locations03[114])
call SetUnitFacingTimed(udg_units03[1],(GetUnitFacing(udg_units03[1])+90.00),0)
call ForGroupBJ(udg_groups03[3],function Trig_shabolao2_Func006A)
if((udg_integer05>=30))then
set udg_integer05=0
call DisableTrigger(GetTriggeringTrigger())
call PauseUnit(udg_units03[1],false)
endif
endfunction
function Trig_shzm1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A009'))
endfunction
function Trig_shzm1_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000___:________!|r")
set udg_units07[1]=GetTriggerUnit()
set udg_units07[3]=GetSpellTargetUnit()
call PauseUnit(udg_units07[1],true)
call PauseUnit(udg_units07[3],true)
call SetUnitAnimation(GetTriggerUnit(),"Spell")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[10]=PolarProjectionBJ(GetUnitLoc(udg_units07[3]),100.00,(90.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'nskf',GetOwningPlayer(udg_units07[1]),udg_locations03[10],(90.00*I2R(bj_forLoopAIndex)))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call UnitApplyTimedLifeBJ(4.00,'BTLF',bj_lastCreatedUnit)
call SetUnitScalePercent(bj_lastCreatedUnit,50.00,50.00,50.00)
call RemoveLocation(udg_locations03[10])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[10]=GetUnitLoc(udg_units07[3])
call CreateNUnitsAtLoc(1,'nw2w',GetOwningPlayer(GetTriggerUnit()),udg_locations03[10],GetUnitFacing(GetTriggerUnit()))
set udg_units08[bj_forLoopAIndex]=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(4.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[10])
call SetUnitScalePercent(bj_lastCreatedUnit,40.00,40.00,40.00)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,0.00)
call SetUnitFlyHeight(bj_lastCreatedUnit,(80.00*I2R(bj_forLoopAIndex)),0.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.50)
call SetUnitAnimation(GetTriggerUnit(),"spell one")
set udg_locations03[10]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),200.00,(GetUnitFacing(GetTriggerUnit())-180.00))
call CreateNUnitsAtLocFacingLocBJ(1,'nwwd',GetOwningPlayer(GetTriggerUnit()),udg_locations03[10],GetUnitLoc(udg_units07[3]))
call SetUnitFlyHeight(bj_lastCreatedUnit,50.00,150.00)
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
set udg_units07[2]=bj_lastCreatedUnit
set udg_real03=(DistanceBetweenPoints(GetUnitLoc(udg_units07[3]),GetUnitLoc(udg_units07[1]))/60.00)
call EnableTrigger(udg_trigger82)
call UnitDamageTarget(udg_units07[1],udg_units07[3],(10.00*I2R(GetHeroStatBJ(2,udg_units07[1],true))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations03[10])
endfunction
function Trig_shzm2_Func001C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_units07[2]),GetUnitLoc(udg_units07[3]))<=60.00))
endfunction
function Trig_shzm2_Actions takes nothing returns nothing
if((DistanceBetweenPoints(GetUnitLoc(udg_units07[2]),GetUnitLoc(udg_units07[3]))<=60.00))then
call DisableTrigger(GetTriggeringTrigger())
call PauseUnit(udg_units07[1],false)
call KillUnit(udg_units07[2])
call SetUnitAnimation(udg_units07[3],"Death")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[10]=GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units07[3]),200.00,200.00))
call CreateNUnitsAtLoc(1,'nska',GetOwningPlayer(udg_units07[1]),udg_locations03[10],GetRandomReal(0,360))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call SetUnitFlyHeight(bj_lastCreatedUnit,100.00,0.00)
call KillUnit(bj_lastCreatedUnit)
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units07[3]),200.00,200.00)),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[10])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call UnitDamageTarget(udg_units07[1],udg_units07[3],(12.00*I2R(GetHeroStatBJ(2,udg_units07[1],true))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveUnit(udg_units08[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger83)
else
set udg_locations03[115]=PolarProjectionBJ(GetUnitLoc(udg_units07[2]),30.00,AngleBetweenPoints(GetUnitLoc(udg_units07[2]),GetUnitLoc(udg_units07[3])))
call SetUnitPositionLocFacingLocBJ(udg_units07[2],udg_locations03[115],GetUnitLoc(udg_units07[3]))
call RemoveLocation(udg_locations03[115])
endif
endfunction
function Trig_jitui_Func001C takes nothing returns boolean
return((udg_integer06>=25))
endfunction
function Trig_jitui_Actions takes nothing returns nothing
if((udg_integer06>=25))then
set udg_integer06=0
call DisableTrigger(GetTriggeringTrigger())
call PauseUnit(udg_units07[3],false)
call TriggerSleepAction(3.00)
call ResetUnitAnimation(udg_units07[3])
else
set udg_integer06=(udg_integer06+1)
set udg_locations03[116]=PolarProjectionBJ(GetUnitLoc(udg_units07[3]),20.00,AngleBetweenPoints(GetUnitLoc(udg_units07[1]),GetUnitLoc(udg_units07[3])))
call SetUnitPositionLoc(udg_units07[3],udg_locations03[116])
call RemoveLocation(udg_locations03[116])
set udg_locations03[116]=GetUnitLoc(udg_units07[3])
call AddSpecialEffectLocBJ(udg_locations03[106],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[116])
endif
endfunction
function Trig_shebao_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01O'))
endfunction
function Trig_shebao_Func037001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units11[0])))
endfunction
function Trig_shebao_Func037A takes nothing returns nothing
call UnitDamageTarget(udg_units11[0],GetEnumUnit(),(2000.00+(I2R(GetHeroStatBJ(2,udg_units11[0],true))*10.00)),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_shebao_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000___:___________,______,_________…_________,__________,________! |r")
set udg_units11[0]=GetTriggerUnit()
set udg_units11[1]=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
call PauseUnit(udg_units11[0],true)
call PauseUnit(udg_units11[1],true)
call UnitAddAbility(udg_units11[1],'Amrf')
call SetUnitFlyHeight(udg_units11[1],200.00,400.00)
call UnitRemoveAbility(udg_units11[1],'Amrf')
call SetUnitAnimation(udg_units11[0],"Spell Channel")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=36
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[12]=PolarProjectionBJ(GetUnitLoc(udg_units11[1]),100.00,(10.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLocFacingLocBJ(1,'nwwf',GetOwningPlayer(GetTriggerUnit()),udg_locations03[12],GetUnitLoc(udg_units11[1]))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call SetUnitAnimation(bj_lastCreatedUnit,"Spell two")
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[12])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.50)
call SetUnitTimeScalePercent(GetTriggerUnit(),0.00)
call TriggerSleepAction(0.50)
call SetUnitTimeScalePercent(GetTriggerUnit(),100.00)
call SetUnitAnimationWithRarity(udg_units11[0],"Spell",RARITY_FREQUENT)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()),50.00)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units11[1]),50.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[12]=PolarProjectionBJ(GetUnitLoc(udg_units11[1]),200.00,(36.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLocFacingLocBJ(1,'ehip',GetOwningPlayer(GetTriggerUnit()),udg_locations03[12],GetUnitLoc(udg_unit10))
call UnitApplyTimedLife(bj_lastCreatedUnit,'BHwe',3.00)
call SetUnitFlyHeight(bj_lastCreatedUnit,0.00,0.00)
call RemoveLocation(udg_locations03[12])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[12]=PolarProjectionBJ(GetUnitLoc(udg_units11[1]),250.00,(36.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLocFacingLocBJ(1,'ehip',GetOwningPlayer(GetTriggerUnit()),udg_locations03[12],GetUnitLoc(udg_unit10))
call RemoveLocation(udg_locations03[12])
call UnitApplyTimedLife(bj_lastCreatedUnit,'BHwe',3.00)
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(50.00,200.00),150.00)
set udg_locations03[118]=GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units11[1]),250.00,250.00))
call AddSpecialEffectLocBJ(udg_locations03[118],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call RemoveLocation(udg_locations03[118])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.10)
call CameraClearNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()))
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units11[1]))
call SetUnitAnimation(udg_units11[1],"Death")
call UnitAddAbility(udg_units11[1],'Amrf')
call SetUnitFlyHeight(udg_units11[1],500.00,5000.00)
call UnitRemoveAbility(udg_units11[1],'Amrf')
call PauseUnit(udg_units11[0],false)
call EnableTrigger(udg_trigger86)
call TriggerSleepAction(0.50)
call SetUnitFlyHeight(udg_units11[1],0.00,6000.00)
call TriggerSleepAction(0.40)
call DisableTrigger(udg_trigger86)
call PauseUnit(udg_units11[1],false)
set udg_locations03[12]=GetUnitLoc(udg_units11[1])
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations03[12],Condition(function Trig_shebao_Func037001003)),function Trig_shebao_Func037A)
call RemoveLocation(udg_locations03[12])
endfunction
function Trig_shebao_3_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='nwwf'))
endfunction
function Trig_shebao_3_Actions takes nothing returns nothing
local integer skill_i
set skill_i=1
loop
exitwhen skill_i>4
set udg_locations03[13]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),150.00,GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'nhef',GetOwningPlayer(GetTriggerUnit()),udg_locations03[13],GetRandomReal(0,360))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(0,250.00),0.00)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,20.00)
call KillUnit(bj_lastCreatedUnit)
call TriggerSleepAction(0.10)
call RemoveLocation(udg_locations03[13])
set skill_i=skill_i+1
endloop
endfunction
function Trig_xuanzhuan_Actions takes nothing returns nothing
call SetUnitFacingTimed(udg_units11[1],(GetUnitFacing(udg_units11[1])+45.00),0)
endfunction
function Trig_tssy_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A00D'))
endfunction
function Trig_tssy_Func010A takes nothing returns nothing
call RemoveLocation(GetUnitLoc(GetEnumUnit()))
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_tssy_Actions takes nothing returns nothing
set udg_integers05[1]='nvdl'
set udg_integers05[2]='nubr'
set udg_integers05[3]='nubk'
set udg_integers05[4]='ntkc'
set udg_unit12=GetTriggerUnit()
set udg_locations01[241]=GetSpellTargetLoc()
call EnableTrigger(udg_trigger88)
call TriggerSleepAction(3.00)
call DisableTrigger(udg_trigger88)
call ForGroupBJ(udg_groups02[241],function Trig_tssy_Func010A)
call RemoveLocation(udg_locations01[241])
call GroupClear(udg_groups02[241])
endfunction
function Trig_tssyfb_Func006001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_tssyfb_Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit12)))
endfunction
function Trig_tssyfb_Func006001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit12))))
endfunction
function Trig_tssyfb_Func006A takes nothing returns nothing
call UnitDamageTarget(udg_unit12,GetEnumUnit(),75.00,true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_tssyfb_Actions takes nothing returns nothing
set udg_locations03[15]=PolarProjectionBJ(udg_locations01[241],GetRandomReal(0,600.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,udg_integers05[GetRandomInt(1,4)],GetOwningPlayer(udg_unit12),udg_locations03[15],GetRandomReal(0,360))
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(0,300.00),1000.00)
call GroupAddUnit(udg_groups02[241],bj_lastCreatedUnit)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,udg_locations03[15],Condition(function Trig_tssyfb_Func006001003)),function Trig_tssyfb_Func006A)
call RemoveLocation(udg_locations03[15])
endfunction
function Trig_phcj_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02U'))
endfunction
function Trig_phcj_Func004Func008001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_phcj_Func004Func008001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[11])))
endfunction
function Trig_phcj_Func004Func008001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[11]))))
endfunction
function Trig_phcj_Func004Func008A takes nothing returns nothing
call UnitDamageTarget(udg_units14[11],GetEnumUnit(),(35.00*I2R(GetUnitAbilityLevel(udg_units14[11],'A02U'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_phcj_Func010001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_phcj_Func010001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[11])))
endfunction
function Trig_phcj_Func010001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[11]))))
endfunction
function Trig_phcj_Func010A takes nothing returns nothing
call UnitDamageTarget(udg_units14[11],GetEnumUnit(),200.00,true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_phcj_Actions takes nothing returns nothing
set udg_reals01[99]=GetUnitFacing(GetTriggerUnit())
set udg_units14[11]=GetSpellAbilityUnit()
set udg_locations01[99]=GetUnitLoc(GetTriggerUnit())
set udg_integers01[102]=1
loop
exitwhen udg_integers01[102]>5
set udg_locations03[28]=PolarProjectionBJ(udg_locations01[99],(150.00*I2R(udg_integers01[102])),udg_reals01[99])
call CreateNUnitsAtLoc(1,'uskm',GetOwningPlayer(GetTriggerUnit()),udg_locations03[28],GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(0.20,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,800.00)
call AddSpecialEffectLocBJ(udg_locations03[28],"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,udg_locations03[28],Condition(function Trig_phcj_Func004Func008001003)),function Trig_phcj_Func004Func008A)
call RemoveLocation(udg_locations03[28])
call TriggerSleepAction(0.10)
set udg_integers01[102]=udg_integers01[102]+1
endloop
set udg_locations03[28]=PolarProjectionBJ(udg_locations01[99],750.00,udg_reals01[99])
call CreateNUnitsAtLoc(1,'ubsp',GetOwningPlayer(GetTriggerUnit()),udg_locations03[28],bj_UNIT_FACING)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,50.00)
call UnitApplyTimedLifeBJ(1.50,'BTLF',bj_lastCreatedUnit)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[28],Condition(function Trig_phcj_Func010001003)),function Trig_phcj_Func010A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'uske',GetOwningPlayer(GetTriggerUnit()),udg_locations03[28],(18.00*I2R(bj_forLoopAIndex)))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,1000.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[28])
call RemoveLocation(udg_locations01[99])
endfunction
function Trig_cfss_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A03O'))
endfunction
function Trig_cfss_Actions takes nothing returns nothing
set udg_unit09=GetSpellTargetUnit()
set udg_locations03[519]=GetUnitLoc(udg_unit09)
set udg_integers01[100]=1
loop
exitwhen udg_integers01[100]>6
set udg_locations03[7]=PolarProjectionBJ(udg_locations03[519],75.00,(60.00*I2R(udg_integers01[100])))
call CreateNUnitsAtLoc(1,'ntkt',GetOwningPlayer(GetTriggerUnit()),udg_locations03[7],(60.00*I2R(bj_forLoopAIndex)))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",GetUnitLoc(udg_unit09))
call AddSpecialEffectLocBJ(udg_locations03[7],"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[7])
call AddSpecialEffectLocBJ(udg_locations03[519],"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call TriggerSleepAction(0.01)
set udg_integers01[100]=udg_integers01[100]+1
endloop
call RemoveLocation(udg_locations03[519])
call UnitDamageTargetBJ(GetTriggerUnit(),udg_unit09,(I2R(GetHeroStatBJ(2,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevelSwapped('A03O',GetTriggerUnit()))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_cbzs_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02V'))
endfunction
function Trig_cbzs_Actions takes nothing returns nothing
set udg_locations03[8]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'ntks',GetOwningPlayer(GetTriggerUnit()),udg_locations03[8],GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,(150.00*I2R(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[8])
call PauseUnit(GetTriggerUnit(),true)
call SetUnitInvulnerable(GetTriggerUnit(),true)
call TriggerSleepAction(2.00)
call PauseUnit(GetTriggerUnit(),false)
call SetUnitInvulnerable(GetTriggerUnit(),false)
endfunction
function Trig_phclh_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AHbz'))
endfunction
function Trig_phclh_Func019001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units19[79])))
endfunction
function Trig_phclh_Func019A takes nothing returns nothing
call UnitDamageTarget(udg_units19[79],GetEnumUnit(),(I2R(GetHeroInt(udg_units19[79],true))*8.00),false,true,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_phclh_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000__:__,___! |r")
set udg_units19[79]=GetSpellAbilityUnit()
set udg_locations01[940]=GetSpellTargetLoc()
set udg_real06=0.00
call CreateNUnitsAtLoc(1,'ucs1',GetOwningPlayer(GetTriggerUnit()),udg_locations01[940],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,100.00,500.00)
set udg_units15[1000]=bj_lastCreatedUnit
call EnableTrigger(udg_trigger93)
call TriggerSleepAction(1.00)
call DisableTrigger(udg_trigger93)
call SetUnitFlyHeight(udg_units15[1000],-600.00,1000.00)
call TriggerSleepAction(0.80)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[21]=PolarProjectionBJ(udg_locations01[940],200.00,(18.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'uskm',GetOwningPlayer(GetTriggerUnit()),udg_locations03[21],(18.00*I2R(bj_forLoopAIndex)))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[21])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=40
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[21]=PolarProjectionBJ(udg_locations01[940],400.00,(9.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'uskm',GetOwningPlayer(GetTriggerUnit()),udg_locations03[21],(9.00*I2R(bj_forLoopAIndex)))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[21])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call AddSpecialEffectLocBJ(udg_locations01[940],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations01[940],Condition(function Trig_phclh_Func019001003)),function Trig_phclh_Func019A)
call TriggerSleepAction(0.50)
call RemoveLocation(GetUnitLoc(udg_units15[1000]))
call KillUnit(udg_units15[1000])
call RemoveLocation(udg_locations01[940])
endfunction
function Trig_phclh2_Actions takes nothing returns nothing
set udg_real06=(udg_real06+20.00)
call SetUnitScalePercent(udg_units15[1000],(100.00+udg_real06),(100.00+udg_real06),(100.00+udg_real06))
endfunction
function Trig_jfc_s_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AHbz'))
endfunction
function Trig_jfc_s_Func005001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_jfc_s_Func005A takes nothing returns nothing
call PauseUnit(GetEnumUnit(),true)
call GroupAddUnit(udg_groups02[213],GetEnumUnit())
endfunction
function Trig_jfc_s_Func009A takes nothing returns nothing
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),1000.00,true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call PauseUnit(GetEnumUnit(),false)
endfunction
function Trig_jfc_s_Actions takes nothing returns nothing
set udg_locations01[4]=GetSpellTargetLoc()
set udg_units14[12]=GetSpellAbilityUnit()
call TriggerSleepAction(0.10)
call SetUnitAnimation(GetTriggerUnit(),"spell two")
call ForGroupBJ(GetUnitsInRangeOfLocMatching(320.00,udg_locations01[4],Condition(function Trig_jfc_s_Func005001003)),function Trig_jfc_s_Func005A)
call TriggerSleepAction(3.00)
call CreateNUnitsAtLoc(1,'ubsp',GetOwningPlayer(GetTriggerUnit()),udg_locations01[4],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.50,'BTLF',bj_lastCreatedUnit)
call ForGroupBJ(udg_groups02[213],function Trig_jfc_s_Func009A)
call RemoveLocation(udg_locations01[4])
call GroupClear(udg_groups02[213])
endfunction
function Trig_jfc_x_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ANrf'))
endfunction
function Trig_jfc_x_Func010001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_jfc_x_Func010A takes nothing returns nothing
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(600.00*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'ANrf'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call SetUnitManaBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_MANA,GetEnumUnit())-(300.00*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'ANrf')))))
set udg_locations03[146]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[146],"Abilities\\Spells\\Undead\\CarrionSwarm\\CarrionSwarmDamage.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[146])
endfunction
function Trig_jfc_x_Actions takes nothing returns nothing
set udg_unit15=GetTriggerUnit()
set udg_locations01[3]=GetSpellTargetLoc()
call TriggerSleepAction(0.10)
call SetUnitAnimation(GetTriggerUnit(),"spell one")
call CinematicFadeBJ(2,3.00,"ReplaceableTextures\\CameraMasks\\White_mask.blp",0,0,0,75.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[29]=PolarProjectionBJ(udg_locations01[3],600.00,(36.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLocFacingLocBJ(1,'ucrm',GetOwningPlayer(GetTriggerUnit()),udg_locations03[29],udg_locations01[3])
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations01[3])
call RemoveLocation(udg_locations03[29])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(2.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'ucrm',GetOwningPlayer(GetTriggerUnit()),udg_locations01[3],udg_locations01[3])
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
set udg_locations03[146]=PolarProjectionBJ(udg_locations01[3],600.00,(36.00*I2R(bj_forLoopAIndex)))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations03[146])
call RemoveLocation(udg_locations03[146])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations01[3],Condition(function Trig_jfc_x_Func010001003)),function Trig_jfc_x_Func010A)
call RemoveLocation(udg_locations01[3])
endfunction
function Trig_xielunyandegongji_Conditions takes nothing returns boolean
return((UnitHasBuffBJ(GetAttacker(),'BEim')))and((GetRandomInt(1,100)<=25))and((IsUnitEnemy(GetTriggerUnit(),GetOwningPlayer(GetAttacker()))))
endfunction
function Trig_xielunyandegongji_Actions takes nothing returns nothing
set udg_locations06[17]=GetUnitLoc(GetAttacker())
set udg_locations06[18]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations06[19]=PolarProjectionBJ(udg_locations06[17],(40.00*I2R(bj_forLoopAIndex)),AngleBetweenPoints(udg_locations06[17],udg_locations06[18]))
call CreateNUnitsAtLocFacingLocBJ(1,'noga',GetOwningPlayer(GetAttacker()),udg_locations06[19],udg_locations06[18])
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100,100,100,55.00)
call SetUnitTimeScale(bj_lastCreatedUnit,5.00)
call SetUnitAnimation(bj_lastCreatedUnit,"attack")
call UnitApplyTimedLifeBJ(0.20,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations06[19])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_locations06[19]=PolarProjectionBJ(udg_locations06[17],200.00,AngleBetweenPoints(udg_locations06[17],udg_locations06[18]))
call SetUnitX(GetAttacker(),GetLocationX(udg_locations06[19]))
call SetUnitY(GetAttacker(),GetLocationY(udg_locations06[19]))
call UnitDamageTarget(GetAttacker(),GetTriggerUnit(),(100.00+(I2R(GetUnitAbilityLevelSwapped('AEim',GetAttacker()))*(I2R(GetHeroStatBJ(1,GetAttacker(),true))/3.00))),true,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call AddSpecialEffectLocBJ(udg_locations06[18],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations06[19])
call RemoveLocation(udg_locations06[17])
call RemoveLocation(udg_locations06[18])
endfunction
function Trig_xielunyanfangyu_Conditions takes nothing returns boolean
return((UnitHasBuffBJ(GetTriggerUnit(),'BEim')))and((GetRandomInt(1,100)<=(4+GetUnitAbilityLevelSwapped('AEim',GetTriggerUnit()))))
endfunction
function Trig_xielunyanfangyu_Actions takes nothing returns nothing
set udg_locations03[503]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'noga',GetOwningPlayer(GetTriggerUnit()),udg_locations03[503],GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(0.10,'BTLF',bj_lastCreatedUnit)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100,100,100,55.00)
call SetUnitTimeScale(bj_lastCreatedUnit,3.00)
call SetUnitAnimation(bj_lastCreatedUnit,"death")
call SetWidgetLife(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())+(GetEventDamage()*0.35)))
endfunction
function Trig_phclh_______u_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A07R'))
endfunction
function Trig_phclh_______u_Func001Func011001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_phclh_______u_Func001Func011A takes nothing returns nothing
call PauseUnit(GetEnumUnit(),true)
call GroupAddUnit(udg_groups02[213],GetEnumUnit())
endfunction
function Trig_phclh_______u_Func001Func015Func001C takes nothing returns boolean
return((IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)))
endfunction
function Trig_phclh_______u_Func001Func015A takes nothing returns nothing
if((IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)))then
else
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroAgi(GetTriggerUnit(),true))*11.00),false,true,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
call PauseUnit(GetEnumUnit(),false)
endfunction
function Trig_phclh_______u_Func001C takes nothing returns boolean
return((UnitHasBuffBJ(GetTriggerUnit(),'BEim')))
endfunction
function Trig_phclh_______u_Actions takes nothing returns nothing
if((UnitHasBuffBJ(GetTriggerUnit(),'BEim')))then
call SetUnitAnimation(GetTriggerUnit(),"spell two")
set udg_units19[80]=GetSpellAbilityUnit()
set udg_locations01[950]=GetSpellTargetLoc()
set udg_real06=0.00
call UnitDamageTarget(udg_units19[80],udg_units19[80],(GetUnitState(udg_units19[80],UNIT_STATE_MAX_LIFE)*0.20),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call CreateNUnitsAtLoc(1,'u007',GetOwningPlayer(GetTriggerUnit()),udg_locations01[950],GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
set udg_units15[1000]=bj_lastCreatedUnit
call TerrainDeformationRippleBJ(2.50,false,udg_locations01[950],100.00,300.00,50.00,0.10,200.00)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(320.00,udg_locations01[950],Condition(function Trig_phclh_______u_Func001Func011001003)),function Trig_phclh_______u_Func001Func011A)
call TriggerSleepAction(2.50)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'u008',GetOwningPlayer(GetTriggerUnit()),udg_locations01[950],(36.00*I2R(bj_forLoopAIndex)))
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[21])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TerrainDeformationRippleBJ(0.50,false,udg_locations01[950],50.00,400.00,100.00,0.50,350.00)
call ForGroupBJ(udg_groups02[213],function Trig_phclh_______u_Func001Func015A)
call GroupClear(udg_groups02[213])
call RemoveLocation(udg_locations01[950])
else
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,5.00,"|cFFFF0000____ __-___ _______! |r")
endif
endfunction
function Trig_QN1s_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A00Z'))
endfunction
function Trig_QN1s_Actions takes nothing returns nothing
call StopMusic(true)
set udg_units21[2]=GetTriggerUnit()
set udg_units21[3]=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
call PauseUnit(udg_units21[2],true)
call SetUnitPathing(udg_units21[2],false)
call EnableTrigger(udg_trigger100)
call SetUnitTimeScale(udg_units21[2],4.00)
call SetUnitAnimation(udg_units21[2],"spell Three")
endfunction
function Trig_QN1s2_Func001Func001C takes nothing returns boolean
return((udg_booleans01[1004]==false))
endfunction
function Trig_QN1s2_Func001Func004Func006C takes nothing returns boolean
return((IsTerrainPathableBJ(udg_locations06[9],PATHING_TYPE_WALKABILITY)==false))
endfunction
function Trig_QN1s2_Func001Func004Func012001003001001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups04[10])==false)
endfunction
function Trig_QN1s2_Func001Func004Func012001003001002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_QN1s2_Func001Func004Func012001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitInGroup(GetFilterUnit(),udg_groups04[10])==false),(IsUnitAliveBJ(GetFilterUnit())))
endfunction
function Trig_QN1s2_Func001Func004Func012001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units21[2])))
endfunction
function Trig_QN1s2_Func001Func004Func012001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitInGroup(GetFilterUnit(),udg_groups04[10])==false),(IsUnitAliveBJ(GetFilterUnit())))),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units21[2]))))
endfunction
function Trig_QN1s2_Func001Func004Func012Func006C takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_units21[2],'BEim')))then
return false
endif
return true
endfunction
function Trig_QN1s2_Func001Func004Func012A takes nothing returns nothing
call GroupAddUnit(udg_groups04[10],GetEnumUnit())
set udg_locations06[11]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations06[11],"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations06[11])
if(Trig_QN1s2_Func001Func004Func012Func006C())then
call UnitDamageTargetBJ(udg_units21[2],GetEnumUnit(),(I2R(GetHeroStatBJ(1,udg_units21[2],true))*I2R(GetUnitAbilityLevel(udg_units21[2],'A00Z'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_LIGHTNING)
else
call UnitDamageTargetBJ(udg_units21[2],GetEnumUnit(),(I2R(GetHeroStatBJ(1,udg_units21[2],true))*I2R(GetUnitAbilityLevel(udg_units21[2],'A00Z'))),ATTACK_TYPE_HERO,DAMAGE_TYPE_LIGHTNING)
endif
endfunction
function Trig_QN1s2_Func001Func004C takes nothing returns boolean
return((udg_integers02[1009]==15))
endfunction
function Trig_QN1s2_Func001Func005C takes nothing returns boolean
return((IsUnitDeadBJ(udg_units21[3])))or((DistanceBetweenPoints(GetUnitLoc(udg_units21[2]),GetUnitLoc(udg_units21[3]))<=100.00))or((DistanceBetweenPoints(GetUnitLoc(udg_units21[2]),GetUnitLoc(udg_units21[3]))>=1500.00))or((udg_booleans01[1004]))
endfunction
function Trig_QN1s2_Func001Func012001003001001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups04[10])==false)
endfunction
function Trig_QN1s2_Func001Func012001003001002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_QN1s2_Func001Func012001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitInGroup(GetFilterUnit(),udg_groups04[10])==false),(IsUnitAliveBJ(GetFilterUnit())))
endfunction
function Trig_QN1s2_Func001Func012001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units21[2])))
endfunction
function Trig_QN1s2_Func001Func012001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitInGroup(GetFilterUnit(),udg_groups04[10])==false),(IsUnitAliveBJ(GetFilterUnit())))),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units21[2]))))
endfunction
function Trig_QN1s2_Func001Func012Func006C takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_units21[2],'BEim')))then
return false
endif
return true
endfunction
function Trig_QN1s2_Func001Func012A takes nothing returns nothing
call GroupAddUnit(udg_groups04[10],GetEnumUnit())
set udg_locations06[11]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations06[11],"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations06[11])
if(Trig_QN1s2_Func001Func012Func006C())then
call UnitDamageTargetBJ(udg_units21[2],GetEnumUnit(),(I2R(GetHeroStatBJ(1,udg_units21[2],true))*I2R(GetUnitAbilityLevel(udg_units21[2],'A00Z'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_LIGHTNING)
else
call UnitDamageTargetBJ(udg_units21[2],GetEnumUnit(),(I2R(GetHeroStatBJ(1,udg_units21[2],true))*I2R(GetUnitAbilityLevel(udg_units21[2],'A00Z'))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_LIGHTNING)
endif
endfunction
function Trig_QN1s2_Func001C takes nothing returns boolean
return((((IsUnitDeadBJ(udg_units21[3])))or((DistanceBetweenPoints(GetUnitLoc(udg_units21[2]),GetUnitLoc(udg_units21[3]))<=100.00))or((DistanceBetweenPoints(GetUnitLoc(udg_units21[2]),GetUnitLoc(udg_units21[3]))>=1500.00))or((udg_booleans01[1004]))))
endfunction
function Trig_QN1s2_Actions takes nothing returns nothing
if((((IsUnitDeadBJ(udg_units21[3])))or((DistanceBetweenPoints(GetUnitLoc(udg_units21[2]),GetUnitLoc(udg_units21[3]))<=100.00))or((DistanceBetweenPoints(GetUnitLoc(udg_units21[2]),GetUnitLoc(udg_units21[3]))>=1500.00))or((udg_booleans01[1004]))))then
if((udg_booleans01[1004]==false))then
set udg_booleans01[1004]=true
set udg_reals01[1006]=GetUnitFacing(udg_units21[2])
call SetUnitAnimation(udg_units21[2],"spell Four")
endif
if((udg_integers02[1009]==15))then
set udg_booleans01[1004]=false
set udg_integers02[1009]=0
call DisableTrigger(GetTriggeringTrigger())
call SetUnitTimeScale(udg_units21[2],1.00)
call TriggerSleepAction(0.10)
call PauseUnit(udg_units21[2],false)
call SetUnitPathing(udg_units21[2],true)
call GroupClear(udg_groups04[10])
else
set udg_integers02[1009]=(udg_integers02[1009]+1)
set udg_locations06[10]=GetUnitLoc(udg_units21[2])
set udg_locations06[9]=PolarProjectionBJ(udg_locations06[10],45.00,udg_reals01[1006])
if((IsTerrainPathableBJ(udg_locations06[9],PATHING_TYPE_WALKABILITY)==false))then
call SetUnitPositionLoc(udg_units21[2],udg_locations06[9])
endif
call AddSpecialEffectLocBJ(udg_locations06[9],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateNUnitsAtLoc(1,'nogn',GetOwningPlayer(udg_units21[2]),udg_locations06[9],GetUnitFacing(udg_units21[2]))
call UnitApplyTimedLifeBJ(0.20,'BTLF',bj_lastCreatedUnit)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,udg_locations06[9],Condition(function Trig_QN1s2_Func001Func004Func012001003)),function Trig_QN1s2_Func001Func004Func012A)
call RemoveLocation(udg_locations06[9])
call RemoveLocation(udg_locations06[10])
endif
else
set udg_locations06[10]=GetUnitLoc(udg_units21[2])
set udg_locations06[9]=PolarProjectionBJ(udg_locations06[10],45.00,AngleBetweenPoints(GetUnitLoc(udg_units21[2]),GetUnitLoc(udg_units21[3])))
call SetUnitPositionLoc(udg_units21[2],udg_locations06[9])
call AddSpecialEffectLocBJ(udg_locations06[9],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateNUnitsAtLoc(1,'nogn',GetOwningPlayer(udg_units21[2]),udg_locations06[9],GetUnitFacing(udg_units21[2]))
call UnitApplyTimedLifeBJ(0.20,'BTLF',bj_lastCreatedUnit)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,udg_locations06[9],Condition(function Trig_QN1s2_Func001Func012001003)),function Trig_QN1s2_Func001Func012A)
call RemoveLocation(udg_locations06[9])
call RemoveLocation(udg_locations06[10])
endif
endfunction
function Trig_QN2liantu_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='Afod'))
endfunction
function Trig_QN2liantu_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000___:_________! |r")
call PlayThematicMusic("leiqie.mp3")
call StopMusic(true)
set udg_units21[0]=GetTriggerUnit()
set udg_locations01[942]=GetUnitLoc(GetTriggerUnit())
set udg_units21[1]=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
call PauseUnit(udg_units21[0],true)
call SetUnitPathing(udg_units21[0],false)
call EnableTrigger(udg_trigger102)
call SetUnitTimeScale(udg_units21[0],4.00)
call SetUnitAnimation(udg_units21[0],"spell Three")
endfunction
function Trig_QN2liantu2_Func001Func002C takes nothing returns boolean
return((IsUnitDeadBJ(udg_units21[0])))or((IsUnitDeadBJ(udg_units21[1])))or((DistanceBetweenPoints(GetUnitLoc(udg_units21[0]),GetUnitLoc(udg_units21[1]))<=100.00))or((DistanceBetweenPoints(GetUnitLoc(udg_units21[0]),GetUnitLoc(udg_units21[1]))>=1500.00))
endfunction
function Trig_QN2liantu2_Func001Func010001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_QN2liantu2_Func001Func010001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units21[0])))
endfunction
function Trig_QN2liantu2_Func001Func010001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units21[0]))))
endfunction
function Trig_QN2liantu2_Func001Func010Func001C takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_units21[0],'BEim')))then
return false
endif
return true
endfunction
function Trig_QN2liantu2_Func001Func010A takes nothing returns nothing
if(Trig_QN2liantu2_Func001Func010Func001C())then
call UnitDamageTargetBJ(udg_units21[0],GetEnumUnit(),(I2R(GetHeroStatBJ(1,udg_units21[0],true))*5.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_LIGHTNING)
else
call UnitDamageTargetBJ(udg_units21[0],GetEnumUnit(),(I2R(GetHeroStatBJ(1,udg_units21[0],true))*5.00),ATTACK_TYPE_HERO,DAMAGE_TYPE_LIGHTNING)
endif
endfunction
function Trig_QN2liantu2_Func001Func046001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_QN2liantu2_Func001Func046001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units21[0])))
endfunction
function Trig_QN2liantu2_Func001Func046001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units21[0]))))
endfunction
function Trig_QN2liantu2_Func001Func046Func001C takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_units21[0],'BEim')))then
return false
endif
return true
endfunction
function Trig_QN2liantu2_Func001Func046A takes nothing returns nothing
if(Trig_QN2liantu2_Func001Func046Func001C())then
call UnitDamageTargetBJ(udg_units21[0],GetEnumUnit(),(I2R(GetHeroStatBJ(1,udg_units21[0],true))*8.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_LIGHTNING)
else
call UnitDamageTargetBJ(udg_units21[0],GetEnumUnit(),(I2R(GetHeroStatBJ(1,udg_units21[0],true))*8.00),ATTACK_TYPE_HERO,DAMAGE_TYPE_LIGHTNING)
endif
endfunction
function Trig_QN2liantu2_Func001C takes nothing returns boolean
return((((IsUnitDeadBJ(udg_units21[0])))or((IsUnitDeadBJ(udg_units21[1])))or((DistanceBetweenPoints(GetUnitLoc(udg_units21[0]),GetUnitLoc(udg_units21[1]))<=100.00))or((DistanceBetweenPoints(GetUnitLoc(udg_units21[0]),GetUnitLoc(udg_units21[1]))>=1500.00))))
endfunction
function Trig_QN2liantu2_Actions takes nothing returns nothing
if((((IsUnitDeadBJ(udg_units21[0])))or((IsUnitDeadBJ(udg_units21[1])))or((DistanceBetweenPoints(GetUnitLoc(udg_units21[0]),GetUnitLoc(udg_units21[1]))<=100.00))or((DistanceBetweenPoints(GetUnitLoc(udg_units21[0]),GetUnitLoc(udg_units21[1]))>=1500.00))))then
call RemoveLocation(udg_locations01[942])
call DisableTrigger(GetTriggeringTrigger())
call SetUnitTimeScale(udg_units21[0],1.00)
call SetUnitAnimation(udg_units21[0],"spell Four")
set udg_locations03[137]=GetUnitLoc(udg_units21[1])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(udg_locations03[137],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_reals01[7050]=GetRandomReal(280.00,400.00)
call CreateNUnitsAtLoc(1,'nhew',GetOwningPlayer(udg_units21[0]),udg_locations03[137],GetRandomReal(0,360))
call SetUnitScalePercent(bj_lastCreatedUnit,udg_reals01[7050],udg_reals01[7050],udg_reals01[7050])
call SetUnitTimeScalePercent(bj_lastCreatedUnit,50.00)
call SetUnitFlyHeight(bj_lastCreatedUnit,-300.00,0.00)
call UnitApplyTimedLifeBJ(0.20,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,udg_locations03[137],Condition(function Trig_QN2liantu2_Func001Func010001003)),function Trig_QN2liantu2_Func001Func010A)
call RemoveLocation(udg_locations03[137])
call EnableTrigger(udg_trigger103)
set udg_reals01[1002]=GetUnitFacing(udg_units21[0])
call PauseUnit(udg_units21[1],true)
call UnitAddAbility(udg_units21[1],'Amrf')
call SetUnitFlyHeight(udg_units21[1],500.00,450.00)
call UnitRemoveAbility(udg_units21[1],'Amrf')
call SetUnitAnimation(udg_units21[1],"death")
call TriggerSleepAction(0.60)
set udg_locations06[5]=GetUnitLoc(udg_units21[0])
call AddSpecialEffectLocBJ(udg_locations06[5],"Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations06[5])
set udg_locations06[5]=GetUnitLoc(udg_units21[1])
call SetUnitPositionLoc(udg_units21[0],udg_locations06[5])
call AddSpecialEffectTargetUnitBJ("origin",udg_units21[1],"Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddLightningLoc("FORK",udg_locations06[5],udg_locations06[5])
set udg_lightnings01[2]=bj_lastCreatedLightning
call SetUnitAnimation(udg_units21[0],"spell two")
call UnitAddAbility(udg_units21[0],'Amrf')
call SetUnitFlyHeight(udg_units21[0],750.00,0.00)
call UnitRemoveAbility(udg_units21[0],'Amrf')
call SetUnitFlyHeight(udg_units21[0],0.00,2500.00)
set udg_booleans01[689]=true
call TriggerSleepAction(0.10)
call SetUnitFlyHeight(udg_units21[1],0.00,2500.00)
call TriggerSleepAction(0.20)
call DisableTrigger(udg_trigger103)
call DestroyLightning(udg_lightnings01[2])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations06[4]=PolarProjectionBJ(udg_locations06[5],GetRandomReal(0,250.00),GetRandomReal(0,360))
call AddSpecialEffectLocBJ(udg_locations06[4],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations06[4])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'oswy',GetOwningPlayer(udg_units21[0]),udg_locations06[5],GetRandomReal(0,360))
call SetUnitFlyHeight(bj_lastCreatedUnit,0.00,0.00)
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,30.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call AddSpecialEffectLocBJ(udg_locations06[5],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations06[5],Condition(function Trig_QN2liantu2_Func001Func046001003)),function Trig_QN2liantu2_Func001Func046A)
call PauseUnit(udg_units21[0],false)
call SetUnitPathing(udg_units21[0],true)
call PauseUnit(udg_units21[1],false)
call RemoveLocation(udg_locations06[5])
set udg_booleans01[689]=false
else
set udg_locations03[137]=PolarProjectionBJ(GetUnitLoc(udg_units21[0]),40.00,AngleBetweenPoints(GetUnitLoc(udg_units21[0]),GetUnitLoc(udg_units21[1])))
call SetUnitPositionLoc(udg_units21[0],udg_locations03[137])
call RemoveLocation(udg_locations03[137])
set udg_locations03[137]=GetUnitLoc(udg_units21[0])
call AddSpecialEffectLocBJ(udg_locations03[137],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[137])
call AddSpecialEffectTargetUnitBJ("hand right",udg_units21[0],"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endif
endfunction
function Trig_QN2liantu3_Func001C takes nothing returns boolean
return((udg_booleans01[689]==false))
endfunction
function Trig_QN2liantu3_Actions takes nothing returns nothing
if((udg_booleans01[689]==false))then
set udg_locations06[3]=GetUnitLoc(udg_units21[1])
set udg_locations03[137]=PolarProjectionBJ(udg_locations06[3],20.00,udg_reals01[1002])
call SetUnitPositionLoc(udg_units21[1],udg_locations03[137])
call AddSpecialEffectTargetUnitBJ("origin",udg_units21[1],"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations06[4])
call RemoveLocation(udg_locations03[137])
else
call CreateNUnitsAtLoc(1,'nogo',GetOwningPlayer(udg_units21[0]),udg_locations06[5],GetRandomReal(0,360))
call SetUnitFlyHeight(bj_lastCreatedUnit,GetUnitFlyHeight(udg_units21[0]),0.00)
call SetUnitFlyHeight(bj_lastCreatedUnit,0.00,1000.00)
call UnitApplyTimedLifeBJ(0.10,'BTLF',bj_lastCreatedUnit)
call MoveLightningEx(udg_lightnings01[2],false,GetLocationX(udg_locations06[5]),GetLocationY(udg_locations06[5]),2000.00,GetLocationX(udg_locations06[5]),GetLocationY(udg_locations06[5]),GetUnitFlyHeight(udg_units21[0]))
call AddSpecialEffectTargetUnitBJ("hand right",udg_units21[0],"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endif
endfunction
function Trig_poleisui_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ANfl'))
endfunction
function Trig_poleisui_Actions takes nothing returns nothing
set udg_units31[130]=GetTriggerUnit()
set udg_units31[131]=GetSpellTargetUnit()
set udg_locations03[506]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'odkt',GetOwningPlayer(GetTriggerUnit()),udg_locations03[506],GetUnitFacing(GetTriggerUnit()))
call SetUnitColor(bj_lastCreatedUnit,ConvertPlayerColor(12))
set udg_units31[132]=bj_lastCreatedUnit
call SetUnitTimeScalePercent(udg_units31[132],400.00)
call SetUnitVertexColorBJ(udg_units31[132],100,100,100,50.00)
call RemoveLocation(udg_locations03[506])
call SetUnitAnimation(udg_units31[132],"walk")
call EnableTrigger(udg_trigger105)
call TriggerSleepAction(0.10)
set udg_booleans01[130]=true
call SetUnitTimeScalePercent(udg_units31[132],50.00)
call SetUnitAnimation(udg_units31[132],"attack slam")
call TriggerSleepAction(0.20)
set udg_booleans01[131]=true
endfunction
function Trig_poleisui_2_Func001Func001Func001Func004002003001 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Trig_poleisui_2_Func001Func001Func001Func004002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[130])))
endfunction
function Trig_poleisui_2_Func001Func001Func001Func004002003 takes nothing returns boolean
return GetBooleanAnd((IsUnitDeadBJ(GetFilterUnit())==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[130]))))
endfunction
function Trig_poleisui_2_Func001Func001Func001Func005A takes nothing returns nothing
call UnitDamageTarget(udg_units31[130],GetEnumUnit(),((I2R(GetHeroStatBJ(1,udg_units31[130],true))*5.00)+(800.00*I2R(GetUnitAbilityLevelSwapped('ANfl',udg_units31[130])))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_poleisui_2_Func001Func001Func001C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_units31[132]),GetUnitLoc(udg_units31[131]))<=50.00))
endfunction
function Trig_poleisui_2_Func001Func001C takes nothing returns boolean
return((udg_booleans01[131]==false))
endfunction
function Trig_poleisui_2_Func001C takes nothing returns boolean
return((udg_booleans01[130]==false))
endfunction
function Trig_poleisui_2_Actions takes nothing returns nothing
if((udg_booleans01[130]==false))then
set udg_locations03[506]=GetUnitLoc(udg_units31[132])
set udg_locations03[508]=GetUnitLoc(udg_units31[131])
set udg_locations03[507]=PolarProjectionBJ(udg_locations03[506],22.00,GetUnitFacing(udg_units31[132]))
call SetUnitPositionLocFacingBJ(udg_units31[132],udg_locations03[507],(GetUnitFacing(udg_units31[132])+8.00))
call AddSpecialEffectLocBJ(udg_locations03[507],"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[506])
call RemoveLocation(udg_locations03[507])
call RemoveLocation(udg_locations03[508])
else
if((udg_booleans01[131]==false))then
set udg_locations03[506]=GetUnitLoc(udg_units31[132])
set udg_locations03[508]=GetUnitLoc(udg_units31[131])
set udg_locations03[507]=PolarProjectionBJ(udg_locations03[506],22.00,GetUnitFacing(udg_units31[132]))
call SetUnitPositionLocFacingBJ(udg_units31[132],udg_locations03[507],(GetUnitFacing(udg_units31[132])-8.00))
call AddSpecialEffectLocBJ(udg_locations03[507],"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[506])
call RemoveLocation(udg_locations03[507])
call RemoveLocation(udg_locations03[508])
else
if((DistanceBetweenPoints(GetUnitLoc(udg_units31[132]),GetUnitLoc(udg_units31[131]))<=50.00))then
call DisableTrigger(GetTriggeringTrigger())
set udg_locations03[508]=GetUnitLoc(udg_units31[131])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'oswy',GetOwningPlayer(udg_units31[130]),udg_locations03[508],GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,(40.00+(3.00*I2R(bj_forLoopAIndex))))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_groups02[130]=GetUnitsInRangeOfLocMatching(300.00,udg_locations03[508],Condition(function Trig_poleisui_2_Func001Func001Func001Func004002003))
call ForGroupBJ(udg_groups02[130],function Trig_poleisui_2_Func001Func001Func001Func005A)
call RemoveLocation(udg_locations03[508])
call GroupClear(udg_groups02[130])
set udg_booleans01[130]=false
set udg_booleans01[131]=false
call RemoveUnit(udg_units31[132])
else
set udg_locations03[506]=GetUnitLoc(udg_units31[132])
set udg_locations03[508]=GetUnitLoc(udg_units31[131])
set udg_locations03[507]=PolarProjectionBJ(udg_locations03[506],30.00,AngleBetweenPoints(udg_locations03[506],udg_locations03[508]))
call SetUnitX(udg_units31[132],GetLocationX(udg_locations03[507]))
call SetUnitY(udg_units31[132],GetLocationY(udg_locations03[507]))
call SetUnitFacing(udg_units31[132],AngleBetweenPoints(udg_locations03[506],udg_locations03[508]))
call AddSpecialEffectLocBJ(udg_locations03[507],"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[506])
call RemoveLocation(udg_locations03[507])
call RemoveLocation(udg_locations03[508])
endif
endif
endif
endfunction
function Trig_tuduntuliubi_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AOfs'))
endfunction
function Trig_tuduntuliubi_Func005Func010001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_tuduntuliubi_Func005Func010001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_tuduntuliubi_Func005Func010001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_tuduntuliubi_Func005Func010Func001C takes nothing returns boolean
if(not(IsUnitInGroup(GetEnumUnit(),udg_groups04[7])==false))then
return false
endif
return true
endfunction
function Trig_tuduntuliubi_Func005Func010A takes nothing returns nothing
if(Trig_tuduntuliubi_Func005Func010Func001C())then
call PauseUnit(GetEnumUnit(),true)
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(80.00*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'AOfs'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call UnitAddAbility(GetEnumUnit(),'Amrf')
call SetUnitFlyHeight(GetEnumUnit(),500.00,1500.00)
call UnitRemoveAbility(GetEnumUnit(),'Amrf')
call GroupAddUnit(udg_groups04[7],GetEnumUnit())
call SetUnitAnimation(GetEnumUnit(),"death")
endif
endfunction
function Trig_tuduntuliubi_Func007A takes nothing returns nothing
call SetUnitFlyHeight(GetEnumUnit(),0.00,2000.00)
endfunction
function Trig_tuduntuliubi_Func008A takes nothing returns nothing
call SetUnitFlyHeight(GetEnumUnit(),-300.00,600.00)
endfunction
function Trig_tuduntuliubi_Func010A takes nothing returns nothing
call PauseUnit(GetEnumUnit(),false)
endfunction
function Trig_tuduntuliubi_Func014A takes nothing returns nothing
set udg_locations06[1]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations06[1],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_tuduntuliubi_Actions takes nothing returns nothing
set udg_locations06[0]=GetSpellTargetLoc()
set udg_locations06[1]=GetUnitLoc(GetTriggerUnit())
set udg_reals01[1001]=AngleBetweenPoints(udg_locations06[1],udg_locations06[0])
call RemoveLocation(udg_locations06[1])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations06[1]=PolarProjectionBJ(udg_locations06[0],(-400.00+(80.00*I2R(bj_forLoopAIndex))),(udg_reals01[1001]+90.00))
call CreateNUnitsAtLoc(1,'ndrn',GetOwningPlayer(GetTriggerUnit()),udg_locations06[1],udg_reals01[1001])
call GroupAddUnit(udg_groups04[8],bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,-100.00,900.00)
call AddSpecialEffectLocBJ(udg_locations06[1],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateDestructableLoc('YTfc',udg_locations06[1],GetRandomReal(0,360),1,0)
set udg_destructables05[(20+bj_forLoopAIndex)]=bj_lastCreatedDestructable
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(180.00,udg_locations06[1],Condition(function Trig_tuduntuliubi_Func005Func010001003)),function Trig_tuduntuliubi_Func005Func010A)
call RemoveLocation(udg_locations06[1])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.30)
call ForGroupBJ(udg_groups04[7],function Trig_tuduntuliubi_Func007A)
call ForGroupBJ(udg_groups04[8],function Trig_tuduntuliubi_Func008A)
call TriggerSleepAction(1.00)
call ForGroupBJ(udg_groups04[7],function Trig_tuduntuliubi_Func010A)
call RemoveLocation(udg_locations06[0])
call GroupClear(udg_groups04[7])
call TriggerSleepAction(3.00)
call ForGroupBJ(udg_groups04[8],function Trig_tuduntuliubi_Func014A)
call GroupClear(udg_groups04[8])
set bj_forLoopAIndex=21
set bj_forLoopAIndexEnd=28
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveDestructable(udg_destructables05[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_wscfml_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02W'))
endfunction
function Trig_wscfml_Func010Func002A takes nothing returns nothing
set udg_locations03[30]=GetUnitLoc(udg_units13[50])
set udg_locations06[28]=PolarProjectionBJ(udg_locations03[30],GetRandomReal(300.00,550.00),GetRandomReal(0,360))
call SetUnitPositionLocFacingLocBJ(GetEnumUnit(),udg_locations06[28],udg_locations03[30])
call SetUnitAnimation(GetEnumUnit(),"walk")
call RemoveLocation(udg_locations03[30])
call RemoveLocation(udg_locations06[28])
endfunction
function Trig_wscfml_Func010Func004A takes nothing returns nothing
set udg_locations03[30]=GetUnitLoc(udg_units13[50])
set udg_locations06[28]=PolarProjectionBJ(udg_locations03[30],70.00,GetRandomReal(0,360))
call SetUnitPositionLocFacingLocBJ(GetEnumUnit(),udg_locations06[28],udg_locations03[30])
call SetUnitAnimation(GetEnumUnit(),"attack")
call RemoveLocation(udg_locations03[30])
call RemoveLocation(udg_locations06[28])
endfunction
function Trig_wscfml_Func012A takes nothing returns nothing
set udg_locations03[30]=GetUnitLoc(GetEnumUnit())
set udg_locations06[28]=PolarProjectionBJ(udg_locations03[30],250.00,GetUnitFacing(GetEnumUnit()))
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_locations06[28],GetUnitFacing(GetEnumUnit()))
call IssueTargetOrder(GetEnumUnit(),"attack",udg_units13[50])
endfunction
function Trig_wscfml_Func021A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_wscfml_Actions takes nothing returns nothing
set udg_units14[50]=GetTriggerUnit()
set udg_units13[50]=GetSpellTargetUnit()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[30]=GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(GetTriggerUnit()),200.00,200.00))
call CreateNUnitsAtLoc(1,'ucry',GetOwningPlayer(GetTriggerUnit()),udg_locations03[30],GetUnitFacing(GetTriggerUnit()))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call IssueTargetOrder(bj_lastCreatedUnit,"attack",udg_units13[50])
call GroupAddUnit(udg_groups02[50],bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[30])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_locations03[30]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'ugar',GetOwningPlayer(GetTriggerUnit()),udg_locations03[30],GetUnitFacing(GetTriggerUnit()))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
set udg_units15[50]=bj_lastCreatedUnit
call IssueTargetOrder(bj_lastCreatedUnit,"move",udg_units13[50])
call RemoveLocation(udg_locations03[30])
set udg_integers01[762]=1
loop
exitwhen udg_integers01[762]>4
call TriggerSleepAction(0.10)
call ForGroupBJ(udg_groups02[50],function Trig_wscfml_Func010Func002A)
call TriggerSleepAction(0.10)
call ForGroupBJ(udg_groups02[50],function Trig_wscfml_Func010Func004A)
set udg_integers01[762]=udg_integers01[762]+1
endloop
call TriggerSleepAction(0.10)
call ForGroupBJ(udg_groups02[50],function Trig_wscfml_Func012A)
call IssuePointOrderByIdLoc(udg_units15[50],852652,GetUnitLoc(udg_units13[50]))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[30]=GetUnitLoc(udg_units15[50])
set udg_locations06[28]=PolarProjectionBJ(udg_locations03[30],120.00,(GetUnitFacing(udg_units15[50])-90.00))
call CreateNUnitsAtLocFacingLocBJ(1,'uobs',GetOwningPlayer(GetTriggerUnit()),udg_locations06[28],GetUnitLoc(udg_units13[50]))
call RemoveLocation(udg_locations03[30])
call RemoveLocation(udg_locations06[28])
set udg_locations03[30]=GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units13[50]),400.00,400.00))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852652,udg_locations03[30])
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[30])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[30]=GetUnitLoc(udg_units15[50])
set udg_locations06[28]=PolarProjectionBJ(udg_locations03[30],120.00,(GetUnitFacing(udg_units15[50])+90.00))
call CreateNUnitsAtLocFacingLocBJ(1,'uobs',GetOwningPlayer(GetTriggerUnit()),udg_locations06[28],GetUnitLoc(udg_units13[50]))
call RemoveLocation(udg_locations03[30])
call RemoveLocation(udg_locations06[28])
set udg_locations03[30]=GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units13[50]),400.00,400.00))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852652,udg_locations03[30])
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[30])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.10)
call PauseUnit(udg_units13[50],true)
call UnitAddAbility(udg_units13[50],'Amrf')
call SetUnitFlyHeight(udg_units13[50],300.00,600.00)
call TriggerSleepAction(0.50)
call ForGroupBJ(udg_groups02[50],function Trig_wscfml_Func021A)
set udg_integers01[762]=1
loop
exitwhen udg_integers01[762]>3
call SetUnitFlyHeight(udg_units13[50],300.00,500.00)
call TriggerSleepAction(0.10)
call SetUnitFlyHeight(udg_units13[50],250.00,500.00)
set udg_integers01[762]=udg_integers01[762]+1
endloop
call SetUnitFlyHeight(udg_units13[50],0.00,1200.00)
call UnitRemoveAbility(udg_units13[50],'Amrf')
call TriggerSleepAction(1.00)
call KillUnit(udg_units15[50])
call PauseUnit(udg_units13[50],false)
call UnitDamageTarget(udg_units14[50],udg_units13[50],(I2R(GetHeroStatBJ(1,udg_units14[50],true))+(800.00*I2R(GetUnitAbilityLevel(udg_units14[50],'A02W')))),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call GroupClear(udg_groups02[50])
endfunction
function Trig_cswhs_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='Aroa'))
endfunction
function Trig_cswhs_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[31]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),20.00,(18.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'unec',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),20.00,(18.00*I2R(bj_forLoopAIndex))),(18.00*I2R(bj_forLoopAIndex)))
call RemoveLocation(udg_locations03[31])
set udg_locations03[148]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),4000.00,(18.00*I2R(bj_forLoopAIndex)))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations03[148])
call UnitApplyTimedLifeBJ((2.00+(I2R(GetUnitAbilityLevel(GetTriggerUnit(),'Aroa'))/2.00)),'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[148])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_cswhh_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AUfn'))
endfunction
function Trig_cswhh_Func006A takes nothing returns nothing
call IssueTargetOrder(GetEnumUnit(),"attack",udg_units13[51])
endfunction
function Trig_cswhh_Actions takes nothing returns nothing
set udg_units14[50]=GetTriggerUnit()
set udg_units13[51]=GetSpellTargetUnit()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[32]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),70.00,((GetUnitFacing(GetTriggerUnit())-108.00)+(18.00*I2R(bj_forLoopAIndex))))
call CreateNUnitsAtLoc(1,'nsw1',GetOwningPlayer(GetTriggerUnit()),udg_locations03[32],((GetUnitFacing(GetTriggerUnit())-108.00)+(18.00*I2R(bj_forLoopAIndex))))
call UnitApplyTimedLifeBJ((4.00+(I2R(GetUnitAbilityLevel(GetTriggerUnit(),'AUfn'))/2.00)),'BHwe',bj_lastCreatedUnit)
set udg_locations06[234]=PolarProjectionBJ(udg_locations03[32],1000.00,GetUnitFacing(bj_lastCreatedUnit))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations06[234])
set udg_units22[bj_forLoopAIndex]=bj_lastCreatedUnit
call GroupAddUnit(udg_groups02[51],bj_lastCreatedUnit)
call AddSpecialEffectTargetUnitBJ("head",bj_lastCreatedUnit,"Abilities\\Weapons\\AvengerMissile\\AvengerMissile.mdl")
call RemoveLocation(udg_locations03[32])
call RemoveLocation(udg_locations06[234])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.10)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[149]=PolarProjectionBJ(GetUnitLoc(udg_units22[bj_forLoopAIndex]),350.00,GetUnitFacing(udg_units22[bj_forLoopAIndex]))
call SetUnitPositionLocFacingBJ(udg_units22[bj_forLoopAIndex],udg_locations03[149],GetUnitFacing(udg_units22[bj_forLoopAIndex]))
call RemoveLocation(udg_locations03[149])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(udg_groups02[51],function Trig_cswhh_Func006A)
call GroupClear(udg_groups02[51])
endfunction
function Trig_cswhh2_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetAttacker())=='nsw1'))
endfunction
function Trig_cswhh2_Actions takes nothing returns nothing
call UnitDamageTarget(udg_units14[50],GetTriggerUnit(),(I2R(GetHeroStatBJ(1,udg_units14[50],true))/4.50),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_swcs_Func004C takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='ucry'))or((GetUnitTypeId(GetTriggerUnit())=='ugar'))or((GetUnitTypeId(GetTriggerUnit())=='unec'))or((GetUnitTypeId(GetTriggerUnit())=='nsw1'))or((GetUnitTypeId(GetTriggerUnit())=='ntrh'))
endfunction
function Trig_swcs_Conditions takes nothing returns boolean
return((((GetUnitTypeId(GetTriggerUnit())=='ucry'))or((GetUnitTypeId(GetTriggerUnit())=='ugar'))or((GetUnitTypeId(GetTriggerUnit())=='unec'))or((GetUnitTypeId(GetTriggerUnit())=='nsw1'))or((GetUnitTypeId(GetTriggerUnit())=='ntrh'))))
endfunction
function Trig_swcs_Actions takes nothing returns nothing
set udg_locations03[33]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'ucs3',GetOwningPlayer(GetTriggerUnit()),udg_locations03[33],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.50,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[33])
call RemoveUnit(GetTriggerUnit())
endfunction
function Trig_chaoshouweihuafeishe_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ANfd'))
endfunction
function Trig_chaoshouweihuafeishe_Func005001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_chaoshouweihuafeishe_Func005001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_chaoshouweihuafeishe_Func005001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_chaoshouweihuafeishe_Func005A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'ntrh',GetOwningPlayer(GetTriggerUnit()),udg_locations03[608],GetUnitFacing(GetTriggerUnit()))
call SetUnitAbilityLevel(bj_lastCreatedUnit,'Awfb',GetUnitAbilityLevel(GetTriggerUnit(),'ANfd'))
call IssueTargetOrder(bj_lastCreatedUnit,"firebolt",GetEnumUnit())
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
endfunction
function Trig_chaoshouweihuafeishe_Actions takes nothing returns nothing
set udg_units19[213]=GetTriggerUnit()
set udg_locations03[608]=GetUnitLoc(GetTriggerUnit())
set udg_locations03[153]=GetUnitLoc(GetSpellTargetUnit())
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations03[153],Condition(function Trig_chaoshouweihuafeishe_Func005001003)),function Trig_chaoshouweihuafeishe_Func005A)
call RemoveLocation(udg_locations03[153])
call RemoveLocation(udg_locations03[608])
endfunction
function Trig_lk_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02T'))
endfunction
function Trig_lk_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000__:____,____,____,____,_______ |r")
set udg_units14[10]=GetTriggerUnit()
set udg_locations01[2]=GetSpellTargetLoc()
call PauseUnit(udg_units14[10],true)
call SetUnitAnimation(udg_units14[10],"Spell")
call TriggerSleepAction(0.10)
set udg_locations03[40]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),100.00,GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'ucs2',GetOwningPlayer(GetTriggerUnit()),udg_locations03[40],GetUnitFacing(GetTriggerUnit()))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations01[2])
set udg_units15[10]=bj_lastCreatedUnit
call RemoveLocation(udg_locations03[40])
call TriggerSleepAction(0.25)
set udg_locations03[157]=PolarProjectionBJ(udg_locations01[2],400.00,(AngleBetweenPoints(udg_locations01[2],GetUnitLoc(udg_units15[10]))+4.00))
call SetUnitPositionLocFacingBJ(udg_units15[10],udg_locations03[157],(AngleBetweenPoints(GetUnitLoc(udg_units15[10]),udg_locations01[2])-90.00))
call RemoveLocation(udg_locations03[157])
call EnableTrigger(udg_trigger114)
call PauseUnit(udg_units14[10],false)
call TriggerSleepAction(1.50)
call RemoveUnit(udg_units15[10])
call DisableTrigger(udg_trigger114)
call CreateNUnitsAtLoc(1,'ucsB',GetOwningPlayer(udg_units14[10]),udg_locations01[2],GetUnitFacing(udg_units15[10]))
call SetUnitFlyHeight(bj_lastCreatedUnit,-300.00,1200.00)
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
set udg_units15[10]=bj_lastCreatedUnit
call SetUnitAnimation(udg_units15[10],"attack")
call UnitApplyTimedLifeBJ(0.40,'BTLF',bj_lastCreatedUnit)
endfunction
function Trig_lk1_Actions takes nothing returns nothing
set udg_locations03[157]=PolarProjectionBJ(udg_locations01[2],(DistanceBetweenPoints(GetUnitLoc(udg_units15[10]),udg_locations01[2])-2.00),(AngleBetweenPoints(udg_locations01[2],GetUnitLoc(udg_units15[10]))+4.00))
call SetUnitPositionLocFacingBJ(udg_units15[10],udg_locations03[157],(AngleBetweenPoints(GetUnitLoc(udg_units15[10]),udg_locations01[2])-90.00))
call SetUnitFlyHeight(udg_units15[10],(GetUnitFlyHeight(udg_units15[10])+3.00),20000.00)
call SetUnitAnimation(udg_units15[10],"walk")
call RemoveLocation(udg_locations03[157])
endfunction
function Trig_lk2_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='ucsB'))
endfunction
function Trig_lk2_Func008001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_lk2_Func008Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)))then
return false
endif
return true
endfunction
function Trig_lk2_Func008A takes nothing returns nothing
if(Trig_lk2_Func008Func001C())then
call UnitDamageTarget(udg_units14[10],GetEnumUnit(),(10.00*I2R(GetHeroStatBJ(1,udg_units14[10],true))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
call UnitDamageTarget(udg_units14[10],GetEnumUnit(),(20.00*I2R(GetHeroStatBJ(1,udg_units14[10],true))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
endfunction
function Trig_lk2_Actions takes nothing returns nothing
set udg_locations03[2]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations03[2],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[2],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[41]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations01[2],350.00,350.00))
call CreateNUnitsAtLoc(1,'ucs3',GetOwningPlayer(udg_units15[10]),udg_locations03[41],bj_UNIT_FACING)
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call UnitApplyTimedLifeBJ(1.50,'BTLF',bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(1.50,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[41])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_lk2_Func008001003)),function Trig_lk2_Func008A)
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=10
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=bj_forLoopBIndex
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[262]=PolarProjectionBJ(udg_locations03[2],(45.00*I2R(bj_forLoopBIndex)),((360.00/I2R(bj_forLoopBIndex))*I2R(bj_forLoopAIndex)))
call AddSpecialEffectLocBJ(udg_locations03[262],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations01[262])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call RemoveUnit(GetTriggerUnit())
call RemoveLocation(udg_locations01[2])
call RemoveLocation(udg_locations03[2])
endfunction
function Trig_ljssd_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AHtb'))
endfunction
function Trig_ljssd_Actions takes nothing returns nothing
set udg_units14[300]=GetTriggerUnit()
set udg_units13[300]=GetSpellTargetUnit()
set udg_reals01[300]=GetUnitFacing(GetTriggerUnit())
call PlayThematicMusic("HHQ.mp3")
call StopMusic(true)
call AddSpecialEffectTargetUnitBJ("hand,right",GetTriggerUnit(),"Abilities\\Weapons\\GreenDragonMissile\\GreenDragonMissile.mdl")
set udg_effects02[1]=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units13[300]),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call EnableTrigger(udg_trigger117)
call TriggerSleepAction(0.10)
call DestroyEffect(udg_effects02[1])
call TriggerSleepAction(0.10)
call PauseUnit(udg_units14[300],true)
call UnitAddAbility(udg_units14[300],'A02Q')
call AddSpecialEffectTargetUnitBJ("foot,right",udg_units14[300],"Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl")
set udg_effects02[1]=bj_lastCreatedEffect
call SetUnitTimeScalePercent(udg_units14[300],20.00)
call SetUnitAnimation(udg_units14[300],"walk")
call SetUnitPathing(udg_units14[300],false)
call SetUnitTimeScalePercent(udg_units14[300],200.00)
call TriggerSleepAction(0.10)
call EnableTrigger(udg_trigger118)
endfunction
function Trig_ljssd2_Actions takes nothing returns nothing
set udg_locations03[141]=PolarProjectionBJ(GetUnitLoc(udg_units13[300]),30.00,udg_reals01[300])
call SetUnitPositionLocFacingBJ(udg_units13[300],udg_locations03[141],udg_reals01[300])
call RemoveLocation(udg_locations03[141])
set udg_locations03[141]=GetUnitLoc(udg_units13[300])
call AddSpecialEffectLocBJ(udg_locations03[141],"abilities\\weapons\\catapult\\catapultmissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[141])
endfunction
function Trig_ljssd3_Func001C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_units14[300]),GetUnitLoc(udg_units13[300]))<=120.00))
endfunction
function Trig_ljssd3_Actions takes nothing returns nothing
if((DistanceBetweenPoints(GetUnitLoc(udg_units14[300]),GetUnitLoc(udg_units13[300]))<=120.00))then
call DisableTrigger(udg_trigger117)
call DisableTrigger(udg_trigger118)
set udg_locations03[142]=PolarProjectionBJ(GetUnitLoc(udg_units13[300]),75.00,udg_reals01[300])
call SetUnitPositionLocFacingLocBJ(udg_units14[300],udg_locations03[142],GetUnitLoc(udg_units13[300]))
call AddSpecialEffectLocBJ(udg_locations03[142],"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[142])
call SetUnitTimeScalePercent(udg_units14[300],100.00)
call SetUnitAnimation(udg_units14[300],"attack")
set udg_locations03[142]=GetUnitLoc(udg_units13[300])
call TerrainDeformationCraterBJ(0.10,false,udg_locations03[142],512,70.00)
call RemoveLocation(udg_locations03[142])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[143]=PolarProjectionBJ(GetUnitLoc(udg_units13[300]),150.00,(36.00*I2R(bj_forLoopAIndex)))
call AddSpecialEffectLocBJ(udg_locations03[143],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[143])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitAnimation(udg_units13[300],"death")
call UnitDamageTarget(udg_units14[300],udg_units13[300],(I2R(GetHeroStatBJ(0,udg_units14[300],true))*I2R(GetUnitAbilityLevel(udg_units14[300],'AHtb'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call TriggerSleepAction(0.10)
call SetUnitPositionLocFacingLocBJ(udg_units13[300],PolarProjectionBJ(GetUnitLoc(udg_units13[300]),130.00,(udg_reals01[300]-180.00)),GetUnitLoc(udg_units14[300]))
call UnitRemoveAbility(udg_units14[300],'A02Q')
call DestroyEffect(udg_effects02[1])
call PauseUnit(udg_units14[300],false)
call SetUnitPathing(udg_units14[300],true)
else
set udg_locations03[142]=PolarProjectionBJ(GetUnitLoc(udg_units14[300]),40.00,AngleBetweenPoints(GetUnitLoc(udg_units14[300]),PolarProjectionBJ(GetUnitLoc(udg_units13[300]),60.00,(udg_reals01[300]-90.00))))
call SetUnitPositionLocFacingBJ(udg_units14[300],udg_locations03[142],udg_reals01[300])
call RemoveLocation(udg_locations03[142])
set udg_locations03[142]=GetUnitLoc(udg_units14[300])
call AddSpecialEffectLocBJ(udg_locations03[142],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[142])
endif
endfunction
function Trig_nxbfzj_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AOw2'))
endfunction
function Trig_nxbfzj_Func017001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[1])))
endfunction
function Trig_nxbfzj_Func017A takes nothing returns nothing
call UnitDamageTarget(udg_units14[1],GetEnumUnit(),(75.00*I2R(GetUnitAbilityLevel(udg_units14[1],'AOw2'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_nxbfzj_Actions takes nothing returns nothing
set udg_units14[1]=GetTriggerUnit()
call ShowUnit(udg_units14[1],false)
call TriggerSleepAction(0.10)
call PauseUnit(udg_units14[1],true)
set udg_locations03[22]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),200.00,(GetUnitFacing(GetTriggerUnit())-180.00))
call CreateNUnitsAtLoc(1,'ntrt',GetOwningPlayer(udg_units14[1]),udg_locations03[22],GetUnitFacing(udg_units14[1]))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScale(bj_lastCreatedUnit,0.50)
call SetUnitAnimation(bj_lastCreatedUnit,"spell channel")
call RemoveLocation(udg_locations03[22])
call TriggerSleepAction(0.90)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[144]=PolarProjectionBJ(PolarProjectionBJ(GetUnitLoc(udg_units14[1]),300.00,GetUnitFacing(udg_units14[1])),150.00,(36.00*I2R(bj_forLoopAIndex)))
call AddSpecialEffectLocBJ(udg_locations03[144],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[144],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[144])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_locations03[144]=PolarProjectionBJ(GetUnitLoc(udg_units14[1]),300.00,GetUnitFacing(udg_units14[1]))
call AddSpecialEffectLocBJ(udg_locations03[144],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[144],Condition(function Trig_nxbfzj_Func017001003)),function Trig_nxbfzj_Func017A)
call RemoveLocation(udg_locations03[144])
call ShowUnit(udg_units14[1],true)
call PauseUnit(udg_units14[1],false)
call SelectUnitForPlayerSingle(udg_units14[1],GetOwningPlayer(udg_units14[1]))
endfunction
function Trig_ssq_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ANfb'))
endfunction
function Trig_ssq_Func083A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_ssq_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000__:______,______________________,__________!_____!____________!
|r")
set udg_units14[304]=GetTriggerUnit()
set udg_units13[304]=GetSpellTargetUnit()
set udg_reals01[304]=GetUnitFacing(GetTriggerUnit())
set udg_effects02[2]=AddSpecialEffectTargetUnitBJ("hand,right",GetTriggerUnit(),"Abilities\\Weapons\\GreenDragonMissile\\GreenDragonMissile.mdl")
set udg_locations03[523]=GetUnitLoc(GetTriggerUnit())
set udg_locations03[513]=PolarProjectionBJ(udg_locations03[523],840.00,GetUnitFacing(GetTriggerUnit()))
call SetUnitPositionLocFacingLocBJ(udg_units13[304],udg_locations03[513],udg_locations03[523])
call SetUnitAnimation(udg_units14[304],"spell channel")
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units14[304]),15.00)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units13[304]),15.00)
call TerrainDeformationCraterBJ(1.50,false,PolarProjectionBJ(udg_locations03[523],300.00,GetUnitFacing(udg_units14[304])),600.00,150.00)
call PauseUnit(udg_units13[304],true)
call SetUnitInvulnerable(udg_units13[304],true)
call UnitAddAbility(udg_units13[304],'Amrf')
call SetUnitFlyHeight(udg_units13[304],400.00,400.00)
call AddSpecialEffectLocBJ(udg_locations03[513],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[513],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_locations03[509]=PolarProjectionBJ(udg_locations03[523],240.00,(GetUnitFacing(GetTriggerUnit())+45.00))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[508]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[509],55.00,55.00))
call CreateNUnitsAtLoc(1,'obot',GetOwningPlayer(udg_units14[304]),udg_locations03[508],GetRandomReal(0,360))
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(100.00,140.00),140.00)
call GroupAddUnit(udg_groups02[508],bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[508])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_locations03[510]=PolarProjectionBJ(udg_locations03[523],480.00,(GetUnitFacing(GetTriggerUnit())-50.00))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[508]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[510],55.00,55.00))
call CreateNUnitsAtLoc(1,'obot',GetOwningPlayer(udg_units14[304]),udg_locations03[508],GetRandomReal(0,360))
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(250.00,290.00),290.00)
call GroupAddUnit(udg_groups02[508],bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[508])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_locations03[511]=PolarProjectionBJ(udg_locations03[523],500.00,(GetUnitFacing(GetTriggerUnit())+5.00))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[508]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[511],55.00,55.00))
call CreateNUnitsAtLoc(1,'obot',GetOwningPlayer(udg_units14[304]),udg_locations03[508],GetRandomReal(0,360))
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(330.00,370.00),370.00)
call GroupAddUnit(udg_groups02[508],bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[508])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_locations03[512]=PolarProjectionBJ(udg_locations03[513],120.00,AngleBetweenPoints(udg_locations03[513],GetUnitLoc(GetTriggerUnit())))
call CreateNUnitsAtLoc(1,'odes',GetOwningPlayer(udg_units14[304]),udg_locations03[512],GetUnitFacing(GetTriggerUnit()))
call GroupAddUnit(udg_groups02[508],bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,400.00,400.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[24]=PolarProjectionBJ(PolarProjectionBJ(GetUnitLoc(udg_units14[304]),(DistanceBetweenPoints(GetUnitLoc(udg_units14[304]),GetUnitLoc(udg_units13[304]))/2.00),udg_reals01[304]),GetRandomReal(0,500.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'okod',GetOwningPlayer(udg_units14[304]),udg_locations03[24],bj_UNIT_FACING)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,65.00)
call UnitApplyTimedLifeBJ(5.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[24])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(1.00)
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units14[304]))
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units13[304]))
call DestroyEffect(udg_effects02[2])
call ShowUnit(udg_units14[304],false)
call PauseUnit(udg_units14[304],true)
set udg_locations03[23]=GetUnitLoc(udg_units14[304])
call CreateNUnitsAtLoc(1,'ownr',GetOwningPlayer(udg_units14[304]),udg_locations03[23],GetUnitFacing(udg_units14[304]))
call RemoveLocation(udg_locations03[23])
set udg_units15[5]=bj_lastCreatedUnit
set udg_effects02[2]=AddSpecialEffectTargetUnitBJ("hand,right",udg_units15[5],"Abilities\\Weapons\\GreenDragonMissile\\GreenDragonMissile.mdl")
call SetUnitTimeScalePercent(udg_units15[5],50.00)
call SetUnitAnimation(udg_units15[5],"walk")
call TriggerSleepAction(0.10)
call SetUnitPositionLocFacingLocBJ(udg_units15[5],udg_locations03[509],udg_locations03[513])
call SetUnitFlyHeight(udg_units15[5],140.00,0.00)
call SetUnitAnimation(udg_units15[5],"walk")
call TriggerSleepAction(0.10)
call SetUnitPositionLocFacingLocBJ(udg_units15[5],udg_locations03[510],udg_locations03[513])
call SetUnitFlyHeight(udg_units15[5],290.00,0.00)
call SetUnitAnimation(udg_units15[5],"walk")
call TriggerSleepAction(0.10)
call SetUnitPositionLocFacingLocBJ(udg_units15[5],udg_locations03[511],udg_locations03[513])
call SetUnitFlyHeight(udg_units15[5],370.00,0.00)
call SetUnitAnimation(udg_units15[5],"walk")
call TriggerSleepAction(0.10)
set udg_locations03[514]=PolarProjectionBJ(udg_locations03[512],100.00,GetUnitFacing(udg_units13[304]))
call SetUnitPositionLocFacingLocBJ(udg_units15[5],udg_locations03[514],udg_locations03[513])
call SetUnitFlyHeight(udg_units15[5],400.00,0.00)
call SetUnitTimeScalePercent(udg_units15[5],100.00)
call SetUnitAnimation(udg_units15[5],"attack")
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units13[304]),15.00)
call TriggerSleepAction(0.10)
call TerrainDeformationCraterBJ(0.40,false,udg_locations03[513],100.00,120.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'nser',GetOwningPlayer(GetTriggerUnit()),udg_locations03[513],GetUnitFacing(udg_units15[5]))
call SetUnitFlyHeight(bj_lastCreatedUnit,400.00,0.00)
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call AddSpecialEffectTargetUnitBJ("origin",udg_units13[304],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_reals01[1507]=GetUnitFacing(udg_units15[5])
call SetUnitFlyHeight(udg_units13[304],GetUnitDefaultFlyHeight(udg_units13[304]),600.00)
call UnitRemoveAbility(udg_units13[304],'Amrf')
call SetUnitAnimation(udg_units13[304],"death")
call EnableTrigger(udg_trigger121)
call TriggerSleepAction(0.20)
call RemoveUnit(udg_units15[5])
call ShowUnit(udg_units14[304],true)
call SetUnitPositionLocFacingLocBJ(udg_units14[304],udg_locations03[512],udg_locations03[513])
call PauseUnit(udg_units14[304],false)
call TriggerSleepAction(0.60)
call DisableTrigger(udg_trigger121)
call SetUnitInvulnerable(udg_units13[304],false)
call PauseUnit(udg_units13[304],false)
call ForGroupBJ(udg_groups02[508],function Trig_ssq_Func083A)
call UnitDamageTarget(udg_units14[304],udg_units13[304],(I2R(GetHeroStatBJ(0,udg_units14[304],true))*15.00),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units13[304]))
set udg_locations03[513]=GetUnitLoc(udg_units13[304])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[508]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[513],300.00,300.00))
call AddSpecialEffectLocBJ(udg_locations03[508],"Doodads\\Terrain\\G_RockChunks\\G_RockChunks1.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[508],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[508])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[509])
call RemoveLocation(udg_locations03[510])
call RemoveLocation(udg_locations03[511])
call RemoveLocation(udg_locations03[512])
call RemoveLocation(udg_locations03[513])
call RemoveLocation(udg_locations03[514])
call RemoveLocation(udg_locations03[523])
call GroupClear(udg_groups02[508])
endfunction
function Trig_ssq3_Actions takes nothing returns nothing
set udg_locations03[513]=GetUnitLoc(udg_units13[304])
set udg_locations03[514]=PolarProjectionBJ(udg_locations03[513],23.00,udg_reals01[1507])
call SetUnitPositionLocFacingLocBJ(udg_units13[304],udg_locations03[514],GetUnitLoc(udg_units14[304]))
call AddSpecialEffectTargetUnitBJ("origin",udg_units13[304],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[513])
call RemoveLocation(udg_locations03[514])
endfunction
function Trig_yhxw_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ANcs'))
endfunction
function Trig_yhxw_Actions takes nothing returns nothing
set udg_units14[5]=GetTriggerUnit()
set udg_locations01[1]=GetSpellTargetLoc()
set udg_locations01[227]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[26]=PolarProjectionBJ(udg_locations01[1],400.00,(60.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLocFacingLocBJ(1,'hsor',GetOwningPlayer(GetTriggerUnit()),udg_locations01[227],udg_locations01[1])
call SetUnitScalePercent(bj_lastCreatedUnit,200.00,200.00,200.00)
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call IssuePointOrderLoc(bj_lastCreatedUnit,"summonfactory",udg_locations03[26])
call RemoveLocation(udg_locations03[26])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations01[1])
endfunction
function Trig_yhxw2_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='owar'))
endfunction
function Trig_yhxw2_Actions takes nothing returns nothing
set udg_locations03[155]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations03[155],"Objects\\Spawnmodels\\NightElf\\NECancelDeath\\NECancelDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[155],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[27]=PolarProjectionBJ(udg_locations03[155],GetRandomReal(220.00,280.00),(36.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLocFacingLocBJ(1,'uban',GetOwningPlayer(GetTriggerUnit()),udg_locations03[155],udg_locations03[27])
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call IssuePointOrderLoc(bj_lastCreatedUnit,"summonfactory",udg_locations03[27])
call RemoveLocation(udg_locations03[27])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[155])
endfunction
function Trig_yhxw3_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='ogrk'))
endfunction
function Trig_yhxw3_Func006001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[5])))
endfunction
function Trig_yhxw3_Func006Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)))then
return false
endif
return true
endfunction
function Trig_yhxw3_Func006A takes nothing returns nothing
if(Trig_yhxw3_Func006Func001C())then
call UnitDamageTarget(udg_units14[5],GetEnumUnit(),(60.00*I2R(GetUnitAbilityLevel(udg_units14[5],'ANcs'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
call UnitDamageTarget(udg_units14[5],GetEnumUnit(),(160.00*I2R(GetUnitAbilityLevel(udg_units14[5],'ANcs'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
endfunction
function Trig_yhxw3_Actions takes nothing returns nothing
set udg_locations03[155]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations03[155],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,udg_locations03[155],Condition(function Trig_yhxw3_Func006001003)),function Trig_yhxw3_Func006A)
call RemoveLocation(udg_locations03[155])
endfunction
function Trig_QNL_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A00E'))
endfunction
function Trig_QNL_Func014A takes nothing returns nothing
call RemoveLocation(GetUnitLoc(GetEnumUnit()))
call KillUnit(GetEnumUnit())
endfunction
function Trig_QNL_Actions takes nothing returns nothing
set udg_units19[741]=GetTriggerUnit()
call TriggerSleepAction(0.10)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitAnimation(GetTriggerUnit(),"spell two")
call AddSpecialEffectTargetUnitBJ("hand left",GetTriggerUnit(),"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_locations03[18]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'nwna',GetOwningPlayer(GetTriggerUnit()),udg_locations03[18],GetRandomReal((GetUnitFacing(GetTriggerUnit())-60.00),(GetUnitFacing(GetTriggerUnit())+60.00)))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call GroupAddUnit(udg_groups03[5],bj_lastCreatedUnit)
call GroupAddUnit(udg_groups03[6],bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(0.65,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[18])
call EnableTrigger(udg_trigger126)
call TriggerSleepAction(0.80)
call DisableTrigger(udg_trigger126)
call PauseUnit(GetTriggerUnit(),false)
call ForGroupBJ(udg_groups03[6],function Trig_QNL_Func014A)
call GroupClear(udg_groups03[5])
call GroupClear(udg_groups03[6])
endfunction
function Trig_QNL2_Func001A takes nothing returns nothing
set udg_locations03[135]=PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),150.00,GetRandomReal((GetUnitFacing(GetEnumUnit())-60.00),(GetUnitFacing(GetEnumUnit())+60.00)))
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_locations03[135],GetUnitFacing(udg_units19[741]))
call RemoveLocation(udg_locations03[135])
set udg_locations03[135]=PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),50.00,GetUnitFacing(GetEnumUnit()))
call CreateNUnitsAtLoc(1,'nmpe',GetOwningPlayer(GetEnumUnit()),udg_locations03[135],GetRandomReal(0,360))
call KillUnit(bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[135])
endfunction
function Trig_QNL2_Func002A takes nothing returns nothing
set udg_locations03[19]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLoc(1,'nwna',GetOwningPlayer(GetEnumUnit()),udg_locations03[19],GetRandomReal((GetUnitFacing(GetEnumUnit())-70.00),(GetUnitFacing(GetEnumUnit())+70.00)))
call GroupAddUnit(udg_groups03[6],bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[19])
endfunction
function Trig_QNL2_Actions takes nothing returns nothing
call ForGroupBJ(udg_groups03[6],function Trig_QNL2_Func001A)
call ForGroupBJ(udg_groups03[5],function Trig_QNL2_Func002A)
endfunction
function Trig_QNLSH_Func005C takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='nmpe'))or((GetUnitTypeId(GetTriggerUnit())=='nwna'))
endfunction
function Trig_QNLSH_Conditions takes nothing returns boolean
return((((GetUnitTypeId(GetTriggerUnit())=='nmpe'))or((GetUnitTypeId(GetTriggerUnit())=='nwna'))))
endfunction
function Trig_QNLSH_Func006001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_QNLSH_Func006A takes nothing returns nothing
call UnitDamageTarget(udg_units19[741],GetEnumUnit(),(10.00*I2R(GetUnitAbilityLevel(udg_units19[741],'A00E'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_QNLSH_Actions takes nothing returns nothing
set udg_locations03[136]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations03[136],"Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,udg_locations03[136],Condition(function Trig_QNLSH_Func006001003)),function Trig_QNLSH_Func006A)
call RemoveLocation(udg_locations03[136])
call RemoveUnit(GetTriggerUnit())
endfunction
function Trig_xuyaosiwanghoushanchudedanwei_Func003C takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='njgb'))or((GetUnitTypeId(GetTriggerUnit())=='njg1'))or((GetUnitTypeId(GetTriggerUnit())=='nskg'))or((GetUnitTypeId(GetTriggerUnit())=='nwns'))or((GetUnitTypeId(GetTriggerUnit())=='hpxe'))or((GetUnitTypeId(GetTriggerUnit())=='negz'))or((GetUnitTypeId(GetTriggerUnit())=='nvdg'))or((GetUnitTypeId(GetTriggerUnit())=='zhyd'))or((GetUnitTypeId(GetTriggerUnit())=='hphx'))or((GetUnitTypeId(GetTriggerUnit())=='ntrt'))or((GetUnitTypeId(GetTriggerUnit())=='ucs3'))or((GetUnitTypeId(GetTriggerUnit())=='nwgs'))or((GetUnitTypeId(GetTriggerUnit())=='edes'))or((GetUnitTypeId(GetTriggerUnit())=='nnmg'))or((GetUnitTypeId(GetTriggerUnit())=='eshd'))or((GetUnitTypeId(GetTriggerUnit())=='uktg'))or((GetUnitTypeId(GetTriggerUnit())=='hgry'))or((GetUnitTypeId(GetTriggerUnit())=='hcth'))or((GetUnitTypeId(GetTriggerUnit())=='nmed'))or((GetUnitTypeId(GetTriggerUnit())=='ntrh'))or((GetUnitTypeId(GetTriggerUnit())=='hwat'))or((GetUnitTypeId(GetTriggerUnit())=='nvil'))or((GetUnitTypeId(GetTriggerUnit())=='noga'))or((GetUnitTypeId(GetTriggerUnit())=='ndrn'))or((GetUnitTypeId(GetTriggerUnit())=='ndqt'))or((GetUnitTypeId(GetTriggerUnit())=='ndsa'))or((GetUnitTypeId(GetTriggerUnit())=='ncen'))or((GetUnitTypeId(GetTriggerUnit())=='ncim'))or((GetUnitTypeId(GetTriggerUnit())=='u007'))
endfunction
function Trig_xuyaosiwanghoushanchudedanwei_Conditions takes nothing returns boolean
return((((GetUnitTypeId(GetTriggerUnit())=='njgb'))or((GetUnitTypeId(GetTriggerUnit())=='njg1'))or((GetUnitTypeId(GetTriggerUnit())=='nskg'))or((GetUnitTypeId(GetTriggerUnit())=='nwns'))or((GetUnitTypeId(GetTriggerUnit())=='hpxe'))or((GetUnitTypeId(GetTriggerUnit())=='negz'))or((GetUnitTypeId(GetTriggerUnit())=='nvdg'))or((GetUnitTypeId(GetTriggerUnit())=='zhyd'))or((GetUnitTypeId(GetTriggerUnit())=='hphx'))or((GetUnitTypeId(GetTriggerUnit())=='ntrt'))or((GetUnitTypeId(GetTriggerUnit())=='ucs3'))or((GetUnitTypeId(GetTriggerUnit())=='nwgs'))or((GetUnitTypeId(GetTriggerUnit())=='edes'))or((GetUnitTypeId(GetTriggerUnit())=='nnmg'))or((GetUnitTypeId(GetTriggerUnit())=='eshd'))or((GetUnitTypeId(GetTriggerUnit())=='uktg'))or((GetUnitTypeId(GetTriggerUnit())=='hgry'))or((GetUnitTypeId(GetTriggerUnit())=='hcth'))or((GetUnitTypeId(GetTriggerUnit())=='nmed'))or((GetUnitTypeId(GetTriggerUnit())=='ntrh'))or((GetUnitTypeId(GetTriggerUnit())=='hwat'))or((GetUnitTypeId(GetTriggerUnit())=='nvil'))or((GetUnitTypeId(GetTriggerUnit())=='noga'))or((GetUnitTypeId(GetTriggerUnit())=='ndrn'))or((GetUnitTypeId(GetTriggerUnit())=='ndqt'))or((GetUnitTypeId(GetTriggerUnit())=='ndsa'))or((GetUnitTypeId(GetTriggerUnit())=='ncen'))or((GetUnitTypeId(GetTriggerUnit())=='ncim'))or((GetUnitTypeId(GetTriggerUnit())=='u007'))))
endfunction
function Trig_xuyaosiwanghoushanchudedanwei_Actions takes nothing returns nothing
call RemoveLocation(GetUnitLoc(GetTriggerUnit()))
call RemoveUnit(GetTriggerUnit())
endfunction
function Trig_sblx_mz_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ANbf'))
endfunction
function Trig_sblx_mz_Func005Func003Func008001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[52])))
endfunction
function Trig_sblx_mz_Func005Func003Func008A takes nothing returns nothing
call UnitDamageTarget(udg_units14[52],GetEnumUnit(),(150.00*(0.50*I2R(GetUnitAbilityLevel(udg_units14[52],'ANbf')))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_sblx_mz_Func009Func005001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[52])))
endfunction
function Trig_sblx_mz_Func009Func005A takes nothing returns nothing
call UnitDamageTarget(udg_units14[52],GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_units14[52],true))*(0.50*I2R(GetUnitAbilityLevel(udg_units14[52],'ANbf')))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_sblx_mz_Func009A takes nothing returns nothing
set udg_locations03[150]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[150],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,udg_locations03[150],Condition(function Trig_sblx_mz_Func009Func005001003)),function Trig_sblx_mz_Func009Func005A)
call RemoveLocation(udg_locations03[150])
endfunction
function Trig_sblx_mz_Actions takes nothing returns nothing
set udg_units14[52]=GetTriggerUnit()
call TriggerSleepAction(0.10)
call PauseUnit(udg_units14[52],true)
call SetUnitAnimation(udg_units14[52],"spell one")
set udg_integers01[439]=1
loop
exitwhen udg_integers01[439]>10
set udg_locations06[101]=GetUnitLoc(GetTriggerUnit())
set udg_locations06[102]=PolarProjectionBJ(udg_locations06[101],(-300.00+(100.00*I2R(udg_integers01[439]))),GetUnitFacing(GetTriggerUnit()))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[34]=PolarProjectionBJ(udg_locations06[102],(-600.00+(100.00*I2R(bj_forLoopAIndex))),(GetUnitFacing(GetTriggerUnit())-90.00))
call CreateNUnitsAtLoc(1,'nchw',GetOwningPlayer(GetTriggerUnit()),udg_locations03[34],GetUnitFacing(GetTriggerUnit()))
call SetUnitTimeScale(bj_lastCreatedUnit,0.50)
call SetUnitFlyHeight(bj_lastCreatedUnit,0.00,400.00)
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call GroupAddUnit(udg_groups02[53],bj_lastCreatedUnit)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,udg_locations03[34],Condition(function Trig_sblx_mz_Func005Func003Func008001003)),function Trig_sblx_mz_Func005Func003Func008A)
call RemoveLocation(udg_locations03[34])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations06[101])
call RemoveLocation(udg_locations06[102])
call TriggerSleepAction(0.10)
set udg_integers01[439]=udg_integers01[439]+1
endloop
call TriggerSleepAction(1.00)
call SetUnitAnimation(udg_units14[52],"spell")
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units14[52]),17.00)
call ForGroupBJ(udg_groups02[53],function Trig_sblx_mz_Func009A)
call CreateTextTagUnitBJ("____!",GetTriggerUnit(),0,10.50,100,100,100.00,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90.00)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.20)
call TriggerSleepAction(0.40)
call PauseUnit(udg_units14[52],false)
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units14[52]))
call GroupClear(udg_groups02[53])
endfunction
function Trig_slz_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02Y'))
endfunction
function Trig_slz_Func010001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_slz_Func010001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_slz_Func010001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_slz_Func010A takes nothing returns nothing
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(20.00*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A02Y'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
set udg_locations03[150]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[150],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[150])
endfunction
function Trig_slz_Actions takes nothing returns nothing
set udg_locations01[7]=GetSpellTargetLoc()
set udg_units30[1200]=GetTriggerUnit()
call TriggerSleepAction(0.10)
call SetUnitAnimation(GetTriggerUnit(),"spell one")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'efdr',GetOwningPlayer(GetTriggerUnit()),udg_locations01[7],GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(4.00,'BTLF',bj_lastCreatedUnit)
set udg_locations03[35]=PolarProjectionBJ(udg_locations01[7],300.00,(60.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLocFacingLocBJ(1,'nw2w',GetOwningPlayer(GetTriggerUnit()),udg_locations03[35],udg_locations01[7])
call SetUnitFlyHeight(bj_lastCreatedUnit,0.00,100.00)
call UnitApplyTimedLifeBJ(4.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[35])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger131)
call TriggerSleepAction(2.50)
call DisableTrigger(udg_trigger131)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations01[7],Condition(function Trig_slz_Func010001003)),function Trig_slz_Func010A)
call RemoveLocation(udg_locations01[7])
endfunction
function Trig_slz2_Func001001003001001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_slz2_Func001001003001002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_slz2_Func001001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitAliveBJ(GetFilterUnit())))
endfunction
function Trig_slz2_Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units30[1200])))
endfunction
function Trig_slz2_Func001001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitAliveBJ(GetFilterUnit())))),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units30[1200]))))
endfunction
function Trig_slz2_Func001A takes nothing returns nothing
set udg_locations03[35]=PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),10.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_locations01[7]))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations03[35]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations03[35]))
call RemoveLocation(udg_locations03[35])
call UnitDamageTarget(udg_units30[1200],GetEnumUnit(),(1.00*I2R(GetUnitAbilityLevel(udg_units30[1200],'A02Y'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_slz2_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations01[7],Condition(function Trig_slz2_Func001001003)),function Trig_slz2_Func001A)
endfunction
function Trig_rq_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A010'))
endfunction
function Trig_rq_Actions takes nothing returns nothing
set udg_units14[900]=GetTriggerUnit()
set udg_units14[901]=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
call PauseUnit(udg_units14[900],true)
call PauseUnit(udg_units14[901],true)
call UnitAddAbility(udg_units14[900],'A02Q')
call SetUnitPositionLocFacingLocBJ(udg_units14[900],PolarProjectionBJ(GetUnitLoc(udg_units14[901]),90.00,(GetUnitFacing(udg_units14[900])-180.00)),GetUnitLoc(udg_units14[901]))
call SetUnitTimeScale(GetTriggerUnit(),5.00)
call AddSpecialEffectTargetUnitBJ("lefthand",GetTriggerUnit(),"Abilities\\Spells\\NightElf\\Rejuvenation\\RejuvenationTarget.mdl")
set udg_effects02[110]=bj_lastCreatedEffect
call AddSpecialEffectTargetUnitBJ("righthand",GetTriggerUnit(),"Abilities\\Spells\\NightElf\\Rejuvenation\\RejuvenationTarget.mdl")
set udg_effects02[111]=bj_lastCreatedEffect
call EnableTrigger(udg_trigger133)
call TriggerSleepAction(1.00)
call DisableTrigger(udg_trigger133)
call DestroyEffect(udg_effects02[110])
call DestroyEffect(udg_effects02[111])
call UnitRemoveAbility(udg_units14[900],'A02Q')
call SetUnitTimeScale(udg_units14[900],1.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units14[901]),"Units\\NightElf\\Wisp\\WispExplode.mdl")
call UnitDamageTarget(udg_units14[900],udg_units14[901],(I2R(GetHeroStatBJ(1,udg_units14[900],true))*(I2R(GetUnitAbilityLevel(udg_units14[900],'A010'))/1.00)),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call SetUnitAnimation(udg_units14[901],"death")
call PauseUnit(udg_units14[900],false)
call PauseUnit(udg_units14[901],false)
endfunction
function Trig_rq2_Actions takes nothing returns nothing
call SetUnitAnimation(udg_units14[900],"attack")
endfunction
function Trig_KLZD_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='ncpn'))
endfunction
function Trig_KLZD_Actions takes nothing returns nothing
set udg_locations03[39]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'uswb',GetOwningPlayer(udg_units19[940]),udg_locations03[39],(36.00*I2R(bj_forLoopAIndex)))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
set udg_locations03[156]=GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(GetTriggerUnit()),600.00,600.00))
call IssuePointOrderLoc(bj_lastCreatedUnit,"summonfactory",udg_locations03[156])
call RemoveLocation(udg_locations03[156])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[39])
endfunction
function Trig_KLZD_1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A052'))
endfunction
function Trig_KLZD_1_Actions takes nothing returns nothing
set udg_units19[940]=GetTriggerUnit()
endfunction
function Trig_KLZD_2_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='ncpn'))
endfunction
function Trig_KLZD_2_Func010001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units19[940])))
endfunction
function Trig_KLZD_2_Func010Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)))then
return false
endif
return true
endfunction
function Trig_KLZD_2_Func010A takes nothing returns nothing
if(Trig_KLZD_2_Func010Func001C())then
call UnitDamageTarget(udg_units19[940],GetEnumUnit(),((I2R(GetHeroStatBJ(2,udg_units19[940],true))/5.00)*I2R(GetUnitAbilityLevel(udg_units19[940],'A052'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
call UnitDamageTarget(udg_units19[940],GetEnumUnit(),((I2R(GetHeroStatBJ(2,udg_units19[940],true))*1.00)*I2R(GetUnitAbilityLevel(udg_units19[940],'A052'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
endfunction
function Trig_KLZD_2_Actions takes nothing returns nothing
set udg_locations03[156]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations03[156],"war3mapImported\\FlameBomb.mdx")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[156],"Objects\\Spawnmodels\\NightElf\\NECancelDeath\\NECancelDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[156],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,udg_locations03[156],Condition(function Trig_KLZD_2_Func010001003)),function Trig_KLZD_2_Func010A)
call RemoveLocation(udg_locations03[156])
endfunction
function Trig_qianniao_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A00A'))
endfunction
function Trig_qianniao_Actions takes nothing returns nothing
set udg_units20[1]=GetTriggerUnit()
set udg_units20[2]=GetSpellTargetUnit()
call PlayThematicMusic("HHQ.mp3")
call StopMusic(true)
call TriggerSleepAction(0.10)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitAnimation(GetTriggerUnit(),"spell two")
set udg_integers01[607]=1
loop
exitwhen udg_integers01[607]>2
call TriggerSleepAction(0.10)
call AddSpecialEffectTargetUnitBJ("hand,left",GetTriggerUnit(),"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_integers01[607]=udg_integers01[607]+1
endloop
set udg_effect01=AddSpecialEffectTargetUnitBJ("hand,left",GetTriggerUnit(),"Abilities\\Spells\\Orc\\LightningBolt\\LightningBoltMissile.mdl")
call SetUnitTimeScalePercent(udg_units20[1],400.00)
call SetUnitAnimation(udg_units20[1],"Spell three")
call SetUnitPathing(udg_units20[1],false)
call EnableTrigger(udg_trigger138)
endfunction
function Trig_qn2_Func001Func001Func008001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_qn2_Func001Func001Func008001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units20[1])))
endfunction
function Trig_qn2_Func001Func001Func008001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units20[1]))))
endfunction
function Trig_qn2_Func001Func001Func008A takes nothing returns nothing
set udg_locations03[159]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[159],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call UnitDamageTargetBJ(udg_units20[1],GetEnumUnit(),(I2R(GetHeroStatBJ(1,udg_units20[1],true))*I2R(GetUnitAbilityLevelSwapped('A00A',udg_units20[1]))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
call RemoveLocation(udg_locations03[159])
endfunction
function Trig_qn2_Func001Func001C takes nothing returns boolean
return((udg_reals01[201]==0.00))
endfunction
function Trig_qn2_Func001Func005C takes nothing returns boolean
return((udg_reals01[201]==10.00))
endfunction
function Trig_qn2_Func001Func006C takes nothing returns boolean
return((IsUnitDeadBJ(udg_units20[2])))or((IsUnitDeadBJ(udg_units20[1])))or((IsUnitInGroup(udg_units20[1],GetUnitsInRangeOfLocAll(100.00,GetUnitLoc(udg_units20[2])))))or((R2I(DistanceBetweenPoints(GetUnitLoc(udg_units20[1]),GetUnitLoc(udg_units20[2])))>1400))
endfunction
function Trig_qn2_Func001C takes nothing returns boolean
return((((IsUnitDeadBJ(udg_units20[2])))or((IsUnitDeadBJ(udg_units20[1])))or((IsUnitInGroup(udg_units20[1],GetUnitsInRangeOfLocAll(100.00,GetUnitLoc(udg_units20[2])))))or((R2I(DistanceBetweenPoints(GetUnitLoc(udg_units20[1]),GetUnitLoc(udg_units20[2])))>1400))))
endfunction
function Trig_qn2_Actions takes nothing returns nothing
if((((IsUnitDeadBJ(udg_units20[2])))or((IsUnitDeadBJ(udg_units20[1])))or((IsUnitInGroup(udg_units20[1],GetUnitsInRangeOfLocAll(100.00,GetUnitLoc(udg_units20[2])))))or((R2I(DistanceBetweenPoints(GetUnitLoc(udg_units20[1]),GetUnitLoc(udg_units20[2])))>1400))))then
if((udg_reals01[201]==0.00))then
set udg_locations03[158]=GetUnitLoc(udg_units20[2])
call DestroyEffect(udg_effect01)
call SetUnitTimeScalePercent(udg_units20[1],100.00)
call SetUnitAnimation(udg_units20[1],"Spell four")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_reals01[7050]=GetRandomReal(280.00,400.00)
call CreateNUnitsAtLoc(1,'nhew',GetOwningPlayer(udg_units20[1]),udg_locations03[158],GetRandomReal(0,360))
call SetUnitScalePercent(bj_lastCreatedUnit,udg_reals01[7050],udg_reals01[7050],udg_reals01[7050])
call SetUnitTimeScalePercent(bj_lastCreatedUnit,50.00)
call SetUnitFlyHeight(bj_lastCreatedUnit,-300.00,0.00)
call UnitApplyTimedLifeBJ(0.15,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[158],Condition(function Trig_qn2_Func001Func001Func008001003)),function Trig_qn2_Func001Func001Func008A)
call RemoveLocation(udg_locations03[158])
endif
if((udg_reals01[201]==10.00))then
call DisableTrigger(GetTriggeringTrigger())
set udg_reals01[201]=0.00
call SetUnitPathing(udg_units20[1],true)
call PauseUnit(udg_units20[1],false)
set udg_units20[1]=null
set udg_units20[2]=null
else
set udg_reals01[201]=(udg_reals01[201]+1)
set udg_locations03[158]=PolarProjectionBJ(GetUnitLoc(udg_units20[1]),13.00,AngleBetweenPoints(GetUnitLoc(udg_units20[1]),GetUnitLoc(udg_units20[2])))
call SetUnitPositionLocFacingLocBJ(udg_units20[1],udg_locations03[158],GetUnitLoc(udg_units20[2]))
call AddSpecialEffectLocBJ(udg_locations03[158],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[158])
set udg_locations03[158]=PolarProjectionBJ(GetUnitLoc(udg_units20[2]),35.00,GetUnitFacing(udg_units20[1]))
call SetUnitPositionLoc(udg_units20[2],udg_locations03[158])
call AddSpecialEffectLocBJ(udg_locations03[158],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[158],"Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_reals01[7050]=GetRandomReal(280.00,400.00)
call CreateNUnitsAtLoc(1,'nhew',GetOwningPlayer(udg_units20[1]),udg_locations03[158],GetRandomReal(0,360))
call SetUnitScalePercent(bj_lastCreatedUnit,udg_reals01[7050],udg_reals01[7050],udg_reals01[7050])
call SetUnitTimeScalePercent(bj_lastCreatedUnit,50.00)
call SetUnitFlyHeight(bj_lastCreatedUnit,-300.00,0.00)
call UnitApplyTimedLifeBJ(0.15,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[158])
endif
else
set udg_locations03[604]=GetUnitLoc(udg_units20[1])
set udg_locations03[605]=GetUnitLoc(udg_units20[2])
set udg_locations03[158]=PolarProjectionBJ(udg_locations03[604],30.00,AngleBetweenPoints(udg_locations03[604],udg_locations03[605]))
call SetUnitPositionLocFacingLocBJ(udg_units20[1],udg_locations03[158],udg_locations03[605])
call AddSpecialEffectLocBJ(udg_locations03[158],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectTargetUnitBJ("hand,left",udg_units20[1],"Abilities\\Spells\\Orc\\LightningBolt\\LightningBoltMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[158])
call RemoveLocation(udg_locations03[604])
call RemoveLocation(udg_locations03[605])
endif
endfunction
function Trig_huanshufanji_Conditions takes nothing returns boolean
return((GetUnitAbilityLevel(GetTriggerUnit(),'A07Z')>=1))and((GetRandomInt(1,8)==2))and((IsUnitType(GetEventDamageSource(),UNIT_TYPE_STRUCTURE)==false))
endfunction
function Trig_huanshufanji_Actions takes nothing returns nothing
set udg_locations03[42]=GetUnitLoc(GetAttacker())
call CreateNUnitsAtLoc(1,'uswb',GetOwningPlayer(GetTriggerUnit()),udg_locations03[42],GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call IssueTargetOrder(bj_lastCreatedUnit,"thunderbolt",GetAttacker())
call CreateNUnitsAtLoc(1,'uktg',GetOwningPlayer(GetTriggerUnit()),udg_locations03[42],(GetUnitFacing(GetAttacker())+90.00))
call SetUnitAnimation(bj_lastCreatedUnit,"spell two")
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'uktg',GetOwningPlayer(GetTriggerUnit()),udg_locations03[42],(GetUnitFacing(GetAttacker())-90.00))
call SetUnitAnimation(bj_lastCreatedUnit,"spell two")
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call UnitDamageTarget(GetTriggerUnit(),GetAttacker(),(50.00*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A07Z'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations03[42])
endfunction
function Trig_fss_Func001C takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='ushd'))
endfunction
function Trig_fss_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='ushd'))
endfunction
function Trig_fss_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call RemoveLocation(GetUnitLoc(GetTriggerUnit()))
call RemoveUnit(GetTriggerUnit())
endfunction
function Trig_HY2_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='ugho'))
endfunction
function Trig_HY2_Actions takes nothing returns nothing
call RemoveUnit(GetTriggerUnit())
endfunction
function Trig_haohuoqiu_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ANst'))
endfunction
function Trig_haohuoqiu_Actions takes nothing returns nothing
set udg_units30[1255]=GetTriggerUnit()
set udg_integer11=0
set udg_locations03[520]=GetUnitLoc(GetTriggerUnit())
call TriggerSleepAction(0.10)
call SetUnitTimeScalePercent(GetTriggerUnit(),0.00)
call EnableTrigger(udg_trigger143)
call TriggerSleepAction(0.90)
call DisableTrigger(udg_trigger143)
call TriggerSleepAction(0.10)
call SetUnitTimeScalePercent(GetTriggerUnit(),100.00)
endfunction
function Trig_haohuoqiu2_Func010001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units30[1255])))
endfunction
function Trig_haohuoqiu2_Func010A takes nothing returns nothing
call UnitDamageTarget(udg_units30[1255],GetEnumUnit(),(6.00*I2R(GetUnitAbilityLevel(udg_units30[1255],'ANst'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_haohuoqiu2_Actions takes nothing returns nothing
set udg_integer11=(udg_integer11+1)
set udg_locations03[106]=PolarProjectionBJ(udg_locations03[520],(75.00+(30.00*I2R(udg_integer11))),GetUnitFacing(udg_units30[1255]))
call CreateNUnitsAtLoc(1,'hbot',GetOwningPlayer(udg_units30[1255]),udg_locations03[106],GetUnitFacing(udg_units30[1255]))
call SetUnitScalePercent(bj_lastCreatedUnit,(80.00+(18.00*I2R(udg_integer11))),(80.00+(18.00*I2R(udg_integer11))),(80.00+(18.00*I2R(udg_integer11))))
call UnitApplyTimedLifeBJ(1.50,'BTLF',bj_lastCreatedUnit)
call GroupAddUnit(udg_groups02[552],bj_lastCreatedUnit)
call AddSpecialEffectLocBJ(udg_locations03[106],"Abilities\\Weapons\\SteamTank\\SteamTankImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching((100.00+(12.00*I2R(udg_integer11))),udg_locations03[106],Condition(function Trig_haohuoqiu2_Func010001003)),function Trig_haohuoqiu2_Func010A)
call RemoveLocation(udg_locations03[106])
endfunction
function Trig_haohuoqiu3_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ANst'))
endfunction
function Trig_haohuoqiu3_Func004A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_haohuoqiu3_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger143)
call SetUnitTimeScalePercent(GetTriggerUnit(),100.00)
call TriggerSleepAction(0.10)
call ForGroupBJ(udg_groups02[552],function Trig_haohuoqiu3_Func004A)
call GroupClear(udg_groups02[552])
endfunction
function Trig_FSBP_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A031'))
endfunction
function Trig_FSBP_Actions takes nothing returns nothing
set udg_units19[517]=GetTriggerUnit()
set udg_units18[517]=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units19[517]),"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_locations03[46]=PolarProjectionBJ(GetUnitLoc(udg_units18[517]),60.00,AngleBetweenPoints(GetUnitLoc(udg_units19[517]),GetUnitLoc(udg_units18[517])))
call CreateNUnitsAtLocFacingLocBJ(1,'edes',GetOwningPlayer(udg_units19[517]),udg_locations03[46],GetUnitLoc(udg_units19[517]))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call SetUnitFlyHeight(bj_lastCreatedUnit,0.00,1000000000.00)
call SetUnitAnimation(bj_lastCreatedUnit,"spell")
set udg_units15[12]=bj_lastCreatedUnit
call RemoveLocation(udg_locations03[46])
call TriggerSleepAction(0.40)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units19[517]),"Abilities\\Weapons\\GlaiveMissile\\GlaiveMissileTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call KillUnit(udg_units15[12])
endfunction
function Trig_FSBP2_Conditions takes nothing returns boolean
return((GetTriggerUnit()==udg_units15[12]))
endfunction
function Trig_FSBP2_Func006001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_FSBP2_Func006001003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_FSBP2_Func006001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))
endfunction
function Trig_FSBP2_Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_FSBP2_Func006001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_FSBP2_Func006A takes nothing returns nothing
call UnitAddAbility(GetEnumUnit(),'Amrf')
call SetUnitFlyHeight(GetEnumUnit(),200.00,1000.00)
call UnitRemoveAbility(GetEnumUnit(),'Amrf')
call UnitDamageTargetBJ(udg_units19[517],GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_units19[517],true))*(I2R(GetUnitAbilityLevel(udg_units19[517],'A031'))*0.70)),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
set udg_locations03[165]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[165],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call GroupAddUnit(udg_groups03[7],GetEnumUnit())
call RemoveLocation(udg_locations03[165])
endfunction
function Trig_FSBP2_Func010A takes nothing returns nothing
call SetUnitFlyHeight(GetEnumUnit(),0.00,2000.00)
endfunction
function Trig_FSBP2_Actions takes nothing returns nothing
set udg_locations01[517]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'njga',GetOwningPlayer(GetTriggerUnit()),udg_locations01[517],bj_UNIT_FACING)
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[165]=GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(GetTriggerUnit()),400.00,400.00))
call AddSpecialEffectLocBJ(udg_locations03[165],"Objects\\Spawnmodels\\NightElf\\NECancelDeath\\NECancelDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[165])
set udg_locations03[165]=GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(GetTriggerUnit()),400.00,400.00))
call AddSpecialEffectLocBJ(udg_locations03[164],"Units\\NightElf\\Wisp\\WispExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[165])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(220.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_FSBP2_Func006001003)),function Trig_FSBP2_Func006A)
call EnableTrigger(udg_trigger147)
call RemoveUnit(GetTriggerUnit())
call TriggerSleepAction(0.20)
call ForGroupBJ(udg_groups03[7],function Trig_FSBP2_Func010A)
call TriggerSleepAction(0.10)
call DisableTrigger(udg_trigger147)
call GroupClear(udg_groups03[7])
call RemoveLocation(udg_locations01[517])
endfunction
function Trig_FSBP3_Func001A takes nothing returns nothing
set udg_locations03[165]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[165],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call RemoveLocation(udg_locations03[165])
set udg_locations03[165]=PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),15.00,AngleBetweenPoints(udg_locations01[517],GetUnitLoc(GetEnumUnit())))
call SetUnitPositionLoc(GetEnumUnit(),udg_locations03[165])
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[165])
endfunction
function Trig_FSBP3_Actions takes nothing returns nothing
call ForGroupBJ(udg_groups03[7],function Trig_FSBP3_Func001A)
endfunction
function Trig_YD_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04Y'))
endfunction
function Trig_YD_Actions takes nothing returns nothing
set udg_units19[4]=GetTriggerUnit()
set udg_units18[4]=GetSpellTargetUnit()
set udg_real07=AngleBetweenPoints(GetUnitLoc(udg_units18[4]),GetUnitLoc(udg_units19[4]))
set udg_locations02[215]=GetUnitLoc(udg_units18[4])
call TriggerSleepAction(0.10)
call CinematicFadeBJ(2,3.00,"ReplaceableTextures\\CameraMasks\\White_mask.blp",80.00,0.00,0.00,50.00)
call PauseUnit(udg_units19[4],true)
call PauseUnit(udg_units18[4],true)
call SetUnitFacingToFaceUnitTimed(udg_units18[4],udg_units19[4],0.00)
call UnitAddAbility(udg_units18[4],'Amrf')
call SetUnitFlyHeight(udg_units18[4],40.00,400.00)
call UnitRemoveAbility(udg_units18[4],'Amrf')
set udg_locations03[47]=PolarProjectionBJ(GetUnitLoc(udg_units18[4]),20.00,GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLocFacingLocBJ(1,'eilw',GetOwningPlayer(GetTriggerUnit()),udg_locations03[47],GetUnitLoc(udg_units18[4]))
call RemoveLocation(udg_locations03[47])
set udg_units15[571]=bj_lastCreatedUnit
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[47]=PolarProjectionBJ(GetUnitLoc(udg_units18[4]),250.00,(udg_real07-(60.00*I2R(bj_forLoopAIndex))))
call CreateNUnitsAtLocFacingLocBJ(1,'ebsh',GetOwningPlayer(GetTriggerUnit()),udg_locations03[47],GetUnitLoc(udg_units18[4]))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call GroupAddUnit(udg_groups03[10],bj_lastCreatedUnit)
call CreateNUnitsAtLocFacingLocBJ(1,'enec',GetOwningPlayer(GetTriggerUnit()),udg_locations03[47],GetUnitLoc(udg_units18[4]))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call GroupAddUnit(udg_groups03[10],bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[47])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger149)
call TriggerSleepAction(0.90)
call DisableTrigger(udg_trigger149)
call TriggerSleepAction(2.00)
call EnableTrigger(udg_trigger150)
endfunction
function Trig_YD2_Actions takes nothing returns nothing
set udg_real07=(udg_real07+12.00)
set udg_locations03[47]=PolarProjectionBJ(udg_locations02[215],GetRandomReal(300.00,380.00),udg_real07)
call CreateNUnitsAtLocFacingLocBJ(1,'edes',GetOwningPlayer(udg_units19[4]),udg_locations03[47],GetUnitLoc(udg_units18[4]))
call RemoveLocation(udg_locations03[47])
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100,100,100,25.00)
call AddSpecialEffectTargetUnitBJ("hand right",bj_lastCreatedUnit,"war3mapImported\\kongyadao.MDX")
call AddSpecialEffectTargetUnitBJ("hand right",bj_lastCreatedUnit,"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile.mdl")
call GroupAddUnit(udg_groups03[8],bj_lastCreatedUnit)
call SetUnitAnimation(bj_lastCreatedUnit,"walk")
endfunction
function Trig_YD3_Func001A takes nothing returns nothing
call SetUnitTimeScale(GetEnumUnit(),4.00)
call GroupRemoveUnit(udg_groups03[8],GetEnumUnit())
call GroupAddUnit(udg_groups03[9],GetEnumUnit())
endfunction
function Trig_YD3_Func002Func001C takes nothing returns boolean
return((CountUnitsInGroup(udg_groups03[8])==0))or((IsUnitDeadBJ(udg_units18[4])))
endfunction
function Trig_YD3_Func002Func003A takes nothing returns nothing
set udg_locations03[166]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[166],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveUnit(GetEnumUnit())
call RemoveLocation(udg_locations03[166])
endfunction
function Trig_YD3_Func002Func009A takes nothing returns nothing
set udg_locations03[166]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[166],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveUnit(GetEnumUnit())
call RemoveLocation(udg_locations03[166])
endfunction
function Trig_YD3_Func002Func010A takes nothing returns nothing
set udg_locations03[166]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[166],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveUnit(GetEnumUnit())
call RemoveLocation(udg_locations03[166])
endfunction
function Trig_YD3_Func002Func015A takes nothing returns nothing
set udg_locations03[166]=PolarProjectionBJ(udg_locations02[215],40.00,AngleBetweenPoints(udg_locations02[215],GetUnitLoc(GetEnumUnit())))
call SetUnitPositionLocFacingLocBJ(GetEnumUnit(),udg_locations03[166],udg_locations02[215])
call GroupRemoveUnit(udg_groups03[9],GetEnumUnit())
call RemoveLocation(udg_locations03[166])
call UnitApplyTimedLifeBJ(0.10,'BTLF',GetEnumUnit())
call SetUnitAnimation(udg_units18[4],"death")
endfunction
function Trig_YD3_Func002C takes nothing returns boolean
return((((CountUnitsInGroup(udg_groups03[8])==0))or((IsUnitDeadBJ(udg_units18[4])))))
endfunction
function Trig_YD3_Actions takes nothing returns nothing
call ForGroupBJ(GetRandomSubGroup(1,udg_groups03[8]),function Trig_YD3_Func001A)
if((((CountUnitsInGroup(udg_groups03[8])==0))or((IsUnitDeadBJ(udg_units18[4])))))then
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(udg_groups03[10],function Trig_YD3_Func002Func003A)
call SetUnitFlyHeight(udg_units18[4],0.00,0.00)
call UnitDamageTarget(udg_units19[4],udg_units18[4],(500.00+(400.00*I2R(GetUnitAbilityLevel(udg_units19[4],'A04Y')))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call PauseUnit(udg_units19[4],false)
call PauseUnit(udg_units18[4],false)
call RemoveUnit(udg_units15[571])
call ForGroupBJ(udg_groups03[8],function Trig_YD3_Func002Func009A)
call ForGroupBJ(udg_groups03[9],function Trig_YD3_Func002Func010A)
call GroupClear(udg_groups03[8])
call GroupClear(udg_groups03[9])
call GroupClear(udg_groups03[10])
call RemoveLocation(udg_locations02[215])
else
call ForGroupBJ(udg_groups03[9],function Trig_YD3_Func002Func015A)
endif
endfunction
function Trig_pm_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AEsh'))
endfunction
function Trig_pm_Actions takes nothing returns nothing
set udg_units28[1]=GetTriggerUnit()
set udg_units28[2]=GetSpellTargetUnit()
set udg_real08=0.00
call TriggerSleepAction(0.10)
call PauseUnit(udg_units28[1],true)
call SetUnitAnimation(udg_units28[1],"spell")
call ShowUnit(udg_units28[1],false)
call SetUnitInvulnerable(udg_units28[1],true)
call EnableTrigger(udg_trigger154)
call TriggerSleepAction(0.40)
call DisableTrigger(udg_trigger154)
endfunction
function Trig_pm2_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='nwwg'))
endfunction
function Trig_pm2_Actions takes nothing returns nothing
set udg_locations03[50]=GetUnitLoc(GetTriggerUnit())
call RemoveLocation(GetUnitLoc(GetTriggerUnit()))
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Orc\\Devour\\DevourEffectArt.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateNUnitsAtLocFacingLocBJ(1,'nubw',GetOwningPlayer(GetTriggerUnit()),udg_locations03[50],GetUnitLoc(udg_units28[2]))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call RemoveUnit(GetTriggerUnit())
call GroupAddUnit(udg_group03,bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
call EnableTrigger(udg_trigger153)
call RemoveLocation(udg_locations03[50])
endfunction
function Trig_pm3_Func001Func017Func004C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(GetEnumUnit()),GetUnitLoc(udg_units28[2]))<=60.00))
endfunction
function Trig_pm3_Func001Func017A takes nothing returns nothing
set udg_locations03[167]=PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),35.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),GetUnitLoc(udg_units28[2])))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations03[167]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations03[167]))
if((DistanceBetweenPoints(GetUnitLoc(GetEnumUnit()),GetUnitLoc(udg_units28[2]))<=60.00))then
call UnitDamageTargetBJ(udg_units28[1],udg_units28[2],1.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(udg_locations03[167],"Abilities\\Spells\\Orc\\Devour\\DevourEffectArt.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveUnit(GetEnumUnit())
endif
call RemoveLocation(udg_locations03[167])
endfunction
function Trig_pm3_Func001C takes nothing returns boolean
return((IsUnitDeadBJ(udg_units28[2])==false))and((IsUnitGroupDeadBJ(udg_group03)==false))and((IsUnitGroupEmptyBJ(udg_group03)==false))
endfunction
function Trig_pm3_Actions takes nothing returns nothing
if((((IsUnitDeadBJ(udg_units28[2])==false))and((IsUnitGroupDeadBJ(udg_group03)==false))and((IsUnitGroupEmptyBJ(udg_group03)==false))))then
call ForGroupBJ(udg_group03,function Trig_pm3_Func001Func017A)
else
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger154)
call UnitAddAbility(udg_units28[1],'A02Q')
call TriggerSleepAction(0.10)
call SetUnitVertexColorBJ(udg_units28[1],100,100,100,0)
call SetUnitAnimation(udg_units28[1],"attack slam")
call SetUnitPositionLoc(udg_units28[1],PolarProjectionBJ(GetUnitLoc(udg_units28[2]),200.00,AngleBetweenPoints(GetUnitLoc(udg_units28[1]),GetUnitLoc(udg_units28[2]))))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units28[1]),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call ShowUnit(udg_units28[1],true)
call PauseUnit(udg_units28[1],false)
call SetUnitInvulnerable(udg_units28[1],false)
call DestroyEffect(bj_lastCreatedEffect)
call UnitDamageTargetBJ(udg_units28[1],udg_units28[2],I2R((100*GetUnitAbilityLevel(udg_units28[1],'AEsh'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call UnitRemoveAbility(udg_units28[1],'A02Q')
call GroupClear(udg_group03)
endif
endfunction
function Trig_pm4_Actions takes nothing returns nothing
set udg_real08=(udg_real08+20.00)
call SetUnitVertexColorBJ(udg_units28[1],100,100,100,udg_real08)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[49]=PolarProjectionBJ(GetUnitLoc(udg_units28[1]),50.00,(90.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'nwwg',GetOwningPlayer(udg_units28[1]),udg_locations03[49],(90.00*I2R(bj_forLoopAIndex)))
call RemoveLocation(udg_locations03[49])
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(100.00,500.00),500.00)
call UnitApplyTimedLifeBJ(1.20,'BTLF',bj_lastCreatedUnit)
set udg_locations03[168]=GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units28[1]),2000.00,2000.00))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations03[168])
call RemoveLocation(udg_locations03[168])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_tz2_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04Z'))
endfunction
function Trig_tz2_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000_:_____……______……__,____…… |r")
set udg_units19[908]=GetTriggerUnit()
set udg_locations01[775]=GetSpellTargetLoc()
set udg_locations01[774]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'uban',GetOwningPlayer(GetTriggerUnit()),udg_locations01[774],GetUnitFacing(GetTriggerUnit()))
set udg_locations03[169]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations01[775],200.00,200.00))
call IssuePointOrderLoc(bj_lastCreatedUnit,"clusterrockets",udg_locations03[169])
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[169])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call UnitDamageTarget(udg_units19[908],udg_units19[908],(GetUnitState(udg_units19[908],UNIT_STATE_MAX_LIFE)*0.20),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call TriggerSleepAction(0.35)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[51]=PolarProjectionBJ(udg_locations01[775],GetRandomReal(150.00,450.00),(18.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'ntkf',GetOwningPlayer(GetTriggerUnit()),udg_locations03[51],GetRandomReal(0,360))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call UnitApplyTimedLifeBJ(600.00,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScale(bj_lastCreatedUnit,10.00)
call GroupAddUnit(udg_groups02[911],bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[51])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[51]=PolarProjectionBJ(udg_locations01[775],180.00,(36.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'ntkf',GetOwningPlayer(GetTriggerUnit()),udg_locations03[51],GetRandomReal(0,360))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call UnitApplyTimedLifeBJ(600.00,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScale(bj_lastCreatedUnit,10.00)
call GroupAddUnit(udg_groups02[911],bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[51])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=18
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[51]=PolarProjectionBJ(udg_locations01[775],400.00,(20.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'ntkf',GetOwningPlayer(GetTriggerUnit()),udg_locations03[51],GetRandomReal(0,360))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call UnitApplyTimedLifeBJ(600.00,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScale(bj_lastCreatedUnit,10.00)
call GroupAddUnit(udg_groups02[911],bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[51])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger158)
endfunction
function Trig_tz3_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetAttacker())=='ntkf'))
endfunction
function Trig_tz3_Func003001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units15[0])))
endfunction
function Trig_tz3_Func003Func001C takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false))then
return false
endif
return true
endfunction
function Trig_tz3_Func003A takes nothing returns nothing
if(Trig_tz3_Func003Func001C())then
call UnitDamageTarget(udg_units15[0],GetTriggerUnit(),I2R((GetHeroStatBJ(2,udg_units19[908],true)/15)),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
call UnitDamageTarget(udg_units15[0],GetTriggerUnit(),I2R((GetHeroStatBJ(2,udg_units19[908],true)/40)),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
endfunction
function Trig_tz3_Actions takes nothing returns nothing
set udg_units15[0]=GetAttacker()
set udg_locations03[0]=GetUnitLoc(GetTriggerUnit())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,udg_locations03[0],Condition(function Trig_tz3_Func003001003)),function Trig_tz3_Func003A)
call RemoveLocation(udg_locations03[0])
set udg_locations03[0]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),GetRandomReal(0,250.00),GetRandomReal(0,360))
call SetUnitX(GetAttacker(),GetLocationX(udg_locations03[0]))
call SetUnitY(GetAttacker(),GetLocationY(udg_locations03[0]))
call RemoveLocation(udg_locations03[0])
endfunction
function Trig_tz4_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04Z'))
endfunction
function Trig_tz4_Func002A takes nothing returns nothing
set udg_locations03[169]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[169],"Abilities\\Spells\\Undead\\CarrionSwarm\\CarrionSwarmDamage.mdl")
call RemoveUnit(GetEnumUnit())
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[169])
endfunction
function Trig_tz4_Actions takes nothing returns nothing
call TriggerSleepAction(1.00)
call ForGroupBJ(udg_groups02[911],function Trig_tz4_Func002A)
set udg_locations03[271]=GetUnitLoc(udg_units19[908])
call CreateNUnitsAtLoc(1,'uobs',GetOwningPlayer(udg_units19[908]),udg_locations03[271],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.50,'BTLF',bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,852189,udg_units19[908])
call DisableTrigger(udg_trigger158)
set udg_units19[908]=null
call GroupClear(udg_groups02[911])
call RemoveLocation(udg_locations01[774])
call RemoveLocation(udg_locations01[775])
endfunction
function Trig_tz5_Func001Func002C takes nothing returns boolean
return((GetUnitStateSwap(UNIT_STATE_MANA,udg_units19[908])<100.00))or((IsUnitPaused(udg_units19[908])))or((GetUnitStateSwap(UNIT_STATE_LIFE,udg_units19[908])<=250.00))or((GetLocationX(GetUnitLoc(udg_units19[908]))!=GetLocationX(udg_locations01[774])))or((GetLocationY(GetUnitLoc(udg_units19[908]))!=GetLocationY(udg_locations01[774])))
endfunction
function Trig_tz5_Func001C takes nothing returns boolean
return((((GetUnitStateSwap(UNIT_STATE_MANA,udg_units19[908])<100.00))or((IsUnitPaused(udg_units19[908])))or((GetUnitStateSwap(UNIT_STATE_LIFE,udg_units19[908])<=250.00))or((GetLocationX(GetUnitLoc(udg_units19[908]))!=GetLocationX(udg_locations01[774])))or((GetLocationY(GetUnitLoc(udg_units19[908]))!=GetLocationY(udg_locations01[774])))))
endfunction
function Trig_tz5_Actions takes nothing returns nothing
if((((GetUnitStateSwap(UNIT_STATE_MANA,udg_units19[908])<100.00))or((IsUnitPaused(udg_units19[908])))or((GetUnitStateSwap(UNIT_STATE_LIFE,udg_units19[908])<=250.00))or((GetLocationX(GetUnitLoc(udg_units19[908]))!=GetLocationX(udg_locations01[774])))or((GetLocationY(GetUnitLoc(udg_units19[908]))!=GetLocationY(udg_locations01[774])))))then
call DisableTrigger(GetTriggeringTrigger())
call IssueImmediateOrder(udg_units19[908],"stop")
call TriggerExecute(udg_trigger157)
call UnitDamageTarget(udg_units19[908],udg_units19[908],(GetUnitState(udg_units19[908],UNIT_STATE_MAX_LIFE)*0.20),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
call SetUnitManaPercentBJ(udg_units19[908],(GetUnitManaPercent(udg_units19[908])-1.00))
endif
endfunction
function Trig_DDL2_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='n005'))
endfunction
function Trig_DDL2_Func004001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_DDL2_Func004001003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_DDL2_Func004001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))
endfunction
function Trig_DDL2_Func004001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_DDL2_Func004001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_DDL2_Func004A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units19[113],GetEnumUnit(),(20.00*I2R(GetUnitAbilityLevelSwapped('A02G',udg_units19[113]))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
set udg_locations03[154]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[154],"Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[154])
endfunction
function Trig_DDL2_Actions takes nothing returns nothing
set udg_locations03[155]=GetUnitLoc(GetTriggerUnit())
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[155],Condition(function Trig_DDL2_Func004001003)),function Trig_DDL2_Func004A)
call RemoveLocation(udg_locations03[155])
endfunction
function Trig_DDL_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02G'))
endfunction
function Trig_DDL_Actions takes nothing returns nothing
set udg_units19[113]=GetTriggerUnit()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[38]=GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(GetTriggerUnit()),300.00,300.00))
call CreateNUnitsAtLoc(1,'n005',GetOwningPlayer(GetTriggerUnit()),udg_locations03[38],((GetUnitFacing(GetTriggerUnit())-63.00)+(18.00*I2R(bj_forLoopAIndex))))
call RemoveLocation(udg_locations03[38])
call UnitApplyTimedLife(bj_lastCreatedUnit,'BHwe',20.00)
set udg_locations03[154]=PolarProjectionBJ(GetUnitLoc(bj_lastCreatedUnit),200.00,GetRandomReal(0,360))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations03[154])
call RemoveLocation(udg_locations03[154])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_phzm_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02E'))
endfunction
function Trig_phzm_Actions takes nothing returns nothing
set udg_units12[1]=GetTriggerUnit()
set udg_location02=GetSpellTargetLoc()
set udg_locations03[14]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLocFacingLocBJ(1,'nvdw',GetOwningPlayer(GetTriggerUnit()),udg_locations03[14],GetSpellTargetLoc())
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
set udg_units12[2]=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(5.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[14])
call TriggerSleepAction(0.10)
call SetUnitFlyHeight(bj_lastCreatedUnit,0.00,1600.00)
call EnableTrigger(udg_trigger162)
call SetUnitAnimation(bj_lastCreatedUnit,"walk")
endfunction
function Trig_phzm2_Func001Func005001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_phzm2_Func001Func005001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units12[1])))
endfunction
function Trig_phzm2_Func001Func005001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units12[1]))))
endfunction
function Trig_phzm2_Func001Func005Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)))then
return false
endif
return true
endfunction
function Trig_phzm2_Func001Func005A takes nothing returns nothing
if(Trig_phzm2_Func001Func005Func001C())then
call UnitDamageTarget(udg_units12[1],GetEnumUnit(),((I2R(GetHeroStatBJ(2,udg_units12[1],true))*0.60)*I2R(GetUnitAbilityLevel(udg_units12[1],'A02E'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
call UnitDamageTarget(udg_units12[1],GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_units12[1],true))*I2R(GetUnitAbilityLevel(udg_units12[1],'A02E'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
endfunction
function Trig_phzm2_Func001C takes nothing returns boolean
return((IsUnitDeadBJ(udg_units12[2])==false))and((DistanceBetweenPoints(GetUnitLoc(udg_units12[2]),udg_location02)>=50.00))
endfunction
function Trig_phzm2_Actions takes nothing returns nothing
if((((IsUnitDeadBJ(udg_units12[2])==false))and((DistanceBetweenPoints(GetUnitLoc(udg_units12[2]),udg_location02)>=50.00))))then
set udg_locations03[119]=PolarProjectionBJ(GetUnitLoc(udg_units12[2]),35.00,GetUnitFacing(udg_units12[2]))
call SetUnitPositionLoc(udg_units12[2],udg_locations03[119])
call RemoveLocation(udg_locations03[119])
else
call DisableTrigger(GetTriggeringTrigger())
call SetUnitFlyHeight(udg_units12[2],0.00,2000.00)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_location02,Condition(function Trig_phzm2_Func001Func005001003)),function Trig_phzm2_Func001Func005A)
call CreateNUnitsAtLoc(1,'ntka',GetOwningPlayer(udg_units12[1]),udg_location02,GetRandomReal(0,360))
call SetUnitScalePercent(bj_lastCreatedUnit,500.00,500.00,500.00)
call KillUnit(bj_lastCreatedUnit)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[120]=PolarProjectionBJ(udg_location02,GetRandomReal(0,200.00),GetRandomReal(0,360))
call AddSpecialEffectLocBJ(udg_locations03[120],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[120])
set udg_locations03[120]=PolarProjectionBJ(udg_location02,GetRandomReal(0,200.00),GetRandomReal(0,360))
call AddSpecialEffectLocBJ(udg_locations03[120],"Abilities\\Weapons\\Mortar\\MortarMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[120])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveUnit(udg_units12[2])
call CameraSetEQNoiseForPlayer(GetLocalPlayer(),6.00)
call CinematicFadeBJ(2,0.50,"ReplaceableTextures\\CameraMasks\\White_mask.blp",100.00,0.00,0.00,80.00)
call TriggerSleepAction(0.30)
call CameraClearNoiseForPlayer(GetLocalPlayer())
call RemoveLocation(udg_location02)
endif
endfunction
function Trig_HMZM_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02D'))
endfunction
function Trig_HMZM_Actions takes nothing returns nothing
set udg_units19[113]=GetTriggerUnit()
call TriggerSleepAction(0.10)
call PauseUnit(udg_units19[113],true)
call SetUnitTimeScale(GetTriggerUnit(),3.00)
call UnitAddAbility(udg_units19[113],'Amrf')
set udg_unit29=CreateUnit(GetOwningPlayer(GetTriggerUnit()),'n00D',GetUnitX(GetTriggerUnit()),GetUnitY(GetTriggerUnit()),GetUnitFacing(GetTriggerUnit()))
call SetUnitFlyHeight(udg_units19[113],250.00,9999.00)
call SetUnitScale(udg_unit29,2.00,2.00,2.00)
call SetUnitTimeScale(udg_unit29,0.30)
call SetUnitFlyHeight(udg_unit29,230.00,9999.00)
call TriggerSleepAction(0.10)
call EnableTrigger(udg_trigger164)
call TriggerSleepAction(1.00)
call DisableTrigger(udg_trigger164)
call SetUnitFlyHeight(udg_units19[113],0.00,9999.00)
call SetUnitFlyHeight(udg_unit29,0.00,9999.00)
call UnitRemoveAbility(udg_units19[113],'Amrf')
call TriggerSleepAction(0.30)
call RemoveUnit(udg_unit29)
call SetUnitTimeScale(GetTriggerUnit(),1.00)
set udg_unit29=null
call PauseUnit(udg_units19[113],false)
endfunction
function Trig_HMZM2_Actions takes nothing returns nothing
set udg_locations03[170]=PolarProjectionBJ(GetUnitLoc(udg_units19[113]),17.00,GetUnitFacing(udg_units19[113]))
call SetUnitPositionLoc(udg_units19[113],udg_locations03[170])
call SetUnitPositionLoc(udg_unit29,udg_locations03[170])
call RemoveLocation(udg_locations03[170])
call SetUnitAnimation(udg_units19[113],"walk")
call SetUnitAnimation(udg_unit29,"stand")
set udg_locations03[52]=GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units19[113]),500.00,500.00))
call CreateNUnitsAtLoc(1,'now2',GetOwningPlayer(udg_units19[113]),udg_locations03[52],GetUnitFacing(udg_units19[113]))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,0.00,500.00)
call RemoveLocation(udg_locations03[52])
endfunction
function Trig_HMZM3_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='now2'))
endfunction
function Trig_HMZM3_Func008001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_HMZM3_Func008001003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_HMZM3_Func008001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))
endfunction
function Trig_HMZM3_Func008001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_HMZM3_Func008001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_HMZM3_Func008A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units19[113],GetEnumUnit(),(((I2R(GetHeroStatBJ(2,udg_units19[113],true))/15.00)+10.00)*I2R(GetUnitAbilityLevelSwapped('A02D',udg_units19[113]))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_HMZM3_Actions takes nothing returns nothing
set udg_locations03[171]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations03[171],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[171],"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,udg_locations03[171],Condition(function Trig_HMZM3_Func008001003)),function Trig_HMZM3_Func008A)
call RemoveLocation(udg_locations03[171])
endfunction
function Trig_BZXG1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ANbr'))
endfunction
function Trig_BZXG1_Func014001003 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_BZXG1_Func014Func001Func003C takes nothing returns boolean
if(not(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))then
return false
endif
if(not(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))then
return false
endif
return true
endfunction
function Trig_BZXG1_Func014Func001C takes nothing returns boolean
return(Trig_BZXG1_Func014Func001Func003C())
endfunction
function Trig_BZXG1_Func014A takes nothing returns nothing
if((Trig_BZXG1_Func014Func001Func003C()))then
call UnitDamageTargetBJ(udg_units19[113],GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_units19[113],true))*30.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units19[113],GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_units19[113],true))*15.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_BZXG1_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000 ___:_____,__________! |r")
set udg_units19[113]=GetTriggerUnit()
set udg_integers02[439]=55
call TriggerSleepAction(0.10)
call PauseUnit(GetTriggerUnit(),true)
call EnableTrigger(udg_trigger167)
call TriggerSleepAction(2.90)
call DisableTrigger(udg_trigger167)
call SetUnitScalePercent(udg_units19[113],55.00,55.00,55.00)
set udg_locations03[171]=GetUnitLoc(GetTriggerUnit())
call KillUnit(udg_units19[113])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[53]=PolarProjectionBJ(udg_locations03[171],250.00,(12.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'ntrd',GetOwningPlayer(GetTriggerUnit()),udg_locations03[53],(18.00*I2R(bj_forLoopAIndex)))
call SetUnitTimeScale(bj_lastCreatedUnit,0.30)
call UnitApplyTimedLifeBJ(2.50,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[53])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[53]=PolarProjectionBJ(udg_locations03[171],GetRandomReal(0,400.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'nhef',GetOwningPlayer(GetTriggerUnit()),udg_locations03[53],GetRandomReal(0,360))
call KillUnit(bj_lastCreatedUnit)
call SetUnitScale(bj_lastCreatedUnit,3.00,3.00,3.00)
call SetUnitTimeScale(bj_lastCreatedUnit,0.30)
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(0.00,200.00),0.00)
call RemoveLocation(udg_locations03[53])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(1000.00,udg_locations03[171],Condition(function Trig_BZXG1_Func014001003)),function Trig_BZXG1_Func014A)
call RemoveLocation(udg_locations03[171])
call PauseUnit(GetTriggerUnit(),false)
endfunction
function Trig_BZXG2_Actions takes nothing returns nothing
set udg_integers02[439]=(udg_integers02[439]+2)
call SetUnitScalePercent(udg_units19[113],I2R(udg_integers02[439]),I2R(udg_integers02[439]),55.00)
endfunction
function Trig_DDL_R1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A095'))
endfunction
function Trig_DDL_R1_Func003001003001001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_DDL_R1_Func003001003001002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group13)==false)
endfunction
function Trig_DDL_R1_Func003001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitInGroup(GetFilterUnit(),udg_group13)==false))
endfunction
function Trig_DDL_R1_Func003001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_DDL_R1_Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit28)))
endfunction
function Trig_DDL_R1_Func003001003002 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit28))))
endfunction
function Trig_DDL_R1_Func003001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitInGroup(GetFilterUnit(),udg_group13)==false))),(GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit28))))))
endfunction
function Trig_DDL_R1_Func003A takes nothing returns nothing
call GroupAddUnit(udg_group13,GetEnumUnit())
endfunction
function Trig_DDL_R1_Func004Func010001003001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group13)==false)
endfunction
function Trig_DDL_R1_Func004Func010001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_DDL_R1_Func004Func010001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit28)))
endfunction
function Trig_DDL_R1_Func004Func010001003002 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit28))))
endfunction
function Trig_DDL_R1_Func004Func010001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitInGroup(GetFilterUnit(),udg_group13)==false),(GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit28))))))
endfunction
function Trig_DDL_R1_Func004Func010A takes nothing returns nothing
call GroupAddUnit(udg_group13,GetEnumUnit())
endfunction
function Trig_DDL_R1_Func006Func001C takes nothing returns boolean
return((IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)))
endfunction
function Trig_DDL_R1_Func006A takes nothing returns nothing
if((IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)))then
call UnitDamageTarget(udg_unit28,GetEnumUnit(),((I2R(GetHeroInt(udg_unit28,true))*3.00)+500.00),false,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_FIRE,WEAPON_TYPE_WHOKNOWS)
else
call UnitDamageTarget(udg_unit28,GetEnumUnit(),((I2R(GetHeroInt(udg_unit28,true))*6.00)+500.00),false,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_FIRE,WEAPON_TYPE_WHOKNOWS)
endif
endfunction
function Trig_DDL_R1_Actions takes nothing returns nothing
set udg_unit28=GetTriggerUnit()
set udg_locations22[0]=GetUnitLoc(udg_unit28)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations22[0],Condition(function Trig_DDL_R1_Func003001003)),function Trig_DDL_R1_Func003A)
set udg_integer19=1
loop
exitwhen udg_integer19>10
set udg_locations22[1]=PolarProjectionBJ(udg_locations22[0],GetRandomReal(0,400.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'n00D',GetOwningPlayer(udg_unit28),udg_locations22[1],bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852652,udg_locations22[1])
call SetUnitFlyHeight(bj_lastCreatedUnit,600.00,9999.00)
call UnitApplyTimedLifeBJ(1.20,'BTLF',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'n004',GetOwningPlayer(udg_unit28),udg_locations22[1],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call AddSpecialEffectLocBJ(udg_locations22[1],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageDeathCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations22[1],Condition(function Trig_DDL_R1_Func004Func010001003)),function Trig_DDL_R1_Func004Func010A)
call TriggerSleepAction(0.10)
call RemoveLocation(udg_locations22[1])
set udg_integer19=udg_integer19+1
endloop
call TriggerSleepAction(1.00)
call ForGroupBJ(udg_group13,function Trig_DDL_R1_Func006A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations22[1]=PolarProjectionBJ(udg_locations22[0],200.00,(I2R(bj_forLoopAIndex)*120.00))
call AddSpecialEffectLocBJ(udg_locations22[1],"LW10.mdx")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations22[1])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(1,'nhef',GetOwningPlayer(GetTriggerUnit()),udg_locations22[0],GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(0.10,'BTLF',bj_lastCreatedUnit)
call SetUnitScale(bj_lastCreatedUnit,8.00,8.00,8.00)
call CameraSetEQNoiseForPlayer(GetLocalPlayer(),6.00)
call CinematicFadeBJ(2,0.50,"ReplaceableTextures\\CameraMasks\\White_mask.blp",100.00,0.00,0.00,80.00)
call TriggerSleepAction(0.30)
call CameraClearNoiseForPlayer(GetLocalPlayer())
call GroupClear(udg_group13)
call RemoveLocation(udg_locations22[0])
endfunction
function Trig_fl_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AHtc'))
endfunction
function Trig_fl_Actions takes nothing returns nothing
set udg_locations06[34]=GetUnitLoc(GetTriggerUnit())
set udg_units31[171]=GetTriggerUnit()
call TriggerSleepAction(0.10)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitAnimation(GetTriggerUnit(),"Attack Slam")
call EnableTrigger(udg_trigger170)
call TriggerSleepAction(0.50)
call DisableTrigger(udg_trigger170)
call PauseUnit(GetTriggerUnit(),false)
call RemoveLocation(udg_locations03[34])
endfunction
function Trig_fl2_Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_fl2_Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[171])))
endfunction
function Trig_fl2_Func003001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[171]))))
endfunction
function Trig_fl2_Func003A takes nothing returns nothing
call UnitDamageTarget(udg_units31[171],GetEnumUnit(),(10.00*I2R(GetUnitAbilityLevel(udg_units31[171],'AHtc'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
set udg_locations03[185]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[185],"Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_locations06[33]=PolarProjectionBJ(udg_locations03[185],30.00,AngleBetweenPoints(udg_locations06[34],udg_locations03[185]))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations06[33]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations06[33]))
call RemoveLocation(udg_locations03[185])
call RemoveLocation(udg_locations06[33])
endfunction
function Trig_fl2_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[185]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations06[34],400.00,400.00))
call AddSpecialEffectLocBJ(udg_locations03[185],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[185])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations06[34],Condition(function Trig_fl2_Func003001003)),function Trig_fl2_Func003A)
endfunction
function Trig_zzxx_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A05G'))
endfunction
function Trig_zzxx_Actions takes nothing returns nothing
set udg_units26[156]=GetSpellTargetUnit()
set udg_units30[156]=GetTriggerUnit()
set udg_locations02[10]=GetUnitLoc(GetTriggerUnit())
call TriggerSleepAction(0.10)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitAnimation(GetTriggerUnit(),"spell")
call TriggerSleepAction(0.25)
set udg_locations03[57]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'nanb',GetOwningPlayer(GetTriggerUnit()),udg_locations03[57],(36.00*I2R(bj_forLoopAIndex)))
set udg_units15[156]=bj_lastCreatedUnit
call RemoveLocation(udg_locations03[57])
call SetUnitAnimation(GetTriggerUnit(),"spell")
call TriggerSleepAction(0.25)
call PauseUnit(GetTriggerUnit(),false)
call TriggerRegisterUnitEvent(udg_trigger172,udg_units30[156],EVENT_UNIT_DAMAGED)
call EnableTrigger(udg_trigger172)
call TriggerSleepAction((3.00+I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A05G'))))
call DisableTrigger(udg_trigger172)
call RemoveUnit(udg_units15[156])
set udg_units26[156]=null
call RemoveLocation(udg_locations02[10])
endfunction
function Trig_SH_Func002C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_units30[156]),udg_locations02[10])<=400.00))
endfunction
function Trig_SH_Actions takes nothing returns nothing
set udg_reals01[1002]=(GetEventDamage()*(0.10+(0.04*I2R(GetUnitAbilityLevel(udg_units30[156],'A05G')))))
if((DistanceBetweenPoints(GetUnitLoc(udg_units30[156]),udg_locations02[10])<=400.00))then
call UnitDamageTarget(udg_units30[156],udg_units26[156],udg_reals01[1002],true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
endfunction
function Trig_ZC_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A05F'))
endfunction
function Trig_ZC_Func013C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_units30[156]),udg_locations02[10])<=400.00))
endfunction
function Trig_ZC_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000__:__,___________!|r")
call TriggerSleepAction(0.10)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitAnimation(GetTriggerUnit(),"spell channel")
set udg_locations03[988]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(udg_locations03[988],"Abilities\\Spells\\Items\\AIil\\AIilTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call TriggerSleepAction(0.15)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=6
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=bj_forLoopBIndex
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[262]=PolarProjectionBJ(udg_locations03[988],(40.00*I2R(bj_forLoopBIndex)),((360.00/I2R(bj_forLoopBIndex))*I2R(bj_forLoopAIndex)))
call AddSpecialEffectLocBJ(udg_locations03[262],"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations01[262])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call AddSpecialEffectLocBJ(udg_locations03[988],"Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units26[156]),"Objects\\Spawnmodels\\Other\\BeastmasterBlood\\BeastmasterBlood.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call UnitDamageTarget(GetTriggerUnit(),GetTriggerUnit(),3000.00,true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
if((DistanceBetweenPoints(GetUnitLoc(udg_units30[156]),udg_locations02[10])<=400.00))then
call UnitDamageTarget(GetTriggerUnit(),udg_units26[156],(I2R(GetHeroStatBJ(0,GetTriggerUnit(),true))*12.00),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
call TriggerSleepAction(0.50)
call AddSpecialEffectLocBJ(udg_locations03[988],"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call PauseUnit(GetTriggerUnit(),false)
call RemoveLocation(udg_locations01[988])
endfunction
function Trig_LZ_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A05E'))
endfunction
function Trig_LZ_Actions takes nothing returns nothing
set udg_units30[156]=GetTriggerUnit()
set udg_units26[156]=GetSpellTargetUnit()
set udg_integer08=0
call TriggerSleepAction(0.10)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitTimeScale(udg_units30[156],10.00)
call SetUnitPathing(udg_units30[156],false)
call EnableTrigger(udg_trigger175)
endfunction
function Trig_LZ2_Func001Func003C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_units30[156]),GetUnitLoc(udg_units26[156]))<=100.00))or((DistanceBetweenPoints(GetUnitLoc(udg_units30[156]),GetUnitLoc(udg_units26[156]))>=1000.00))or((IsUnitDeadBJ(udg_units30[156])))or((IsUnitDeadBJ(udg_units26[156])))
endfunction
function Trig_LZ2_Func001Func018Func001C takes nothing returns boolean
return((udg_integer08==25))or((IsUnitDeadBJ(udg_units26[156])))or((IsUnitDeadBJ(udg_units30[156])))
endfunction
function Trig_LZ2_Func001Func018C takes nothing returns boolean
return((((udg_integer08==25))or((IsUnitDeadBJ(udg_units26[156])))or((IsUnitDeadBJ(udg_units30[156])))))
endfunction
function Trig_LZ2_Func001C takes nothing returns boolean
return((((DistanceBetweenPoints(GetUnitLoc(udg_units30[156]),GetUnitLoc(udg_units26[156]))<=100.00))or((DistanceBetweenPoints(GetUnitLoc(udg_units30[156]),GetUnitLoc(udg_units26[156]))>=1000.00))or((IsUnitDeadBJ(udg_units30[156])))or((IsUnitDeadBJ(udg_units26[156])))))
endfunction
function Trig_LZ2_Actions takes nothing returns nothing
if((((DistanceBetweenPoints(GetUnitLoc(udg_units30[156]),GetUnitLoc(udg_units26[156]))<=100.00))or((DistanceBetweenPoints(GetUnitLoc(udg_units30[156]),GetUnitLoc(udg_units26[156]))>=1000.00))or((IsUnitDeadBJ(udg_units30[156])))or((IsUnitDeadBJ(udg_units26[156])))))then
set udg_locations03[58]=PolarProjectionBJ(GetUnitLoc(udg_units30[156]),20.00,GetUnitFacing(udg_units30[156]))
call SetUnitPositionLocFacingBJ(udg_units30[156],udg_locations03[58],GetUnitFacing(udg_units30[156]))
call SetUnitAnimation(udg_units30[156],"attack")
call CreateNUnitsAtLoc(1,'nwns',GetOwningPlayer(udg_units30[156]),udg_locations03[58],GetUnitFacing(udg_units30[156]))
call RemoveLocation(udg_locations03[58])
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100,100,100,60.00)
call SetUnitTimeScale(bj_lastCreatedUnit,10.00)
call SetUnitAnimationWithRarity(bj_lastCreatedUnit,"attack",RARITY_RARE)
call UnitApplyTimedLifeBJ(0.60,'BTLF',bj_lastCreatedUnit)
set udg_locations03[58]=PolarProjectionBJ(GetUnitLoc(udg_units30[156]),100.00,GetUnitFacing(udg_units30[156]))
call SetUnitPositionLocFacingLocBJ(udg_units26[156],udg_locations03[58],GetUnitLoc(udg_units30[156]))
call SetUnitAnimation(udg_units26[156],"death")
call AddSpecialEffectTargetUnitBJ("head",udg_units26[156],"Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[58])
if((((udg_integer08==25))or((IsUnitDeadBJ(udg_units26[156])))or((IsUnitDeadBJ(udg_units30[156])))))then
call DisableTrigger(GetTriggeringTrigger())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[58]=GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units26[156]),200.00,200.00))
call AddSpecialEffectLocBJ(udg_locations03[58],"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[58])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseUnit(udg_units30[156],false)
call SetUnitTimeScale(udg_units30[156],1.00)
call UnitDamageTarget(udg_units30[156],udg_units26[156],(I2R(GetHeroStatBJ(0,udg_units30[156],true))*I2R(GetUnitAbilityLevel(udg_units30[156],'A05E'))),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call SetUnitPathing(udg_units30[156],true)
set udg_units26[156]=null
else
set udg_integer08=(udg_integer08+1)
endif
else
set udg_locations03[187]=PolarProjectionBJ(GetUnitLoc(udg_units30[156]),20.00,AngleBetweenPoints(GetUnitLoc(udg_units30[156]),GetUnitLoc(udg_units26[156])))
call SetUnitPositionLocFacingLocBJ(udg_units30[156],udg_locations03[187],GetUnitLoc(udg_units26[156]))
call SetUnitAnimation(udg_units30[156],"walk")
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units30[156]),"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[187])
endif
endfunction
function Trig_tlwzzk_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A05A'))
endfunction
function Trig_tlwzzk_Func020A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_tlwzzk_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000__:_______! |r")
set udg_reals01[91]=GetUnitFacing(GetSpellAbilityUnit())
set udg_locations01[91]=GetUnitLoc(GetSpellAbilityUnit())
set udg_units19[91]=GetSpellAbilityUnit()
call TriggerSleepAction(0.05)
set udg_locations03[55]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'uktn',GetOwningPlayer(GetTriggerUnit()),udg_locations03[55],GetUnitFacing(GetTriggerUnit()))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
set udg_units18[91]=bj_lastCreatedUnit
call AddSpecialEffectTargetUnitBJ("head",bj_lastCreatedUnit,"Abilities\\Spells\\Undead\\Cripple\\CrippleTarget.mdl")
call AddSpecialEffectTargetUnitBJ("head",bj_lastCreatedUnit,"Abilities\\Spells\\Other\\Tornado\\Tornado_Target.mdl")
call RemoveLocation(udg_locations03[55])
set bj_forLoopAIndex=5001
set bj_forLoopAIndexEnd=5003
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[55]=PolarProjectionBJ(GetUnitLoc(udg_units18[91]),210.00,(120.00*(I2R(bj_forLoopAIndex)-5000.00)))
call CreateNUnitsAtLocFacingLocBJ(1,'nsnp',GetOwningPlayer(GetTriggerUnit()),udg_locations03[55],GetUnitLoc(udg_units18[91]))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
set udg_units15[bj_forLoopAIndex]=bj_lastCreatedUnit
call GroupAddUnit(udg_groups03[12],bj_lastCreatedUnit)
set udg_reals01[bj_forLoopAIndex]=AngleBetweenPoints(GetUnitLoc(udg_units18[91]),GetUnitLoc(udg_units15[bj_forLoopAIndex]))
call RemoveLocation(udg_locations03[55])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger177)
call TriggerSleepAction(1.00)
call DisableTrigger(udg_trigger177)
call RemoveLocation(GetUnitLoc(udg_units18[91]))
call RemoveUnit(udg_units18[91])
call ForGroupBJ(udg_groups03[12],function Trig_tlwzzk_Func020A)
call GroupClear(udg_groups03[12])
call RemoveLocation(udg_locations01[91])
endfunction
function Trig_tlwzzk2_Func014Func001C takes nothing returns boolean
return((IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(udg_units19[91]))))
endfunction
function Trig_tlwzzk2_Func014A takes nothing returns nothing
if((IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(udg_units19[91]))))then
call UnitDamageTarget(udg_units19[91],GetEnumUnit(),(0.60*I2R(GetHeroAgi(udg_units19[91],true))),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
endfunction
function Trig_tlwzzk2_Func016Func001Func004C takes nothing returns boolean
return((IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)))
endfunction
function Trig_tlwzzk2_Func016Func001C takes nothing returns boolean
return((IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(udg_units19[91]))))
endfunction
function Trig_tlwzzk2_Func016A takes nothing returns nothing
if((IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(udg_units19[91]))))then
call RemoveLocation(udg_locations03[183])
if((IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)))then
call UnitDamageTarget(udg_units19[91],GetEnumUnit(),(0.40*I2R(GetHeroAgi(udg_units19[91],true))),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
call UnitDamageTarget(udg_units19[91],GetEnumUnit(),(0.60*I2R(GetHeroAgi(udg_units19[91],true))),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
endif
endfunction
function Trig_tlwzzk2_Actions takes nothing returns nothing
set bj_forLoopAIndex=5001
set bj_forLoopAIndexEnd=5003
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_reals01[bj_forLoopAIndex]=(udg_reals01[bj_forLoopAIndex]+25.00)
set udg_locations03[181]=PolarProjectionBJ(GetUnitLoc(udg_units18[91]),210.00,udg_reals01[bj_forLoopAIndex])
call SetUnitPositionLocFacingLocBJ(udg_units15[bj_forLoopAIndex],udg_locations03[181],GetUnitLoc(udg_units18[91]))
call AddSpecialEffectLocBJ(udg_locations03[181],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[181])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_locations03[182]=PolarProjectionBJ(GetUnitLoc(udg_units18[91]),50.00,udg_reals01[91])
call SetUnitPositionLocFacingBJ(udg_units18[91],udg_locations03[182],udg_reals01[91])
set udg_locations03[56]=GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units18[91]),200.00,200.00))
call CreateNUnitsAtLoc(1,'zhyd',GetOwningPlayer(udg_units18[91]),udg_locations03[56],GetRandomReal(0,360))
call RemoveLocation(udg_locations03[56])
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100,100,100,25.00)
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(20.00,160.00),100.00)
set udg_locations03[56]=PolarProjectionBJ(GetUnitLoc(bj_lastCreatedUnit),400.00,GetUnitFacing(bj_lastCreatedUnit))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations03[56])
call UnitApplyTimedLifeBJ(2.50,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[56])
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocAll(200.00,udg_locations03[182]),function Trig_tlwzzk2_Func014A)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocAll(350.00,udg_locations03[182]),function Trig_tlwzzk2_Func016A)
call RemoveLocation(udg_locations03[182])
endfunction
function Trig_fzb_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A059'))
endfunction
function Trig_fzb_Func006A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_fzb_Actions takes nothing returns nothing
set udg_units30[123]=GetTriggerUnit()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[54]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),100.00,(90.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLocFacingLocBJ(1,'nsnp',GetOwningPlayer(udg_units30[123]),udg_locations03[54],GetUnitLoc(udg_units30[123]))
call GroupAddUnit(udg_groups03[11],bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[54])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger179)
call TriggerSleepAction(1.50)
call DisableTrigger(udg_trigger179)
call ForGroupBJ(udg_groups03[11],function Trig_fzb_Func006A)
call GroupClear(udg_groups03[11])
endfunction
function Trig_fzb_2_Func001Func009001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units30[123])))
endfunction
function Trig_fzb_2_Func001Func009A takes nothing returns nothing
call UnitDamageTarget(udg_units30[123],GetEnumUnit(),(3.00*I2R(GetUnitAbilityLevel(udg_units30[123],'A059'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_fzb_2_Func001A takes nothing returns nothing
set udg_locations03[530]=GetUnitLoc(GetEnumUnit())
set udg_locations03[531]=GetUnitLoc(udg_units30[123])
set udg_locations03[180]=PolarProjectionBJ(udg_locations03[531],(DistanceBetweenPoints(udg_locations03[531],udg_locations03[530])+8.00),(AngleBetweenPoints(udg_locations03[530],udg_locations03[531])+8.00))
call SetUnitPositionLocFacingLocBJ(GetEnumUnit(),udg_locations03[180],GetUnitLoc(udg_units30[123]))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations03[180]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations03[180]))
call SetUnitFacing(GetEnumUnit(),AngleBetweenPoints(udg_locations03[180],udg_locations03[531]))
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,udg_locations03[180],Condition(function Trig_fzb_2_Func001Func009001003)),function Trig_fzb_2_Func001Func009A)
call RemoveLocation(udg_locations03[180])
call RemoveLocation(udg_locations03[530])
call RemoveLocation(udg_locations03[531])
endfunction
function Trig_fzb_2_Actions takes nothing returns nothing
call ForGroupBJ(udg_groups03[11],function Trig_fzb_2_Func001A)
endfunction
function Trig_flr_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A05B'))
endfunction
function Trig_flr_Actions takes nothing returns nothing
set udg_units30[123]=GetTriggerUnit()
set udg_units26[123]=GetSpellTargetUnit()
set udg_locations03[56]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'ewsp',GetOwningPlayer(GetTriggerUnit()),udg_locations03[56],GetUnitFacing(GetTriggerUnit()))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
set udg_units27[123]=bj_lastCreatedUnit
call EnableTrigger(udg_trigger181)
call RemoveLocation(udg_locations03[56])
endfunction
function Trig_flr2_Func001C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_units27[123]),GetUnitLoc(udg_units26[123]))<=100.00))
endfunction
function Trig_flr2_Actions takes nothing returns nothing
if((DistanceBetweenPoints(GetUnitLoc(udg_units27[123]),GetUnitLoc(udg_units26[123]))<=100.00))then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPositionLoc(udg_units26[123],GetUnitLoc(udg_units27[123]))
call PauseUnit(udg_units26[123],true)
call SetUnitPathing(udg_units26[123],false)
call UnitAddAbility(udg_units26[123],'Amrf')
call SetUnitFlyHeight(udg_units26[123],400.00,400.00)
call UnitRemoveAbility(udg_units26[123],'Amrf')
call SetUnitFlyHeight(udg_units27[123],-200.00,300.00)
call EnableTrigger(udg_trigger182)
call TriggerSleepAction(1.50)
call DisableTrigger(udg_trigger182)
call SetUnitFlyHeight(udg_units26[123],0.00,100000000.00)
call KillUnit(udg_units27[123])
call SetUnitPathing(udg_units26[123],true)
call PauseUnit(udg_units26[123],false)
call TriggerSleepAction(0.10)
call UnitDamageTarget(udg_units30[123],udg_units26[123],(I2R(GetUnitAbilityLevel(udg_units30[123],'A05B'))*I2R(GetHeroStatBJ(1,udg_units30[123],true))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
set udg_locations03[183]=PolarProjectionBJ(GetUnitLoc(udg_units27[123]),30.00,AngleBetweenPoints(GetUnitLoc(udg_units27[123]),GetUnitLoc(udg_units26[123])))
call SetUnitPositionLocFacingLocBJ(udg_units27[123],udg_locations03[183],GetUnitLoc(udg_units26[123]))
call AddSpecialEffectLocBJ(udg_locations03[183],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[183])
endif
endfunction
function Trig_flr3_Actions takes nothing returns nothing
set udg_locations03[184]=PolarProjectionBJ(GetUnitLoc(udg_units27[123]),180.00,(AngleBetweenPoints(GetUnitLoc(udg_units27[123]),GetUnitLoc(udg_units26[123]))+8.00))
call SetUnitPositionLocFacingLocBJ(udg_units26[123],udg_locations03[184],GetUnitLoc(udg_units27[123]))
call RemoveLocation(udg_locations03[184])
endfunction
function Trig_DFYLx_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01Q'))
endfunction
function Trig_DFYLx_Actions takes nothing returns nothing
call TriggerSleepAction(0.10)
call SetUnitAnimation(GetTriggerUnit(),"spell slam")
set udg_locations03[61]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'uban',GetOwningPlayer(GetTriggerUnit()),udg_locations03[61],((GetUnitFacing(GetTriggerUnit())-45.00)+(15.00*I2R(bj_forLoopAIndex))))
call UnitApplyTimedLifeBJ(2.50,'BTLF',bj_lastCreatedUnit)
call SetUnitAbilityLevel(bj_lastCreatedUnit,'A000',GetUnitAbilityLevel(GetTriggerUnit(),'A01Q'))
call IssuePointOrderLoc(bj_lastCreatedUnit,"breathoffire",PolarProjectionBJ(GetUnitLoc(bj_lastCreatedUnit),700.00,GetUnitFacing(bj_lastCreatedUnit)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.10)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'nmyr',GetOwningPlayer(GetTriggerUnit()),udg_locations03[61],GetRandomReal(0,360))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",PolarProjectionBJ(GetUnitLoc(bj_lastCreatedUnit),10000.00,GetUnitFacing(bj_lastCreatedUnit)))
call UnitApplyTimedLifeBJ(2.50,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[61])
endfunction
function Trig_dashanhongbi_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetAttacker())=='H02P'))and((GetUnitAbilityLevel(GetAttacker(),'A01A')>0))and((GetRandomInt(1,10)==1))
endfunction
function Trig_dashanhongbi_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[191]=GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(GetAttacker()),400.00,400.00))
call CreateNUnitsAtLoc(1,'ubdd',GetOwningPlayer(GetAttacker()),udg_locations03[191],GetUnitFacing(GetAttacker()))
call SetUnitScalePercent(bj_lastCreatedUnit,1000.00,1000.00,1000.00)
call RemoveLocation(udg_locations03[191])
call UnitApplyTimedLifeBJ(2.50,'BTLF',bj_lastCreatedUnit)
call SetUnitAbilityLevel(bj_lastCreatedUnit,'A01Z',GetUnitAbilityLevel(GetAttacker(),'A01A'))
set udg_locations03[191]=PolarProjectionBJ(GetUnitLoc(bj_lastCreatedUnit),400.00,GetUnitFacing(bj_lastCreatedUnit))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852580,udg_locations03[191])
call RemoveLocation(udg_locations03[191])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_dacaojue_2_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A00N'))
endfunction
function Trig_dacaojue_2_Func002A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_dacaojue_2_Actions takes nothing returns nothing
call PauseUnit(udg_units26[99],false)
call ForGroupBJ(udg_groups02[553],function Trig_dacaojue_2_Func002A)
call GroupClear(udg_groups02[553])
endfunction
function Trig_dacaojue_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A00N'))
endfunction
function Trig_dacaojue_Actions takes nothing returns nothing
set udg_units26[99]=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
call PauseUnit(udg_units26[99],true)
call SetUnitAnimation(udg_units26[99],"death")
set udg_locations03[64]=GetUnitLoc(udg_units26[99])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'echm',GetOwningPlayer(GetTriggerUnit()),udg_locations03[64],GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(3.50,'BTLF',bj_lastCreatedUnit)
call SetUnitScalePercent(bj_lastCreatedUnit,GetRandomReal(150.00,300.00),GetRandomReal(150.00,300.00),GetRandomReal(150.00,300.00))
call GroupAddUnit(udg_groups02[553],bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'edoc',GetOwningPlayer(GetTriggerUnit()),udg_locations03[64],GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(3.50,'BTLF',bj_lastCreatedUnit)
call SetUnitScalePercent(bj_lastCreatedUnit,GetRandomReal(150.00,300.00),GetRandomReal(150.00,300.00),GetRandomReal(150.00,300.00))
call GroupAddUnit(udg_groups02[553],bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(2.90)
call PauseUnit(udg_units26[99],false)
call RemoveLocation(udg_locations03[64])
endfunction
function Trig_jueleichanrao_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A014'))
endfunction
function Trig_jueleichanrao_Func005001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_jueleichanrao_Func005001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_jueleichanrao_Func005001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_jueleichanrao_Func005Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)))then
return false
endif
return true
endfunction
function Trig_jueleichanrao_Func005A takes nothing returns nothing
if(Trig_jueleichanrao_Func005Func001C())then
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A014'))*(I2R(GetHeroStatBJ(2,GetTriggerUnit(),true))*0.30)),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A014'))*I2R(GetHeroStatBJ(2,GetTriggerUnit(),true))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
set udg_locations03[195]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[195],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[195])
endfunction
function Trig_jueleichanrao_Actions takes nothing returns nothing
call SetUnitAnimation(GetTriggerUnit(),"spell four")
set udg_locations03[999]=GetSpellTargetLoc()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[63]=PolarProjectionBJ(udg_locations03[999],GetRandomReal(0,300.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'echm',GetOwningPlayer(GetTriggerUnit()),udg_locations03[63],GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call SetUnitScalePercent(bj_lastCreatedUnit,GetRandomReal(150.00,300.00),GetRandomReal(150.00,300.00),GetRandomReal(150.00,300.00))
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(-100.00,0.00),1000000000.00)
call RemoveLocation(udg_locations03[63])
set udg_locations03[63]=PolarProjectionBJ(udg_locations03[999],GetRandomReal(0,300.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'ohun',GetOwningPlayer(GetTriggerUnit()),udg_locations03[63],GetRandomReal(0,360))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,50.00)
call KillUnit(bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[63])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.10)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[999],Condition(function Trig_jueleichanrao_Func005001003)),function Trig_jueleichanrao_Func005A)
call RemoveLocation(udg_locations03[999])
endfunction
function Trig_taodun_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ANg2'))
endfunction
function Trig_taodun_Func003C takes nothing returns boolean
return((udg_booleans01[229]))
endfunction
function Trig_taodun_Actions takes nothing returns nothing
set udg_units30[99]=GetTriggerUnit()
call EnableTrigger(udg_trigger189)
if((udg_booleans01[229]))then
set udg_booleans01[230]=true
endif
endfunction
function Trig_taodun_2_Func001Func003C takes nothing returns boolean
return((udg_booleans01[229]==false))
endfunction
function Trig_taodun_2_Func001C takes nothing returns boolean
return((GetUnitTypeId(udg_units30[99])=='H001'))
endfunction
function Trig_taodun_2_Func002Func001C takes nothing returns boolean
return((udg_booleans01[230]))or((GetUnitState(udg_units30[99],UNIT_STATE_LIFE)<=0.00))
endfunction
function Trig_taodun_2_Func002C takes nothing returns boolean
return((((udg_booleans01[230]))or((GetUnitState(udg_units30[99],UNIT_STATE_LIFE)<=0.00))))
endfunction
function Trig_taodun_2_Actions takes nothing returns nothing
if((GetUnitTypeId(udg_units30[99])=='H001'))then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations06[100]=GetUnitLoc(udg_units30[99])
set udg_locations03[196]=PolarProjectionBJ(udg_locations06[100],GetRandomReal(0,100.00),GetRandomReal(0,360))
call AddSpecialEffectLocBJ(udg_locations03[196],"Abilities\\Weapons\\BrewmasterMissile\\BrewmasterMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[196])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if((udg_booleans01[229]==false))then
set udg_booleans01[229]=true
call SetUnitInvulnerable(udg_units30[99],true)
call TriggerSleepAction(1.50)
call SetUnitInvulnerable(udg_units30[99],false)
endif
endif
if((((udg_booleans01[230]))or((GetUnitState(udg_units30[99],UNIT_STATE_LIFE)<=0.00))))then
set udg_booleans01[229]=false
set udg_booleans01[230]=false
call DisableTrigger(GetTriggeringTrigger())
call SetUnitInvulnerable(udg_units30[99],true)
call TriggerSleepAction(1.50)
call SetUnitInvulnerable(udg_units30[99],false)
call UnitAddAbility(udg_units30[99],'Amrf')
call SetUnitFlyHeight(udg_units30[99],0.00,0.00)
call UnitRemoveAbility(udg_units30[99],'Amrf')
endif
endfunction
function Trig_tonglingzhishuyijiezhiwu_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A015'))
endfunction
function Trig_tonglingzhishuyijiezhiwu_Actions takes nothing returns nothing
call SetPlayerTechResearchedSwap('R000',GetUnitAbilityLevel(GetTriggerUnit(),'A015'),GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R001',GetUnitAbilityLevel(GetTriggerUnit(),'A015'),GetOwningPlayer(GetTriggerUnit()))
endfunction
function Trig_dacaomangyuan_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A017'))
endfunction
function Trig_dacaomangyuan_Func010Func002Func009001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_dacaomangyuan_Func010Func002Func009001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_dacaomangyuan_Func010Func002Func009001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_dacaomangyuan_Func010Func002Func009Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)))then
return false
endif
return true
endfunction
function Trig_dacaomangyuan_Func010Func002Func009A takes nothing returns nothing
if(Trig_dacaomangyuan_Func010Func002Func009Func001C())then
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(2,GetTriggerUnit(),true))*1.40),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(2,GetTriggerUnit(),true))*2.00),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
set udg_locations03[195]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[195],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[195])
endfunction
function Trig_dacaomangyuan_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000 _:_______________! |r")
set udg_locations01[8001]=GetUnitLoc(GetTriggerUnit())
set udg_integers06[1]='echm'
set udg_integers06[2]='edot'
set udg_integers06[3]='echm'
set udg_integers06[4]='echm'
call TriggerSleepAction(0.10)
call CreateNUnitsAtLoc(1,'ehpr',GetOwningPlayer(GetTriggerUnit()),udg_locations01[8001],GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(10.00,'BTLF',bj_lastCreatedUnit)
set udg_integers01[104]=1
loop
exitwhen udg_integers01[104]>20
call TriggerSleepAction(0.01)
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=udg_integers01[104]
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set udg_locations03[65]=PolarProjectionBJ(udg_locations01[8001],(50.00*I2R(udg_integers01[104])),((380.00/I2R(udg_integers01[104]))*I2R(bj_forLoopBIndex)))
call CreateNUnitsAtLoc(1,udg_integers06[GetRandomInt(1,4)],GetOwningPlayer(GetTriggerUnit()),udg_locations03[65],GetRandomReal(0,360))
call SetUnitScalePercent(bj_lastCreatedUnit,GetRandomReal(200.00,300.00),GetRandomReal(200.00,300.00),GetRandomReal(200.00,300.00))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,75.00)
call AddSpecialEffectLocBJ(udg_locations03[65],"Abilities\\Weapons\\BrewmasterMissile\\BrewmasterMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,udg_locations03[65],Condition(function Trig_dacaomangyuan_Func010Func002Func009001003)),function Trig_dacaomangyuan_Func010Func002Func009A)
call RemoveLocation(udg_locations03[65])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set udg_integers01[104]=udg_integers01[104]+1
endloop
call RemoveLocation(udg_locations01[8001])
endfunction
function Trig_xuanfengquan_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A07V'))
endfunction
function Trig_xuanfengquan_Actions takes nothing returns nothing
call SetUnitAnimation(GetTriggerUnit(),"spell one")
set udg_locations03[3]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLocFacingLocBJ(1,'odoc',GetOwningPlayer(GetTriggerUnit()),udg_locations03[3],GetSpellTargetLoc())
set udg_units02[5]=bj_lastCreatedUnit
call RemoveLocation(udg_locations03[3])
call EnableTrigger(udg_trigger193)
call TriggerSleepAction(1.00)
call DisableTrigger(udg_trigger193)
call KillUnit(udg_units02[5])
set udg_booleans01[229]=false
endfunction
function Trig_xuanfengquan2_Func004001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units02[5])))
endfunction
function Trig_xuanfengquan2_Func004A takes nothing returns nothing
set udg_locations03[6]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[6],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageDeathCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[6])
endfunction
function Trig_xuanfengquan2_Func005Func001Func002C takes nothing returns boolean
return((DistanceBetweenPoints(udg_locations03[109],udg_locations04[bj_forLoopAIndex])<=180.00))or((DistanceBetweenPoints(udg_locations03[109],udg_locations05[bj_forLoopAIndex])<=180.00))
endfunction
function Trig_xuanfengquan2_Func005Func001C takes nothing returns boolean
return((udg_booleans01[7050]))and((((DistanceBetweenPoints(udg_locations03[109],udg_locations04[bj_forLoopAIndex])<=180.00))or((DistanceBetweenPoints(udg_locations03[109],udg_locations05[bj_forLoopAIndex])<=180.00))))
endfunction
function Trig_xuanfengquan2_Func006Func006001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units02[5])))
endfunction
function Trig_xuanfengquan2_Func006Func006A takes nothing returns nothing
set udg_locations03[230]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Weapons\\RedDragonBreath\\RedDragonMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[230])
call UnitDamageTarget(udg_units30[101],GetEnumUnit(),(20.00*I2R(GetUnitAbilityLevel(udg_units30[101],'A05N'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_xuanfengquan2_Func006Func010001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units02[5])))
endfunction
function Trig_xuanfengquan2_Func006Func010A takes nothing returns nothing
set udg_locations03[230]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Weapons\\RedDragonBreath\\RedDragonMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[230])
call UnitDamageTarget(udg_units30[101],GetEnumUnit(),(20.00*I2R(GetUnitAbilityLevel(udg_units30[101],'A05N'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_xuanfengquan2_Func006C takes nothing returns boolean
return((udg_booleans01[229]))
endfunction
function Trig_xuanfengquan2_Actions takes nothing returns nothing
set udg_locations03[109]=PolarProjectionBJ(GetUnitLoc(udg_units02[5]),35.00,GetUnitFacing(udg_units02[5]))
call SetUnitPositionLoc(udg_units02[5],udg_locations03[109])
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,udg_locations03[109],Condition(function Trig_xuanfengquan2_Func004001003)),function Trig_xuanfengquan2_Func004A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((((udg_booleans01[7050]))and((((DistanceBetweenPoints(udg_locations03[109],udg_locations04[bj_forLoopAIndex])<=180.00))or((DistanceBetweenPoints(udg_locations03[109],udg_locations05[bj_forLoopAIndex])<=180.00))))))then
set udg_booleans01[229]=true
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if((udg_booleans01[229]))then
set udg_locations03[229]=PolarProjectionBJ(udg_locations03[109],100.00,(GetUnitFacing(udg_units02[5])+90.00))
call AddSpecialEffectLocBJ(udg_locations03[229],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,udg_locations03[229],Condition(function Trig_xuanfengquan2_Func006Func006001003)),function Trig_xuanfengquan2_Func006Func006A)
call RemoveLocation(udg_locations03[229])
set udg_locations03[229]=PolarProjectionBJ(udg_locations03[109],100.00,(GetUnitFacing(udg_units02[5])-90.00))
call AddSpecialEffectLocBJ(udg_locations03[229],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,udg_locations03[229],Condition(function Trig_xuanfengquan2_Func006Func010001003)),function Trig_xuanfengquan2_Func006Func010A)
call RemoveLocation(udg_locations03[229])
else
call AddSpecialEffectLocBJ(udg_locations03[109],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endif
call RemoveLocation(udg_locations03[109])
endfunction
function Trig_JSCZ_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A05P'))
endfunction
function Trig_JSCZ_Actions takes nothing returns nothing
set udg_units30[101]=GetTriggerUnit()
call TriggerSleepAction(0.05)
call PauseUnit(GetTriggerUnit(),true)
set udg_locations03[66]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),60.00,(GetUnitFacing(GetTriggerUnit())+60.00))
call CreateNUnitsAtLocFacingLocBJ(1,'zjug',GetOwningPlayer(GetTriggerUnit()),udg_locations03[66],GetUnitLoc(GetTriggerUnit()))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call RemoveLocation(udg_locations03[66])
set udg_units27[101]=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(0.60,'BTLF',bj_lastCreatedUnit)
set udg_locations03[66]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),60.00,(GetUnitFacing(GetTriggerUnit())-60.00))
call CreateNUnitsAtLocFacingLocBJ(1,'zjug',GetOwningPlayer(GetTriggerUnit()),udg_locations03[66],GetUnitLoc(GetTriggerUnit()))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call RemoveLocation(udg_locations03[66])
set udg_units27[102]=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(0.60,'BTLF',bj_lastCreatedUnit)
call UnitAddAbility(GetTriggerUnit(),'A032')
call SetUnitTimeScalePercent(GetTriggerUnit(),80.00)
call SetUnitAnimation(GetTriggerUnit(),"attack slam")
call SetUnitPathing(GetTriggerUnit(),false)
call EnableTrigger(udg_trigger195)
call TriggerSleepAction(0.60)
call DisableTrigger(udg_trigger195)
call UnitRemoveAbility(GetTriggerUnit(),'A032')
call SetUnitTimeScalePercent(GetTriggerUnit(),100.00)
call SetUnitPathing(GetTriggerUnit(),true)
call PauseUnit(GetTriggerUnit(),false)
call GroupClear(udg_groups03[14])
endfunction
function Trig_JSCZ_2_Func001C takes nothing returns boolean
return((IsTerrainPathableBJ(PolarProjectionBJ(GetUnitLoc(udg_units30[101]),35.00,GetUnitFacing(udg_units30[101])),PATHING_TYPE_WALKABILITY)))
endfunction
function Trig_JSCZ_2_Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_JSCZ_2_Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units30[101])))
endfunction
function Trig_JSCZ_2_Func003001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units30[101]))))
endfunction
function Trig_JSCZ_2_Func003Func006C takes nothing returns boolean
if(not(IsUnitInGroup(GetEnumUnit(),udg_groups03[14])))then
return false
endif
return true
endfunction
function Trig_JSCZ_2_Func003A takes nothing returns nothing
call IssueTargetOrder(GetEnumUnit(),"attack",GetEnumUnit())
set udg_locations03[198]=PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),35.00,AngleBetweenPoints(GetUnitLoc(udg_units30[101]),PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),200.00,GetUnitFacing(udg_units30[101]))))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations03[198]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations03[198]))
call RemoveLocation(udg_locations03[198])
if(Trig_JSCZ_2_Func003Func006C())then
else
call UnitDamageTarget(udg_units30[101],GetEnumUnit(),(I2R(GetHeroStatBJ(1,udg_units30[101],true))*I2R(GetUnitAbilityLevel(udg_units30[101],'A05P'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call GroupAddUnit(udg_groups03[14],GetEnumUnit())
endif
endfunction
function Trig_JSCZ_2_Actions takes nothing returns nothing
if((IsTerrainPathableBJ(PolarProjectionBJ(GetUnitLoc(udg_units30[101]),35.00,GetUnitFacing(udg_units30[101])),PATHING_TYPE_WALKABILITY)))then
else
set udg_locations03[197]=PolarProjectionBJ(GetUnitLoc(udg_units30[101]),35.00,GetUnitFacing(udg_units30[101]))
call SetUnitPositionLoc(udg_units30[101],udg_locations03[197])
call AddSpecialEffectLocBJ(udg_locations03[197],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[197])
set udg_locations03[197]=PolarProjectionBJ(GetUnitLoc(udg_units30[101]),80.00,(GetUnitFacing(udg_units30[101])+90.00))
call SetUnitPositionLocFacingLocBJ(udg_units27[101],udg_locations03[197],GetUnitLoc(udg_units30[101]))
call AddSpecialEffectLocBJ(udg_locations03[197],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageDeathCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[197])
set udg_locations03[197]=PolarProjectionBJ(GetUnitLoc(udg_units30[101]),80.00,(GetUnitFacing(udg_units30[101])-90.00))
call SetUnitPositionLocFacingLocBJ(udg_units27[102],udg_locations03[197],GetUnitLoc(udg_units30[101]))
call AddSpecialEffectLocBJ(udg_locations03[197],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageDeathCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[197])
endif
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(180.00,GetUnitLoc(udg_units30[101]),Condition(function Trig_JSCZ_2_Func003001003)),function Trig_JSCZ_2_Func003A)
endfunction
function Trig_LHCZ_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A05O'))
endfunction
function Trig_LHCZ_Actions takes nothing returns nothing
set udg_units30[101]=GetTriggerUnit()
set udg_units26[101]=GetSpellTargetUnit()
set udg_real11=50.00
call TriggerSleepAction(0.05)
call PauseUnit(GetTriggerUnit(),true)
call UnitAddAbility(GetTriggerUnit(),'A032')
call SetUnitTimeScalePercent(GetTriggerUnit(),400.00)
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitAnimationWithRarity(GetTriggerUnit(),"attack",RARITY_FREQUENT)
call SetUnitPositionLocFacingLocBJ(GetTriggerUnit(),PolarProjectionBJ(GetUnitLoc(udg_units26[101]),70.00,GetRandomReal(0,360)),GetUnitLoc(udg_units26[101]))
call TriggerSleepAction(0.10)
call UnitDamageTarget(GetTriggerUnit(),udg_units26[101],(30.00*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A05O'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
set udg_locations03[67]=GetUnitLoc(udg_units30[101])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'uarb',GetOwningPlayer(udg_units30[101]),udg_locations03[67],GetUnitFacing(udg_units30[101]))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,(110.00+(6.00*I2R(bj_forLoopAIndex))))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[67])
call EnableTrigger(udg_trigger197)
call PauseUnit(udg_units26[101],true)
call SetUnitPathing(udg_units26[101],false)
call TriggerSleepAction(0.20)
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitAnimationWithRarity(GetTriggerUnit(),"attack",RARITY_FREQUENT)
call SetUnitPositionLocFacingLocBJ(GetTriggerUnit(),PolarProjectionBJ(GetUnitLoc(udg_units26[101]),70.00,GetRandomReal(0,360)),GetUnitLoc(udg_units26[101]))
call TriggerSleepAction(0.10)
set udg_real11=50.00
call UnitDamageTarget(GetTriggerUnit(),udg_units26[101],(30.00*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A05O'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
set udg_locations03[67]=GetUnitLoc(udg_units30[101])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'uarb',GetOwningPlayer(udg_units30[101]),udg_locations03[67],GetUnitFacing(udg_units30[101]))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,(110.00+(6.00*I2R(bj_forLoopAIndex))))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[67])
call TriggerSleepAction(0.20)
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitAnimationWithRarity(GetTriggerUnit(),"attack",RARITY_FREQUENT)
call SetUnitPositionLocFacingLocBJ(GetTriggerUnit(),PolarProjectionBJ(GetUnitLoc(udg_units26[101]),70.00,GetRandomReal(0,360)),GetUnitLoc(udg_units26[101]))
call TriggerSleepAction(0.10)
set udg_real11=70.00
call UnitDamageTarget(GetTriggerUnit(),udg_units26[101],(30.00*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A05O'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
set udg_locations03[67]=GetUnitLoc(udg_units30[101])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'uarb',GetOwningPlayer(udg_units30[101]),udg_locations03[67],GetUnitFacing(udg_units30[101]))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,(110.00+(6.00*I2R(bj_forLoopAIndex))))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[67])
call TriggerSleepAction(0.40)
call DisableTrigger(udg_trigger197)
call SetUnitPathing(udg_units26[101],true)
call PauseUnit(udg_units26[101],false)
call UnitRemoveAbility(GetTriggerUnit(),'A032')
call SetUnitTimeScalePercent(GetTriggerUnit(),100.00)
call PauseUnit(GetTriggerUnit(),false)
endfunction
function Trig_LHCZ2_Func002C takes nothing returns boolean
return((IsTerrainPathableBJ(PolarProjectionBJ(GetUnitLoc(udg_units26[101]),udg_real11,GetUnitFacing(udg_units30[101])),PATHING_TYPE_WALKABILITY)))
endfunction
function Trig_LHCZ2_Actions takes nothing returns nothing
set udg_real11=(udg_real11-4.00)
if((IsTerrainPathableBJ(PolarProjectionBJ(GetUnitLoc(udg_units26[101]),udg_real11,GetUnitFacing(udg_units30[101])),PATHING_TYPE_WALKABILITY)))then
else
set udg_locations03[198]=PolarProjectionBJ(GetUnitLoc(udg_units26[101]),udg_real11,GetUnitFacing(udg_units30[101]))
call SetUnitPositionLoc(udg_units26[101],udg_locations03[198])
call AddSpecialEffectLocBJ(udg_locations03[198],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[198])
endif
endfunction
function Trig_DHJZS_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A05N'))
endfunction
function Trig_DHJZS_Actions takes nothing returns nothing
set udg_reals01[101]=GetUnitFacing(GetTriggerUnit())
set udg_units30[101]=GetTriggerUnit()
set udg_locations02[101]=GetSpellTargetLoc()
call EnableTrigger(udg_trigger199)
endfunction
function Trig_ASMrs_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='nnrg'))
endfunction
function Trig_ASMrs_Func004Func003Func004001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units30[101])))
endfunction
function Trig_ASMrs_Func004Func003Func004A takes nothing returns nothing
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(20.00*I2R(GetUnitAbilityLevel(udg_units30[101],'A05N'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_ASMrs_Func004Func003Func010001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units30[101])))
endfunction
function Trig_ASMrs_Func004Func003Func010A takes nothing returns nothing
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(20.00*I2R(GetUnitAbilityLevel(udg_units30[101],'A05N'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_ASMrs_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetUnitAnimation(udg_units30[101],"spell")
set udg_booleans01[7050]=true
set udg_integers01[105]=1
loop
exitwhen udg_integers01[105]>15
set udg_locations04[udg_integers01[105]]=PolarProjectionBJ(udg_locations02[101],(30.00*I2R(udg_integers01[105])),(udg_reals01[101]+90.00))
set udg_locations05[udg_integers01[105]]=PolarProjectionBJ(udg_locations02[101],(30.00*I2R(udg_integers01[105])),(udg_reals01[101]-90.00))
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=2
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set udg_locations03[68]=GetRandomLocInRect(RectFromCenterSizeBJ(PolarProjectionBJ(udg_locations02[101],(30.00*I2R(udg_integers01[105])),(udg_reals01[101]+90.00)),100.00,100.00))
call CreateNUnitsAtLoc(1,'nsbs',GetOwningPlayer(GetTriggerUnit()),udg_locations03[68],GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(10.00,'BTLF',bj_lastCreatedUnit)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,udg_locations03[68],Condition(function Trig_ASMrs_Func004Func003Func004001003)),function Trig_ASMrs_Func004Func003Func004A)
call RemoveLocation(udg_locations03[68])
set udg_locations03[68]=GetRandomLocInRect(RectFromCenterSizeBJ(PolarProjectionBJ(udg_locations02[101],(30.00*I2R(udg_integers01[105])),(udg_reals01[101]-90.00)),100.00,100.00))
call CreateNUnitsAtLoc(1,'nsbs',GetOwningPlayer(GetTriggerUnit()),udg_locations03[68],GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(10.00,'BTLF',bj_lastCreatedUnit)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,udg_locations03[68],Condition(function Trig_ASMrs_Func004Func003Func010001003)),function Trig_ASMrs_Func004Func003Func010A)
call RemoveLocation(udg_locations03[68])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call TriggerSleepAction(0.02)
set udg_integers01[105]=udg_integers01[105]+1
endloop
call RemoveLocation(udg_locations01[2])
call EnableTrigger(udg_trigger200)
call TriggerSleepAction(9.00)
call DisableTrigger(udg_trigger200)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveLocation(udg_locations04[bj_forLoopAIndex])
call RemoveLocation(udg_locations05[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_booleans01[7050]=false
endfunction
function Trig_ASMr2_Func001Func002001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units30[101])))
endfunction
function Trig_ASMr2_Func001Func002Func001Func005C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)==false))then
return false
endif
return true
endfunction
function Trig_ASMr2_Func001Func002Func001C takes nothing returns boolean
return((IsUnitInGroup(GetEnumUnit(),udg_groups06[27])==false))
endfunction
function Trig_ASMr2_Func001Func002A takes nothing returns nothing
if((IsUnitInGroup(GetEnumUnit(),udg_groups06[27])==false))then
set udg_locations03[68]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations07[68],"Abilities\\Weapons\\RedDragonBreath\\RedDragonMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[68])
if(Trig_ASMr2_Func001Func002Func001Func005C())then
call UnitDamageTargetBJ(udg_units30[101],GetEnumUnit(),((20.00*I2R(GetUnitAbilityLevel(udg_units30[101],'A05N')))+10.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endif
call GroupAddUnit(udg_groups06[27],GetEnumUnit())
endif
endfunction
function Trig_ASMr2_Func001Func004001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units30[101])))
endfunction
function Trig_ASMr2_Func001Func004Func001Func005C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)==false))then
return false
endif
return true
endfunction
function Trig_ASMr2_Func001Func004Func001C takes nothing returns boolean
return((IsUnitInGroup(GetEnumUnit(),udg_groups06[27])==false))
endfunction
function Trig_ASMr2_Func001Func004A takes nothing returns nothing
if((IsUnitInGroup(GetEnumUnit(),udg_groups06[27])==false))then
set udg_locations03[68]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations07[68],"Abilities\\Weapons\\RedDragonBreath\\RedDragonMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[68])
if(Trig_ASMr2_Func001Func004Func001Func005C())then
call UnitDamageTargetBJ(udg_units30[101],GetEnumUnit(),((20.00*I2R(GetUnitAbilityLevel(udg_units30[101],'A05N')))+10.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endif
call GroupAddUnit(udg_groups06[27],GetEnumUnit())
endif
endfunction
function Trig_ASMr2_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,udg_locations04[bj_forLoopAIndex],Condition(function Trig_ASMr2_Func001Func002001003)),function Trig_ASMr2_Func001Func002A)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,udg_locations05[bj_forLoopAIndex],Condition(function Trig_ASMr2_Func001Func004001003)),function Trig_ASMr2_Func001Func004A)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call GroupClear(udg_groups06[27])
endfunction
function Trig_JSYS_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A05Q'))
endfunction
function Trig_JSYS_Func010Func010A takes nothing returns nothing
call SetUnitFlyHeight(GetEnumUnit(),0.00,1000000000.00)
call SetUnitAnimationWithRarity(GetTriggerUnit(),"attack",RARITY_FREQUENT)
call SetUnitPositionLocFacingLocBJ(GetEnumUnit(),PolarProjectionBJ(GetUnitLoc(udg_units26[101]),70.00,AngleBetweenPoints(GetUnitLoc(udg_units26[101]),GetUnitLoc(GetTriggerUnit()))),GetUnitLoc(udg_units26[101]))
call SetUnitPositionLocFacingLocBJ(udg_units30[101],PolarProjectionBJ(GetUnitLoc(udg_units26[101]),70.00,AngleBetweenPoints(GetUnitLoc(udg_units26[101]),GetUnitLoc(GetTriggerUnit()))),GetUnitLoc(udg_units26[101]))
call SetUnitPositionLoc(udg_units26[101],PolarProjectionBJ(GetUnitLoc(udg_units26[101]),100.00,GetUnitFacing(GetEnumUnit())))
call SetUnitAnimation(udg_units26[101],"death")
call UnitApplyTimedLifeBJ(0.05,'BTLF',GetEnumUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units26[101]),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call GroupRemoveUnit(udg_groups03[15],GetEnumUnit())
call UnitDamageTarget(GetTriggerUnit(),udg_units26[101],(I2R(GetHeroStatBJ(1,GetTriggerUnit(),true))*2.20),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_JSYS_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000___:_______! |r")
set udg_units30[101]=GetTriggerUnit()
set udg_units26[101]=GetSpellTargetUnit()
call TriggerSleepAction(0.05)
call PauseUnit(GetTriggerUnit(),true)
call PauseUnit(udg_units26[101],true)
call UnitAddAbility(GetTriggerUnit(),'A02Q')
call SetUnitTimeScalePercent(GetTriggerUnit(),400.00)
call SetUnitAnimationWithRarity(GetTriggerUnit(),"attack",RARITY_FREQUENT)
set udg_integers01[106]=1
loop
exitwhen udg_integers01[106]>10
set udg_locations03[69]=GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units26[101]),600.00,600.00))
call CreateNUnitsAtLocFacingLocBJ(1,'nwgs',GetOwningPlayer(udg_units30[101]),udg_locations03[69],GetUnitLoc(udg_units26[101]))
call RemoveLocation(udg_locations03[69])
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(0.00,300.00),1000000000.00)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,400.00)
call SetUnitAnimationWithRarity(bj_lastCreatedUnit,"attack",RARITY_RARE)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100,100,100,60.00)
call GroupAddUnit(udg_groups03[15],bj_lastCreatedUnit)
call TriggerSleepAction(0.01)
call ForGroupBJ(udg_groups03[15],function Trig_JSYS_Func010Func010A)
set udg_integers01[106]=udg_integers01[106]+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'uarb',GetOwningPlayer(udg_units30[101]),GetUnitLoc(udg_units26[101]),GetUnitFacing(udg_units30[101]))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,(110.00+(6.00*I2R(bj_forLoopAIndex))))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseUnit(udg_units26[101],false)
call SetUnitAnimationWithRarity(GetTriggerUnit(),"attack",RARITY_FREQUENT)
call SetUnitPositionLocFacingLocBJ(GetTriggerUnit(),PolarProjectionBJ(GetUnitLoc(udg_units26[101]),400.00,GetUnitFacing(GetTriggerUnit())),PolarProjectionBJ(GetUnitLoc(udg_units26[101]),800.00,GetUnitFacing(GetTriggerUnit())))
call UnitRemoveAbility(GetTriggerUnit(),'A02Q')
call SetUnitTimeScalePercent(GetTriggerUnit(),100.00)
call PauseUnit(GetTriggerUnit(),false)
call GroupClear(udg_groups03[15])
endfunction
function Trig_qianyingsheshou2_Func008Func001Func006001003001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups04[99])==false)
endfunction
function Trig_qianyingsheshou2_Func008Func001Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units19[20])))
endfunction
function Trig_qianyingsheshou2_Func008Func001Func006001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitInGroup(GetFilterUnit(),udg_groups04[99])==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units19[20]))))
endfunction
function Trig_qianyingsheshou2_Func008Func001Func006A takes nothing returns nothing
set udg_locations03[204]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[204],"Abilities\\Weapons\\HydraliskImpact\\HydraliskImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[204])
call GroupAddUnit(udg_groups04[99],GetEnumUnit())
call UnitDamageTarget(udg_units19[20],GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_units19[20],true))*I2R(GetUnitAbilityLevel(udg_units19[20],'A002'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_qianyingsheshou2_Func008Func001C takes nothing returns boolean
return((IsUnitDeadBJ(GetEnumUnit())))
endfunction
function Trig_qianyingsheshou2_Func008A takes nothing returns nothing
if((IsUnitDeadBJ(GetEnumUnit())))then
call GroupRemoveUnit(udg_groups04[77],GetEnumUnit())
else
set udg_locations06[92]=GetUnitLoc(GetEnumUnit())
set udg_locations06[91]=PolarProjectionBJ(udg_locations06[92],I2R(GetUnitUserData(GetEnumUnit())),GetUnitFacing(GetEnumUnit()))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations06[91]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations06[91]))
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(120.00,udg_locations06[91],Condition(function Trig_qianyingsheshou2_Func008Func001Func006001003)),function Trig_qianyingsheshou2_Func008Func001Func006A)
call RemoveLocation(udg_locations06[92])
call RemoveLocation(udg_locations06[91])
endif
endfunction
function Trig_qianyingsheshou2_Actions takes nothing returns nothing
set udg_locations06[92]=GetUnitLoc(udg_units18[20])
set udg_locations03[199]=PolarProjectionBJ(udg_locations06[92],8.00,udg_reals01[200])
call SetUnitPositionLoc(udg_units18[20],udg_locations03[199])
call AddSpecialEffectLocBJ(udg_locations03[199],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[199])
call RemoveLocation(udg_locations06[92])
call ForGroupBJ(udg_groups04[77],function Trig_qianyingsheshou2_Func008A)
endfunction
function Trig_guimeizhishu_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A07N'))
endfunction
function Trig_guimeizhishu_Actions takes nothing returns nothing
set udg_units30[200]=GetTriggerUnit()
set udg_units26[200]=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
call PauseUnit(udg_units30[200],true)
call PauseUnit(udg_units26[200],true)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectTargetUnitBJ("head",udg_units30[200],"Abilities\\Weapons\\SerpentWardMissile\\SerpentWardMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitPositionLoc(udg_units26[200],PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),400.00,GetUnitFacing(GetTriggerUnit())))
call SetUnitPathing(udg_units26[200],false)
call EnableTrigger(udg_trigger205)
call TriggerSleepAction(0.60)
call DisableTrigger(udg_trigger205)
call PauseUnit(udg_units26[200],false)
call PauseUnit(udg_units30[200],false)
call SetUnitPathing(udg_units26[200],true)
endfunction
function Trig_guimeizhishu2_Actions takes nothing returns nothing
set udg_locations03[200]=PolarProjectionBJ(GetUnitLoc(udg_units26[200]),20.00,AngleBetweenPoints(GetUnitLoc(udg_units26[200]),GetUnitLoc(udg_units30[200])))
call SetUnitPositionLoc(udg_units26[200],udg_locations03[200])
call AddSpecialEffectLocBJ(udg_locations03[200],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[200])
endfunction
function Trig_czys_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A081'))
endfunction
function Trig_czys_Actions takes nothing returns nothing
set udg_units30[539]=GetTriggerUnit()
set udg_units26[539]=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
call PauseUnit(udg_units30[539],true)
call PauseUnit(udg_units26[539],true)
call SetUnitPathing(udg_units30[539],false)
call SetUnitPathing(udg_units26[539],false)
call SetUnitPositionLocFacingLocBJ(GetTriggerUnit(),PolarProjectionBJ(GetUnitLoc(udg_units26[539]),80.00,AngleBetweenPoints(GetUnitLoc(udg_units26[539]),GetUnitLoc(udg_units30[539]))),GetUnitLoc(udg_units26[539]))
call SetUnitAnimationByIndex(udg_units30[539],9)
call SetUnitAnimation(udg_units26[539],"death")
call TriggerSleepAction(0.05)
call SetUnitAnimation(udg_units26[539],"stand")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectTargetUnitBJ("head",udg_units26[539],"Abilities\\Weapons\\SerpentWardMissile\\SerpentWardMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.35)
call SetUnitPositionLocFacingLocBJ(GetTriggerUnit(),PolarProjectionBJ(GetUnitLoc(udg_units26[539]),120.00,AngleBetweenPoints(GetUnitLoc(udg_units30[539]),GetUnitLoc(udg_units26[539]))),GetUnitLoc(udg_units26[539]))
call SetUnitAnimationByIndex(udg_units30[539],2)
call SetUnitAnimation(udg_units26[539],"death")
call TriggerSleepAction(0.05)
call SetUnitAnimation(udg_units26[539],"stand")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectTargetUnitBJ("head",udg_units26[539],"Abilities\\Weapons\\SerpentWardMissile\\SerpentWardMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.25)
call SetUnitPositionLocFacingLocBJ(GetTriggerUnit(),PolarProjectionBJ(GetUnitLoc(udg_units26[539]),100.00,GetRandomReal(0,360)),GetUnitLoc(udg_units26[539]))
call SetUnitAnimationByIndex(udg_units30[539],2)
call SetUnitAnimation(udg_units26[539],"death")
call TriggerSleepAction(0.05)
call SetUnitAnimation(udg_units26[539],"stand")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectTargetUnitBJ("head",udg_units26[539],"Abilities\\Weapons\\SerpentWardMissile\\SerpentWardMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.30)
call SetUnitAnimationByIndex(udg_units30[539],3)
call TriggerSleepAction(0.20)
call EnableTrigger(udg_trigger207)
call SetUnitAnimation(udg_units26[539],"death")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectTargetUnitBJ("head",udg_units26[539],"Abilities\\Weapons\\GryphonRiderMissile\\GryphonRiderMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitAnimation(udg_units26[539],"stand")
call TriggerSleepAction(0.05)
call SetUnitAnimation(udg_units30[539],"spell")
call TriggerSleepAction(0.25)
call SetUnitAnimation(udg_units30[539],"death slam")
call EnableTrigger(udg_trigger208)
set udg_reals01[539]=GetUnitFacing(udg_units30[539])
call TriggerSleepAction(1.00)
call DisableTrigger(udg_trigger207)
endfunction
function Trig_czys2_Func001C takes nothing returns boolean
return((IsTerrainPathableBJ(PolarProjectionBJ(GetUnitLoc(udg_units26[539]),50.00,udg_reals01[539]),PATHING_TYPE_WALKABILITY)))
endfunction
function Trig_czys2_Actions takes nothing returns nothing
if((IsTerrainPathableBJ(PolarProjectionBJ(GetUnitLoc(udg_units26[539]),50.00,udg_reals01[539]),PATHING_TYPE_WALKABILITY)))then
else
set udg_locations03[201]=PolarProjectionBJ(GetUnitLoc(udg_units26[539]),25.00,udg_reals01[539])
call SetUnitPositionLoc(udg_units26[539],udg_locations03[201])
call AddSpecialEffectLocBJ(udg_locations03[201],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endif
call RemoveLocation(udg_locations03[201])
endfunction
function Trig_czys3_Func001C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_units30[539]),GetUnitLoc(udg_units26[539]))<=100.00))
endfunction
function Trig_czys3_Actions takes nothing returns nothing
if((DistanceBetweenPoints(GetUnitLoc(udg_units30[539]),GetUnitLoc(udg_units26[539]))<=100.00))then
call DisableTrigger(udg_trigger207)
call DisableTrigger(GetTriggeringTrigger())
set udg_reals01[549]=0.00
call SetUnitAnimation(udg_units30[539],"stand")
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units26[539]),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units26[539]),400.00,400.00)),"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units26[539]),400.00,400.00)),"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyEffect(bj_lastCreatedEffect)
call PauseUnit(udg_units30[539],false)
call PauseUnit(udg_units26[539],false)
call SetUnitPathing(udg_units30[539],true)
call SetUnitPathing(udg_units26[539],true)
call UnitDamageTarget(udg_units30[539],udg_units26[539],((600.00+I2R(GetHeroStatBJ(2,udg_units30[539],true)))*(1.00*I2R(GetUnitAbilityLevel(udg_units30[539],'A081')))),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
set udg_locations03[202]=PolarProjectionBJ(GetUnitLoc(udg_units30[539]),35.00,AngleBetweenPoints(GetUnitLoc(udg_units30[539]),GetUnitLoc(udg_units26[539])))
call SetUnitPositionLocFacingLocBJ(udg_units30[539],udg_locations03[202],GetUnitLoc(udg_units26[539]))
call RemoveLocation(udg_locations03[202])
call SetUnitPathing(udg_units30[539],false)
endif
endfunction
function Trig_restA_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A092'))
endfunction
function Trig_restA_Actions takes nothing returns nothing
set udg_integer17=0
set udg_units46[0]=GetTriggerUnit()
set udg_location09=GetUnitLoc(udg_units46[0])
set udg_location08=GetSpellTargetLoc()
set udg_real16=AngleBetweenPoints(udg_location09,udg_location08)
set udg_locations20[0]=PolarProjectionBJ(udg_location09,800.00,udg_real16)
call TriggerSleepAction(0.10)
call PauseUnit(udg_units46[0],true)
call SetUnitAnimation(udg_units46[0],"attack")
call StartTimerBJ(udg_timer08,true,0.02)
endfunction
function Trig_restB_Func002Func014Func003001003001001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group11)==false)
endfunction
function Trig_restB_Func002Func014Func003001003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_restB_Func002Func014Func003001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitInGroup(GetFilterUnit(),udg_group11)==false),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))
endfunction
function Trig_restB_Func002Func014Func003001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_restB_Func002Func014Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units46[0])))
endfunction
function Trig_restB_Func002Func014Func003001003002 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units46[0]))))
endfunction
function Trig_restB_Func002Func014Func003001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitInGroup(GetFilterUnit(),udg_group11)==false),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))),(GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units46[0]))))))
endfunction
function Trig_restB_Func002Func014Func003A takes nothing returns nothing
set udg_locations20[2]=GetUnitLoc(GetEnumUnit())
call UnitDamageTarget(udg_units46[0],GetEnumUnit(),(I2R(GetUnitAbilityLevel(udg_units46[0],'A092'))*(I2R(GetHeroInt(udg_units46[0],true))*0.75)),false,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_DEATH,WEAPON_TYPE_WHOKNOWS)
call GroupAddUnit(udg_group11,GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations20[2],"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations20[2])
endfunction
function Trig_restB_Func002C takes nothing returns boolean
return((udg_integer17==10))
endfunction
function Trig_restB_Actions takes nothing returns nothing
set udg_integer17=(udg_integer17+1)
if((udg_integer17==10))then
call PauseTimer(udg_timer08)
call StartTimerBJ(udg_timer09,true,0.03)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations20[1]=PolarProjectionBJ(udg_location09,(80.00*I2R(bj_forLoopAIndex)),udg_real16)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,udg_locations20[1],Condition(function Trig_restB_Func002Func014Func003001003)),function Trig_restB_Func002Func014Func003A)
call RemoveLocation(udg_locations20[1])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
set udg_real15=(0.50+(0.10*I2R(udg_integer17)))
set udg_reals11[udg_integer17]=GetUnitX(udg_units46[(udg_integer17-1)])
set udg_reals10[udg_integer17]=GetUnitY(udg_units46[(udg_integer17-1)])
set udg_units46[udg_integer17]=CreateUnit(GetOwningPlayer(udg_units46[0]),'ndtw',(udg_reals11[udg_integer17]+((DistanceBetweenPoints(udg_location09,udg_locations20[0])/10.00)*CosBJ(udg_real16))),(udg_reals10[udg_integer17]+((DistanceBetweenPoints(udg_location09,udg_locations20[0])/10.00)*SinBJ(udg_real16))),udg_real16)
call SetUnitScale(udg_units46[udg_integer17],udg_real15,udg_real15,udg_real15)
call SetUnitAnimation(udg_units46[udg_integer17],"spell two")
set udg_units47[udg_integer17]=CreateUnit(GetOwningPlayer(udg_units46[0]),'ndtb',udg_reals11[udg_integer17],udg_reals10[udg_integer17],udg_real16)
call SetUnitFlyHeight(udg_units47[udg_integer17],GetRandomReal(0,150.00),999999.00)
call SetUnitScale(udg_units47[udg_integer17],udg_real15,udg_real15,udg_real15)
call SetUnitAnimation(udg_units47[udg_integer17],"death")
endif
endfunction
function Trig_restC_Func002C takes nothing returns boolean
return((udg_integer17==1))
endfunction
function Trig_restC_Actions takes nothing returns nothing
set udg_integer17=(udg_integer17-1)
if((udg_integer17==1))then
call PauseUnit(udg_units46[0],false)
call PauseTimer(udg_timer09)
call GroupClear(udg_group11)
call RemoveUnit(udg_units46[udg_integer17])
call RemoveUnit(udg_units47[udg_integer17])
call RemoveLocation(udg_location09)
call RemoveLocation(udg_location08)
else
set udg_real15=(0.80+(0.30*I2R(udg_integer17)))
set udg_reals11[udg_integer17]=GetUnitX(udg_units46[(udg_integer17-1)])
set udg_reals10[udg_integer17]=GetUnitY(udg_units46[(udg_integer17-1)])
call RemoveUnit(udg_units47[udg_integer17])
call RemoveUnit(udg_units46[udg_integer17])
endif
endfunction
function Trig_poshanji_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A00C'))
endfunction
function Trig_poshanji_Func023Func006001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_poshanji_Func023Func006Func001C takes nothing returns boolean
if(not(IsUnitInGroup(GetEnumUnit(),udg_groups05[131])==false))then
return false
endif
return true
endfunction
function Trig_poshanji_Func023Func006A takes nothing returns nothing
if(Trig_poshanji_Func023Func006Func001C())then
call UnitDamageTarget(udg_unit07,GetEnumUnit(),(500.00+(I2R(GetHeroStatBJ(1,udg_unit07,true))*10.00)),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call GroupAddUnit(udg_groups05[131],GetEnumUnit())
endif
endfunction
function Trig_poshanji_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000__:_,______!|r")
set udg_unit08=GetSpellTargetUnit()
set udg_unit07=GetTriggerUnit()
call PauseUnit(GetTriggerUnit(),true)
call PauseUnit(udg_unit08,true)
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitPositionLocFacingLocBJ(GetTriggerUnit(),PolarProjectionBJ(GetUnitLoc(udg_unit08),70.00,GetUnitFacing(udg_unit08)),GetUnitLoc(udg_unit08))
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitAnimation(GetTriggerUnit(),"Stand Ready")
set udg_effect02=AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"bagua.mdx")
call TriggerSleepAction(1.00)
call SetUnitTimeScalePercent(GetTriggerUnit(),30.00)
call SetUnitAnimationByIndex(GetTriggerUnit(),5)
set udg_effects02[1141]=AddSpecialEffectTargetUnitBJ("hand left",GetTriggerUnit(),"war3mapImported\\MeditationAura.MDX")
set udg_effects02[1142]=AddSpecialEffectTargetUnitBJ("hand right",GetTriggerUnit(),"war3mapImported\\MeditationAura.MDX")
call TriggerSleepAction(1.50)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()),10.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[4]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),(120.00+(37.00*I2R(bj_forLoopAIndex))),GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLocFacingLocBJ(1,'hdhw',GetOwningPlayer(GetTriggerUnit()),udg_locations03[4],GetUnitLoc(GetTriggerUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,35.00)
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,udg_locations03[4],Condition(function Trig_poshanji_Func023Func006001003)),function Trig_poshanji_Func023Func006A)
call RemoveLocation(udg_locations03[4])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call GroupClear(udg_groups05[131])
call TriggerSleepAction(1.00)
call RemoveLocation(udg_locations03[4])
call DestroyEffect(udg_effects02[1141])
call DestroyEffect(udg_effects02[1142])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_unit08),250.00,250.00)),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger213)
call TriggerSleepAction(0.50)
call CameraClearNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()))
call SetUnitTimeScalePercent(GetTriggerUnit(),100.00)
endfunction
function Trig_poshanji2_Func001C takes nothing returns boolean
return((udg_integer02>=30))
endfunction
function Trig_poshanji2_Actions takes nothing returns nothing
if((udg_integer02>=30))then
call DisableTrigger(GetTriggeringTrigger())
set udg_integer02=0
call DestroyEffect(udg_effect02)
call PauseUnit(udg_unit07,false)
call UnitDamageTarget(udg_unit07,udg_unit08,500.00,true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(PolarProjectionBJ(GetUnitLoc(udg_unit08),300.00,(180.00+GetUnitFacing(udg_unit08))),300.00,300.00)),"Doodads\\Terrain\\G_RockChunks\\G_RockChunks1.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(PolarProjectionBJ(GetUnitLoc(udg_unit08),200.00,0.00),200.00,200.00)),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(2.00)
call PauseUnit(udg_unit08,false)
call ResetUnitAnimation(udg_unit08)
else
set udg_integer02=(udg_integer02+1)
set udg_locations03[110]=PolarProjectionBJ(GetUnitLoc(udg_unit08),30.00,GetUnitFacing(udg_unit07))
call SetUnitPositionLoc(udg_unit08,udg_locations03[110])
call RemoveLocation(udg_locations03[110])
call SetUnitAnimation(udg_unit08,"Death")
set udg_locations03[110]=GetUnitLoc(udg_unit06)
call AddSpecialEffectLocBJ(udg_locations03[110],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[110],"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[110])
endif
endfunction
function Trig_ht_1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A03L'))and((GetUnitTypeId(GetTriggerUnit())=='H000'))
endfunction
function Trig_ht_1_Func002001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_ht_1_Func002001003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_ht_1_Func002001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))
endfunction
function Trig_ht_1_Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_ht_1_Func002001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_ht_1_Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(1,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A03L'))),ATTACK_TYPE_MAGIC,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call GroupAddUnit(udg_group02,GetEnumUnit())
call IssueTargetOrder(GetEnumUnit(),"attack",GetEnumUnit())
endfunction
function Trig_ht_1_Actions takes nothing returns nothing
set udg_location01=GetUnitLoc(GetTriggerUnit())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_ht_1_Func002001003)),function Trig_ht_1_Func002A)
call EnableTrigger(udg_trigger215)
call TriggerSleepAction(0.14)
call DisableTrigger(udg_trigger215)
call GroupClear(udg_group02)
call RemoveLocation(udg_location01)
endfunction
function Trig_ht2_1_Func001A takes nothing returns nothing
set udg_locations03[101]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[101],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call RemoveLocation(udg_locations03[101])
call DestroyEffect(bj_lastCreatedEffect)
set udg_locations03[101]=PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),32.00,AngleBetweenPoints(udg_location01,GetUnitLoc(GetEnumUnit())))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations03[101]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations03[101]))
call RemoveLocation(udg_locations03[101])
endfunction
function Trig_ht2_1_Actions takes nothing returns nothing
call ForGroupBJ(udg_group02,function Trig_ht2_1_Func001A)
endfunction
function Trig_bg128_2_Func001C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_unit01),GetUnitLoc(udg_unit02))>=10))
endfunction
function Trig_bg128_2_Actions takes nothing returns nothing
if((DistanceBetweenPoints(GetUnitLoc(udg_unit01),GetUnitLoc(udg_unit02))>=10))then
set udg_locations03[102]=PolarProjectionBJ(GetUnitLoc(udg_unit01),30.00,udg_reals01[6419])
call SetUnitPositionLocFacingLocBJ(udg_unit01,udg_locations03[102],GetUnitLoc(udg_unit02))
call RemoveLocation(udg_locations03[102])
set udg_locations03[102]=GetUnitLoc(udg_unit01)
call AddSpecialEffectLocBJ(udg_locations03[102],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[102])
endif
endfunction
function Trig_bg128_3_Func001Func021Func001A takes nothing returns nothing
call GroupRemoveUnit(udg_groups03[2],GetEnumUnit())
call SetUnitPositionLoc(GetEnumUnit(),PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),500.00,GetUnitFacing(GetEnumUnit())))
endfunction
function Trig_bg128_3_Func001Func021C takes nothing returns boolean
return((udg_booleans01[6419]==false))
endfunction
function Trig_bg128_3_Func001C takes nothing returns boolean
return((udg_booleans01[6420]==false))
endfunction
function Trig_bg128_3_Actions takes nothing returns nothing
if((udg_booleans01[6420]==false))then
set udg_locations03[95]=PolarProjectionBJ(GetUnitLoc(udg_unit01),GetRandomReal(0,40.00),GetRandomReal(0,360))
call CreateNUnitsAtLocFacingLocBJ(1,'hgry',GetOwningPlayer(udg_unit01),udg_locations03[95],GetUnitLoc(udg_unit02))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call RemoveLocation(udg_locations03[95])
call SetUnitTimeScalePercent(bj_lastCreatedUnit,300.00)
call SetUnitAnimationWithRarity(bj_lastCreatedUnit,"attack",RARITY_FREQUENT)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100,100,100,60.00)
call UnitApplyTimedLifeBJ(0.10,'BTLF',bj_lastCreatedUnit)
set udg_locations03[103]=GetUnitLoc(udg_unit02)
call AddSpecialEffectLocBJ(udg_locations03[103],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[103])
call SetUnitAnimation(udg_unit02,"death")
if((udg_booleans01[6419]==false))then
call SetUnitAnimationWithRarity(udg_unit01,"attack",RARITY_FREQUENT)
else
call ForGroupBJ(udg_groups03[2],function Trig_bg128_3_Func001Func021Func001A)
set udg_locations03[95]=PolarProjectionBJ(GetUnitLoc(udg_unit01),GetRandomReal(0,50.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'hmtt',GetOwningPlayer(udg_unit01),udg_locations03[95],GetUnitFacing(udg_unit01))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call RemoveLocation(udg_locations03[95])
call UnitApplyTimedLifeBJ(0.10,'BTLF',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(10.00,150.00),0.00)
call GroupAddUnit(udg_groups03[2],bj_lastCreatedUnit)
endif
else
set udg_locations03[103]=PolarProjectionBJ(GetUnitLoc(udg_unit02),40.00,udg_reals01[6419])
call SetUnitPositionLoc(udg_unit02,udg_locations03[103])
call RemoveLocation(udg_locations03[103])
set udg_locations03[103]=GetUnitLoc(udg_unit02)
call AddSpecialEffectLocBJ(udg_locations03[103],"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[103])
endif
endfunction
function Trig_bg128_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04C'))
endfunction
function Trig_bg128_Actions takes nothing returns nothing
set udg_booleans01[6419]=false
set udg_booleans01[6420]=false
set udg_unit01=GetTriggerUnit()
set udg_unit02=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
call PauseUnit(udg_unit01,true)
call UnitAddAbility(udg_unit01,'A02Q')
call PauseUnit(udg_unit02,true)
call UnitAddAbility(udg_unit02,'Amrf')
call UnitRemoveAbility(udg_unit02,'Amrf')
call SetUnitTimeScalePercent(udg_unit01,10.00)
call SetUnitTimeScalePercent(udg_unit02,10.00)
set udg_effects01[1]=AddSpecialEffectLoc("bagua.mdx",GetUnitLoc(udg_unit02))
call TriggerSleepAction(0.50)
call SetUnitTimeScalePercent(udg_unit01,150.00)
call SetUnitTimeScalePercent(udg_unit02,100.00)
call SetUnitPathing(udg_unit01,false)
call EnableTrigger(udg_trigger217)
call TriggerSleepAction(0.50)
call DisableTrigger(udg_trigger217)
set udg_reals01[6419]=(AngleBetweenPoints(GetUnitLoc(udg_unit01),GetUnitLoc(udg_unit02))+GetRandomReal(-45.00,45.00))
call EnableTrigger(udg_trigger216)
call TriggerSleepAction(0.30)
call DisableTrigger(udg_trigger216)
call EnableTrigger(udg_trigger217)
call TriggerSleepAction(0.50)
call DisableTrigger(udg_trigger217)
set udg_reals01[6419]=(AngleBetweenPoints(GetUnitLoc(udg_unit01),GetUnitLoc(udg_unit02))+GetRandomReal(-45.00,45.00))
call EnableTrigger(udg_trigger216)
call TriggerSleepAction(0.30)
call DisableTrigger(udg_trigger216)
call EnableTrigger(udg_trigger217)
call TriggerSleepAction(0.50)
call DisableTrigger(udg_trigger217)
set udg_reals01[6419]=(AngleBetweenPoints(GetUnitLoc(udg_unit01),GetUnitLoc(udg_unit02))+GetRandomReal(-45.00,45.00))
call EnableTrigger(udg_trigger216)
call TriggerSleepAction(0.30)
call DisableTrigger(udg_trigger216)
call EnableTrigger(udg_trigger217)
call TriggerSleepAction(0.50)
call DisableTrigger(udg_trigger217)
set udg_reals01[6419]=(AngleBetweenPoints(GetUnitLoc(udg_unit01),GetUnitLoc(udg_unit02))+GetRandomReal(-45.00,45.00))
call EnableTrigger(udg_trigger216)
call TriggerSleepAction(0.30)
call DisableTrigger(udg_trigger216)
call EnableTrigger(udg_trigger217)
call TriggerSleepAction(0.50)
call DisableTrigger(udg_trigger217)
set udg_reals01[6419]=(AngleBetweenPoints(GetUnitLoc(udg_unit01),GetUnitLoc(udg_unit02))+GetRandomReal(-45.00,45.00))
call EnableTrigger(udg_trigger216)
call TriggerSleepAction(0.30)
call DisableTrigger(udg_trigger216)
call EnableTrigger(udg_trigger217)
call SetUnitTimeScalePercent(udg_unit01,30.00)
call SetUnitFlyHeight(udg_unit02,80.00,80.00)
set udg_booleans01[6419]=true
call SetUnitAnimationByIndex(GetTriggerUnit(),5)
call TriggerSleepAction(1.50)
call SetUnitFlyHeight(udg_unit02,0.00,160.00)
set udg_reals01[6419]=GetUnitFacing(udg_unit01)
set udg_booleans01[6420]=true
call SetUnitTimeScalePercent(udg_unit01,100.00)
call SetUnitPathing(udg_unit01,true)
call UnitRemoveAbility(udg_unit01,'A02Q')
call PauseUnit(udg_unit01,false)
call TriggerSleepAction(0.10)
call UnitDamageTarget(udg_unit01,udg_unit02,((1000.00+I2R(GetHeroStatBJ(1,udg_unit01,true)))*I2R(GetUnitAbilityLevel(udg_unit01,'A04C'))),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call TriggerSleepAction(0.25)
call DisableTrigger(udg_trigger217)
call PauseUnit(udg_unit02,false)
call GroupClear(udg_groups03[2])
call DestroyEffect(udg_effects01[1])
endfunction
function Trig_yinfayidong_Func001C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_unit05),GetUnitLoc(udg_unit06))<=50.00))
endfunction
function Trig_yinfayidong_Actions takes nothing returns nothing
if((DistanceBetweenPoints(GetUnitLoc(udg_unit05),GetUnitLoc(udg_unit06))<=50.00))then
call DisableTrigger(GetTriggeringTrigger())
set udg_integer03=0
call SetUnitAnimationWithRarity(udg_unit05,"Attack - 1",RARITY_FREQUENT)
set udg_locations03[2]=GetUnitLoc(udg_unit05)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'ncnk',GetOwningPlayer(udg_unit05),udg_locations03[2],(18.00*I2R(bj_forLoopAIndex)))
call SetUnitFlyHeight(bj_lastCreatedUnit,0.00,0.00)
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",PolarProjectionBJ(GetUnitLoc(bj_lastCreatedUnit),2000.00,GetUnitFacing(bj_lastCreatedUnit)))
call UnitApplyTimedLifeBJ(1.50,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'ucsC',GetOwningPlayer(udg_unit05),udg_locations03[2],(18.00*I2R(bj_forLoopAIndex)))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,35.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger72)
call SetUnitAnimation(udg_unit06,"Death")
call TriggerSleepAction(1.00)
call PauseUnit(udg_unit03,false)
call SetUnitPathing(udg_unit05,true)
call RemoveLocation(udg_locations03[2])
else
set udg_locations03[104]=PolarProjectionBJ(GetUnitLoc(udg_unit05),35.00,AngleBetweenPoints(GetUnitLoc(udg_unit05),GetUnitLoc(udg_unit06)))
call SetUnitPositionLoc(udg_unit05,udg_locations03[104])
call RemoveLocation(udg_locations03[104])
set udg_locations03[104]=GetUnitLoc(udg_unit05)
call AddSpecialEffectLocBJ(udg_locations03[104],"Abilities\\Spells\\Human\\ManaFlare\\ManaFlareMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[104])
endif
endfunction
function Trig_CTrxlts_Func006001 takes nothing returns boolean
return(UnitHasBuffBJ(GetAttacker(),'B00F'))
endfunction
function Trig_CTrxlts_Func006002 takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_CTrxlts_Conditions takes nothing returns boolean
return(GetBooleanAnd((UnitHasBuffBJ(GetAttacker(),'B00F')),(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false)))
endfunction
function Trig_CTrxlts_Actions takes nothing returns nothing
call SetUnitManaBJ(GetTriggerUnit(),(GetUnitState(GetTriggerUnit(),UNIT_STATE_MANA)-(10.00*I2R(GetUnitAbilityLevel(GetAttacker(),'A011')))))
set udg_locations03[154]=PolarProjectionBJ(GetUnitLoc(GetAttacker()),100.00,GetUnitFacing(GetAttacker()))
call AddSpecialEffectLocBJ(udg_locations03[154],"Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[154])
endfunction
function Trig_NC_Q_New_Actions takes nothing returns nothing
endfunction
function Trig_NCq2_Func006001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_NCq2_Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit75)))
endfunction
function Trig_NCq2_Func006001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit75))))
endfunction
function Trig_NCq2_Func006Func004C takes nothing returns boolean
if(not(IsTerrainPathableBJ(udg_locations03[198],PATHING_TYPE_FLYABILITY)==false))then
return false
endif
return true
endfunction
function Trig_NCq2_Func006Func006C takes nothing returns boolean
return((IsUnitInGroup(GetEnumUnit(),udg_groups07[15])))
endfunction
function Trig_NCq2_Func006A takes nothing returns nothing
call IssueTargetOrder(GetEnumUnit(),"attack",GetEnumUnit())
set udg_locations08[2]=GetUnitLoc(GetEnumUnit())
set udg_locations03[198]=PolarProjectionBJ(udg_locations08[2],35.00,AngleBetweenPoints(GetUnitLoc(udg_units26[71]),PolarProjectionBJ(udg_locations08[2],200.00,GetUnitFacing(udg_units26[71]))))
if(Trig_NCq2_Func006Func004C())then
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations03[198]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations03[198]))
endif
call RemoveLocation(udg_locations03[198])
if((IsUnitInGroup(GetEnumUnit(),udg_groups07[15])))then
else
call GroupAddUnit(udg_groups07[15],GetEnumUnit())
call UnitDamageTargetBJ(udg_unit75,GetEnumUnit(),(21.00*I2R(GetUnitAbilityLevelSwapped('A08C',udg_unit75))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endif
call AddSpecialEffectLocBJ(udg_locations08[5],"Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations08[2])
endfunction
function Trig_NCq2_Actions takes nothing returns nothing
set udg_locations08[1]=GetUnitLoc(udg_units26[71])
set udg_locations03[112]=PolarProjectionBJ(udg_locations08[1],55.00,GetUnitFacing(udg_units26[71]))
call SetUnitPositionLoc(udg_units26[71],udg_locations03[112])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations08[2]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[112],300.00,300.00))
call AddSpecialEffectLocBJ(udg_locations08[2],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations08[5],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageDeathCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations08[2])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(240.00,udg_locations03[112],Condition(function Trig_NCq2_Func006001003)),function Trig_NCq2_Func006A)
call RemoveLocation(udg_locations03[112])
call RemoveLocation(udg_locations08[1])
endfunction
function Trig_BaGua_1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A08C'))
endfunction
function Trig_BaGua_1_Func007Func001Func005001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_BaGua_1_Func007Func001Func005001002002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_BaGua_1_Func007Func001Func005001002002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_BaGua_1_Func007Func001Func005001002002 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_BaGua_1_Func007Func001Func005001002 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))))
endfunction
function Trig_BaGua_1_Func007Func001Func005A takes nothing returns nothing
call GroupAddUnit(udg_group10,GetEnumUnit())
endfunction
function Trig_BaGua_1_Actions takes nothing returns nothing
set udg_unit19=GetTriggerUnit()
set udg_locations16[0]=GetUnitLoc(GetTriggerUnit())
set udg_locations16[1]=GetSpellTargetLoc()
set udg_group10=CreateGroup()
set udg_integer15=0
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=4
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set udg_locations16[2]=PolarProjectionBJ(udg_locations16[0],(30.00*I2R(bj_forLoopAIndex)),AngleBetweenPoints(udg_locations16[0],udg_locations16[1]))
set udg_rect01=RectFromCenterSizeBJ(udg_locations16[2],300.00,200.00)
call AddSpecialEffectLocBJ(GetRandomLocInRect(udg_rect01),"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect01,Condition(function Trig_BaGua_1_Func007Func001Func005001002)),function Trig_BaGua_1_Func007Func001Func005A)
call RemoveLocation(udg_locations16[2])
call RemoveRect(udg_rect01)
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call StartTimerBJ(udg_timer04,true,0.02)
call RemoveLocation(udg_locations16[1])
endfunction
function Trig_BaGua_2_Func002Func005A takes nothing returns nothing
set udg_locations16[1]=GetUnitLoc(GetEnumUnit())
set udg_real14=AngleBetweenPoints(udg_locations16[0],udg_locations16[1])
call UnitDamageTarget(udg_unit19,GetEnumUnit(),(I2R(GetUnitAbilityLevel(udg_unit19,'A08C'))*(100.00/20.00)),false,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_DEMOLITION,WEAPON_TYPE_WOOD_LIGHT_BASH)
set udg_locations16[3]=PolarProjectionBJ(udg_locations16[1],40.00,udg_real14)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_locations16[3],GetUnitFacing(GetEnumUnit()))
call AddSpecialEffectLocBJ(udg_locations16[3],"Abilities\\Spells\\Human\\FlakCannons\\FlakTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations16[1])
call RemoveLocation(udg_locations16[3])
endfunction
function Trig_BaGua_2_Func002C takes nothing returns boolean
return((udg_integer15>=20))
endfunction
function Trig_BaGua_2_Actions takes nothing returns nothing
set udg_integer15=(udg_integer15+1)
if((udg_integer15>=20))then
call PauseTimer(udg_timer04)
call RemoveLocation(udg_locations16[0])
call GroupClear(udg_group10)
call DestroyGroup(udg_group10)
else
call ForGroupBJ(udg_group10,function Trig_BaGua_2_Func002Func005A)
endif
endfunction
function Trig_mrfs_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04W'))
endfunction
function Trig_mrfs_Actions takes nothing returns nothing
set udg_integers01[101]=1
loop
exitwhen udg_integers01[101]>GetUnitAbilityLevel(GetTriggerUnit(),'A04W')
set udg_locations03[20]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),(50.00+(35.00*I2R(udg_integers01[101]))),GetRandomReal(0,360))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'hsor',GetOwningPlayer(GetTriggerUnit()),udg_locations03[20],GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,852274,GetTriggerUnit())
call CreateNUnitsAtLoc(1,'n006',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(bj_lastCreatedUnit),GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(5.00,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.01)
call RemoveLocation(udg_locations03[20])
set udg_integers01[101]=udg_integers01[101]+1
endloop
endfunction
function Trig_MRt_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A088'))
endfunction
function Trig_MRt_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000__:________,____! |r")
set udg_units16[1]=GetTriggerUnit()
set udg_locations01[91]=GetSpellTargetLoc()
set udg_locations01[81]=GetUnitLoc(GetTriggerUnit())
call TriggerSleepAction(0.10)
call PauseUnit(udg_units16[1],true)
set udg_locations07[443]=GetUnitLoc(GetTriggerUnit())
set udg_locations03[43]=PolarProjectionBJ(udg_locations07[443],72.00,(GetUnitFacing(GetTriggerUnit())-60.00))
call CreateNUnitsAtLocFacingLocBJ(1,'nvdg',GetOwningPlayer(udg_units16[1]),udg_locations03[43],udg_locations07[443])
call SetUnitAnimation(bj_lastCreatedUnit,"spell three")
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[43])
set udg_locations03[43]=PolarProjectionBJ(udg_locations07[443],72.00,(GetUnitFacing(GetTriggerUnit())+60.00))
call CreateNUnitsAtLocFacingLocBJ(1,'nvdg',GetOwningPlayer(udg_units16[1]),udg_locations03[43],udg_locations07[443])
call SetUnitTimeScalePercent(bj_lastCreatedUnit,200.00)
call SetUnitAnimation(bj_lastCreatedUnit,"spell three")
call UnitApplyTimedLifeBJ(0.50,'BTLF',bj_lastCreatedUnit)
call SetUnitAnimation(udg_units16[1],"stand alternate")
call UnitAddAbility(GetTriggerUnit(),'A08A')
call TriggerSleepAction(0.50)
call SetUnitTimeScalePercent(udg_units16[1],200.00)
call SetUnitAnimation(udg_units16[1],"throw")
call TriggerSleepAction(0.25)
call UnitRemoveAbility(udg_units16[1],'A08A')
call SetUnitTimeScalePercent(udg_units16[1],100.00)
set udg_locations03[43]=PolarProjectionBJ(udg_locations07[443],180.00,GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'ndqt',GetOwningPlayer(GetTriggerUnit()),udg_locations03[43],GetUnitFacing(GetTriggerUnit()))
set udg_units16[13]=bj_lastCreatedUnit
call SetUnitTimeScalePercent(bj_lastCreatedUnit,200.00)
call PauseUnit(udg_units16[1],false)
call RemoveLocation(udg_locations03[43])
call EnableTrigger(udg_trigger228)
endfunction
function Trig_MRt2_Func002Func001C takes nothing returns boolean
return((DistanceBetweenPoints(udg_locations07[1161],udg_locations01[91])<=100.00))or((DistanceBetweenPoints(udg_locations07[1161],udg_locations01[81])>=800.00))
endfunction
function Trig_MRt2_Func002Func018001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_MRt2_Func002Func018001003002 takes nothing returns boolean
return(GetFilterUnit()!=udg_units16[1])
endfunction
function Trig_MRt2_Func002Func018001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(GetFilterUnit()!=udg_units16[1]))
endfunction
function Trig_MRt2_Func002Func018Func003Func002C takes nothing returns boolean
if((IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)))then
return true
endif
if((IsUnitAlly(GetEnumUnit(),GetOwningPlayer(udg_units16[1]))))then
return true
endif
return false
endfunction
function Trig_MRt2_Func002Func018Func003C takes nothing returns boolean
return(Trig_MRt2_Func002Func018Func003Func002C())
endfunction
function Trig_MRt2_Func002Func018A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'n008',GetOwningPlayer(udg_units16[13]),udg_locations01[91],GetUnitFacing(udg_units16[13]))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
if((Trig_MRt2_Func002Func018Func003Func002C()))then
call UnitDamageTargetBJ(udg_units16[1],GetEnumUnit(),(5.00+(0.10*I2R(GetHeroInt(udg_units16[1],true)))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units16[1],GetEnumUnit(),(20.00+(0.20*I2R(GetHeroInt(udg_units16[1],true)))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endif
call IssueTargetOrder(GetEnumUnit(),"attack",GetEnumUnit())
set udg_locations03[162]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[162],"Abilities\\Weapons\\HydraliskImpact\\HydraliskImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[162],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageDeathCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[162])
endfunction
function Trig_MRt2_Func002C takes nothing returns boolean
return((((DistanceBetweenPoints(udg_locations07[1161],udg_locations01[91])<=100.00))or((DistanceBetweenPoints(udg_locations07[1161],udg_locations01[81])>=800.00))))
endfunction
function Trig_MRt2_Actions takes nothing returns nothing
set udg_locations07[1161]=GetUnitLoc(udg_units16[13])
if((((DistanceBetweenPoints(udg_locations07[1161],udg_locations01[91])<=100.00))or((DistanceBetweenPoints(udg_locations07[1161],udg_locations01[81])>=800.00))))then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPositionLocFacingBJ(udg_units16[13],udg_locations01[91],GetUnitFacing(udg_units16[13]))
set udg_reals03[14]=118.00
set udg_locations01[96]=GetUnitLoc(udg_units16[13])
call EnableTrigger(udg_trigger229)
call TriggerSleepAction(3.00)
call DisableTrigger(udg_trigger229)
call KillUnit(udg_units16[13])
call RemoveLocation(udg_locations01[91])
call RemoveLocation(udg_locations01[96])
call RemoveLocation(udg_locations01[81])
else
set udg_locations03[161]=PolarProjectionBJ(udg_locations07[1161],40.00,GetUnitFacing(udg_units16[13]))
call SetUnitPositionLocFacingBJ(udg_units16[13],udg_locations03[161],GetUnitFacing(udg_units16[13]))
call AddSpecialEffectLocBJ(udg_locations03[161],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(230.00,udg_locations03[161],Condition(function Trig_MRt2_Func002Func018001003)),function Trig_MRt2_Func002Func018A)
call RemoveLocation(udg_locations03[161])
endif
call RemoveLocation(udg_locations07[1161])
endfunction
function Trig_MRt3_Func004001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_MRt3_Func004001003002 takes nothing returns boolean
return(GetFilterUnit()!=udg_units16[1])
endfunction
function Trig_MRt3_Func004001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(GetFilterUnit()!=udg_units16[1]))
endfunction
function Trig_MRt3_Func004Func001Func002C takes nothing returns boolean
if((IsUnitAlly(GetEnumUnit(),GetOwningPlayer(udg_units16[1]))))then
return true
endif
return false
endfunction
function Trig_MRt3_Func004Func001C takes nothing returns boolean
return(Trig_MRt3_Func004Func001Func002C())
endfunction
function Trig_MRt3_Func004A takes nothing returns nothing
if((Trig_MRt3_Func004Func001Func002C()))then
call UnitDamageTargetBJ(udg_units16[1],GetEnumUnit(),(15.00+(0.20*I2R(GetHeroInt(udg_units16[1],true)))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units16[1],GetEnumUnit(),(30.00+(0.40*I2R(GetHeroInt(udg_units16[1],true)))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endif
call IssueTargetOrder(GetEnumUnit(),"attack",GetEnumUnit())
set udg_locations03[162]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[162],"Abilities\\Weapons\\HydraliskImpact\\HydraliskImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[162])
endfunction
function Trig_MRt3_Actions takes nothing returns nothing
set udg_reals03[14]=(udg_reals03[14]+7.00)
call SetUnitScalePercent(udg_units16[13],udg_reals03[14],udg_reals03[14],udg_reals03[14])
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching((100.00+udg_reals03[14]),udg_locations01[96],Condition(function Trig_MRt3_Func004001003)),function Trig_MRt3_Func004A)
endfunction
function Trig_MRq_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A037'))
endfunction
function Trig_MRq_Actions takes nothing returns nothing
set udg_units16[1]=GetTriggerUnit()
set udg_units16[2]=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
call PauseUnit(udg_units16[1],true)
call UnitAddAbility(GetTriggerUnit(),'A039')
set udg_locations03[43]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),70.00,(GetUnitFacing(GetTriggerUnit())-90.00))
call CreateNUnitsAtLocFacingLocBJ(1,'nvdg',GetOwningPlayer(udg_units16[1]),udg_locations03[43],GetUnitLoc(GetTriggerUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,200.00)
call SetUnitAnimation(bj_lastCreatedUnit,"spell three")
call UnitApplyTimedLifeBJ(0.40,'BTLF',bj_lastCreatedUnit)
call SetUnitAnimation(udg_units16[1],"spell two")
call RemoveLocation(udg_locations03[43])
call TriggerSleepAction(0.40)
call SetUnitAnimation(udg_units16[1],"spell one")
call SetUnitPathing(udg_units16[1],false)
call EnableTrigger(udg_trigger231)
call UnitAddAbility(udg_units16[1],'Amrf')
endfunction
function Trig_MRq2_Func004Func003C takes nothing returns boolean
return((DistanceBetweenPoints(udg_locations03[159],udg_locations03[43])>=1500.00))or((udg_reals04[0]>=40.00))or((IsUnitDeadBJ(udg_units16[2])))or((IsUnitDeadBJ(udg_units16[1])))
endfunction
function Trig_MRq2_Func004C takes nothing returns boolean
return((((DistanceBetweenPoints(udg_locations03[159],udg_locations03[43])>=1500.00))or((udg_reals04[0]>=40.00))or((IsUnitDeadBJ(udg_units16[2])))or((IsUnitDeadBJ(udg_units16[1])))))
endfunction
function Trig_MRq2_Func005Func024001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_MRq2_Func005Func024001003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_MRq2_Func005Func024001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))
endfunction
function Trig_MRq2_Func005Func024001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units16[1])))
endfunction
function Trig_MRq2_Func005Func024001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units16[1]))))
endfunction
function Trig_MRq2_Func005Func024A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units16[1],GetEnumUnit(),(I2R(GetUnitAbilityLevelSwapped('A037',udg_units16[1]))*I2R(GetHeroStr(udg_units16[1],true))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
call RemoveLocation(udg_locations03[160])
endfunction
function Trig_MRq2_Func005Func030A takes nothing returns nothing
call SetUnitTimeScalePercent(GetEnumUnit(),40.00)
endfunction
function Trig_MRq2_Func005Func034A takes nothing returns nothing
call SetUnitTimeScalePercent(GetEnumUnit(),100)
endfunction
function Trig_MRq2_Func005C takes nothing returns boolean
return((DistanceBetweenPoints(udg_locations03[159],udg_locations03[43])<=150.00))
endfunction
function Trig_MRq2_Actions takes nothing returns nothing
set udg_locations03[43]=GetUnitLoc(udg_units16[1])
set udg_locations03[159]=GetUnitLoc(udg_units16[2])
call SetUnitPathing(udg_units16[1],false)
if((((DistanceBetweenPoints(udg_locations03[159],udg_locations03[43])>=1500.00))or((udg_reals04[0]>=40.00))or((IsUnitDeadBJ(udg_units16[2])))or((IsUnitDeadBJ(udg_units16[1])))))then
set udg_reals04[0]=0.00
call DisableTrigger(GetTriggeringTrigger())
call ResetUnitAnimation(udg_units16[1])
call SetUnitFlyHeight(udg_units16[1],GetUnitDefaultFlyHeight(udg_units16[1]),2000.00)
call UnitRemoveAbility(udg_units16[1],'Amrf')
call TriggerSleepAction(0.10)
set udg_locations03[159]=GetUnitLoc(udg_units16[1])
call UnitRemoveAbility(udg_units16[1],'A039')
call SetUnitPathing(udg_units16[1],true)
call PauseUnit(udg_units16[1],false)
return
endif
if((DistanceBetweenPoints(udg_locations03[159],udg_locations03[43])<=150.00))then
set udg_reals04[0]=0.00
set udg_reals03[15]=GetUnitFacing(udg_units16[1])
call DisableTrigger(GetTriggeringTrigger())
call SetUnitTimeScalePercent(udg_units16[1],300.00)
call SetUnitAnimation(udg_units16[1],"throw")
call TriggerSleepAction(0.10)
call SetUnitFlyHeight(udg_units16[1],GetUnitDefaultFlyHeight(udg_units16[1]),2000.00)
call UnitRemoveAbility(udg_units16[1],'Amrf')
set udg_locations03[159]=GetUnitLoc(udg_units16[1])
call SetUnitTimeScalePercent(udg_units16[1],100.00)
call AddSpecialEffectLocBJ(udg_locations03[159],"Abilities\\Weapons\\RockBoltMissile\\RockBoltMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[159])
set udg_locations03[159]=GetUnitLoc(udg_units16[2])
call AddSpecialEffectLocBJ(udg_locations03[159],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateNUnitsAtLoc(1,'uban',GetOwningPlayer(udg_units16[1]),udg_locations03[159],GetUnitFacing(udg_units16[1]))
call IssueTargetOrder(bj_lastCreatedUnit,"thunderbolt",udg_units16[2])
call RemoveLocation(udg_locations03[159])
call UnitRemoveAbility(udg_units16[1],'A039')
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[43]=GetUnitLoc(udg_units16[2])
call CreateNUnitsAtLoc(1,'ospw',GetOwningPlayer(udg_units16[1]),udg_locations03[43],GetUnitFacing(udg_units16[1]))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,50.00)
call GroupAddUnit(udg_groups03[100],bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[43])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units16[2]),Condition(function Trig_MRq2_Func005Func024001003)),function Trig_MRq2_Func005Func024A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[43]=PolarProjectionBJ(GetUnitLoc(udg_units16[2]),80.00,(18.00*I2R(bj_forLoopAIndex)))
call AddSpecialEffectLocBJ(udg_locations03[43],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[43])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitPathing(udg_units16[1],true)
call PauseUnit(udg_units16[1],false)
call EnableTrigger(udg_trigger232)
call TriggerSleepAction(0.10)
call ForGroupBJ(udg_groups03[100],function Trig_MRq2_Func005Func030A)
call TriggerSleepAction(0.40)
call DisableTrigger(udg_trigger232)
call RemoveUnit(udg_units16[3])
call ForGroupBJ(udg_groups03[100],function Trig_MRq2_Func005Func034A)
else
set udg_reals04[0]=(udg_reals04[0]+1)
call SetUnitFlyHeight(udg_units16[1],GetUnitFlyHeight(udg_units16[2]),2000.00)
call RemoveLocation(udg_locations03[159])
call SetUnitPathing(udg_units16[1],false)
set udg_locations03[159]=PolarProjectionBJ(udg_locations03[43],40.00,AngleBetweenPoints(udg_locations03[43],GetUnitLoc(udg_units16[2])))
call SetUnitPositionLocFacingLocBJ(udg_units16[1],udg_locations03[159],GetUnitLoc(udg_units16[2]))
call RemoveLocation(udg_locations03[159])
call RemoveLocation(udg_locations03[43])
endif
endfunction
function Trig_MRq3_Func001Func002001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_MRq3_Func001Func002001001003002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units16[1])))
endfunction
function Trig_MRq3_Func001Func002001001003002002 takes nothing returns boolean
return(GetFilterUnit()!=udg_units16[2])
endfunction
function Trig_MRq3_Func001Func002001001003002 takes nothing returns boolean
return GetBooleanAnd((IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units16[1]))),(GetFilterUnit()!=udg_units16[2]))
endfunction
function Trig_MRq3_Func001Func002001001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(GetBooleanAnd((IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units16[1]))),(GetFilterUnit()!=udg_units16[2]))))
endfunction
function Trig_MRq3_Func001Func006001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_MRq3_Func001Func006001003001002 takes nothing returns boolean
return(GetFilterUnit()!=udg_units16[2])
endfunction
function Trig_MRq3_Func001Func006001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(GetFilterUnit()!=udg_units16[2]))
endfunction
function Trig_MRq3_Func001Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units16[1])))
endfunction
function Trig_MRq3_Func001Func006001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(GetFilterUnit()!=udg_units16[2]))),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units16[1]))))
endfunction
function Trig_MRq3_Func001Func006A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units16[1],GetEnumUnit(),(I2R(GetUnitAbilityLevelSwapped('A037',udg_units16[1]))*35.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
set udg_locations03[160]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations03[160],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[160])
endfunction
function Trig_MRq3_Func001Func007A takes nothing returns nothing
call SetUnitTimeScalePercent(GetEnumUnit(),100)
endfunction
function Trig_MRq3_Func001Func009A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),udg_locations03[160])
endfunction
function Trig_MRq3_Func001C takes nothing returns boolean
return((IsUnitGroupEmptyBJ(GetUnitsInRangeOfLocMatching(150.00,GetUnitLoc(udg_units16[2]),Condition(function Trig_MRq3_Func001Func002001001003)))))and((IsTerrainPathableBJ(GetUnitLoc(udg_units16[2]),PATHING_TYPE_WALKABILITY)!=true))
endfunction
function Trig_MRq3_Actions takes nothing returns nothing
if((((IsUnitGroupEmptyBJ(GetUnitsInRangeOfLocMatching(150.00,GetUnitLoc(udg_units16[2]),Condition(function Trig_MRq3_Func001Func002001001003)))))and((IsTerrainPathableBJ(GetUnitLoc(udg_units16[2]),PATHING_TYPE_WALKABILITY)!=true))))then
set udg_locations03[160]=PolarProjectionBJ(GetUnitLoc(udg_units16[2]),32.00,udg_reals03[15])
call SetUnitPositionLocFacingBJ(udg_units16[2],udg_locations03[160],(GetUnitFacing(udg_units16[2])+40.00))
call ForGroupBJ(udg_groups03[100],function Trig_MRq3_Func001Func009A)
call AddSpecialEffectLocBJ(udg_locations03[160],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[160])
else
call DisableTrigger(GetTriggeringTrigger())
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,GetUnitLoc(udg_units16[2]),Condition(function Trig_MRq3_Func001Func006001003)),function Trig_MRq3_Func001Func006A)
call ForGroupBJ(udg_groups03[100],function Trig_MRq3_Func001Func007A)
endif
endfunction
function Trig_MRe_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A087'))
endfunction
function Trig_MRe_Actions takes nothing returns nothing
set udg_units16[1]=GetTriggerUnit()
set udg_locations03[577]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'nzom',GetOwningPlayer(GetTriggerUnit()),udg_locations03[577],GetUnitFacing(GetTriggerUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,25.00)
call RemoveLocation(udg_locations03[577])
set udg_units16[3]=bj_lastCreatedUnit
call EnableTrigger(udg_trigger234)
call TriggerSleepAction(0.40)
call DisableTrigger(udg_trigger234)
call GroupClear(udg_groups05[354])
call KillUnit(udg_units16[3])
endfunction
function Trig_MRe2_Func007001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_MRe2_Func007001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units16[1])))
endfunction
function Trig_MRe2_Func007001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units16[1]))))
endfunction
function Trig_MRe2_Func007Func010C takes nothing returns boolean
if(not(IsUnitInGroup(GetEnumUnit(),udg_groups05[354])))then
return false
endif
return true
endfunction
function Trig_MRe2_Func007A takes nothing returns nothing
call IssueTargetOrder(GetEnumUnit(),"attack",GetEnumUnit())
set udg_locations03[578]=GetUnitLoc(GetEnumUnit())
set udg_locations03[198]=PolarProjectionBJ(udg_locations03[578],40.00,AngleBetweenPoints(udg_locations03[197],PolarProjectionBJ(udg_locations03[578],200.00,GetUnitFacing(udg_units30[101]))))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations03[198]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations03[198]))
call AddSpecialEffectLocBJ(udg_locations03[198],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[198])
call RemoveLocation(udg_locations03[578])
if(Trig_MRe2_Func007Func010C())then
else
call UnitDamageTargetBJ(udg_units16[1],GetEnumUnit(),(I2R(GetUnitAbilityLevelSwapped('A087',udg_units16[1]))*90.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL)
call GroupAddUnit(udg_groups05[354],GetEnumUnit())
endif
endfunction
function Trig_MRe2_Actions takes nothing returns nothing
set udg_locations03[578]=GetUnitLoc(udg_units16[3])
set udg_locations03[197]=PolarProjectionBJ(udg_locations03[578],30.00,GetUnitFacing(udg_units16[3]))
call SetUnitPositionLoc(udg_units16[3],udg_locations03[197])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[198]=PolarProjectionBJ(udg_locations03[197],GetRandomReal(0,250.00),GetRandomReal(0,360))
call AddSpecialEffectLocBJ(udg_locations03[198],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[198])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[578])
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[197],Condition(function Trig_MRe2_Func007001003)),function Trig_MRe2_Func007A)
call RemoveLocation(udg_locations03[197])
endfunction
function Trig_MRr_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A089'))
endfunction
function Trig_MRr_Func024C takes nothing returns boolean
return((IsUnitAliveBJ(udg_units16[4])))
endfunction
function Trig_MRr_Func035A takes nothing returns nothing
call SetUnitTimeScalePercent(GetEnumUnit(),10.00)
endfunction
function Trig_MRr_Func038A takes nothing returns nothing
call SetUnitTimeScalePercent(GetEnumUnit(),100.00)
endfunction
function Trig_MRr_Actions takes nothing returns nothing
set udg_units16[1]=GetTriggerUnit()
set udg_units16[4]=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
call PauseUnit(udg_units16[1],true)
set udg_locations07[443]=GetUnitLoc(GetTriggerUnit())
set udg_locations03[43]=PolarProjectionBJ(udg_locations07[443],75.00,(GetUnitFacing(GetTriggerUnit())-160.00))
call CreateNUnitsAtLoc(1,'nvdg',GetOwningPlayer(GetTriggerUnit()),udg_locations03[43],GetUnitFacing(GetTriggerUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,200.00)
call SetUnitAnimation(bj_lastCreatedUnit,"spell three")
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[43])
set udg_locations03[43]=PolarProjectionBJ(udg_locations07[443],75.00,(GetUnitFacing(GetTriggerUnit())-200.00))
call CreateNUnitsAtLoc(1,'nvdg',GetOwningPlayer(GetTriggerUnit()),udg_locations03[43],GetUnitFacing(GetTriggerUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,200.00)
call SetUnitAnimation(bj_lastCreatedUnit,"spell three")
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[43])
call SetUnitAnimation(udg_units16[1],"spell four")
call TriggerSleepAction(0.15)
call UnitAddAbility(GetTriggerUnit(),'A006')
call TriggerSleepAction(0.35)
call SetUnitAnimation(udg_units16[1],"spell five")
call TriggerSleepAction(0.10)
if((IsUnitAliveBJ(udg_units16[4])))then
set udg_locations07[444]=GetUnitLoc(udg_units16[4])
set udg_locations03[43]=PolarProjectionBJ(udg_locations07[444],80.00,AngleBetweenPoints(udg_locations07[444],udg_locations07[443]))
else
call UnitRemoveAbility(udg_units16[1],'A006')
call PauseUnit(udg_units16[1],false)
call RemoveLocation(udg_locations07[443])
call RemoveLocation(udg_locations07[444])
return
endif
call SetUnitPositionLocFacingLocBJ(udg_units16[1],udg_locations03[43],udg_locations07[444])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'ospw',GetOwningPlayer(udg_units16[1]),udg_locations07[444],GetUnitFacing(udg_units16[1]))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,50.00)
call GroupAddUnit(udg_groups01[114],bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations07[443])
call RemoveLocation(udg_locations07[444])
set udg_reals03[16]=GetUnitFacing(udg_units16[1])
call UnitDamageTargetBJ(udg_units16[1],udg_units16[4],((750.00*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A089')))+((2.50*I2R(GetUnitAbilityLevel(udg_units16[1],'A089')))*I2R(GetHeroStatBJ(0,udg_units16[1],true)))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
call PauseUnit(udg_units16[1],false)
call EnableTrigger(udg_trigger236)
call UnitRemoveAbility(udg_units16[1],'A006')
call TriggerSleepAction(0.20)
call ForGroupBJ(udg_groups01[112],function Trig_MRr_Func035A)
call TriggerSleepAction(0.80)
call DisableTrigger(udg_trigger236)
call ForGroupBJ(udg_groups01[112],function Trig_MRr_Func038A)
endfunction
function Trig_MRr2_Func001Func002001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_MRr2_Func001Func002001001003002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units16[1])))
endfunction
function Trig_MRr2_Func001Func002001001003002002 takes nothing returns boolean
return(GetFilterUnit()!=udg_units16[4])
endfunction
function Trig_MRr2_Func001Func002001001003002 takes nothing returns boolean
return GetBooleanAnd((IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units16[1]))),(GetFilterUnit()!=udg_units16[4]))
endfunction
function Trig_MRr2_Func001Func002001001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(GetBooleanAnd((IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units16[1]))),(GetFilterUnit()!=udg_units16[4]))))
endfunction
function Trig_MRr2_Func001Func006001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_MRr2_Func001Func006001003001002 takes nothing returns boolean
return(GetFilterUnit()!=udg_units16[4])
endfunction
function Trig_MRr2_Func001Func006001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(GetFilterUnit()!=udg_units16[4]))
endfunction
function Trig_MRr2_Func001Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units16[1])))
endfunction
function Trig_MRr2_Func001Func006001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(GetFilterUnit()!=udg_units16[4]))),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units16[1]))))
endfunction
function Trig_MRr2_Func001Func006A takes nothing returns nothing
set udg_locations03[160]=GetUnitLoc(GetTriggerUnit())
call UnitDamageTargetBJ(udg_units16[1],GetEnumUnit(),(500.00+((2.50*I2R(GetUnitAbilityLevel(udg_units16[1],'A006')))*I2R(GetHeroStatBJ(0,udg_units16[1],true)))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(udg_locations03[160],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[160])
endfunction
function Trig_MRr2_Func001Func007A takes nothing returns nothing
call SetUnitTimeScalePercent(GetEnumUnit(),100)
endfunction
function Trig_MRr2_Func001Func009A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),udg_locations03[160])
endfunction
function Trig_MRr2_Func001C takes nothing returns boolean
return((IsUnitGroupEmptyBJ(GetUnitsInRangeOfLocMatching(100.00,GetUnitLoc(udg_units16[4]),Condition(function Trig_MRr2_Func001Func002001001003)))))and((IsTerrainPathableBJ(GetUnitLoc(udg_units16[4]),PATHING_TYPE_WALKABILITY)!=true))
endfunction
function Trig_MRr2_Actions takes nothing returns nothing
if((((IsUnitGroupEmptyBJ(GetUnitsInRangeOfLocMatching(100.00,GetUnitLoc(udg_units16[4]),Condition(function Trig_MRr2_Func001Func002001001003)))))and((IsTerrainPathableBJ(GetUnitLoc(udg_units16[4]),PATHING_TYPE_WALKABILITY)!=true))))then
set udg_locations03[160]=PolarProjectionBJ(GetUnitLoc(udg_units16[4]),32.00,udg_reals03[16])
call SetUnitPositionLocFacingBJ(udg_units16[4],udg_locations03[160],(GetUnitFacing(udg_units16[4])+20.00))
call ForGroupBJ(udg_groups01[112],function Trig_MRr2_Func001Func009A)
call AddSpecialEffectLocBJ(udg_locations03[160],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[160])
else
call DisableTrigger(GetTriggeringTrigger())
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units16[4]),Condition(function Trig_MRr2_Func001Func006001003)),function Trig_MRr2_Func001Func006A)
call ForGroupBJ(udg_groups01[112],function Trig_MRr2_Func001Func007A)
endif
endfunction
function Trig_tongya_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01N'))
endfunction
function Trig_tongya_Actions takes nothing returns nothing
set udg_units31[1]=GetTriggerUnit()
call TriggerSleepAction(0.06)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitTimeScalePercent(GetTriggerUnit(),300.00)
call SetUnitAnimation(GetTriggerUnit(),"Attack Walk Stand Spin Alternate")
call SetUnitPathing(udg_units31[1],false)
call EnableTrigger(udg_trigger238)
call TriggerSleepAction(0.60)
call DisableTrigger(udg_trigger238)
call SetUnitPathing(udg_units31[1],true)
call SetUnitTimeScalePercent(GetTriggerUnit(),100.00)
call ResetUnitAnimation(GetTriggerUnit())
call PauseUnit(GetTriggerUnit(),false)
call GroupClear(udg_groups04[65])
endfunction
function Trig_tongya2_Func002C takes nothing returns boolean
return((IsTerrainPathableBJ(PolarProjectionBJ(GetUnitLoc(udg_units31[1]),30.00,GetUnitFacing(udg_units31[1])),PATHING_TYPE_WALKABILITY)))
endfunction
function Trig_tongya2_Func004001003001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups04[65])==false)
endfunction
function Trig_tongya2_Func004001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[1])))
endfunction
function Trig_tongya2_Func004001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitInGroup(GetFilterUnit(),udg_groups04[65])==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[1]))))
endfunction
function Trig_tongya2_Func004Func006C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)==false))then
return false
endif
return true
endfunction
function Trig_tongya2_Func004A takes nothing returns nothing
set udg_locations03[204]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[204],"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[204])
call GroupAddUnit(udg_groups04[65],GetEnumUnit())
if(Trig_tongya2_Func004Func006C())then
call UnitDamageTarget(udg_units31[1],GetEnumUnit(),(I2R(GetHeroStatBJ(1,udg_units31[1],true))*I2R(GetUnitAbilityLevel(udg_units31[1],'A01N'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
call UnitDamageTarget(udg_units31[1],GetEnumUnit(),((I2R(GetHeroStatBJ(1,udg_units31[1],true))/2.00)*I2R(GetUnitAbilityLevel(udg_units31[1],'A01N'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
endfunction
function Trig_tongya2_Actions takes nothing returns nothing
set udg_locations03[203]=PolarProjectionBJ(GetUnitLoc(udg_units31[1]),46.00,GetUnitFacing(udg_units31[1]))
if((IsTerrainPathableBJ(PolarProjectionBJ(GetUnitLoc(udg_units31[1]),30.00,GetUnitFacing(udg_units31[1])),PATHING_TYPE_WALKABILITY)))then
else
call SetUnitPositionLocFacingBJ(udg_units31[1],udg_locations03[203],GetUnitFacing(udg_units31[1]))
endif
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,udg_locations03[203],Condition(function Trig_tongya2_Func004001003)),function Trig_tongya2_Func004A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[204]=PolarProjectionBJ(PolarProjectionBJ(udg_locations03[203],150.00,(GetUnitFacing(udg_units31[1])-180.00)),GetRandomReal(0,200.00),GetRandomReal(0,360))
call AddSpecialEffectLocBJ(udg_locations03[204],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[204])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[203])
endfunction
function Trig_tianshuangya_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ANc3'))
endfunction
function Trig_tianshuangya_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000___:__!____!____!
|r")
set udg_integers01[6]=0
set udg_units31[1]=GetTriggerUnit()
set udg_locations03[275]=GetSpellTargetLoc()
call TriggerSleepAction(0.06)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitAnimation(GetTriggerUnit(),"Morph")
call TriggerSleepAction(0.10)
call SetUnitPositionLoc(GetTriggerUnit(),udg_locations03[275])
call ShowUnit(GetTriggerUnit(),false)
set udg_locations03[276]=PolarProjectionBJ(udg_locations03[275],300.00,(GetUnitFacing(GetTriggerUnit())-180.00))
call CreateNUnitsAtLoc(1,'nchp',GetOwningPlayer(GetTriggerUnit()),udg_locations03[276],GetUnitFacing(GetTriggerUnit()))
call RemoveLocation(udg_locations03[276])
call SetUnitAnimation(bj_lastCreatedUnit,"Attack Walk Stand Spin")
call SetUnitTimeScalePercent(bj_lastCreatedUnit,1000.00)
set udg_units31[6]=bj_lastCreatedUnit
call SetUnitFlyHeight(bj_lastCreatedUnit,0.00,500.00)
call TriggerSleepAction(0.50)
call EnableTrigger(udg_trigger240)
call TriggerSleepAction(0.50)
call DisableTrigger(udg_trigger240)
call ResetUnitAnimation(GetTriggerUnit())
call PauseUnit(GetTriggerUnit(),false)
call ShowUnit(GetTriggerUnit(),true)
call RemoveUnit(udg_units31[6])
set udg_integers01[7]=1
loop
exitwhen udg_integers01[7]>4
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[90]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[275],250.00,250.00))
call CreateNUnitsAtLoc(1,'zhyd',GetOwningPlayer(GetTriggerUnit()),udg_locations03[90],GetRandomReal(0,360))
call RemoveLocation(udg_locations03[90])
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(50.00,200.00),100.00)
set udg_locations03[90]=PolarProjectionBJ(GetUnitLoc(bj_lastCreatedUnit),400.00,GetUnitFacing(bj_lastCreatedUnit))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations03[90])
call RemoveLocation(udg_locations03[90])
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.10)
set udg_integers01[7]=udg_integers01[7]+1
endloop
call RemoveLocation(udg_locations03[275])
endfunction
function Trig_tianshuangya2_Func006001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[1])))
endfunction
function Trig_tianshuangya2_Func006001003002 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Trig_tianshuangya2_Func006001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[1]))),(IsUnitDeadBJ(GetFilterUnit())==false))
endfunction
function Trig_tianshuangya2_Func006Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)))then
return false
endif
return true
endfunction
function Trig_tianshuangya2_Func006A takes nothing returns nothing
if(Trig_tianshuangya2_Func006Func001C())then
call UnitDamageTarget(udg_units31[1],GetEnumUnit(),(I2R(GetHeroStatBJ(1,udg_units31[1],true))*0.60),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
call UnitDamageTarget(udg_units31[1],GetEnumUnit(),(I2R(GetHeroStatBJ(1,udg_units31[1],true))*1.50),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
endfunction
function Trig_tianshuangya2_Actions takes nothing returns nothing
set udg_integers01[6]=(udg_integers01[6]+1)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integers01[6]
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[276]=PolarProjectionBJ(udg_locations03[275],(15.00*I2R(udg_integers01[6])),((360.00/I2R(udg_integers01[6]))*I2R(bj_forLoopAIndex)))
call AddSpecialEffectLocBJ(udg_locations03[276],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[276])
set udg_locations03[276]=PolarProjectionBJ(udg_locations03[275],(10.00*I2R(udg_integers01[6])),((360.00/I2R(udg_integers01[6]))*I2R(bj_forLoopAIndex)))
call AddSpecialEffectLocBJ(udg_locations03[276],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[276])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call AddSpecialEffectLocBJ(udg_locations03[275],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,udg_locations03[275],Condition(function Trig_tianshuangya2_Func006001003)),function Trig_tianshuangya2_Func006A)
endfunction
function Trig_yashunyazhua_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A025'))
endfunction
function Trig_yashunyazhua_Actions takes nothing returns nothing
set udg_units31[1]=GetTriggerUnit()
set udg_units31[2]=GetSpellTargetUnit()
set udg_reals01[1418]=0.00
call TriggerSleepAction(0.06)
call PauseUnit(GetTriggerUnit(),true)
call PauseUnit(udg_units31[2],true)
call SetUnitTimeScalePercent(GetTriggerUnit(),300.00)
call SetUnitPositionLocFacingLocBJ(udg_units31[1],PolarProjectionBJ(GetUnitLoc(udg_units31[2]),120.00,AngleBetweenPoints(GetUnitLoc(udg_units31[2]),GetUnitLoc(udg_units31[1]))),GetUnitLoc(udg_units31[2]))
set udg_integers02[121]=1
loop
exitwhen udg_integers02[121]>12
call SetUnitPositionLocFacingLocBJ(udg_units31[1],PolarProjectionBJ(GetUnitLoc(udg_units31[1]),20.00,GetUnitFacing(udg_units31[1])),GetUnitLoc(udg_units31[2]))
call SetUnitAnimationByIndex(udg_units31[1],GetRandomInt(14,16))
call TriggerSleepAction(0.01)
call SetUnitPositionLocFacingLocBJ(udg_units31[2],PolarProjectionBJ(GetUnitLoc(udg_units31[1]),120.00,GetUnitFacing(udg_units31[1])),GetUnitLoc(udg_units31[1]))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units31[2]),"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units31[2]),"Objects\\Spawnmodels\\Other\\BeastmasterBlood\\BeastmasterBlood.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units31[2]),"Abilities\\Weapons\\SerpentWardMissile\\SerpentWardMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_integers02[121]=udg_integers02[121]+1
endloop
call SetUnitPositionLocFacingLocBJ(udg_units31[1],PolarProjectionBJ(GetUnitLoc(udg_units31[1]),20.00,GetUnitFacing(udg_units31[1])),GetUnitLoc(udg_units31[2]))
call SetUnitAnimationByIndex(udg_units31[1],16)
set udg_reals01[1418]=60.00
set udg_reals01[1419]=GetUnitFacing(GetTriggerUnit())
call EnableTrigger(udg_trigger242)
call TriggerSleepAction(0.10)
call SetUnitTimeScalePercent(GetTriggerUnit(),100.00)
call PauseUnit(GetTriggerUnit(),false)
call UnitDamageTarget(udg_units31[1],udg_units31[2],(((I2R(GetHeroStatBJ(1,udg_units31[1],true))/1.50)+40.00)*I2R(GetUnitAbilityLevel(udg_units31[1],'A025'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call TriggerSleepAction(0.50)
call PauseUnit(udg_units31[2],false)
call DisableTrigger(udg_trigger242)
endfunction
function Trig_yashunyazhua2_Func001C takes nothing returns boolean
return((udg_reals01[1418]>=0.00))
endfunction
function Trig_yashunyazhua2_Actions takes nothing returns nothing
if((udg_reals01[1418]>=0.00))then
set udg_reals01[1418]=(udg_reals01[1418]-3.00)
endif
set udg_locations03[205]=PolarProjectionBJ(GetUnitLoc(udg_units31[2]),udg_reals01[1418],udg_reals01[1419])
call SetUnitPositionLoc(udg_units31[2],udg_locations03[205])
call AddSpecialEffectLocBJ(udg_locations03[205],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[205])
endfunction
function Trig_kongyasilie_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02B'))
endfunction
function Trig_kongyasilie_Actions takes nothing returns nothing
set udg_units31[1]=GetTriggerUnit()
set udg_units31[3]=GetSpellTargetUnit()
call TriggerSleepAction(0.06)
call PauseUnit(udg_units31[3],true)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitPathing(udg_units31[1],false)
call SetUnitTimeScalePercent(GetTriggerUnit(),500.00)
call SetUnitAnimation(udg_units31[1],"walk")
call EnableTrigger(udg_trigger244)
endfunction
function Trig_kongyasilie2_Func001Func001C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_units31[1]),GetUnitLoc(udg_units31[3]))<=100.00))or((IsUnitDeadBJ(udg_units31[3])))
endfunction
function Trig_kongyasilie2_Func001C takes nothing returns boolean
return((((DistanceBetweenPoints(GetUnitLoc(udg_units31[1]),GetUnitLoc(udg_units31[3]))<=100.00))or((IsUnitDeadBJ(udg_units31[3])))))
endfunction
function Trig_kongyasilie2_Actions takes nothing returns nothing
if((((DistanceBetweenPoints(GetUnitLoc(udg_units31[1]),GetUnitLoc(udg_units31[3]))<=100.00))or((IsUnitDeadBJ(udg_units31[3])))))then
call DisableTrigger(GetTriggeringTrigger())
set udg_locations01[921]=GetUnitLoc(udg_units31[3])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[81]=GetUnitLoc(udg_units31[1])
call CreateNUnitsAtLoc(1,'hmtt',GetOwningPlayer(udg_units31[1]),udg_locations03[81],GetUnitFacing(udg_units31[1]))
call RemoveLocation(udg_locations03[81])
call GroupAddUnit(udg_groups03[26],bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ShowUnit(udg_units31[1],false)
call EnableTrigger(udg_trigger245)
else
set udg_locations03[206]=PolarProjectionBJ(GetUnitLoc(udg_units31[1]),50.00,AngleBetweenPoints(GetUnitLoc(udg_units31[1]),GetUnitLoc(udg_units31[3])))
call SetUnitPositionLocFacingLocBJ(udg_units31[1],udg_locations03[206],GetUnitLoc(udg_units31[3]))
call AddSpecialEffectLocBJ(udg_locations03[206],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[206])
endif
endfunction
function Trig_kongyasilie3_Func001Func002C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_units31[1]),udg_locations01[921])>=1000.00))or((udg_integers01[921]==65))
endfunction
function Trig_kongyasilie3_Func001Func013A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_kongyasilie3_Func001Func016Func008001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_kongyasilie3_Func001Func016Func008001003002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[1])))
endfunction
function Trig_kongyasilie3_Func001Func016Func008001003002002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_kongyasilie3_Func001Func016Func008001003002 takes nothing returns boolean
return GetBooleanAnd((IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[1]))),(IsUnitAliveBJ(GetFilterUnit())))
endfunction
function Trig_kongyasilie3_Func001Func016Func008001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(GetBooleanAnd((IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[1]))),(IsUnitAliveBJ(GetFilterUnit())))))
endfunction
function Trig_kongyasilie3_Func001Func016Func008A takes nothing returns nothing
set udg_locations03[82]=GetUnitLoc(GetEnumUnit())
call UnitDamageTarget(udg_units31[1],GetEnumUnit(),(30.00*I2R(GetUnitAbilityLevel(udg_units31[1],'A02B'))),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call SetUnitAnimation(GetEnumUnit(),"death")
call RemoveLocation(udg_locations03[82])
endfunction
function Trig_kongyasilie3_Func001Func016A takes nothing returns nothing
set udg_locations03[207]=PolarProjectionBJ(udg_locations01[921],GetRandomReal(0,500.00),GetRandomReal(0,360))
call SetUnitPositionLocFacingLocBJ(GetEnumUnit(),udg_locations03[207],udg_locations01[921])
call CreateNUnitsAtLoc(1,'nhem',GetOwningPlayer(udg_units31[1]),udg_locations03[207],GetUnitFacing(GetEnumUnit()))
call UnitApplyTimedLifeBJ(0.50,'BTLF',bj_lastCreatedUnit)
call AddSpecialEffectLocBJ(udg_locations03[207],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,udg_locations03[207],Condition(function Trig_kongyasilie3_Func001Func016Func008001003)),function Trig_kongyasilie3_Func001Func016Func008A)
call RemoveLocation(udg_locations03[207])
endfunction
function Trig_kongyasilie3_Func001C takes nothing returns boolean
return((((DistanceBetweenPoints(GetUnitLoc(udg_units31[1]),udg_locations01[921])>=1000.00))or((udg_integers01[921]==65))))
endfunction
function Trig_kongyasilie3_Actions takes nothing returns nothing
if((((DistanceBetweenPoints(GetUnitLoc(udg_units31[1]),udg_locations01[921])>=1000.00))or((udg_integers01[921]==65))))then
call PauseUnit(udg_units31[3],false)
call DisableTrigger(GetTriggeringTrigger())
set udg_integers01[921]=0
call SetUnitPositionLocFacingLocBJ(udg_units31[1],udg_locations01[921],udg_locations01[921])
call ShowUnit(udg_units31[1],true)
call SetUnitTimeScalePercent(udg_units31[1],100.00)
call SetUnitPathing(udg_units31[1],true)
call PauseUnit(udg_units31[1],false)
call ResetUnitAnimation(udg_units31[1])
call SelectUnitForPlayerSingle(udg_units31[1],GetOwningPlayer(udg_units31[1]))
call RemoveLocation(udg_locations01[921])
call ForGroupBJ(udg_groups03[26],function Trig_kongyasilie3_Func001Func013A)
call GroupClear(udg_groups03[26])
else
set udg_integers01[921]=(udg_integers01[921]+1)
call ForGroupBJ(udg_groups03[26],function Trig_kongyasilie3_Func001Func016A)
endif
endfunction
function Trig_xianjing_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A08B'))
endfunction
function Trig_xianjing_Actions takes nothing returns nothing
set udg_units30[758]=GetTriggerUnit()
set udg_units26[758]=GetSpellTargetUnit()
set udg_locations03[70]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLocFacingLocBJ(1,'hkni',GetOwningPlayer(GetTriggerUnit()),udg_locations03[70],GetUnitLoc(udg_units26[758]))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call RemoveLocation(udg_locations03[70])
call SetUnitTimeScalePercent(bj_lastCreatedUnit,0.00)
set udg_units27[758]=bj_lastCreatedUnit
call GroupAddUnit(udg_groups03[16],bj_lastCreatedUnit)
call TriggerSleepAction(0.05)
call EnableTrigger(udg_trigger250)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitAnimation(GetTriggerUnit(),"spell")
endfunction
function Trig_xianjing2_Func001Func001C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_units27[758]),GetUnitLoc(udg_units26[758]))<=100.00))or((IsUnitDeadBJ(udg_units26[758])))
endfunction
function Trig_xianjing2_Func001C takes nothing returns boolean
return((((DistanceBetweenPoints(GetUnitLoc(udg_units27[758]),GetUnitLoc(udg_units26[758]))<=100.00))or((IsUnitDeadBJ(udg_units26[758])))))
endfunction
function Trig_xianjing2_Actions takes nothing returns nothing
if((((DistanceBetweenPoints(GetUnitLoc(udg_units27[758]),GetUnitLoc(udg_units26[758]))<=100.00))or((IsUnitDeadBJ(udg_units26[758])))))then
call DisableTrigger(GetTriggeringTrigger())
call PauseUnit(udg_units26[758],true)
call SetUnitAnimation(udg_units30[758],"attack")
set udg_locations03[70]=GetUnitLoc(udg_units30[758])
call CreateNUnitsAtLoc(1,'hsor',GetOwningPlayer(udg_units30[758]),udg_locations03[70],GetUnitFacing(udg_units30[758]))
call UnitAddAbility(bj_lastCreatedUnit,'A00T')
call RemoveLocation(udg_locations03[70])
call IssuePointOrderLoc(bj_lastCreatedUnit,"summonfactory",GetUnitLoc(udg_units26[758]))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
else
set udg_locations03[70]=PolarProjectionBJ(GetUnitLoc(udg_units27[758]),28.00,AngleBetweenPoints(GetUnitLoc(udg_units27[758]),GetUnitLoc(udg_units26[758])))
call CreateNUnitsAtLocFacingLocBJ(1,'hkni',GetOwningPlayer(udg_units27[758]),udg_locations03[70],GetUnitLoc(udg_units26[758]))
call RemoveLocation(udg_locations03[70])
call SetUnitTimeScalePercent(bj_lastCreatedUnit,0.00)
call GroupAddUnit(udg_groups03[16],bj_lastCreatedUnit)
set udg_units27[758]=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(5.00,'BTLF',bj_lastCreatedUnit)
endif
endfunction
function Trig_xianjing3_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='h003'))
endfunction
function Trig_xianjing3_Func004A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_xianjing3_Func006001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_xianjing3_Func006A takes nothing returns nothing
set udg_locations03[504]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLoc(1,'uban',GetOwningPlayer(GetTriggerUnit()),udg_locations03[504],GetRandomReal(0,360))
call IssueTargetOrder(bj_lastCreatedUnit,"thunderbolt",GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[504],"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[504])
call UnitDamageTarget(udg_units30[758],GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_units30[758],true))*I2R(GetUnitAbilityLevel(udg_units30[758],'A08B'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_xianjing3_Actions takes nothing returns nothing
call PauseUnit(udg_units30[758],false)
call PauseUnit(udg_units26[758],false)
set udg_locations03[505]=GetUnitLoc(GetTriggerUnit())
call ForGroupBJ(udg_groups03[16],function Trig_xianjing3_Func004A)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_xianjing3_Func006001003)),function Trig_xianjing3_Func006A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[504]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[505],300.00,300.00))
call AddSpecialEffectLocBJ(udg_locations03[504],"war3mapImported\\A-Bomb.mdx")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[504])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call GroupClear(udg_groups03[16])
call RemoveLocation(udg_locations03[505])
endfunction
function Trig_yingzimofangshu_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AHbn'))
endfunction
function Trig_yingzimofangshu_Actions takes nothing returns nothing
set udg_units30[758]=GetTriggerUnit()
set udg_units26[758]=GetSpellTargetUnit()
set udg_locations03[70]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLocFacingLocBJ(1,'hkni',GetOwningPlayer(GetTriggerUnit()),udg_locations03[70],GetUnitLoc(udg_units26[758]))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call RemoveLocation(udg_locations03[70])
call SetUnitTimeScalePercent(bj_lastCreatedUnit,0.00)
set udg_units27[758]=bj_lastCreatedUnit
call GroupAddUnit(udg_groups03[16],bj_lastCreatedUnit)
call TriggerSleepAction(0.05)
call EnableTrigger(udg_trigger250)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitAnimation(GetTriggerUnit(),"spell")
endfunction
function Trig_yingzimofangshu2_Func001Func001C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_units27[758]),GetUnitLoc(udg_units26[758]))<=100.00))or((IsUnitDeadBJ(udg_units26[758])))
endfunction
function Trig_yingzimofangshu2_Func001C takes nothing returns boolean
return((((DistanceBetweenPoints(GetUnitLoc(udg_units27[758]),GetUnitLoc(udg_units26[758]))<=100.00))or((IsUnitDeadBJ(udg_units26[758])))))
endfunction
function Trig_yingzimofangshu2_Actions takes nothing returns nothing
if((((DistanceBetweenPoints(GetUnitLoc(udg_units27[758]),GetUnitLoc(udg_units26[758]))<=100.00))or((IsUnitDeadBJ(udg_units26[758])))))then
call DisableTrigger(GetTriggeringTrigger())
call PauseUnit(udg_units26[758],true)
call SetUnitAnimation(udg_units30[758],"attack")
set udg_locations03[70]=GetUnitLoc(udg_units30[758])
call CreateNUnitsAtLoc(1,'hsor',GetOwningPlayer(udg_units30[758]),udg_locations03[70],GetUnitFacing(udg_units30[758]))
call UnitAddAbility(bj_lastCreatedUnit,'A082')
call RemoveLocation(udg_locations03[70])
call IssuePointOrderLoc(bj_lastCreatedUnit,"summonfactory",GetUnitLoc(udg_units26[758]))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
else
set udg_locations03[70]=PolarProjectionBJ(GetUnitLoc(udg_units27[758]),28.00,AngleBetweenPoints(GetUnitLoc(udg_units27[758]),GetUnitLoc(udg_units26[758])))
call CreateNUnitsAtLocFacingLocBJ(1,'hkni',GetOwningPlayer(udg_units27[758]),udg_locations03[70],GetUnitLoc(udg_units26[758]))
call RemoveLocation(udg_locations03[70])
call SetUnitTimeScalePercent(bj_lastCreatedUnit,0.00)
call GroupAddUnit(udg_groups03[16],bj_lastCreatedUnit)
set udg_units27[758]=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(5.00,'BTLF',bj_lastCreatedUnit)
endif
endfunction
function Trig_yingzimofangshu3_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='hrif'))
endfunction
function Trig_yingzimofangshu3_Func004A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_yingzimofangshu3_Func006001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_yingzimofangshu3_Func006A takes nothing returns nothing
set udg_locations03[504]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLoc(1,'uban',GetOwningPlayer(GetTriggerUnit()),udg_locations03[504],GetRandomReal(0,360))
call IssueTargetOrder(bj_lastCreatedUnit,"thunderbolt",GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[504],"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[504])
call UnitDamageTarget(udg_units30[758],GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_units30[758],true))*I2R(GetUnitAbilityLevel(udg_units30[758],'AHbn'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_yingzimofangshu3_Actions takes nothing returns nothing
call PauseUnit(udg_units30[758],false)
call PauseUnit(udg_units26[758],false)
set udg_locations03[505]=GetUnitLoc(GetTriggerUnit())
call ForGroupBJ(udg_groups03[16],function Trig_yingzimofangshu3_Func004A)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_yingzimofangshu3_Func006001003)),function Trig_yingzimofangshu3_Func006A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[504]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[505],300.00,300.00))
call AddSpecialEffectLocBJ(udg_locations03[504],"Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[504])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call GroupClear(udg_groups03[16])
call RemoveLocation(udg_locations03[505])
endfunction
function Trig_yingfeng_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A083'))
endfunction
function Trig_yingfeng_Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_yingfeng_Func003001003002001 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Trig_yingfeng_Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_yingfeng_Func003001003002 takes nothing returns boolean
return GetBooleanAnd((IsUnitDeadBJ(GetFilterUnit())==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_yingfeng_Func003001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(GetBooleanAnd((IsUnitDeadBJ(GetFilterUnit())==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))))
endfunction
function Trig_yingfeng_Func003A takes nothing returns nothing
call GroupAddUnit(udg_groups03[17],GetEnumUnit())
endfunction
function Trig_yingfeng_Func005Func003Func001A takes nothing returns nothing
call GroupRemoveUnit(udg_groups03[17],GetEnumUnit())
call GroupAddUnit(udg_groups03[18],GetEnumUnit())
set udg_units26[(2000+bj_forLoopAIndex)]=GetEnumUnit()
call CreateNUnitsAtLocFacingLocBJ(1,'hkni',GetOwningPlayer(GetTriggerUnit()),udg_locations03[71],GetUnitLoc(GetEnumUnit()))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
set udg_units27[(2000+bj_forLoopAIndex)]=bj_lastCreatedUnit
call SetUnitTimeScalePercent(bj_lastCreatedUnit,0.00)
call GroupAddUnit(udg_groups03[19],bj_lastCreatedUnit)
endfunction
function Trig_yingfeng_Func005Func004Func001A takes nothing returns nothing
call GroupRemoveUnit(udg_groups03[17],GetEnumUnit())
call GroupAddUnit(udg_groups03[18],GetEnumUnit())
set udg_units26[(2000+bj_forLoopAIndex)]=GetEnumUnit()
call CreateNUnitsAtLocFacingLocBJ(1,'hkni',GetOwningPlayer(GetTriggerUnit()),udg_locations03[71],GetUnitLoc(GetEnumUnit()))
set udg_units27[(2000+bj_forLoopAIndex)]=bj_lastCreatedUnit
call SetUnitTimeScalePercent(bj_lastCreatedUnit,0.00)
call GroupAddUnit(udg_groups03[19],bj_lastCreatedUnit)
endfunction
function Trig_yingfeng_Func005C takes nothing returns boolean
return((CountUnitsInGroup(udg_groups03[17])<10))
endfunction
function Trig_yingfeng_Actions takes nothing returns nothing
set udg_units30[758]=GetTriggerUnit()
set udg_units26[758]=GetSpellTargetUnit()
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(udg_units26[758]),Condition(function Trig_yingfeng_Func003001003)),function Trig_yingfeng_Func003A)
set udg_locations03[71]=GetUnitLoc(GetTriggerUnit())
if((CountUnitsInGroup(udg_groups03[17])<10))then
set udg_integers01[759]=CountUnitsInGroup(udg_groups03[17])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integers01[759]
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(GetRandomSubGroup(1,udg_groups03[17]),function Trig_yingfeng_Func005Func004Func001A)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
set udg_integers01[759]=10
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(GetRandomSubGroup(1,udg_groups03[17]),function Trig_yingfeng_Func005Func003Func001A)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
call RemoveLocation(udg_locations03[71])
call TriggerSleepAction(0.05)
call EnableTrigger(udg_trigger253)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitAnimation(GetTriggerUnit(),"spell")
endfunction
function Trig_yingfeng2_Func001Func001Func001Func003Func001C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_units27[(2000+bj_forLoopAIndex)]),GetUnitLoc(udg_units26[(2000+bj_forLoopAIndex)]))<=150.00))or((DistanceBetweenPoints(GetUnitLoc(udg_units27[(2000+bj_forLoopAIndex)]),GetUnitLoc(udg_units26[(2000+bj_forLoopAIndex)]))>=1500.00))or((IsUnitDeadBJ(udg_units26[(2000+bj_forLoopAIndex)])))
endfunction
function Trig_yingfeng2_Func001Func001Func001Func003C takes nothing returns boolean
return((((DistanceBetweenPoints(GetUnitLoc(udg_units27[(2000+bj_forLoopAIndex)]),GetUnitLoc(udg_units26[(2000+bj_forLoopAIndex)]))<=150.00))or((DistanceBetweenPoints(GetUnitLoc(udg_units27[(2000+bj_forLoopAIndex)]),GetUnitLoc(udg_units26[(2000+bj_forLoopAIndex)]))>=1500.00))or((IsUnitDeadBJ(udg_units26[(2000+bj_forLoopAIndex)])))))
endfunction
function Trig_yingfeng2_Func001Func001Func001C takes nothing returns boolean
return((IsUnitInGroup(udg_units26[(2000+bj_forLoopAIndex)],udg_groups03[18])))
endfunction
function Trig_yingfeng2_Func001Func005A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_yingfeng2_Func001C takes nothing returns boolean
return((CountUnitsInGroup(udg_groups03[18])==0))
endfunction
function Trig_yingfeng2_Actions takes nothing returns nothing
if((CountUnitsInGroup(udg_groups03[18])==0))then
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(0.20)
call PauseUnit(udg_units30[758],false)
call ForGroupBJ(udg_groups03[19],function Trig_yingfeng2_Func001Func005A)
call GroupClear(udg_groups03[17])
call GroupClear(udg_groups03[18])
call GroupClear(udg_groups03[19])
else
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integers01[759]
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((IsUnitInGroup(udg_units26[(2000+bj_forLoopAIndex)],udg_groups03[18])))then
if((((DistanceBetweenPoints(GetUnitLoc(udg_units27[(2000+bj_forLoopAIndex)]),GetUnitLoc(udg_units26[(2000+bj_forLoopAIndex)]))<=150.00))or((DistanceBetweenPoints(GetUnitLoc(udg_units27[(2000+bj_forLoopAIndex)]),GetUnitLoc(udg_units26[(2000+bj_forLoopAIndex)]))>=1500.00))or((IsUnitDeadBJ(udg_units26[(2000+bj_forLoopAIndex)])))))then
call GroupRemoveUnit(udg_groups03[18],udg_units26[(2000+bj_forLoopAIndex)])
call UnitDamageTarget(udg_units30[758],udg_units26[(2000+bj_forLoopAIndex)],(80.00*I2R(GetUnitAbilityLevel(udg_units30[758],'A083'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
set udg_locations03[71]=GetUnitLoc(udg_units27[(2000+bj_forLoopAIndex)])
call CreateNUnitsAtLocFacingLocBJ(1,'hmpr',GetOwningPlayer(udg_units27[(2000+bj_forLoopAIndex)]),udg_locations03[71],GetUnitLoc(udg_units26[(2000+bj_forLoopAIndex)]))
call RemoveLocation(udg_locations03[71])
call GroupAddUnit(udg_groups03[19],bj_lastCreatedUnit)
else
set udg_locations03[71]=PolarProjectionBJ(GetUnitLoc(udg_units27[(2000+bj_forLoopAIndex)]),30.00,AngleBetweenPoints(GetUnitLoc(udg_units27[(2000+bj_forLoopAIndex)]),GetUnitLoc(udg_units26[(2000+bj_forLoopAIndex)])))
call CreateNUnitsAtLocFacingLocBJ(1,'hkni',GetOwningPlayer(udg_units27[(2000+bj_forLoopAIndex)]),udg_locations03[71],GetUnitLoc(udg_units26[(2000+bj_forLoopAIndex)]))
call RemoveLocation(udg_locations03[71])
call SetUnitTimeScalePercent(bj_lastCreatedUnit,0.00)
set udg_units27[(2000+bj_forLoopAIndex)]=bj_lastCreatedUnit
call GroupAddUnit(udg_groups03[19],bj_lastCreatedUnit)
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
endfunction
function Trig_yingzishufushu_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='Amls'))
endfunction
function Trig_yingzishufushu_Actions takes nothing returns nothing
set udg_units30[758]=GetTriggerUnit()
set udg_units26[758]=GetSpellTargetUnit()
set udg_locations03[72]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLocFacingLocBJ(1,'hkni',GetOwningPlayer(GetTriggerUnit()),udg_locations03[72],GetUnitLoc(udg_units26[758]))
call RemoveLocation(udg_locations03[72])
call SetUnitTimeScalePercent(bj_lastCreatedUnit,0.00)
set udg_units27[758]=bj_lastCreatedUnit
call GroupAddUnit(udg_groups03[20],bj_lastCreatedUnit)
call EnableTrigger(udg_trigger255)
endfunction
function Trig_yingzishufushu2_Func001Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_yingzishufushu2_Func001Func003001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_yingzishufushu2_Func001Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units30[758])))
endfunction
function Trig_yingzishufushu2_Func001Func003001003002 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units30[758]))))
endfunction
function Trig_yingzishufushu2_Func001Func003001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units30[758]))))))
endfunction
function Trig_yingzishufushu2_Func001Func003A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'hsor',GetOwningPlayer(udg_units30[758]),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call UnitAddAbility(bj_lastCreatedUnit,'A00Q')
call SetUnitAbilityLevel(bj_lastCreatedUnit,'A00Q',GetUnitAbilityLevel(udg_units30[758],'Amls'))
call UnitApplyTimedLifeBJ(9.00,'BTLF',bj_lastCreatedUnit)
call IssueTargetOrder(bj_lastCreatedUnit,"magicleash",GetEnumUnit())
call GroupAddUnit(udg_groups03[20],bj_lastCreatedUnit)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=(R2I(DistanceBetweenPoints(GetUnitLoc(udg_units26[758]),GetUnitLoc(GetEnumUnit())))/30)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'hkni',GetOwningPlayer(udg_units30[758]),PolarProjectionBJ(GetUnitLoc(udg_units26[758]),(30.00*I2R(bj_forLoopAIndex)),AngleBetweenPoints(GetUnitLoc(udg_units26[758]),GetUnitLoc(GetEnumUnit()))),GetUnitLoc(GetEnumUnit()))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call GroupAddUnit(udg_groups03[20],bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,0.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_yingzishufushu2_Func001C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_units27[758]),GetUnitLoc(udg_units26[758]))<=100.00))
endfunction
function Trig_yingzishufushu2_Actions takes nothing returns nothing
if((DistanceBetweenPoints(GetUnitLoc(udg_units27[758]),GetUnitLoc(udg_units26[758]))<=100.00))then
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units26[758]),Condition(function Trig_yingzishufushu2_Func001Func003001003)),function Trig_yingzishufushu2_Func001Func003A)
else
set udg_locations03[72]=PolarProjectionBJ(GetUnitLoc(udg_units27[758]),30.00,AngleBetweenPoints(GetUnitLoc(udg_units27[758]),GetUnitLoc(udg_units26[758])))
call CreateNUnitsAtLocFacingLocBJ(1,'hkni',GetOwningPlayer(udg_units27[758]),udg_locations03[72],GetUnitLoc(udg_units26[758]))
call RemoveLocation(udg_locations03[72])
call SetUnitTimeScalePercent(bj_lastCreatedUnit,0.00)
call GroupAddUnit(udg_groups03[20],bj_lastCreatedUnit)
set udg_units27[758]=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(5.00,'BTLF',bj_lastCreatedUnit)
endif
endfunction
function Trig_yingzishufushu3_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='Amls'))
endfunction
function Trig_yingzishufushu3_Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_yingzishufushu3_Actions takes nothing returns nothing
call TriggerSleepAction(0.10)
call ForGroupBJ(udg_groups03[20],function Trig_yingzishufushu3_Func002A)
call GroupClear(udg_groups03[20])
endfunction
function Trig_yingyanwuzhishu_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ANc1'))
endfunction
function Trig_yingyanwuzhishu_Func009001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_yingyanwuzhishu_Func009001003002001 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Trig_yingyanwuzhishu_Func009001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_yingyanwuzhishu_Func009001003002 takes nothing returns boolean
return GetBooleanAnd((IsUnitDeadBJ(GetFilterUnit())==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_yingyanwuzhishu_Func009001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(GetBooleanAnd((IsUnitDeadBJ(GetFilterUnit())==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))))
endfunction
function Trig_yingyanwuzhishu_Func009A takes nothing returns nothing
call GroupAddUnit(udg_groups03[23],GetEnumUnit())
call PauseUnit(GetEnumUnit(),true)
endfunction
function Trig_yingyanwuzhishu_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000__:_...________________,________________,________...
|r")
set udg_units30[758]=GetTriggerUnit()
set udg_locations01[655]=GetSpellTargetLoc()
set udg_locations03[74]=GetUnitLoc(GetTriggerUnit())
set udg_integers01[655]=1
loop
exitwhen udg_integers01[655]>3
call CreateNUnitsAtLoc(1,'hsor',GetOwningPlayer(GetTriggerUnit()),udg_locations03[74],GetUnitFacing(GetTriggerUnit()))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call SetUnitScalePercent(bj_lastCreatedUnit,100.00,100.00,100.00)
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call UnitAddAbility(bj_lastCreatedUnit,'A00V')
call IssuePointOrderLoc(bj_lastCreatedUnit,"summonfactory",PolarProjectionBJ(udg_locations01[655],GetRandomReal(0.00,200.00),GetRandomReal(0,360)))
call TriggerSleepAction(0.05)
set udg_integers01[655]=udg_integers01[655]+1
endloop
call TriggerSleepAction(0.10)
call PauseUnit(GetTriggerUnit(),true)
call TriggerSleepAction(0.20)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations01[655],Condition(function Trig_yingyanwuzhishu_Func009001003)),function Trig_yingyanwuzhishu_Func009A)
call SetUnitAnimation(GetTriggerUnit(),"spell")
call CreateNUnitsAtLocFacingLocBJ(1,'hkni',GetOwningPlayer(GetTriggerUnit()),udg_locations03[74],udg_locations01[655])
call RemoveLocation(udg_locations03[74])
call SetUnitTimeScalePercent(bj_lastCreatedUnit,0.00)
set udg_units27[655]=bj_lastCreatedUnit
call GroupAddUnit(udg_groups03[21],bj_lastCreatedUnit)
call EnableTrigger(udg_trigger259)
endfunction
function Trig_yingyanwuzhishu2_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='hgyr'))
endfunction
function Trig_yingyanwuzhishu2_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[75]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),GetRandomReal(0,200.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'zcso',GetOwningPlayer(GetTriggerUnit()),udg_locations03[75],GetRandomReal(0,360))
call RemoveLocation(udg_locations03[75])
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(50.00,300.00),600.00)
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",PolarProjectionBJ(GetUnitLoc(bj_lastCreatedUnit),GetRandomReal(300.00,350.00),AngleBetweenPoints(GetUnitLoc(bj_lastCreatedUnit),udg_locations01[655])))
call SetUnitScalePercent(bj_lastCreatedUnit,600.00,600.00,600.00)
call GroupAddUnit(udg_groups03[21],bj_lastCreatedUnit)
call GroupAddUnit(udg_groups03[22],bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_yingyanwuzhishu3_Func001Func002C takes nothing returns boolean
return((udg_booleans01[654]==false))
endfunction
function Trig_yingyanwuzhishu3_Func001Func003Func019A takes nothing returns nothing
call IssuePointOrderLoc(GetEnumUnit(),"move",udg_locations01[655])
call SetUnitFlyHeight(GetEnumUnit(),0.00,(GetUnitFlyHeight(GetEnumUnit())*4.00))
endfunction
function Trig_yingyanwuzhishu3_Func001Func003Func021A takes nothing returns nothing
call ShowUnitHide(GetEnumUnit())
endfunction
function Trig_yingyanwuzhishu3_Func001Func003Func023A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_yingyanwuzhishu3_Func001Func003Func030A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("overhead",GetEnumUnit(),"Abilities\\Weapons\\AvengerMissile\\AvengerMissile.mdl")
call SetUnitFlyHeight(GetEnumUnit(),GetRandomReal(50.00,250.00),500.00)
endfunction
function Trig_yingyanwuzhishu3_Func001Func003Func033A takes nothing returns nothing
call ShowUnitShow(GetEnumUnit())
call PauseUnit(GetEnumUnit(),false)
call UnitDamageTarget(udg_units30[758],GetEnumUnit(),(600.00+(10.00*I2R(GetHeroStatBJ(2,udg_units30[758],true)))),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_yingyanwuzhishu3_Func001Func003Func034A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_yingyanwuzhishu3_Func001Func003C takes nothing returns boolean
return((udg_integers01[655]==60))
endfunction
function Trig_yingyanwuzhishu3_Func001C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_units27[655]),udg_locations01[655])<=300.00))
endfunction
function Trig_yingyanwuzhishu3_Actions takes nothing returns nothing
if((DistanceBetweenPoints(GetUnitLoc(udg_units27[655]),udg_locations01[655])<=300.00))then
if((udg_booleans01[654]==false))then
set udg_reals01[655]=AngleBetweenPoints(udg_locations01[655],GetUnitLoc(udg_units27[655]))
set udg_booleans01[654]=true
endif
if((udg_integers01[655]==60))then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitAnimationWithRarity(udg_units30[758],"attack",RARITY_RARE)
set udg_booleans01[654]=false
set udg_reals01[655]=0.00
set udg_reals01[656]=0.00
set udg_integers01[655]=0
call ForGroupBJ(udg_groups03[24],function Trig_yingyanwuzhishu3_Func001Func003Func019A)
call EnableTrigger(udg_trigger260)
call ForGroupBJ(udg_groups03[23],function Trig_yingyanwuzhishu3_Func001Func003Func021A)
call TriggerSleepAction(0.25)
call ForGroupBJ(udg_groups03[24],function Trig_yingyanwuzhishu3_Func001Func003Func023A)
call TriggerSleepAction(0.25)
call DisableTrigger(udg_trigger260)
call TriggerSleepAction(0.50)
set udg_reals01[656]=1.00
call SetUnitAnimationWithRarity(udg_units30[758],"attack",RARITY_FREQUENT)
call EnableTrigger(udg_trigger260)
call ForGroupBJ(udg_groups03[22],function Trig_yingyanwuzhishu3_Func001Func003Func030A)
call TriggerSleepAction(0.50)
call DisableTrigger(udg_trigger260)
call ForGroupBJ(udg_groups03[23],function Trig_yingyanwuzhishu3_Func001Func003Func033A)
call ForGroupBJ(udg_groups03[21],function Trig_yingyanwuzhishu3_Func001Func003Func034A)
call PauseUnit(udg_units30[758],false)
call GroupClear(udg_groups03[21])
call GroupClear(udg_groups03[22])
call GroupClear(udg_groups03[23])
call GroupClear(udg_groups03[24])
else
set udg_reals01[655]=(udg_reals01[655]+15.00)
set udg_reals01[656]=(udg_reals01[656]+3.50)
set udg_integers01[655]=(udg_integers01[655]+1)
set udg_locations03[76]=PolarProjectionBJ(udg_locations01[655],(260.00-udg_reals01[656]),udg_reals01[655])
call CreateNUnitsAtLoc(1,'hkni',GetOwningPlayer(udg_units27[655]),udg_locations03[76],(udg_reals01[655]-90.00))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call RemoveLocation(udg_locations03[76])
call SetUnitScalePercent(bj_lastCreatedUnit,(100.00-(udg_reals01[656]/3.50)),(100.00-(udg_reals01[656]/3.50)),(100.00-(udg_reals01[656]/3.50)))
call GroupAddUnit(udg_groups03[21],bj_lastCreatedUnit)
call GroupAddUnit(udg_groups03[24],bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,(udg_reals01[656]*1.75),0.00)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,0.00)
endif
else
set udg_locations03[76]=PolarProjectionBJ(GetUnitLoc(udg_units27[655]),20.00,AngleBetweenPoints(GetUnitLoc(udg_units27[655]),udg_locations01[655]))
call CreateNUnitsAtLocFacingLocBJ(1,'hkni',GetOwningPlayer(udg_units27[655]),PolarProjectionBJ(GetUnitLoc(udg_units27[655]),20.00,AngleBetweenPoints(GetUnitLoc(udg_units27[655]),udg_locations01[655])),udg_locations01[655])
call RemoveLocation(udg_locations03[76])
call SetUnitTimeScalePercent(bj_lastCreatedUnit,0.00)
call GroupAddUnit(udg_groups03[21],bj_lastCreatedUnit)
set udg_units27[655]=bj_lastCreatedUnit
endif
endfunction
function Trig_yingyanwuzhishu4_Func001C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_units27[655]),udg_locations01[655])>60.00))
endfunction
function Trig_yingyanwuzhishu4_Func002Func002A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),GetRandomReal(0.00,40.00),AngleBetweenPoints(udg_locations01[655],GetUnitLoc(GetEnumUnit()))))
call SetUnitScalePercent(GetEnumUnit(),(50.00+udg_reals01[655]),(50.00+udg_reals01[655]),(50.00+udg_reals01[655]))
endfunction
function Trig_yingyanwuzhishu4_Func002Func005A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),40.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_locations01[655])))
call SetUnitScalePercent(GetEnumUnit(),(600.00-udg_reals01[655]),(600.00-udg_reals01[655]),(600.00-udg_reals01[655]))
endfunction
function Trig_yingyanwuzhishu4_Func002C takes nothing returns boolean
return((udg_reals01[656]!=1.00))
endfunction
function Trig_yingyanwuzhishu4_Actions takes nothing returns nothing
if((DistanceBetweenPoints(GetUnitLoc(udg_units27[655]),udg_locations01[655])>60.00))then
call CreateNUnitsAtLocFacingLocBJ(1,'hkni',GetOwningPlayer(udg_units27[655]),PolarProjectionBJ(GetUnitLoc(udg_units27[655]),20.00,AngleBetweenPoints(GetUnitLoc(udg_units27[655]),udg_locations01[655])),udg_locations01[655])
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,0.00)
call GroupAddUnit(udg_groups03[21],bj_lastCreatedUnit)
set udg_units27[655]=bj_lastCreatedUnit
endif
if((udg_reals01[656]!=1.00))then
set udg_reals01[655]=(udg_reals01[655]+60.00)
call ForGroupBJ(udg_groups03[22],function Trig_yingyanwuzhishu4_Func002Func005A)
else
set udg_reals01[655]=(udg_reals01[655]+50.00)
call ForGroupBJ(udg_groups03[22],function Trig_yingyanwuzhishu4_Func002Func002A)
endif
endfunction
function Trig_yingyazhangzhishu_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01J'))
endfunction
function Trig_yingyazhangzhishu_Actions takes nothing returns nothing
set udg_units30[758]=GetTriggerUnit()
set udg_locations01[676]=GetSpellTargetLoc()
call TriggerSleepAction(0.05)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitAnimation(GetTriggerUnit(),"spell")
call CreateNUnitsAtLocFacingLocBJ(1,'hkni',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),udg_locations01[676])
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,0.00)
set udg_units27[676]=bj_lastCreatedUnit
call GroupAddUnit(udg_groups03[25],bj_lastCreatedUnit)
call EnableTrigger(udg_trigger262)
endfunction
function Trig_yingyazhangzhishu2_Func001Func005001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_yingyazhangzhishu2_Func001Func005001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units27[676])))
endfunction
function Trig_yingyazhangzhishu2_Func001Func005001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units27[676]))))
endfunction
function Trig_yingyazhangzhishu2_Func001Func005A takes nothing returns nothing
call PauseUnit(GetEnumUnit(),true)
call GroupAddUnit(udg_groups06[129],GetEnumUnit())
endfunction
function Trig_yingyazhangzhishu2_Func001Func009A takes nothing returns nothing
call UnitDamageTarget(udg_units30[758],GetEnumUnit(),(1000.00*I2R(GetUnitAbilityLevel(udg_units30[758],'A01J'))),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"LW10.mdx")
call DestroyEffect(bj_lastCreatedEffect)
call PauseUnit(GetEnumUnit(),false)
endfunction
function Trig_yingyazhangzhishu2_Func001Func011A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_yingyazhangzhishu2_Func001C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_units27[676]),udg_locations01[676])<=40.00))
endfunction
function Trig_yingyazhangzhishu2_Actions takes nothing returns nothing
if((DistanceBetweenPoints(GetUnitLoc(udg_units27[676]),udg_locations01[676])<=40.00))then
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLoc(1,'hcth',GetOwningPlayer(udg_units27[676]),udg_locations01[676],(GetUnitFacing(udg_units27[676])-180.00))
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(450.00,udg_locations01[676],Condition(function Trig_yingyazhangzhishu2_Func001Func005001003)),function Trig_yingyazhangzhishu2_Func001Func005A)
call TriggerSleepAction(1.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRectCenter(RectFromCenterSizeBJ(udg_locations01[676],500.00,500.00)),"LW10.mdx")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=40
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations06[105]=PolarProjectionBJ(udg_locations01[676],GetRandomReal(0,350.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'nhef',GetOwningPlayer(udg_units30[758]),udg_locations06[105],GetRandomReal(0,360))
call KillUnit(bj_lastCreatedUnit)
call SetUnitTimeScale(bj_lastCreatedUnit,0.30)
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(0.00,120.00),0.00)
call RemoveLocation(udg_locations06[105])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(udg_groups06[129],function Trig_yingyazhangzhishu2_Func001Func009A)
call PauseUnit(udg_units30[758],false)
call ForGroupBJ(udg_groups03[25],function Trig_yingyazhangzhishu2_Func001Func011A)
call GroupClear(udg_groups03[25])
call GroupClear(udg_groups06[129])
call RemoveLocation(udg_locations01[676])
else
set udg_locations03[77]=PolarProjectionBJ(GetUnitLoc(udg_units27[676]),28.00,AngleBetweenPoints(GetUnitLoc(udg_units27[676]),udg_locations01[676]))
call CreateNUnitsAtLocFacingLocBJ(1,'hkni',GetOwningPlayer(udg_units27[676]),udg_locations03[77],udg_locations01[676])
call SetUnitTimeScalePercent(bj_lastCreatedUnit,0.00)
call GroupAddUnit(udg_groups03[25],bj_lastCreatedUnit)
set udg_units27[676]=bj_lastCreatedUnit
call RemoveLocation(udg_locations03[77])
endif
endfunction
function Trig_bengquan_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AHwe'))
endfunction
function Trig_bengquan_Func011001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_bengquan_Func011001003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_bengquan_Func011001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))
endfunction
function Trig_bengquan_Func011A takes nothing returns nothing
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(40.00*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'AHwe'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_bengquan_Func014Func010001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_bengquan_Func014Func010001003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_bengquan_Func014Func010001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))
endfunction
function Trig_bengquan_Func014Func010A takes nothing returns nothing
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),((40.00-(5.00*I2R(udg_integers01[51])))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'AHwe'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
set udg_locations03[252]=PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),25.00,AngleBetweenPoints(udg_locations03[251],GetUnitLoc(GetEnumUnit())))
call SetUnitPositionLoc(GetEnumUnit(),udg_locations03[252])
call AddSpecialEffectLocBJ(udg_locations03[252],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[252])
endfunction
function Trig_bengquan_Actions takes nothing returns nothing
call TriggerSleepAction(0.10)
set udg_locations03[251]=GetUnitLoc(GetTriggerUnit())
set udg_reals01[251]=GetUnitFacing(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'nser',GetOwningPlayer(GetTriggerUnit()),udg_locations03[251],GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call AddSpecialEffectLocBJ(udg_locations03[251],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[251],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[251],Condition(function Trig_bengquan_Func011001003)),function Trig_bengquan_Func011A)
call RemoveLocation(udg_locations03[251])
call TriggerSleepAction(0.05)
set udg_integers01[51]=1
loop
exitwhen udg_integers01[51]>7
set udg_locations03[251]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),(100.00*I2R(udg_integers01[51])),udg_reals01[251])
call CreateNUnitsAtLoc(1,'nser',GetOwningPlayer(GetTriggerUnit()),udg_locations03[251],GetUnitFacing(GetTriggerUnit()))
call SetUnitScalePercent(bj_lastCreatedUnit,(140.00-(10.00*I2R(udg_integers01[51]))),(140.00-(10.00*I2R(udg_integers01[51]))),(140.00-(10.00*I2R(udg_integers01[51]))))
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call AddSpecialEffectLocBJ(udg_locations03[251],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[251],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching((300.00-(20.00*I2R(udg_integers01[51]))),udg_locations03[251],Condition(function Trig_bengquan_Func014Func010001003)),function Trig_bengquan_Func014Func010A)
call RemoveLocation(udg_locations03[251])
call TriggerSleepAction(0.01)
set udg_integers01[51]=udg_integers01[51]+1
endloop
endfunction
function Trig_chuangzaozaisheng_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='Ara2'))
endfunction
function Trig_chuangzaozaisheng_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000__:____,_____________! |r")
set udg_locations03[255]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations03[255],"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitLifePercentBJ(GetTriggerUnit(),(GetUnitLifePercent(GetTriggerUnit())+30.00))
set udg_integers02[255]=1
loop
exitwhen udg_integers02[255]>10
call TriggerSleepAction(0.01)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integers02[255]
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[255]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),(40.00*I2R(udg_integers02[255])),((360.00/I2R(udg_integers02[255]))*I2R(bj_forLoopAIndex)))
call AddSpecialEffectLocBJ(udg_locations03[255],"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[255],"Abilities\\Spells\\Undead\\VampiricAura\\VampiricAuraTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[255])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integers02[255]=udg_integers02[255]+1
endloop
endfunction
function Trig_guailiyiji_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AUdc'))
endfunction
function Trig_guailiyiji_Actions takes nothing returns nothing
set udg_units31[21]=GetTriggerUnit()
set udg_units31[22]=GetSpellTargetUnit()
call TriggerSleepAction(0.05)
set udg_locations03[253]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations03[253],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[253])
call PauseUnit(GetTriggerUnit(),true)
call SetUnitPathing(GetTriggerUnit(),false)
call EnableTrigger(udg_trigger266)
call SetUnitAnimationByIndex(GetTriggerUnit(),4)
endfunction
function Trig_guailiyiji2_Func001Func007001003001001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[21])))
endfunction
function Trig_guailiyiji2_Func001Func007001003001002 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Trig_guailiyiji2_Func001Func007001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[21]))),(IsUnitDeadBJ(GetFilterUnit())==false))
endfunction
function Trig_guailiyiji2_Func001Func007001003002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_guailiyiji2_Func001Func007001003002002 takes nothing returns boolean
return(GetFilterUnit()!=udg_units31[22])
endfunction
function Trig_guailiyiji2_Func001Func007001003002 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(GetFilterUnit()!=udg_units31[22]))
endfunction
function Trig_guailiyiji2_Func001Func007001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[21]))),(IsUnitDeadBJ(GetFilterUnit())==false))),(GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(GetFilterUnit()!=udg_units31[22]))))
endfunction
function Trig_guailiyiji2_Func001Func007A takes nothing returns nothing
call UnitDamageTarget(udg_units31[21],GetEnumUnit(),(I2R(GetHeroStatBJ(0,udg_units31[21],true))*I2R(GetUnitAbilityLevel(udg_units31[21],'AUdc'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_FORCE,WEAPON_TYPE_WHOKNOWS)
set udg_locations03[254]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[254],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[253])
call GroupAddUnit(udg_groups03[27],GetEnumUnit())
endfunction
function Trig_guailiyiji2_Func001C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_units31[21]),GetUnitLoc(udg_units31[22]))<=100.00))
endfunction
function Trig_guailiyiji2_Actions takes nothing returns nothing
if((DistanceBetweenPoints(GetUnitLoc(udg_units31[21]),GetUnitLoc(udg_units31[22]))<=100.00))then
call DisableTrigger(GetTriggeringTrigger())
set udg_locations03[253]=GetUnitLoc(udg_units31[21])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'nser',GetOwningPlayer(udg_units31[21]),udg_locations03[253],GetUnitFacing(udg_units31[21]))
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call AddSpecialEffectLocBJ(udg_locations03[253],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call UnitDamageTarget(udg_units31[21],udg_units31[22],(I2R(GetHeroStatBJ(0,udg_units31[21],true))*I2R(GetUnitAbilityLevel(udg_units31[21],'AUdc'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_FORCE,WEAPON_TYPE_WHOKNOWS)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,udg_locations03[253],Condition(function Trig_guailiyiji2_Func001Func007001003)),function Trig_guailiyiji2_Func001Func007A)
call EnableTrigger(udg_trigger267)
call PauseUnit(udg_units31[21],false)
call SetUnitPathing(udg_units31[21],true)
call PauseUnit(udg_units31[22],true)
call SetUnitPathing(udg_units31[22],false)
call UnitAddAbility(udg_units31[22],'Amrf')
call SetUnitFlyHeight(udg_units31[22],220.00,550.00)
call UnitRemoveAbility(udg_units31[22],'Amrf')
call TriggerSleepAction(0.40)
call SetUnitFlyHeight(udg_units31[22],0.00,1100.00)
call TriggerSleepAction(0.20)
call DisableTrigger(udg_trigger267)
call PauseUnit(udg_units31[22],false)
call SetUnitPathing(udg_units31[22],true)
call GroupClear(udg_groups03[27])
call RemoveLocation(udg_locations03[253])
else
set udg_locations03[253]=PolarProjectionBJ(GetUnitLoc(udg_units31[21]),40.00,AngleBetweenPoints(GetUnitLoc(udg_units31[21]),GetUnitLoc(udg_units31[22])))
call SetUnitPositionLocFacingLocBJ(udg_units31[21],udg_locations03[253],GetUnitLoc(udg_units31[22]))
call AddSpecialEffectLocBJ(udg_locations03[253],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[253])
endif
endfunction
function Trig_guailiyiji3_Func002C takes nothing returns boolean
return((IsTerrainPathableBJ(udg_locations03[254],PATHING_TYPE_WALKABILITY)))
endfunction
function Trig_guailiyiji3_Func004A takes nothing returns nothing
set udg_locations03[254]=PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),10.00,AngleBetweenPoints(udg_locations03[253],GetUnitLoc(GetEnumUnit())))
call SetUnitPositionLoc(GetEnumUnit(),udg_locations03[254])
call AddSpecialEffectLocBJ(udg_locations03[254],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[254])
endfunction
function Trig_guailiyiji3_Actions takes nothing returns nothing
set udg_locations03[254]=PolarProjectionBJ(GetUnitLoc(udg_units31[22]),25.00,AngleBetweenPoints(udg_locations03[253],GetUnitLoc(udg_units31[22])))
if((IsTerrainPathableBJ(udg_locations03[254],PATHING_TYPE_WALKABILITY)))then
else
call SetUnitPositionLoc(udg_units31[22],udg_locations03[254])
endif
call RemoveLocation(udg_locations03[254])
call ForGroupBJ(udg_groups03[27],function Trig_guailiyiji3_Func004A)
endfunction
function Trig_guailitongtianjiao_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ANc2'))
endfunction
function Trig_guailitongtianjiao_Func017001003001001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[23])))
endfunction
function Trig_guailitongtianjiao_Func017001003001002 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Trig_guailitongtianjiao_Func017001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[23]))),(IsUnitDeadBJ(GetFilterUnit())==false))
endfunction
function Trig_guailitongtianjiao_Func017001003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_guailitongtianjiao_Func017001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[23]))),(IsUnitDeadBJ(GetFilterUnit())==false))),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))
endfunction
function Trig_guailitongtianjiao_Func017A takes nothing returns nothing
call UnitDamageTarget(udg_units31[23],GetEnumUnit(),(I2R(GetHeroStatBJ(0,udg_units31[23],true))*(5.00*I2R(GetUnitAbilityLevel(udg_units31[23],'ANc2')))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_FORCE,WEAPON_TYPE_WHOKNOWS)
call GroupAddUnit(udg_group04,GetEnumUnit())
endfunction
function Trig_guailitongtianjiao_Func020A takes nothing returns nothing
call PauseUnit(GetEnumUnit(),true)
call UnitAddAbility(GetEnumUnit(),'Amrf')
call SetUnitFlyHeight(GetEnumUnit(),300.00,1000.00)
call UnitRemoveAbility(GetEnumUnit(),'Amrf')
call SetUnitAnimation(GetEnumUnit(),"death")
endfunction
function Trig_guailitongtianjiao_Func021Func002Func007001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[23])))
endfunction
function Trig_guailitongtianjiao_Func021Func002Func007001003002 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Trig_guailitongtianjiao_Func021Func002Func007001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[23]))),(IsUnitDeadBJ(GetFilterUnit())==false))
endfunction
function Trig_guailitongtianjiao_Func021Func002Func007A takes nothing returns nothing
call UnitDamageTarget(udg_units31[23],GetEnumUnit(),50.00,true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_FORCE,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_guailitongtianjiao_Func021Func003Func001A takes nothing returns nothing
call SetUnitFlyHeight(GetEnumUnit(),0.00,2000.00)
endfunction
function Trig_guailitongtianjiao_Func021Func003C takes nothing returns boolean
return((udg_integers02[256]==3))
endfunction
function Trig_guailitongtianjiao_Func023A takes nothing returns nothing
call SetUnitAnimation(GetEnumUnit(),"death")
call PauseUnit(GetEnumUnit(),false)
endfunction
function Trig_guailitongtianjiao_Actions takes nothing returns nothing
set udg_units31[23]=GetTriggerUnit()
set udg_locations03[260]=GetSpellTargetLoc()
call TriggerSleepAction(0.05)
set udg_reals01[1260]=DistanceBetweenPoints(GetUnitLoc(GetTriggerUnit()),udg_locations03[260])
call PauseUnit(GetTriggerUnit(),true)
call SetUnitPathing(GetTriggerUnit(),false)
call EnableTrigger(udg_trigger269)
call UnitAddAbility(GetTriggerUnit(),'Amrf')
call SetUnitFlyHeight(GetTriggerUnit(),600.00,1000.00)
call UnitRemoveAbility(GetTriggerUnit(),'Amrf')
call TriggerSleepAction(0.60)
call SetUnitAnimationByIndex(GetTriggerUnit(),5)
call SetUnitFlyHeight(GetTriggerUnit(),0.00,2000.00)
call TriggerSleepAction(0.25)
call DisableTrigger(udg_trigger269)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations03[260],Condition(function Trig_guailitongtianjiao_Func017001003)),function Trig_guailitongtianjiao_Func017A)
call PauseUnit(GetTriggerUnit(),false)
call SetUnitPathing(GetTriggerUnit(),true)
call ForGroupBJ(udg_group04,function Trig_guailitongtianjiao_Func020A)
set udg_integers02[256]=1
loop
exitwhen udg_integers02[256]>10
call TriggerSleepAction(0.01)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integers02[256]
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[262]=PolarProjectionBJ(udg_locations03[260],(50.00*I2R(udg_integers02[256])),((360.00/I2R(udg_integers02[256]))*I2R(bj_forLoopAIndex)))
call AddSpecialEffectLocBJ(udg_locations03[262],"Abilities\\Spells\\Orc\\EarthQuake\\EarthQuakeTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[262],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,udg_locations03[260],Condition(function Trig_guailitongtianjiao_Func021Func002Func007001003)),function Trig_guailitongtianjiao_Func021Func002Func007A)
call RemoveLocation(udg_locations01[262])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if((udg_integers02[256]==3))then
call ForGroupBJ(udg_group04,function Trig_guailitongtianjiao_Func021Func003Func001A)
endif
set udg_integers02[256]=udg_integers02[256]+1
endloop
call TriggerSleepAction(2)
call ForGroupBJ(udg_group04,function Trig_guailitongtianjiao_Func023A)
call GroupClear(udg_group04)
call RemoveLocation(udg_locations03[260])
endfunction
function Trig_guailitongtianjiao2_Actions takes nothing returns nothing
set udg_locations03[261]=PolarProjectionBJ(GetUnitLoc(udg_units31[23]),(udg_reals01[1260]/30.00),AngleBetweenPoints(GetUnitLoc(udg_units31[23]),udg_locations03[260]))
call SetUnitPositionLocFacingLocBJ(udg_units31[23],udg_locations03[261],udg_locations03[260])
call RemoveLocation(udg_locations03[261])
endfunction
function Trig_HLD_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A05K'))
endfunction
function Trig_HLD_Actions takes nothing returns nothing
set udg_units30[161]=GetTriggerUnit()
set udg_reals01[161]=AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetSpellTargetLoc())
call TriggerSleepAction(0.10)
set udg_locations03[59]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'nnrs',GetOwningPlayer(GetTriggerUnit()),udg_locations03[59],AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetSpellTargetLoc()))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call RemoveLocation(udg_locations03[59])
set udg_units27[161]=bj_lastCreatedUnit
call EnableTrigger(udg_trigger271)
call TriggerSleepAction(0.80)
call DisableTrigger(udg_trigger271)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units27[161]),400.00,400.00)),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ExplodeUnitBJ(udg_units27[161])
endfunction
function Trig_HLD2_Func004001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units27[161])))
endfunction
function Trig_HLD2_Func004001003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_HLD2_Func004001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units27[161]))),(IsUnitAliveBJ(GetFilterUnit())))
endfunction
function Trig_HLD2_Func004Func005C takes nothing returns boolean
if(not(UnitHasBuffBJ(GetEnumUnit(),'BNdh')))then
return false
endif
return true
endfunction
function Trig_HLD2_Func004A takes nothing returns nothing
set udg_locations03[190]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[190],"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[190])
if(Trig_HLD2_Func004Func005C())then
call UnitDamageTarget(udg_units30[161],GetEnumUnit(),(7.20*I2R(GetUnitAbilityLevel(udg_units30[161],'A05K'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
call UnitDamageTarget(udg_units30[161],GetEnumUnit(),(6.00*I2R(GetUnitAbilityLevel(udg_units30[161],'A05K'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
endfunction
function Trig_HLD2_Actions takes nothing returns nothing
set udg_locations03[189]=PolarProjectionBJ(GetUnitLoc(udg_units27[161]),30.00,udg_reals01[161])
call SetUnitPositionLoc(udg_units27[161],udg_locations03[189])
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,udg_locations03[189],Condition(function Trig_HLD2_Func004001003)),function Trig_HLD2_Func004A)
call AddSpecialEffectLocBJ(udg_locations03[189],"war3mapImported\\FlameBomb.mdx")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[189])
set udg_locations03[190]=PolarProjectionBJ(GetUnitLoc(udg_units27[161]),GetRandomReal(0,300.00),GetRandomReal(0,360))
call AddSpecialEffectLocBJ(udg_locations03[190],"Objects\\Spawnmodels\\Human\\FragmentationShards\\FragBoomSpawn.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[190])
endfunction
function Trig_HYLXW_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A05I'))
endfunction
function Trig_HYLXW_Func018001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_HYLXW_Func018A takes nothing returns nothing
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(50.00*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A05I'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_HYLXW_Actions takes nothing returns nothing
set udg_units30[160]=GetTriggerUnit()
set udg_units26[160]=GetSpellTargetUnit()
set udg_reals01[160]=GetUnitFacing(GetTriggerUnit())
call TriggerSleepAction(0.10)
call UnitDamageTarget(GetTriggerUnit(),udg_units26[160],(I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A05I'))*I2R(GetHeroStatBJ(0,GetTriggerUnit(),true))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
set udg_locations03[59]=GetUnitLoc(udg_units26[160])
call CreateNUnitsAtLoc(1,'nowl',GetOwningPlayer(GetTriggerUnit()),udg_locations03[59],AngleBetweenPoints(GetUnitLoc(udg_units30[160]),GetUnitLoc(udg_units26[160])))
call RemoveLocation(udg_locations03[59])
set udg_units27[160]=bj_lastCreatedUnit
call EnableTrigger(udg_trigger273)
call TriggerSleepAction(1.20)
call DisableTrigger(udg_trigger273)
call ExplodeUnitBJ(udg_units27[160])
set udg_locations03[59]=GetUnitLoc(udg_units26[160])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'oosc',GetOwningPlayer(GetTriggerUnit()),udg_locations03[59],GetRandomReal(0,360))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,1000.00)
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[188]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[59],400.00,400.00))
call AddSpecialEffectLocBJ(udg_locations03[188],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[188])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[59],Condition(function Trig_HYLXW_Func018001003)),function Trig_HYLXW_Func018A)
call RemoveLocation(udg_locations03[59])
endfunction
function Trig_HYLXW2_Actions takes nothing returns nothing
set udg_locations03[59]=GetUnitLoc(udg_units26[160])
set udg_locations03[188]=PolarProjectionBJ(udg_locations03[59],23.00,udg_reals01[160])
call SetUnitPositionLoc(udg_units26[160],udg_locations03[188])
call SetUnitPositionLoc(udg_units27[160],udg_locations03[188])
call AddSpecialEffectLocBJ(udg_locations03[188],"war3mapImported\\FlameBomb.mdx")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[188])
endfunction
function Trig_hsbdmw_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ANht'))
endfunction
function Trig_hsbdmw_Func011001003 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'B00C'))
endfunction
function Trig_hsbdmw_Func011A takes nothing returns nothing
set udg_locations07[36]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations07[35],200.00,200.00))
call SetUnitPathing(GetEnumUnit(),false)
call PauseUnit(GetEnumUnit(),true)
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations07[36]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations07[36]))
call UnitAddAbility(GetEnumUnit(),'Amrf')
call SetUnitFlyHeight(GetEnumUnit(),120.00,0.00)
call UnitRemoveAbility(GetEnumUnit(),'Amrf')
call GroupAddUnit(udg_groups06[1],GetEnumUnit())
call RemoveLocation(udg_locations07[36])
endfunction
function Trig_hsbdmw_Func012A takes nothing returns nothing
call SetUnitAnimation(GetEnumUnit(),"spell")
endfunction
function Trig_hsbdmw_Func014A takes nothing returns nothing
call SetUnitTimeScale(GetEnumUnit(),0.00)
endfunction
function Trig_hsbdmw_Func016A takes nothing returns nothing
call SetUnitFlyHeight(GetEnumUnit(),0.00,0.00)
set udg_locations07[36]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations07[35],500.00,500.00))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations07[36]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations07[36]))
call SetUnitPathing(GetEnumUnit(),true)
call PauseUnit(GetEnumUnit(),false)
call RemoveLocation(udg_locations07[36])
endfunction
function Trig_hsbdmw_Actions takes nothing returns nothing
set udg_units30[200]=GetTriggerUnit()
call UnitAddAbility(GetTriggerUnit(),'A03K')
call TriggerSleepAction(4.00)
call UnitRemoveAbility(GetTriggerUnit(),'A03K')
set udg_locations07[35]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'ncen',GetOwningPlayer(GetTriggerUnit()),udg_locations07[35],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(5.00,'BTLF',bj_lastCreatedUnit)
call SetUnitVertexColor(bj_lastCreatedUnit,255,255,255,150)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations07[36]=PolarProjectionBJ(udg_locations07[35],450.00,(90.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLocFacingLocBJ(1,'ncim',GetOwningPlayer(GetTriggerUnit()),udg_locations07[36],udg_locations07[35])
call UnitApplyTimedLifeBJ(5.00,'BTLF',bj_lastCreatedUnit)
call GroupAddUnit(udg_groups06[0],bj_lastCreatedUnit)
call CreateNUnitsAtLocFacingLocBJ(1,'ndtr',GetOwningPlayer(GetTriggerUnit()),udg_locations07[36],udg_locations07[35])
call UnitApplyTimedLifeBJ(5.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations07[36])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(1200.00,udg_locations07[35],Condition(function Trig_hsbdmw_Func011001003)),function Trig_hsbdmw_Func011A)
call ForGroupBJ(udg_groups06[0],function Trig_hsbdmw_Func012A)
call TriggerSleepAction(0.10)
call ForGroupBJ(udg_groups06[0],function Trig_hsbdmw_Func014A)
call TriggerSleepAction(4.90)
call ForGroupBJ(udg_groups06[1],function Trig_hsbdmw_Func016A)
call RemoveLocation(udg_locations07[35])
call GroupClear(udg_groups06[0])
call GroupClear(udg_groups06[1])
endfunction
function Trig_HLY_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A05L'))
endfunction
function Trig_HLY_Actions takes nothing returns nothing
set udg_units30[200]=GetTriggerUnit()
set udg_locations03[59]=GetUnitLoc(GetTriggerUnit())
set udg_locations07[20]=GetSpellTargetLoc()
set udg_booleans05[1]=false
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations07[21]=PolarProjectionBJ(udg_locations03[59],(125.00*I2R(bj_forLoopAIndex)),AngleBetweenPoints(udg_locations03[59],udg_locations07[20]))
call CreateNUnitsAtLoc(1,'ocat',GetOwningPlayer(GetTriggerUnit()),udg_locations07[21],GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ((0.40+(0.06*I2R(bj_forLoopAIndex))),'BTLF',bj_lastCreatedUnit)
call SetUnitUserData(bj_lastCreatedUnit,bj_forLoopAIndex)
call RemoveLocation(udg_locations07[21])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations07[20])
call RemoveLocation(udg_locations03[59])
call SetUnitAnimation(GetTriggerUnit(),"spell slam")
endfunction
function Trig_HLY2_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='ocat'))
endfunction
function Trig_HLY2_Func002Func007001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_HLY2_Func002Func007A takes nothing returns nothing
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(75.00*I2R(GetUnitAbilityLevel(udg_units30[200],'A05L'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_HLY2_Func003Func001C takes nothing returns boolean
return((udg_booleans05[2]))and((DistanceBetweenPoints(udg_locations03[59],udg_locations21[bj_forLoopAIndex])<=180.00))
endfunction
function Trig_HLY2_Actions takes nothing returns nothing
set udg_locations03[59]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=(GetUnitUserData(GetTriggerUnit())*2)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations07[21]=PolarProjectionBJ(udg_locations03[59],GetRandomReal(0,(60.00*I2R(GetUnitUserData(GetTriggerUnit())))),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'nmys',GetOwningPlayer(GetTriggerUnit()),udg_locations07[21],GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call AddSpecialEffectLocBJ(udg_locations07[21],"Abilities\\Spells\\Other\\Volcano\\VolcanoMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,udg_locations07[21],Condition(function Trig_HLY2_Func002Func007001003)),function Trig_HLY2_Func002Func007A)
call RemoveLocation(udg_locations07[21])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((((udg_booleans05[2]))and((DistanceBetweenPoints(udg_locations03[59],udg_locations21[bj_forLoopAIndex])<=180.00))))then
set udg_booleans05[1]=true
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[59])
endfunction
function Trig_xian1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A00F'))
endfunction
function Trig_xian1_Actions takes nothing returns nothing
set udg_locations07[12]=GetUnitLoc(GetTriggerUnit())
set udg_locations07[13]=GetSpellTargetLoc()
call CreateNUnitsAtLocFacingLocBJ(1,'nbdo',GetOwningPlayer(GetTriggerUnit()),udg_locations07[12],udg_locations07[13])
call SetUnitUserData(bj_lastCreatedUnit,1)
call UnitApplyTimedLifeBJ(0.04,'BTLF',bj_lastCreatedUnit)
call SetUnitScalePercent(bj_lastCreatedUnit,(50.00+(15.00*I2R(GetUnitUserData(bj_lastCreatedUnit)))),(50.00+(15.00*I2R(GetUnitUserData(bj_lastCreatedUnit)))),(50.00+(15.00*I2R(GetUnitUserData(bj_lastCreatedUnit)))))
call SetUnitTimeScale(bj_lastCreatedUnit,2.00)
call RemoveLocation(udg_locations07[12])
call RemoveLocation(udg_locations07[13])
endfunction
function Trig_xian2_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='nbdo'))
endfunction
function Trig_xian2_Func006001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_xian2_Func006Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)))then
return false
endif
return true
endfunction
function Trig_xian2_Func006A takes nothing returns nothing
if(Trig_xian2_Func006Func001C())then
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),30.00,true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),60.00,true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
endfunction
function Trig_xian2_Func009001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_xian2_Func009Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)))then
return false
endif
return true
endfunction
function Trig_xian2_Func009A takes nothing returns nothing
if(Trig_xian2_Func009Func001C())then
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),30.00,true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),60.00,true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
endfunction
function Trig_xian2_Func010C takes nothing returns boolean
return((GetUnitUserData(GetTriggerUnit())<=25))
endfunction
function Trig_xian2_Actions takes nothing returns nothing
set udg_locations07[12]=GetUnitLoc(GetTriggerUnit())
set udg_locations07[13]=PolarProjectionBJ(udg_locations07[12],GetRandomReal(0,(100.00+(30.00*I2R(GetUnitUserData(GetTriggerUnit()))))),GetRandomReal(0,360))
call AddSpecialEffectLocBJ(udg_locations07[13],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching((100.00+(30.00*I2R(GetUnitUserData(GetTriggerUnit())))),udg_locations07[13],Condition(function Trig_xian2_Func006001003)),function Trig_xian2_Func006A)
call RemoveLocation(udg_locations07[13])
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching((100.00+(30.00*I2R(GetUnitUserData(GetTriggerUnit())))),udg_locations07[12],Condition(function Trig_xian2_Func009001003)),function Trig_xian2_Func009A)
if((GetUnitUserData(GetTriggerUnit())<=25))then
set udg_locations07[13]=PolarProjectionBJ(udg_locations07[12],50.00,GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'nbdo',GetOwningPlayer(GetTriggerUnit()),udg_locations07[13],GetUnitFacing(GetTriggerUnit()))
call SetUnitUserData(bj_lastCreatedUnit,(GetUnitUserData(GetTriggerUnit())+1))
call UnitApplyTimedLifeBJ(0.04,'BTLF',bj_lastCreatedUnit)
call SetUnitScalePercent(bj_lastCreatedUnit,(50.00+(18.00*I2R(GetUnitUserData(bj_lastCreatedUnit)))),(50.00+(18.00*I2R(GetUnitUserData(bj_lastCreatedUnit)))),(50.00+(18.00*I2R(GetUnitUserData(bj_lastCreatedUnit)))))
call SetUnitTimeScale(bj_lastCreatedUnit,2.00)
call RemoveLocation(udg_locations07[13])
endif
call RemoveLocation(udg_locations07[12])
endfunction
function Trig_maozhenqianben_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AUcs'))
endfunction
function Trig_maozhenqianben_Func010A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_maozhenqianben_Actions takes nothing returns nothing
set udg_units30[200]=GetTriggerUnit()
set udg_locations07[6]=GetUnitLoc(GetTriggerUnit())
set udg_locations07[8]=GetSpellTargetLoc()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=50
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations07[7]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations07[6],300.00,300.00))
call CreateNUnitsAtLoc(1,'nbds',GetOwningPlayer(GetTriggerUnit()),udg_locations07[7],AngleBetweenPoints(udg_locations07[6],udg_locations07[8]))
call GroupAddUnit(udg_groups05[135],bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(50.00,200.00),0.00)
call RemoveLocation(udg_locations07[7])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations07[6])
call RemoveLocation(udg_locations07[8])
call EnableTrigger(udg_trigger280)
call TriggerSleepAction(1.50)
call DisableTrigger(udg_trigger280)
call ForGroupBJ(udg_groups05[135],function Trig_maozhenqianben_Func010A)
call GroupClear(udg_groups05[135])
endfunction
function Trig_maozhenqianben2_Func001Func003002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_maozhenqianben2_Func001Func003002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetEnumUnit())))
endfunction
function Trig_maozhenqianben2_Func001Func003002003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetEnumUnit()))))
endfunction
function Trig_maozhenqianben2_Func001Func004Func003A takes nothing returns nothing
call UnitDamageTarget(udg_units30[200],GetEnumUnit(),150.00,true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
set udg_locations07[11]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations07[11],"Abilities\\Spells\\Orc\\FeralSpirit\\feralspirittarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations07[11])
endfunction
function Trig_maozhenqianben2_Func001Func004C takes nothing returns boolean
return((CountUnitsInGroup(udg_groups05[136])==0))
endfunction
function Trig_maozhenqianben2_Func001A takes nothing returns nothing
set udg_locations07[9]=GetUnitLoc(GetEnumUnit())
set udg_locations07[10]=PolarProjectionBJ(udg_locations07[9],25.00,GetUnitFacing(GetEnumUnit()))
set udg_groups05[136]=GetUnitsInRangeOfLocMatching(40.00,udg_locations07[10],Condition(function Trig_maozhenqianben2_Func001Func003002003))
if((CountUnitsInGroup(udg_groups05[136])==0))then
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations07[10]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations07[10]))
else
call GroupRemoveUnit(udg_groups05[135],GetEnumUnit())
call KillUnit(GetEnumUnit())
call ForGroupBJ(udg_groups05[136],function Trig_maozhenqianben2_Func001Func004Func003A)
endif
call GroupClear(udg_groups05[136])
call RemoveLocation(udg_locations07[9])
call RemoveLocation(udg_locations07[10])
endfunction
function Trig_maozhenqianben2_Actions takes nothing returns nothing
call ForGroupBJ(udg_groups05[135],function Trig_maozhenqianben2_Func001A)
endfunction
function Trig_SXLXW_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ACrg'))
endfunction
function Trig_SXLXW_Func041001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_SXLXW_Func041001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_SXLXW_Func041001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_SXLXW_Func041Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)))then
return false
endif
return true
endfunction
function Trig_SXLXW_Func041A takes nothing returns nothing
if(Trig_SXLXW_Func041Func001C())then
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(0,GetTriggerUnit(),true))*3.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(0,GetTriggerUnit(),true))*6.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_SXLXW_Func043001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_SXLXW_Func043001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_SXLXW_Func043001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_SXLXW_Func043Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)))then
return false
endif
return true
endfunction
function Trig_SXLXW_Func043A takes nothing returns nothing
if(Trig_SXLXW_Func043Func001C())then
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),400.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),800.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_SXLXW_Actions takes nothing returns nothing
set udg_units30[200]=GetTriggerUnit()
set udg_locations07[2]=GetSpellTargetLoc()
call TriggerSleepAction(0.10)
set udg_locations07[1]=GetUnitLoc(GetTriggerUnit())
set udg_reals02[0]=(DistanceBetweenPoints(udg_locations07[1],udg_locations07[2])/30.00)
call PauseUnit(udg_units30[200],true)
call ShowUnit(udg_units30[200],false)
call CreateNUnitsAtLoc(1,'uubs',GetOwningPlayer(GetTriggerUnit()),udg_locations07[1],AngleBetweenPoints(udg_locations07[1],udg_locations07[2]))
call SetUnitAnimation(bj_lastCreatedUnit,"spell death")
call SetUnitFlyHeight(bj_lastCreatedUnit,600.00,1200.00)
set udg_units26[200]=bj_lastCreatedUnit
set udg_locations07[5]=PolarProjectionBJ(udg_locations07[1],40.00,GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'udes',GetOwningPlayer(GetTriggerUnit()),udg_locations07[5],AngleBetweenPoints(udg_locations07[1],udg_locations07[2]))
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call SetUnitFlyHeight(bj_lastCreatedUnit,300.00,600.00)
set udg_units26[2000]=bj_lastCreatedUnit
call EnableTrigger(udg_trigger282)
call TriggerSleepAction(0.50)
call DisableTrigger(udg_trigger282)
call EnableTrigger(udg_trigger283)
call SetUnitFlyHeight(udg_units26[200],0.00,1000.00)
call SetUnitFlyHeight(udg_units26[2000],0.00,1200.00)
call SetUnitTimeScale(udg_units26[200],0.10)
call SetUnitAnimation(udg_units26[200],"spell dissipate")
set udg_reals02[1]=(udg_reals02[1]+400.00)
call TriggerSleepAction(0.50)
call DisableTrigger(udg_trigger283)
set udg_reals02[1]=0.00
set udg_locations07[3]=GetUnitLoc(udg_units26[200])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations07[4]=PolarProjectionBJ(udg_locations07[3],200.00,(36.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'nbdw',GetOwningPlayer(GetTriggerUnit()),udg_locations07[4],(36.00*I2R(bj_forLoopAIndex)))
call SetUnitUserData(bj_lastCreatedUnit,15)
call UnitApplyTimedLifeBJ(0.04,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations07[4])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations07[3])
call TriggerSleepAction(0.20)
set udg_locations07[3]=GetUnitLoc(udg_units26[200])
call SetUnitPositionLocFacingBJ(udg_units30[200],udg_locations07[3],GetUnitFacing(udg_units26[200]))
call RemoveUnit(udg_units26[200])
call RemoveUnit(udg_units26[2000])
call PauseUnit(udg_units30[200],false)
call ShowUnit(udg_units30[200],true)
call SelectUnitForPlayerSingle(udg_units30[200],GetOwningPlayer(udg_units30[200]))
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations07[2],Condition(function Trig_SXLXW_Func041001003)),function Trig_SXLXW_Func041A)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,udg_locations07[2],Condition(function Trig_SXLXW_Func043001003)),function Trig_SXLXW_Func043A)
call RemoveLocation(udg_locations07[1])
call RemoveLocation(udg_locations07[2])
call RemoveLocation(udg_locations07[3])
call RemoveLocation(udg_locations07[4])
call RemoveLocation(udg_locations07[5])
endfunction
function Trig_SXLXW2_Actions takes nothing returns nothing
set udg_locations07[3]=GetUnitLoc(udg_units26[200])
set udg_locations07[4]=PolarProjectionBJ(udg_locations07[3],udg_reals02[0],GetUnitFacing(udg_units26[200]))
call SetUnitPositionLocFacingBJ(udg_units26[200],udg_locations07[4],GetUnitFacing(udg_units26[200]))
call RemoveLocation(udg_locations07[3])
call RemoveLocation(udg_locations07[4])
set udg_locations07[3]=GetUnitLoc(udg_units26[2000])
set udg_locations07[4]=PolarProjectionBJ(udg_locations07[3],(udg_reals02[0]*1.20),GetUnitFacing(udg_units26[2000]))
call SetUnitPositionLocFacingBJ(udg_units26[2000],udg_locations07[4],GetUnitFacing(udg_units26[2000]))
call RemoveLocation(udg_locations07[3])
call RemoveLocation(udg_locations07[4])
set udg_reals02[1]=(udg_reals02[1]+80.00)
call SetUnitScalePercent(udg_units26[2000],(100.00+udg_reals02[1]),(100.00+udg_reals02[1]),(100.00+udg_reals02[1]))
endfunction
function Trig_SXLXW3_Actions takes nothing returns nothing
set udg_locations07[3]=GetUnitLoc(udg_units26[200])
set udg_locations07[4]=PolarProjectionBJ(udg_locations07[3],udg_reals02[0],GetUnitFacing(udg_units26[200]))
call SetUnitPositionLocFacingBJ(udg_units26[200],udg_locations07[4],GetUnitFacing(udg_units26[200]))
call RemoveLocation(udg_locations07[3])
call RemoveLocation(udg_locations07[4])
set udg_locations07[3]=GetUnitLoc(udg_units26[2000])
set udg_locations07[4]=PolarProjectionBJ(udg_locations07[3],(udg_reals02[0]*1.00),GetUnitFacing(udg_units26[2000]))
call SetUnitPositionLocFacingBJ(udg_units26[2000],udg_locations07[4],GetUnitFacing(udg_units26[2000]))
call RemoveLocation(udg_locations07[3])
call RemoveLocation(udg_locations07[4])
set udg_reals02[1]=(udg_reals02[1]-60.00)
call SetUnitScalePercent(udg_units26[2000],(100.00+udg_reals02[1]),(100.00+udg_reals02[1]),(100.00+udg_reals02[1]))
endfunction
function Trig_luoxuanwanbaozhaxiaoguo_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='nbdw'))
endfunction
function Trig_luoxuanwanbaozhaxiaoguo_Func002C takes nothing returns boolean
return((GetUnitUserData(GetTriggerUnit())>=8))
endfunction
function Trig_luoxuanwanbaozhaxiaoguo_Actions takes nothing returns nothing
set udg_locations06[241]=GetUnitLoc(GetTriggerUnit())
if((GetUnitUserData(GetTriggerUnit())>=8))then
set udg_locations06[242]=PolarProjectionBJ(udg_locations06[241],50.00,GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'nbdw',GetOwningPlayer(GetTriggerUnit()),udg_locations06[242],GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(0.06,'BTLF',bj_lastCreatedUnit)
call SetUnitUserData(bj_lastCreatedUnit,(GetUnitUserData(GetTriggerUnit())-1))
call RemoveLocation(udg_locations06[237])
endif
call RemoveLocation(udg_locations06[241])
endfunction
function Trig_xianrenbi_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ANta'))
endfunction
function Trig_xianrenbi_Actions takes nothing returns nothing
set udg_locations07[0]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'nbda',GetOwningPlayer(GetTriggerUnit()),udg_locations07[0],GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLife(bj_lastCreatedUnit,'BHwe',15.00)
set udg_units27[139]=bj_lastCreatedUnit
set udg_integers02[331]=1
loop
exitwhen udg_integers02[331]>200
call IssuePointOrderByIdLoc(udg_units27[139],852592,udg_locations07[0])
call TriggerSleepAction(0.10)
set udg_integers02[331]=udg_integers02[331]+1
endloop
endfunction
function Trig_zhendicang_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AHds'))
endfunction
function Trig_zhendicang_Actions takes nothing returns nothing
set udg_units31[172]=GetTriggerUnit()
call TriggerSleepAction(0.10)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitInvulnerable(GetTriggerUnit(),true)
set udg_locations06[35]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'hpea',GetOwningPlayer(GetTriggerUnit()),udg_locations06[35],(36.00*I2R(bj_forLoopAIndex)))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,65.00)
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger287)
call TriggerSleepAction(2.00)
call DisableTrigger(udg_trigger287)
call PauseUnit(GetTriggerUnit(),false)
call SetUnitInvulnerable(GetTriggerUnit(),false)
call RemoveLocation(udg_locations03[35])
endfunction
function Trig_zhendicang2_Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_zhendicang2_Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[172])))
endfunction
function Trig_zhendicang2_Func002001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[172]))))
endfunction
function Trig_zhendicang2_Func002A takes nothing returns nothing
call UnitDamageTarget(udg_units31[172],GetEnumUnit(),(5.00*I2R(GetUnitAbilityLevel(udg_units31[172],'AHds'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
set udg_locations03[185]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[185],"Abilities\\Weapons\\Blood\\BloodImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_locations06[33]=PolarProjectionBJ(udg_locations03[185],12.00,AngleBetweenPoints(udg_locations06[35],udg_locations03[185]))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations06[33]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations06[33]))
call RemoveLocation(udg_locations03[185])
call RemoveLocation(udg_locations06[33])
endfunction
function Trig_zhendicang2_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,udg_locations06[35],Condition(function Trig_zhendicang2_Func002001003)),function Trig_zhendicang2_Func002A)
endfunction
function Trig_xianren1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A03G'))
endfunction
function Trig_xianren1_Func002C takes nothing returns boolean
return((udg_booleans01[616]==false))
endfunction
function Trig_xianren1_Actions takes nothing returns nothing
set udg_units31[636]=GetTriggerUnit()
if((udg_booleans01[616]==false))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000___:___,_________!__._____!|r")
set udg_locations07[70]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations07[71]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations07[70],250.00,250.00))
call CreateNUnitsAtLoc(1,'zhyd',GetOwningPlayer(GetTriggerUnit()),udg_locations07[71],GetRandomReal(0,360))
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(50.00,200.00),100.00)
set udg_locations07[72]=PolarProjectionBJ(udg_locations07[71],400.00,GetUnitFacing(bj_lastCreatedUnit))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations07[72])
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations07[71])
call RemoveLocation(udg_locations07[72])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations07[70])
call TriggerRegisterUnitLifeEvent(udg_trigger289,udg_units31[636],LESS_THAN_OR_EQUAL,0.00)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A05L',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A093',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A05I',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'AHds',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A05K',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A03G',false)
set udg_booleans01[616]=true
else
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A05L',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A093',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A05I',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'AHds',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A05K',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A03G',true)
set udg_booleans01[616]=false
endif
endfunction
function Trig_xianren2_Conditions takes nothing returns boolean
return((GetTriggerUnit()==udg_units31[636]))
endfunction
function Trig_xianren2_Actions takes nothing returns nothing
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A05L',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A093',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A05I',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'AHds',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A05K',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A03G',true)
set udg_booleans01[616]=false
endfunction
function Trig_Zilaiye_Q1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A093'))
endfunction
function Trig_Zilaiye_Q1_Func009A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_Zilaiye_Q1_Actions takes nothing returns nothing
set udg_locations21[0]=GetSpellTargetLoc()
set udg_unit27=GetTriggerUnit()
set udg_booleans05[1]=false
call TriggerSleepAction(0.10)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations21[bj_forLoopAIndex]=PolarProjectionBJ(udg_locations21[0],100.00,(I2R(bj_forLoopAIndex)*60.00))
set udg_units48[bj_forLoopAIndex]=CreateUnitAtLoc(GetOwningPlayer(udg_unit27),'ncrb',udg_locations21[bj_forLoopAIndex],AngleBetweenPoints(udg_locations21[bj_forLoopAIndex],udg_locations21[0]))
set udg_units49[bj_forLoopAIndex]=CreateUnitAtLoc(GetOwningPlayer(udg_unit27),'ncrb',udg_locations21[bj_forLoopAIndex],AngleBetweenPoints(udg_locations21[0],udg_locations21[bj_forLoopAIndex]))
call GroupAddUnit(udg_group12,udg_units48[bj_forLoopAIndex])
call GroupAddUnit(udg_group12,udg_units49[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger291)
call TriggerSleepAction(5.00)
call DisableTrigger(udg_trigger291)
call ForGroupBJ(udg_group12,function Trig_Zilaiye_Q1_Func009A)
call GroupClear(udg_group12)
call RemoveLocation(udg_locations21[0])
endfunction
function Trig_Zilaiye_Q2_Func002001003001001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Zilaiye_Q2_Func002001003001002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_Zilaiye_Q2_Func002001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitAliveBJ(GetFilterUnit())))
endfunction
function Trig_Zilaiye_Q2_Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit27)))
endfunction
function Trig_Zilaiye_Q2_Func002001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitAliveBJ(GetFilterUnit())))),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit27))))
endfunction
function Trig_Zilaiye_Q2_Func002A takes nothing returns nothing
set udg_locations21[7]=GetUnitLoc(GetEnumUnit())
set udg_locations21[8]=PolarProjectionBJ(udg_locations21[7],10.00,AngleBetweenPoints(udg_locations21[7],udg_locations21[0]))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations21[8]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations21[8]))
call UnitDamageTarget(udg_unit27,GetEnumUnit(),(I2R(GetUnitAbilityLevel(udg_unit27,'A093'))*1.30),false,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations21[7])
call RemoveLocation(udg_locations21[8])
endfunction
function Trig_Zilaiye_Q2_Func003Func004Func006001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit27)))
endfunction
function Trig_Zilaiye_Q2_Func003Func004Func006A takes nothing returns nothing
call UnitDamageTarget(udg_unit27,GetEnumUnit(),(100.00*I2R(GetUnitAbilityLevel(udg_unit27,'A05L'))),false,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_FIRE,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_Zilaiye_Q2_Func003C takes nothing returns boolean
return((udg_booleans05[1]))
endfunction
function Trig_Zilaiye_Q2_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations21[0],Condition(function Trig_Zilaiye_Q2_Func002001003)),function Trig_Zilaiye_Q2_Func002A)
if((udg_booleans05[1]))then
call DisableTrigger(GetTriggeringTrigger())
set udg_integer18=1
loop
exitwhen udg_integer18>6
call AddSpecialEffectLocBJ(udg_locations21[udg_integer18],"LW10.mdx")
call DestroyEffect(bj_lastCreatedEffect)
call KillUnit(udg_units48[udg_integer18])
call KillUnit(udg_units49[udg_integer18])
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations21[udg_integer18],Condition(function Trig_Zilaiye_Q2_Func003Func004Func006001003)),function Trig_Zilaiye_Q2_Func003Func004Func006A)
call RemoveLocation(udg_locations21[udg_integer18])
call TriggerSleepAction(0.10)
set udg_integer18=udg_integer18+1
endloop
else
set udg_booleans05[2]=true
endif
endfunction
function Trig_Zilaiye_Q3_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='ncrb'))
endfunction
function Trig_Zilaiye_Q3_Actions takes nothing returns nothing
call TriggerSleepAction(0.10)
call RemoveUnit(GetTriggerUnit())
endfunction
function Trig_yabianshenhougongji_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetAttacker())=='Hpal'))and((GetRandomInt(1,4)<=1))and((udg_booleans02[0]==false))and((IsUnitEnemy(GetTriggerUnit(),GetOwningPlayer(GetAttacker()))))
endfunction
function Trig_yabianshenhougongji_Func005Func010001003001001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_yabianshenhougongji_Func005Func010001003001002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_yabianshenhougongji_Func005Func010001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitAliveBJ(GetFilterUnit())))
endfunction
function Trig_yabianshenhougongji_Func005Func010001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[232])))
endfunction
function Trig_yabianshenhougongji_Func005Func010001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitAliveBJ(GetFilterUnit())))),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[232]))))
endfunction
function Trig_yabianshenhougongji_Func005Func010A takes nothing returns nothing
set udg_locations06[53]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations06[53],"Abilities\\Weapons\\Blood\\BloodImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations06[53])
call UnitDamageTarget(udg_units31[232],GetEnumUnit(),(5.00+(I2R(GetUnitAbilityLevelSwapped('A00U',udg_units31[232]))*(I2R(GetHeroStatBJ(1,udg_units31[232],true))/18.00))),true,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_yabianshenhougongji_Func015Func010001003001001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_yabianshenhougongji_Func015Func010001003001002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_yabianshenhougongji_Func015Func010001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitAliveBJ(GetFilterUnit())))
endfunction
function Trig_yabianshenhougongji_Func015Func010001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[232])))
endfunction
function Trig_yabianshenhougongji_Func015Func010001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitAliveBJ(GetFilterUnit())))),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[232]))))
endfunction
function Trig_yabianshenhougongji_Func015Func010A takes nothing returns nothing
set udg_locations06[53]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations06[53],"Abilities\\Weapons\\Blood\\BloodImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations06[53])
call UnitDamageTarget(udg_units31[232],GetEnumUnit(),(5.00+(I2R(GetUnitAbilityLevelSwapped('A00U',udg_units31[232]))*(I2R(GetHeroStatBJ(1,udg_units31[232],true))/18.00))),true,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_yabianshenhougongji_Actions takes nothing returns nothing
set udg_booleans02[0]=true
set udg_locations06[50]=GetUnitLoc(GetAttacker())
set udg_locations06[51]=GetUnitLoc(GetTriggerUnit())
set udg_units31[232]=GetAttacker()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations06[52]=PolarProjectionBJ(udg_locations06[51],100.00,(AngleBetweenPoints(udg_locations06[50],udg_locations06[51])+(36.00*I2R(bj_forLoopAIndex))))
call CreateNUnitsAtLocFacingLocBJ(1,'ndsa',GetOwningPlayer(GetAttacker()),udg_locations06[52],udg_locations06[51])
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100,100,100,40.00)
call SetUnitTimeScale(bj_lastCreatedUnit,5.00)
call SetUnitAnimationByIndex(bj_lastCreatedUnit,GetRandomInt(14,16))
call UnitApplyTimedLifeBJ(0.20,'BTLF',bj_lastCreatedUnit)
call AddSpecialEffectLocBJ(udg_locations06[52],"Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,udg_locations06[52],Condition(function Trig_yabianshenhougongji_Func005Func010001003)),function Trig_yabianshenhougongji_Func005Func010A)
call RemoveLocation(udg_locations06[52])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_locations06[52]=PolarProjectionBJ(udg_locations06[51],200.00,AngleBetweenPoints(udg_locations06[50],udg_locations06[51]))
call SetUnitX(udg_units31[232],GetLocationX(udg_locations06[52]))
call SetUnitY(udg_units31[232],GetLocationY(udg_locations06[52]))
call AddSpecialEffectLocBJ(udg_locations06[52],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations06[52])
call RemoveLocation(udg_locations06[50])
call TriggerSleepAction(0.10)
set udg_locations06[50]=GetUnitLoc(udg_units31[232])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations06[52]=PolarProjectionBJ(udg_locations06[51],100.00,(AngleBetweenPoints(udg_locations06[50],udg_locations06[51])+(36.00*I2R(bj_forLoopAIndex))))
call CreateNUnitsAtLocFacingLocBJ(1,'ndsa',GetOwningPlayer(GetAttacker()),udg_locations06[52],udg_locations06[51])
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100,100,100,40.00)
call SetUnitTimeScale(bj_lastCreatedUnit,5.00)
call SetUnitAnimationByIndex(bj_lastCreatedUnit,GetRandomInt(14,16))
call UnitApplyTimedLifeBJ(0.20,'BTLF',bj_lastCreatedUnit)
call AddSpecialEffectLocBJ(udg_locations06[52],"Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,udg_locations06[52],Condition(function Trig_yabianshenhougongji_Func015Func010001003)),function Trig_yabianshenhougongji_Func015Func010A)
call RemoveLocation(udg_locations06[52])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_locations06[52]=PolarProjectionBJ(udg_locations06[51],200.00,AngleBetweenPoints(udg_locations06[50],udg_locations06[51]))
call SetUnitX(udg_units31[232],GetLocationX(udg_locations06[52]))
call SetUnitY(udg_units31[232],GetLocationY(udg_locations06[52]))
call AddSpecialEffectLocBJ(udg_locations06[52],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations06[52])
call RemoveLocation(udg_locations06[50])
set udg_booleans02[0]=false
endfunction
function Trig_ldql_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A03D'))
endfunction
function Trig_ldql_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000__:__,____,________! |r")
set udg_units19[1]=GetTriggerUnit()
set udg_units18[1]=GetSpellTargetUnit()
set udg_effects02[997]=AddSpecialEffectTargetUnitBJ("hand,left",GetTriggerUnit(),"Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl")
call TriggerSleepAction(0.10)
set udg_locations03[601]=GetUnitLoc(GetTriggerUnit())
set udg_units15[601]=CreateUnitAtLoc(GetOwningPlayer(GetTriggerUnit()),'nwat',udg_locations03[601],GetUnitFacing(GetTriggerUnit()))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[600]=PolarProjectionBJ(udg_locations03[601],GetRandomReal(200.00,350.00),(72.00*I2R(bj_forLoopAIndex)))
set udg_lightnings03[bj_forLoopAIndex]=AddLightningEx("CLPB",false,GetLocationX(udg_locations03[600]),GetLocationY(udg_locations03[600]),GetRandomReal(1200.00,1600.00),GetLocationX(udg_locations03[601]),GetLocationY(udg_locations03[601]),0)
call RemoveLocation(udg_locations03[600])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[601])
call EnableTrigger(udg_trigger295)
call DestroyEffect(udg_effects02[997])
endfunction
function Trig_ldql2_Func001Func010001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_ldql2_Func001Func010001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units19[1])))
endfunction
function Trig_ldql2_Func001Func010001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units19[1]))))
endfunction
function Trig_ldql2_Func001Func010Func001C takes nothing returns boolean
if(not(IsUnitInGroup(GetEnumUnit(),udg_groups02[602])==false))then
return false
endif
return true
endfunction
function Trig_ldql2_Func001Func010A takes nothing returns nothing
if(Trig_ldql2_Func001Func010Func001C())then
set udg_locations03[159]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[159],"Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call UnitDamageTargetBJ(udg_units19[1],GetEnumUnit(),(I2R(GetHeroStatBJ(1,udg_units19[1],true))*8.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_reals01[7050]=GetRandomReal(280.00,400.00)
call CreateNUnitsAtLoc(1,'nhew',GetOwningPlayer(udg_units19[1]),udg_locations03[159],GetRandomReal(0,360))
call SetUnitScalePercent(bj_lastCreatedUnit,udg_reals01[7050],udg_reals01[7050],udg_reals01[7050])
call SetUnitTimeScalePercent(bj_lastCreatedUnit,50.00)
call SetUnitFlyHeight(bj_lastCreatedUnit,-300.00,0.00)
call UnitApplyTimedLifeBJ(0.15,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[159])
call GroupAddUnit(udg_groups02[602],GetEnumUnit())
endif
endfunction
function Trig_ldql2_Func001C takes nothing returns boolean
return((udg_booleans01[601]==false))
endfunction
function Trig_ldql2_Func002C takes nothing returns boolean
return((DistanceBetweenPoints(udg_locations03[601],udg_locations03[602])<50.00))and((udg_booleans01[601]==false))
endfunction
function Trig_ldql2_Func005Func001Func011Func007001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_ldql2_Func005Func001Func011Func007001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units19[1])))
endfunction
function Trig_ldql2_Func005Func001Func011Func007001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units19[1]))))
endfunction
function Trig_ldql2_Func005Func001Func011Func007A takes nothing returns nothing
set udg_locations03[159]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[159],"Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call UnitDamageTargetBJ(udg_units19[1],GetEnumUnit(),50.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call RemoveLocation(udg_locations03[159])
endfunction
function Trig_ldql2_Func005Func001C takes nothing returns boolean
return((udg_integers02[301]==30))
endfunction
function Trig_ldql2_Func005C takes nothing returns boolean
return((udg_booleans01[602]))
endfunction
function Trig_ldql2_Actions takes nothing returns nothing
if((udg_booleans01[601]==false))then
set udg_locations03[601]=GetUnitLoc(udg_units15[601])
set udg_locations03[602]=GetUnitLoc(udg_units18[1])
set udg_locations03[600]=PolarProjectionBJ(udg_locations03[601],35.00,AngleBetweenPoints(udg_locations03[601],udg_locations03[602]))
call SetUnitX(udg_units15[601],GetLocationX(udg_locations03[600]))
call SetUnitY(udg_units15[601],GetLocationY(udg_locations03[600]))
call RemoveLocation(udg_locations03[600])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[600]=PolarProjectionBJ(udg_locations03[601],GetRandomReal(200.00,350.00),(72.00*I2R(bj_forLoopAIndex)))
call MoveLightningEx(udg_lightnings03[bj_forLoopAIndex],false,GetLocationX(udg_locations03[600]),GetLocationY(udg_locations03[600]),GetRandomReal(1200.00,1600.00),GetLocationX(udg_locations03[601]),GetLocationY(udg_locations03[601]),0)
call AddSpecialEffectLocBJ(udg_locations03[601],"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[601],"abilities\\weapons\\catapult\\catapultmissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[600])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[601],Condition(function Trig_ldql2_Func001Func010001003)),function Trig_ldql2_Func001Func010A)
endif
if((((DistanceBetweenPoints(udg_locations03[601],udg_locations03[602])<50.00))and((udg_booleans01[601]==false))))then
set udg_booleans01[601]=true
set udg_booleans01[602]=true
endif
call RemoveLocation(udg_locations03[601])
call RemoveLocation(udg_locations03[602])
if((udg_booleans01[602]))then
if((udg_integers02[301]==30))then
call DisableTrigger(GetTriggeringTrigger())
set udg_booleans01[601]=false
set udg_booleans01[602]=false
call GroupClear(udg_groups02[602])
set udg_integers02[301]=0
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyLightning(udg_lightnings03[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveUnit(udg_units15[601])
call RemoveLocation(udg_locations03[601])
else
set udg_integers02[301]=(udg_integers02[301]+1)
set udg_locations03[601]=GetUnitLoc(udg_units15[601])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[600]=PolarProjectionBJ(udg_locations03[601],GetRandomReal(200.00,350.00),(72.00*I2R(bj_forLoopAIndex)))
set udg_locations03[602]=PolarProjectionBJ(udg_locations03[601],((I2R(udg_integers02[301])*20.00)+GetRandomReal(-10.00,10.00)),((72.00*I2R(bj_forLoopAIndex))+GetRandomReal(-10.00,10.00)))
call MoveLightningEx(udg_lightnings03[bj_forLoopAIndex],false,GetLocationX(udg_locations03[600]),GetLocationY(udg_locations03[600]),GetRandomReal(1200.00,1600.00),GetLocationX(udg_locations03[602]),GetLocationY(udg_locations03[602]),0)
call AddSpecialEffectLocBJ(udg_locations03[602],"abilities\\weapons\\catapult\\catapultmissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,udg_locations03[602],Condition(function Trig_ldql2_Func005Func001Func011Func007001003)),function Trig_ldql2_Func005Func001Func011Func007A)
call RemoveLocation(udg_locations03[600])
call RemoveLocation(udg_locations03[602])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[601])
endif
endif
endfunction
function Trig_qjxm_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A007'))
endfunction
function Trig_qjxm_Actions takes nothing returns nothing
set udg_unit04=GetSpellTargetUnit()
set udg_unit11=GetTriggerUnit()
call SetUnitPathing(udg_unit11,false)
call PauseUnit(udg_unit11,true)
call PauseUnit(udg_unit04,true)
call SetUnitTimeScale(GetTriggerUnit(),10.00)
call SetUnitAnimation(GetTriggerUnit(),"walk")
call EnableTrigger(udg_trigger297)
endfunction
function Trig_ZZyidong_Func001Func021A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_ZZyidong_Func001Func022A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_ZZyidong_Func001C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_unit11),GetUnitLoc(udg_unit04))<=160.00))
endfunction
function Trig_ZZyidong_Actions takes nothing returns nothing
if((DistanceBetweenPoints(GetUnitLoc(udg_unit11),GetUnitLoc(udg_unit04))<=160.00))then
call DisableTrigger(GetTriggeringTrigger())
call UnitAddAbility(udg_unit11,'A02Q')
set udg_integers01[1005]=4
call SetUnitTimeScalePercent(udg_unit11,0.00)
set udg_locations03[138]=GetUnitLoc(udg_unit04)
set udg_locations06[20]=GetUnitLoc(udg_unit11)
set udg_reals01[757]=AngleBetweenPoints(udg_locations06[20],udg_locations03[138])
call RemoveLocation(udg_locations06[20])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations06[20]=PolarProjectionBJ(udg_locations03[138],GetRandomReal(60.00,240.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'nskg',GetOwningPlayer(udg_unit11),udg_locations06[20],GetUnitFacing(udg_unit11))
call SetUnitTimeScale(bj_lastCreatedUnit,10.00)
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(40.00,350.00),0.00)
call GroupAddUnit(udg_groups04[30],bj_lastCreatedUnit)
call RemoveLocation(udg_locations06[20])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations06[20]=PolarProjectionBJ(udg_locations03[138],GetRandomReal(60.00,240.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'nskg',GetOwningPlayer(udg_unit11),udg_locations06[20],GetUnitFacing(udg_unit11))
call SetUnitTimeScale(bj_lastCreatedUnit,10.00)
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(40.00,350.00),0.00)
call GroupAddUnit(udg_groups04[31],bj_lastCreatedUnit)
call RemoveLocation(udg_locations06[20])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[138])
call EnableTrigger(udg_trigger298)
call TriggerSleepAction(0.60)
set udg_integers01[1005]=25
call SetUnitTimeScalePercent(udg_unit11,100.00)
call TriggerSleepAction(0.40)
call DisableTrigger(udg_trigger298)
call ForGroupBJ(udg_groups04[30],function Trig_ZZyidong_Func001Func021A)
call ForGroupBJ(udg_groups04[31],function Trig_ZZyidong_Func001Func022A)
call GroupClear(udg_groups04[30])
call GroupClear(udg_groups04[31])
set udg_locations03[138]=GetUnitLoc(udg_unit11)
set udg_locations03[139]=GetUnitLoc(udg_unit04)
call AddSpecialEffectLocBJ(udg_locations03[138],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[138])
call AddSpecialEffectLocBJ(udg_locations03[139],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitTimeScalePercent(udg_unit11,100.00)
call PauseUnit(udg_unit11,false)
call SetUnitPathing(udg_unit11,true)
set udg_integers02[613]=1
loop
exitwhen udg_integers02[613]>10
call TriggerSleepAction(0.10)
call AddSpecialEffectLocBJ(udg_locations03[139],"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_integers02[613]=udg_integers02[613]+1
endloop
call UnitRemoveAbility(udg_unit11,'A02Q')
call UnitDamageTarget(udg_unit11,udg_unit04,((600.00+I2R(GetHeroStatBJ(1,udg_unit11,true)))*(1.00*I2R(GetUnitAbilityLevel(udg_unit11,'A007')))),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call AddSpecialEffectLocBJ(udg_locations03[139],"Objects\\Spawnmodels\\Human\\HumanLargeDeathExplode\\HumanLargeDeathExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[139])
call SetUnitAnimation(udg_unit04,"Death")
call SetUnitPathing(udg_unit04,true)
call TriggerSleepAction(2.00)
call PauseUnit(udg_unit04,false)
else
set udg_locations03[138]=PolarProjectionBJ(GetUnitLoc(udg_unit11),50.00,AngleBetweenPoints(GetUnitLoc(udg_unit11),GetUnitLoc(udg_unit04)))
call SetUnitPositionLoc(udg_unit11,udg_locations03[138])
call RemoveLocation(udg_locations03[138])
endif
endfunction
function Trig_czss_Func002A takes nothing returns nothing
set udg_locations03[533]=GetUnitLoc(GetEnumUnit())
set udg_locations03[138]=PolarProjectionBJ(udg_locations03[532],DistanceBetweenPoints(udg_locations03[532],udg_locations03[533]),(AngleBetweenPoints(udg_locations03[532],udg_locations03[533])+15.00))
call SetUnitPositionLoc(GetEnumUnit(),udg_locations03[138])
call RemoveLocation(udg_locations03[138])
endfunction
function Trig_czss_Func003A takes nothing returns nothing
set udg_locations03[533]=GetUnitLoc(GetEnumUnit())
set udg_locations03[138]=PolarProjectionBJ(udg_locations03[532],DistanceBetweenPoints(udg_locations03[532],udg_locations03[533]),(AngleBetweenPoints(udg_locations03[532],udg_locations03[533])-15.00))
call SetUnitPositionLoc(GetEnumUnit(),udg_locations03[138])
call RemoveLocation(udg_locations03[138])
endfunction
function Trig_czss_Actions takes nothing returns nothing
set udg_locations03[532]=GetUnitLoc(udg_unit04)
call ForGroupBJ(udg_groups04[30],function Trig_czss_Func002A)
call ForGroupBJ(udg_groups04[31],function Trig_czss_Func003A)
set udg_locations03[138]=PolarProjectionBJ(udg_locations03[532],GetRandomReal(0.00,200.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'njgb',GetOwningPlayer(udg_unit11),udg_locations03[138],GetRandomReal(0,360))
call SetUnitTimeScale(bj_lastCreatedUnit,5.00)
call SetUnitAnimation(bj_lastCreatedUnit,"attack")
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100,100,100,40.00)
call UnitApplyTimedLifeBJ(0.20,'BTLF',bj_lastCreatedUnit)
set udg_locations03[533]=GetUnitLoc(udg_unit11)
set udg_locations03[138]=PolarProjectionBJ(udg_locations03[533],I2R(udg_integers01[1005]),udg_reals01[757])
call SetUnitX(udg_unit11,GetLocationX(udg_locations03[138]))
call SetUnitY(udg_unit11,GetLocationY(udg_locations03[138]))
call RemoveLocation(udg_locations03[532])
call RemoveLocation(udg_locations03[533])
call RemoveLocation(udg_locations03[138])
endfunction
function Trig_brc2_______u_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetAttacker())=='uloc'))
endfunction
function Trig_brc2_______u_Actions takes nothing returns nothing
local unit KLDW
local location P1
local location P2
set KLDW=GetAttacker()
set P1=GetUnitLoc(GetTriggerUnit())
set P2=PolarProjectionBJ(P1,75.00,GetRandomReal(0,360))
call SetUnitPositionLocFacingLocBJ(KLDW,P2,P1)
call AddSpecialEffectLocBJ(P2,"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(P1)
call RemoveLocation(P2)
call UnitDamageTarget(GetAttacker(),GetTriggerUnit(),30.00,true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call TriggerSleepAction(0.05)
set P1=GetUnitLoc(GetTriggerUnit())
set P2=PolarProjectionBJ(P1,500.00,GetRandomReal(0,360))
call SetUnitPositionLocFacingLocBJ(KLDW,P2,P1)
call RemoveLocation(P1)
call RemoveLocation(P2)
set KLDW=null
set P1=null
set P2=null
endfunction
function Trig_shazhishouhu_Conditions takes nothing returns boolean
return((GetUnitAbilityLevel(GetTriggerUnit(),'Assk')>0))and((GetRandomInt(1,(21-GetUnitAbilityLevel(GetTriggerUnit(),'Assk')))==1))
endfunction
function Trig_shazhishouhu_Actions takes nothing returns nothing
set udg_locations03[503]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'oshm',GetOwningPlayer(GetTriggerUnit()),udg_locations03[503],GetUnitFacing(GetTriggerUnit()))
call CreateTextTagUnitBJ("____!",GetTriggerUnit(),0,10.50,100,100,100.00,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90.00)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,1.20)
call UnitApplyTimedLifeBJ(0.50,'BTLF',bj_lastCreatedUnit)
call SetWidgetLife(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())+(GetEventDamage()*0.90)))
endfunction
function Trig_shazhishouhu_2_Conditions takes nothing returns boolean
return((GetUnitAbilityLevel(GetAttacker(),'Assk')>0))and((GetRandomInt(1,100)<=25))
endfunction
function Trig_shazhishouhu_2_Func003002003001001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_shazhishouhu_2_Func003002003001002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_shazhishouhu_2_Func003002003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitAliveBJ(GetFilterUnit())))
endfunction
function Trig_shazhishouhu_2_Func003002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker())))
endfunction
function Trig_shazhishouhu_2_Func003002003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitAliveBJ(GetFilterUnit())))),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))))
endfunction
function Trig_shazhishouhu_2_Func004A takes nothing returns nothing
set udg_locations03[500]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[500],"Abilities\\Weapons\\BrewmasterMissile\\BrewmasterMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[500],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[500])
call UnitDamageTarget(GetAttacker(),GetEnumUnit(),(30.00*I2R(GetUnitAbilityLevel(GetAttacker(),'Assk'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_shazhishouhu_2_Actions takes nothing returns nothing
set udg_locations03[499]=GetUnitLoc(GetTriggerUnit())
set bj_wantDestroyGroup=true
set udg_groups02[499]=GetUnitsInRangeOfLocMatching(250.00,udg_locations03[499],Condition(function Trig_shazhishouhu_2_Func003002003))
call ForGroupBJ(udg_groups02[499],function Trig_shazhishouhu_2_Func004A)
call GroupClear(udg_groups02[499])
call RemoveLocation(udg_locations03[499])
endfunction
function Trig_feiniao_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ANg3'))
endfunction
function Trig_feiniao_Func002C takes nothing returns boolean
return((udg_booleans01[613]==false))
endfunction
function Trig_feiniao_Actions takes nothing returns nothing
set udg_units31[630]=GetTriggerUnit()
if((udg_booleans01[613]==false))then
call TriggerRegisterUnitLifeEvent(udg_trigger303,udg_units31[630],LESS_THAN_OR_EQUAL,0.00)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'ANbr',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02D',false)
set udg_booleans01[613]=true
call TriggerSleepAction(0.05)
call SetUnitInvulnerable(udg_units31[630],true)
call TriggerSleepAction(1.50)
call SetUnitInvulnerable(udg_units31[630],false)
else
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'ANbr',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02D',true)
set udg_booleans01[613]=false
call SetUnitInvulnerable(GetTriggerUnit(),true)
call TriggerSleepAction(1.50)
call SetUnitInvulnerable(GetTriggerUnit(),false)
endif
endfunction
function Trig_feiniao2_Conditions takes nothing returns boolean
return((GetTriggerUnit()==udg_units31[630]))
endfunction
function Trig_feiniao2_Actions takes nothing returns nothing
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'ANbr',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02D',true)
set udg_booleans01[613]=false
endfunction
function Trig_namiqibaoniantu_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ANdh'))
endfunction
function Trig_namiqibaoniantu_Func005Func001C takes nothing returns boolean
return((UnitHasBuffBJ(udg_units31[439],'BNdh')))
endfunction
function Trig_namiqibaoniantu_Func006Func003001003 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_namiqibaoniantu_Func006Func003A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(450.00*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'ANg3'))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_namiqibaoniantu_Func006C takes nothing returns boolean
return((UnitHasBuffBJ(udg_units31[439],'BNdh')))
endfunction
function Trig_namiqibaoniantu_Actions takes nothing returns nothing
set udg_units31[439]=GetSpellTargetUnit()
call CreateTextTagUnitBJ("!",udg_units31[439],0,14.00,100,20.00,20.00,0)
set udg_texttag01=bj_lastCreatedTextTag
call TriggerSleepAction(0.10)
set udg_integers02[349]=1
loop
exitwhen udg_integers02[349]>5
if((UnitHasBuffBJ(udg_units31[439],'BNdh')))then
call SetTextTagText(udg_texttag01,(I2S((6-udg_integers02[349]))+"!"),0.02)
call SetTextTagPosUnit(udg_texttag01,udg_units31[439],0)
call TriggerSleepAction(1.00)
endif
set udg_integers02[349]=udg_integers02[349]+1
endloop
if((UnitHasBuffBJ(udg_units31[439],'BNdh')))then
set udg_locations06[104]=GetUnitLoc(udg_units31[439])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations06[105]=PolarProjectionBJ(udg_locations06[104],GetRandomReal(0,150.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'nhef',GetOwningPlayer(GetTriggerUnit()),udg_locations06[105],GetRandomReal(0,360))
call KillUnit(bj_lastCreatedUnit)
call SetUnitTimeScale(bj_lastCreatedUnit,0.30)
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(0.00,120.00),0.00)
call RemoveLocation(udg_locations06[105])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations06[104],Condition(function Trig_namiqibaoniantu_Func006Func003001003)),function Trig_namiqibaoniantu_Func006Func003A)
call RemoveLocation(udg_locations06[104])
endif
call DestroyTextTag(udg_texttag01)
call UnitRemoveAbility(udg_units31[439],'BNdh')
endfunction
function Trig_shuifenshen_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A08X'))
endfunction
function Trig_shuifenshen_Func004C takes nothing returns boolean
return((GetUnitState(GetSpellTargetUnit(),UNIT_STATE_LIFE)<=((I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A08X'))*50.00)+50.00)))
endfunction
function Trig_shuifenshen_Actions takes nothing returns nothing
set udg_locations06[60]=GetUnitLoc(GetSpellTargetUnit())
call AddSpecialEffectLocBJ(udg_locations06[60],"war3mapImported\\AquaSpikeVersion2.mdx")
call DestroyEffect(bj_lastCreatedEffect)
if((GetUnitState(GetSpellTargetUnit(),UNIT_STATE_LIFE)<=((I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A08X'))*50.00)+50.00)))then
call RemoveUnit(GetSpellTargetUnit())
call CreateNUnitsAtLoc(1,'U009',GetOwningPlayer(GetTriggerUnit()),udg_locations06[60],bj_UNIT_FACING)
call SetHeroLevelBJ(bj_lastCreatedUnit,GetUnitLevel(GetTriggerUnit()),false)
call SetHeroStr(bj_lastCreatedUnit,(GetHeroAgi(GetTriggerUnit(),false)/2),true)
call SetHeroAgi(bj_lastCreatedUnit,(GetHeroAgi(GetTriggerUnit(),false)/2),true)
call SetHeroInt(bj_lastCreatedUnit,(GetHeroInt(GetTriggerUnit(),false)/2),true)
call UnitApplyTimedLifeBJ(24.00,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SelectHeroSkill(bj_lastCreatedUnit,'A01G')
call SelectHeroSkill(bj_lastCreatedUnit,'ACbc')
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_unit20=bj_lastCreatedUnit
else
call UnitDamageTarget(GetTriggerUnit(),GetSpellTargetUnit(),(I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A08X'))*50.00),false,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_COLD,WEAPON_TYPE_WHOKNOWS)
endif
call RemoveLocation(udg_locations06[60])
endfunction
function Trig_shuibaohenbo_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ACbc'))
endfunction
function Trig_shuibaohenbo_Func008A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_shuibaohenbo_Actions takes nothing returns nothing
set udg_units31[25]=GetTriggerUnit()
set udg_locations03[272]=GetSpellTargetLoc()
call TriggerSleepAction(0.10)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[273]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),50.00,((AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()),udg_locations03[272])-60.00)+(30.00*I2R(bj_forLoopAIndex))))
set udg_locations03[274]=PolarProjectionBJ(udg_locations03[273],50.00,((AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()),udg_locations03[272])-150.00)+(30.00*I2R(bj_forLoopAIndex))))
call CreateNUnitsAtLoc(1,'hdes',GetOwningPlayer(GetTriggerUnit()),udg_locations03[274],((AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()),udg_locations03[272])-60.00)+(30.00*I2R(bj_forLoopAIndex))))
call GroupAddUnit(udg_groups03[30],bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[274])
set udg_locations03[274]=PolarProjectionBJ(udg_locations03[273],50.00,((AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()),udg_locations03[272])+30.00)+(30.00*I2R(bj_forLoopAIndex))))
call CreateNUnitsAtLoc(1,'nhym',GetOwningPlayer(GetTriggerUnit()),udg_locations03[274],((AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()),udg_locations03[272])-60.00)+(30.00*I2R(bj_forLoopAIndex))))
call GroupAddUnit(udg_groups03[30],bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[274])
call RemoveLocation(udg_locations03[273])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger307)
call TriggerSleepAction(1.00)
call DisableTrigger(udg_trigger307)
call ForGroupBJ(udg_groups03[30],function Trig_shuibaohenbo_Func008A)
call GroupClear(udg_groups03[30])
call RemoveLocation(udg_locations03[272])
endfunction
function Trig_shuibaohenbo2_Func001Func006001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[25])))
endfunction
function Trig_shuibaohenbo2_Func001Func006A takes nothing returns nothing
call UnitDamageTarget(udg_units31[25],GetEnumUnit(),(4.00*I2R(GetUnitAbilityLevel(udg_units31[25],'ACbc'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_shuibaohenbo2_Func001A takes nothing returns nothing
set udg_locations03[274]=PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),25.00,GetUnitFacing(GetEnumUnit()))
call SetUnitPositionLoc(GetEnumUnit(),udg_locations03[274])
call AddSpecialEffectLocBJ(udg_locations03[274],"Abilities\\Spells\\Other\\CrushingWave\\CrushingWaveDamage.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(130.00,udg_locations03[274],Condition(function Trig_shuibaohenbo2_Func001Func006001003)),function Trig_shuibaohenbo2_Func001Func006A)
call RemoveLocation(udg_locations03[274])
endfunction
function Trig_shuibaohenbo2_Actions takes nothing returns nothing
call ForGroupBJ(udg_groups03[30],function Trig_shuibaohenbo2_Func001A)
endfunction
function Trig_WXJ_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04X'))
endfunction
function Trig_WXJ_Func012A takes nothing returns nothing
call SetUnitFlyHeight(GetEnumUnit(),-100.00,200.00)
endfunction
function Trig_WXJ_Func024A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_WXJ_Func025A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_WXJ_Actions takes nothing returns nothing
set udg_unit16=GetTriggerUnit()
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000__:________,__,___!|r")
call TriggerSleepAction(0.10)
call PauseUnit(udg_unit16,true)
call UnitAddAbility(udg_unit16,'Amrf')
call SetUnitFlyHeight(udg_unit16,750.00,1200.00)
call UnitRemoveAbility(udg_unit16,'Amrf')
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit16),CAMERA_FIELD_FIELD_OF_VIEW,2000.00,0)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=18
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[89]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),300.00,(20.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'nnsu',GetOwningPlayer(udg_unit16),udg_locations03[89],(20.00*I2R(bj_forLoopAIndex)))
call RemoveLocation(udg_locations03[89])
call SetUnitVertexColorBJ(bj_lastCreatedUnit,80.00,80.00,100,70.00)
call SetUnitFlyHeight(bj_lastCreatedUnit,600.00,1000000000.00)
call GroupAddUnit(udg_groups03[31],bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.05)
call ForGroupBJ(udg_groups03[31],function Trig_WXJ_Func012A)
call TriggerSleepAction(0.70)
set udg_locations03[89]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'nwen',GetOwningPlayer(udg_unit16),udg_locations03[89],GetRandomReal(0,360))
call SetUnitFlyHeight(bj_lastCreatedUnit,250.00,450.00)
call UnitApplyTimedLifeBJ(1.80,'BTLF',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'nvde',GetOwningPlayer(udg_unit16),udg_locations03[89],GetRandomReal(0,360))
call SetUnitFlyHeight(bj_lastCreatedUnit,250.00,600.00)
call UnitApplyTimedLifeBJ(1.20,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[89])
call TriggerSleepAction(0.50)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[89]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),50.00,(24.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'nmdm',GetOwningPlayer(udg_unit16),udg_locations03[89],(24.00*I2R(bj_forLoopAIndex)))
call RemoveLocation(udg_locations03[89])
set udg_locations03[89]=PolarProjectionBJ(GetUnitLoc(bj_lastCreatedUnit),800.00,GetUnitFacing(bj_lastCreatedUnit))
call IssuePointOrderLoc(bj_lastCreatedUnit,"clusterrockets",udg_locations03[89])
call RemoveLocation(udg_locations03[89])
call GroupAddUnit(udg_groups03[32],bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(1.20)
set udg_locations03[212]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[89]=PolarProjectionBJ(udg_locations03[212],850.00,(24.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'nmdm',GetOwningPlayer(udg_unit16),udg_locations03[89],(36.00*I2R(bj_forLoopAIndex)))
call SetUnitFlyHeight(bj_lastCreatedUnit,0.00,1000000000.00)
call RemoveLocation(udg_locations03[89])
call IssuePointOrderLoc(bj_lastCreatedUnit,"clusterrockets",udg_locations03[212])
call GroupAddUnit(udg_groups03[32],bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[212])
call TriggerSleepAction(1.00)
call ForGroupBJ(udg_groups03[31],function Trig_WXJ_Func024A)
call ForGroupBJ(udg_groups03[32],function Trig_WXJ_Func025A)
call PauseUnit(udg_unit16,false)
call SetUnitFlyHeight(udg_unit16,0.00,2400.00)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit16),0)
call GroupClear(udg_groups03[31])
call GroupClear(udg_groups03[32])
endfunction
function Trig_WXJ2_Func001C takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='nwen'))or((GetUnitTypeId(GetTriggerUnit())=='nvde'))
endfunction
function Trig_WXJ2_Conditions takes nothing returns boolean
return((((GetUnitTypeId(GetTriggerUnit())=='nwen'))or((GetUnitTypeId(GetTriggerUnit())=='nvde'))))
endfunction
function Trig_WXJ2_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(GetTriggerUnit()),500.00,500.00)),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call TriggerSleepAction(0.10)
call RemoveUnit(GetTriggerUnit())
endfunction
function Trig_GJD_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01G'))
endfunction
function Trig_GJD_Actions takes nothing returns nothing
set udg_units30[10]=GetTriggerUnit()
set udg_locations03[87]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'ubot',GetOwningPlayer(GetTriggerUnit()),udg_locations03[87],AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetSpellTargetLoc()))
call RemoveLocation(udg_locations03[87])
call UnitApplyTimedLifeBJ(1.10,'BTLF',bj_lastCreatedUnit)
set udg_units15[153]=bj_lastCreatedUnit
call EnableTrigger(udg_trigger311)
call TriggerSleepAction(0.80)
call DisableTrigger(udg_trigger311)
set udg_locations03[606]=GetUnitLoc(udg_units15[153])
call CreateNUnitsAtLoc(1,'uswb',GetOwningPlayer(udg_units30[10]),udg_locations03[606],GetUnitFacing(GetTriggerUnit()))
call IssuePointOrderLoc(bj_lastCreatedUnit,"clusterrockets",PolarProjectionBJ(GetUnitLoc(bj_lastCreatedUnit),1000.00,GetUnitFacing(udg_units15[153])))
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call TriggerSleepAction(0.10)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[87]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[606],400.00,400.00))
call CreateNUnitsAtLoc(1,'nthr',GetOwningPlayer(udg_units30[10]),udg_locations03[87],GetRandomReal(0,360))
call RemoveLocation(udg_locations03[87])
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(0.00,300.00),9999999.00)
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call GroupClear(udg_groups03[33])
call RemoveUnit(udg_units15[153])
call RemoveLocation(udg_locations03[606])
endfunction
function Trig_GJD2_Func005001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_GJD2_Func005001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units15[153])))
endfunction
function Trig_GJD2_Func005001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units15[153]))))
endfunction
function Trig_GJD2_Func005Func001C takes nothing returns boolean
if(not(IsUnitInGroup(GetEnumUnit(),udg_groups03[33])))then
return false
endif
return true
endfunction
function Trig_GJD2_Func005A takes nothing returns nothing
if(Trig_GJD2_Func005Func001C())then
else
call UnitDamageTarget(udg_units30[10],GetEnumUnit(),(I2R(GetHeroStatBJ(0,udg_units30[10],true))*I2R(GetUnitAbilityLevel(udg_units30[10],'A01G'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call GroupAddUnit(udg_groups03[33],GetEnumUnit())
endif
endfunction
function Trig_GJD2_Actions takes nothing returns nothing
set udg_locations06[95]=GetUnitLoc(udg_units15[153])
set udg_locations03[209]=PolarProjectionBJ(udg_locations06[95],30.00,GetUnitFacing(udg_units15[153]))
call SetUnitPositionLocFacingBJ(udg_units15[153],udg_locations03[209],GetUnitFacing(udg_units15[153]))
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(160.00,udg_locations03[209],Condition(function Trig_GJD2_Func005001003)),function Trig_GJD2_Func005A)
set udg_locations03[210]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations06[95],150.00,150.00))
call AddSpecialEffectLocBJ(udg_locations03[210],"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[210])
call RemoveLocation(udg_locations03[209])
call RemoveLocation(udg_locations06[95])
endfunction
function Trig_GLGX_Conditions takes nothing returns boolean
return((UnitHasBuffBJ(GetAttacker(),'Bfzy')))and((IsUnitEnemy(GetTriggerUnit(),GetOwningPlayer(GetAttacker()))))and((IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false))
endfunction
function Trig_GLGX_Func013C takes nothing returns boolean
return((GetRandomInt(1,5)==3))
endfunction
function Trig_GLGX_Actions takes nothing returns nothing
call SetUnitManaBJ(GetTriggerUnit(),(GetUnitState(GetTriggerUnit(),UNIT_STATE_MANA)-(10.00*I2R(GetUnitAbilityLevel(GetAttacker(),'Afzy')))))
set udg_locations06[60]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations06[60],"Abilities\\Weapons\\GlaiveMissile\\GlaiveMissileTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_locations06[61]=GetUnitLoc(GetAttacker())
set udg_locations06[62]=PolarProjectionBJ(udg_locations06[60],25.00,AngleBetweenPoints(udg_locations06[61],udg_locations06[60]))
call SetUnitPositionLoc(GetTriggerUnit(),udg_locations06[62])
call AddSpecialEffectLocBJ(udg_locations06[62],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations06[60])
call RemoveLocation(udg_locations06[61])
call RemoveLocation(udg_locations06[62])
if((GetRandomInt(1,5)==3))then
set udg_units30[402]=GetAttacker()
call PauseUnit(GetTriggerUnit(),true)
call SetUnitFacing(GetTriggerUnit(),(GetUnitFacing(GetAttacker())-180.00))
call GroupAddUnit(udg_groups05[40],GetTriggerUnit())
call UnitAddAbility(udg_units30[402],'A02Q')
call TriggerSleepAction(0.50)
call GroupRemoveUnit(udg_groups05[40],GetTriggerUnit())
call SetUnitTimeScale(udg_units30[402],5.00)
call SetUnitAnimationByIndex(udg_units30[402],9)
set udg_locations06[60]=GetUnitLoc(GetTriggerUnit())
set udg_locations06[61]=GetUnitLoc(udg_units30[402])
set udg_locations06[62]=PolarProjectionBJ(udg_locations06[60],25.00,AngleBetweenPoints(udg_locations06[61],udg_locations06[60]))
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitPositionLoc(udg_units30[402],udg_locations06[62])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[88]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations06[60],250.00,250.00))
call CreateNUnitsAtLoc(1,'nthr',GetOwningPlayer(udg_units30[402]),udg_locations03[88],GetRandomReal(0,360))
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(0.00,300.00),9999999.00)
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[88])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call UnitDamageTarget(udg_units30[402],GetTriggerUnit(),((I2R(GetHeroStatBJ(0,GetAttacker(),true))/4.00)*I2R(GetUnitAbilityLevel(GetAttacker(),'Afzy'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations06[60])
call RemoveLocation(udg_locations06[61])
call RemoveLocation(udg_locations06[62])
call PauseUnit(GetTriggerUnit(),false)
call TriggerSleepAction(0.10)
call UnitRemoveAbility(udg_units30[402],'A02Q')
call SetUnitTimeScale(udg_units30[402],1.00)
endif
endfunction
function Trig_WSJ_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02Z'))
endfunction
function Trig_WSJ_Func011A takes nothing returns nothing
set udg_locations03[88]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLoc(1,'etrs',GetOwningPlayer(udg_units30[11]),udg_locations03[88],GetRandomReal(0,360))
call RemoveLocation(udg_locations03[88])
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(0.00,150.00),150.00)
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),350.00,GetUnitFacing(GetEnumUnit())),GetUnitFacing(GetTriggerUnit()))
endfunction
function Trig_WSJ_Actions takes nothing returns nothing
set udg_units26[11]=GetSpellTargetUnit()
set udg_units30[11]=GetTriggerUnit()
set udg_location05=GetUnitLoc(udg_units26[11])
set udg_integer07=0
call TriggerSleepAction(0.10)
call PauseUnit(udg_units26[11],true)
call UnitAddAbility(udg_units26[11],'Amrf')
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'nwnr',GetOwningPlayer(udg_units30[11]),PolarProjectionBJ(udg_location05,600.00,(I2R(bj_forLoopAIndex)*72.00)),bj_UNIT_FACING)
call GroupAddUnit(udg_groups02[3],bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(-100.00,250.00),1000.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.10)
call ForGroupBJ(udg_groups02[3],function Trig_WSJ_Func011A)
call EnableTrigger(udg_trigger314)
endfunction
function Trig_WSJ2_Func002Func004A takes nothing returns nothing
set udg_locations14[1]=GetUnitLoc(GetEnumUnit())
set udg_locations14[2]=PolarProjectionBJ(udg_location05,(DistanceBetweenPoints(udg_locations14[1],udg_location05)-3.00),(AngleBetweenPoints(udg_location05,udg_locations14[1])+15.00))
call SetUnitFlyHeight(GetEnumUnit(),(GetUnitFlyHeight(GetEnumUnit())+5.00),99999.00)
call SetUnitPositionLocFacingLocBJ(GetEnumUnit(),udg_locations14[2],udg_location05)
call RemoveLocation(udg_locations14[1])
call RemoveLocation(udg_locations14[2])
endfunction
function Trig_WSJ2_Func002Func008A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),udg_location05)
endfunction
function Trig_WSJ2_Func002Func010A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_WSJ2_Func002C takes nothing returns boolean
return((udg_integer07>=30))
endfunction
function Trig_WSJ2_Actions takes nothing returns nothing
set udg_integer07=(udg_integer07+1)
if((udg_integer07>=30))then
call DisableTrigger(GetTriggeringTrigger())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[88]=GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units26[11]),400.00,400.00))
call CreateNUnitsAtLoc(1,'nthr',GetOwningPlayer(udg_units30[11]),udg_locations03[88],GetRandomReal(0,360))
call RemoveLocation(udg_locations03[88])
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(0.00,300.00),9999999.00)
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(udg_groups02[3],function Trig_WSJ2_Func002Func008A)
call TriggerSleepAction(0.10)
call ForGroupBJ(udg_groups02[3],function Trig_WSJ2_Func002Func010A)
call UnitDamageTarget(udg_units30[11],udg_units26[11],(I2R(GetHeroStatBJ(0,udg_units30[11],true))*8.50),false,true,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call GroupClear(udg_groups02[3])
call SetUnitFlyHeight(udg_units26[11],GetUnitDefaultFlyHeight(udg_units26[11]),999999.00)
call UnitRemoveAbility(udg_units26[11],'Amrf')
call PauseUnit(udg_units26[11],false)
call RemoveLocation(udg_location05)
call RemoveLocation(udg_locations14[1])
call RemoveLocation(udg_locations14[2])
else
call SetUnitFlyHeight(udg_units26[11],(GetUnitFlyHeight(udg_units26[11])+5.00),99999.00)
call SetUnitAnimation(udg_units26[11],"death")
call ForGroupBJ(udg_groups02[3],function Trig_WSJ2_Func002Func004A)
call UnitDamageTarget(udg_units30[11],udg_units26[11],(3.00+(I2R(GetUnitAbilityLevel(udg_units19[11],'A02Z'))*3.00)),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
endfunction
function Trig_shuilao1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A08V'))
endfunction
function Trig_shuilao1_Actions takes nothing returns nothing
set udg_units45[0]=GetSpellTargetUnit()
call PauseUnit(udg_units45[0],true)
call TriggerSleepAction(0.10)
set udg_locations06[61]=GetUnitLoc(udg_units45[0])
set udg_units45[1]=CreateUnitAtLoc(GetOwningPlayer(GetTriggerUnit()),'npng',udg_locations06[61],0)
call PauseUnit(udg_unit20,true)
call EnableTrigger(udg_trigger316)
call TriggerSleepAction(5.00)
call DisableTrigger(udg_trigger316)
call PauseUnit(udg_units45[0],false)
call PauseUnit(udg_unit20,false)
call RemoveUnit(udg_units45[1])
call RemoveLocation(udg_locations06[61])
endfunction
function Trig_shuilao2_Func001C takes nothing returns boolean
return((IsUnitAliveBJ(udg_unit20)))
endfunction
function Trig_shuilao2_Func002C takes nothing returns boolean
return((IsUnitAliveBJ(udg_units45[0])))
endfunction
function Trig_shuilao2_Actions takes nothing returns nothing
if((IsUnitAliveBJ(udg_unit20)))then
call SetUnitAnimation(udg_unit20,"spell")
call UnitPauseTimedLife(udg_unit20,false)
else
call DisableTrigger(GetTriggeringTrigger())
call PauseUnit(udg_units45[0],false)
call PauseUnit(udg_unit20,false)
call RemoveUnit(udg_units45[1])
set udg_units45[1]=null
call RemoveLocation(udg_locations06[61])
endif
if((IsUnitAliveBJ(udg_units45[0])))then
call SetUnitAnimation(udg_unit20,"spell")
call UnitPauseTimedLife(udg_unit20,false)
else
call DisableTrigger(GetTriggeringTrigger())
call PauseUnit(udg_units45[0],false)
call PauseUnit(udg_unit20,false)
call RemoveUnit(udg_units45[1])
set udg_units45[1]=null
call RemoveLocation(udg_locations06[61])
endif
endfunction
function Trig_ShuiDead_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='U009'))
endfunction
function Trig_ShuiDead_Actions takes nothing returns nothing
set udg_locations06[61]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations06[62]=PolarProjectionBJ(udg_locations06[61],100.00,GetRandomReal(0,360))
call AddSpecialEffectLocBJ(udg_locations06[62],"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations06[62])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveUnit(GetTriggerUnit())
call RemoveLocation(udg_locations06[61])
endfunction
function Trig_shuangshenglong_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AHpx'))
endfunction
function Trig_shuangshenglong_Actions takes nothing returns nothing
call TriggerSleepAction(0.05)
call PauseUnit(GetTriggerUnit(),true)
set udg_locations03[400]=GetUnitLoc(GetTriggerUnit())
call UnitAddAbility(GetTriggerUnit(),'Amrf')
call SetUnitFlyHeight(GetTriggerUnit(),300.00,300.00)
call UnitRemoveAbility(GetTriggerUnit(),'Amrf')
call SetUnitAnimation(GetTriggerUnit(),"spell one")
call CreateNUnitsAtLoc(1,'hrdh',GetOwningPlayer(GetTriggerUnit()),udg_locations03[400],GetUnitFacing(GetTriggerUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,50.00)
call SetUnitFlyHeight(bj_lastCreatedUnit,250.00,150.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[400])
set udg_integers02[400]=1
loop
exitwhen udg_integers02[400]>6
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[400]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),100.00,(60.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'ubdd',GetOwningPlayer(GetTriggerUnit()),udg_locations03[400],(60.00*I2R(bj_forLoopAIndex)))
call SetUnitFlyHeight(bj_lastCreatedUnit,(100.00+(50.00*I2R(udg_integers02[400]))),0.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
call SetUnitAbilityLevel(bj_lastCreatedUnit,'A01W',GetUnitAbilityLevel(GetTriggerUnit(),'AHpx'))
call RemoveLocation(udg_locations03[400])
set udg_locations03[400]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),150.00,(60.00*I2R(bj_forLoopAIndex)))
call IssuePointOrderLoc(bj_lastCreatedUnit,"clusterrockets",udg_locations03[400])
call RemoveLocation(udg_locations03[400])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.01)
set udg_integers02[400]=udg_integers02[400]+1
endloop
call SetUnitFlyHeight(GetTriggerUnit(),0.00,3000.00)
call PauseUnit(GetTriggerUnit(),false)
endfunction
function Trig_anqicaozuocaihua_Conditions takes nothing returns boolean
return((UnitHasBuffBJ(GetAttacker(),'BOae')))
endfunction
function Trig_anqicaozuocaihua_Func001Func005001002003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker())))
endfunction
function Trig_anqicaozuocaihua_Func001Func005001002003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_anqicaozuocaihua_Func001Func005001002003 takes nothing returns boolean
return GetBooleanAnd((IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))),(IsUnitAliveBJ(GetFilterUnit())))
endfunction
function Trig_anqicaozuocaihua_Func001Func005A takes nothing returns nothing
call IssueTargetOrder(bj_lastCreatedUnit,"attack",GetEnumUnit())
endfunction
function Trig_anqicaozuocaihua_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=GetUnitAbilityLevel(GetAttacker(),'AOae')
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[401]=PolarProjectionBJ(GetUnitLoc(GetAttacker()),GetRandomReal(0,70.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'nsw2',GetOwningPlayer(GetAttacker()),udg_locations03[401],GetUnitFacing(GetAttacker()))
call RemoveLocation(udg_locations03[401])
set udg_locations03[401]=GetUnitLoc(GetTriggerUnit())
call ForGroupBJ(GetRandomSubGroup(1,GetUnitsInRangeOfLocMatching(300.00,udg_locations03[401],Condition(function Trig_anqicaozuocaihua_Func001Func005001002003))),function Trig_anqicaozuocaihua_Func001Func005A)
call ModifyHeroStat(1,bj_lastCreatedUnit,2,(GetHeroStatBJ(1,GetAttacker(),true)/6))
call UnitApplyTimedLifeBJ(0.50,'BTLF',bj_lastCreatedUnit)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100,100,100,75.00)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,200.00)
call RemoveLocation(udg_locations03[401])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_anqicaozuocaihuasiwang_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='nsw2'))
endfunction
function Trig_anqicaozuocaihuasiwang_Actions takes nothing returns nothing
call SetUnitX(GetTriggerUnit(),GetLocationX(GetRectCenter(udg_rect41)))
call SetUnitY(GetTriggerUnit(),GetLocationY(GetRectCenter(udg_rect41)))
call TriggerSleepAction(2.00)
call RemoveUnit(GetTriggerUnit())
endfunction
function Trig_anqishutianlianwu_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AOcl'))
endfunction
function Trig_anqishutianlianwu_Actions takes nothing returns nothing
set udg_units30[875]=GetTriggerUnit()
set udg_units26[875]=GetSpellTargetUnit()
set udg_locations03[405]=GetUnitLoc(GetTriggerUnit())
call TriggerSleepAction(0.10)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitTimeScalePercent(GetTriggerUnit(),0.00)
call CreateNUnitsAtLocFacingLocBJ(1,'nbee',GetOwningPlayer(GetTriggerUnit()),udg_locations03[405],GetUnitLoc(udg_units26[875]))
call RemoveLocation(udg_locations03[405])
set udg_units27[875]=bj_lastCreatedUnit
call GroupAddUnit(udg_groups03[34],bj_lastCreatedUnit)
call EnableTrigger(udg_trigger322)
endfunction
function Trig_anqisuhtianlianwu2_Func001Func001C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_units27[875]),GetUnitLoc(udg_units26[875]))<=90.00))or((udg_booleans01[875]))or((IsUnitDeadBJ(udg_units30[875])))
endfunction
function Trig_anqisuhtianlianwu2_Func001Func002C takes nothing returns boolean
return((udg_booleans01[875]==false))
endfunction
function Trig_anqisuhtianlianwu2_Func001Func004Func001C takes nothing returns boolean
return((udg_integers02[875]==40))or((IsUnitDeadBJ(udg_units30[875])))
endfunction
function Trig_anqisuhtianlianwu2_Func001Func004Func022A takes nothing returns nothing
set udg_locations03[405]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[405],"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[405])
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_anqisuhtianlianwu2_Func001Func004C takes nothing returns boolean
return((((udg_integers02[875]==40))or((IsUnitDeadBJ(udg_units30[875])))))
endfunction
function Trig_anqisuhtianlianwu2_Func001C takes nothing returns boolean
return((((DistanceBetweenPoints(GetUnitLoc(udg_units27[875]),GetUnitLoc(udg_units26[875]))<=90.00))or((udg_booleans01[875]))or((IsUnitDeadBJ(udg_units30[875])))))
endfunction
function Trig_anqisuhtianlianwu2_Actions takes nothing returns nothing
if((((DistanceBetweenPoints(GetUnitLoc(udg_units27[875]),GetUnitLoc(udg_units26[875]))<=90.00))or((udg_booleans01[875]))or((IsUnitDeadBJ(udg_units30[875])))))then
if((udg_booleans01[875]==false))then
call PauseUnit(udg_units26[875],true)
set udg_reals01[875]=110.00
set udg_reals01[876]=AngleBetweenPoints(GetUnitLoc(udg_units26[875]),GetUnitLoc(udg_units27[875]))
set udg_reals01[877]=75.00
endif
set udg_booleans01[875]=true
if((((udg_integers02[875]==40))or((IsUnitDeadBJ(udg_units30[875])))))then
call DisableTrigger(GetTriggeringTrigger())
set udg_booleans01[875]=false
set udg_reals01[875]=0.00
set udg_reals01[876]=0.00
set udg_reals01[877]=0.00
set udg_integers02[875]=0
call TriggerSleepAction(0.50)
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=4
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[405]=PolarProjectionBJ(GetUnitLoc(udg_units26[875]),(450.00-(I2R(bj_forLoopBIndex)*80.00)),(36.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLocFacingLocBJ(1,'hsor',GetOwningPlayer(udg_units27[875]),udg_locations03[405],GetUnitLoc(udg_units26[875]))
call SetUnitScalePercent(bj_lastCreatedUnit,200.00,200.00,200.00)
call RemoveLocation(udg_locations03[405])
call SetUnitFlyHeight(bj_lastCreatedUnit,(90.00*I2R(bj_forLoopBIndex)),0.00)
call SetUnitAbilityLevel(bj_lastCreatedUnit,GetUnitAbilityLevel(udg_units30[875],'AOcl'),'ACtb')
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
call IssueTargetOrder(bj_lastCreatedUnit,"creepthunderbolt",udg_units26[875])
call UnitDamageTarget(udg_units30[875],udg_units26[875],(I2R(GetHeroStatBJ(1,udg_units30[875],true))*(0.00+0.50)),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call TriggerSleepAction(0.50)
call PauseUnit(udg_units26[875],false)
call PauseUnit(udg_units30[875],false)
call ForGroupBJ(udg_groups03[34],function Trig_anqisuhtianlianwu2_Func001Func004Func022A)
call SetUnitTimeScalePercent(udg_units30[875],100.00)
call GroupClear(udg_groups03[34])
else
set udg_integers02[875]=(udg_integers02[875]+1)
set udg_reals01[875]=(udg_reals01[875]-2.00)
set udg_reals01[876]=(udg_reals01[876]+20.00)
set udg_reals01[877]=(udg_reals01[877]+3.00)
set udg_locations03[405]=PolarProjectionBJ(GetUnitLoc(udg_units26[875]),udg_reals01[875],udg_reals01[876])
call CreateNUnitsAtLoc(1,'nbee',GetOwningPlayer(udg_units30[875]),udg_locations03[405],(udg_reals01[876]+90.00))
call SetUnitFlyHeight(bj_lastCreatedUnit,udg_reals01[877],0.00)
call GroupAddUnit(udg_groups03[34],bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[405])
endif
else
set udg_locations03[405]=PolarProjectionBJ(GetUnitLoc(udg_units27[875]),25.00,AngleBetweenPoints(GetUnitLoc(udg_units27[875]),GetUnitLoc(udg_units26[875])))
call CreateNUnitsAtLocFacingLocBJ(1,'nbee',GetOwningPlayer(udg_units27[875]),udg_locations03[405],GetUnitLoc(udg_units26[875]))
call GroupAddUnit(udg_groups03[34],bj_lastCreatedUnit)
set udg_units27[875]=bj_lastCreatedUnit
call RemoveLocation(udg_locations03[405])
endif
endfunction
function Trig_anqishuwuxiansanhua_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AOsw'))
endfunction
function Trig_anqishuwuxiansanhua_Func010A takes nothing returns nothing
set udg_locations03[401]=PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),20.00,GetUnitFacing(GetEnumUnit()))
call IssuePointOrderLoc(GetEnumUnit(),"clusterrockets",udg_locations03[401])
call RemoveLocation(udg_locations03[401])
endfunction
function Trig_anqishuwuxiansanhua_Actions takes nothing returns nothing
set udg_locations03[402]=GetSpellTargetLoc()
set udg_reals01[401]=AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()),udg_locations03[402])
set udg_locations06[240]=PolarProjectionBJ(udg_locations03[402],50.00,udg_reals01[401])
call CreateNUnitsAtLoc(1,'otbk',GetOwningPlayer(GetTriggerUnit()),udg_locations06[240],(udg_reals01[401]+90.00))
call UnitApplyTimedLifeBJ(5.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations06[240])
call TriggerSleepAction(0.10)
set udg_integers02[401]=1
loop
exitwhen udg_integers02[401]>8
set udg_locations03[401]=PolarProjectionBJ(udg_locations03[402],(50.00*I2R(udg_integers02[401])),(udg_reals01[401]-90.00))
call CreateNUnitsAtLoc(1,'hbew',GetOwningPlayer(GetTriggerUnit()),udg_locations03[401],(udg_reals01[401]+0.00))
call UnitApplyTimedLifeBJ((5.00-(I2R(udg_integers02[401])*0.05)),'BTLF',bj_lastCreatedUnit)
call GroupAddUnit(udg_groups02[401],bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,(600.00-(18.00*I2R(udg_integers02[401]))),0.00)
call RemoveLocation(udg_locations03[401])
set udg_locations03[401]=PolarProjectionBJ(udg_locations03[402],(50.00*I2R(udg_integers02[401])),(udg_reals01[401]+90.00))
call CreateNUnitsAtLoc(1,'hbew',GetOwningPlayer(GetTriggerUnit()),udg_locations03[401],(udg_reals01[401]-180.00))
call UnitApplyTimedLifeBJ((5.00-(I2R(udg_integers02[401])*0.05)),'BTLF',bj_lastCreatedUnit)
call GroupAddUnit(udg_groups02[401],bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,(600.00-(18.00*I2R(udg_integers02[401]))),0.00)
call RemoveLocation(udg_locations03[401])
set udg_integers02[401]=udg_integers02[401]+1
endloop
call TriggerSleepAction(0.20)
call ForGroupBJ(udg_groups02[401],function Trig_anqishuwuxiansanhua_Func010A)
call RemoveLocation(udg_locations03[402])
call GroupClear(udg_groups02[401])
endfunction
function Trig_anqishushuanggun_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ACfb'))
endfunction
function Trig_anqishushuanggun_Actions takes nothing returns nothing
set udg_units31[101]=GetTriggerUnit()
set udg_units31[102]=GetSpellTargetUnit()
call TriggerSleepAction(0.05)
call PauseUnit(udg_units31[101],true)
set udg_integers12[0]=0
set udg_locations03[411]=PolarProjectionBJ(GetUnitLoc(udg_units31[101]),64.00,AngleBetweenPoints(GetUnitLoc(udg_units31[101]),GetUnitLoc(udg_units31[102])))
set udg_locations03[412]=GetUnitLoc(udg_units31[102])
call CreateNUnitsAtLocFacingLocBJ(1,'nbee',GetOwningPlayer(GetTriggerUnit()),udg_locations03[411],udg_locations03[412])
set udg_units32[0]=bj_lastCreatedUnit
call RemoveLocation(udg_locations03[411])
call RemoveLocation(udg_locations03[412])
call EnableTrigger(udg_trigger325)
endfunction
function Trig_anqishushuanggun1_Func001Func001C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_units32[udg_integers12[0]]),GetUnitLoc(udg_units31[102]))<=60.00))or((udg_booleans01[101]))
endfunction
function Trig_anqishushuanggun1_Func001Func002C takes nothing returns boolean
return((udg_booleans01[101]==false))
endfunction
function Trig_anqishushuanggun1_Func001Func003C takes nothing returns boolean
return((udg_integers12[0]==0))
endfunction
function Trig_anqishushuanggun1_Func001C takes nothing returns boolean
return((((DistanceBetweenPoints(GetUnitLoc(udg_units32[udg_integers12[0]]),GetUnitLoc(udg_units31[102]))<=60.00))or((udg_booleans01[101]))))
endfunction
function Trig_anqishushuanggun1_Actions takes nothing returns nothing
if((((DistanceBetweenPoints(GetUnitLoc(udg_units32[udg_integers12[0]]),GetUnitLoc(udg_units31[102]))<=60.00))or((udg_booleans01[101]))))then
if((udg_booleans01[101]==false))then
set udg_booleans01[101]=true
call PauseUnit(udg_units31[102],true)
endif
if((udg_integers12[0]==0))then
call DisableTrigger(GetTriggeringTrigger())
set udg_booleans01[101]=false
set udg_locations03[411]=GetUnitLoc(udg_units32[0])
call SetUnitX(udg_units31[102],GetLocationX(udg_locations03[411]))
call SetUnitY(udg_units31[102],GetLocationY(udg_locations03[411]))
call AddSpecialEffectLocBJ(udg_locations01[411],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call KillUnit(udg_units32[0])
call KillUnit(udg_units32[udg_integers12[0]])
call SetUnitAnimation(udg_units31[101],"attack")
call TriggerSleepAction(0.10)
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=10
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CreateNUnitsAtLoc(1,'even',GetOwningPlayer(udg_units31[101]),udg_locations03[411],GetUnitFacing(udg_units31[101]))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,(60.00+(10.00*I2R(bj_forLoopAIndex))))
call UnitApplyTimedLifeBJ(0.50,'BTLF',bj_lastCreatedUnit)
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call RemoveLocation(udg_locations03[411])
call PauseUnit(udg_units31[101],false)
set udg_reals01[411]=GetUnitFacing(udg_units31[101])
call EnableTrigger(udg_trigger326)
call TriggerSleepAction(0.60)
call DisableTrigger(udg_trigger326)
call PauseUnit(udg_units31[102],false)
call UnitDamageTarget(udg_units31[101],udg_units31[102],(I2R(GetHeroStatBJ(1,udg_units31[101],true))*I2R(GetUnitAbilityLevel(udg_units31[101],'ACfb'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
set udg_locations03[411]=GetUnitLoc(udg_units32[udg_integers12[0]])
call SetUnitX(udg_units31[102],GetLocationX(udg_locations03[411]))
call SetUnitY(udg_units31[102],GetLocationY(udg_locations03[411]))
call AddSpecialEffectLocBJ(udg_locations01[411],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[411])
call KillUnit(udg_units32[udg_integers12[0]])
set udg_integers12[0]=(udg_integers12[0]-1)
endif
else
set udg_locations03[411]=PolarProjectionBJ(GetUnitLoc(udg_units32[udg_integers12[0]]),30.00,AngleBetweenPoints(GetUnitLoc(udg_units32[udg_integers12[0]]),GetUnitLoc(udg_units31[102])))
set udg_locations03[412]=GetUnitLoc(udg_units31[102])
call CreateNUnitsAtLocFacingLocBJ(1,'nbee',GetOwningPlayer(udg_units31[101]),udg_locations03[411],udg_locations03[412])
set udg_integers12[0]=(udg_integers12[0]+1)
set udg_units32[udg_integers12[0]]=bj_lastCreatedUnit
call RemoveLocation(udg_locations03[411])
call RemoveLocation(udg_locations03[412])
endif
endfunction
function Trig_anqishushuanggun2_Actions takes nothing returns nothing
set udg_locations03[411]=PolarProjectionBJ(GetUnitLoc(udg_units31[102]),32.00,udg_reals01[411])
call SetUnitPositionLoc(udg_units31[102],udg_locations03[411])
call AddSpecialEffectLocBJ(udg_locations03[411],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[411])
endfunction
function Trig_xueguanshufu_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AEer'))
endfunction
function Trig_xueguanshufu_Func007001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_xueguanshufu_Func007001003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_xueguanshufu_Func007001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))
endfunction
function Trig_xueguanshufu_Func007001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_xueguanshufu_Func007001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_xueguanshufu_Func007Func001C takes nothing returns boolean
if(not(GetEnumUnit()!=GetSpellTargetUnit()))then
return false
endif
return true
endfunction
function Trig_xueguanshufu_Func007A takes nothing returns nothing
if(Trig_xueguanshufu_Func007Func001C())then
call CreateNUnitsAtLoc(1,'hsor',GetOwningPlayer(GetTriggerUnit()),udg_locations03[612],GetUnitFacing(GetTriggerUnit()))
call SetUnitAbilityLevel(bj_lastCreatedUnit,'Aenr',GetUnitAbilityLevel(GetTriggerUnit(),'AEer'))
call IssueTargetOrder(bj_lastCreatedUnit,"entanglingroots",GetEnumUnit())
call UnitApplyTimedLifeBJ(6.00,'BTLF',bj_lastCreatedUnit)
set udg_locations03[613]=GetUnitLoc(GetEnumUnit())
call DestroyEffect(bj_lastCreatedEffect)
endif
endfunction
function Trig_xueguanshufu_Actions takes nothing returns nothing
set udg_locations03[612]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[165]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[612],200.00,200.00))
call AddSpecialEffectLocBJ(udg_locations03[165],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[165])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations01[612])
set udg_locations03[612]=GetUnitLoc(GetSpellTargetUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[165]=PolarProjectionBJ(udg_locations03[612],40.00,(72.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLocFacingLocBJ(1,'nvlw',GetOwningPlayer(GetTriggerUnit()),udg_locations03[165],udg_locations03[612])
call UnitApplyTimedLifeBJ(5.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[165])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call AddSpecialEffectLocBJ(udg_locations03[612],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations03[612],Condition(function Trig_xueguanshufu_Func007001003)),function Trig_xueguanshufu_Func007A)
call RemoveLocation(udg_locations01[612])
endfunction
function Trig_xueguanshufu2_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='Aenr'))
endfunction
function Trig_xueguanshufu2_Actions takes nothing returns nothing
set udg_locations03[613]=GetUnitLoc(GetSpellTargetUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[165]=PolarProjectionBJ(udg_locations03[613],40.00,(72.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLocFacingLocBJ(1,'nvlw',GetOwningPlayer(GetTriggerUnit()),udg_locations03[165],udg_locations03[613])
call UnitApplyTimedLifeBJ(5.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[165])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call AddSpecialEffectLocBJ(udg_locations03[613],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations01[613])
endfunction
function Trig_yinghuashu1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AOws'))
endfunction
function Trig_yinghuashu1_Func005001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_yinghuashu1_Func005001003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_yinghuashu1_Func005001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))
endfunction
function Trig_yinghuashu1_Func005001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_yinghuashu1_Func005001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_yinghuashu1_Func005A takes nothing returns nothing
call UnitAddAbility(GetEnumUnit(),'Amrf')
call SetUnitFlyHeight(GetEnumUnit(),200.00,1000.00)
call UnitRemoveAbility(GetEnumUnit(),'Amrf')
call GroupAddUnit(udg_groups02[517],GetEnumUnit())
endfunction
function Trig_yinghuashu1_Func008A takes nothing returns nothing
call SetUnitFlyHeight(GetEnumUnit(),0.00,2000.00)
endfunction
function Trig_yinghuashu1_Actions takes nothing returns nothing
call SetUnitInvulnerable(GetTriggerUnit(),true)
set udg_locations03[609]=GetUnitLoc(GetTriggerUnit())
call SetUnitVertexColorBJ(GetTriggerUnit(),15.00,0.00,15.00,0)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[165]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[609],400.00,400.00))
call AddSpecialEffectLocBJ(udg_locations03[165],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[165])
set udg_locations03[165]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[609],400.00,400.00))
call AddSpecialEffectLocBJ(udg_locations03[165],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[165])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[609],Condition(function Trig_yinghuashu1_Func005001003)),function Trig_yinghuashu1_Func005A)
call EnableTrigger(udg_trigger330)
call TriggerSleepAction(0.20)
call ForGroupBJ(udg_groups02[517],function Trig_yinghuashu1_Func008A)
call TriggerSleepAction(0.10)
call DisableTrigger(udg_trigger330)
call GroupClear(udg_groups02[517])
call RemoveLocation(udg_locations01[609])
call TriggerSleepAction(1.70)
call SetUnitVertexColorBJ(GetTriggerUnit(),100,100,100,0)
call SetUnitInvulnerable(GetTriggerUnit(),false)
endfunction
function Trig_yinghuashu_Func001A takes nothing returns nothing
set udg_locations03[611]=GetUnitLoc(GetEnumUnit())
set udg_locations03[610]=PolarProjectionBJ(udg_locations03[611],15.00,AngleBetweenPoints(udg_locations03[609],udg_locations03[611]))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations03[610]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations03[610]))
call RemoveLocation(udg_locations03[611])
call RemoveLocation(udg_locations03[610])
endfunction
function Trig_yinghuashu_Actions takes nothing returns nothing
call ForGroupBJ(udg_groups02[517],function Trig_yinghuashu_Func001A)
endfunction
function Trig_yinghuashutiequan_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ANsb'))
endfunction
function Trig_yinghuashutiequan_Actions takes nothing returns nothing
set udg_units26[616]=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
set udg_locations03[613]=GetUnitLoc(GetTriggerUnit())
set udg_locations03[614]=GetUnitLoc(udg_units26[616])
call SetUnitVertexColorBJ(GetTriggerUnit(),15.00,0.00,15.00,0)
set udg_locations03[616]=PolarProjectionBJ(udg_locations03[614],75.00,AngleBetweenPoints(udg_locations03[614],udg_locations03[613]))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=(R2I(DistanceBetweenPoints(udg_locations03[613],udg_locations03[616]))/40)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[615]=PolarProjectionBJ(udg_locations03[613],(40.00*I2R(bj_forLoopAIndex)),AngleBetweenPoints(udg_locations03[613],udg_locations03[614]))
call CreateNUnitsAtLocFacingLocBJ(1,'nvil',GetOwningPlayer(GetTriggerUnit()),udg_locations03[615],udg_locations03[614])
call SetUnitTimeScale(bj_lastCreatedUnit,10.00)
call SetUnitAnimationByIndex(bj_lastCreatedUnit,0)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100,100,100,(100.00-(4.00*I2R(bj_forLoopAIndex))))
call UnitApplyTimedLifeBJ((0.05+(0.03*I2R(bj_forLoopAIndex))),'BTLF',bj_lastCreatedUnit)
call AddSpecialEffectLocBJ(udg_locations03[615],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[615])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitPositionLoc(GetTriggerUnit(),udg_locations03[616])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'uarb',GetOwningPlayer(GetTriggerUnit()),udg_locations03[616],GetUnitFacing(GetTriggerUnit()))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,(130.00+(10.00*I2R(bj_forLoopAIndex))))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'nvl2',GetOwningPlayer(GetTriggerUnit()),udg_locations03[616],GetUnitFacing(GetTriggerUnit()))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call UnitApplyTimedLifeBJ(5.00,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call UnitDamageTarget(GetTriggerUnit(),udg_units26[616],(120.00*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'ANsb'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call EnableTrigger(udg_trigger332)
call TriggerSleepAction(0.60)
call DisableTrigger(udg_trigger332)
call RemoveLocation(udg_locations01[613])
call RemoveLocation(udg_locations01[614])
call RemoveLocation(udg_locations01[616])
call SetUnitVertexColorBJ(GetTriggerUnit(),100,100,100,0)
endfunction
function Trig_yinghuashutiequan2_Actions takes nothing returns nothing
set udg_locations03[611]=GetUnitLoc(udg_units26[616])
set udg_locations03[610]=PolarProjectionBJ(udg_locations03[611],28.00,AngleBetweenPoints(udg_locations03[613],udg_locations03[611]))
call SetUnitPositionLoc(udg_units26[616],udg_locations03[610])
call AddSpecialEffectLocBJ(udg_locations03[610],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[611])
call RemoveLocation(udg_locations03[610])
endfunction
function Trig_duoquxinzang_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ANso'))
endfunction
function Trig_duoquxinzang_Actions takes nothing returns nothing
set udg_units31[555]=GetTriggerUnit()
set udg_units31[556]=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
call PauseUnit(GetTriggerUnit(),true)
call PauseUnit(udg_units31[555],true)
call PauseUnit(udg_units31[556],true)
call SetUnitPathing(udg_units31[556],false)
call SetUnitAnimationByIndex(GetTriggerUnit(),3)
call EnableTrigger(udg_trigger334)
endfunction
function Trig_duoquxinzang2_Func007Func013Func004C takes nothing returns boolean
return((IsUnitType(udg_units31[556],UNIT_TYPE_HERO)==false))or((GetUnitStateSwap(UNIT_STATE_LIFE,udg_units31[556])<=(700.00*I2R(GetUnitAbilityLevelSwapped('ANso',udg_units31[555])))))
endfunction
function Trig_duoquxinzang2_Func007Func013C takes nothing returns boolean
return((((IsUnitType(udg_units31[556],UNIT_TYPE_HERO)==false))or((GetUnitStateSwap(UNIT_STATE_LIFE,udg_units31[556])<=(700.00*I2R(GetUnitAbilityLevelSwapped('ANso',udg_units31[555])))))))
endfunction
function Trig_duoquxinzang2_Func007C takes nothing returns boolean
return((DistanceBetweenPoints(udg_locations03[615],udg_locations03[617])<=120.00))
endfunction
function Trig_duoquxinzang2_Actions takes nothing returns nothing
set udg_locations03[615]=GetUnitLoc(udg_units31[556])
set udg_locations03[617]=GetUnitLoc(udg_units31[555])
set udg_locations03[616]=PolarProjectionBJ(udg_locations03[615],30.00,AngleBetweenPoints(udg_locations03[615],udg_locations03[617]))
call SetUnitPositionLoc(udg_units31[556],udg_locations03[616])
call AddSpecialEffectLocBJ(udg_locations03[616],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
if((DistanceBetweenPoints(udg_locations03[615],udg_locations03[617])<=120.00))then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitTimeScalePercent(udg_units31[555],0.00)
set udg_locations03[658]=GetUnitLoc(udg_units31[556])
set udg_integers02[555]=1
loop
exitwhen udg_integers02[555]>5
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[165]=PolarProjectionBJ(udg_locations03[658],70.00,(72.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLocFacingLocBJ(1,'nske',GetOwningPlayer(udg_units31[555]),udg_locations03[165],udg_locations03[658])
call KillUnit(bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[165])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.10)
set udg_integers02[555]=udg_integers02[555]+1
endloop
call SetUnitTimeScalePercent(udg_units31[555],100.00)
call SetUnitAnimationByIndex(udg_units31[4],4)
call CreateNUnitsAtLoc(1,'ncat',GetOwningPlayer(udg_units31[555]),udg_locations03[658],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(0.50,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[658])
set udg_locations03[658]=GetUnitLoc(udg_units31[555])
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations03[658])
call TriggerSleepAction(0.10)
if((((IsUnitType(udg_units31[556],UNIT_TYPE_HERO)==false))or((GetUnitStateSwap(UNIT_STATE_LIFE,udg_units31[556])<=(700.00*I2R(GetUnitAbilityLevelSwapped('ANso',udg_units31[555])))))))then
call UnitDamageTarget(udg_units31[555],udg_units31[556],1000000000.00,true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call SetUnitLifePercentBJ(udg_units31[555],(GetUnitLifePercent(udg_units31[555])+20.00))
else
call UnitDamageTarget(udg_units31[555],udg_units31[556],(700.00*I2R(GetUnitAbilityLevel(udg_units31[555],'ANso'))),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
call PauseUnit(udg_units31[555],false)
call PauseUnit(udg_units31[556],false)
call SetUnitPathing(udg_units31[556],true)
endif
call RemoveLocation(udg_locations03[615])
call RemoveLocation(udg_locations03[616])
call RemoveLocation(udg_locations03[617])
endfunction
function Trig_toukeku_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A008'))
endfunction
function Trig_toukeku_Func008A takes nothing returns nothing
call SetUnitFacing(GetEnumUnit(),udg_reals01[554])
endfunction
function Trig_toukeku_Func011A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_toukeku_Actions takes nothing returns nothing
set udg_units31[555]=GetTriggerUnit()
set udg_locations03[609]=GetUnitLoc(GetTriggerUnit())
set udg_reals01[554]=GetUnitFacing(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'ndrl',GetOwningPlayer(GetTriggerUnit()),udg_locations03[609],((udg_reals01[554]-50.00)+(20.00*I2R(bj_forLoopAIndex))))
call GroupAddUnit(udg_groups04[0],bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations01[609])
call EnableTrigger(udg_trigger336)
call TriggerSleepAction(0.50)
call ForGroupBJ(udg_groups04[0],function Trig_toukeku_Func008A)
call TriggerSleepAction(0.50)
call DisableTrigger(udg_trigger336)
call ForGroupBJ(udg_groups04[0],function Trig_toukeku_Func011A)
call GroupClear(udg_groups04[0])
endfunction
function Trig_toukeku2_Func001Func008001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_toukeku2_Func001Func008001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[555])))
endfunction
function Trig_toukeku2_Func001Func008001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[555]))))
endfunction
function Trig_toukeku2_Func001Func008A takes nothing returns nothing
call UnitDamageTarget(udg_units31[555],GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_units31[555],true))/2.00),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_toukeku2_Func001A takes nothing returns nothing
set udg_locations03[611]=GetUnitLoc(GetEnumUnit())
set udg_locations03[610]=PolarProjectionBJ(udg_locations03[611],45.00,GetUnitFacing(GetEnumUnit()))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations03[610]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations03[610]))
call AddSpecialEffectLocBJ(udg_locations03[610],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[610],Condition(function Trig_toukeku2_Func001Func008001003)),function Trig_toukeku2_Func001Func008A)
call RemoveLocation(udg_locations03[611])
call RemoveLocation(udg_locations03[610])
endfunction
function Trig_toukeku2_Actions takes nothing returns nothing
call ForGroupBJ(udg_groups04[0],function Trig_toukeku2_Func001A)
endfunction
function Trig_fengdunyahai_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ACc3'))
endfunction
function Trig_fengdunyahai_Func008A takes nothing returns nothing
call SetUnitFacing(GetEnumUnit(),udg_reals01[554])
endfunction
function Trig_fengdunyahai_Func011A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_fengdunyahai_Actions takes nothing returns nothing
set udg_units31[555]=GetTriggerUnit()
set udg_locations03[609]=GetUnitLoc(GetTriggerUnit())
set udg_reals01[554]=GetUnitFacing(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'ndrt',GetOwningPlayer(GetTriggerUnit()),udg_locations03[609],((udg_reals01[554]-75.00)+(30.00*I2R(bj_forLoopAIndex))))
call GroupAddUnit(udg_groups04[1],bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations01[609])
call EnableTrigger(udg_trigger338)
call TriggerSleepAction(0.50)
call ForGroupBJ(udg_groups04[1],function Trig_fengdunyahai_Func008A)
call TriggerSleepAction(0.50)
call DisableTrigger(udg_trigger338)
call ForGroupBJ(udg_groups04[1],function Trig_fengdunyahai_Func011A)
call GroupClear(udg_groups04[1])
endfunction
function Trig_fengdunyahai2_Func001Func013001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_fengdunyahai2_Func001Func013001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[555])))
endfunction
function Trig_fengdunyahai2_Func001Func013001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units31[555]))))
endfunction
function Trig_fengdunyahai2_Func001Func013A takes nothing returns nothing
call UnitDamageTarget(udg_units31[555],GetEnumUnit(),80.00,true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_fengdunyahai2_Func001A takes nothing returns nothing
set udg_locations03[611]=GetUnitLoc(GetEnumUnit())
set udg_locations03[610]=PolarProjectionBJ(udg_locations03[611],30.00,GetUnitFacing(GetEnumUnit()))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations03[610]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations03[610]))
call AddSpecialEffectLocBJ(udg_locations03[610],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateNUnitsAtLoc(1,'zcso',GetOwningPlayer(GetEnumUnit()),udg_locations03[610],GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(0.40,'BTLF',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(50.00,250.00),200.00)
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations03[612])
set udg_locations03[610]=PolarProjectionBJ(udg_locations03[610],200.00,GetUnitFacing(bj_lastCreatedUnit))
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[610],Condition(function Trig_fengdunyahai2_Func001Func013001003)),function Trig_fengdunyahai2_Func001Func013A)
call RemoveLocation(udg_locations03[611])
call RemoveLocation(udg_locations03[610])
endfunction
function Trig_fengdunyahai2_Actions takes nothing returns nothing
call ForGroupBJ(udg_groups04[1],function Trig_fengdunyahai2_Func001A)
endfunction
function Trig_banshenteshu_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ANrg'))
endfunction
function Trig_banshenteshu_Func002C takes nothing returns boolean
return((udg_booleans01[610]==false))
endfunction
function Trig_banshenteshu_Actions takes nothing returns nothing
set udg_units31[627]=GetTriggerUnit()
if((udg_booleans01[610]==false))then
call TriggerRegisterUnitLifeEvent(udg_trigger340,udg_units31[627],LESS_THAN_OR_EQUAL,0.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000__:_______________! |r")
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'ANsb',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'AOws',false)
set udg_booleans01[610]=true
else
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'AOws',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'ANsb',true)
set udg_booleans01[610]=false
endif
endfunction
function Trig_banshenteshu_2_Conditions takes nothing returns boolean
return((GetTriggerUnit()==udg_units31[627]))
endfunction
function Trig_banshenteshu_2_Actions takes nothing returns nothing
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'AOws',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'ANsb',true)
set udg_booleans01[610]=false
endfunction
function Trig_banshenxiezi_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ANg1'))
endfunction
function Trig_banshenxiezi_Func003C takes nothing returns boolean
return((udg_booleans01[611]==false))
endfunction
function Trig_banshenxiezi_Actions takes nothing returns nothing
set udg_units31[628]=GetTriggerUnit()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[90]=GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(GetTriggerUnit()),250.00,250.00))
call CreateNUnitsAtLoc(1,'zhyd',GetOwningPlayer(GetTriggerUnit()),udg_locations03[90],GetRandomReal(0,360))
call RemoveLocation(udg_locations03[90])
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(50.00,200.00),100.00)
set udg_locations03[90]=PolarProjectionBJ(GetUnitLoc(bj_lastCreatedUnit),400.00,GetUnitFacing(bj_lastCreatedUnit))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations03[90])
call RemoveLocation(udg_locations03[90])
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if((udg_booleans01[611]==false))then
call TriggerRegisterUnitLifeEvent(udg_trigger342,udg_units31[628],LESS_THAN_OR_EQUAL,0.00)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A052',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A047',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'AOsh',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'AEIl',false)
set udg_booleans01[611]=true
else
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A052',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A047',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'AOsh',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'AEIl',true)
set udg_booleans01[611]=false
endif
endfunction
function Trig_banshenteshu_3_Conditions takes nothing returns boolean
return((GetTriggerUnit()==udg_units31[628]))
endfunction
function Trig_banshenteshu_3_Actions takes nothing returns nothing
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A052',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A047',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'AOsh',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'AEIl',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'ANg1',true)
set udg_booleans01[611]=false
endfunction
function Trig_banshenxiezi_2_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AEIl'))
endfunction
function Trig_banshenxiezi_2_Func003C takes nothing returns boolean
return((udg_booleans01[611]==false))
endfunction
function Trig_banshenxiezi_2_Actions takes nothing returns nothing
set udg_units31[628]=GetTriggerUnit()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[90]=GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(GetTriggerUnit()),250.00,250.00))
call CreateNUnitsAtLoc(1,'zhyd',GetOwningPlayer(GetTriggerUnit()),udg_locations03[90],GetRandomReal(0,360))
call RemoveLocation(udg_locations03[90])
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(50.00,200.00),100.00)
set udg_locations03[90]=PolarProjectionBJ(GetUnitLoc(bj_lastCreatedUnit),400.00,GetUnitFacing(bj_lastCreatedUnit))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations03[90])
call RemoveLocation(udg_locations03[90])
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if((udg_booleans01[611]==false))then
call TriggerRegisterUnitLifeEvent(udg_trigger342,udg_units31[628],LESS_THAN_OR_EQUAL,0.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000_:____________,__,__________________ |r")
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A052',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A047',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'AOsh',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'ANg1',false)
set udg_booleans01[611]=true
else
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A052',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A047',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'AOsh',true)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'ANg1',true)
set udg_booleans01[611]=false
endif
endfunction
function Trig_tiexiewei_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AOsh'))
endfunction
function Trig_tiexiewei_Actions takes nothing returns nothing
call SetUnitAnimationByIndex(GetTriggerUnit(),3)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=4
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set udg_locations03[113]=GetRandomLocInRect(RectFromCenterSizeBJ(PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),(30.00*I2R(bj_forLoopAIndex)),GetUnitFacing(GetTriggerUnit())),160.00,160.00))
call AddSpecialEffectLocBJ(udg_locations03[113],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[113])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set udg_locations03[113]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),(30.00*I2R(bj_forLoopAIndex)),GetUnitFacing(GetTriggerUnit()))
call AddSpecialEffectLocBJ(udg_locations03[113],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[113])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_feisuo_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ACss'))
endfunction
function Trig_feisuo_Actions takes nothing returns nothing
set udg_units30[203]=GetTriggerUnit()
set udg_units26[203]=GetSpellTargetUnit()
call TriggerSleepAction(0.05)
call SetUnitAnimationByIndex(GetTriggerUnit(),5)
call PauseUnit(udg_units30[203],true)
call TriggerSleepAction(0.40)
call PauseUnit(udg_units26[203],true)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectTargetUnitBJ("head",udg_units30[203],"Abilities\\Weapons\\SerpentWardMissile\\SerpentWardMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitPositionLoc(udg_units26[203],PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),400.00,GetUnitFacing(GetTriggerUnit())))
call SetUnitPathing(udg_units26[203],false)
call EnableTrigger(udg_trigger346)
call TriggerSleepAction(0.60)
call DisableTrigger(udg_trigger346)
call UnitDamageTarget(GetTriggerUnit(),udg_units26[203],(I2R(GetHeroStatBJ(2,GetTriggerUnit(),true))*10.00),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call PauseUnit(udg_units26[203],false)
call PauseUnit(udg_units30[203],false)
call SetUnitPathing(udg_units26[203],true)
endfunction
function Trig_feisuo2_Actions takes nothing returns nothing
set udg_locations03[200]=PolarProjectionBJ(GetUnitLoc(udg_units26[203]),20.00,AngleBetweenPoints(GetUnitLoc(udg_units26[203]),GetUnitLoc(udg_units30[203])))
call SetUnitPositionLoc(udg_units26[203],udg_locations03[200])
call AddSpecialEffectLocBJ(udg_locations03[200],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[200])
endfunction
function Trig_tujihuoqiang_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ACcv'))
endfunction
function Trig_tujihuoqiang_Actions takes nothing returns nothing
set udg_units31[901]=GetTriggerUnit()
call SetUnitMoveSpeed(GetTriggerUnit(),0.00)
call EnableTrigger(udg_trigger348)
call TriggerSleepAction(1.50)
call DisableTrigger(udg_trigger348)
call SetUnitMoveSpeed(GetTriggerUnit(),GetUnitDefaultMoveSpeed(GetTriggerUnit()))
endfunction
function Trig_tujihuoqiang_2_Actions takes nothing returns nothing
set udg_locations03[901]=PolarProjectionBJ(GetUnitLoc(udg_units31[901]),100.00,GetUnitFacing(udg_units31[901]))
call CreateNUnitsAtLoc(1,'nanc',GetOwningPlayer(udg_units31[901]),udg_locations03[901],GetUnitFacing(udg_units31[901]))
call UnitApplyTimedLifeBJ(1.30,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[901])
set udg_locations03[901]=PolarProjectionBJ(GetUnitLoc(udg_units31[901]),1500.00,GetUnitFacing(udg_units31[901]))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations03[901])
endfunction
function Trig_tieshafangyu_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A07W'))
endfunction
function Trig_tieshafangyu_Func010001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_tieshafangyu_Func010001003002 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_tieshafangyu_Func010001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_tieshafangyu_Func010A takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),true)
call GroupAddUnit(udg_groups03[36],GetEnumUnit())
endfunction
function Trig_tieshafangyu_Func013A takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),false)
call GroupRemoveUnit(udg_groups03[36],GetEnumUnit())
endfunction
function Trig_tieshafangyu_Actions takes nothing returns nothing
call TriggerSleepAction(0.10)
call PauseUnit(GetTriggerUnit(),true)
set udg_locations03[90]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'onzg',GetOwningPlayer(GetTriggerUnit()),udg_locations03[90],GetUnitFacing(GetTriggerUnit()))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call RemoveLocation(udg_locations03[90])
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,50.00)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_tieshafangyu_Func010001003)),function Trig_tieshafangyu_Func010A)
call TriggerSleepAction(3.00)
call PauseUnit(GetTriggerUnit(),false)
call ForGroupBJ(udg_groups03[36],function Trig_tieshafangyu_Func013A)
endfunction
function Trig_jiguanduwu_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ACwe'))
endfunction
function Trig_jiguanduwu_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=16
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[90]=GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(GetTriggerUnit()),400.00,400.00))
call CreateNUnitsAtLoc(1,'hprt',GetOwningPlayer(GetTriggerUnit()),udg_locations03[90],GetRandomReal(0,360))
call RemoveLocation(udg_locations03[90])
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(50.00,200.00),100.00)
set udg_locations03[90]=PolarProjectionBJ(GetUnitLoc(bj_lastCreatedUnit),400.00,GetUnitFacing(bj_lastCreatedUnit))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations03[90])
call RemoveLocation(udg_locations03[90])
call UnitApplyTimedLifeBJ(10.00,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_KanJL_Q1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A05J'))
endfunction
function Trig_KanJL_Q1_Actions takes nothing returns nothing
set udg_units39[0]=GetTriggerUnit()
set udg_locations09[0]=GetSpellTargetLoc()
set udg_locations09[1]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'n006',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(5.00,'BTLF',bj_lastCreatedUnit)
call CreateNUnitsAtLocFacingLocBJ(1,'h004',GetOwningPlayer(GetTriggerUnit()),udg_locations09[1],udg_locations09[0])
call SetUnitAnimation(bj_lastCreatedUnit,"spell")
set udg_units43[0]=bj_lastCreatedUnit
call PauseUnit(udg_units43[0],true)
call SetUnitScalePercent(udg_units43[0],300.00,300.00,300.00)
call SetUnitAnimation(udg_units43[0],"spell two")
call TriggerSleepAction(0.20)
set udg_integer13=0
call StartTimerBJ(udg_timer03,true,0.05)
call RemoveLocation(udg_locations09[0])
call RemoveLocation(udg_locations09[1])
endfunction
function Trig_KanJL_Q2_Func003Func009002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_KanJL_Q2_Func003Func009002003002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units39[0])))
endfunction
function Trig_KanJL_Q2_Func003Func009002003002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group09)==false)
endfunction
function Trig_KanJL_Q2_Func003Func009002003002 takes nothing returns boolean
return GetBooleanAnd((IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units39[0]))),(IsUnitInGroup(GetFilterUnit(),udg_group09)==false))
endfunction
function Trig_KanJL_Q2_Func003Func009002003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(GetBooleanAnd((IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units39[0]))),(IsUnitInGroup(GetFilterUnit(),udg_group09)==false))))
endfunction
function Trig_KanJL_Q2_Func003Func010Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)))then
return false
endif
return true
endfunction
function Trig_KanJL_Q2_Func003Func010A takes nothing returns nothing
if(Trig_KanJL_Q2_Func003Func010Func001C())then
call UnitDamageTarget(udg_units39[0],GetEnumUnit(),((7.00+I2R(GetHeroStatBJ(2,udg_units39[0],true)))*(0.20*I2R(GetUnitAbilityLevel(udg_units39[0],'A05J')))),true,false,ATTACK_TYPE_MELEE,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
call UnitDamageTarget(udg_units39[0],GetEnumUnit(),((8.00+I2R(GetHeroStatBJ(1,udg_units39[0],true)))*(0.20*I2R(GetUnitAbilityLevel(udg_units39[0],'A05J')))),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
endfunction
function Trig_KanJL_Q2_Func003C takes nothing returns boolean
return((udg_integer13<15))
endfunction
function Trig_KanJL_Q2_Func004C takes nothing returns boolean
return((udg_integer13>=30))
endfunction
function Trig_KanJL_Q2_Actions takes nothing returns nothing
set udg_integer13=(udg_integer13+1)
call SetUnitFacing(udg_units43[0],(GetUnitFacing(udg_units43[0])+GetRandomReal(-15.00,15.00)))
if((udg_integer13<15))then
set udg_real13=(0.80+(0.30*I2R(udg_integer13)))
set udg_reals07[udg_integer13]=GetUnitX(udg_units43[(udg_integer13-1)])
set udg_reals08[udg_integer13]=GetUnitY(udg_units43[(udg_integer13-1)])
set udg_reals06[udg_integer13]=GetUnitFacing(udg_units43[(udg_integer13-1)])
set udg_units43[udg_integer13]=CreateUnit(GetOwningPlayer(udg_units39[0]),'e004',(udg_reals07[udg_integer13]+(75.00*CosBJ(udg_reals06[udg_integer13]))),(udg_reals08[udg_integer13]+(75.00*SinBJ(udg_reals06[udg_integer13]))),udg_reals06[udg_integer13])
call SetUnitAbilityLevel(udg_units43[udg_integer13],'A08O',GetUnitAbilityLevel(udg_units39[0],'A05J'))
call SetUnitFlyHeight(udg_units43[udg_integer13],(50.00+(5.00*I2R(udg_integer13))),0.00)
call SetUnitScale(udg_units43[udg_integer13],udg_real13,udg_real13,udg_real13)
set udg_group09=GetUnitsInRangeOfLocMatching(300.00,Location(udg_reals07[udg_integer13],udg_reals08[udg_integer13]),Condition(function Trig_KanJL_Q2_Func003Func009002003))
call ForGroupBJ(udg_group09,function Trig_KanJL_Q2_Func003Func010A)
endif
if((udg_integer13>=30))then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer13
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call KillUnit(udg_units43[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseTimerBJ(true,udg_timer03)
call RemoveUnit(udg_units43[0])
call SelectUnitForPlayerSingle(udg_units39[0],GetOwningPlayer(udg_units39[0]))
call DestroyGroup(udg_group09)
endif
endfunction
function Trig_Kanjl_W1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A08I'))
endfunction
function Trig_Kanjl_W1_Actions takes nothing returns nothing
set udg_locations01[10]=GetUnitLoc(GetTriggerUnit())
set udg_units15[8]=GetSpellTargetUnit()
set udg_locations01[15]=PolarProjectionBJ(udg_locations01[10],78.00,GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'n007',GetOwningPlayer(GetTriggerUnit()),udg_locations01[15],GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'hwt2',GetOwningPlayer(GetTriggerUnit()),udg_locations01[15],GetUnitFacing(GetTriggerUnit()))
call UnitAddAbility(bj_lastCreatedUnit,'A02Q')
set udg_units15[7]=bj_lastCreatedUnit
call SetUnitAnimation(bj_lastCreatedUnit,"walk")
call RemoveLocation(udg_locations01[10])
call RemoveLocation(udg_locations01[15])
call EnableTrigger(udg_trigger354)
endfunction
function Trig_Kanjl_W2_Func003Func001C takes nothing returns boolean
return((DistanceBetweenPoints(udg_locations03[16],udg_locations03[17])<=100.00))or((DistanceBetweenPoints(udg_locations03[16],udg_locations03[17])>=1500.00))
endfunction
function Trig_Kanjl_W2_Func003Func002Func012C takes nothing returns boolean
return((IsTerrainPathableBJ(udg_locations03[18],PATHING_TYPE_WALKABILITY)==false))
endfunction
function Trig_Kanjl_W2_Func003Func002C takes nothing returns boolean
return((udg_integers18[17]==15))
endfunction
function Trig_Kanjl_W2_Func003C takes nothing returns boolean
return((((DistanceBetweenPoints(udg_locations03[16],udg_locations03[17])<=100.00))or((DistanceBetweenPoints(udg_locations03[16],udg_locations03[17])>=1500.00))))
endfunction
function Trig_Kanjl_W2_Actions takes nothing returns nothing
set udg_locations03[16]=GetUnitLoc(udg_units15[7])
set udg_locations03[17]=GetUnitLoc(udg_units15[8])
if((((DistanceBetweenPoints(udg_locations03[16],udg_locations03[17])<=100.00))or((DistanceBetweenPoints(udg_locations03[16],udg_locations03[17])>=1500.00))))then
if((udg_integers18[17]==15))then
call DisableTrigger(GetTriggeringTrigger())
set udg_integers18[17]=0
call CreateNUnitsAtLoc(1,'n007',GetOwningPlayer(udg_unit52),udg_locations03[16],GetUnitFacing(udg_units15[7]))
call RemoveUnit(udg_units15[7])
call UnitDamageTarget(udg_unit52,udg_units15[8],(I2R(GetUnitAbilityLevelSwapped('A08I',udg_unit52))*I2R(GetHeroStatBJ(2,udg_unit52,true))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
set udg_integers18[17]=(udg_integers18[17]+1)
set udg_locations03[18]=PolarProjectionBJ(udg_locations03[16],30.00,GetUnitFacing(udg_units15[7]))
call SetUnitPositionLoc(udg_units15[7],udg_locations03[18])
call RemoveLocation(udg_locations03[18])
set udg_locations03[18]=PolarProjectionBJ(udg_locations03[16],120.00,GetUnitFacing(udg_units15[7]))
call SetUnitAnimation(udg_units15[7],"attack")
if((IsTerrainPathableBJ(udg_locations03[18],PATHING_TYPE_WALKABILITY)==false))then
call SetUnitPositionLoc(udg_units15[8],udg_locations03[18])
else
set udg_integers18[17]=15
endif
call AddSpecialEffectLocBJ(udg_locations03[16],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[18],"Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[18])
endif
else
set udg_locations03[18]=PolarProjectionBJ(udg_locations03[16],30.00,AngleBetweenPoints(udg_locations03[16],udg_locations03[17]))
call SetUnitPositionLocFacingLocBJ(udg_units15[7],udg_locations03[18],udg_locations03[17])
call AddSpecialEffectLocBJ(udg_locations03[16],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[18])
endif
call RemoveLocation(udg_locations03[16])
call RemoveLocation(udg_locations03[17])
endfunction
function Trig_KanJL_E1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A08N'))
endfunction
function Trig_KanJL_E1_Actions takes nothing returns nothing
set udg_locations01[656]=GetSpellTargetLoc()
set udg_locations03[998]=GetUnitLoc(GetTriggerUnit())
set udg_integers01[656]=1
loop
exitwhen udg_integers01[656]>3
call CreateNUnitsAtLoc(1,'hsor',GetOwningPlayer(GetTriggerUnit()),udg_locations03[998],GetUnitFacing(GetTriggerUnit()))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call SetUnitScalePercent(bj_lastCreatedUnit,100.00,100.00,100.00)
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call UnitAddAbility(bj_lastCreatedUnit,'A08E')
call IssuePointOrderLoc(bj_lastCreatedUnit,"summonfactory",PolarProjectionBJ(udg_locations01[656],GetRandomReal(0.00,200.00),GetRandomReal(0,360)))
call TriggerSleepAction(0.05)
set udg_integers01[656]=udg_integers01[656]+1
endloop
endfunction
function Trig_KanJl_E2_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='h006'))
endfunction
function Trig_KanJl_E2_Actions takes nothing returns nothing
set udg_locations03[997]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),GetRandomReal(0,200.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'z000',GetOwningPlayer(GetTriggerUnit()),udg_locations03[997],GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[997])
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(50.00,300.00),600.00)
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",PolarProjectionBJ(GetUnitLoc(bj_lastCreatedUnit),GetRandomReal(300.00,350.00),AngleBetweenPoints(GetUnitLoc(bj_lastCreatedUnit),udg_locations01[655])))
call SetUnitScalePercent(bj_lastCreatedUnit,600.00,600.00,600.00)
call GroupAddUnit(udg_groups03[25],bj_lastCreatedUnit)
call GroupAddUnit(udg_groups03[26],bj_lastCreatedUnit)
endfunction
function Trig_KanJL_R1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A08L'))
endfunction
function Trig_KanJL_R1_Actions takes nothing returns nothing
set udg_locations01[10]=GetUnitLoc(GetTriggerUnit())
set udg_locations01[16]=GetSpellTargetLoc()
set udg_locations01[15]=PolarProjectionBJ(udg_locations01[10],78.00,GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'n007',GetOwningPlayer(GetTriggerUnit()),udg_locations01[15],GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'hwt3',GetOwningPlayer(GetTriggerUnit()),udg_locations01[15],GetUnitFacing(GetTriggerUnit()))
call UnitAddAbility(bj_lastCreatedUnit,'A02Q')
call SetUnitFlyHeight(bj_lastCreatedUnit,400.00,1200.00)
set udg_units15[9]=bj_lastCreatedUnit
call SetUnitAnimation(bj_lastCreatedUnit,"walk")
call RemoveLocation(udg_locations01[10])
call RemoveLocation(udg_locations01[15])
call EnableTrigger(udg_trigger358)
endfunction
function Trig_KanJL_R2_Func002C takes nothing returns boolean
return((DistanceBetweenPoints(udg_locations01[16],udg_locations01[17])<=50.00))
endfunction
function Trig_KanJL_R2_Actions takes nothing returns nothing
set udg_locations01[17]=GetUnitLoc(udg_units15[9])
if((DistanceBetweenPoints(udg_locations01[16],udg_locations01[17])<=50.00))then
call SetUnitPositionLocFacingLocBJ(udg_units15[9],udg_locations01[16],udg_locations01[16])
call DisableTrigger(GetTriggeringTrigger())
set udg_integers18[21]=1
loop
exitwhen udg_integers18[21]>10
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations01[17]=PolarProjectionBJ(udg_locations01[16],GetRandomReal(0,300.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'e005',GetOwningPlayer(udg_unit52),udg_locations01[16],bj_UNIT_FACING)
call IssuePointOrderLoc(bj_lastCreatedUnit,"summonfactory",udg_locations01[17])
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations01[17])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.10)
set udg_integers18[21]=udg_integers18[21]+1
endloop
call TriggerSleepAction(0.50)
call RemoveUnit(udg_units15[9])
else
set udg_locations01[18]=PolarProjectionBJ(udg_locations01[17],40.00,AngleBetweenPoints(udg_locations01[17],udg_locations01[16]))
call SetUnitPositionLocFacingLocBJ(udg_units15[9],udg_locations01[18],udg_locations01[16])
call RemoveLocation(udg_locations01[18])
endif
call RemoveLocation(udg_locations01[17])
endfunction
function Trig_KanJL_R3_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='n00B'))
endfunction
function Trig_KanJL_R3_Func005001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_KanJL_R3_Func005001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit52)))
endfunction
function Trig_KanJL_R3_Func005001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit52))))
endfunction
function Trig_KanJL_R3_Func005Func001C takes nothing returns boolean
if(not(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)))then
return false
endif
return true
endfunction
function Trig_KanJL_R3_Func005A takes nothing returns nothing
if(Trig_KanJL_R3_Func005Func001C())then
call UnitDamageTarget(udg_unit52,GetEnumUnit(),(50.00*I2R(GetUnitAbilityLevelSwapped('A08L',udg_unit52))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
call UnitDamageTarget(udg_unit52,GetEnumUnit(),(100.00*I2R(GetUnitAbilityLevelSwapped('A08L',udg_unit52))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
endfunction
function Trig_KanJL_R3_Actions takes nothing returns nothing
set udg_locations01[17]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations01[17],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,udg_locations01[17],Condition(function Trig_KanJL_R3_Func005001003)),function Trig_KanJL_R3_Func005A)
call RemoveLocation(udg_locations01[17])
endfunction
function Trig_Kanjl_T1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='Acdh'))
endfunction
function Trig_Kanjl_T1_Actions takes nothing returns nothing
set udg_locations01[10]=GetUnitLoc(GetTriggerUnit())
set udg_units15[10]=GetSpellTargetUnit()
set udg_locations01[20]=PolarProjectionBJ(udg_locations01[10],120.00,(GetUnitFacing(GetTriggerUnit())+60.00))
call CreateNUnitsAtLoc(1,'n007',GetOwningPlayer(GetTriggerUnit()),udg_locations01[20],GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'hwt2',GetOwningPlayer(GetTriggerUnit()),udg_locations01[20],GetUnitFacing(GetTriggerUnit()))
call UnitAddAbility(bj_lastCreatedUnit,'A02Q')
set udg_units15[11]=bj_lastCreatedUnit
call SetUnitAnimation(bj_lastCreatedUnit,"spell")
call RemoveLocation(udg_locations01[20])
set udg_locations01[20]=PolarProjectionBJ(udg_locations01[10],120.00,(GetUnitFacing(GetTriggerUnit())-60.00))
call CreateNUnitsAtLoc(1,'n007',GetOwningPlayer(GetTriggerUnit()),udg_locations01[20],GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'hwt3',GetOwningPlayer(GetTriggerUnit()),udg_locations01[20],GetUnitFacing(GetTriggerUnit()))
call UnitAddAbility(bj_lastCreatedUnit,'A02Q')
set udg_units15[12]=bj_lastCreatedUnit
call SetUnitAnimation(bj_lastCreatedUnit,"spell")
call RemoveLocation(udg_locations01[10])
call TriggerSleepAction(0.30)
call EnableTrigger(udg_trigger361)
endfunction
function Trig_Kanjl_T2_Func003Func007C takes nothing returns boolean
return((DistanceBetweenPoints(udg_locations03[50],udg_locations03[51])<=50.00))or((DistanceBetweenPoints(udg_locations03[50],udg_locations03[51])>=1500.00))
endfunction
function Trig_Kanjl_T2_Func003C takes nothing returns boolean
return((((DistanceBetweenPoints(udg_locations03[50],udg_locations03[51])<=50.00))or((DistanceBetweenPoints(udg_locations03[50],udg_locations03[51])>=1500.00))))
endfunction
function Trig_Kanjl_T2_Actions takes nothing returns nothing
set udg_locations03[50]=GetUnitLoc(udg_units15[12])
set udg_locations03[51]=GetUnitLoc(udg_units15[10])
if((((DistanceBetweenPoints(udg_locations03[50],udg_locations03[51])<=50.00))or((DistanceBetweenPoints(udg_locations03[50],udg_locations03[51])>=1500.00))))then
call DisableTrigger(GetTriggeringTrigger())
call EnableTrigger(udg_trigger362)
call SetUnitAnimation(udg_units15[12],"spell two")
call PauseUnit(udg_units15[10],true)
call TriggerSleepAction(0.10)
call ShowUnitHide(udg_units15[10])
else
set udg_locations03[52]=PolarProjectionBJ(udg_locations03[50],20.00,AngleBetweenPoints(udg_locations03[50],udg_locations03[51]))
call SetUnitPositionLocFacingLocBJ(udg_units15[12],udg_locations03[52],udg_locations03[51])
call AddSpecialEffectLocBJ(udg_locations03[50],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_locations03[53]=GetUnitLoc(udg_units15[11])
set udg_locations03[54]=PolarProjectionBJ(udg_locations03[52],300.00,(AngleBetweenPoints(udg_locations03[50],udg_locations03[53])+10.00))
call SetUnitPositionLocFacingLocBJ(udg_units15[11],udg_locations03[54],udg_locations03[51])
call AddSpecialEffectLocBJ(udg_locations03[53],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[52])
call RemoveLocation(udg_locations03[53])
call RemoveLocation(udg_locations03[54])
endif
call RemoveLocation(udg_locations03[50])
call RemoveLocation(udg_locations03[51])
endfunction
function Trig_Kanjl_T3_Func003C takes nothing returns boolean
return((DistanceBetweenPoints(udg_locations03[50],udg_locations03[51])<=50.00))
endfunction
function Trig_Kanjl_T3_Actions takes nothing returns nothing
set udg_locations03[50]=GetUnitLoc(udg_units15[12])
set udg_locations03[51]=GetUnitLoc(udg_units15[11])
if((DistanceBetweenPoints(udg_locations03[50],udg_locations03[51])<=50.00))then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPositionLocFacingBJ(udg_units15[11],udg_locations03[50],GetUnitFacing(udg_units15[12]))
call SetUnitAnimation(udg_units15[11],"spell two")
call TriggerSleepAction(1.33)
call AddSpecialEffectLocBJ(udg_locations03[50],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[52]=PolarProjectionBJ(udg_locations03[50],GetRandomReal(0,75.00),GetRandomReal(0,360))
call AddSpecialEffectLocBJ(udg_locations03[52],"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[52])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ShowUnitShow(udg_units15[10])
call CreateNUnitsAtLoc(1,'nbee',GetOwningPlayer(udg_unit52),udg_locations01[50],GetRandomReal(0,360))
call RemoveUnit(udg_units15[11])
call RemoveUnit(udg_units15[12])
call UnitDamageTarget(udg_unit52,udg_units15[10],(10.00*I2R(GetHeroStatBJ(2,udg_unit52,true))),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call TriggerSleepAction(2.00)
call PauseUnit(udg_units15[10],false)
else
set udg_locations03[52]=PolarProjectionBJ(udg_locations03[50],(DistanceBetweenPoints(udg_locations03[50],udg_locations03[51])-15.00),(AngleBetweenPoints(udg_locations03[50],udg_locations03[51])+10.00))
call SetUnitPositionLocFacingLocBJ(udg_units15[11],udg_locations03[52],udg_locations03[50])
call AddSpecialEffectLocBJ(udg_locations03[51],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[52])
endif
call RemoveLocation(udg_locations03[50])
call RemoveLocation(udg_locations03[51])
call UnitAddAbility(bj_lastCreatedUnit,'A02Q')
endfunction
function Trig_tiaomubengji_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AUim'))
endfunction
function Trig_tiaomubengji_Actions takes nothing returns nothing
set udg_locations03[91]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'nmed',GetOwningPlayer(GetTriggerUnit()),udg_locations03[91],(AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetSpellTargetLoc())+90.00))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,50.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
call AddSpecialEffectLocBJ(udg_locations03[91],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[91])
endfunction
function Trig_mdmsd_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A057'))
endfunction
function Trig_mdmsd_Actions takes nothing returns nothing
set udg_units30[122]=GetSpellTargetUnit()
set udg_reals01[122]=GetUnitFacing(GetTriggerUnit())
set udg_locations03[91]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),50.00,GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'ebal',GetOwningPlayer(GetTriggerUnit()),udg_locations03[91],GetUnitFacing(GetTriggerUnit()))
call RemoveLocation(GetUnitLoc(bj_lastCreatedUnit))
call RemoveLocation(udg_locations03[91])
call UnitApplyTimedLifeBJ(2.50,'BTLF',bj_lastCreatedUnit)
call TriggerSleepAction(0.10)
call UnitDamageTarget(GetTriggerUnit(),udg_units30[122],(I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A057'))*I2R(GetHeroStatBJ(2,GetTriggerUnit(),true))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units30[122]),"Objects\\Spawnmodels\\Other\\BeastmasterBlood\\BeastmasterBlood.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call EnableTrigger(udg_trigger365)
call TriggerSleepAction(0.80)
call DisableTrigger(udg_trigger365)
endfunction
function Trig_mdmsd_2_Actions takes nothing returns nothing
set udg_locations03[213]=PolarProjectionBJ(GetUnitLoc(udg_units30[122]),18.00,udg_reals01[122])
call SetUnitPositionLoc(udg_units30[122],udg_locations03[213])
call AddSpecialEffectLocBJ(udg_locations03[213],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[213])
endfunction
function Trig_mztp1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04L'))
endfunction
function Trig_mztp1_Func004Func001Func008001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_mztp1_Func004Func001Func008001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_mztp1_Func004Func001Func008001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_mztp1_Func004Func001Func008A takes nothing returns nothing
call UnitDamageTarget(udg_units30[121],GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_units30[121],true))*2.00),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
set udg_locations06[93]=GetUnitLoc(GetEnumUnit())
set udg_locations06[94]=PolarProjectionBJ(udg_locations06[93],100.00,AngleBetweenPoints(udg_locations06[93],udg_locations03[92]))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations06[94]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations06[94]))
call RemoveLocation(udg_locations06[93])
call RemoveLocation(udg_locations06[94])
endfunction
function Trig_mztp1_Func006A takes nothing returns nothing
call SetUnitTimeScalePercent(GetEnumUnit(),100.00)
call KillUnit(GetEnumUnit())
endfunction
function Trig_mztp1_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000__:_____,_________! |r")
set udg_units30[121]=GetTriggerUnit()
set udg_locations03[92]=GetSpellTargetLoc()
set udg_integers01[214]=1
loop
exitwhen udg_integers01[214]>10
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=(20-(udg_integers01[214]*1))
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations06[40]=PolarProjectionBJ(udg_locations03[92],(400.00-(32.00*I2R(udg_integers01[214]))),((360.00/(20.00-(1.00*I2R(udg_integers01[214]))))*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLocFacingLocBJ(1,'ninf',GetOwningPlayer(GetTriggerUnit()),udg_locations06[40],udg_locations03[94])
call SetUnitTimeScalePercent(bj_lastCreatedUnit,30.00)
call GroupAddUnit(udg_groups04[31],bj_lastCreatedUnit)
call AddSpecialEffectLocBJ(udg_locations06[40],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(100.00,udg_locations06[40],Condition(function Trig_mztp1_Func004Func001Func008001003)),function Trig_mztp1_Func004Func001Func008A)
call RemoveLocation(udg_locations06[40])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.10)
set udg_integers01[214]=udg_integers01[214]+1
endloop
call RemoveLocation(udg_locations03[92])
call ForGroupBJ(udg_groups04[31],function Trig_mztp1_Func006A)
call GroupClear(udg_groups04[31])
endfunction
function Trig_sizhulaozhishu_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04J'))
endfunction
function Trig_sizhulaozhishu_Func007001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_sizhulaozhishu_Func007001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_sizhulaozhishu_Func007001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_sizhulaozhishu_Func007A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),((40.00*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A04J')))+((1+(0.20*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A04J'))))*I2R(GetHeroInt(GetTriggerUnit(),true)))),ATTACK_TYPE_HERO,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_sizhulaozhishu_Actions takes nothing returns nothing
set udg_location03=GetSpellTargetLoc()
call CreateNUnitsAtLoc(1,'nbal',GetOwningPlayer(GetTriggerUnit()),udg_location03,GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ((1.00+I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A04J'))),'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations07[1994]=PolarProjectionBJ(udg_location03,200.00,GetUnitFacing(GetTriggerUnit()))
set udg_locations07[1995]=PolarProjectionBJ(udg_locations07[1994],(-300.00+(50.00*I2R(bj_forLoopAIndex))),(GetUnitFacing(GetTriggerUnit())+90.00))
set udg_destructables01[bj_forLoopAIndex]=CreateDestructableLoc('YTfb',udg_locations07[1995],270.00,1.00,0)
call AddSpecialEffectLocBJ(udg_locations07[1995],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations07[1994])
call RemoveLocation(udg_locations07[1995])
set udg_locations07[1994]=PolarProjectionBJ(udg_location03,200.00,(GetUnitFacing(GetTriggerUnit())-180.00))
set udg_locations07[1995]=PolarProjectionBJ(udg_locations07[1994],(-300.00+(50.00*I2R(bj_forLoopAIndex))),(GetUnitFacing(GetTriggerUnit())-90.00))
set udg_destructables03[bj_forLoopAIndex]=CreateDestructableLoc('YTfb',udg_locations07[1995],270.00,1.00,0)
call AddSpecialEffectLocBJ(udg_locations07[1995],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations07[1994])
call RemoveLocation(udg_locations07[1995])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations07[1994]=PolarProjectionBJ(udg_location03,250.00,(GetUnitFacing(GetTriggerUnit())+90.00))
set udg_locations07[1995]=PolarProjectionBJ(udg_locations07[1994],(-250.00+(50.00*I2R(bj_forLoopAIndex))),GetUnitFacing(GetTriggerUnit()))
set udg_destructables04[bj_forLoopAIndex]=CreateDestructableLoc('YTfb',udg_locations07[1995],270.00,1.00,0)
call AddSpecialEffectLocBJ(udg_locations07[1995],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations07[1994])
call RemoveLocation(udg_locations07[1995])
set udg_locations07[1994]=PolarProjectionBJ(udg_location03,250.00,(GetUnitFacing(GetTriggerUnit())-90.00))
set udg_locations07[1995]=PolarProjectionBJ(udg_locations07[1994],(-250.00+(50.00*I2R(bj_forLoopAIndex))),(GetUnitFacing(GetTriggerUnit())-180.00))
set udg_destructables02[bj_forLoopAIndex]=CreateDestructableLoc('YTfb',udg_locations07[1995],270.00,1.00,0)
call AddSpecialEffectLocBJ(udg_locations07[1995],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations07[1994])
call RemoveLocation(udg_locations07[1995])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,udg_location03,Condition(function Trig_sizhulaozhishu_Func007001003)),function Trig_sizhulaozhishu_Func007A)
call TriggerSleepAction((1.00+(I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A04J'))+0.00)))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveDestructable(udg_destructables01[bj_forLoopAIndex])
call RemoveDestructable(udg_destructables03[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveDestructable(udg_destructables02[bj_forLoopAIndex])
call RemoveDestructable(udg_destructables04[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_location03)
endfunction
function Trig_sizhulaozhishu2_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='nbal'))
endfunction
function Trig_sizhulaozhishu2_Actions takes nothing returns nothing
call TriggerSleepAction(0.10)
call RemoveUnit(GetTriggerUnit())
endfunction
function Trig_MZTB_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A018'))
endfunction
function Trig_MZTB_Func005Func002Func007001003 takes nothing returns boolean
return(IsUnitEnemy(GetTriggerUnit(),GetOwningPlayer(GetFilterUnit())))
endfunction
function Trig_MZTB_Func005Func002Func007Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)))then
return false
endif
return true
endfunction
function Trig_MZTB_Func005Func002Func007A takes nothing returns nothing
if(Trig_MZTB_Func005Func002Func007Func001C())then
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(100.00*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A018'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
else
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(150.00*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A018'))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endif
endfunction
function Trig_MZTB_Actions takes nothing returns nothing
set udg_location04=GetSpellTargetLoc()
call TriggerSleepAction(0.10)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitAnimation(GetTriggerUnit(),"Spell one")
set udg_integers01[207]=1
loop
exitwhen udg_integers01[207]>20
call TriggerSleepAction(0.01)
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=2
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set udg_locations03[93]=GetRandomLocInRect(RectFromCenterSizeBJ(PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),(I2R(udg_integers01[207])*30.00),GetUnitFacing(GetTriggerUnit())),300.00,300.00))
call CreateNUnitsAtLoc(1,'ninf',GetOwningPlayer(GetTriggerUnit()),udg_locations03[93],GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(5.00,'BTLF',bj_lastCreatedUnit)
call AddSpecialEffectLocBJ(udg_locations03[93],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,udg_locations03[93],Condition(function Trig_MZTB_Func005Func002Func007001003)),function Trig_MZTB_Func005Func002Func007A)
call RemoveLocation(udg_locations03[93])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set udg_integers01[207]=udg_integers01[207]+1
endloop
call PauseUnit(GetTriggerUnit(),false)
call RemoveLocation(udg_location04)
endfunction
function Trig_bmdj_6m2_______u_Func002C takes nothing returns boolean
return((UnitHasBuffBJ(GetTriggerUnit(),'B00T')))or((UnitHasBuffBJ(GetTriggerUnit(),'B00U')))
endfunction
function Trig_bmdj_6m2_______u_Conditions takes nothing returns boolean
return((((UnitHasBuffBJ(GetTriggerUnit(),'B00T')))or((UnitHasBuffBJ(GetTriggerUnit(),'B00U')))))
endfunction
function Trig_bmdj_6m2_______u_Actions takes nothing returns nothing
call SetPlayerAbilityAvailable(GetTriggerPlayer(),GetLearnedSkill(),false)
endfunction
function Trig_mrQ_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A08H'))
endfunction
function Trig_mrQ_Actions takes nothing returns nothing
set udg_units16[1]=GetTriggerUnit()
set udg_locations10[6]=GetUnitLoc(GetTriggerUnit())
set udg_locations10[7]=PolarProjectionBJ(udg_locations10[6],72.00,(GetUnitFacing(GetTriggerUnit())-60.00))
call CreateNUnitsAtLocFacingLocBJ(1,'nvdg',GetOwningPlayer(udg_units16[1]),udg_locations10[7],udg_locations10[6])
call SetUnitAnimation(bj_lastCreatedUnit,"spell three")
call UnitApplyTimedLifeBJ(0.80,'BTLF',bj_lastCreatedUnit)
call TriggerSleepAction(0.20)
call PauseUnit(udg_units16[1],false)
call RemoveLocation(udg_locations10[6])
call RemoveLocation(udg_locations10[7])
endfunction
function Trig_ZZ_Q_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A08F'))
endfunction
function Trig_ZZ_Q_Actions takes nothing returns nothing
set udg_locations10[8]=GetUnitLoc(GetTriggerUnit())
call SetUnitAnimation(GetTriggerUnit(),"Spell two")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyEffect(AddSpecialEffectLoc("Abilities\\Weapons\\Bolt\\BoltImpact.mdl",PolarProjectionBJ(udg_locations10[8],150.00,(60.00*I2R(bj_forLoopAIndex)))))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations10[8])
call TriggerSleepAction(0.10)
call PauseUnit(GetTriggerUnit(),false)
endfunction
function Trig_ql1_Func003C takes nothing returns boolean
return((UnitHasBuffBJ(GetAttacker(),'B00T')))or((UnitHasBuffBJ(GetAttacker(),'B00U')))
endfunction
function Trig_ql1_Conditions takes nothing returns boolean
return((((UnitHasBuffBJ(GetAttacker(),'B00T')))or((UnitHasBuffBJ(GetAttacker(),'B00U')))))and((IsUnitEnemy(GetTriggerUnit(),GetOwningPlayer(GetAttacker()))))and((IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false))
endfunction
function Trig_ql1_Func002C takes nothing returns boolean
return((UnitHasBuffBJ(GetAttacker(),'B00T')))
endfunction
function Trig_ql1_Actions takes nothing returns nothing
set udg_locations10[2]=GetUnitLoc(GetAttacker())
if((UnitHasBuffBJ(GetAttacker(),'B00T')))then
set udg_units40[0]=GetAttacker()
set udg_units40[1]=GetTriggerUnit()
set udg_reals05[1]=AngleBetweenPoints(GetUnitLoc(udg_units40[0]),GetUnitLoc(udg_units40[1]))
call CreateNUnitsAtLoc(1,'uarb',GetOwningPlayer(GetAttacker()),udg_locations10[2],udg_reals05[1])
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
call PauseUnit(udg_units40[1],true)
call SetUnitPathing(udg_units40[1],false)
call SetUnitPathing(udg_units40[0],false)
call EnableTrigger(udg_trigger374)
set udg_integers16[1]=1
call RemoveLocation(udg_locations10[2])
call UnitRemoveAbility(GetAttacker(),'B00T')
else
set udg_units40[2]=GetAttacker()
set udg_units40[3]=GetTriggerUnit()
set udg_reals05[2]=AngleBetweenPoints(GetUnitLoc(udg_units40[2]),GetUnitLoc(udg_units40[3]))
call CreateNUnitsAtLoc(1,'uarb',GetOwningPlayer(GetAttacker()),udg_locations10[2],udg_reals05[2])
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
call PauseUnit(udg_units40[3],true)
call SetUnitPathing(udg_units40[3],false)
call EnableTrigger(udg_trigger375)
set udg_integers16[2]=1
call RemoveLocation(udg_locations10[2])
call UnitRemoveAbility(GetAttacker(),'B00U')
endif
endfunction
function Trig_ql2_qn_Func002Func001C takes nothing returns boolean
return((IsTerrainPathableBJ(udg_locations10[2],PATHING_TYPE_WALKABILITY)))or((udg_integers16[1]==20))
endfunction
function Trig_ql2_qn_Func002Func015001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_ql2_qn_Func002Func015001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units40[0])))
endfunction
function Trig_ql2_qn_Func002Func015001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units40[0]))))
endfunction
function Trig_ql2_qn_Func002Func015Func001C takes nothing returns boolean
if(not(IsUnitInGroup(GetEnumUnit(),udg_groups08[0])))then
return false
endif
return true
endfunction
function Trig_ql2_qn_Func002Func015A takes nothing returns nothing
if(Trig_ql2_qn_Func002Func015Func001C())then
else
call UnitDamageTarget(udg_units40[0],GetEnumUnit(),((20.00+I2R(GetHeroStatBJ(1,udg_units40[0],true)))*(0.90*I2R(GetUnitAbilityLevel(udg_units40[0],'A08F')))),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call GroupAddUnit(udg_groups08[0],GetEnumUnit())
endif
endfunction
function Trig_ql2_qn_Func002C takes nothing returns boolean
return((((IsTerrainPathableBJ(udg_locations10[2],PATHING_TYPE_WALKABILITY)))or((udg_integers16[1]==20))))
endfunction
function Trig_ql2_qn_Actions takes nothing returns nothing
set udg_locations10[2]=PolarProjectionBJ(GetUnitLoc(udg_units40[1]),42.00,udg_reals05[1])
if((((IsTerrainPathableBJ(udg_locations10[2],PATHING_TYPE_WALKABILITY)))or((udg_integers16[1]==20))))then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPathing(udg_units40[1],true)
call SetUnitPathing(udg_units40[0],true)
call PauseUnit(udg_units40[1],false)
call PauseUnit(udg_units40[0],false)
call GroupClear(udg_groups08[0])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(udg_locations10[2],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_locations10[3]=PolarProjectionBJ(udg_locations10[2],GetRandomReal(0,250.00),GetRandomReal(0,360))
call AddSpecialEffectLocBJ(udg_locations10[3],"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
set udg_integers16[1]=(udg_integers16[1]+1)
call SetUnitPositionLoc(udg_units40[1],udg_locations10[2])
call SetUnitAnimation(udg_units40[0],"Spell four")
call AddSpecialEffectLocBJ(udg_locations10[2],"Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(120.00,udg_locations10[2],Condition(function Trig_ql2_qn_Func002Func015001003)),function Trig_ql2_qn_Func002Func015A)
endif
call RemoveLocation(udg_locations10[2])
endfunction
function Trig_ql2_lxw_Func002Func001C takes nothing returns boolean
return((IsTerrainPathableBJ(udg_locations10[4],PATHING_TYPE_WALKABILITY)))or((udg_integers16[2]==20))
endfunction
function Trig_ql2_lxw_Func002Func012001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_ql2_lxw_Func002Func012001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units40[2])))
endfunction
function Trig_ql2_lxw_Func002Func012001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units40[2]))))
endfunction
function Trig_ql2_lxw_Func002Func012Func001C takes nothing returns boolean
if(not(IsUnitInGroup(GetEnumUnit(),udg_groups08[1])))then
return false
endif
return true
endfunction
function Trig_ql2_lxw_Func002Func012A takes nothing returns nothing
if(Trig_ql2_lxw_Func002Func012Func001C())then
else
call UnitDamageTarget(udg_units40[2],GetEnumUnit(),((20.00+I2R(GetHeroStatBJ(0,udg_units40[2],true)))*(0.90*I2R(GetUnitAbilityLevel(udg_units40[2],'A08H')))),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call GroupAddUnit(udg_groups08[1],GetEnumUnit())
endif
endfunction
function Trig_ql2_lxw_Func002C takes nothing returns boolean
return((((IsTerrainPathableBJ(udg_locations10[4],PATHING_TYPE_WALKABILITY)))or((udg_integers16[2]==20))))
endfunction
function Trig_ql2_lxw_Actions takes nothing returns nothing
set udg_locations10[4]=PolarProjectionBJ(GetUnitLoc(udg_units40[3]),42.00,udg_reals05[2])
if((((IsTerrainPathableBJ(udg_locations10[4],PATHING_TYPE_WALKABILITY)))or((udg_integers16[2]==20))))then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPathing(udg_units40[3],true)
call PauseUnit(udg_units40[3],false)
call GroupClear(udg_groups08[1])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(udg_locations10[4],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_locations10[5]=PolarProjectionBJ(udg_locations10[4],GetRandomReal(0,250.00),GetRandomReal(0,360))
call AddSpecialEffectLocBJ(udg_locations10[5],"Abilities\\Spells\\Orc\\LightningShield\\LightningShieldTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
set udg_integers16[2]=(udg_integers16[2]+1)
call SetUnitPositionLoc(udg_units40[3],udg_locations10[4])
call AddSpecialEffectLocBJ(udg_locations10[4],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(120.00,udg_locations10[4],Condition(function Trig_ql2_lxw_Func002Func012001003)),function Trig_ql2_lxw_Func002Func012A)
endif
call RemoveLocation(udg_locations10[4])
endfunction
function Trig_TianZhao_1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A08T'))
endfunction
function Trig_TianZhao_1_Actions takes nothing returns nothing
set udg_unit21=GetTriggerUnit()
set udg_locations17[2]=GetUnitLoc(GetSpellTargetUnit())
set udg_unit22=GetSpellTargetUnit()
set udg_groups09[1]=CreateGroup()
set udg_groups09[2]=CreateGroup()
call GroupAddUnit(udg_groups09[1],udg_unit22)
call PauseUnit(udg_unit22,true)
call CreateNUnitsAtLoc(1,'efdr',GetOwningPlayer(GetTriggerUnit()),udg_locations17[2],bj_UNIT_FACING)
call UnitApplyTimedLife(bj_lastCreatedUnit,'BHwe',2.00)
call StartTimerBJ(udg_timer05,true,0.10)
call RemoveLocation(udg_locations17[2])
call TriggerSleepAction(2.00)
call PauseUnit(udg_unit22,false)
call TriggerSleepAction(5.00)
call PauseTimer(udg_timer05)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call GroupClear(udg_groups09[bj_forLoopAIndex])
call DestroyGroup(udg_groups09[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_TianZhao_2_Func001Func002001003001001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups09[1])==false)
endfunction
function Trig_TianZhao_2_Func001Func002001003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_TianZhao_2_Func001Func002001003001 takes nothing returns boolean
return GetBooleanAnd((IsUnitInGroup(GetFilterUnit(),udg_groups09[1])==false),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))
endfunction
function Trig_TianZhao_2_Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_TianZhao_2_Func001Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit21)))
endfunction
function Trig_TianZhao_2_Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit21))))
endfunction
function Trig_TianZhao_2_Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd((GetBooleanAnd((IsUnitInGroup(GetFilterUnit(),udg_groups09[1])==false),(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))),(GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit21))))))
endfunction
function Trig_TianZhao_2_Func001Func002A takes nothing returns nothing
call GroupAddUnit(udg_groups09[2],GetEnumUnit())
endfunction
function Trig_TianZhao_2_Func001A takes nothing returns nothing
set udg_locations17[2]=GetUnitLoc(GetEnumUnit())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,udg_locations17[2],Condition(function Trig_TianZhao_2_Func001Func002001003)),function Trig_TianZhao_2_Func001Func002A)
call CreateNUnitsAtLoc(1,'ntkf',GetOwningPlayer(udg_unit21),udg_locations17[2],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(0.05,'BTLF',bj_lastCreatedUnit)
call UnitDamageTarget(udg_unit21,GetEnumUnit(),(I2R(GetHeroAgi(udg_unit21,true))*0.25),false,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_FIRE,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations17[2])
endfunction
function Trig_TianZhao_2_Func002A takes nothing returns nothing
set udg_locations17[3]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLoc(1,'ntkf',GetOwningPlayer(udg_unit21),udg_locations17[3],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(0.01,'BTLF',bj_lastCreatedUnit)
call UnitDamageTarget(udg_unit21,GetEnumUnit(),(I2R(GetHeroAgi(udg_unit21,true))*0.20),false,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_FIRE,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations17[3])
endfunction
function Trig_TianZhao_2_Actions takes nothing returns nothing
call ForGroupBJ(udg_groups09[1],function Trig_TianZhao_2_Func001A)
call ForGroupBJ(udg_groups09[2],function Trig_TianZhao_2_Func002A)
endfunction
function Trig_XuZuo_Conditions takes nothing returns boolean
return((GetLearnedSkill()=='A090'))
endfunction
function Trig_XuZuo_Actions takes nothing returns nothing
set udg_unit23=GetTriggerUnit()
call TriggerRegisterUnitEvent(udg_trigger381,udg_unit23,EVENT_UNIT_DAMAGED)
endfunction
function Trig_XuZuo_1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A090'))
endfunction
function Trig_XuZuo_1_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000_:_____……______……__,____…… |r")
set udg_unit23=GetTriggerUnit()
set udg_locations18[0]=GetUnitLoc(udg_unit23)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=10
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set udg_locations18[1]=PolarProjectionBJ(udg_locations18[0],(I2R(bj_forLoopAIndex)*35.00),(I2R(bj_forLoopBIndex)*36.00))
call AddSpecialEffectLocBJ(udg_locations18[1],"Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations18[1])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(1,'ndtt',GetOwningPlayer(GetTriggerUnit()),udg_locations18[0],GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100,0.00,0.00,50.00)
call SetUnitAnimation(bj_lastCreatedUnit,"Birth")
call SetUnitTimeScalePercent(bj_lastCreatedUnit,80.00)
call TriggerSleepAction(0.80)
set udg_unit24=CreateUnitAtLoc(GetOwningPlayer(GetTriggerUnit()),'ndtp',udg_locations18[0],GetUnitFacing(GetTriggerUnit()))
set udg_unit30=CreateUnitAtLoc(GetOwningPlayer(GetTriggerUnit()),'n00E',udg_locations18[0],GetUnitFacing(GetTriggerUnit()))
call StartTimerBJ(udg_timer06,true,0.05)
call SetUnitVertexColorBJ(udg_unit24,100,70.00,70.00,50.00)
call EnableTrigger(udg_trigger381)
call RemoveLocation(udg_locations18[0])
endfunction
function Trig_XuZuo_2_Func001C takes nothing returns boolean
return((UnitHasBuffBJ(udg_unit23,'B011')))
endfunction
function Trig_XuZuo_2_Actions takes nothing returns nothing
if((UnitHasBuffBJ(udg_unit23,'B011')))then
set udg_locations18[0]=GetUnitLoc(udg_unit23)
call SetUnitPositionLocFacingBJ(udg_unit24,udg_locations18[0],GetUnitFacing(udg_unit23))
call SetUnitPositionLocFacingBJ(udg_unit30,udg_locations18[0],GetUnitFacing(udg_unit23))
call RemoveLocation(udg_locations18[0])
else
call RemoveUnit(udg_unit24)
call RemoveUnit(udg_unit30)
set udg_unit24=null
set udg_unit30=null
call DisableTrigger(udg_trigger381)
call PauseTimer(udg_timer06)
endif
endfunction
function Trig_XuZuo_4_Actions takes nothing returns nothing
call PauseTimerBJ(true,udg_timer06)
call SetUnitTimeScalePercent(udg_unit24,500.00)
call SetUnitAnimation(udg_unit24,"spell")
call SetWidgetLife(udg_unit23,(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit23)+GetEventDamage()))
call TriggerSleepAction(0.05)
call SetUnitTimeScalePercent(udg_unit24,100.00)
call StartTimerBJ(udg_timer06,true,0.05)
endfunction
function Trig_XuZuo_5_Conditions takes nothing returns boolean
return((UnitHasBuffBJ(GetAttacker(),'B011')))and((IsUnitEnemy(GetTriggerUnit(),GetOwningPlayer(GetAttacker()))))
endfunction
function Trig_XuZuo_5_Func005C takes nothing returns boolean
return((GetRandomInt(1,100)<=25))
endfunction
function Trig_XuZuo_5_Actions takes nothing returns nothing
set udg_locations18[2]=GetUnitLoc(GetAttacker())
call AddSpecialEffectLocBJ(udg_locations18[2],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations18[2])
if((GetRandomInt(1,100)<=25))then
call IssueTargetOrder(udg_unit30,"soulburn",GetTriggerUnit())
endif
call UnitDamageTarget(GetAttacker(),GetTriggerUnit(),(300.00+(I2R(GetHeroInt(udg_unit23,true))*0.50)),true,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_Kai_1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A091'))
endfunction
function Trig_Kai_1_Func013001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_Kai_1_Func013001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_Kai_1_Func013001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_Kai_1_Func013A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A091'))*750.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
call DestroyEffect(bj_lastCreatedEffect)
endfunction
function Trig_Kai_1_Actions takes nothing returns nothing
set udg_unit25=GetTriggerUnit()
set udg_unit26=GetSpellTargetUnit()
set udg_locations19[0]=GetUnitLoc(GetSpellTargetUnit())
set udg_integer16=0
call PauseUnit(udg_unit26,true)
call PauseUnit(udg_unit25,true)
call SetUnitPathing(udg_unit25,false)
call EnableTrigger(udg_trigger389)
call CreateNUnitsAtLocFacingLocBJ(1,'hsor',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()))
call IssueTargetOrder(bj_lastCreatedUnit,"unholyfrenzy",GetTriggerUnit())
call SetUnitMoveSpeed(udg_unit25,99999.00)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations19[0],Condition(function Trig_Kai_1_Func013001003)),function Trig_Kai_1_Func013A)
call StartTimerBJ(udg_timer07,true,0.04)
endfunction
function Trig_Kai_2_Func002C takes nothing returns boolean
return((udg_integer16<=40))
endfunction
function Trig_Kai_2_Func003C takes nothing returns boolean
return((udg_integer16==1))
endfunction
function Trig_Kai_2_Actions takes nothing returns nothing
set udg_integer16=(udg_integer16+1)
if((udg_integer16<=40))then
set udg_locations19[1]=PolarProjectionBJ(udg_locations19[0],300.00,(GetRandomReal(15.00,60.00)*I2R(udg_integer16)))
call SetUnitAnimation(udg_unit25,"Attack walk stand spin")
call SetUnitPositionLoc(udg_unit25,udg_locations19[1])
call RemoveLocation(udg_locations19[1])
else
call PauseTimer(udg_timer07)
call SetUnitPositionLoc(udg_unit25,udg_locations19[0])
call SetUnitAnimation(udg_unit25,"Spell Slam")
call UnitAddAbility(udg_unit26,'Amrf')
call SetUnitFlyHeight(udg_unit26,400.00,9999.00)
call AddSpecialEffectLocBJ(udg_locations19[0],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call TriggerSleepAction(0.10)
call SetUnitFlyHeight(udg_unit26,GetUnitDefaultFlyHeight(udg_unit26),400.00)
call TriggerSleepAction(0.30)
call AddSpecialEffectLocBJ(udg_locations19[0],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call UnitRemoveAbility(udg_unit26,'Amrf')
call TriggerSleepAction(0.10)
call PauseUnit(udg_unit25,false)
call SetUnitPathing(udg_unit25,true)
call PauseUnit(udg_unit26,false)
call SelectUnitForPlayerSingle(udg_unit25,GetOwningPlayer(udg_unit25))
call RemoveLocation(udg_locations19[0])
endif
if((udg_integer16==1))then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations19[2]=PolarProjectionBJ(udg_locations19[0],300.00,(30.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'n00C',GetOwningPlayer(udg_unit25),udg_locations19[2],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations19[2])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
endfunction
function Trig_YFH_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04M'))
endfunction
function Trig_YFH_Actions takes nothing returns nothing
set udg_units13[2]=GetSpellTargetUnit()
set udg_units14[2]=GetTriggerUnit()
call TriggerSleepAction(0.05)
call SetUnitTimeScale(udg_units14[2],2.50)
call PauseUnit(udg_units14[2],true)
call SetUnitPathing(udg_units14[2],false)
call PauseUnit(udg_units13[2],true)
call SetUnitTimeScalePercent(udg_units14[2],300.00)
call EnableTrigger(udg_trigger386)
set udg_integers02[662]=1
loop
exitwhen udg_integers02[662]>5
set udg_real05=(udg_real05+72.00)
call TriggerSleepAction(0.30)
set udg_integers02[662]=udg_integers02[662]+1
endloop
call UnitDamageTarget(GetTriggerUnit(),udg_units13[2],(I2R(GetHeroStatBJ(0,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevelSwapped('A04M',GetTriggerUnit()))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_FORCE,WEAPON_TYPE_WHOKNOWS)
set udg_locations03[16]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations03[16],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[16],"Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[16])
set udg_locations03[16]=PolarProjectionBJ(GetUnitLoc(udg_units13[2]),90.00,GetRandomReal(0,360))
call SetUnitPositionLocFacingLocBJ(GetTriggerUnit(),udg_locations03[16],GetUnitLoc(udg_units13[2]))
call SetUnitAnimationByIndex(GetTriggerUnit(),3)
call AddSpecialEffectLocBJ(udg_locations03[16],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'nser',GetOwningPlayer(GetTriggerUnit()),udg_locations03[16],GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,(70.00+(10.00*I2R(bj_forLoopAIndex))))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[16])
set udg_real05=GetUnitFacing(GetTriggerUnit())
set udg_booleans01[114]=true
call PauseUnit(udg_units14[2],false)
call SetUnitTimeScale(udg_units14[2],1.00)
call SetUnitPathing(udg_units14[2],true)
call TriggerSleepAction(0.60)
call PauseUnit(udg_units13[2],false)
call DisableTrigger(udg_trigger386)
set udg_booleans01[114]=false
endfunction
function Trig_YFH2_Func001C takes nothing returns boolean
return((udg_booleans01[114]))
endfunction
function Trig_YFH2_Actions takes nothing returns nothing
if((udg_booleans01[114]))then
set udg_locations03[599]=GetUnitLoc(udg_units13[2])
set udg_locations03[17]=PolarProjectionBJ(udg_locations03[599],25.00,udg_real05)
call SetUnitPositionLoc(udg_units13[2],udg_locations03[17])
call AddSpecialEffectLocBJ(udg_locations03[17],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[17])
call RemoveLocation(udg_locations03[599])
return
endif
set udg_locations03[599]=GetUnitLoc(udg_units13[2])
set udg_locations03[17]=PolarProjectionBJ(udg_locations03[599],GetRandomReal(50.00,120.00),GetRandomReal(0,360))
call SetUnitPositionLocFacingLocBJ(udg_units14[2],udg_locations03[17],udg_locations03[599])
call SetUnitAnimation(udg_units14[2],"attack")
call AddSpecialEffectLocBJ(udg_locations03[599],"Abilities\\Weapons\\GryphonRiderMissile\\GryphonRiderMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[17])
set udg_locations03[17]=PolarProjectionBJ(udg_locations03[599],GetRandomReal(50.00,120.00),GetRandomReal(0,360))
call CreateNUnitsAtLocFacingLocBJ(1,'hwat',GetOwningPlayer(udg_units14[2]),udg_locations03[17],udg_locations03[599])
call UnitApplyTimedLifeBJ(0.40,'BTLF',bj_lastCreatedUnit)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100,100,100,60.00)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,300.00)
call SetUnitAnimation(bj_lastCreatedUnit,"attack")
call RemoveLocation(udg_locations03[17])
set udg_locations03[17]=PolarProjectionBJ(udg_locations03[599],15.00,udg_real05)
call SetUnitPositionLoc(udg_units13[2],udg_locations03[17])
call SetUnitAnimation(udg_units13[2],"death")
call AddSpecialEffectLocBJ(udg_locations03[17],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[17])
call RemoveLocation(udg_locations03[599])
endfunction
function Trig_blh_ak_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04O'))
endfunction
function Trig_blh_ak_Func010001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_blh_ak_Func010001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_blh_ak_Func010001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_blh_ak_Func010A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(1,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevelSwapped('A04O',GetTriggerUnit()))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_blh_ak_Actions takes nothing returns nothing
call TriggerSleepAction(0.15)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitTimeScalePercent(GetTriggerUnit(),200.00)
call SetUnitAnimation(GetTriggerUnit(),"spell slam")
call TriggerSleepAction(0.45)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[123]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),150.00,(60.00*I2R(bj_forLoopAIndex)))
call AddSpecialEffectLocBJ(udg_locations03[123],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[123])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[123]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),120.00,(18.00*I2R(bj_forLoopAIndex)))
call AddSpecialEffectLocBJ(udg_locations03[123],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[123])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_wantDestroyGroup=true
set udg_locations03[123]=GetUnitLoc(GetTriggerUnit())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[123],Condition(function Trig_blh_ak_Func010001003)),function Trig_blh_ak_Func010A)
call SetUnitTimeScalePercent(udg_units14[1],100.00)
call PauseUnit(GetTriggerUnit(),false)
call ResetUnitAnimation(GetTriggerUnit())
call RemoveLocation(udg_locations03[123])
endfunction
function Trig_bmtj_6m_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04S'))
endfunction
function Trig_bmtj_6m_Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_bmtj_6m_Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_bmtj_6m_Func006001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_bmtj_6m_Func006A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),500.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
call DestroyEffect(bj_lastCreatedEffect)
endfunction
function Trig_bmtj_6m_Actions takes nothing returns nothing
set udg_units14[9]=GetTriggerUnit()
call EnableTrigger(udg_trigger389)
call CreateNUnitsAtLocFacingLocBJ(1,'hsor',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()))
call IssueTargetOrder(bj_lastCreatedUnit,"unholyfrenzy",GetTriggerUnit())
call SetUnitMoveSpeed(udg_units14[9],99999.00)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_bmtj_6m_Func006001003)),function Trig_bmtj_6m_Func006A)
endfunction
function Trig_bmdj_6m2_Func001C takes nothing returns boolean
return((UnitHasBuffBJ(udg_unit25,'B00O')))
endfunction
function Trig_bmdj_6m2_Actions takes nothing returns nothing
if((UnitHasBuffBJ(udg_unit25,'B00O')))then
call SetUnitLifePercentBJ(udg_unit25,(GetUnitLifePercent(udg_unit25)-0.20))
call SetUnitManaPercentBJ(udg_unit25,100)
else
call SetUnitMoveSpeed(udg_unit25,GetUnitDefaultMoveSpeed(udg_unit25))
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function Trig_bmdjl_Func002001 takes nothing returns boolean
return(UnitHasBuffBJ(GetAttacker(),'B00O'))
endfunction
function Trig_bmdjl_Func002002 takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_bmdjl_Conditions takes nothing returns boolean
return(GetBooleanAnd((UnitHasBuffBJ(GetAttacker(),'B00O')),(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false)))
endfunction
function Trig_bmdjl_Actions takes nothing returns nothing
set udg_locations03[124]=GetUnitLoc(udg_unit25)
call AddSpecialEffectLocBJ(udg_locations03[124],"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[124],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[124],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[124])
call UnitAddAbility(udg_unit25,'Amrf')
call SetUnitFlyHeight(udg_unit25,GetRandomReal(200.00,350.00),0.00)
call UnitRemoveAbility(udg_unit25,'Amrf')
set udg_locations03[124]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),GetRandomReal(250.00,400.00),GetRandomReal(0,360))
call SetUnitPositionLocFacingLocBJ(udg_unit25,udg_locations03[124],GetUnitLoc(GetTriggerUnit()))
call SetUnitAnimationWithRarity(udg_unit25,"attack",RARITY_RARE)
call RemoveLocation(udg_locations03[124])
call TriggerSleepAction(0.05)
set udg_locations03[124]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),64.00,GetRandomReal(0,360))
call SetUnitPositionLocFacingLocBJ(udg_unit25,udg_locations03[124],GetUnitLoc(GetTriggerUnit()))
call RemoveLocation(udg_locations03[124])
call SetUnitFlyHeight(udg_unit25,0.00,0.00)
call UnitDamageTarget(udg_unit25,GetTriggerUnit(),((I2R(GetHeroStatBJ(0,udg_unit25,true))*1.00)+20.00),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
set udg_locations03[124]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations03[124],"abilities\\weapons\\catapult\\catapultmissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call IssueTargetOrder(udg_unit25,"attack",GetTriggerUnit())
call RemoveLocation(udg_locations03[124])
endfunction
function Trig_cfh_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04T'))and((UnitHasBuffBJ(GetTriggerUnit(),'B00O')))
endfunction
function Trig_cfh_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000__:__!__100%~ |r")
set udg_units13[1]=GetSpellTargetUnit()
set udg_units14[1]=GetTriggerUnit()
call TriggerSleepAction(0.10)
call SetCameraFieldForPlayer(GetOwningPlayer(GetTriggerUnit()),CAMERA_FIELD_FIELD_OF_VIEW,2000.00,0)
call PauseUnit(udg_units13[1],true)
call UnitAddAbility(udg_units13[1],'Amrf')
call PauseUnit(udg_units14[1],true)
call UnitAddAbility(udg_units14[1],'Amrf')
call SetUnitFlyHeight(udg_units14[1],400.00,2000.00)
call SetUnitPositionLocFacingLocBJ(udg_units14[1],PolarProjectionBJ(GetUnitLoc(udg_units13[1]),60.00,(GetUnitFacing(udg_units14[1])-180.00)),GetUnitLoc(udg_units13[1]))
call SetUnitFlyHeight(udg_units13[1],410.00,2000.00)
call SetUnitAnimation(udg_units14[1],"spell slam")
call SetUnitAnimation(udg_units13[1],"death")
set udg_locations03[17]=GetUnitLoc(udg_units13[1])
call CreateNUnitsAtLoc(1,'nwld',GetOwningPlayer(udg_units14[1]),udg_locations03[17],bj_UNIT_FACING)
call KillUnit(bj_lastCreatedUnit)
call SetUnitTimeScalePercent(udg_units14[1],1000.00)
call AddSpecialEffectTargetUnitBJ("lefthand",bj_lastCreatedUnit,"Abilities\\Weapons\\RedDragonBreath\\RedDragonMissile.mdl")
set udg_effects03[800]=bj_lastCreatedEffect
call RemoveLocation(udg_locations03[17])
call TriggerSleepAction(0.10)
set udg_reals01[2010]=GetUnitFacing(GetTriggerUnit())
call EnableTrigger(udg_trigger392)
call TriggerSleepAction(2.00)
call DisableTrigger(udg_trigger392)
call SetUnitFlyHeight(udg_units13[1],0.00,5000.00)
call SetUnitFlyHeight(udg_units14[1],0.00,5000.00)
call DestroyEffect(udg_effects03[800])
call TriggerSleepAction(0.10)
call UnitRemoveAbility(udg_units13[1],'Amrf')
call UnitRemoveAbility(udg_units14[1],'Amrf')
call SetUnitTimeScalePercent(udg_units14[1],100.00)
call PauseUnit(udg_units13[1],false)
call PauseUnit(udg_units14[1],false)
call UnitDamageTarget(udg_units14[1],udg_units13[1],(I2R(GetHeroStatBJ(0,udg_units14[1],true))*5.00),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units14[1]),150.00,(36.00*I2R(bj_forLoopAIndex))),"Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ResetToGameCameraForPlayer(GetOwningPlayer(GetTriggerUnit()),0)
endfunction
function Trig_cfh2_Func003Func009001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[1])))
endfunction
function Trig_cfh2_Func003Func009A takes nothing returns nothing
call UnitDamageTarget(udg_units14[1],GetEnumUnit(),100.00,true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_cfh2_Actions takes nothing returns nothing
call SetUnitFacing(udg_units14[1],(udg_reals01[2010]+GetRandomReal(-80.00,80.00)))
call SetUnitAnimation(udg_units14[1],"attack")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[17]=PolarProjectionBJ(GetUnitLoc(udg_units14[1]),(200.00*I2R(bj_forLoopAIndex)),GetUnitFacing(udg_units14[1]))
call CreateNUnitsAtLoc(1,'nwlg',GetOwningPlayer(udg_units14[1]),udg_locations03[17],GetUnitFacing(udg_units14[1]))
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(0,800.00),GetRandomReal(200.00,600.00))
set udg_locations03[125]=PolarProjectionBJ(GetUnitLoc(bj_lastCreatedUnit),600.00,GetUnitFacing(bj_lastCreatedUnit))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations03[125])
call RemoveLocation(udg_locations03[125])
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,udg_locations03[17],Condition(function Trig_cfh2_Func003Func009001003)),function Trig_cfh2_Func003Func009A)
call RemoveLocation(udg_locations03[17])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_dght_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04N'))
endfunction
function Trig_dght_Actions takes nothing returns nothing
set udg_units14[3]=GetTriggerUnit()
call TriggerSleepAction(0.06)
call PauseUnit(udg_units14[3],true)
call SetUnitAnimationWithRarity(GetTriggerUnit(),"Attack 3",RARITY_RARE)
call UnitAddAbility(GetTriggerUnit(),'Amrf')
call SetUnitPathing(udg_units14[3],false)
call SetUnitFlyHeight(GetTriggerUnit(),50.00,0.00)
call UnitRemoveAbility(GetTriggerUnit(),'Amrf')
call AddSpecialEffectTargetUnitBJ("foot right",udg_units14[3],"Abilities\\Spells\\Other\\ImmolationRed\\ImmolationRedTarget.mdl")
set udg_effects02[1213]=bj_lastCreatedEffect
call EnableTrigger(udg_trigger394)
call TriggerSleepAction(0.50)
call DisableTrigger(udg_trigger394)
call SetUnitFlyHeight(GetTriggerUnit(),0.00,500.00)
call PauseUnit(udg_units14[3],false)
call SetUnitPathing(udg_units14[3],true)
call DestroyEffect(udg_effects02[1213])
call SetUnitTimeScalePercent(GetTriggerUnit(),100.00)
call GroupClear(udg_groups03[0])
endfunction
function Trig_dght2_Func001C takes nothing returns boolean
return((IsTerrainPathableBJ(PolarProjectionBJ(GetUnitLoc(udg_units14[3]),36.00,GetUnitFacing(udg_units14[3])),PATHING_TYPE_WALKABILITY)))
endfunction
function Trig_dght2_Func009001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_dght2_Func009001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[3])))
endfunction
function Trig_dght2_Func009001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[3]))))
endfunction
function Trig_dght2_Func009Func001C takes nothing returns boolean
if(not(IsUnitInGroup(GetEnumUnit(),udg_groups03[0])))then
return false
endif
return true
endfunction
function Trig_dght2_Func009A takes nothing returns nothing
if(Trig_dght2_Func009Func001C())then
else
call UnitDamageTarget(udg_units14[3],GetEnumUnit(),(I2R(GetUnitAbilityLevel(udg_units14[3],'A04N'))*80.00),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call GroupAddUnit(udg_groups03[0],GetEnumUnit())
set udg_locations03[127]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[127],"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[127])
endif
endfunction
function Trig_dght2_Func010001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_dght2_Func010001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[3])))
endfunction
function Trig_dght2_Func010001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[3]))))
endfunction
function Trig_dght2_Func010A takes nothing returns nothing
call IssueTargetOrder(GetEnumUnit(),"attack",GetEnumUnit())
set udg_locations03[127]=PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),20.00,AngleBetweenPoints(GetUnitLoc(udg_units14[3]),PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),600.00,GetUnitFacing(udg_units14[3]))))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations03[127]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations03[127]))
call AddSpecialEffectLocBJ(udg_locations03[127],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[127])
endfunction
function Trig_dght2_Actions takes nothing returns nothing
if((IsTerrainPathableBJ(PolarProjectionBJ(GetUnitLoc(udg_units14[3]),36.00,GetUnitFacing(udg_units14[3])),PATHING_TYPE_WALKABILITY)))then
else
set udg_locations03[126]=PolarProjectionBJ(GetUnitLoc(udg_units14[3]),36.00,GetUnitFacing(udg_units14[3]))
call SetUnitPositionLocFacingBJ(udg_units14[3],udg_locations03[126],GetUnitFacing(udg_units14[3]))
call RemoveLocation(udg_locations03[126])
endif
set udg_locations03[126]=GetUnitLoc(udg_units14[3])
call AddSpecialEffectLocBJ(udg_locations03[126],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call AddSpecialEffectTargetUnitBJ("foot left",udg_units14[3],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectTargetUnitBJ("foot right",udg_units14[3],"Abilities\\Weapons\\RedDragonBreath\\RedDragonMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,udg_locations03[126],Condition(function Trig_dght2_Func009001003)),function Trig_dght2_Func009A)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,udg_locations03[126],Condition(function Trig_dght2_Func010001003)),function Trig_dght2_Func010A)
call RemoveLocation(udg_locations03[126])
endfunction
function Trig_Penin_Q1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A097'))
endfunction
function Trig_Penin_Q1_Actions takes nothing returns nothing
set udg_unit31=GetTriggerUnit()
set udg_unit32=GetSpellTargetUnit()
set udg_integers19[5]=0
set udg_locations23[0]=GetUnitLoc(udg_unit31)
set udg_locations23[1]=GetUnitLoc(udg_unit32)
call SetUnitAnimation(udg_unit31,"attack")
call PauseUnit(udg_unit32,true)
call SetUnitPathing(udg_unit32,false)
set udg_reals12[0]=AngleBetweenPoints(udg_locations23[1],udg_locations23[0])
call EnableTrigger(udg_trigger396)
call RemoveLocation(udg_locations23[1])
endfunction
function Trig_Penin_Q2_Func003Func001C takes nothing returns boolean
return((udg_integers19[5]>=20))or((DistanceBetweenPoints(udg_locations23[1],udg_locations23[0])<=200.00))
endfunction
function Trig_Penin_Q2_Func003Func011C takes nothing returns boolean
return((IsUnitEnemy(udg_unit32,GetOwningPlayer(udg_unit31))))
endfunction
function Trig_Penin_Q2_Func003C takes nothing returns boolean
return((((udg_integers19[5]>=20))or((DistanceBetweenPoints(udg_locations23[1],udg_locations23[0])<=200.00))))
endfunction
function Trig_Penin_Q2_Actions takes nothing returns nothing
set udg_integers19[5]=(udg_integers19[5]+1)
set udg_locations23[1]=GetUnitLoc(udg_unit32)
if((((udg_integers19[5]>=20))or((DistanceBetweenPoints(udg_locations23[1],udg_locations23[0])<=200.00))))then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPathing(udg_unit32,true)
call PauseUnit(udg_unit32,false)
if((IsUnitEnemy(udg_unit32,GetOwningPlayer(udg_unit31))))then
call AddSpecialEffectLocBJ(udg_locations23[0],"Units\\NightElf\\Wisp\\WispExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call UnitDamageTarget(udg_unit31,udg_unit32,(I2R(GetHeroAgi(udg_unit31,true))*I2R(GetUnitAbilityLevel(udg_unit31,'A097'))),false,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_ENHANCED,WEAPON_TYPE_WHOKNOWS)
call SetUnitAnimation(udg_unit32,"death")
endif
call RemoveLocation(udg_locations23[0])
call RemoveLocation(udg_locations23[1])
else
set udg_locations23[2]=PolarProjectionBJ(udg_locations23[1],35.00,udg_reals12[0])
call SetUnitPositionLocFacingBJ(udg_unit32,udg_locations23[2],udg_reals12[0])
call AddSpecialEffectLocBJ(udg_locations23[1],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations23[2])
call RemoveLocation(udg_locations23[1])
endif
endfunction
function Trig_Penin_W1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A09A'))
endfunction
function Trig_Penin_W1_Func006001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Penin_W1_Func006001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_Penin_W1_Func006001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit31)))
endfunction
function Trig_Penin_W1_Func006001003002 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit31))))
endfunction
function Trig_Penin_W1_Func006001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit31))))))
endfunction
function Trig_Penin_W1_Func006A takes nothing returns nothing
set udg_locations23[4]=GetUnitLoc(GetEnumUnit())
call GroupAddUnit(udg_groups10[0],GetEnumUnit())
call RemoveLocation(udg_locations23[4])
endfunction
function Trig_Penin_W1_Actions takes nothing returns nothing
set udg_unit31=GetTriggerUnit()
set udg_locations23[3]=GetUnitLoc(udg_unit31)
set udg_integers19[1]=0
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'n00H',GetOwningPlayer(udg_unit31),udg_locations23[3],(I2R(bj_forLoopAIndex)*60.00))
call UnitApplyTimedLifeBJ(0.50,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations23[3],Condition(function Trig_Penin_W1_Func006001003)),function Trig_Penin_W1_Func006A)
call EnableTrigger(udg_trigger398)
endfunction
function Trig_Penin_W2_Func002Func001A takes nothing returns nothing
set udg_locations23[4]=GetUnitLoc(GetEnumUnit())
set udg_reals12[1]=AngleBetweenPoints(udg_locations23[3],udg_locations23[4])
set udg_locations23[5]=PolarProjectionBJ(udg_locations23[4],30.00,udg_reals12[1])
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_locations23[5],udg_reals12[1])
call AddSpecialEffectLocBJ(udg_locations23[4],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations23[4])
call RemoveLocation(udg_locations23[5])
endfunction
function Trig_Penin_W2_Func002Func003A takes nothing returns nothing
call SetUnitFlyHeight(GetEnumUnit(),0.00,9999999.00)
call UnitRemoveAbility(GetEnumUnit(),'Amrf')
call UnitDamageTarget(udg_unit31,GetEnumUnit(),(80.00*I2R(GetUnitAbilityLevel(udg_unit31,'A09A'))),false,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_ENHANCED,WEAPON_TYPE_WHOKNOWS)
call PauseUnit(GetEnumUnit(),false)
call SetUnitAnimation(GetEnumUnit(),"death")
endfunction
function Trig_Penin_W2_Func002C takes nothing returns boolean
return((udg_integers19[1]>=20))
endfunction
function Trig_Penin_W2_Func003Func001A takes nothing returns nothing
call UnitAddAbility(GetEnumUnit(),'Amrf')
call SetUnitFlyHeight(GetEnumUnit(),500.00,1200.00)
call UnitRemoveAbility(GetEnumUnit(),'Amrf')
endfunction
function Trig_Penin_W2_Func003C takes nothing returns boolean
return((udg_integers19[1]==1))
endfunction
function Trig_Penin_W2_Func004Func001A takes nothing returns nothing
call UnitAddAbility(GetEnumUnit(),'Amrf')
call SetUnitFlyHeight(GetEnumUnit(),0.00,800.00)
call UnitRemoveAbility(GetEnumUnit(),'Amrf')
endfunction
function Trig_Penin_W2_Func004C takes nothing returns boolean
return((udg_integers19[1]==8))
endfunction
function Trig_Penin_W2_Actions takes nothing returns nothing
set udg_integers19[1]=(udg_integers19[1]+1)
if((udg_integers19[1]>=20))then
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(udg_groups10[0],function Trig_Penin_W2_Func002Func003A)
call RemoveLocation(udg_locations23[3])
call GroupClear(udg_groups10[0])
else
call ForGroupBJ(udg_groups10[0],function Trig_Penin_W2_Func002Func001A)
endif
if((udg_integers19[1]==1))then
call ForGroupBJ(udg_groups10[0],function Trig_Penin_W2_Func003Func001A)
endif
if((udg_integers19[1]==8))then
call ForGroupBJ(udg_groups10[0],function Trig_Penin_W2_Func004Func001A)
endif
endfunction
function Trig_Penin_T_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A09B'))
endfunction
function Trig_Penin_T_Func010Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_Penin_T_Func010Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit31)))
endfunction
function Trig_Penin_T_Func010Func006001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit31))))
endfunction
function Trig_Penin_T_Func010Func006A takes nothing returns nothing
call UnitDamageTarget(udg_unit31,GetEnumUnit(),500.00,true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL,WEAPON_TYPE_WHOKNOWS)
call GroupAddUnit(udg_groups10[1],GetEnumUnit())
endfunction
function Trig_Penin_T_Func017001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_Penin_T_Func017001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit31)))
endfunction
function Trig_Penin_T_Func017001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit31))))
endfunction
function Trig_Penin_T_Func017A takes nothing returns nothing
call UnitDamageTarget(udg_unit31,GetEnumUnit(),(I2R(GetHeroAgi(udg_unit31,true))*15.00),false,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_ENHANCED,WEAPON_TYPE_WHOKNOWS)
call GroupAddUnit(udg_groups10[1],GetEnumUnit())
endfunction
function Trig_Penin_T_Func020A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),50.00)
endfunction
function Trig_Penin_T_Func024A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetOwningPlayer(GetEnumUnit()))
endfunction
function Trig_Penin_T_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"|cFFFF0000__:_____,_____,_____,_____,__________________|r")
set udg_unit31=GetTriggerUnit()
set udg_locations23[6]=GetUnitLoc(udg_unit31)
call TriggerSleepAction(0.10)
call PauseUnit(udg_unit31,true)
call UnitAddAbility(udg_unit31,'Amrf')
call SetUnitAnimation(udg_unit31,"spell two")
call SetUnitFlyHeight(udg_unit31,400.00,300.00)
call TriggerSleepAction(1.00)
set udg_integers19[0]=1
loop
exitwhen udg_integers19[0]>10
set udg_locations23[7]=PolarProjectionBJ(udg_locations23[6],GetRandomReal(150.00,400.00),(I2R(udg_integers19[0])*36.00))
call CreateNUnitsAtLoc(1,'nech',GetOwningPlayer(udg_unit31),udg_locations23[7],bj_UNIT_FACING)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,50.00)
call KillUnit(bj_lastCreatedUnit)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations23[7],Condition(function Trig_Penin_T_Func010Func006001003)),function Trig_Penin_T_Func010Func006A)
call RemoveLocation(udg_locations23[7])
call TriggerSleepAction(0.01)
set udg_integers19[0]=udg_integers19[0]+1
endloop
call SetUnitFlyHeight(udg_unit31,0.00,9999.00)
call TriggerSleepAction(0.10)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations23[7]=PolarProjectionBJ(udg_locations23[6],300.00,(I2R(bj_forLoopAIndex)*120.00))
call CreateNUnitsAtLoc(1,'nrac',GetOwningPlayer(udg_unit31),udg_locations23[7],bj_UNIT_FACING)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,50.00)
call KillUnit(bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,10.00)
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=6
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set udg_locations23[8]=PolarProjectionBJ(udg_locations23[6],(I2R(bj_forLoopAIndex)*100.00),(I2R(bj_forLoopBIndex)*60.00))
call AddSpecialEffectLocBJ(udg_locations23[8],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations23[8])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call RemoveLocation(udg_locations23[7])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitAnimation(udg_unit31,"spell three")
call UnitRemoveAbility(udg_unit31,'Amrf')
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(650.00,udg_locations23[6],Condition(function Trig_Penin_T_Func017001003)),function Trig_Penin_T_Func017A)
call RemoveLocation(udg_locations23[6])
call TriggerSleepAction(0.30)
call ForGroupBJ(udg_groups10[1],function Trig_Penin_T_Func020A)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_unit31),50.00)
call PauseUnit(udg_unit31,false)
call TriggerSleepAction(1.50)
call ForGroupBJ(udg_groups10[1],function Trig_Penin_T_Func024A)
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_unit31))
call GroupClear(udg_groups10[1])
endfunction
function Trig_Penin_R1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A099'))
endfunction
function Trig_Penin_R1_Actions takes nothing returns nothing
set udg_unit31=GetTriggerUnit()
set udg_locations23[9]=GetSpellTargetLoc()
set udg_integers19[2]=0
set udg_integers19[3]=0
set udg_unit33=CreateUnitAtLoc(GetOwningPlayer(udg_unit31),'nsno',udg_locations23[9],0)
call PauseUnit(udg_unit33,true)
call SetUnitFlyHeight(udg_unit33,450.00,99999.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations23[10]=PolarProjectionBJ(udg_locations23[9],10.00,(I2R(bj_forLoopAIndex)*18.00))
call CreateNUnitsAtLocFacingLocBJ(1,'n00F',GetOwningPlayer(udg_unit31),udg_locations23[10],udg_locations23[9])
call SetUnitAnimation(bj_lastCreatedUnit,"Stand 2")
call SetUnitTimeScalePercent(bj_lastCreatedUnit,150.00)
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations23[10])
set udg_locations23[10]=PolarProjectionBJ(udg_locations23[9],GetRandomReal(150.00,600.00),(I2R(bj_forLoopAIndex)*18.00))
call CreateNUnitsAtLocFacingLocBJ(1,'n00G',Player(12),udg_locations23[10],udg_locations23[9])
call IssueTargetOrder(bj_lastCreatedUnit,"attack",udg_unit33)
call GroupAddUnit(udg_groups10[2],bj_lastCreatedUnit)
call RemoveLocation(udg_locations23[10])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger401)
endfunction
function Trig_Penin_R2_Func002Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Penin_R2_Func002Func003001003002001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups10[3])==false)
endfunction
function Trig_Penin_R2_Func002Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit31)))
endfunction
function Trig_Penin_R2_Func002Func003001003002 takes nothing returns boolean
return GetBooleanAnd((IsUnitInGroup(GetFilterUnit(),udg_groups10[3])==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit31))))
endfunction
function Trig_Penin_R2_Func002Func003001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(GetBooleanAnd((IsUnitInGroup(GetFilterUnit(),udg_groups10[3])==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit31))))))
endfunction
function Trig_Penin_R2_Func002Func003A takes nothing returns nothing
call GroupAddUnit(udg_groups10[3],GetEnumUnit())
call PauseUnit(GetEnumUnit(),true)
call UnitAddAbility(GetEnumUnit(),'Amrf')
call SetUnitFlyHeight(GetEnumUnit(),400.00,200.00)
endfunction
function Trig_Penin_R2_Func002Func004Func002Func001C takes nothing returns boolean
return((DistanceBetweenPoints(udg_locations23[10],udg_locations23[9])<=50.00))and((GetUnitFlyHeight(GetEnumUnit())==400.00))
endfunction
function Trig_Penin_R2_Func002Func004Func002C takes nothing returns boolean
return((DistanceBetweenPoints(udg_locations23[10],udg_locations23[9])>=350.00))
endfunction
function Trig_Penin_R2_Func002Func004A takes nothing returns nothing
set udg_locations23[10]=GetUnitLoc(GetEnumUnit())
if((DistanceBetweenPoints(udg_locations23[10],udg_locations23[9])>=350.00))then
call ShowUnit(GetEnumUnit(),true)
call SetUnitFlyHeight(GetEnumUnit(),GetUnitDefaultFlyHeight(GetEnumUnit()),999999.00)
call UnitRemoveAbility(GetEnumUnit(),'Amrf')
call PauseUnit(GetEnumUnit(),false)
call GroupRemoveUnit(udg_groups10[3],GetEnumUnit())
else
if((((DistanceBetweenPoints(udg_locations23[10],udg_locations23[9])<=50.00))and((GetUnitFlyHeight(GetEnumUnit())==400.00))))then
call ShowUnit(GetEnumUnit(),false)
else
set udg_locations23[11]=PolarProjectionBJ(udg_locations23[10],4.00,AngleBetweenPoints(udg_locations23[10],udg_locations23[9]))
call SetUnitPositionLoc(GetEnumUnit(),udg_locations23[11])
call RemoveLocation(udg_locations23[10])
call RemoveLocation(udg_locations23[11])
endif
endif
endfunction
function Trig_Penin_R2_Func002Func009A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Penin_R2_Func002Func013A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),true)
call SetUnitFlyHeight(GetEnumUnit(),GetUnitDefaultFlyHeight(GetEnumUnit()),1000000000.00)
endfunction
function Trig_Penin_R2_Func002C takes nothing returns boolean
return((udg_integers19[2]>=80))
endfunction
function Trig_Penin_R2_Actions takes nothing returns nothing
set udg_integers19[2]=(udg_integers19[2]+1)
if((udg_integers19[2]>=80))then
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLoc(1,'nrac',GetOwningPlayer(udg_unit31),udg_locations23[9],bj_UNIT_FACING)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,50.00)
call KillUnit(bj_lastCreatedUnit)
call ForGroupBJ(udg_groups10[2],function Trig_Penin_R2_Func002Func009A)
call GroupClear(udg_groups10[2])
call StartTimerBJ(udg_timer10,true,0.04)
call KillUnit(udg_unit33)
call ForGroupBJ(udg_groups10[3],function Trig_Penin_R2_Func002Func013A)
else
call SetUnitScale(udg_unit33,(I2R(udg_integers19[2])*0.06),(I2R(udg_integers19[2])*0.06),(I2R(udg_integers19[2])*0.06))
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations23[9],Condition(function Trig_Penin_R2_Func002Func003001003)),function Trig_Penin_R2_Func002Func003A)
call ForGroupBJ(udg_groups10[3],function Trig_Penin_R2_Func002Func004A)
endif
endfunction
function Trig_Penin_R3_Func002Func001A takes nothing returns nothing
call SetUnitFlyHeight(GetEnumUnit(),GetUnitDefaultFlyHeight(GetEnumUnit()),1000000000.00)
set udg_locations23[11]=GetUnitLoc(GetEnumUnit())
set udg_reals12[2]=AngleBetweenPoints(udg_locations23[9],udg_locations23[11])
set udg_locations23[12]=PolarProjectionBJ(udg_locations23[11],35.00,udg_reals12[2])
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_locations23[12],udg_reals12[2])
call AddSpecialEffectLocBJ(udg_locations23[11],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations23[11])
call RemoveLocation(udg_locations23[12])
endfunction
function Trig_Penin_R3_Func002Func003A takes nothing returns nothing
call SetUnitFlyHeight(GetEnumUnit(),GetUnitDefaultFlyHeight(GetEnumUnit()),1000000000.00)
call UnitRemoveAbility(GetEnumUnit(),'Amrf')
call UnitDamageTarget(udg_unit31,GetEnumUnit(),((8.00*I2R(GetHeroAgi(udg_unit31,true)))+(I2R(GetUnitAbilityLevel(udg_unit31,'A099'))*500.00)),false,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_ENHANCED,WEAPON_TYPE_WHOKNOWS)
call PauseUnit(GetEnumUnit(),false)
endfunction
function Trig_Penin_R3_Func002C takes nothing returns boolean
return((udg_integers19[3]>=15))
endfunction
function Trig_Penin_R3_Actions takes nothing returns nothing
set udg_integers19[3]=(udg_integers19[3]+1)
if((udg_integers19[3]>=15))then
call PauseTimer(udg_timer10)
call ForGroupBJ(udg_groups10[3],function Trig_Penin_R3_Func002Func003A)
call GroupClear(udg_groups10[3])
call RemoveLocation(udg_locations23[9])
else
call ForGroupBJ(udg_groups10[3],function Trig_Penin_R3_Func002Func001A)
endif
endfunction
function Trig_Peien_E1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A098'))
endfunction
function Trig_Peien_E1_Actions takes nothing returns nothing
set udg_unit31=GetTriggerUnit()
call TriggerRegisterUnitEvent(udg_trigger404,udg_unit31,EVENT_UNIT_DAMAGED)
endfunction
function Trig_Peien_E2_Conditions takes nothing returns boolean
return((UnitHasBuffBJ(udg_unit31,'B00Z')))and((GetRandomInt(1,100)<=(GetUnitAbilityLevel(udg_unit31,'A098')+5)))and((IsUnitType(GetEventDamageSource(),UNIT_TYPE_STRUCTURE)==false))and((GetUnitTypeId(GetEventDamageSource())!='uloc'))
endfunction
function Trig_Peien_E2_Func004Func003A takes nothing returns nothing
set udg_locations23[14]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLocFacingLocBJ(1,'n00H',GetOwningPlayer(udg_unit31),udg_locations23[13],udg_locations23[14])
call UnitApplyTimedLifeBJ(0.50,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations23[14])
endfunction
function Trig_Peien_E2_Func004C takes nothing returns boolean
return((DistanceBetweenPoints(udg_locations23[14],udg_locations23[13])>=350.00))
endfunction
function Trig_Peien_E2_Actions takes nothing returns nothing
set udg_integers19[4]=0
set udg_locations23[13]=GetUnitLoc(udg_unit31)
set udg_locations23[14]=GetUnitLoc(GetEventDamageSource())
if((DistanceBetweenPoints(udg_locations23[14],udg_locations23[13])>=350.00))then
call RemoveLocation(udg_locations23[13])
call RemoveLocation(udg_locations23[14])
else
call GroupAddUnit(udg_groups10[4],GetEventDamageSource())
call SetWidgetLife(udg_unit31,(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit31)+(GetEventDamage()*0.05)))
call ForGroupBJ(udg_groups10[4],function Trig_Peien_E2_Func004Func003A)
call StartTimerBJ(udg_timer11,true,0.02)
endif
endfunction
function Trig_Peien_E3_Conditions takes nothing returns boolean
return((IsUnitAliveBJ(udg_unit31)))
endfunction
function Trig_Peien_E3_Func002Func003A takes nothing returns nothing
set udg_locations23[14]=GetUnitLoc(GetEnumUnit())
set udg_reals12[3]=AngleBetweenPoints(udg_locations23[13],udg_locations23[14])
set udg_locations23[15]=PolarProjectionBJ(udg_locations23[14],35.00,udg_reals12[3])
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_locations23[15],udg_reals12[3])
call AddSpecialEffectLocBJ(udg_locations23[14],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations23[14])
call RemoveLocation(udg_locations23[15])
endfunction
function Trig_Peien_E3_Func002Func005A takes nothing returns nothing
call UnitDamageTarget(udg_unit31,GetEnumUnit(),((I2R(GetUnitAbilityLevel(udg_unit31,'A098'))*I2R(GetHeroAgi(udg_unit31,true)))*0.15),false,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_ENHANCED,WEAPON_TYPE_WHOKNOWS)
call UnitAddAbility(GetEnumUnit(),'Amrf')
call SetUnitFlyHeight(GetEnumUnit(),0.00,999999.00)
call UnitRemoveAbility(GetEnumUnit(),'Amrf')
endfunction
function Trig_Peien_E3_Func002C takes nothing returns boolean
return((udg_integers19[4]>=20))
endfunction
function Trig_Peien_E3_Actions takes nothing returns nothing
set udg_integers19[4]=(udg_integers19[4]+1)
if((udg_integers19[4]>=20))then
call RemoveLocation(udg_locations23[13])
call PauseTimer(udg_timer11)
call ForGroupBJ(udg_groups10[4],function Trig_Peien_E3_Func002Func005A)
call GroupClear(udg_groups10[4])
else
call ForGroupBJ(udg_groups10[4],function Trig_Peien_E3_Func002Func003A)
endif
endfunction
function Trig_daojuxianzhi_Actions takes nothing returns nothing
call TriggerSleepAction(300.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerTechResearchedSwap('Rhst',1,Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(180.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerTechResearchedSwap('Rhst',2,Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_shezhiwupin_Actions takes nothing returns nothing
set udg_integers07[1]='I00Y'
set udg_integers07[2]='I00Z'
set udg_integers07[3]='I014'
set udg_integers07[4]='I015'
set udg_integers07[5]='I016'
set udg_integers07[6]='I017'
set udg_integers07[7]='I018'
set udg_integers07[8]='I019'
set udg_integers07[9]='I01A'
set udg_integers07[10]='I01B'
set udg_integers08[1]='I01L'
set udg_integers08[2]='I01C'
set udg_integers08[3]='I01D'
set udg_integers08[4]='I01E'
set udg_integers08[5]='I01F'
set udg_integers08[6]='I01G'
set udg_integers08[7]='I01H'
set udg_integers08[8]='I01I'
set udg_integers08[9]='I01J'
set udg_integers08[10]='I01K'
set udg_integers09[1]='I00J'
set udg_integers09[2]='I00K'
set udg_integers09[3]='I01M'
set udg_integers09[4]='I01N'
set udg_integers09[5]='I01O'
set udg_integers09[6]='I01P'
set udg_integers09[7]='I01Q'
set udg_integers09[8]='I01R'
set udg_integers09[9]='I01S'
set udg_integers09[10]='I01T'
set udg_integers10[1]='I004'
set udg_integers10[2]='I005'
set udg_integers10[3]='I003'
set udg_integers10[4]='I01U'
set udg_integers10[5]='I01V'
set udg_integers07[31]='I007'
set udg_integers07[32]='I00L'
set udg_integers07[33]='srbd'
set udg_integers10[51]='ofro'
set udg_integers10[52]='oven'
set udg_integers10[53]='odef'
set udg_integers10[54]='ofir'
set udg_integers10[55]='oli2'
set udg_integers07[51]='I01Y'
set udg_integers07[52]='I022'
set udg_integers07[53]='I023'
set udg_integers07[54]='I01Z'
set udg_integers07[55]='I021'
set udg_integers08[51]='I024'
set udg_integers08[52]='I025'
set udg_integers08[53]='I026'
set udg_integers08[54]='I028'
set udg_integers08[55]='I027'
set udg_integers09[51]='I02A'
set udg_integers09[52]='I02B'
set udg_integers09[53]='I02C'
set udg_integers09[54]='I02D'
set udg_integers09[55]='I029'
endfunction
function Trig_wupinchongfu_Conditions takes nothing returns boolean
return((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))and((GetItemType(GetManipulatedItem())!=ITEM_TYPE_ARTIFACT))and((GetItemType(GetManipulatedItem())!=ITEM_TYPE_CHARGED))and((GetItemType(GetManipulatedItem())!=ITEM_TYPE_PURCHASABLE))
endfunction
function Trig_wupinchongfu_Func003Func001C takes nothing returns boolean
return((GetItemType(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))==udg_itemtype01))
endfunction
function Trig_wupinchongfu_Func004C takes nothing returns boolean
return((udg_integer09>1))
endfunction
function Trig_wupinchongfu_Actions takes nothing returns nothing
set udg_integer09=0
set udg_itemtype01=GetItemType(GetManipulatedItem())
set udg_integer10=1
loop
exitwhen udg_integer10>6
if((GetItemType(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))==udg_itemtype01))then
set udg_integer09=(udg_integer09+1)
endif
set udg_integer10=udg_integer10+1
endloop
if((udg_integer09>1))then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetTriggerUnit())
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"___________!")
endif
endfunction
function Trig_wupinchongfu4_Func001C takes nothing returns boolean
return((GetItemTypeId(GetManipulatedItem())=='I02F'))or((GetItemTypeId(GetManipulatedItem())=='I030'))
endfunction
function Trig_wupinchongfu4_Conditions takes nothing returns boolean
return((((GetItemTypeId(GetManipulatedItem())=='I02F'))or((GetItemTypeId(GetManipulatedItem())=='I030'))))and((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))
endfunction
function Trig_wupinchongfu4_Func004Func001Func001C takes nothing returns boolean
return((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))==udg_integers07[500]))or((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))=='I030'))or((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))=='I02F'))
endfunction
function Trig_wupinchongfu4_Func004Func001C takes nothing returns boolean
return((((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))==udg_integers07[500]))or((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))=='I030'))or((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))=='I02F'))))
endfunction
function Trig_wupinchongfu4_Func005C takes nothing returns boolean
return((udg_integer09>1))
endfunction
function Trig_wupinchongfu4_Actions takes nothing returns nothing
set udg_integer09=0
set udg_integers07[500]=GetItemTypeId(GetManipulatedItem())
set udg_integer10=1
loop
exitwhen udg_integer10>6
if((((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))==udg_integers07[500]))or((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))=='I030'))or((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))=='I02F'))))then
set udg_integer09=(udg_integer09+1)
endif
set udg_integer10=udg_integer10+1
endloop
if((udg_integer09>1))then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetTriggerUnit())
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"____________!")
endif
endfunction
function Trig_wupinchongfu6_Conditions takes nothing returns boolean
return((GetItemTypeId(GetManipulatedItem())=='mcou'))and((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))
endfunction
function Trig_wupinchongfu6_Func004Func001Func001C takes nothing returns boolean
return((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))==udg_integers07[500]))or((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))=='mcou'))
endfunction
function Trig_wupinchongfu6_Func004Func001C takes nothing returns boolean
return((((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))==udg_integers07[500]))or((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))=='mcou'))))
endfunction
function Trig_wupinchongfu6_Func005C takes nothing returns boolean
return((udg_integer09>1))
endfunction
function Trig_wupinchongfu6_Actions takes nothing returns nothing
set udg_integer09=0
set udg_integers07[500]=GetItemTypeId(GetManipulatedItem())
set udg_integer10=1
loop
exitwhen udg_integer10>6
if((((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))==udg_integers07[500]))or((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))=='mcou'))))then
set udg_integer09=(udg_integer09+1)
endif
set udg_integer10=udg_integer10+1
endloop
if((udg_integer09>1))then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetTriggerUnit())
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"____________!")
endif
endfunction
function Trig_wupinchongfu7_Conditions takes nothing returns boolean
return((GetItemTypeId(GetManipulatedItem())=='rde4'))and((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))
endfunction
function Trig_wupinchongfu7_Func004Func001Func001C takes nothing returns boolean
return((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))==udg_integers07[500]))or((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))=='rde4'))
endfunction
function Trig_wupinchongfu7_Func004Func001C takes nothing returns boolean
return((((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))==udg_integers07[500]))or((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))=='rde4'))))
endfunction
function Trig_wupinchongfu7_Func005C takes nothing returns boolean
return((udg_integer09>1))
endfunction
function Trig_wupinchongfu7_Actions takes nothing returns nothing
set udg_integer09=0
set udg_integers07[500]=GetItemTypeId(GetManipulatedItem())
set udg_integer10=1
loop
exitwhen udg_integer10>6
if((((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))==udg_integers07[500]))or((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))=='rde4'))))then
set udg_integer09=(udg_integer09+1)
endif
set udg_integer10=udg_integer10+1
endloop
if((udg_integer09>1))then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetTriggerUnit())
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"____________!")
endif
endfunction
function Trig_wupinchongfu5_Func006C takes nothing returns boolean
return((GetItemTypeId(GetManipulatedItem())=='I011'))or((GetItemTypeId(GetManipulatedItem())=='I012'))or((GetItemTypeId(GetManipulatedItem())=='I001'))
endfunction
function Trig_wupinchongfu5_Conditions takes nothing returns boolean
return((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))and((((GetItemTypeId(GetManipulatedItem())=='I011'))or((GetItemTypeId(GetManipulatedItem())=='I012'))or((GetItemTypeId(GetManipulatedItem())=='I001'))))
endfunction
function Trig_wupinchongfu5_Func003Func001Func003C takes nothing returns boolean
return((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))=='I011'))or((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))=='I012'))or((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))=='I001'))
endfunction
function Trig_wupinchongfu5_Func003Func001C takes nothing returns boolean
return((((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))=='I011'))or((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))=='I012'))or((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))=='I001'))))
endfunction
function Trig_wupinchongfu5_Func004C takes nothing returns boolean
return((udg_integer09>1))
endfunction
function Trig_wupinchongfu5_Actions takes nothing returns nothing
set udg_integer09=0
set udg_itemtype01=GetItemType(GetManipulatedItem())
set udg_integer10=1
loop
exitwhen udg_integer10>6
if((((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))=='I011'))or((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))=='I012'))or((GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))=='I001'))))then
set udg_integer09=(udg_integer09+1)
endif
set udg_integer10=udg_integer10+1
endloop
if((udg_integer09>1))then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetTriggerUnit())
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"__________!")
endif
endfunction
function Trig_wupinchongfu_2_Conditions takes nothing returns boolean
return((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))and((GetItemType(GetManipulatedItem())==ITEM_TYPE_ARTIFACT))
endfunction
function Trig_wupinchongfu_2_Func003Func001C takes nothing returns boolean
return((GetItemType(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))==udg_itemtype01))
endfunction
function Trig_wupinchongfu_2_Func004C takes nothing returns boolean
return((udg_integer09>2))
endfunction
function Trig_wupinchongfu_2_Actions takes nothing returns nothing
set udg_integer09=0
set udg_itemtype01=GetItemType(GetManipulatedItem())
set udg_integer10=1
loop
exitwhen udg_integer10>6
if((GetItemType(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))==udg_itemtype01))then
set udg_integer09=(udg_integer09+1)
endif
set udg_integer10=udg_integer10+1
endloop
if((udg_integer09>2))then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetTriggerUnit())
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"__________!")
endif
endfunction
function Trig_wupinchongfu_3_Conditions takes nothing returns boolean
return((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))and((GetItemType(GetManipulatedItem())==ITEM_TYPE_PURCHASABLE))
endfunction
function Trig_wupinchongfu_3_Func003Func001C takes nothing returns boolean
return((GetItemType(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))==udg_itemtype01))
endfunction
function Trig_wupinchongfu_3_Func004C takes nothing returns boolean
return((udg_integer09>2))
endfunction
function Trig_wupinchongfu_3_Actions takes nothing returns nothing
set udg_integer09=0
set udg_itemtype01=GetItemType(GetManipulatedItem())
set udg_integer10=1
loop
exitwhen udg_integer10>6
if((GetItemType(UnitItemInSlotBJ(GetTriggerUnit(),udg_integer10))==udg_itemtype01))then
set udg_integer09=(udg_integer09+1)
endif
set udg_integer10=udg_integer10+1
endloop
if((udg_integer09>2))then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetTriggerUnit())
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"___________!")
endif
endfunction
function Trig_hecheng_Func001Func002Func001Func001Func001C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetBuyingUnit(),udg_integers09[bj_forLoopAIndex])))and((bj_forLoopAIndex!=10))
endfunction
function Trig_hecheng_Func001Func002Func001Func001C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetBuyingUnit(),udg_integers08[bj_forLoopAIndex])))and((bj_forLoopAIndex!=10))
endfunction
function Trig_hecheng_Func001Func002Func001C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetBuyingUnit(),udg_integers07[bj_forLoopAIndex])))and((bj_forLoopAIndex!=10))
endfunction
function Trig_hecheng_Func001C takes nothing returns boolean
return((GetItemTypeId(GetSoldItem())=='I008'))
endfunction
function Trig_hecheng_Func002Func001Func001C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetBuyingUnit(),udg_integers10[bj_forLoopAIndex])))and((bj_forLoopAIndex!=5))
endfunction
function Trig_hecheng_Func002C takes nothing returns boolean
return((GetItemTypeId(GetSoldItem())=='I009'))
endfunction
function Trig_hecheng_Func003Func001Func001C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetBuyingUnit(),'I00B')))
endfunction
function Trig_hecheng_Func003Func001C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetBuyingUnit(),'I00D')))
endfunction
function Trig_hecheng_Func003C takes nothing returns boolean
return((GetItemTypeId(GetSoldItem())=='I00P'))
endfunction
function Trig_hecheng_Actions takes nothing returns nothing
if((GetItemTypeId(GetSoldItem())=='I008'))then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((((UnitHasItemOfTypeBJ(GetBuyingUnit(),udg_integers07[bj_forLoopAIndex])))and((bj_forLoopAIndex!=10))))then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),udg_integers07[bj_forLoopAIndex]))
call UnitAddItemByIdSwapped(udg_integers07[(bj_forLoopAIndex+1)],GetBuyingUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetBuyingUnit()),0,0,5.00,"__|cFF66FFCC___|r____!")
return
else
if((((UnitHasItemOfTypeBJ(GetBuyingUnit(),udg_integers08[bj_forLoopAIndex])))and((bj_forLoopAIndex!=10))))then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),udg_integers08[bj_forLoopAIndex]))
call UnitAddItemByIdSwapped(udg_integers08[(bj_forLoopAIndex+1)],GetBuyingUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetBuyingUnit()),0,0,5.00,"__|cFF66FFCC___|r____!")
return
else
if((((UnitHasItemOfTypeBJ(GetBuyingUnit(),udg_integers09[bj_forLoopAIndex])))and((bj_forLoopAIndex!=10))))then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),udg_integers09[bj_forLoopAIndex]))
call UnitAddItemByIdSwapped(udg_integers09[(bj_forLoopAIndex+1)],GetBuyingUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetBuyingUnit()),0,0,5.00,"__|cFF66FFCC___|r____!")
return
endif
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
if((GetItemTypeId(GetSoldItem())=='I009'))then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((((UnitHasItemOfTypeBJ(GetBuyingUnit(),udg_integers10[bj_forLoopAIndex])))and((bj_forLoopAIndex!=5))))then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),udg_integers10[bj_forLoopAIndex]))
call UnitAddItemByIdSwapped(udg_integers10[(bj_forLoopAIndex+1)],GetBuyingUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetBuyingUnit()),0,0,5.00,("__"+("|cFF66FFCC"+(GetItemName(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),udg_integers10[(bj_forLoopAIndex+1)]))+("|r____!")))))
return
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
if((GetItemTypeId(GetSoldItem())=='I00P'))then
if((UnitHasItemOfTypeBJ(GetBuyingUnit(),'I00D')))then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I00D'))
call UnitAddItemByIdSwapped('I00B',GetBuyingUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetBuyingUnit()),0,0,5.00,("__"+("|cFF66FFCC"+(GetItemName(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I00B'))+("|r____!")))))
return
else
if((UnitHasItemOfTypeBJ(GetBuyingUnit(),'I00B')))then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I00B'))
call UnitAddItemByIdSwapped('I00C',GetBuyingUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetBuyingUnit()),0,0,5.00,("__"+("|cFF66FFCC"+(GetItemName(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I00C'))+("|r____!")))))
return
endif
endif
endif
endfunction
function Trig_fumo_Conditions takes nothing returns boolean
return((GetItemTypeId(GetSoldItem())=='I02E'))
endfunction
function Trig_fumo_Func002Func002Func001C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetBuyingUnit(),udg_integers10[bj_forLoopAIndex])))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))
endfunction
function Trig_fumo_Func002C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetBuyingUnit(),'I00Y')))
endfunction
function Trig_fumo_Func003Func002Func001C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetBuyingUnit(),udg_integers10[bj_forLoopAIndex])))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))
endfunction
function Trig_fumo_Func003C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetBuyingUnit(),'I01L')))
endfunction
function Trig_fumo_Func004Func002Func001C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetBuyingUnit(),udg_integers10[bj_forLoopAIndex])))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))
endfunction
function Trig_fumo_Func004C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetBuyingUnit(),'I00J')))
endfunction
function Trig_fumo_Actions takes nothing returns nothing
if((UnitHasItemOfTypeBJ(GetBuyingUnit(),'I00Y')))then
set bj_forLoopAIndex=51
set bj_forLoopAIndexEnd=55
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((((UnitHasItemOfTypeBJ(GetBuyingUnit(),udg_integers10[bj_forLoopAIndex])))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))))then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetBuyingUnit()),0,0,5.00,("__"+(GetItemName(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),udg_integers10[bj_forLoopAIndex]))+"__|cFF66FFCC___|r__!")))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),udg_integers10[bj_forLoopAIndex]))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I00Y'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'gsou'))
call UnitAddItemByIdSwapped(udg_integers07[bj_forLoopAIndex],GetBuyingUnit())
return
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
if((UnitHasItemOfTypeBJ(GetBuyingUnit(),'I01L')))then
set bj_forLoopAIndex=51
set bj_forLoopAIndexEnd=55
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((((UnitHasItemOfTypeBJ(GetBuyingUnit(),udg_integers10[bj_forLoopAIndex])))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))))then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetBuyingUnit()),0,0,5.00,("__"+(GetItemName(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),udg_integers10[bj_forLoopAIndex]))+"__|cFF66FFCC___|r__!")))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),udg_integers10[bj_forLoopAIndex]))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I01L'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'gsou'))
call UnitAddItemByIdSwapped(udg_integers08[bj_forLoopAIndex],GetBuyingUnit())
return
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
if((UnitHasItemOfTypeBJ(GetBuyingUnit(),'I00J')))then
set bj_forLoopAIndex=51
set bj_forLoopAIndexEnd=55
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((((UnitHasItemOfTypeBJ(GetBuyingUnit(),udg_integers10[bj_forLoopAIndex])))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))))then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetBuyingUnit()),0,0,5.00,("__"+(GetItemName(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),udg_integers10[bj_forLoopAIndex]))+"__|cFF66FFCC___|r__!")))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),udg_integers10[bj_forLoopAIndex]))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I00J'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'gsou'))
call UnitAddItemByIdSwapped(udg_integers09[bj_forLoopAIndex],GetBuyingUnit())
return
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
endfunction
function Trig_fumo_CZJ_Conditions takes nothing returns boolean
return((GetItemTypeId(GetSoldItem())=='I000'))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'I007')))
endfunction
function Trig_fumo_CZJ_Func003Func001Func001C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetBuyingUnit(),'ofro')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))
endfunction
function Trig_fumo_CZJ_Func003Func001C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetBuyingUnit(),'oli2')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))
endfunction
function Trig_fumo_CZJ_Func003C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetBuyingUnit(),'ofir')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))
endfunction
function Trig_fumo_CZJ_Actions takes nothing returns nothing
if((((UnitHasItemOfTypeBJ(GetBuyingUnit(),'ofir')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))))then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetBuyingUnit()),0,0,5.00,("__"+(GetItemName(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'ofir'))+"__|cFF00FF00___|r__!")))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'ofir'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I007'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'gsou'))
call UnitAddItemByIdSwapped('I00E',GetBuyingUnit())
else
if((((UnitHasItemOfTypeBJ(GetBuyingUnit(),'oli2')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))))then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetBuyingUnit()),0,0,5.00,("__"+(GetItemName(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'oli2'))+"__|cFF00FF00___|r__!")))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'oli2'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I007'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'gsou'))
call UnitAddItemByIdSwapped('I02G',GetBuyingUnit())
else
if((((UnitHasItemOfTypeBJ(GetBuyingUnit(),'ofro')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))))then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetBuyingUnit()),0,0,5.00,("__"+(GetItemName(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'ofro'))+"__|cFF00FF00___|r__!")))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'ofro'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I007'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'gsou'))
call UnitAddItemByIdSwapped('I02H',GetBuyingUnit())
endif
endif
endif
endfunction
function Trig_fumo_10QUAN_Conditions takes nothing returns boolean
return((GetItemTypeId(GetSoldItem())=='I02X'))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'I00L')))
endfunction
function Trig_fumo_10QUAN_Func003Func001C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetBuyingUnit(),'ofro')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))
endfunction
function Trig_fumo_10QUAN_Func003C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetBuyingUnit(),'ofir')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))
endfunction
function Trig_fumo_10QUAN_Actions takes nothing returns nothing
if((((UnitHasItemOfTypeBJ(GetBuyingUnit(),'ofir')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))))then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetBuyingUnit()),0,0,5.00,("__"+(GetItemName(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'ofir'))+"______|cFF00FF00___|r__!")))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'ofir'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I00L'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'gsou'))
call UnitAddItemByIdSwapped('I02W',GetBuyingUnit())
else
if((((UnitHasItemOfTypeBJ(GetBuyingUnit(),'ofro')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))))then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetBuyingUnit()),0,0,5.00,("__"+(GetItemName(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'ofro'))+"______|cFF00FF00___|r__!")))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'ofro'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I00L'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'gsou'))
call UnitAddItemByIdSwapped('I02Y',GetBuyingUnit())
endif
endif
endfunction
function Trig_Fumo_10dark_Conditions takes nothing returns boolean
return((GetItemTypeId(GetSoldItem())=='I02X'))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'I00L')))
endfunction
function Trig_Fumo_10dark_Func003C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetBuyingUnit(),'odef')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))
endfunction
function Trig_Fumo_10dark_Actions takes nothing returns nothing
if((((UnitHasItemOfTypeBJ(GetBuyingUnit(),'odef')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))))then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetBuyingUnit()),0,0,5.00,("__"+(GetItemName(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'odef'))+"______|cFF00FF00___|r__!")))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'odef'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I00L'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'gsou'))
call UnitAddItemByIdSwapped('I032',GetBuyingUnit())
endif
endfunction
function Trig_fumo_ZJXT_Conditions takes nothing returns boolean
return((GetItemTypeId(GetSoldItem())=='I02V'))
endfunction
function Trig_fumo_ZJXT_Func002Func001Func002C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetBuyingUnit(),'I01T')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'ofro')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))
endfunction
function Trig_fumo_ZJXT_Func002Func001C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetBuyingUnit(),'I01K')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'oli2')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))
endfunction
function Trig_fumo_ZJXT_Func002C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetBuyingUnit(),'I01B')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'ofir')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))
endfunction
function Trig_fumo_ZJXT_Actions takes nothing returns nothing
if((((UnitHasItemOfTypeBJ(GetBuyingUnit(),'I01B')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'ofir')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))))then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetBuyingUnit()),0,0,5.00,"_______!")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'ofir'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I01B'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'gsou'))
call UnitAddItemByIdSwapped('ratc',GetBuyingUnit())
else
if((((UnitHasItemOfTypeBJ(GetBuyingUnit(),'I01K')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'oli2')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))))then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetBuyingUnit()),0,0,5.00,"_______!")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'oli2'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I01K'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'gsou'))
call UnitAddItemByIdSwapped('rat6',GetBuyingUnit())
else
if((((UnitHasItemOfTypeBJ(GetBuyingUnit(),'I01T')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'ofro')))and((UnitHasItemOfTypeBJ(GetBuyingUnit(),'gsou')))))then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetBuyingUnit()),0,0,5.00,"_______!")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'ofro'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I01T'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'gsou'))
call UnitAddItemByIdSwapped('rat9',GetBuyingUnit())
endif
endif
endif
endfunction
function Trig_hc_Conditions takes nothing returns boolean
return((GetItemTypeId(GetSoldItem())=='I00O'))
endfunction
function Trig_hc_Func001Func004C takes nothing returns boolean
return((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'frgd'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'hbth'))))
endfunction
function Trig_hc_Func001C takes nothing returns boolean
return((((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'frgd'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'hbth'))))))
endfunction
function Trig_hc_Actions takes nothing returns nothing
if((((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'frgd'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'hbth'))))))then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'frgd'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'hbth'))
call UnitAddItemByIdSwapped('brag',GetBuyingUnit())
endif
endfunction
function Trig_hcRBY_Conditions takes nothing returns boolean
return((GetItemTypeId(GetSoldItem())=='I039'))
endfunction
function Trig_hcRBY_Func001Func005C takes nothing returns boolean
return((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I01V'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I037'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'fwss'))))
endfunction
function Trig_hcRBY_Func001C takes nothing returns boolean
return((((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I01V'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I037'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'fwss'))))))
endfunction
function Trig_hcRBY_Actions takes nothing returns nothing
if((((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I01V'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I037'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'fwss'))))))then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'fwss'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I01V'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I037'))
call UnitAddItemByIdSwapped('I038',GetBuyingUnit())
endif
endfunction
function Trig_hc_2_Conditions takes nothing returns boolean
return((GetItemTypeId(GetSoldItem())=='I02I'))
endfunction
function Trig_hc_2_Func001C takes nothing returns boolean
return((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'fwss'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'modt'))))
endfunction
function Trig_hc_2_Actions takes nothing returns nothing
if((((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'fwss'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'modt'))))))then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'fwss'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'modt'))
call UnitAddItemByIdSwapped('rwiz',GetBuyingUnit())
endif
endfunction
function Trig_hc_3_Conditions takes nothing returns boolean
return((GetItemTypeId(GetSoldItem())=='I02K'))
endfunction
function Trig_hc_3_Func001Func006C takes nothing returns boolean
return((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I02H'))))or((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I00E'))))or((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I02G'))))
endfunction
function Trig_hc_3_Func001C takes nothing returns boolean
return((((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I02H'))))or((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I00E'))))or((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I02G'))))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'clsd'))))
endfunction
function Trig_hc_3_Actions takes nothing returns nothing
if((((((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I02H'))))or((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I00E'))))or((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I02G'))))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'clsd'))))))then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'clsd'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I02H'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I00E'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I02G'))
call UnitAddItemByIdSwapped('gcel',GetBuyingUnit())
endif
endfunction
function Trig_hc_4_Conditions takes nothing returns boolean
return((GetItemTypeId(GetSoldItem())=='I02L'))
endfunction
function Trig_hc_4_Func001C takes nothing returns boolean
return((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'mcou'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'rwiz'))))
endfunction
function Trig_hc_4_Actions takes nothing returns nothing
if((((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'mcou'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'rwiz'))))))then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'mcou'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'rwiz'))
call UnitAddItemByIdSwapped('I006',GetBuyingUnit())
endif
endfunction
function Trig_hc_5_Conditions takes nothing returns boolean
return((GetItemTypeId(GetSoldItem())=='I02M'))
endfunction
function Trig_hc_5_Func001C takes nothing returns boolean
return((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'brag'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'odef'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'gsou'))))
endfunction
function Trig_hc_5_Actions takes nothing returns nothing
if((((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'brag'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'odef'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'gsou'))))))then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'odef'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'brag'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'gsou'))
call UnitAddItemByIdSwapped('rde4',GetBuyingUnit())
endif
endfunction
function Trig_hc_6_Conditions takes nothing returns boolean
return((GetItemTypeId(GetSoldItem())=='I02N'))
endfunction
function Trig_hc_6_Func001Func001Func001C takes nothing returns boolean
return((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'rde4'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'stel'))))
endfunction
function Trig_hc_6_Func001Func001C takes nothing returns boolean
return((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'rde4'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'ratf'))))
endfunction
function Trig_hc_6_Func001C takes nothing returns boolean
return((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'rde4'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'ckng'))))
endfunction
function Trig_hc_6_Actions takes nothing returns nothing
if((((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'rde4'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'ckng'))))))then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'rde4'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'ckng'))
call UnitAddItemByIdSwapped('rhth',GetBuyingUnit())
return
else
if((((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'rde4'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'ratf'))))))then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'rde4'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'ratf'))
call UnitAddItemByIdSwapped('rhth',GetBuyingUnit())
return
else
if((((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'rde4'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'stel'))))))then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'rde4'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'stel'))
call UnitAddItemByIdSwapped('rhth',GetBuyingUnit())
endif
endif
endif
endfunction
function Trig_hc_7_Conditions takes nothing returns boolean
return((GetItemTypeId(GetSoldItem())=='I02O'))
endfunction
function Trig_hc_7_Func001C takes nothing returns boolean
return((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'rhth'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'gcel'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I006'))))
endfunction
function Trig_hc_7_Actions takes nothing returns nothing
if((((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'rhth'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'gcel'))))and((IsItemOwned(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I006'))))))then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'rhth'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'gcel'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetBuyingUnit(),'I006'))
call UnitAddItemByIdSwapped('desc',GetBuyingUnit())
endif
endfunction
function Trig_FBP_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='ncks'))
endfunction
function Trig_FBP_Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_FBP_Func006001003002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_FBP_Func006001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_FBP_Func006001003002 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_FBP_Func006001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))))
endfunction
function Trig_FBP_Func006A takes nothing returns nothing
set udg_locations03[301]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[301],"Abilities\\Weapons\\CannonTowerMissile\\CannonTowerMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),600.00,true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations03[301])
endfunction
function Trig_FBP_Actions takes nothing returns nothing
set udg_locations07[40]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations03[300],"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(udg_locations07[40],"war3mapImported\\FlameBomb.mdx")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations07[40],Condition(function Trig_FBP_Func006001003)),function Trig_FBP_Func006A)
call RemoveLocation(udg_locations07[40])
call RemoveUnit(GetTriggerUnit())
endfunction
function Trig_BPKW_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='nchr'))
endfunction
function Trig_BPKW_Func007001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_BPKW_Func007A takes nothing returns nothing
set udg_locations03[301]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[301],"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(8.00*I2R(GetHeroStatBJ(0,udg_units33[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],true))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations03[301])
endfunction
function Trig_BPKW_Actions takes nothing returns nothing
set udg_locations03[300]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations03[300],"war3mapImported\\FlameBomb.mdx")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[300],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[300],Condition(function Trig_BPKW_Func007001003)),function Trig_BPKW_Func007A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations06[105]=PolarProjectionBJ(udg_locations03[300],GetRandomReal(0,180.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'nhef',GetOwningPlayer(GetTriggerUnit()),udg_locations06[105],GetRandomReal(0,360))
call KillUnit(bj_lastCreatedUnit)
call SetUnitTimeScale(bj_lastCreatedUnit,0.30)
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(0.00,120.00),0.00)
call RemoveLocation(udg_locations06[105])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[300])
endfunction
function Trig_qibaofu_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='hmtm'))
endfunction
function Trig_qibaofu_Func008001003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_qibaofu_Func008A takes nothing returns nothing
set udg_locations03[301]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[301],"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),1000.00,true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations03[301])
endfunction
function Trig_qibaofu_Actions takes nothing returns nothing
call TriggerSleepAction(0.10)
set udg_locations03[300]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations03[300],"war3mapImported\\FlameBomb.mdx")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations03[300],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations03[300],Condition(function Trig_qibaofu_Func008001003)),function Trig_qibaofu_Func008A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations06[105]=PolarProjectionBJ(udg_locations03[300],GetRandomReal(0,300.00),GetRandomReal(0,360))
call AddSpecialEffectLocBJ(udg_locations06[105],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations06[105])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[300])
endfunction
function Trig_dahuowan_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='otot'))
endfunction
function Trig_dahuowan_Func006001003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_dahuowan_Func006A takes nothing returns nothing
set udg_locations06[81]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations06[81],"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),800.00,true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations06[81])
endfunction
function Trig_dahuowan_Actions takes nothing returns nothing
set udg_locations06[80]=GetUnitLoc(GetTriggerUnit())
call AdjustPlayerStateBJ(-300,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddSpecialEffectLocBJ(udg_locations06[80],"war3mapImported\\FlameBomb.mdx")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations06[80],Condition(function Trig_dahuowan_Func006001003)),function Trig_dahuowan_Func006A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations06[82]=PolarProjectionBJ(udg_locations06[80],GetRandomReal(0,180.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'nhef',GetOwningPlayer(GetTriggerUnit()),udg_locations06[82],GetRandomReal(0,360))
call KillUnit(bj_lastCreatedUnit)
call SetUnitTimeScale(bj_lastCreatedUnit,0.30)
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(0.00,120.00),0.00)
call RemoveLocation(udg_locations06[82])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations06[80])
endfunction
function Trig_qianbenwu_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A00X'))
endfunction
function Trig_qianbenwu_Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_qianbenwu_Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_qianbenwu_Func003001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_qianbenwu_Func003A takes nothing returns nothing
set udg_locations06[73]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations06[73],"war3mapImported\\wanhuajing.mdx")
call DestroyEffect(bj_lastCreatedEffect)
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(8.00*I2R(GetHeroStatBJ(2,GetTriggerUnit(),true))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations03[301])
endfunction
function Trig_qianbenwu_Actions takes nothing returns nothing
set udg_locations06[72]=GetSpellTargetLoc()
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations06[72],Condition(function Trig_qianbenwu_Func003001003)),function Trig_qianbenwu_Func003A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'ufro',GetOwningPlayer(GetTriggerUnit()),udg_locations06[72],(12.00*I2R(bj_forLoopAIndex)))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations06[72])
endfunction
function Trig_zhuanhuanyu_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01L'))and((GetUnitTypeId(GetTriggerUnit())!='H001'))
endfunction
function Trig_zhuanhuanyu_Actions takes nothing returns nothing
set udg_units27[771]=GetSpellTargetUnit()
set udg_locations06[83]=GetUnitLoc(GetTriggerUnit())
set udg_locations06[82]=GetUnitLoc(udg_units27[771])
call SetUnitX(GetTriggerUnit(),GetLocationX(udg_locations06[82]))
call SetUnitY(GetTriggerUnit(),GetLocationY(udg_locations06[82]))
call SetUnitX(udg_units27[771],GetLocationX(udg_locations06[83]))
call SetUnitY(udg_units27[771],GetLocationY(udg_locations06[83]))
call RemoveLocation(udg_locations06[82])
call RemoveLocation(udg_locations06[83])
endfunction
function Trig_kongjianyu_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AImt'))
endfunction
function Trig_kongjianyu_Actions takes nothing returns nothing
set udg_locations06[85]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations06[86]=PolarProjectionBJ(udg_locations06[85],220.00,(45.00+(90.00*I2R(bj_forLoopAIndex))))
call AddSpecialEffectLocBJ(udg_locations06[86],"Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations06[86],"Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateNUnitsAtLocFacingLocBJ(1,'nfgl',GetOwningPlayer(GetTriggerUnit()),udg_locations06[86],udg_locations06[85])
call SetUnitAnimation(bj_lastCreatedUnit,"spell")
call UnitApplyTimedLifeBJ(5.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations06[86])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations06[85])
endfunction
function Trig_kongjianyu3_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AImt'))
endfunction
function Trig_kongjianyu3_Func002A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_kongjianyu3_Actions takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetTriggerUnit()),'nfgl'),function Trig_kongjianyu3_Func002A)
endfunction
function Trig_kongjianyu2_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='nfgl'))
endfunction
function Trig_kongjianyu2_Actions takes nothing returns nothing
set udg_locations06[87]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations06[87],"Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations06[87],"Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveUnit(GetTriggerUnit())
call RemoveLocation(udg_locations06[87])
endfunction
function Trig_leiwang_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01S'))
endfunction
function Trig_leiwang_Func004001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_leiwang_Func004001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_leiwang_Func004001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_leiwang_Func004A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'uswb',GetOwningPlayer(GetTriggerUnit()),udg_locations03[608],GetUnitFacing(GetTriggerUnit()))
call IssueTargetOrderById(bj_lastCreatedUnit,852106,GetEnumUnit())
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
endfunction
function Trig_leiwang_Actions takes nothing returns nothing
set udg_locations03[608]=GetUnitLoc(GetTriggerUnit())
set udg_locations03[153]=GetUnitLoc(GetSpellTargetUnit())
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations03[153],Condition(function Trig_leiwang_Func004001003)),function Trig_leiwang_Func004A)
call RemoveLocation(udg_locations03[153])
call RemoveLocation(udg_locations03[608])
endfunction
function Trig_YBQBF_______u_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01H'))
endfunction
function Trig_YBQBF_______u_Actions takes nothing returns nothing
local unit KLDW
local integer BB
set udg_locations06[79]=GetSpellTargetLoc()
call CreateNUnitsAtLoc(1,'hmtm',GetOwningPlayer(GetTriggerUnit()),udg_locations06[79],GetUnitFacing(GetTriggerUnit()))
set KLDW=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(5.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations06[79])
set BB=5
loop
exitwhen BB<1
call CreateTextTagUnitBJ((I2S(BB)+"!"),KLDW,0,9.00,100,20,20.00,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,40.00,90.00)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,1.00)
call TriggerSleepAction(1.00)
set BB=BB-1
endloop
set KLDW=null
set BB=0
endfunction
function Trig_YWD_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='nchg'))
endfunction
function Trig_YWD_Func004001003 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_YWD_Func004A takes nothing returns nothing
set udg_locations03[303]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLoc(1,'uban',GetOwningPlayer(GetTriggerUnit()),udg_locations03[303],GetUnitFacing(GetEnumUnit()))
call RemoveLocation(udg_locations03[303])
call IssueTargetOrder(bj_lastCreatedUnit,"invisibility",GetEnumUnit())
call UnitApplyTimedLifeBJ(2.50,'BTLF',bj_lastCreatedUnit)
endfunction
function Trig_YWD_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[302]=GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(GetTriggerUnit()),250.00,250.00))
call CreateNUnitsAtLoc(1,'zcso',GetOwningPlayer(GetTriggerUnit()),udg_locations03[302],GetRandomReal(0,360))
call RemoveLocation(udg_locations03[302])
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(50.00,200.00),100.00)
set udg_locations03[302]=PolarProjectionBJ(GetUnitLoc(bj_lastCreatedUnit),400.00,GetUnitFacing(bj_lastCreatedUnit))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations03[302])
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[302])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_wantDestroyGroup=true
set udg_locations03[302]=GetUnitLoc(GetTriggerUnit())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[302],Condition(function Trig_YWD_Func004001003)),function Trig_YWD_Func004A)
call RemoveLocation(udg_locations03[302])
endfunction
function Trig_Y_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='nhyc'))
endfunction
function Trig_Y_Func002Func005001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_Y_Func002Func005A takes nothing returns nothing
call UnitDamageTarget(bj_lastCreatedUnit,GetEnumUnit(),20.00,true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_Y_Actions takes nothing returns nothing
set udg_locations03[305]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=10
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set udg_locations03[306]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[305],400.00,400.00))
call CreateNUnitsAtLoc(1,'nsbs',GetOwningPlayer(GetTriggerUnit()),udg_locations03[306],GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(4.00,'BTLF',bj_lastCreatedUnit)
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,udg_locations03[306],Condition(function Trig_Y_Func002Func005001003)),function Trig_Y_Func002Func005A)
call RemoveLocation(udg_locations03[306])
set udg_locations03[306]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[305],400.00,400.00))
call CreateNUnitsAtLoc(1,'nmys',GetOwningPlayer(GetTriggerUnit()),udg_locations03[306],GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(4.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[306])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
endfunction
function Trig_KWQX_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01F'))
endfunction
function Trig_KWQX_Actions takes nothing returns nothing
set udg_locations06[75]=GetUnitLoc(GetSpellTargetUnit())
set udg_units27[276]=GetSpellTargetUnit()
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=4
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations06[76]=PolarProjectionBJ(udg_locations06[75],(450.00-(I2R(bj_forLoopBIndex)*80.00)),(36.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLocFacingLocBJ(1,'hsor',GetOwningPlayer(GetTriggerUnit()),udg_locations06[76],udg_locations06[75])
call SetUnitScalePercent(bj_lastCreatedUnit,200.00,200.00,200.00)
call SetUnitFlyHeight(bj_lastCreatedUnit,(90.00*I2R(bj_forLoopBIndex)),0.00)
call SetUnitAbilityLevel(bj_lastCreatedUnit,2,'ACtb')
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
call IssueTargetOrder(bj_lastCreatedUnit,"creepthunderbolt",udg_units27[276])
call RemoveLocation(udg_locations06[76])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call RemoveLocation(udg_locations06[75])
endfunction
function Trig_SLJ_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A08R'))
endfunction
function Trig_SLJ_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[306]=GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(GetTriggerUnit()),500.00,500.00))
call CreateNUnitsAtLocFacingLocBJ(1,'ubdd',GetOwningPlayer(GetTriggerUnit()),udg_locations03[306],GetUnitLoc(GetSpellTargetUnit()))
call SetUnitFlyHeight(bj_lastCreatedUnit,100.00,0.00)
call RemoveLocation(udg_locations03[306])
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(100.00,300.00),1000000000.00)
call IssueTargetOrder(bj_lastCreatedUnit,"thunderbolt",GetSpellTargetUnit())
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_FMSLJ_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ACc2'))
endfunction
function Trig_FMSLJ_Actions takes nothing returns nothing
set udg_locations06[67]=GetUnitLoc(GetTriggerUnit())
set udg_locations06[69]=GetSpellTargetLoc()
call CreateNUnitsAtLocFacingLocBJ(1,'nsca',GetOwningPlayer(GetTriggerUnit()),udg_locations06[67],udg_locations06[69])
set udg_units35[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedUnit
call GroupAddUnit(udg_groups04[67],bj_lastCreatedUnit)
call RemoveLocation(udg_locations06[67])
call RemoveLocation(udg_locations06[69])
call EnableTrigger(udg_trigger445)
call TriggerSleepAction(1.00)
call GroupClear(udg_groups05[(20+(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))])
call KillUnit(udg_units35[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call GroupRemoveUnit(udg_groups04[67],udg_units35[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function Trig_FMSLJ2_Func001Func001Func005002003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_FMSLJ2_Func001Func001Func005002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetEnumUnit())))
endfunction
function Trig_FMSLJ2_Func001Func001Func005002003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetEnumUnit()))))
endfunction
function Trig_FMSLJ2_Func001Func001A takes nothing returns nothing
set udg_locations06[70]=GetUnitLoc(GetEnumUnit())
set udg_locations06[71]=PolarProjectionBJ(udg_locations06[70],34.00,GetUnitFacing(GetEnumUnit()))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations06[71]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations06[71]))
set udg_groups05[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]=GetUnitsInRangeOfLocMatching(280.00,udg_locations06[71],Condition(function Trig_FMSLJ2_Func001Func001Func005002003))
call AddSpecialEffectLocBJ(udg_locations06[70],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations06[70])
call RemoveLocation(udg_locations06[71])
endfunction
function Trig_FMSLJ2_Func001Func002Func001Func001C takes nothing returns boolean
return((IsUnitInGroup(GetEnumUnit(),udg_groups05[(20+bj_forLoopAIndex)])==false))
endfunction
function Trig_FMSLJ2_Func001Func002Func001A takes nothing returns nothing
if((IsUnitInGroup(GetEnumUnit(),udg_groups05[(20+bj_forLoopAIndex)])==false))then
call UnitDamageTarget(udg_units33[bj_forLoopAIndex],GetEnumUnit(),(8.00*I2R(GetHeroStatBJ(1,udg_units33[bj_forLoopAIndex],true))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call GroupAddUnit(udg_groups05[(20+bj_forLoopAIndex)],GetEnumUnit())
set udg_locations06[70]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations06[70],"war3mapImported\\wanhuajing.mdx")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations06[70])
endif
endfunction
function Trig_FMSLJ2_Func001C takes nothing returns boolean
return((CountUnitsInGroup(udg_groups04[67])==0))
endfunction
function Trig_FMSLJ2_Actions takes nothing returns nothing
if((CountUnitsInGroup(udg_groups04[67])==0))then
call DisableTrigger(GetTriggeringTrigger())
else
call ForGroupBJ(udg_groups04[67],function Trig_FMSLJ2_Func001Func001A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(udg_groups05[bj_forLoopAIndex],function Trig_FMSLJ2_Func001Func002Func001A)
call GroupClear(udg_groups05[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
endfunction
function Trig_QBSL_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A07J'))
endfunction
function Trig_QBSL_Actions takes nothing returns nothing
set udg_locations03[307]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'ubdr',GetOwningPlayer(GetTriggerUnit()),udg_locations03[307],GetSpellTargetLoc())
call SetUnitScalePercent(bj_lastCreatedUnit,80.00,80.00,80.00)
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852652,GetRandomLocInRect(RectFromCenterSizeBJ(GetSpellTargetLoc(),250.00,250.00)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[307])
endfunction
function Trig_tishenmu_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AOmi'))
endfunction
function Trig_tishenmu_Actions takes nothing returns nothing
set udg_locations03[518]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[90]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[518],200.00,200.00))
call CreateNUnitsAtLoc(1,'zhyd',GetOwningPlayer(GetTriggerUnit()),udg_locations03[90],GetRandomReal(0,360))
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(50.00,200.00),100.00)
set udg_locations03[519]=PolarProjectionBJ(udg_locations03[90],400.00,GetUnitFacing(bj_lastCreatedUnit))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations03[519])
call RemoveLocation(udg_locations03[90])
call RemoveLocation(udg_locations03[519])
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100,100,100,35.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(1,'ushd',GetOwningPlayer(GetTriggerUnit()),udg_locations03[518],GetUnitFacing(GetTriggerUnit()))
call SetUnitFlyHeight(bj_lastCreatedUnit,0.00,300.00)
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call TriggerSleepAction(0.10)
call RemoveLocation(udg_locations03[518])
endfunction
function Trig_gongchengdawei_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AIuw'))
endfunction
function Trig_gongchengdawei_Func004Func001C takes nothing returns boolean
return((IsUnitAlly(GetTriggerUnit(),Player(7))))
endfunction
function Trig_gongchengdawei_Func004C takes nothing returns boolean
return((IsUnitAlly(GetTriggerUnit(),Player(3))))
endfunction
function Trig_gongchengdawei_Actions takes nothing returns nothing
set udg_locations03[250]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),200.00,GetUnitFacing(GetTriggerUnit()))
call AddSpecialEffectLocBJ(udg_locations03[250],"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call DestroyEffect(bj_lastCreatedEffect)
if((IsUnitAlly(GetTriggerUnit(),Player(3))))then
call CreateNUnitsAtLoc(1,'otau',GetOwningPlayer(GetTriggerUnit()),udg_locations03[250],GetUnitFacing(GetTriggerUnit()))
else
if((IsUnitAlly(GetTriggerUnit(),Player(7))))then
call CreateNUnitsAtLoc(1,'ogru',GetOwningPlayer(GetTriggerUnit()),udg_locations03[250],GetUnitFacing(GetTriggerUnit()))
else
call CreateNUnitsAtLoc(1,'orai',GetOwningPlayer(GetTriggerUnit()),udg_locations03[250],GetUnitFacing(GetTriggerUnit()))
endif
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[90]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[250],250.00,250.00))
call CreateNUnitsAtLoc(1,'zhyd',GetOwningPlayer(GetTriggerUnit()),udg_locations03[90],GetRandomReal(0,360))
call RemoveLocation(udg_locations03[90])
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(50.00,200.00),100.00)
set udg_locations03[90]=PolarProjectionBJ(GetUnitLoc(bj_lastCreatedUnit),400.00,GetUnitFacing(bj_lastCreatedUnit))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_locations03[90])
call RemoveLocation(udg_locations03[90])
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_CZ1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A005'))
endfunction
function Trig_CZ1_Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_CZ1_Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_CZ1_Func003001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_CZ1_Func003A takes nothing returns nothing
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(3.00*I2R(GetHeroStatBJ(0,GetTriggerUnit(),true))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_CZ1_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=(R2I(DistanceBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetUnitLoc(GetSpellTargetUnit())))/30)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[308]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),(30.00*I2R(bj_forLoopAIndex)),AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetUnitLoc(GetSpellTargetUnit())))
call CreateNUnitsAtLoc(1,'nws1',GetOwningPlayer(GetTriggerUnit()),udg_locations03[308],GetUnitFacing(GetTriggerUnit()))
call RemoveLocation(udg_locations03[308])
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=18
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[308]=PolarProjectionBJ(GetUnitLoc(GetSpellTargetUnit()),300.00,(20.00*I2R(bj_forLoopAIndex)))
call AddSpecialEffectLocBJ(udg_locations03[308],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[308])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,GetUnitLoc(GetSpellTargetUnit()),Condition(function Trig_CZ1_Func003001003)),function Trig_CZ1_Func003A)
endfunction
function Trig_CZ1_2_Conditions takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetAttacker(),'I00E')))and((GetRandomInt(1,10)==1))and((IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false))and((IsUnitIllusion(GetAttacker())==false))
endfunction
function Trig_CZ1_2_Actions takes nothing returns nothing
call UnitDamageTarget(GetAttacker(),GetTriggerUnit(),500.00,false,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL,WEAPON_TYPE_WHOKNOWS)
set udg_locations03[308]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations03[308],"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[308])
call CreateTextTagUnitBJ((R2S((GetUnitLifePercent(GetTriggerUnit())/10.00))+"!"),GetTriggerUnit(),0,8.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,50.00,90.00)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,1.50)
endfunction
function Trig_CZ2_2_Conditions takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetAttacker(),'I02G')))and((GetRandomInt(1,4)==1))and((IsUnitIllusion(GetAttacker())==false))
endfunction
function Trig_CZ2_2_Func004001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker())))
endfunction
function Trig_CZ2_2_Func004A takes nothing returns nothing
call UnitDamageTarget(GetAttacker(),GetEnumUnit(),(I2R(GetHeroStatBJ(1,GetAttacker(),true))*2.00),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_LIGHTNING,WEAPON_TYPE_WHOKNOWS)
set udg_locations03[311]=GetUnitLoc(GetEnumUnit())
call AddLightningLoc("CLPB",udg_locations03[309],udg_locations03[311])
call DestroyLightning(bj_lastCreatedLightning)
call AddSpecialEffectLocBJ(udg_locations03[311],"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[311])
call CreateTextTagUnitBJ((R2S((I2R(GetHeroStatBJ(1,GetAttacker(),true))*2.00))+"!"),GetEnumUnit(),0,8.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,50.00,90.00)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,1.50)
endfunction
function Trig_CZ2_2_Actions takes nothing returns nothing
set udg_locations03[309]=GetUnitLoc(GetAttacker())
set udg_locations03[310]=GetUnitLoc(GetTriggerUnit())
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[310],Condition(function Trig_CZ2_2_Func004001003)),function Trig_CZ2_2_Func004A)
call RemoveLocation(udg_locations03[309])
call RemoveLocation(udg_locations03[310])
endfunction
function Trig_CZ2_1________2_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='Aclf'))
endfunction
function Trig_CZ2_1________2_Func005Func012001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_CZ2_1________2_Func005Func012001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_CZ2_1________2_Func005Func012001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_CZ2_1________2_Func005Func012A takes nothing returns nothing
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(1,GetTriggerUnit(),true))*1.50),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_LIGHTNING,WEAPON_TYPE_WHOKNOWS)
set udg_locations01[4]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations01[4],"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations01[4])
endfunction
function Trig_CZ2_1________2_Actions takes nothing returns nothing
local integer skill_i
local lightning lightning2
local location P
local location P1
local location P2
local location P3
set P=GetSpellTargetLoc()
call TriggerSleepAction(0.10)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set P1=PolarProjectionBJ(P,GetRandomReal(0,350.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'hhdl',GetOwningPlayer(GetTriggerUnit()),P1,GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(P1)
set P1=PolarProjectionBJ(P,GetRandomReal(0,300.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'nhew',GetOwningPlayer(GetTriggerUnit()),P1,GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(P1)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set skill_i=1
loop
exitwhen skill_i>10
set P2=PolarProjectionBJ(P,GetRandomReal(0,350.00),GetRandomReal(0,360))
set P3=PolarProjectionBJ(P,GetRandomReal(0,350.00),GetRandomReal(0,360))
set lightning2=AddLightningLoc("CLPB",P,P)
call MoveLightningEx(bj_lastCreatedLightning,false,GetLocationX(P2),GetLocationY(P2),GetRandomReal(700.00,1000.00),GetLocationX(P3),GetLocationY(P3),0)
call AddSpecialEffectLocBJ(P3,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(P3,"Abilities\\Weapons\\FragDriller\\FragDriller.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(P3,"abilities\\weapons\\catapult\\catapultmissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,P3,Condition(function Trig_CZ2_1________2_Func005Func012001003)),function Trig_CZ2_1________2_Func005Func012A)
call TriggerSleepAction(0.03)
call DestroyLightning(lightning2)
call TriggerSleepAction(0.02)
call RemoveLocation(P2)
call RemoveLocation(P3)
set skill_i=skill_i+1
endloop
set lightning2=null
set P=null
set P1=null
set P2=null
set P3=null
endfunction
function Trig_CZ3_1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='Asta'))
endfunction
function Trig_CZ3_1_Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_CZ3_1_Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_CZ3_1_Func003001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_CZ3_1_Func003A takes nothing returns nothing
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(4.00*I2R(GetHeroStatBJ(2,GetTriggerUnit(),true))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_CZ3_1_Actions takes nothing returns nothing
set udg_locations03[314]=GetSpellTargetLoc()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=40
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'njks',GetOwningPlayer(GetTriggerUnit()),udg_locations03[314],(36.00*I2R(bj_forLoopAIndex)))
call SetUnitFlyHeight(bj_lastCreatedUnit,(12.00*I2R(bj_forLoopAIndex)),(18.00*I2R(bj_forLoopAIndex)))
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
call SetUnitScalePercent(bj_lastCreatedUnit,100.00,100,100)
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",PolarProjectionBJ(GetUnitLoc(bj_lastCreatedUnit),1000.00,GetUnitFacing(bj_lastCreatedUnit)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[314],Condition(function Trig_CZ3_1_Func003001003)),function Trig_CZ3_1_Func003A)
call RemoveLocation(udg_locations03[314])
endfunction
function Trig_CZ3_2_Conditions takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetAttacker(),'I02H')))and((GetRandomInt(1,100)<=15))and((IsUnitIllusion(GetAttacker())==false))
endfunction
function Trig_CZ3_2_Func006001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker())))
endfunction
function Trig_CZ3_2_Func006A takes nothing returns nothing
call UnitDamageTarget(GetAttacker(),GetEnumUnit(),(I2R(GetHeroStatBJ(2,GetAttacker(),true))*2.00),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_LIGHTNING,WEAPON_TYPE_WHOKNOWS)
set udg_locations03[311]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[311],"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[311])
call CreateTextTagUnitBJ((R2S((I2R(GetHeroStatBJ(2,GetAttacker(),true))*2.00))+"!"),GetEnumUnit(),0,8.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,50.00,90.00)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,1.50)
endfunction
function Trig_CZ3_2_Actions takes nothing returns nothing
set udg_locations03[312]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'hsor',GetOwningPlayer(GetAttacker()),udg_locations03[312],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call IssueTargetOrder(bj_lastCreatedUnit,"frostnova",GetTriggerUnit())
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[312],Condition(function Trig_CZ3_2_Func006001003)),function Trig_CZ3_2_Func006A)
call RemoveLocation(udg_locations03[312])
endfunction
function Trig_CZ8_Conditions takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_units33[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))],'modt')))and((IsUnitEnemy(GetTriggerUnit(),GetOwningPlayer(GetKillingUnit()))))and((IsUnitIllusion(GetTriggerUnit())==false))
endfunction
function Trig_CZ8_Actions takes nothing returns nothing
call AdjustPlayerStateBJ(GetHeroLevel(udg_units33[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]),GetOwningPlayer(GetKillingUnit()),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_CZ4_1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='Adcn'))
endfunction
function Trig_CZ4_1_Func003001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker())))
endfunction
function Trig_CZ4_1_Func003A takes nothing returns nothing
set udg_locations03[323]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLoc(1,'hsor',GetOwningPlayer(GetTriggerUnit()),udg_locations03[323],bj_UNIT_FACING)
call SetUnitFlyHeight(bj_lastCreatedUnit,800.00,0.00)
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call IssueTargetOrder(bj_lastCreatedUnit,"forkedlightning",GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[323],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[323])
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),((I2R(GetHeroStatBJ(0,GetTriggerUnit(),true))*1.00)+((I2R(GetHeroStatBJ(1,GetTriggerUnit(),true))*1.50)+(I2R(GetHeroStatBJ(2,GetTriggerUnit(),true))*2.00))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_CZ4_1_Actions takes nothing returns nothing
set udg_locations03[324]=GetSpellTargetLoc()
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[324],Condition(function Trig_CZ4_1_Func003001003)),function Trig_CZ4_1_Func003A)
call RemoveLocation(udg_locations03[324])
endfunction
function Trig_CZ4_2_Conditions takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetAttacker(),'gcel')))and((GetRandomInt(1,100)<=5))and((IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false))and((IsUnitIllusion(GetAttacker())==false))
endfunction
function Trig_CZ4_2_Func004001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker())))
endfunction
function Trig_CZ4_2_Func004A takes nothing returns nothing
call UnitDamageTarget(GetAttacker(),GetEnumUnit(),((I2R(GetHeroStatBJ(0,GetAttacker(),true))*1.00)+((I2R(GetHeroStatBJ(1,GetAttacker(),true))*1.50)+(I2R(GetHeroStatBJ(2,GetAttacker(),true))*2.00))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
endfunction
function Trig_CZ4_2_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[322]=PolarProjectionBJ(GetUnitLoc(GetAttacker()),GetRandomReal(0,150.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'hsor',GetOwningPlayer(GetAttacker()),udg_locations03[322],GetUnitFacing(GetAttacker()))
call UnitApplyTimedLifeBJ(2.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[322])
set udg_locations03[322]=PolarProjectionBJ(GetUnitLoc(bj_lastCreatedUnit),DistanceBetweenPoints(GetUnitLoc(GetAttacker()),GetUnitLoc(GetTriggerUnit())),GetUnitFacing(GetAttacker()))
call IssuePointOrderLoc(bj_lastCreatedUnit,"clusterrockets",udg_locations03[322])
call RemoveLocation(udg_locations03[322])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_locations03[320]=GetUnitLoc(GetTriggerUnit())
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[320],Condition(function Trig_CZ4_2_Func004001003)),function Trig_CZ4_2_Func004A)
call RemoveLocation(udg_locations03[320])
call SetUnitFacing(GetTriggerUnit(),AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetUnitLoc(GetAttacker())))
endfunction
function Trig_CZ5_Conditions takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetKillingUnit(),'rde4')))and((IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false))and((IsUnitIllusion(GetTriggerUnit())==false))
endfunction
function Trig_CZ5_Actions takes nothing returns nothing
set udg_locations03[322]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'nanw',GetOwningPlayer(GetTriggerUnit()),udg_locations03[322],GetUnitFacing(GetTriggerUnit()))
call IssueTargetOrder(bj_lastCreatedUnit,"attack",GetKillingUnit())
call SetWidgetLife(bj_lastCreatedUnit,(10.00+(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit())*0.02)))
call UnitApplyTimedLifeBJ(5.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[322])
endfunction
function Trig_CZ6_Conditions takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetKillingUnit(),'rhth')))and((IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false))and((IsUnitIllusion(GetTriggerUnit())==false))
endfunction
function Trig_CZ6_Actions takes nothing returns nothing
set udg_locations03[322]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'nanw',GetOwningPlayer(GetTriggerUnit()),udg_locations03[322],GetUnitFacing(GetTriggerUnit()))
call IssueTargetOrder(bj_lastCreatedUnit,"attack",GetKillingUnit())
call SetWidgetLife(bj_lastCreatedUnit,(15.00+(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit())*0.05)))
call UnitApplyTimedLifeBJ(5.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[322])
endfunction
function Trig_CZ7_Conditions takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetKillingUnit(),'desc')))and((IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false))and((IsUnitIllusion(GetTriggerUnit())==false))
endfunction
function Trig_CZ7_Actions takes nothing returns nothing
set udg_locations03[322]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'nanw',GetOwningPlayer(GetTriggerUnit()),udg_locations03[322],GetUnitFacing(GetTriggerUnit()))
call IssueTargetOrder(bj_lastCreatedUnit,"attack",GetKillingUnit())
call SetWidgetLife(bj_lastCreatedUnit,(20.00+(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit())*0.10)))
call UnitApplyTimedLifeBJ(5.00,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations03[322])
endfunction
function Trig_CZ6_1_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ACpu'))
endfunction
function Trig_CZ6_1_Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_CZ6_1_Func003001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_CZ6_1_Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function Trig_CZ6_1_Func003001003002 takes nothing returns boolean
return GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_CZ6_1_Func003001003 takes nothing returns boolean
return GetBooleanAnd((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false),(GetBooleanAnd((IsUnitAliveBJ(GetFilterUnit())),(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(GetTriggerUnit()))))))
endfunction
function Trig_CZ6_1_Func003Func005C takes nothing returns boolean
if(not(GetUnitLevel(GetEnumUnit())<=5))then
return false
endif
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function Trig_CZ6_1_Func003A takes nothing returns nothing
set udg_locations03[323]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations03[323],"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[323])
if(Trig_CZ6_1_Func003Func005C())then
call SetUnitOwner(GetEnumUnit(),GetOwningPlayer(GetTriggerUnit()),true)
endif
endfunction
function Trig_CZ6_1_Actions takes nothing returns nothing
set udg_locations03[324]=GetUnitLoc(GetSpellTargetUnit())
set bj_wantDestroyGroup=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations03[324],Condition(function Trig_CZ6_1_Func003001003)),function Trig_CZ6_1_Func003A)
call RemoveLocation(udg_locations03[324])
endfunction
function Trig_CZ7_1_Conditions takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetAttacker(),'desc')))and((GetRandomInt(1,100)==1))and((IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false))and((IsUnitIllusion(GetAttacker())==false))
endfunction
function Trig_CZ7_1_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[322]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),GetRandomReal(0,200.00),GetRandomReal(0,360))
call AddSpecialEffectLocBJ(udg_locations03[322],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call RemoveLocation(udg_locations03[322])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call UnitDamageTarget(GetAttacker(),GetTriggerUnit(),100000000.00,false,true,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_DIVINE,WEAPON_TYPE_ROCK_HEAVY_BASH)
endfunction
function Trig_fenshenshu_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='AIfu'))
endfunction
function Trig_fenshenshu_Actions takes nothing returns nothing
set udg_locations03[20]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'hsor',GetOwningPlayer(GetTriggerUnit()),udg_locations03[20],GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(3.00,'BTLF',bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,852274,GetTriggerUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations03[20])
endfunction
function Trig_jiaxue_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetAttacker())=='nanw'))
endfunction
function Trig_jiaxue_Actions takes nothing returns nothing
call SetWidgetLife(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())+GetUnitStateSwap(UNIT_STATE_LIFE,GetAttacker())))
call KillUnit(GetAttacker())
endfunction
function Trig_bqds_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='ACro'))
endfunction
function Trig_bqds_Actions takes nothing returns nothing
set udg_locations03[501]=GetUnitLoc(GetTriggerUnit())
call KillUnit(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations03[501],"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations03[502]=GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[501],300.00,300.00))
call AddSpecialEffectLocBJ(udg_locations03[502],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations03[502])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateItemLoc('desc',udg_locations03[501])
call RemoveLocation(udg_locations03[501])
endfunction
function Trig_NHyanhua_______u_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='Arsw'))
endfunction
function Trig_NHyanhua_______u_Actions takes nothing returns nothing
local location P
local location P1
local integer BB
set P=GetSpellTargetLoc()
set BB=1
loop
exitwhen BB>30
set P1=PolarProjectionBJ(P,GetRandomReal(0,300.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'nsc3',GetOwningPlayer(GetTriggerUnit()),P1,GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(0.30,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(P1)
call TriggerSleepAction(0.10)
set BB=BB+1
endloop
call RemoveLocation(P)
set P=null
set P1=null
set BB=0
endfunction
function Trig_NHyanhua2_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='nsc3'))
endfunction
function Trig_NHyanhua2_Func002Func001C takes nothing returns boolean
return((GetRandomInt(1,2)==1))
endfunction
function Trig_NHyanhua2_Func002C takes nothing returns boolean
return((GetRandomInt(1,3)==1))
endfunction
function Trig_NHyanhua2_Actions takes nothing returns nothing
set udg_locations07[52]=GetUnitLoc(GetTriggerUnit())
if((GetRandomInt(1,3)==1))then
call CreateNUnitsAtLoc(1,'ncnk',GetOwningPlayer(GetTriggerUnit()),udg_locations07[52],GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
else
if((GetRandomInt(1,2)==1))then
call CreateNUnitsAtLoc(1,'nscb',GetOwningPlayer(GetTriggerUnit()),udg_locations07[52],GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
else
call CreateNUnitsAtLoc(1,'nsc2',GetOwningPlayer(GetTriggerUnit()),udg_locations07[52],GetRandomReal(0,360))
call UnitApplyTimedLifeBJ(1.00,'BTLF',bj_lastCreatedUnit)
endif
endif
endfunction
function Trig_yqjd_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01T'))
endfunction
function Trig_yqjd_Func001Func001C takes nothing returns boolean
return((udg_boolean01==false))and((udg_boolean02==false))and((GetPlayerSlotState(GetOwningPlayer(GetSpellTargetUnit()))!=PLAYER_SLOT_STATE_LEFT))and((GetUnitTypeId(GetSpellTargetUnit())!='U009'))and((GetPlayerController(GetOwningPlayer(GetSpellTargetUnit()))!=MAP_CONTROL_COMPUTER))and((IsUnitType(GetSpellTargetUnit(),UNIT_TYPE_HERO)))and((IsUnitPaused(GetSpellTargetUnit())!=true))
endfunction
function Trig_yqjd_Func001C takes nothing returns boolean
return((((udg_boolean01==false))and((udg_boolean02==false))and((GetPlayerSlotState(GetOwningPlayer(GetSpellTargetUnit()))!=PLAYER_SLOT_STATE_LEFT))and((GetUnitTypeId(GetSpellTargetUnit())!='U009'))and((GetPlayerController(GetOwningPlayer(GetSpellTargetUnit()))!=MAP_CONTROL_COMPUTER))and((IsUnitType(GetSpellTargetUnit(),UNIT_TYPE_HERO)))and((IsUnitPaused(GetSpellTargetUnit())!=true))))
endfunction
function Trig_yqjd_Actions takes nothing returns nothing
if((((udg_boolean01==false))and((udg_boolean02==false))and((GetPlayerSlotState(GetOwningPlayer(GetSpellTargetUnit()))!=PLAYER_SLOT_STATE_LEFT))and((GetUnitTypeId(GetSpellTargetUnit())!='U009'))and((GetPlayerController(GetOwningPlayer(GetSpellTargetUnit()))!=MAP_CONTROL_COMPUTER))and((IsUnitType(GetSpellTargetUnit(),UNIT_TYPE_HERO)))and((IsUnitPaused(GetSpellTargetUnit())!=true))))then
set udg_boolean01=true
set udg_units01[1]=GetTriggerUnit()
set udg_units01[2]=GetSpellTargetUnit()
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,(GetPlayerName(GetOwningPlayer(udg_units01[1]))+("|cFF18530E___|r"+(GetPlayerName(GetOwningPlayer(udg_units01[2]))+" |cFF18530E__|r"))))
call DialogSetMessage(udg_dialog03,"____!")
set udg_button01=DialogAddButtonBJ(udg_dialog03,"__(__200__)")
set udg_button02=DialogAddButtonBJ(udg_dialog03,"__(__100__)")
call DialogDisplayBJ(true,udg_dialog03,GetOwningPlayer(udg_units01[2]))
else
call DisplayTimedTextToForce(GetPlayersByMapControl(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))),10.00,"|cFFFF0000_________!|r")
endif
endfunction
function Trig_jdpd_Func003C takes nothing returns boolean
return((GetClickedButton()==udg_button01))
endfunction
function Trig_jdpd_Actions takes nothing returns nothing
call SetUnitInvulnerable(udg_units01[1],false)
call SetUnitInvulnerable(udg_units01[2],false)
if((GetClickedButton()==udg_button01))then
call DialogClear(udg_dialog03)
call AdjustPlayerStateBJ(200,GetOwningPlayer(udg_units01[2]),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30.00,(GetPlayerName(GetOwningPlayer(udg_units01[2]))+"|r ________,____400__, _______!!"))
call CameraSetSmoothingFactor(0.30)
call PlayThematicMusic("zhandoukaishi.mp3")
call StopMusic(true)
call SetUnitPositionLocFacingLocBJ(udg_units01[1],GetRectCenter(udg_rect15),GetRectCenter(udg_rect16))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_units01[1]),GetRectCenter(udg_rect15),0.50)
call SetUnitPositionLocFacingLocBJ(udg_units01[2],GetRectCenter(udg_rect16),GetRectCenter(udg_rect15))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_units01[2]),GetRectCenter(udg_rect16),0.50)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitLifePercentBJ(udg_units01[bj_forLoopAIndex],100)
call SetUnitManaPercentBJ(udg_units01[bj_forLoopAIndex],100)
call UnitResetCooldown(udg_units01[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLocFacingLocBJ(5,'hhes',GetOwningPlayer(udg_units01[1]),GetRectCenter(udg_rect15),GetRectCenter(udg_rect16))
call CreateNUnitsAtLocFacingLocBJ(5,'hhes',GetOwningPlayer(udg_units01[2]),GetRectCenter(udg_rect16),GetRectCenter(udg_rect15))
call StartTimerBJ(udg_timer01,false,120.00)
call CreateTimerDialogBJ(bj_lastStartedTimer,"_____")
call TimerDialogDisplay(bj_lastCreatedTimerDialog,true)
set udg_timerdialog01=bj_lastCreatedTimerDialog
call EnableTrigger(udg_trigger470)
else
call DialogClear(udg_dialog03)
call AdjustPlayerStateBJ(-100,GetOwningPlayer(udg_units01[2]),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(200,GetOwningPlayer(udg_units01[1]),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30.00,(GetPlayerName(GetOwningPlayer(udg_units01[2]))+("|r _______,__200___ "+GetPlayerName(GetOwningPlayer(udg_units01[1])))))
call TriggerSleepAction(1.00)
set udg_boolean01=false
endif
endfunction
function Trig_jdIfWin_Func001C takes nothing returns boolean
return((GetTriggerUnit()==udg_units01[1]))or((GetTriggerUnit()==udg_units01[2]))
endfunction
function Trig_jdIfWin_Conditions takes nothing returns boolean
return((((GetTriggerUnit()==udg_units01[1]))or((GetTriggerUnit()==udg_units01[2]))))and((udg_boolean01))and((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))
endfunction
function Trig_jdIfWin_Func004Func002001 takes nothing returns boolean
return(udg_integer04>0)
endfunction
function Trig_jdIfWin_Func004Func008001 takes nothing returns boolean
return(udg_integer04>0)
endfunction
function Trig_jdIfWin_Func004C takes nothing returns boolean
return((GetTriggerUnit()==udg_units01[1]))
endfunction
function Trig_jdIfWin_Func005001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_jdIfWin_Func005002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_jdIfWin_Func008001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_jdIfWin_Func008Func001C takes nothing returns boolean
if(not(IsUnitAlly(GetEnumUnit(),Player(11))))then
return false
endif
return true
endfunction
function Trig_jdIfWin_Func008Func002C takes nothing returns boolean
return((IsUnitAlly(GetEnumUnit(),Player(7))))
endfunction
function Trig_jdIfWin_Func008Func003C takes nothing returns boolean
return((IsUnitAlly(GetEnumUnit(),Player(3))))
endfunction
function Trig_jdIfWin_Func008A takes nothing returns nothing
if(Trig_jdIfWin_Func008Func001C())then
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect05))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnumUnit()),GetUnitLoc(GetEnumUnit()),0.50)
endif
if((IsUnitAlly(GetEnumUnit(),Player(7))))then
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect04))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnumUnit()),GetUnitLoc(GetEnumUnit()),0.50)
endif
if((IsUnitAlly(GetEnumUnit(),Player(3))))then
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect03))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnumUnit()),GetUnitLoc(udg_units01[bj_forLoopAIndex]),0.50)
endif
endfunction
function Trig_jdIfWin_Actions takes nothing returns nothing
call DestroyTimerDialog(udg_timerdialog01)
call DisableTrigger(GetTriggeringTrigger())
if((GetTriggerUnit()==udg_units01[1]))then
set udg_integer04=(GetHeroLevel(udg_units01[2])-GetHeroLevel(udg_units01[1]))
if((udg_integer04>0))then
set udg_integer04=(udg_integer04*100)
else
set udg_integer04=0
endif
call AdjustPlayerStateBJ((2000+udg_integer04),GetOwningPlayer(udg_units01[2]),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,(GetPlayerName(GetOwningPlayer(udg_units01[1]))+("|r _______,"+(GetPlayerName(GetOwningPlayer(udg_units01[2]))+("|r _____2000__,_"+(I2S(udg_integer04)+"________!"))))))
call AdjustPlayerStateBJ(15,GetOwningPlayer(udg_units01[2]),PLAYER_STATE_GAME_RESULT)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"_____3_______")
else
set udg_integer04=(GetHeroLevel(udg_units01[1])-GetHeroLevel(udg_units01[2]))
if((udg_integer04>0))then
set udg_integer04=(udg_integer04*100)
else
set udg_integer04=0
endif
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,(GetPlayerName(GetOwningPlayer(udg_units01[2]))+("|r _______,"+(GetPlayerName(GetOwningPlayer(udg_units01[1]))+("|r _____2000__,_"+(I2S(udg_integer04)+"________!"))))))
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"_____3_______")
call AdjustPlayerStateBJ((2000+udg_integer04),GetOwningPlayer(udg_units01[1]),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(15,GetOwningPlayer(udg_units01[1]),PLAYER_STATE_GAME_RESULT)
endif
call ForGroupBJ(GetUnitsInRectMatching(udg_rect17,Condition(function Trig_jdIfWin_Func005001002)),function Trig_jdIfWin_Func005002)
set udg_boolean01=false
call TriggerSleepAction(3.00)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect17,Condition(function Trig_jdIfWin_Func008001002)),function Trig_jdIfWin_Func008A)
set udg_units01[1]=null
set udg_units01[2]=null
endfunction
function Trig_jdIfWin_goout_Func003C takes nothing returns boolean
return((GetTriggerUnit()==udg_units01[1]))or((GetTriggerUnit()==udg_units01[2]))
endfunction
function Trig_jdIfWin_goout_Conditions takes nothing returns boolean
return((GetPlayerSlotState(GetOwningPlayer(GetTriggerUnit()))==PLAYER_SLOT_STATE_LEFT))and((((GetTriggerUnit()==udg_units01[1]))or((GetTriggerUnit()==udg_units01[2]))))and((udg_boolean01))and((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))
endfunction
function Trig_jdIfWin_goout_Func006Func002001 takes nothing returns boolean
return(udg_integer04>0)
endfunction
function Trig_jdIfWin_goout_Func006Func008001 takes nothing returns boolean
return(udg_integer04>0)
endfunction
function Trig_jdIfWin_goout_Func006C takes nothing returns boolean
return((GetTriggerUnit()==udg_units01[1]))
endfunction
function Trig_jdIfWin_goout_Func007001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_jdIfWin_goout_Func007002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_jdIfWin_goout_Func010001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_jdIfWin_goout_Func010Func001C takes nothing returns boolean
if(not(IsUnitAlly(GetEnumUnit(),Player(11))))then
return false
endif
return true
endfunction
function Trig_jdIfWin_goout_Func010Func002C takes nothing returns boolean
return((IsUnitAlly(GetEnumUnit(),Player(7))))
endfunction
function Trig_jdIfWin_goout_Func010Func003C takes nothing returns boolean
return((IsUnitAlly(GetEnumUnit(),Player(3))))
endfunction
function Trig_jdIfWin_goout_Func010A takes nothing returns nothing
if(Trig_jdIfWin_goout_Func010Func001C())then
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect05))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnumUnit()),GetUnitLoc(GetEnumUnit()),0.50)
endif
if((IsUnitAlly(GetEnumUnit(),Player(7))))then
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect04))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnumUnit()),GetUnitLoc(GetEnumUnit()),0.50)
endif
if((IsUnitAlly(GetEnumUnit(),Player(3))))then
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect03))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnumUnit()),GetUnitLoc(udg_units01[bj_forLoopAIndex]),0.50)
endif
endfunction
function Trig_jdIfWin_goout_Actions takes nothing returns nothing
call DestroyTimerDialog(udg_timerdialog01)
call DisableTrigger(GetTriggeringTrigger())
if((GetTriggerUnit()==udg_units01[1]))then
set udg_integer04=(GetHeroLevel(udg_units01[2])-GetHeroLevel(udg_units01[1]))
if((udg_integer04>0))then
set udg_integer04=(udg_integer04*100)
else
set udg_integer04=0
endif
call AdjustPlayerStateBJ((2000+udg_integer04),GetOwningPlayer(udg_units01[2]),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,(GetPlayerName(GetOwningPlayer(udg_units01[1]))+("|r _________,"+(GetPlayerName(GetOwningPlayer(udg_units01[2]))+("|r _____2000__,_"+(I2S(udg_integer04)+"________!"))))))
call AdjustPlayerStateBJ(15,GetOwningPlayer(udg_units01[2]),PLAYER_STATE_GAME_RESULT)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"_____3_______")
else
set udg_integer04=(GetHeroLevel(udg_units01[1])-GetHeroLevel(udg_units01[2]))
if((udg_integer04>0))then
set udg_integer04=(udg_integer04*100)
else
set udg_integer04=0
endif
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,(GetPlayerName(GetOwningPlayer(udg_units01[2]))+("|r _________,"+(GetPlayerName(GetOwningPlayer(udg_units01[1]))+("|r _____2000__,_"+(I2S(udg_integer04)+"________!"))))))
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"_____3_______")
call AdjustPlayerStateBJ((2000+udg_integer04),GetOwningPlayer(udg_units01[1]),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(15,GetOwningPlayer(udg_units01[1]),PLAYER_STATE_GAME_RESULT)
endif
call ForGroupBJ(GetUnitsInRectMatching(udg_rect17,Condition(function Trig_jdIfWin_goout_Func007001002)),function Trig_jdIfWin_goout_Func007002)
set udg_boolean01=false
call TriggerSleepAction(3.00)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect17,Condition(function Trig_jdIfWin_goout_Func010001002)),function Trig_jdIfWin_goout_Func010A)
set udg_units01[1]=null
set udg_units01[2]=null
endfunction
function Trig_jdpj_Conditions takes nothing returns boolean
return((udg_boolean01))
endfunction
function Trig_jdpj_Func004001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_jdpj_Func004Func001C takes nothing returns boolean
if(not(IsUnitAlly(GetEnumUnit(),Player(11))))then
return false
endif
return true
endfunction
function Trig_jdpj_Func004Func002C takes nothing returns boolean
return((IsUnitAlly(GetEnumUnit(),Player(7))))
endfunction
function Trig_jdpj_Func004Func003C takes nothing returns boolean
return((IsUnitAlly(GetEnumUnit(),Player(3))))
endfunction
function Trig_jdpj_Func004A takes nothing returns nothing
if(Trig_jdpj_Func004Func001C())then
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect05))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnumUnit()),GetUnitLoc(GetEnumUnit()),0.50)
endif
if((IsUnitAlly(GetEnumUnit(),Player(7))))then
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect04))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnumUnit()),GetUnitLoc(GetEnumUnit()),0.50)
endif
if((IsUnitAlly(GetEnumUnit(),Player(3))))then
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect03))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnumUnit()),GetUnitLoc(udg_units01[bj_forLoopAIndex]),0.50)
endif
endfunction
function Trig_jdpj_Func005001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_jdpj_Func005002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_jdpj_Actions takes nothing returns nothing
call DestroyTimerDialog(udg_timerdialog01)
set udg_boolean01=false
call ForGroupBJ(GetUnitsInRectMatching(udg_rect17,Condition(function Trig_jdpj_Func004001002)),function Trig_jdpj_Func004A)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect17,Condition(function Trig_jdpj_Func005001002)),function Trig_jdpj_Func005002)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,30,(GetPlayerName(GetOwningPlayer(udg_units01[1]))+("|r _ "+(GetPlayerName(GetOwningPlayer(udg_units01[2]))+"|r ______,___"))))
set udg_units01[1]=null
set udg_units01[2]=null
endfunction
function Trig_lkjd_Func003C takes nothing returns boolean
return((GetTriggerUnit()==udg_units01[1]))or((GetTriggerUnit()==udg_units01[2]))
endfunction
function Trig_lkjd_Conditions takes nothing returns boolean
return((udg_boolean01))and((((GetTriggerUnit()==udg_units01[1]))or((GetTriggerUnit()==udg_units01[2]))))
endfunction
function Trig_lkjd_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(udg_rect17))
endfunction
function Trig_chujuePK_Conditions takes nothing returns boolean
return((GetTriggerUnit()!=udg_units01[1]))and((GetTriggerUnit()!=udg_units01[2]))and((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))
endfunction
function Trig_chujuePK_Actions takes nothing returns nothing
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,10.00,"______._______._______.")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02F'))
call SetUnitInvulnerable(GetTriggerUnit(),false)
call KillUnit(GetTriggerUnit())
endfunction
function Trig_CB1_1_Func001C takes nothing returns boolean
return((IsUnitAliveBJ(udg_unit45)))
endfunction
function Trig_CB1_1_Func002C takes nothing returns boolean
return((IsUnitAliveBJ(udg_unit51)))
endfunction
function Trig_CB1_1_Actions takes nothing returns nothing
if((IsUnitAliveBJ(udg_unit45)))then
call CreateNUnitsAtLoc(3,'h01A',Player(3),GetRectCenter(udg_rect11),bj_UNIT_FACING)
call CreateNUnitsAtLoc(2,'e017',Player(3),GetRectCenter(udg_rect11),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndth',Player(3),GetRectCenter(udg_rect11),bj_UNIT_FACING)
endif
if((IsUnitAliveBJ(udg_unit51)))then
call CreateNUnitsAtLoc(3,'h01A',Player(3),GetRectCenter(udg_rect10),bj_UNIT_FACING)
call CreateNUnitsAtLoc(2,'e017',Player(3),GetRectCenter(udg_rect10),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndth',Player(3),GetRectCenter(udg_rect10),bj_UNIT_FACING)
endif
call CreateNUnitsAtLoc(2,'hfoo',Player(3),GetRectCenter(udg_rect06),bj_UNIT_FACING)
call CreateNUnitsAtLoc(2,'h01A',Player(3),GetRectCenter(udg_rect06),bj_UNIT_FACING)
call CreateNUnitsAtLoc(2,'e017',Player(3),GetRectCenter(udg_rect06),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndth',Player(3),GetRectCenter(udg_rect06),bj_UNIT_FACING)
endfunction
function Trig_CB1_2_Func002C takes nothing returns boolean
return((IsUnitAliveBJ(udg_unit45)))
endfunction
function Trig_CB1_2_Func003C takes nothing returns boolean
return((IsUnitAliveBJ(udg_unit51)))
endfunction
function Trig_CB1_2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'otau',Player(3),GetRectCenter(udg_rect06),bj_UNIT_FACING)
if((IsUnitAliveBJ(udg_unit45)))then
call CreateNUnitsAtLoc(1,'otau',Player(3),GetRectCenter(udg_rect11),bj_UNIT_FACING)
endif
if((IsUnitAliveBJ(udg_unit51)))then
call CreateNUnitsAtLoc(1,'otau',Player(3),GetRectCenter(udg_rect10),bj_UNIT_FACING)
endif
endfunction
function Trig_CB2_1_Func005C takes nothing returns boolean
return((IsUnitAliveBJ(udg_unit42)))
endfunction
function Trig_CB2_1_Func006C takes nothing returns boolean
return((IsUnitAliveBJ(udg_unit37)))
endfunction
function Trig_CB2_1_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(2,'h01B',Player(7),GetRectCenter(udg_rect07),bj_UNIT_FACING)
call CreateNUnitsAtLoc(2,'h01J',Player(7),GetRectCenter(udg_rect07),bj_UNIT_FACING)
call CreateNUnitsAtLoc(2,'earc',Player(7),GetRectCenter(udg_rect07),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndth',Player(7),GetRectCenter(udg_rect07),bj_UNIT_FACING)
if((IsUnitAliveBJ(udg_unit42)))then
call CreateNUnitsAtLoc(2,'earc',Player(7),GetRectCenter(udg_rect12),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndth',Player(7),GetRectCenter(udg_rect12),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'h01J',Player(7),GetRectCenter(udg_rect12),bj_UNIT_FACING)
endif
if((IsUnitAliveBJ(udg_unit37)))then
call CreateNUnitsAtLoc(3,'h01J',Player(7),GetRectCenter(udg_rect13),bj_UNIT_FACING)
call CreateNUnitsAtLoc(2,'earc',Player(7),GetRectCenter(udg_rect13),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndth',Player(7),GetRectCenter(udg_rect13),bj_UNIT_FACING)
endif
endfunction
function Trig_CB2_2_Func002C takes nothing returns boolean
return((IsUnitAliveBJ(udg_unit42)))
endfunction
function Trig_CB2_2_Func003C takes nothing returns boolean
return((IsUnitAliveBJ(udg_unit37)))
endfunction
function Trig_CB2_2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'ogru',Player(7),GetRectCenter(udg_rect07),bj_UNIT_FACING)
if((IsUnitAliveBJ(udg_unit42)))then
call CreateNUnitsAtLoc(1,'ogru',Player(7),GetRectCenter(udg_rect12),bj_UNIT_FACING)
endif
if((IsUnitAliveBJ(udg_unit37)))then
call CreateNUnitsAtLoc(1,'ogru',Player(7),GetRectCenter(udg_rect13),bj_UNIT_FACING)
endif
endfunction
function Trig_CB3_1_Func005C takes nothing returns boolean
return((IsUnitAliveBJ(udg_unit50)))
endfunction
function Trig_CB3_1_Func006C takes nothing returns boolean
return((IsUnitAliveBJ(udg_unit53)))
endfunction
function Trig_CB3_1_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(2,'h026',Player(11),GetRectCenter(udg_rect08),bj_UNIT_FACING)
call CreateNUnitsAtLoc(2,'h027',Player(11),GetRectCenter(udg_rect08),bj_UNIT_FACING)
call CreateNUnitsAtLoc(2,'e018',Player(11),GetRectCenter(udg_rect08),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndth',Player(11),GetRectCenter(udg_rect08),bj_UNIT_FACING)
if((IsUnitAliveBJ(udg_unit50)))then
call CreateNUnitsAtLoc(3,'h027',Player(11),GetRectCenter(udg_rect14),bj_UNIT_FACING)
call CreateNUnitsAtLoc(2,'e018',Player(11),GetRectCenter(udg_rect14),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndth',Player(11),GetRectCenter(udg_rect14),bj_UNIT_FACING)
endif
if((IsUnitAliveBJ(udg_unit53)))then
call CreateNUnitsAtLoc(3,'h027',Player(11),GetRectCenter(udg_rect09),bj_UNIT_FACING)
call CreateNUnitsAtLoc(2,'e018',Player(11),GetRectCenter(udg_rect09),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndth',Player(11),GetRectCenter(udg_rect09),bj_UNIT_FACING)
endif
endfunction
function Trig_CB3_2_Func002C takes nothing returns boolean
return((IsUnitAliveBJ(udg_unit50)))
endfunction
function Trig_CB3_2_Func003C takes nothing returns boolean
return((IsUnitAliveBJ(udg_unit53)))
endfunction
function Trig_CB3_2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'orai',Player(11),GetRectCenter(udg_rect08),bj_UNIT_FACING)
if((IsUnitAliveBJ(udg_unit50)))then
call CreateNUnitsAtLoc(1,'orai',Player(11),GetRectCenter(udg_rect14),bj_UNIT_FACING)
endif
if((IsUnitAliveBJ(udg_unit53)))then
call CreateNUnitsAtLoc(1,'orai',Player(11),GetRectCenter(udg_rect09),bj_UNIT_FACING)
endif
endfunction
function Trig_bingzou_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(3)))and((GetUnitTypeId(GetTriggerUnit())!='espv'))
endfunction
function Trig_bingzou_Actions takes nothing returns nothing
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect20))
endfunction
function Trig_bingzou0_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(3)))and((GetUnitTypeId(GetTriggerUnit())!='espv'))
endfunction
function Trig_bingzou0_Actions takes nothing returns nothing
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect07))
endfunction
function Trig_bingzou0_2_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(3)))and((GetUnitTypeId(GetTriggerUnit())!='espv'))
endfunction
function Trig_bingzou0_2_Actions takes nothing returns nothing
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect08))
endfunction
function Trig_bingzou1_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(3)))and((GetUnitTypeId(GetTriggerUnit())!='espv'))
endfunction
function Trig_bingzou1_Func001C takes nothing returns boolean
return((IsUnitAliveBJ(udg_unit40)))
endfunction
function Trig_bingzou1_Actions takes nothing returns nothing
if((IsUnitAliveBJ(udg_unit40)))then
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect07))
else
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect08))
endif
endfunction
function Trig_bingzou2_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(3)))and((GetUnitTypeId(GetTriggerUnit())!='espv'))
endfunction
function Trig_bingzou2_Actions takes nothing returns nothing
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect08))
endfunction
function Trig_bingzou2_2_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(3)))and((GetUnitTypeId(GetTriggerUnit())!='espv'))
endfunction
function Trig_bingzou2_2_Actions takes nothing returns nothing
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect07))
endfunction
function Trig_bingzou3_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(7)))and((GetUnitTypeId(GetTriggerUnit())!='espv'))
endfunction
function Trig_bingzou3_Actions takes nothing returns nothing
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect20))
endfunction
function Trig_bingzou3_2_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(7)))and((GetUnitTypeId(GetTriggerUnit())!='espv'))
endfunction
function Trig_bingzou3_2_Actions takes nothing returns nothing
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect06))
endfunction
function Trig_bingzou3_3_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(7)))and((GetUnitTypeId(GetTriggerUnit())!='espv'))
endfunction
function Trig_bingzou3_3_Actions takes nothing returns nothing
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect08))
endfunction
function Trig_bingzou4_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(7)))and((GetUnitTypeId(GetTriggerUnit())!='espv'))
endfunction
function Trig_bingzou4_Func001C takes nothing returns boolean
return((IsUnitAliveBJ(udg_unit54)))
endfunction
function Trig_bingzou4_Actions takes nothing returns nothing
if((IsUnitAliveBJ(udg_unit54)))then
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect08))
else
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect06))
endif
endfunction
function Trig_bingzou5_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(7)))and((GetUnitTypeId(GetTriggerUnit())!='espv'))
endfunction
function Trig_bingzou5_Actions takes nothing returns nothing
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect08))
endfunction
function Trig_bingzou5_2_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(7)))and((GetUnitTypeId(GetTriggerUnit())!='espv'))
endfunction
function Trig_bingzou5_2_Actions takes nothing returns nothing
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect06))
endfunction
function Trig_bingzou6_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(11)))and((GetUnitTypeId(GetTriggerUnit())!='espv'))
endfunction
function Trig_bingzou6_Actions takes nothing returns nothing
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect20))
endfunction
function Trig_bingzou7_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(11)))and((GetUnitTypeId(GetTriggerUnit())!='espv'))
endfunction
function Trig_bingzou7_Func001C takes nothing returns boolean
return((IsUnitAliveBJ(udg_unit35)))
endfunction
function Trig_bingzou7_Actions takes nothing returns nothing
if((IsUnitAliveBJ(udg_unit35)))then
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect06))
else
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect07))
endif
endfunction
function Trig_bingzou8_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(11)))and((GetUnitTypeId(GetTriggerUnit())!='espv'))
endfunction
function Trig_bingzou8_Actions takes nothing returns nothing
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect07))
endfunction
function Trig_bingzou8_2_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(11)))and((GetUnitTypeId(GetTriggerUnit())!='espv'))
endfunction
function Trig_bingzou8_2_Actions takes nothing returns nothing
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect06))
endfunction
function Trig_bingzou0_3_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(11)))and((GetUnitTypeId(GetTriggerUnit())!='espv'))
endfunction
function Trig_bingzou0_3_Actions takes nothing returns nothing
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect07))
endfunction
function Trig_bingzou0_4_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(11)))and((GetUnitTypeId(GetTriggerUnit())!='espv'))
endfunction
function Trig_bingzou0_4_Actions takes nothing returns nothing
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect06))
endfunction
function Trig_leak_Func001001001001001001 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_leak_Func001001001001001002 takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())!=MAP_CONTROL_COMPUTER)
endfunction
function Trig_leak_Func001001001001001 takes nothing returns boolean
return GetBooleanAnd((GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING),(GetPlayerController(GetFilterPlayer())!=MAP_CONTROL_COMPUTER))
endfunction
function Trig_leak_Conditions takes nothing returns boolean
if(not(I2R(CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_leak_Func001001001001001))))==1.00))then
return false
endif
return true
endfunction
function Trig_leak_Func002A takes nothing returns nothing
call UnitResetCooldown(GetEnumUnit())
call SetHeroLevelBJ(GetEnumUnit(),50,true)
call SetUnitLifePercentBJ(GetEnumUnit(),100)
call SetUnitManaPercentBJ(GetEnumUnit(),100)
call AdjustPlayerStateBJ(1000000,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(1000000,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_LUMBER)
endfunction
function Trig_leak_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsSelectedAll(GetTriggerPlayer()),function Trig_leak_Func002A)
endfunction
function main2 takes nothing returns nothing
local weathereffect we
local destructable d
local trigger t
local real life
local player p
local unit u
local integer unitID
local integer i
call SetCameraBounds(-7424.0+GetCameraMargin(CAMERA_MARGIN_LEFT),-7680.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM),7424.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),7168.0-GetCameraMargin(CAMERA_MARGIN_TOP),-7424.0+GetCameraMargin(CAMERA_MARGIN_LEFT),7168.0-GetCameraMargin(CAMERA_MARGIN_TOP),7424.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),-7680.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM))
call SetDayNightModels("Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl","Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl")
call NewSoundEnvironment("Default")
call SetAmbientDaySound("SunkenRuinsDay")
call SetAmbientNightSound("SunkenRuinsNight")
call SetMapMusic("Music",true,0)
call SetSoundParamsFromLabel(udg_sound01,"DeathHumanLargeBuilding")
call SetSoundDuration(udg_sound01,3460)
call SetSoundParamsFromLabel(udg_sound02,"RainOfFireLoop")
call SetSoundDuration(udg_sound02,4000)
call SetSoundChannel(udg_sound03,0)
call SetSoundVolume(udg_sound03,127)
call SetSoundPitch(udg_sound03,1.0)
set udg_rect02=Rect(7232.0,7648.0,7872.0,7968.0)
set udg_rect03=Rect(-6048.0,704.0,-5856.0,928.0)
set udg_rect04=Rect(3936.0,6304.0,4128.0,6496.0)
set udg_rect05=Rect(3008.0,-6240.0,3200.0,-6048.0)
set udg_rect06=Rect(-5280.0,448.0,-4576.0,1184.0)
set we=AddWeatherEffect(udg_rect06,'LRaa')
call EnableWeatherEffect(we,true)
set udg_rect07=Rect(2848.0,5152.0,3648.0,5920.0)
set we=AddWeatherEffect(udg_rect07,'WOcw')
call EnableWeatherEffect(we,true)
set udg_rect08=Rect(2368.0,-5568.0,3104.0,-4768.0)
set we=AddWeatherEffect(udg_rect08,'RAhr')
call EnableWeatherEffect(we,true)
set udg_rect09=Rect(800.0,-4832.0,1312.0,-4256.0)
set udg_rect10=Rect(-4096.0,-1376.0,-3584.0,-800.0)
set udg_rect11=Rect(-4096.0,2048.0,-3584.0,2624.0)
set udg_rect12=Rect(1152.0,4896.0,1664.0,5472.0)
set udg_rect13=Rect(3712.0,3136.0,4224.0,3712.0)
set udg_rect14=Rect(3360.0,-3520.0,3872.0,-2944.0)
set udg_rect15=Rect(-6720.0,6144.0,-6528.0,6368.0)
set udg_rect16=Rect(-4608.0,6144.0,-4416.0,6368.0)
set udg_rect17=Rect(-6816.0,5472.0,-4320.0,7040.0)
set udg_rect18=Rect(5856.0,-1696.0,6272.0,-1312.0)
set udg_rect19=Rect(6432.0,1952.0,6976.0,2368.0)
set udg_rect20=Rect(320.0,448.0,992.0,1120.0)
set udg_rect21=Rect(5792.0,-928.0,5984.0,-800.0)
set udg_rect22=Rect(5984.0,-928.0,6176.0,-800.0)
set udg_rect23=Rect(-6496.0,-6688.0,-4672.0,-5152.0)
set we=AddWeatherEffect(udg_rect23,'RAlr')
call EnableWeatherEffect(we,true)
set udg_rect24=Rect(5856.0,4576.0,6048.0,4800.0)
set udg_rect25=Rect(6400.0,4448.0,6560.0,4608.0)
set udg_rect26=Rect(6112.0,6112.0,6784.0,6592.0)
set udg_rect27=Rect(6304.0,6848.0,6560.0,7072.0)
set udg_rect28=Rect(5792.0,5888.0,7552.0,6912.0)
set udg_rect29=Rect(5824.0,3424.0,7424.0,5248.0)
set udg_rect30=Rect(992.0,6784.0,1088.0,7040.0)
set udg_rect31=Rect(-3008.0,6464.0,-2592.0,6656.0)
set udg_rect32=Rect(-480.0,6176.0,-160.0,6624.0)
set udg_rect33=Rect(-1088.0,6208.0,-704.0,6752.0)
set udg_rect34=Rect(6240.0,5152.0,6784.0,5376.0)
set udg_rect35=Rect(6272.0,5824.0,6912.0,6016.0)
set udg_rect36=Rect(-1472.0,3360.0,-576.0,4384.0)
set udg_rect37=Rect(-1632.0,-2912.0,-736.0,-1920.0)
set udg_rect38=Rect(3200.0,-320.0,4096.0,672.0)
set udg_rect39=Rect(6816.0,-6688.0,7296.0,-6528.0)
set udg_rect40=Rect(5760.0,-4544.0,6144.0,-4192.0)
set udg_rect41=Rect(-192.0,-6880.0,288.0,-6368.0)
set udg_rect42=Rect(4512.0,-7680.0,5984.0,-6176.0)
set udg_rect43=Rect(5792.0,-6560.0,5984.0,-6240.0)
set udg_rect17=Rect(-6784.0,5472.0,-4320.0,7040.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_ROTATION,89.7,0.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_ANGLE_OF_ATTACK,314.3,0.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_TARGET_DISTANCE,1800.0,0.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_FARZ,5000.0,0.0)
call CameraSetupSetDestPosition(udg_camerasetup01,-5607.4,6122.1,0.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ROTATION,87.0,0.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ANGLE_OF_ATTACK,321.7,0.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_TARGET_DISTANCE,1200.0,0.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_FARZ,5000.0,0.0)
call CameraSetupSetDestPosition(udg_camerasetup02,607.6,459.3,0.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_ROTATION,81.8,0.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_ANGLE_OF_ATTACK,347.5,0.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_TARGET_DISTANCE,846.7,0.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_FARZ,5000.0,0.0)
call CameraSetupSetDestPosition(udg_camerasetup03,-5412.9,-6106.5,0.0)
set udg_destructable02=CreateDestructable('ATg1',6528.0,5248.0,270.000,0.900,0)
set udg_destructable01=CreateDestructable('ATg1',6592.0,5952.0,270.000,0.900,0)
set udg_destructable03=CreateDestructable('B003',-1088.0,6336.0,270.000,4.000,0)
set p=Player(3)
set u=CreateUnit(p,'negt',-5760.0,1152.0,270.000)
set udg_unit35=CreateUnit(p,'hcas',-5312.0,832.0,270.000)
set u=CreateUnit(p,'ngme',-4992.0,1856.0,270.000)
set u=CreateUnit(p,'halt',-5632.0,64.0,270.000)
set u=CreateUnit(p,'hbar',-5440.0,-128.0,270.000)
set u=CreateUnit(p,'hgtw',-3968.0,-1472.0,270.000)
set udg_unit45=CreateUnit(p,'htow',-3904.0,1792.0,270.000)
set udg_unit51=CreateUnit(p,'htow',-3968.0,-448.0,270.000)
set u=CreateUnit(p,'hgtw',-3456.0,-832.0,270.000)
set u=CreateUnit(p,'negt',-4736.0,1152.0,270.000)
set u=CreateUnit(p,'negt',-4928.0,448.0,270.000)
set u=CreateUnit(p,'hgtw',-3392.0,1088.0,270.000)
set u=CreateUnit(p,'hgtw',-3392.0,320.0,270.000)
set u=CreateUnit(p,'hgtw',-3904.0,2624.0,270.000)
set u=CreateUnit(p,'hgtw',-3520.0,2176.0,270.000)
set u=CreateUnit(p,'hlum',-4800.0,-768.0,270.000)
set u=CreateUnit(p,'negt',-5760.0,512.0,270.000)
set u=CreateUnit(p,'nfoh',-6208.0,832.0,270.000)
set u=CreateUnit(p,'negt',-5312.0,256.0,270.000)
set u=CreateUnit(p,'negt',-5440.0,1344.0,270.000)
set u=CreateUnit(p,'negt',-4224.0,1536.0,270.000)
set u=CreateUnit(p,'negt',-3968.0,448.0,270.000)
set u=CreateUnit(p,'negt',-4416.0,2240.0,270.000)
set u=CreateUnit(p,'negt',-4544.0,-832.0,270.000)
set udg_unit83=CreateUnit(p,'hgra',-5824.0,256.0,270.000)
set u=CreateUnit(p,'h005',-5248.0,-384.0,270.000)
set u=CreateUnit(p,'hgtw',-3328.0,-256.0,270.000)
set u=CreateUnit(p,'hvlt',-5056.0,-576.0,270.000)
set udg_unit38=CreateUnit(p,'hbla',-6016.0,448.0,270.000)
set u=CreateUnit(p,'negt',-3840.0,-128.0,270.000)
set u=CreateUnit(p,'negt',-3968.0,960.0,270.000)
set u=CreateUnit(p,'negt',-5056.0,-320.0,270.000)
set u=CreateUnit(p,'negt',-5056.0,1664.0,270.000)
set u=CreateUnit(p,'negt',-4480.0,0.0,270.000)
set p=Player(7)
set u=CreateUnit(p,'nfoh',4288.0,6656.0,270.000)
set udg_unit40=CreateUnit(p,'h00E',3584.0,5888.0,270.000)
set u=CreateUnit(p,'ngme',2624.0,6400.0,270.000)
set u=CreateUnit(p,'halt',4480.0,5824.0,270.000)
set u=CreateUnit(p,'hbar',4480.0,5440.0,270.000)
set u=CreateUnit(p,'uzg1',992.0,5536.0,270.000)
set u=CreateUnit(p,'uzg1',1248.0,4832.0,270.000)
set u=CreateUnit(p,'uzg1',2080.0,3872.0,270.000)
set u=CreateUnit(p,'uzg1',4256.0,3424.0,270.000)
set u=CreateUnit(p,'uzg1',3680.0,3424.0,270.000)
set u=CreateUnit(p,'uzg1',2656.0,3552.0,270.000)
set u=CreateUnit(p,'hvlt',4480.0,5120.0,270.000)
set u=CreateUnit(p,'ntt1',3584.0,6336.0,270.000)
set u=CreateUnit(p,'ntt1',4224.0,5952.0,270.000)
set u=CreateUnit(p,'ntt1',3008.0,5888.0,270.000)
set u=CreateUnit(p,'ntt1',3904.0,5504.0,270.000)
set u=CreateUnit(p,'ntt1',1600.0,5696.0,270.000)
set udg_unit42=CreateUnit(p,'htow',1856.0,5056.0,270.000)
set udg_unit37=CreateUnit(p,'htow',3776.0,4864.0,270.000)
set u=CreateUnit(p,'ntt1',4288.0,4288.0,270.000)
set u=CreateUnit(p,'ntt1',2176.0,4864.0,270.000)
set u=CreateUnit(p,'ntt1',3584.0,4288.0,270.000)
set u=CreateUnit(p,'ntt1',2944.0,6528.0,270.000)
set u=CreateUnit(p,'ntt1',4288.0,5376.0,270.000)
set udg_unit79=CreateUnit(p,'hbla',4480.0,6016.0,270.000)
set u=CreateUnit(p,'uzg1',1504.0,4128.0,270.000)
set u=CreateUnit(p,'h005',3904.0,6592.0,270.000)
set u=CreateUnit(p,'hlum',4480.0,4736.0,270.000)
set udg_unit82=CreateUnit(p,'hgra',3584.0,6592.0,270.000)
set u=CreateUnit(p,'ntt1',3200.0,5248.0,270.000)
set u=CreateUnit(p,'ntt1',2368.0,6144.0,270.000)
set u=CreateUnit(p,'ntt1',3136.0,4352.0,270.000)
set u=CreateUnit(p,'ntt1',2624.0,4992.0,270.000)
set u=CreateUnit(p,'ntt1',3584.0,5184.0,270.000)
set p=Player(11)
set u=CreateUnit(p,'halt',2112.0,-6144.0,270.000)
set u=CreateUnit(p,'nfoh',3200.0,-6336.0,270.000)
set u=CreateUnit(p,'ngme',3520.0,-4992.0,192.000)
set udg_unit84=CreateUnit(p,'hbla',2304.0,-6400.0,270.000)
set udg_unit53=CreateUnit(p,'htow',2112.0,-4992.0,270.000)
set u=CreateUnit(p,'hatw',960.0,-4224.0,270.000)
set u=CreateUnit(p,'hatw',640.0,-4672.0,270.000)
set u=CreateUnit(p,'hatw',2240.0,-2816.0,270.000)
set u=CreateUnit(p,'hatw',1728.0,-3264.0,270.000)
set u=CreateUnit(p,'hatw',3904.0,-2560.0,270.000)
set u=CreateUnit(p,'hatw',3328.0,-2624.0,270.000)
set u=CreateUnit(p,'ndgt',3008.0,-5248.0,270.000)
set u=CreateUnit(p,'ndgt',2368.0,-5696.0,270.000)
set u=CreateUnit(p,'ndgt',2752.0,-6336.0,270.000)
set udg_unit50=CreateUnit(p,'htow',3328.0,-3648.0,270.000)
set udg_unit85=CreateUnit(p,'hgra',3520.0,-5376.0,270.000)
set u=CreateUnit(p,'ndgt',3584.0,-4288.0,270.000)
set u=CreateUnit(p,'ndgt',2816.0,-3840.0,270.000)
set u=CreateUnit(p,'ndgt',2112.0,-4544.0,270.000)
set u=CreateUnit(p,'ndgt',1088.0,-5056.0,270.000)
set u=CreateUnit(p,'ndgt',2944.0,-4480.0,270.000)
set u=CreateUnit(p,'ndgt',3392.0,-5824.0,270.000)
set u=CreateUnit(p,'ndgt',2240.0,-5312.0,270.000)
set udg_unit54=CreateUnit(p,'h00F',2880.0,-5760.0,270.000)
set u=CreateUnit(p,'hbar',1856.0,-5888.0,270.000)
set u=CreateUnit(p,'hlum',1344.0,-5312.0,270.000)
set u=CreateUnit(p,'hatw',2816.0,-3392.0,270.000)
set u=CreateUnit(p,'h005',3392.0,-6080.0,270.000)
set u=CreateUnit(p,'hvlt',1600.0,-5568.0,270.000)
set u=CreateUnit(p,'ndgt',1728.0,-5632.0,270.000)
set u=CreateUnit(p,'ndgt',3456.0,-5504.0,270.000)
set u=CreateUnit(p,'ndgt',3264.0,-3264.0,270.000)
set u=CreateUnit(p,'ndgt',3968.0,-3328.0,270.000)
set u=CreateUnit(p,'ndgt',1344.0,-4416.0,270.000)
set p=Player(12)
set udg_unit59=CreateUnit(p,'N001',6862.1,3916.6,0.000)
call SetHeroLevel(udg_unit59,50,false)
call SetHeroStr(udg_unit59,600,true)
call SetHeroAgi(udg_unit59,400,true)
call SetHeroInt(udg_unit59,400,true)
call UnitAddItemToSlotById(udg_unit59,'I003',0)
call UnitAddItemToSlotById(udg_unit59,'I006',2)
call UnitAddItemToSlotById(udg_unit59,'I00L',3)
call UnitAddItemToSlotById(udg_unit59,'frgd',4)
call UnitAddItemToSlotById(udg_unit59,'hbth',5)
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,udg_unit59,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,udg_unit59,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function Unit000134_DropItems)
set udg_unit39=CreateUnit(p,'Hamg',6480.3,-4573.3,180.000)
call SetHeroLevel(udg_unit39,35,false)
call SetHeroStr(udg_unit39,300,true)
call SetHeroAgi(udg_unit39,200,true)
call SetHeroInt(udg_unit39,350,true)
set life=GetUnitState(udg_unit39,UNIT_STATE_LIFE)
call SetUnitState(udg_unit39,UNIT_STATE_LIFE,0.90*life)
call SelectHeroSkill(udg_unit39,'AOhw')
call SelectHeroSkill(udg_unit39,'AOhw')
call SelectHeroSkill(udg_unit39,'AOhw')
call SelectHeroSkill(udg_unit39,'AOhw')
call SelectHeroSkill(udg_unit39,'AOhw')
call SelectHeroSkill(udg_unit39,'AOhw')
call SelectHeroSkill(udg_unit39,'AOhw')
call SelectHeroSkill(udg_unit39,'AOhw')
call SelectHeroSkill(udg_unit39,'AOhw')
call SelectHeroSkill(udg_unit39,'AOhw')
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,udg_unit39,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,udg_unit39,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function Unit000012_DropItems)
set udg_unit56=CreateUnit(p,'U006',6099.6,-790.5,91.520)
call SetHeroLevel(udg_unit56,35,false)
call SetHeroStr(udg_unit56,400,true)
call SetHeroAgi(udg_unit56,400,true)
call SetHeroInt(udg_unit56,400,true)
call SetUnitState(udg_unit56,UNIT_STATE_MANA,0)
call UnitAddItemToSlotById(udg_unit56,'I007',0)
call UnitAddItemToSlotById(udg_unit56,'rwiz',1)
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,udg_unit56,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,udg_unit56,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function Unit000104_DropItems)
set udg_unit34=CreateUnit(p,'U000',5877.4,-832.6,96.780)
call SetHeroLevel(udg_unit34,35,false)
call SetHeroStr(udg_unit34,400,true)
call SetHeroAgi(udg_unit34,400,true)
call SetHeroInt(udg_unit34,400,true)
call SetUnitState(udg_unit34,UNIT_STATE_MANA,0)
call SelectHeroSkill(udg_unit34,'A07Z')
call SelectHeroSkill(udg_unit34,'A07Z')
call SelectHeroSkill(udg_unit34,'A07Z')
call SelectHeroSkill(udg_unit34,'A07Z')
call SelectHeroSkill(udg_unit34,'A07Z')
call SelectHeroSkill(udg_unit34,'A07Z')
call SelectHeroSkill(udg_unit34,'A07Z')
call SelectHeroSkill(udg_unit34,'A07Z')
call SelectHeroSkill(udg_unit34,'A07Z')
call SelectHeroSkill(udg_unit34,'A07Z')
call IssueImmediateOrder(udg_unit34,"")
call UnitAddItemToSlotById(udg_unit34,'modt',0)
call UnitAddItemToSlotById(udg_unit34,'I003',1)
call UnitAddItemToSlotById(udg_unit34,'I007',2)
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,udg_unit34,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,udg_unit34,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function Unit000001_DropItems)
set udg_unit61=CreateUnit(p,'E01Y',-1739.7,6306.3,332.520)
call SetHeroLevel(udg_unit61,50,false)
call SetHeroStr(udg_unit61,400,true)
call SetHeroAgi(udg_unit61,400,true)
call SetHeroInt(udg_unit61,400,true)
set life=GetUnitState(udg_unit61,UNIT_STATE_LIFE)
call SetUnitState(udg_unit61,UNIT_STATE_LIFE,0.80*life)
call SelectHeroSkill(udg_unit61,'A047')
call SelectHeroSkill(udg_unit61,'A047')
call SelectHeroSkill(udg_unit61,'A047')
call SelectHeroSkill(udg_unit61,'A047')
call SelectHeroSkill(udg_unit61,'A047')
call SelectHeroSkill(udg_unit61,'A047')
call SelectHeroSkill(udg_unit61,'A047')
call SelectHeroSkill(udg_unit61,'A047')
call SelectHeroSkill(udg_unit61,'A047')
call SelectHeroSkill(udg_unit61,'A047')
call IssueImmediateOrder(udg_unit61,"")
set udg_unit36=CreateUnit(p,'H00D',-1705.3,6086.5,37.460)
call SetHeroLevel(udg_unit36,50,false)
call SetHeroStr(udg_unit36,350,true)
call SetHeroAgi(udg_unit36,350,true)
call SetHeroInt(udg_unit36,350,true)
call SelectHeroSkill(udg_unit36,'A02E')
call SelectHeroSkill(udg_unit36,'A02E')
call SelectHeroSkill(udg_unit36,'A02E')
call SelectHeroSkill(udg_unit36,'A02E')
call SelectHeroSkill(udg_unit36,'A02E')
call SelectHeroSkill(udg_unit36,'A02E')
call SelectHeroSkill(udg_unit36,'A02E')
call SelectHeroSkill(udg_unit36,'A02E')
call SelectHeroSkill(udg_unit36,'A02E')
call IssueImmediateOrder(udg_unit36,"")
call UnitAddItemToSlotById(udg_unit36,'I00K',0)
set udg_unit41=CreateUnit(p,'U00C',5562.0,-4853.2,20.000)
call SetHeroLevel(udg_unit41,35,false)
call SetHeroStr(udg_unit41,250,true)
call SetHeroAgi(udg_unit41,200,true)
call SetHeroInt(udg_unit41,200,true)
set life=GetUnitState(udg_unit41,UNIT_STATE_LIFE)
call SetUnitState(udg_unit41,UNIT_STATE_LIFE,0.80*life)
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,udg_unit41,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,udg_unit41,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function Unit000026_DropItems)
set u=CreateUnit(p,'uabo',2009.8,304.5,351.890)
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function Unit000028_DropItems)
set u=CreateUnit(p,'uabo',2042.7,-185.3,304.080)
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function Unit000132_DropItems)
set u=CreateUnit(p,'uabo',2030.9,61.3,199.190)
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function Unit000062_DropItems)
set u=CreateUnit(p,'uabo',-763.8,-778.2,351.890)
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function Unit000047_DropItems)
set u=CreateUnit(p,'uabo',-374.8,-1299.5,304.080)
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function Unit000052_DropItems)
set u=CreateUnit(p,'uabo',-715.3,2456.9,199.190)
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function Unit000173_DropItems)
set u=CreateUnit(p,'uabo',-235.9,2720.2,351.892)
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function Unit000106_DropItems)
set u=CreateUnit(p,'uabo',-462.4,2602.6,304.078)
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function Unit000107_DropItems)
set u=CreateUnit(p,'uabo',-580.0,-949.8,274.030)
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function Unit000058_DropItems)
set udg_unit48=CreateUnit(p,'U006',5993.1,-3928.4,258.960)
call SetHeroLevel(udg_unit48,35,false)
call SetHeroStr(udg_unit48,320,true)
call SetHeroAgi(udg_unit48,250,true)
call SetHeroInt(udg_unit48,500,true)
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,udg_unit48,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,udg_unit48,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function Unit000055_DropItems)
set p=Player(15)
set udg_unit66=CreateUnit(p,'H00D',-5227.1,-5639.7,270.000)
call SetUnitState(udg_unit66,UNIT_STATE_MANA,280)
set udg_unit65=CreateUnit(p,'H035',-4940.0,-5664.6,246.258)
call SetUnitState(udg_unit65,UNIT_STATE_MANA,285)
set udg_unit72=CreateUnit(p,'H002',-5064.2,-6323.5,259.187)
call SetUnitState(udg_unit72,UNIT_STATE_MANA,195)
set udg_unit86=CreateUnit(p,'O000',-5481.4,-6206.5,241.650)
set udg_unit46=CreateUnit(p,'U000',-6136.8,-5950.9,259.730)
call SetUnitState(udg_unit46,UNIT_STATE_MANA,270)
set udg_unit73=CreateUnit(p,'H02P',-6063.2,-6165.5,267.627)
call SetUnitState(udg_unit73,UNIT_STATE_MANA,315)
set udg_unit70=CreateUnit(p,'O006',-4895.5,-6350.8,217.852)
call SetUnitState(udg_unit70,UNIT_STATE_MANA,240)
set udg_unit63=CreateUnit(p,'E00V',-5094.8,-6210.4,269.740)
call SetUnitState(udg_unit63,UNIT_STATE_MANA,225)
set u=CreateUnit(p,'necr',836.2,-1041.1,128.028)
set udg_unit74=CreateUnit(p,'O001',-4904.0,-6243.2,231.570)
call SetUnitState(udg_unit74,UNIT_STATE_MANA,345)
set udg_unit75=CreateUnit(p,'H000',-5230.6,-6282.8,271.690)
call SetUnitState(udg_unit75,UNIT_STATE_MANA,225)
set udg_unit62=CreateUnit(p,'N001',-5556.7,-5528.5,248.810)
set udg_unit43=CreateUnit(p,'E01Y',-5140.7,-5646.8,270.000)
call SetUnitState(udg_unit43,UNIT_STATE_MANA,330)
set udg_unit76=CreateUnit(p,'U00C',-5749.1,-6004.6,262.682)
call SetUnitState(udg_unit76,UNIT_STATE_MANA,210)
set udg_unit55=CreateUnit(p,'U005',-5622.9,-5523.1,281.219)
call SetUnitState(udg_unit55,UNIT_STATE_MANA,210)
set udg_unit71=CreateUnit(p,'H009',-5015.4,-6212.6,265.782)
call SetUnitState(udg_unit71,UNIT_STATE_MANA,240)
set udg_unit68=CreateUnit(p,'E000',-5767.1,-6186.8,266.066)
call SetUnitState(udg_unit68,UNIT_STATE_MANA,225)
set u=CreateUnit(p,'n00A',-23.8,1738.3,338.202)
set u=CreateUnit(p,'n00A',56.0,-660.2,49.110)
set udg_unit81=CreateUnit(p,'U006',-6059.5,-5950.9,258.963)
call SetUnitState(udg_unit81,UNIT_STATE_MANA,315)
set udg_unit64=CreateUnit(p,'H00C',-6098.8,-6248.3,331.990)
call SetUnitState(udg_unit64,UNIT_STATE_MANA,285)
set udg_unit67=CreateUnit(p,'U004',-5850.2,-5496.9,292.676)
call SetUnitState(udg_unit67,UNIT_STATE_MANA,300)
set udg_unit77=CreateUnit(p,'H01Y',-5295.1,-6167.7,265.732)
call SetUnitState(udg_unit77,UNIT_STATE_MANA,195)
set udg_unit78=CreateUnit(p,'H00Y',-5811.2,-6269.6,267.845)
call SetUnitState(udg_unit78,UNIT_STATE_MANA,315)
set u=CreateUnit(p,'necr',-4534.0,-4452.3,255.000)
set u=CreateUnit(p,'n00A',1689.1,372.6,172.513)
set udg_unit52=CreateUnit(p,'Otch',-6150.0,-6163.0,297.930)
set udg_unit60=CreateUnit(p,'H00C',-2617.6,5761.2,266.480)
call SetHeroStr(udg_unit60,99999,true)
call SetHeroAgi(udg_unit60,14,true)
call SetHeroInt(udg_unit60,19,true)
set udg_unit58=CreateUnit(p,'H007',-5411.0,-5595.1,269.600)
call SetUnitState(udg_unit58,UNIT_STATE_MANA,270)
set udg_unit57=CreateUnit(p,'Hvwd',-5348.7,-6288.6,276.470)
call SetUnitState(udg_unit57,UNIT_STATE_MANA,285)
set udg_unit80=CreateUnit(p,'H03D',-5612.0,-6184.6,295.017)
call SetUnitState(udg_unit80,UNIT_STATE_MANA,195)
set udg_unit47=CreateUnit(p,'Hblm',-5541.0,-6266.2,274.190)
call SetUnitState(udg_unit47,UNIT_STATE_MANA,375)
set udg_unit44=CreateUnit(p,'Hmkg',-5876.5,-6230.2,272.339)
call SetUnitState(udg_unit44,UNIT_STATE_MANA,225)
set udg_unit49=CreateUnit(p,'Hamg',-5841.2,-5988.8,261.906)
call SetUnitState(udg_unit49,UNIT_STATE_MANA,240)
set u=CreateUnit(p,'nrac',-1561.6,-1262.2,21.820)
set udg_unit69=CreateUnit(p,'Udea',-5786.6,-5474.9,256.937)
set u=CreateUnit(p,'n000',-1765.6,4113.8,326.117)
set u=CreateUnit(p,'n000',4248.6,827.2,201.819)
set u=CreateUnit(p,'n000',-1456.1,-3046.4,48.217)
set p=Player(3)
set u=CreateUnit(p,'esen',125.1,941.2,337.235)
set u=CreateUnit(p,'esen',125.0,770.6,356.057)
set u=CreateUnit(p,'esen',119.5,582.7,17.402)
set u=CreateUnit(p,'edry',221.0,966.0,317.410)
set u=CreateUnit(p,'edry',218.7,858.0,334.419)
set u=CreateUnit(p,'edry',213.2,733.9,0.989)
set u=CreateUnit(p,'edry',211.0,565.2,33.903)
set u=CreateUnit(p,'espv',-3775.0,313.8,47.920)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',-4270.3,2482.1,58.410)
call SetUnitState(u,UNIT_STATE_MANA,0)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',-3685.4,2031.4,167.470)
call SetUnitState(u,UNIT_STATE_MANA,0)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',-3638.8,-584.9,230.480)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',-4269.9,-952.8,139.430)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',-4808.1,532.0,270.007)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',-4714.3,1004.0,270.007)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',-5129.2,1408.2,270.007)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',-5507.4,310.4,270.007)
call SetUnitState(u,UNIT_STATE_MANA,0)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',-4337.1,1162.1,270.007)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',-4317.0,6.3,270.007)
call SetUnitAcquireRange(u,200.0)
set p=Player(7)
set u=CreateUnit(p,'esen',854.7,1391.5,254.739)
set u=CreateUnit(p,'esen',1012.1,1328.7,235.795)
set u=CreateUnit(p,'esen',1174.5,1215.6,218.390)
set u=CreateUnit(p,'edry',706.7,1308.5,270.354)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'edry',861.6,1264.9,249.964)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'edry',1037.2,1192.9,226.201)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'edry',1169.6,1081.5,205.679)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'espv',3683.1,4441.8,187.510)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',1437.4,5717.2,313.750)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',1582.6,4924.9,98.840)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',2238.8,4304.7,82.360)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',2876.1,4009.1,187.510)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',3669.4,3790.2,241.110)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',4310.3,3782.5,267.350)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',2291.7,4895.3,187.510)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',3339.5,5051.3,187.510)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',2979.8,6357.9,187.510)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',4217.5,5526.7,187.510)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',2878.1,5447.0,187.510)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',3773.0,5311.5,187.510)
call SetUnitAcquireRange(u,200.0)
set p=Player(11)
set u=CreateUnit(p,'esen',795.5,87.8,95.970)
set u=CreateUnit(p,'esen',935.1,170.1,110.013)
set u=CreateUnit(p,'esen',1068.6,224.1,125.867)
set u=CreateUnit(p,'edry',637.3,150.5,80.851)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'espv',1955.3,-3669.6,248.230)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',2393.4,-3514.2,64.380)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',1552.3,-4787.1,64.380)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',980.7,-4901.4,64.380)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',2333.3,-4750.0,64.380)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',3072.8,-4565.4,64.380)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',2505.6,-6159.4,64.380)
call SetUnitState(u,UNIT_STATE_MANA,0)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',3361.0,-5602.0,64.380)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'espv',2553.2,-5455.9,64.380)
call SetUnitAcquireRange(u,200.0)
set u=CreateUnit(p,'edry',753.7,208.7,93.232)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'edry',918.9,294.0,110.715)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'edry',1043.0,349.3,132.132)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'espv',2894.5,-5151.9,64.380)
call SetUnitAcquireRange(u,200.0)
set i=0
set udg_dialog01=DialogCreate()
set i=0
loop
exitwhen(i>10)
set udg_booleans01[i]=false
set udg_groups10[i]=CreateGroup()
set i=i+1
endloop
set i=0
loop
exitwhen(i>500)
set udg_integers01[i]=0
set udg_integers02[i]=0
set udg_groups01[i]=CreateGroup()
set udg_reals01[i]=0
set udg_groups05[i]=CreateGroup()
set i=i+1
endloop
set udg_dialog02=DialogCreate()
set udg_dialog03=DialogCreate()
set i=0
loop
exitwhen(i>1000)
set udg_groups02[i]=CreateGroup()
set udg_forces01[i]=CreateForce()
set udg_booleans02[i]=false
set i=i+1
endloop
set udg_dialog04=DialogCreate()
set i=0
loop
exitwhen(i>12)
set udg_integers11[i]=0
set udg_timers01[i]=CreateTimer()
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_integers12[i]=0
set udg_integers15[i]=0
set udg_integers16[i]=0
set udg_reals05[i]=0
set udg_reals06[i]=0
set udg_reals07[i]=0
set udg_reals08[i]=0
set udg_reals09[i]=0
set udg_integers18[i]=0
set udg_reals10[i]=0
set udg_reals11[i]=0
set udg_booleans05[i]=false
set udg_integers19[i]=0
set udg_reals12[i]=0
set udg_strings01[i]=""
set udg_strings02[i]=""
set i=i+1
endloop
set i=0
loop
exitwhen(i>150)
set udg_groups03[i]=CreateGroup()
set udg_groups04[i]=CreateGroup()
set udg_groups06[i]=CreateGroup()
set udg_groups07[i]=CreateGroup()
set i=i+1
endloop
set i=0
loop
exitwhen(i>15)
set udg_booleans03[i]=false
set udg_booleans04[i]=false
set udg_integers13[i]=0
set udg_integers14[i]=0
set i=i+1
endloop
set udg_dialog05=DialogCreate()
set i=0
loop
exitwhen(i>100)
set udg_reals02[i]=0
set udg_reals03[i]=0
set udg_reals04[i]=0
set udg_groups08[i]=CreateGroup()
set i=i+1
endloop
set i=0
loop
exitwhen(i>9)
set udg_integers17[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>2)
set udg_groups09[i]=CreateGroup()
set i=i+1
endloop
set udg_trigger01=CreateTrigger()
call TriggerAddAction(udg_trigger01,function Trig_BP_Actions)
set udg_trigger02=CreateTrigger()
call TriggerAddAction(udg_trigger02,function Trig_A_Actions)
set udg_trigger03=CreateTrigger()
call TriggerAddAction(udg_trigger03,function Trig_wenben_Actions)
set udg_trigger04=CreateTrigger()
call TriggerAddAction(udg_trigger04,function Trig_wenben2_Actions)
set udg_trigger05=CreateTrigger()
call TriggerAddAction(udg_trigger05,function Trig_wenben3_Actions)
set udg_trigger06=CreateTrigger()
call TriggerAddAction(udg_trigger06,function Trig_RenWu_Actions)
set udg_trigger07=CreateTrigger()
call TriggerAddAction(udg_trigger07,function Trig_InitIcon_Actions)
set udg_trigger08=CreateTrigger()
call TriggerAddAction(udg_trigger08,function Trig_YanSe_Actions)
set udg_trigger09=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger09,udg_rect43)
call TriggerAddCondition(udg_trigger09,Condition(function Trig_JJWAL__JS_______u_Conditions))
call TriggerAddAction(udg_trigger09,function Trig_JJWAL__JS_______u_Actions)
set udg_trigger10=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(0),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(1),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(2),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(4),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(5),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(6),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(8),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(9),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(10),"__",true)
call TriggerAddAction(udg_trigger10,function Trig_DAOJU2_Actions)
set udg_trigger11=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger11,Player(0),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger11,Player(1),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger11,Player(2),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger11,Player(4),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger11,Player(5),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger11,Player(6),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger11,Player(8),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger11,Player(9),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger11,Player(10),"__",true)
call TriggerAddAction(udg_trigger11,function Trig_DAOJU3_Actions)
set udg_trigger12=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger12,Player(0),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger12,Player(1),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger12,Player(2),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger12,Player(4),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger12,Player(5),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger12,Player(6),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger12,Player(8),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger12,Player(9),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger12,Player(10),"__",true)
call TriggerAddAction(udg_trigger12,function Trig_DAOJU4_Actions)
set udg_trigger13=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger13,Player(0),"BT",true)
call TriggerRegisterPlayerChatEvent(udg_trigger13,Player(1),"BT",true)
call TriggerRegisterPlayerChatEvent(udg_trigger13,Player(2),"BT",true)
call TriggerRegisterPlayerChatEvent(udg_trigger13,Player(4),"BT",true)
call TriggerRegisterPlayerChatEvent(udg_trigger13,Player(5),"BT",true)
call TriggerRegisterPlayerChatEvent(udg_trigger13,Player(6),"BT",true)
call TriggerRegisterPlayerChatEvent(udg_trigger13,Player(8),"BT",true)
call TriggerRegisterPlayerChatEvent(udg_trigger13,Player(9),"BT",true)
call TriggerRegisterPlayerChatEvent(udg_trigger13,Player(10),"BT",true)
call TriggerAddAction(udg_trigger13,function Trig_DAOJU5_Actions)
set udg_trigger14=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger14,Player(4),"____",true)
call TriggerAddCondition(udg_trigger14,Condition(function Trig_caipan_Conditions))
call TriggerAddAction(udg_trigger14,function Trig_caipan_Actions)
set udg_trigger15=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(0),"__",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(1),"__",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(2),"__",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(4),"__",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(5),"__",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(6),"__",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(8),"__",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(9),"__",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(10),"__",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(0),"__",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(1),"__",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(2),"__",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(4),"__",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(5),"__",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(6),"__",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(8),"__",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(9),"__",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(10),"__",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(0),"SB",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(0),"SB",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(1),"SB",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(2),"SB",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(4),"SB",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(5),"SB",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(6),"SB",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(8),"SB",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(9),"SB",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(10),"_",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(1),"_",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(2),"_",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(4),"_",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(5),"_",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(6),"_",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(8),"_",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(9),"_",false)
call TriggerRegisterPlayerChatEvent(udg_trigger15,Player(10),"_",false)
call TriggerAddAction(udg_trigger15,function Trig_zanghuaxianzhi_Actions)
set udg_trigger16=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger16,udg_rect23)
call TriggerAddCondition(udg_trigger16,Condition(function Trig_chujue_Conditions))
call TriggerAddAction(udg_trigger16,function Trig_chujue_Actions)
set udg_trigger17=CreateTrigger()
call DisableTrigger(udg_trigger17)
call TriggerRegisterPlayerChatEvent(udg_trigger17,Player(0),"-Del",true)
call TriggerAddAction(udg_trigger17,function Trig_Del_1_Actions)
set udg_trigger18=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger18,40.00)
call TriggerAddAction(udg_trigger18,function Trig_Del_2_Actions)
set udg_trigger19=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger19,0.00)
call TriggerAddAction(udg_trigger19,function Trig_chushihua_Actions)
set udg_trigger20=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger20,0.00)
call TriggerAddAction(udg_trigger20,function Trig_paihangbang_Actions)
set udg_trigger21=CreateTrigger()
call TriggerRegisterPlayerEventLeave(udg_trigger21,Player(0))
call TriggerRegisterPlayerEventLeave(udg_trigger21,Player(1))
call TriggerRegisterPlayerEventLeave(udg_trigger21,Player(2))
call TriggerRegisterPlayerEventLeave(udg_trigger21,Player(3))
call TriggerRegisterPlayerEventLeave(udg_trigger21,Player(4))
call TriggerRegisterPlayerEventLeave(udg_trigger21,Player(5))
call TriggerRegisterPlayerEventLeave(udg_trigger21,Player(6))
call TriggerRegisterPlayerEventLeave(udg_trigger21,Player(7))
call TriggerRegisterPlayerEventLeave(udg_trigger21,Player(8))
call TriggerRegisterPlayerEventLeave(udg_trigger21,Player(9))
call TriggerRegisterPlayerEventLeave(udg_trigger21,Player(10))
call TriggerRegisterPlayerEventLeave(udg_trigger21,Player(11))
call TriggerAddAction(udg_trigger21,function Trig_xiugai_Actions)
set udg_trigger22=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger22,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger22,Condition(function Trig_xiugai2_Conditions))
call TriggerAddAction(udg_trigger22,function Trig_xiugai2_Actions)
set udg_trigger23=CreateTrigger()
call TriggerRegisterPlayerEventEndCinematic(udg_trigger23,Player(0))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger23,Player(1))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger23,Player(2))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger23,Player(4))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger23,Player(5))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger23,Player(6))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger23,Player(8))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger23,Player(9))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger23,Player(10))
call TriggerAddAction(udg_trigger23,function Trig_clean_Actions)
set udg_trigger24=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger24,400.00)
call TriggerAddAction(udg_trigger24,function Trig_tishi_Actions)
set udg_trigger25=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger25,Player(0),"_____",true)
call TriggerRegisterPlayerChatEvent(udg_trigger25,Player(1),"_____",true)
call TriggerRegisterPlayerChatEvent(udg_trigger25,Player(2),"_____",true)
call TriggerRegisterPlayerChatEvent(udg_trigger25,Player(4),"_____",true)
call TriggerRegisterPlayerChatEvent(udg_trigger25,Player(5),"_____",true)
call TriggerRegisterPlayerChatEvent(udg_trigger25,Player(6),"_____",true)
call TriggerRegisterPlayerChatEvent(udg_trigger25,Player(8),"_____",true)
call TriggerRegisterPlayerChatEvent(udg_trigger25,Player(9),"_____",true)
call TriggerRegisterPlayerChatEvent(udg_trigger25,Player(10),"_____",true)
call TriggerAddAction(udg_trigger25,function Trig_tishi_______u_Actions)
set udg_trigger26=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger26,Player(0),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger26,Player(1),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger26,Player(2),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger26,Player(4),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger26,Player(5),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger26,Player(6),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger26,Player(8),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger26,Player(9),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger26,Player(10),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger26,Player(0),"Help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger26,Player(1),"Help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger26,Player(2),"Help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger26,Player(3),"Help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger26,Player(4),"Help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger26,Player(5),"Help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger26,Player(6),"Help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger26,Player(7),"Help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger26,Player(8),"Help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger26,Player(9),"Help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger26,Player(10),"Help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger26,Player(11),"Help",true)
call TriggerAddAction(udg_trigger26,function Trig_Help_Actions)
set udg_trigger27=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger27,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger27,Condition(function Trig_AB_Conditions))
call TriggerAddAction(udg_trigger27,function Trig_AB_Actions)
set udg_trigger28=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger28,600.00)
call TriggerAddAction(udg_trigger28,function Trig_junduishengji_Actions)
set udg_trigger29=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger29,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger29,Condition(function Trig_fuhuo1_Conditions))
call TriggerAddAction(udg_trigger29,function Trig_fuhuo1_Actions)
set udg_trigger30=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger30,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger30,Condition(function Trig_deaded_Conditions))
call TriggerAddAction(udg_trigger30,function Trig_deaded_Actions)
set udg_trigger31=CreateTrigger()
call TriggerRegisterPlayerEventLeave(udg_trigger31,Player(0))
call TriggerRegisterPlayerEventLeave(udg_trigger31,Player(1))
call TriggerRegisterPlayerEventLeave(udg_trigger31,Player(2))
call TriggerRegisterPlayerEventLeave(udg_trigger31,Player(4))
call TriggerRegisterPlayerEventLeave(udg_trigger31,Player(5))
call TriggerRegisterPlayerEventLeave(udg_trigger31,Player(6))
call TriggerRegisterPlayerEventLeave(udg_trigger31,Player(8))
call TriggerRegisterPlayerEventLeave(udg_trigger31,Player(9))
call TriggerRegisterPlayerEventLeave(udg_trigger31,Player(10))
call TriggerAddAction(udg_trigger31,function Trig_out_Actions)
set udg_trigger32=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger32,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger32,Condition(function Trig_Skill_Conditions))
call TriggerAddAction(udg_trigger32,function Trig_Skill_Actions)
set udg_trigger33=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(0),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(1),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(2),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(4),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(5),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(6),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(8),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(9),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(10),"__",true)
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(0),"KILLME",true)
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(1),"KILLME",true)
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(2),"KILLME",true)
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(3),"KILLME",true)
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(4),"KILLME",true)
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(5),"KILLME",true)
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(6),"KILLME",true)
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(7),"KILLME",true)
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(8),"KILLME",true)
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(9),"KILLME",true)
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(10),"KILLME",true)
call TriggerRegisterPlayerChatEvent(udg_trigger33,Player(11),"KILLME",true)
call TriggerAddAction(udg_trigger33,function Trig_Kill_Actions)
set udg_trigger34=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger34,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger34,Condition(function Trig_SBTJ_Conditions))
call TriggerAddAction(udg_trigger34,function Trig_SBTJ_Actions)
set udg_trigger35=CreateTrigger()
call DisableTrigger(udg_trigger35)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger35,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger35,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger35,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger35,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger35,Player(5),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger35,Player(6),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger35,Player(8),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger35,Player(9),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger35,Player(10),true)
call TriggerAddCondition(udg_trigger35,Condition(function Trig_choose_Conditions))
call TriggerAddAction(udg_trigger35,function Trig_choose_Actions)
set udg_trigger36=CreateTrigger()
call DisableTrigger(udg_trigger36)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(0),"____",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(1),"____",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(2),"____",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(3),"____",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(4),"____",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(5),"____",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(6),"____",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(7),"____",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(8),"____",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(9),"____",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(10),"____",true)
call TriggerRegisterPlayerChatEvent(udg_trigger36,Player(11),"____",true)
call TriggerAddCondition(udg_trigger36,Condition(function Trig_choose2_Conditions))
call TriggerAddAction(udg_trigger36,function Trig_choose2_Actions)
set udg_trigger37=CreateTrigger()
call DisableTrigger(udg_trigger37)
call TriggerRegisterTimerEventPeriodic(udg_trigger37,0.03)
call TriggerAddCondition(udg_trigger37,Condition(function Trig_D_Conditions))
call TriggerAddAction(udg_trigger37,function Trig_D_Actions)
set udg_trigger38=CreateTrigger()
call DisableTrigger(udg_trigger38)
call TriggerRegisterTimerEventPeriodic(udg_trigger38,0.03)
call TriggerAddAction(udg_trigger38,function Trig_J_Actions)
set udg_trigger39=CreateTrigger()
call TriggerRegisterDialogEvent(udg_trigger39,udg_dialog01)
call TriggerAddAction(udg_trigger39,function Trig_B_Actions)
set udg_trigger40=CreateTrigger()
call TriggerRegisterDialogEvent(udg_trigger40,udg_dialog05)
call TriggerAddCondition(udg_trigger40,Condition(function Trig_K_Conditions))
call TriggerAddAction(udg_trigger40,function Trig_K_Actions)
set udg_trigger41=CreateTrigger()
call DisableTrigger(udg_trigger41)
call TriggerRegisterTimerEventPeriodic(udg_trigger41,0.03)
call TriggerAddCondition(udg_trigger41,Condition(function Trig_renwuxuanze_Conditions))
call TriggerAddAction(udg_trigger41,function Trig_renwuxuanze_Actions)
set udg_trigger42=CreateTrigger()
call TriggerRegisterDialogEvent(udg_trigger42,udg_dialog02)
call TriggerAddCondition(udg_trigger42,Condition(function Trig_E_Conditions))
call TriggerAddAction(udg_trigger42,function Trig_E_Actions)
set udg_trigger43=CreateTrigger()
call TriggerRegisterDialogEvent(udg_trigger43,udg_dialog04)
call TriggerAddCondition(udg_trigger43,Condition(function Trig_F_Conditions))
call TriggerAddAction(udg_trigger43,function Trig_F_Actions)
set udg_trigger44=CreateTrigger()
call DisableTrigger(udg_trigger44)
call TriggerRegisterTimerExpireEvent(udg_trigger44,udg_timer02)
call TriggerAddAction(udg_trigger44,function Trig_H_Actions)
set udg_trigger45=CreateTrigger()
call TriggerRegisterDestDeathInRegionEvent(udg_trigger45,GetWorldBounds())
call TriggerAddAction(udg_trigger45,function Trig_fhshumu_Actions)
set udg_trigger46=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger46,udg_rect18)
call TriggerAddCondition(udg_trigger46,Condition(function Trig_qkdtc_Conditions))
call TriggerAddAction(udg_trigger46,function Trig_qkdtc_Actions)
set udg_trigger47=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger47,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_trigger47,Condition(function Trig_qkcd_Conditions))
call TriggerAddAction(udg_trigger47,function Trig_qkcd_Actions)
set udg_trigger48=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger48,udg_rect31)
call TriggerAddCondition(udg_trigger48,Condition(function Trig_JJWAL__JS_Conditions))
call TriggerAddAction(udg_trigger48,function Trig_JJWAL__JS_Actions)
set udg_trigger49=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger49,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger49,Condition(function Trig_JJWAL2_Conditions))
call TriggerAddAction(udg_trigger49,function Trig_JJWAL2_Actions)
set udg_trigger50=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger50,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger50,Condition(function Trig_JJWAL2_SB_Conditions))
call TriggerAddAction(udg_trigger50,function Trig_JJWAL2_SB_Actions)
set udg_trigger51=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger51,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger51,Condition(function Trig_JJWAL2_2_Conditions))
call TriggerAddAction(udg_trigger51,function Trig_JJWAL2_2_Actions)
set udg_trigger52=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger52,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger52,function Trig_JJWAL3_Actions)
set udg_trigger53=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger53,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_trigger53,Condition(function Trig_JJWAL1_Conditions))
call TriggerAddAction(udg_trigger53,function Trig_JJWAL1_Actions)
set udg_trigger54=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger54,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger54,Condition(function Trig_JS_Conditions))
call TriggerAddAction(udg_trigger54,function Trig_JS_Actions)
set udg_trigger55=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger55,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger55,Condition(function Trig_JS_2_Conditions))
call TriggerAddAction(udg_trigger55,function Trig_JS_2_Actions)
set udg_trigger56=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger56,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_trigger56,Condition(function Trig_JS_3_Conditions))
call TriggerAddAction(udg_trigger56,function Trig_JS_3_Actions)
set udg_trigger57=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger57,udg_rect27)
call TriggerAddCondition(udg_trigger57,Condition(function Trig_JS_4_Conditions))
call TriggerAddAction(udg_trigger57,function Trig_JS_4_Actions)
set udg_trigger58=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger58,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_trigger58,Condition(function Trig_qkcd_2_Conditions))
call TriggerAddAction(udg_trigger58,function Trig_qkcd_2_Actions)
set udg_trigger59=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger59,udg_rect39)
call TriggerAddCondition(udg_trigger59,Condition(function Trig_qkdtc_2_2_Conditions))
call TriggerAddAction(udg_trigger59,function Trig_qkdtc_2_2_Actions)
set udg_trigger60=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger60,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger60,Condition(function Trig_DC_q_Conditions))
call TriggerAddAction(udg_trigger60,function Trig_DC_q_Actions)
set udg_trigger61=CreateTrigger()
call DisableTrigger(udg_trigger61)
call TriggerRegisterTimerEventPeriodic(udg_trigger61,0.04)
call TriggerAddAction(udg_trigger61,function Trig_DC_q2_Actions)
set udg_trigger62=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger62,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger62,Condition(function Trig_DC_w_Conditions))
call TriggerAddAction(udg_trigger62,function Trig_DC_w_Actions)
set udg_trigger63=CreateTrigger()
call DisableTrigger(udg_trigger63)
call TriggerRegisterTimerEventPeriodic(udg_trigger63,0.10)
call TriggerAddAction(udg_trigger63,function Trig_DC_w2_Actions)
set udg_trigger64=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger64,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger64,Condition(function Trig_DC_e_Conditions))
call TriggerAddAction(udg_trigger64,function Trig_DC_e_Actions)
set udg_trigger65=CreateTrigger()
call DisableTrigger(udg_trigger65)
call TriggerRegisterTimerEventPeriodic(udg_trigger65,0.04)
call TriggerAddAction(udg_trigger65,function Trig_DC_e2_Actions)
set udg_trigger66=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger66,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger66,Condition(function Trig_DC_r_Conditions))
call TriggerAddAction(udg_trigger66,function Trig_DC_r_Actions)
set udg_trigger67=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger67,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger67,Condition(function Trig_DC_t_Conditions))
call TriggerAddAction(udg_trigger67,function Trig_DC_t_Actions)
set udg_trigger68=CreateTrigger()
call DisableTrigger(udg_trigger68)
call TriggerRegisterTimerEventPeriodic(udg_trigger68,0.04)
call TriggerAddAction(udg_trigger68,function Trig_DC_t2_Actions)
set udg_trigger69=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger69,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger69,Condition(function Trig_HeroHyugaHinata0_Conditions))
call TriggerAddAction(udg_trigger69,function Trig_HeroHyugaHinata0_Actions)
set udg_trigger70=CreateTrigger()
call DisableTrigger(udg_trigger70)
call TriggerRegisterTimerEventPeriodic(udg_trigger70,0.03)
call TriggerAddAction(udg_trigger70,function Trig_HeroHyugaHinata0Effect_Actions)
set udg_trigger71=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger71,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger71,Condition(function Trig_bailongtianwu_Conditions))
call TriggerAddAction(udg_trigger71,function Trig_bailongtianwu_Actions)
set udg_trigger72=CreateTrigger()
call DisableTrigger(udg_trigger72)
call TriggerRegisterTimerEventPeriodic(udg_trigger72,0.03)
call TriggerAddAction(udg_trigger72,function Trig_mubiaoyidong_Actions)
set udg_trigger73=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger73,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger73,Condition(function Trig_tsts_Conditions))
call TriggerAddAction(udg_trigger73,function Trig_tsts_Actions)
set udg_trigger74=CreateTrigger()
call DisableTrigger(udg_trigger74)
call TriggerRegisterTimerEventPeriodic(udg_trigger74,0.03)
call TriggerAddAction(udg_trigger74,function Trig_ts2_Actions)
set udg_trigger75=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger75,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger75,Condition(function Trig_ts3_Conditions))
call TriggerAddAction(udg_trigger75,function Trig_ts3_Actions)
set udg_trigger76=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger76,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger76,Condition(function Trig_ddtp_Conditions))
call TriggerAddAction(udg_trigger76,function Trig_ddtp_Actions)
set udg_trigger77=CreateTrigger()
call DisableTrigger(udg_trigger77)
call TriggerRegisterTimerEventPeriodic(udg_trigger77,0.03)
call TriggerAddAction(udg_trigger77,function Trig_dtp2_Actions)
set udg_trigger78=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger78,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger78,Condition(function Trig_shbg64z_Conditions))
call TriggerAddAction(udg_trigger78,function Trig_shbg64z_Actions)
set udg_trigger79=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger79,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger79,Condition(function Trig_shabolao_Conditions))
call TriggerAddAction(udg_trigger79,function Trig_shabolao_Actions)
set udg_trigger80=CreateTrigger()
call DisableTrigger(udg_trigger80)
call TriggerRegisterTimerEventPeriodic(udg_trigger80,0.03)
call TriggerAddAction(udg_trigger80,function Trig_shabolao2_Actions)
set udg_trigger81=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger81,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger81,Condition(function Trig_shzm1_Conditions))
call TriggerAddAction(udg_trigger81,function Trig_shzm1_Actions)
set udg_trigger82=CreateTrigger()
call DisableTrigger(udg_trigger82)
call TriggerRegisterTimerEventPeriodic(udg_trigger82,0.03)
call TriggerAddAction(udg_trigger82,function Trig_shzm2_Actions)
set udg_trigger83=CreateTrigger()
call DisableTrigger(udg_trigger83)
call TriggerRegisterTimerEventPeriodic(udg_trigger83,0.02)
call TriggerAddAction(udg_trigger83,function Trig_jitui_Actions)
set udg_trigger84=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger84,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger84,Condition(function Trig_shebao_Conditions))
call TriggerAddAction(udg_trigger84,function Trig_shebao_Actions)
set udg_trigger85=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger85,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger85,Condition(function Trig_shebao_3_Conditions))
call TriggerAddAction(udg_trigger85,function Trig_shebao_3_Actions)
set udg_trigger86=CreateTrigger()
call DisableTrigger(udg_trigger86)
call TriggerRegisterTimerEventPeriodic(udg_trigger86,0.03)
call TriggerAddAction(udg_trigger86,function Trig_xuanzhuan_Actions)
set udg_trigger87=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger87,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger87,Condition(function Trig_tssy_Conditions))
call TriggerAddAction(udg_trigger87,function Trig_tssy_Actions)
set udg_trigger88=CreateTrigger()
call DisableTrigger(udg_trigger88)
call TriggerRegisterTimerEventPeriodic(udg_trigger88,0.03)
call TriggerAddAction(udg_trigger88,function Trig_tssyfb_Actions)
set udg_trigger89=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger89,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger89,Condition(function Trig_phcj_Conditions))
call TriggerAddAction(udg_trigger89,function Trig_phcj_Actions)
set udg_trigger90=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger90,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger90,Condition(function Trig_cfss_Conditions))
call TriggerAddAction(udg_trigger90,function Trig_cfss_Actions)
set udg_trigger91=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger91,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger91,Condition(function Trig_cbzs_Conditions))
call TriggerAddAction(udg_trigger91,function Trig_cbzs_Actions)
set udg_trigger92=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger92,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger92,Condition(function Trig_phclh_Conditions))
call TriggerAddAction(udg_trigger92,function Trig_phclh_Actions)
set udg_trigger93=CreateTrigger()
call DisableTrigger(udg_trigger93)
call TriggerRegisterTimerEventPeriodic(udg_trigger93,0.05)
call TriggerAddAction(udg_trigger93,function Trig_phclh2_Actions)
set udg_trigger94=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger94,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger94,Condition(function Trig_jfc_s_Conditions))
call TriggerAddAction(udg_trigger94,function Trig_jfc_s_Actions)
set udg_trigger95=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger95,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger95,Condition(function Trig_jfc_x_Conditions))
call TriggerAddAction(udg_trigger95,function Trig_jfc_x_Actions)
set udg_trigger96=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger96,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger96,Condition(function Trig_xielunyandegongji_Conditions))
call TriggerAddAction(udg_trigger96,function Trig_xielunyandegongji_Actions)
set udg_trigger97=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger97,udg_unit71,EVENT_UNIT_DAMAGED)
call TriggerAddCondition(udg_trigger97,Condition(function Trig_xielunyanfangyu_Conditions))
call TriggerAddAction(udg_trigger97,function Trig_xielunyanfangyu_Actions)
set udg_trigger98=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger98,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger98,Condition(function Trig_phclh_______u_Conditions))
call TriggerAddAction(udg_trigger98,function Trig_phclh_______u_Actions)
set udg_trigger99=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger99,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger99,Condition(function Trig_QN1s_Conditions))
call TriggerAddAction(udg_trigger99,function Trig_QN1s_Actions)
set udg_trigger100=CreateTrigger()
call DisableTrigger(udg_trigger100)
call TriggerRegisterTimerEventPeriodic(udg_trigger100,0.03)
call TriggerAddAction(udg_trigger100,function Trig_QN1s2_Actions)
set udg_trigger101=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger101,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger101,Condition(function Trig_QN2liantu_Conditions))
call TriggerAddAction(udg_trigger101,function Trig_QN2liantu_Actions)
set udg_trigger102=CreateTrigger()
call DisableTrigger(udg_trigger102)
call TriggerRegisterTimerEventPeriodic(udg_trigger102,0.03)
call TriggerAddAction(udg_trigger102,function Trig_QN2liantu2_Actions)
set udg_trigger103=CreateTrigger()
call DisableTrigger(udg_trigger103)
call TriggerRegisterTimerEventPeriodic(udg_trigger103,0.04)
call TriggerAddAction(udg_trigger103,function Trig_QN2liantu3_Actions)
set udg_trigger104=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger104,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger104,Condition(function Trig_poleisui_Conditions))
call TriggerAddAction(udg_trigger104,function Trig_poleisui_Actions)
set udg_trigger105=CreateTrigger()
call DisableTrigger(udg_trigger105)
call TriggerRegisterTimerEventPeriodic(udg_trigger105,0.02)
call TriggerAddAction(udg_trigger105,function Trig_poleisui_2_Actions)
set udg_trigger106=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger106,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger106,Condition(function Trig_tuduntuliubi_Conditions))
call TriggerAddAction(udg_trigger106,function Trig_tuduntuliubi_Actions)
set udg_trigger107=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger107,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger107,Condition(function Trig_wscfml_Conditions))
call TriggerAddAction(udg_trigger107,function Trig_wscfml_Actions)
set udg_trigger108=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger108,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger108,Condition(function Trig_cswhs_Conditions))
call TriggerAddAction(udg_trigger108,function Trig_cswhs_Actions)
set udg_trigger109=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger109,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger109,Condition(function Trig_cswhh_Conditions))
call TriggerAddAction(udg_trigger109,function Trig_cswhh_Actions)
set udg_trigger110=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger110,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger110,Condition(function Trig_cswhh2_Conditions))
call TriggerAddAction(udg_trigger110,function Trig_cswhh2_Actions)
set udg_trigger111=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger111,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger111,Condition(function Trig_swcs_Conditions))
call TriggerAddAction(udg_trigger111,function Trig_swcs_Actions)
set udg_trigger112=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger112,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger112,Condition(function Trig_chaoshouweihuafeishe_Conditions))
call TriggerAddAction(udg_trigger112,function Trig_chaoshouweihuafeishe_Actions)
set udg_trigger113=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger113,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger113,Condition(function Trig_lk_Conditions))
call TriggerAddAction(udg_trigger113,function Trig_lk_Actions)
set udg_trigger114=CreateTrigger()
call DisableTrigger(udg_trigger114)
call TriggerRegisterTimerEventPeriodic(udg_trigger114,0.01)
call TriggerAddAction(udg_trigger114,function Trig_lk1_Actions)
set udg_trigger115=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger115,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger115,Condition(function Trig_lk2_Conditions))
call TriggerAddAction(udg_trigger115,function Trig_lk2_Actions)
set udg_trigger116=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger116,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger116,Condition(function Trig_ljssd_Conditions))
call TriggerAddAction(udg_trigger116,function Trig_ljssd_Actions)
set udg_trigger117=CreateTrigger()
call DisableTrigger(udg_trigger117)
call TriggerRegisterTimerEventPeriodic(udg_trigger117,0.04)
call TriggerAddAction(udg_trigger117,function Trig_ljssd2_Actions)
set udg_trigger118=CreateTrigger()
call DisableTrigger(udg_trigger118)
call TriggerRegisterTimerEventPeriodic(udg_trigger118,0.03)
call TriggerAddAction(udg_trigger118,function Trig_ljssd3_Actions)
set udg_trigger119=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger119,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger119,Condition(function Trig_nxbfzj_Conditions))
call TriggerAddAction(udg_trigger119,function Trig_nxbfzj_Actions)
set udg_trigger120=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger120,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger120,Condition(function Trig_ssq_Conditions))
call TriggerAddAction(udg_trigger120,function Trig_ssq_Actions)
set udg_trigger121=CreateTrigger()
call DisableTrigger(udg_trigger121)
call TriggerRegisterTimerEventPeriodic(udg_trigger121,0.04)
call TriggerAddAction(udg_trigger121,function Trig_ssq3_Actions)
set udg_trigger122=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger122,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger122,Condition(function Trig_yhxw_Conditions))
call TriggerAddAction(udg_trigger122,function Trig_yhxw_Actions)
set udg_trigger123=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger123,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger123,Condition(function Trig_yhxw2_Conditions))
call TriggerAddAction(udg_trigger123,function Trig_yhxw2_Actions)
set udg_trigger124=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger124,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger124,Condition(function Trig_yhxw3_Conditions))
call TriggerAddAction(udg_trigger124,function Trig_yhxw3_Actions)
set udg_trigger125=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger125,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger125,Condition(function Trig_QNL_Conditions))
call TriggerAddAction(udg_trigger125,function Trig_QNL_Actions)
set udg_trigger126=CreateTrigger()
call DisableTrigger(udg_trigger126)
call TriggerRegisterTimerEventPeriodic(udg_trigger126,0.15)
call TriggerAddAction(udg_trigger126,function Trig_QNL2_Actions)
set udg_trigger127=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger127,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger127,Condition(function Trig_QNLSH_Conditions))
call TriggerAddAction(udg_trigger127,function Trig_QNLSH_Actions)
set udg_trigger128=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger128,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger128,Condition(function Trig_xuyaosiwanghoushanchudedanwei_Conditions))
call TriggerAddAction(udg_trigger128,function Trig_xuyaosiwanghoushanchudedanwei_Actions)
set udg_trigger129=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger129,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger129,Condition(function Trig_sblx_mz_Conditions))
call TriggerAddAction(udg_trigger129,function Trig_sblx_mz_Actions)
set udg_trigger130=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger130,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger130,Condition(function Trig_slz_Conditions))
call TriggerAddAction(udg_trigger130,function Trig_slz_Actions)
set udg_trigger131=CreateTrigger()
call DisableTrigger(udg_trigger131)
call TriggerRegisterTimerEventPeriodic(udg_trigger131,0.05)
call TriggerAddAction(udg_trigger131,function Trig_slz2_Actions)
set udg_trigger132=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger132,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger132,Condition(function Trig_rq_Conditions))
call TriggerAddAction(udg_trigger132,function Trig_rq_Actions)
set udg_trigger133=CreateTrigger()
call DisableTrigger(udg_trigger133)
call TriggerRegisterTimerEventPeriodic(udg_trigger133,0.05)
call TriggerAddAction(udg_trigger133,function Trig_rq2_Actions)
set udg_trigger134=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger134,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger134,Condition(function Trig_KLZD_Conditions))
call TriggerAddAction(udg_trigger134,function Trig_KLZD_Actions)
set udg_trigger135=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger135,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger135,Condition(function Trig_KLZD_1_Conditions))
call TriggerAddAction(udg_trigger135,function Trig_KLZD_1_Actions)
set udg_trigger136=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger136,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger136,Condition(function Trig_KLZD_2_Conditions))
call TriggerAddAction(udg_trigger136,function Trig_KLZD_2_Actions)
set udg_trigger137=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger137,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger137,Condition(function Trig_qianniao_Conditions))
call TriggerAddAction(udg_trigger137,function Trig_qianniao_Actions)
set udg_trigger138=CreateTrigger()
call DisableTrigger(udg_trigger138)
call TriggerRegisterTimerEventPeriodic(udg_trigger138,0.03)
call TriggerAddAction(udg_trigger138,function Trig_qn2_Actions)
set udg_trigger139=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger139,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger139,Condition(function Trig_huanshufanji_Conditions))
call TriggerAddAction(udg_trigger139,function Trig_huanshufanji_Actions)
set udg_trigger140=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger140,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger140,Condition(function Trig_fss_Conditions))
call TriggerAddAction(udg_trigger140,function Trig_fss_Actions)
set udg_trigger141=CreateTrigger()
call TriggerAddCondition(udg_trigger141,Condition(function Trig_HY2_Conditions))
call TriggerAddAction(udg_trigger141,function Trig_HY2_Actions)
set udg_trigger142=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger142,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger142,Condition(function Trig_haohuoqiu_Conditions))
call TriggerAddAction(udg_trigger142,function Trig_haohuoqiu_Actions)
set udg_trigger143=CreateTrigger()
call DisableTrigger(udg_trigger143)
call TriggerRegisterTimerEventPeriodic(udg_trigger143,0.03)
call TriggerAddAction(udg_trigger143,function Trig_haohuoqiu2_Actions)
set udg_trigger144=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger144,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerRegisterAnyUnitEventBJ(udg_trigger144,EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerAddCondition(udg_trigger144,Condition(function Trig_haohuoqiu3_Conditions))
call TriggerAddAction(udg_trigger144,function Trig_haohuoqiu3_Actions)
set udg_trigger145=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger145,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger145,Condition(function Trig_FSBP_Conditions))
call TriggerAddAction(udg_trigger145,function Trig_FSBP_Actions)
set udg_trigger146=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger146,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger146,Condition(function Trig_FSBP2_Conditions))
call TriggerAddAction(udg_trigger146,function Trig_FSBP2_Actions)
set udg_trigger147=CreateTrigger()
call DisableTrigger(udg_trigger147)
call TriggerRegisterTimerEventPeriodic(udg_trigger147,0.04)
call TriggerAddAction(udg_trigger147,function Trig_FSBP3_Actions)
set udg_trigger148=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger148,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger148,Condition(function Trig_YD_Conditions))
call TriggerAddAction(udg_trigger148,function Trig_YD_Actions)
set udg_trigger149=CreateTrigger()
call DisableTrigger(udg_trigger149)
call TriggerRegisterTimerEventPeriodic(udg_trigger149,0.03)
call TriggerAddAction(udg_trigger149,function Trig_YD2_Actions)
set udg_trigger150=CreateTrigger()
call DisableTrigger(udg_trigger150)
call TriggerRegisterTimerEventPeriodic(udg_trigger150,0.02)
call TriggerAddAction(udg_trigger150,function Trig_YD3_Actions)
set udg_trigger151=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger151,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger151,Condition(function Trig_pm_Conditions))
call TriggerAddAction(udg_trigger151,function Trig_pm_Actions)
set udg_trigger152=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger152,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger152,Condition(function Trig_pm2_Conditions))
call TriggerAddAction(udg_trigger152,function Trig_pm2_Actions)
set udg_trigger153=CreateTrigger()
call DisableTrigger(udg_trigger153)
call TriggerRegisterTimerEventPeriodic(udg_trigger153,0.04)
call TriggerAddAction(udg_trigger153,function Trig_pm3_Actions)
set udg_trigger154=CreateTrigger()
call DisableTrigger(udg_trigger154)
call TriggerRegisterTimerEventPeriodic(udg_trigger154,0.10)
call TriggerAddAction(udg_trigger154,function Trig_pm4_Actions)
set udg_trigger155=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger155,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger155,Condition(function Trig_tz2_Conditions))
call TriggerAddAction(udg_trigger155,function Trig_tz2_Actions)
set udg_trigger156=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger156,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger156,Condition(function Trig_tz3_Conditions))
call TriggerAddAction(udg_trigger156,function Trig_tz3_Actions)
set udg_trigger157=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger157,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerRegisterAnyUnitEventBJ(udg_trigger157,EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerAddCondition(udg_trigger157,Condition(function Trig_tz4_Conditions))
call TriggerAddAction(udg_trigger157,function Trig_tz4_Actions)
set udg_trigger158=CreateTrigger()
call DisableTrigger(udg_trigger158)
call TriggerRegisterTimerEventPeriodic(udg_trigger158,0.25)
call TriggerAddAction(udg_trigger158,function Trig_tz5_Actions)
set udg_trigger159=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger159,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger159,Condition(function Trig_DDL2_Conditions))
call TriggerAddAction(udg_trigger159,function Trig_DDL2_Actions)
set udg_trigger160=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger160,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger160,Condition(function Trig_DDL_Conditions))
call TriggerAddAction(udg_trigger160,function Trig_DDL_Actions)
set udg_trigger161=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger161,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger161,Condition(function Trig_phzm_Conditions))
call TriggerAddAction(udg_trigger161,function Trig_phzm_Actions)
set udg_trigger162=CreateTrigger()
call DisableTrigger(udg_trigger162)
call TriggerRegisterTimerEventPeriodic(udg_trigger162,0.03)
call TriggerAddAction(udg_trigger162,function Trig_phzm2_Actions)
set udg_trigger163=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger163,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger163,Condition(function Trig_HMZM_Conditions))
call TriggerAddAction(udg_trigger163,function Trig_HMZM_Actions)
set udg_trigger164=CreateTrigger()
call DisableTrigger(udg_trigger164)
call TriggerRegisterTimerEventPeriodic(udg_trigger164,0.02)
call TriggerAddAction(udg_trigger164,function Trig_HMZM2_Actions)
set udg_trigger165=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger165,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger165,Condition(function Trig_HMZM3_Conditions))
call TriggerAddAction(udg_trigger165,function Trig_HMZM3_Actions)
set udg_trigger166=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger166,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger166,Condition(function Trig_BZXG1_Conditions))
call TriggerAddAction(udg_trigger166,function Trig_BZXG1_Actions)
set udg_trigger167=CreateTrigger()
call DisableTrigger(udg_trigger167)
call TriggerRegisterTimerEventPeriodic(udg_trigger167,0.05)
call TriggerAddAction(udg_trigger167,function Trig_BZXG2_Actions)
set udg_trigger168=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger168,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger168,Condition(function Trig_DDL_R1_Conditions))
call TriggerAddAction(udg_trigger168,function Trig_DDL_R1_Actions)
set udg_trigger169=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger169,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger169,Condition(function Trig_fl_Conditions))
call TriggerAddAction(udg_trigger169,function Trig_fl_Actions)
set udg_trigger170=CreateTrigger()
call DisableTrigger(udg_trigger170)
call TriggerRegisterTimerEventPeriodic(udg_trigger170,0.04)
call TriggerAddAction(udg_trigger170,function Trig_fl2_Actions)
set udg_trigger171=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger171,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger171,Condition(function Trig_zzxx_Conditions))
call TriggerAddAction(udg_trigger171,function Trig_zzxx_Actions)
set udg_trigger172=CreateTrigger()
call DisableTrigger(udg_trigger172)
call TriggerAddAction(udg_trigger172,function Trig_SH_Actions)
set udg_trigger173=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger173,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger173,Condition(function Trig_ZC_Conditions))
call TriggerAddAction(udg_trigger173,function Trig_ZC_Actions)
set udg_trigger174=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger174,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger174,Condition(function Trig_LZ_Conditions))
call TriggerAddAction(udg_trigger174,function Trig_LZ_Actions)
set udg_trigger175=CreateTrigger()
call DisableTrigger(udg_trigger175)
call TriggerRegisterTimerEventPeriodic(udg_trigger175,0.03)
call TriggerAddAction(udg_trigger175,function Trig_LZ2_Actions)
set udg_trigger176=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger176,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger176,Condition(function Trig_tlwzzk_Conditions))
call TriggerAddAction(udg_trigger176,function Trig_tlwzzk_Actions)
set udg_trigger177=CreateTrigger()
call DisableTrigger(udg_trigger177)
call TriggerRegisterTimerEventPeriodic(udg_trigger177,0.04)
call TriggerAddAction(udg_trigger177,function Trig_tlwzzk2_Actions)
set udg_trigger178=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger178,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger178,Condition(function Trig_fzb_Conditions))
call TriggerAddAction(udg_trigger178,function Trig_fzb_Actions)
set udg_trigger179=CreateTrigger()
call DisableTrigger(udg_trigger179)
call TriggerRegisterTimerEventPeriodic(udg_trigger179,0.03)
call TriggerAddAction(udg_trigger179,function Trig_fzb_2_Actions)
set udg_trigger180=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger180,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger180,Condition(function Trig_flr_Conditions))
call TriggerAddAction(udg_trigger180,function Trig_flr_Actions)
set udg_trigger181=CreateTrigger()
call DisableTrigger(udg_trigger181)
call TriggerRegisterTimerEventPeriodic(udg_trigger181,0.04)
call TriggerAddAction(udg_trigger181,function Trig_flr2_Actions)
set udg_trigger182=CreateTrigger()
call DisableTrigger(udg_trigger182)
call TriggerRegisterTimerEventPeriodic(udg_trigger182,0.01)
call TriggerAddAction(udg_trigger182,function Trig_flr3_Actions)
set udg_trigger183=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger183,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger183,Condition(function Trig_DFYLx_Conditions))
call TriggerAddAction(udg_trigger183,function Trig_DFYLx_Actions)
set udg_trigger184=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger184,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger184,Condition(function Trig_dashanhongbi_Conditions))
call TriggerAddAction(udg_trigger184,function Trig_dashanhongbi_Actions)
set udg_trigger185=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger185,EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerRegisterAnyUnitEventBJ(udg_trigger185,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger185,Condition(function Trig_dacaojue_2_Conditions))
call TriggerAddAction(udg_trigger185,function Trig_dacaojue_2_Actions)
set udg_trigger186=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger186,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger186,Condition(function Trig_dacaojue_Conditions))
call TriggerAddAction(udg_trigger186,function Trig_dacaojue_Actions)
set udg_trigger187=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger187,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger187,Condition(function Trig_jueleichanrao_Conditions))
call TriggerAddAction(udg_trigger187,function Trig_jueleichanrao_Actions)
set udg_trigger188=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger188,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger188,Condition(function Trig_taodun_Conditions))
call TriggerAddAction(udg_trigger188,function Trig_taodun_Actions)
set udg_trigger189=CreateTrigger()
call DisableTrigger(udg_trigger189)
call TriggerRegisterTimerEventPeriodic(udg_trigger189,0.04)
call TriggerAddAction(udg_trigger189,function Trig_taodun_2_Actions)
set udg_trigger190=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger190,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger190,Condition(function Trig_tonglingzhishuyijiezhiwu_Conditions))
call TriggerAddAction(udg_trigger190,function Trig_tonglingzhishuyijiezhiwu_Actions)
set udg_trigger191=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger191,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger191,Condition(function Trig_dacaomangyuan_Conditions))
call TriggerAddAction(udg_trigger191,function Trig_dacaomangyuan_Actions)
set udg_trigger192=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger192,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger192,Condition(function Trig_xuanfengquan_Conditions))
call TriggerAddAction(udg_trigger192,function Trig_xuanfengquan_Actions)
set udg_trigger193=CreateTrigger()
call DisableTrigger(udg_trigger193)
call TriggerRegisterTimerEventPeriodic(udg_trigger193,0.04)
call TriggerAddAction(udg_trigger193,function Trig_xuanfengquan2_Actions)
set udg_trigger194=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger194,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger194,Condition(function Trig_JSCZ_Conditions))
call TriggerAddAction(udg_trigger194,function Trig_JSCZ_Actions)
set udg_trigger195=CreateTrigger()
call DisableTrigger(udg_trigger195)
call TriggerRegisterTimerEventPeriodic(udg_trigger195,0.03)
call TriggerAddAction(udg_trigger195,function Trig_JSCZ_2_Actions)
set udg_trigger196=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger196,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger196,Condition(function Trig_LHCZ_Conditions))
call TriggerAddAction(udg_trigger196,function Trig_LHCZ_Actions)
set udg_trigger197=CreateTrigger()
call DisableTrigger(udg_trigger197)
call TriggerRegisterTimerEventPeriodic(udg_trigger197,0.03)
call TriggerAddAction(udg_trigger197,function Trig_LHCZ2_Actions)
set udg_trigger198=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger198,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger198,Condition(function Trig_DHJZS_Conditions))
call TriggerAddAction(udg_trigger198,function Trig_DHJZS_Actions)
set udg_trigger199=CreateTrigger()
call DisableTrigger(udg_trigger199)
call TriggerRegisterAnyUnitEventBJ(udg_trigger199,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger199,Condition(function Trig_ASMrs_Conditions))
call TriggerAddAction(udg_trigger199,function Trig_ASMrs_Actions)
set udg_trigger200=CreateTrigger()
call DisableTrigger(udg_trigger200)
call TriggerRegisterTimerEventPeriodic(udg_trigger200,0.10)
call TriggerAddAction(udg_trigger200,function Trig_ASMr2_Actions)
set udg_trigger201=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger201,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger201,Condition(function Trig_JSYS_Conditions))
call TriggerAddAction(udg_trigger201,function Trig_JSYS_Actions)
set udg_trigger203=CreateTrigger()
call DisableTrigger(udg_trigger203)
call TriggerRegisterTimerEventPeriodic(udg_trigger203,0.04)
call TriggerAddAction(udg_trigger203,function Trig_qianyingsheshou2_Actions)
set udg_trigger204=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger204,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger204,Condition(function Trig_guimeizhishu_Conditions))
call TriggerAddAction(udg_trigger204,function Trig_guimeizhishu_Actions)
set udg_trigger205=CreateTrigger()
call DisableTrigger(udg_trigger205)
call TriggerRegisterTimerEventPeriodic(udg_trigger205,0.03)
call TriggerAddAction(udg_trigger205,function Trig_guimeizhishu2_Actions)
set udg_trigger206=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger206,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger206,Condition(function Trig_czys_Conditions))
call TriggerAddAction(udg_trigger206,function Trig_czys_Actions)
set udg_trigger207=CreateTrigger()
call DisableTrigger(udg_trigger207)
call TriggerRegisterTimerEventPeriodic(udg_trigger207,0.04)
call TriggerAddAction(udg_trigger207,function Trig_czys2_Actions)
set udg_trigger208=CreateTrigger()
call DisableTrigger(udg_trigger208)
call TriggerRegisterTimerEventPeriodic(udg_trigger208,0.03)
call TriggerAddAction(udg_trigger208,function Trig_czys3_Actions)
set udg_trigger209=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger209,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger209,Condition(function Trig_restA_Conditions))
call TriggerAddAction(udg_trigger209,function Trig_restA_Actions)
set udg_trigger210=CreateTrigger()
call TriggerRegisterTimerExpireEvent(udg_trigger210,udg_timer08)
call TriggerAddAction(udg_trigger210,function Trig_restB_Actions)
set udg_trigger211=CreateTrigger()
call TriggerRegisterTimerExpireEvent(udg_trigger211,udg_timer09)
call TriggerAddAction(udg_trigger211,function Trig_restC_Actions)
set udg_trigger212=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger212,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger212,Condition(function Trig_poshanji_Conditions))
call TriggerAddAction(udg_trigger212,function Trig_poshanji_Actions)
set udg_trigger213=CreateTrigger()
call DisableTrigger(udg_trigger213)
call TriggerRegisterTimerEventPeriodic(udg_trigger213,0.03)
call TriggerAddAction(udg_trigger213,function Trig_poshanji2_Actions)
set udg_trigger214=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger214,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger214,Condition(function Trig_ht_1_Conditions))
call TriggerAddAction(udg_trigger214,function Trig_ht_1_Actions)
set udg_trigger215=CreateTrigger()
call DisableTrigger(udg_trigger215)
call TriggerRegisterTimerEventPeriodic(udg_trigger215,0.04)
call TriggerAddAction(udg_trigger215,function Trig_ht2_1_Actions)
set udg_trigger216=CreateTrigger()
call DisableTrigger(udg_trigger216)
call TriggerRegisterTimerEventPeriodic(udg_trigger216,0.03)
call TriggerAddAction(udg_trigger216,function Trig_bg128_2_Actions)
set udg_trigger217=CreateTrigger()
call DisableTrigger(udg_trigger217)
call TriggerRegisterTimerEventPeriodic(udg_trigger217,0.05)
call TriggerAddAction(udg_trigger217,function Trig_bg128_3_Actions)
set udg_trigger218=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger218,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger218,Condition(function Trig_bg128_Conditions))
call TriggerAddAction(udg_trigger218,function Trig_bg128_Actions)
set udg_trigger219=CreateTrigger()
call DisableTrigger(udg_trigger219)
call TriggerRegisterTimerEventPeriodic(udg_trigger219,0.03)
call TriggerAddAction(udg_trigger219,function Trig_yinfayidong_Actions)
set udg_trigger220=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger220,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger220,Condition(function Trig_CTrxlts_Conditions))
call TriggerAddAction(udg_trigger220,function Trig_CTrxlts_Actions)
set udg_trigger221=CreateTrigger()
call DisableTrigger(udg_trigger221)
call TriggerRegisterUnitEvent(udg_trigger221,udg_unit75,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddAction(udg_trigger221,function Trig_NC_Q_New_Actions)
set udg_trigger223=CreateTrigger()
call DisableTrigger(udg_trigger223)
call TriggerRegisterTimerEventPeriodic(udg_trigger223,0.02)
call TriggerAddAction(udg_trigger223,function Trig_NCq2_Actions)
set udg_trigger224=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger224,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger224,Condition(function Trig_BaGua_1_Conditions))
call TriggerAddAction(udg_trigger224,function Trig_BaGua_1_Actions)
set udg_trigger225=CreateTrigger()
call TriggerRegisterTimerExpireEvent(udg_trigger225,udg_timer04)
call TriggerAddAction(udg_trigger225,function Trig_BaGua_2_Actions)
set udg_trigger226=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger226,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger226,Condition(function Trig_mrfs_Conditions))
call TriggerAddAction(udg_trigger226,function Trig_mrfs_Actions)
set udg_trigger227=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger227,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger227,Condition(function Trig_MRt_Conditions))
call TriggerAddAction(udg_trigger227,function Trig_MRt_Actions)
set udg_trigger228=CreateTrigger()
call DisableTrigger(udg_trigger228)
call TriggerRegisterTimerEventPeriodic(udg_trigger228,0.04)
call TriggerAddAction(udg_trigger228,function Trig_MRt2_Actions)
set udg_trigger229=CreateTrigger()
call DisableTrigger(udg_trigger229)
call TriggerRegisterTimerEventPeriodic(udg_trigger229,0.06)
call TriggerAddAction(udg_trigger229,function Trig_MRt3_Actions)
set udg_trigger230=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger230,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger230,Condition(function Trig_MRq_Conditions))
call TriggerAddAction(udg_trigger230,function Trig_MRq_Actions)
set udg_trigger231=CreateTrigger()
call DisableTrigger(udg_trigger231)
call TriggerRegisterTimerEventPeriodic(udg_trigger231,0.04)
call TriggerAddAction(udg_trigger231,function Trig_MRq2_Actions)
set udg_trigger232=CreateTrigger()
call DisableTrigger(udg_trigger232)
call TriggerRegisterTimerEventPeriodic(udg_trigger232,0.04)
call TriggerAddAction(udg_trigger232,function Trig_MRq3_Actions)
set udg_trigger233=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger233,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger233,Condition(function Trig_MRe_Conditions))
call TriggerAddAction(udg_trigger233,function Trig_MRe_Actions)
set udg_trigger234=CreateTrigger()
call DisableTrigger(udg_trigger234)
call TriggerRegisterTimerEventPeriodic(udg_trigger234,0.03)
call TriggerAddAction(udg_trigger234,function Trig_MRe2_Actions)
set udg_trigger235=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger235,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger235,Condition(function Trig_MRr_Conditions))
call TriggerAddAction(udg_trigger235,function Trig_MRr_Actions)
set udg_trigger236=CreateTrigger()
call DisableTrigger(udg_trigger236)
call TriggerRegisterTimerEventPeriodic(udg_trigger236,0.04)
call TriggerAddAction(udg_trigger236,function Trig_MRr2_Actions)
set udg_trigger237=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger237,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger237,Condition(function Trig_tongya_Conditions))
call TriggerAddAction(udg_trigger237,function Trig_tongya_Actions)
set udg_trigger238=CreateTrigger()
call DisableTrigger(udg_trigger238)
call TriggerRegisterTimerEventPeriodic(udg_trigger238,0.03)
call TriggerAddAction(udg_trigger238,function Trig_tongya2_Actions)
set udg_trigger239=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger239,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger239,Condition(function Trig_tianshuangya_Conditions))
call TriggerAddAction(udg_trigger239,function Trig_tianshuangya_Actions)
set udg_trigger240=CreateTrigger()
call DisableTrigger(udg_trigger240)
call TriggerRegisterTimerEventPeriodic(udg_trigger240,0.04)
call TriggerAddAction(udg_trigger240,function Trig_tianshuangya2_Actions)
set udg_trigger241=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger241,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger241,Condition(function Trig_yashunyazhua_Conditions))
call TriggerAddAction(udg_trigger241,function Trig_yashunyazhua_Actions)
set udg_trigger242=CreateTrigger()
call DisableTrigger(udg_trigger242)
call TriggerRegisterTimerEventPeriodic(udg_trigger242,0.03)
call TriggerAddAction(udg_trigger242,function Trig_yashunyazhua2_Actions)
set udg_trigger243=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger243,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger243,Condition(function Trig_kongyasilie_Conditions))
call TriggerAddAction(udg_trigger243,function Trig_kongyasilie_Actions)
set udg_trigger244=CreateTrigger()
call DisableTrigger(udg_trigger244)
call TriggerRegisterTimerEventPeriodic(udg_trigger244,0.03)
call TriggerAddAction(udg_trigger244,function Trig_kongyasilie2_Actions)
set udg_trigger245=CreateTrigger()
call DisableTrigger(udg_trigger245)
call TriggerRegisterTimerEventPeriodic(udg_trigger245,0.05)
call TriggerAddAction(udg_trigger245,function Trig_kongyasilie3_Actions)
set udg_trigger246=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger246,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger246,Condition(function Trig_xianjing_Conditions))
call TriggerAddAction(udg_trigger246,function Trig_xianjing_Actions)
set udg_trigger247=CreateTrigger()
call DisableTrigger(udg_trigger247)
call TriggerRegisterTimerEventPeriodic(udg_trigger247,0.04)
call TriggerAddAction(udg_trigger247,function Trig_xianjing2_Actions)
set udg_trigger248=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger248,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger248,Condition(function Trig_xianjing3_Conditions))
call TriggerAddAction(udg_trigger248,function Trig_xianjing3_Actions)
set udg_trigger249=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger249,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger249,Condition(function Trig_yingzimofangshu_Conditions))
call TriggerAddAction(udg_trigger249,function Trig_yingzimofangshu_Actions)
set udg_trigger250=CreateTrigger()
call DisableTrigger(udg_trigger250)
call TriggerRegisterTimerEventPeriodic(udg_trigger250,0.04)
call TriggerAddAction(udg_trigger250,function Trig_yingzimofangshu2_Actions)
set udg_trigger251=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger251,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger251,Condition(function Trig_yingzimofangshu3_Conditions))
call TriggerAddAction(udg_trigger251,function Trig_yingzimofangshu3_Actions)
set udg_trigger252=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger252,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger252,Condition(function Trig_yingfeng_Conditions))
call TriggerAddAction(udg_trigger252,function Trig_yingfeng_Actions)
set udg_trigger253=CreateTrigger()
call DisableTrigger(udg_trigger253)
call TriggerRegisterTimerEventPeriodic(udg_trigger253,0.04)
call TriggerAddAction(udg_trigger253,function Trig_yingfeng2_Actions)
set udg_trigger254=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger254,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger254,Condition(function Trig_yingzishufushu_Conditions))
call TriggerAddAction(udg_trigger254,function Trig_yingzishufushu_Actions)
set udg_trigger255=CreateTrigger()
call DisableTrigger(udg_trigger255)
call TriggerRegisterTimerEventPeriodic(udg_trigger255,0.03)
call TriggerAddAction(udg_trigger255,function Trig_yingzishufushu2_Actions)
set udg_trigger256=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger256,EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerRegisterAnyUnitEventBJ(udg_trigger256,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger256,Condition(function Trig_yingzishufushu3_Conditions))
call TriggerAddAction(udg_trigger256,function Trig_yingzishufushu3_Actions)
set udg_trigger257=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger257,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger257,Condition(function Trig_yingyanwuzhishu_Conditions))
call TriggerAddAction(udg_trigger257,function Trig_yingyanwuzhishu_Actions)
set udg_trigger258=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger258,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger258,Condition(function Trig_yingyanwuzhishu2_Conditions))
call TriggerAddAction(udg_trigger258,function Trig_yingyanwuzhishu2_Actions)
set udg_trigger259=CreateTrigger()
call DisableTrigger(udg_trigger259)
call TriggerRegisterTimerEventPeriodic(udg_trigger259,0.03)
call TriggerAddAction(udg_trigger259,function Trig_yingyanwuzhishu3_Actions)
set udg_trigger260=CreateTrigger()
call DisableTrigger(udg_trigger260)
call TriggerRegisterTimerEventPeriodic(udg_trigger260,0.05)
call TriggerAddAction(udg_trigger260,function Trig_yingyanwuzhishu4_Actions)
set udg_trigger261=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger261,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger261,Condition(function Trig_yingyazhangzhishu_Conditions))
call TriggerAddAction(udg_trigger261,function Trig_yingyazhangzhishu_Actions)
set udg_trigger262=CreateTrigger()
call DisableTrigger(udg_trigger262)
call TriggerRegisterTimerEventPeriodic(udg_trigger262,0.04)
call TriggerAddAction(udg_trigger262,function Trig_yingyazhangzhishu2_Actions)
set udg_trigger263=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger263,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger263,Condition(function Trig_bengquan_Conditions))
call TriggerAddAction(udg_trigger263,function Trig_bengquan_Actions)
set udg_trigger264=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger264,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger264,Condition(function Trig_chuangzaozaisheng_Conditions))
call TriggerAddAction(udg_trigger264,function Trig_chuangzaozaisheng_Actions)
set udg_trigger265=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger265,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger265,Condition(function Trig_guailiyiji_Conditions))
call TriggerAddAction(udg_trigger265,function Trig_guailiyiji_Actions)
set udg_trigger266=CreateTrigger()
call DisableTrigger(udg_trigger266)
call TriggerRegisterTimerEventPeriodic(udg_trigger266,0.03)
call TriggerAddAction(udg_trigger266,function Trig_guailiyiji2_Actions)
set udg_trigger267=CreateTrigger()
call DisableTrigger(udg_trigger267)
call TriggerRegisterTimerEventPeriodic(udg_trigger267,0.04)
call TriggerAddAction(udg_trigger267,function Trig_guailiyiji3_Actions)
set udg_trigger268=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger268,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger268,Condition(function Trig_guailitongtianjiao_Conditions))
call TriggerAddAction(udg_trigger268,function Trig_guailitongtianjiao_Actions)
set udg_trigger269=CreateTrigger()
call DisableTrigger(udg_trigger269)
call TriggerRegisterTimerEventPeriodic(udg_trigger269,0.03)
call TriggerAddAction(udg_trigger269,function Trig_guailitongtianjiao2_Actions)
set udg_trigger270=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger270,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger270,Condition(function Trig_HLD_Conditions))
call TriggerAddAction(udg_trigger270,function Trig_HLD_Actions)
set udg_trigger271=CreateTrigger()
call DisableTrigger(udg_trigger271)
call TriggerRegisterTimerEventPeriodic(udg_trigger271,0.03)
call TriggerAddAction(udg_trigger271,function Trig_HLD2_Actions)
set udg_trigger272=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger272,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger272,Condition(function Trig_HYLXW_Conditions))
call TriggerAddAction(udg_trigger272,function Trig_HYLXW_Actions)
set udg_trigger273=CreateTrigger()
call DisableTrigger(udg_trigger273)
call TriggerRegisterTimerEventPeriodic(udg_trigger273,0.03)
call TriggerAddAction(udg_trigger273,function Trig_HYLXW2_Actions)
set udg_trigger274=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger274,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger274,Condition(function Trig_hsbdmw_Conditions))
call TriggerAddAction(udg_trigger274,function Trig_hsbdmw_Actions)
set udg_trigger275=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger275,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger275,Condition(function Trig_HLY_Conditions))
call TriggerAddAction(udg_trigger275,function Trig_HLY_Actions)
set udg_trigger276=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger276,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger276,Condition(function Trig_HLY2_Conditions))
call TriggerAddAction(udg_trigger276,function Trig_HLY2_Actions)
set udg_trigger277=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger277,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger277,Condition(function Trig_xian1_Conditions))
call TriggerAddAction(udg_trigger277,function Trig_xian1_Actions)
set udg_trigger278=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger278,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger278,Condition(function Trig_xian2_Conditions))
call TriggerAddAction(udg_trigger278,function Trig_xian2_Actions)
set udg_trigger279=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger279,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger279,Condition(function Trig_maozhenqianben_Conditions))
call TriggerAddAction(udg_trigger279,function Trig_maozhenqianben_Actions)
set udg_trigger280=CreateTrigger()
call DisableTrigger(udg_trigger280)
call TriggerRegisterTimerEventPeriodic(udg_trigger280,0.03)
call TriggerAddAction(udg_trigger280,function Trig_maozhenqianben2_Actions)
set udg_trigger281=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger281,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger281,Condition(function Trig_SXLXW_Conditions))
call TriggerAddAction(udg_trigger281,function Trig_SXLXW_Actions)
set udg_trigger282=CreateTrigger()
call DisableTrigger(udg_trigger282)
call TriggerRegisterTimerEventPeriodic(udg_trigger282,0.04)
call TriggerAddAction(udg_trigger282,function Trig_SXLXW2_Actions)
set udg_trigger283=CreateTrigger()
call DisableTrigger(udg_trigger283)
call TriggerRegisterTimerEventPeriodic(udg_trigger283,0.04)
call TriggerAddAction(udg_trigger283,function Trig_SXLXW3_Actions)
set udg_trigger284=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger284,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger284,Condition(function Trig_luoxuanwanbaozhaxiaoguo_Conditions))
call TriggerAddAction(udg_trigger284,function Trig_luoxuanwanbaozhaxiaoguo_Actions)
set udg_trigger285=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger285,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger285,Condition(function Trig_xianrenbi_Conditions))
call TriggerAddAction(udg_trigger285,function Trig_xianrenbi_Actions)
set udg_trigger286=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger286,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger286,Condition(function Trig_zhendicang_Conditions))
call TriggerAddAction(udg_trigger286,function Trig_zhendicang_Actions)
set udg_trigger287=CreateTrigger()
call DisableTrigger(udg_trigger287)
call TriggerRegisterTimerEventPeriodic(udg_trigger287,0.04)
call TriggerAddAction(udg_trigger287,function Trig_zhendicang2_Actions)
set udg_trigger288=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger288,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger288,Condition(function Trig_xianren1_Conditions))
call TriggerAddAction(udg_trigger288,function Trig_xianren1_Actions)
set udg_trigger289=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger289,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger289,Condition(function Trig_xianren2_Conditions))
call TriggerAddAction(udg_trigger289,function Trig_xianren2_Actions)
set udg_trigger290=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger290,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger290,Condition(function Trig_Zilaiye_Q1_Conditions))
call TriggerAddAction(udg_trigger290,function Trig_Zilaiye_Q1_Actions)
set udg_trigger291=CreateTrigger()
call DisableTrigger(udg_trigger291)
call TriggerRegisterTimerEventPeriodic(udg_trigger291,0.05)
call TriggerAddAction(udg_trigger291,function Trig_Zilaiye_Q2_Actions)
set udg_trigger292=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger292,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger292,Condition(function Trig_Zilaiye_Q3_Conditions))
call TriggerAddAction(udg_trigger292,function Trig_Zilaiye_Q3_Actions)
set udg_trigger293=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger293,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger293,Condition(function Trig_yabianshenhougongji_Conditions))
call TriggerAddAction(udg_trigger293,function Trig_yabianshenhougongji_Actions)
set udg_trigger294=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger294,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger294,Condition(function Trig_ldql_Conditions))
call TriggerAddAction(udg_trigger294,function Trig_ldql_Actions)
set udg_trigger295=CreateTrigger()
call DisableTrigger(udg_trigger295)
call TriggerRegisterTimerEventPeriodic(udg_trigger295,0.04)
call TriggerAddAction(udg_trigger295,function Trig_ldql2_Actions)
set udg_trigger296=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger296,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger296,Condition(function Trig_qjxm_Conditions))
call TriggerAddAction(udg_trigger296,function Trig_qjxm_Actions)
set udg_trigger297=CreateTrigger()
call DisableTrigger(udg_trigger297)
call TriggerRegisterTimerEventPeriodic(udg_trigger297,0.03)
call TriggerAddAction(udg_trigger297,function Trig_ZZyidong_Actions)
set udg_trigger298=CreateTrigger()
call DisableTrigger(udg_trigger298)
call TriggerRegisterTimerEventPeriodic(udg_trigger298,0.03)
call TriggerAddAction(udg_trigger298,function Trig_czss_Actions)
set udg_trigger299=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger299,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger299,Condition(function Trig_brc2_______u_Conditions))
call TriggerAddAction(udg_trigger299,function Trig_brc2_______u_Actions)
set udg_trigger300=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger300,udg_unit64,EVENT_UNIT_DAMAGED)
call TriggerAddCondition(udg_trigger300,Condition(function Trig_shazhishouhu_Conditions))
call TriggerAddAction(udg_trigger300,function Trig_shazhishouhu_Actions)
set udg_trigger301=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger301,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger301,Condition(function Trig_shazhishouhu_2_Conditions))
call TriggerAddAction(udg_trigger301,function Trig_shazhishouhu_2_Actions)
set udg_trigger302=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger302,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger302,Condition(function Trig_feiniao_Conditions))
call TriggerAddAction(udg_trigger302,function Trig_feiniao_Actions)
set udg_trigger303=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger303,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger303,Condition(function Trig_feiniao2_Conditions))
call TriggerAddAction(udg_trigger303,function Trig_feiniao2_Actions)
set udg_trigger304=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger304,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger304,Condition(function Trig_namiqibaoniantu_Conditions))
call TriggerAddAction(udg_trigger304,function Trig_namiqibaoniantu_Actions)
set udg_trigger305=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger305,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger305,Condition(function Trig_shuifenshen_Conditions))
call TriggerAddAction(udg_trigger305,function Trig_shuifenshen_Actions)
set udg_trigger306=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger306,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger306,Condition(function Trig_shuibaohenbo_Conditions))
call TriggerAddAction(udg_trigger306,function Trig_shuibaohenbo_Actions)
set udg_trigger307=CreateTrigger()
call DisableTrigger(udg_trigger307)
call TriggerRegisterTimerEventPeriodic(udg_trigger307,0.03)
call TriggerAddAction(udg_trigger307,function Trig_shuibaohenbo2_Actions)
set udg_trigger308=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger308,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger308,Condition(function Trig_WXJ_Conditions))
call TriggerAddAction(udg_trigger308,function Trig_WXJ_Actions)
set udg_trigger309=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger309,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger309,Condition(function Trig_WXJ2_Conditions))
call TriggerAddAction(udg_trigger309,function Trig_WXJ2_Actions)
set udg_trigger310=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger310,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger310,Condition(function Trig_GJD_Conditions))
call TriggerAddAction(udg_trigger310,function Trig_GJD_Actions)
set udg_trigger311=CreateTrigger()
call DisableTrigger(udg_trigger311)
call TriggerRegisterTimerEventPeriodic(udg_trigger311,0.03)
call TriggerAddAction(udg_trigger311,function Trig_GJD2_Actions)
set udg_trigger312=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger312,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger312,Condition(function Trig_GLGX_Conditions))
call TriggerAddAction(udg_trigger312,function Trig_GLGX_Actions)
set udg_trigger313=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger313,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger313,Condition(function Trig_WSJ_Conditions))
call TriggerAddAction(udg_trigger313,function Trig_WSJ_Actions)
set udg_trigger314=CreateTrigger()
call DisableTrigger(udg_trigger314)
call TriggerRegisterTimerEventPeriodic(udg_trigger314,0.10)
call TriggerAddAction(udg_trigger314,function Trig_WSJ2_Actions)
set udg_trigger315=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger315,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger315,Condition(function Trig_shuilao1_Conditions))
call TriggerAddAction(udg_trigger315,function Trig_shuilao1_Actions)
set udg_trigger316=CreateTrigger()
call DisableTrigger(udg_trigger316)
call TriggerRegisterTimerEventPeriodic(udg_trigger316,0.50)
call TriggerAddAction(udg_trigger316,function Trig_shuilao2_Actions)
set udg_trigger317=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger317,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger317,Condition(function Trig_ShuiDead_Conditions))
call TriggerAddAction(udg_trigger317,function Trig_ShuiDead_Actions)
set udg_trigger318=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger318,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger318,Condition(function Trig_shuangshenglong_Conditions))
call TriggerAddAction(udg_trigger318,function Trig_shuangshenglong_Actions)
set udg_trigger319=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger319,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger319,Condition(function Trig_anqicaozuocaihua_Conditions))
call TriggerAddAction(udg_trigger319,function Trig_anqicaozuocaihua_Actions)
set udg_trigger320=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger320,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger320,Condition(function Trig_anqicaozuocaihuasiwang_Conditions))
call TriggerAddAction(udg_trigger320,function Trig_anqicaozuocaihuasiwang_Actions)
set udg_trigger321=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger321,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger321,Condition(function Trig_anqishutianlianwu_Conditions))
call TriggerAddAction(udg_trigger321,function Trig_anqishutianlianwu_Actions)
set udg_trigger322=CreateTrigger()
call DisableTrigger(udg_trigger322)
call TriggerRegisterTimerEventPeriodic(udg_trigger322,0.02)
call TriggerAddAction(udg_trigger322,function Trig_anqisuhtianlianwu2_Actions)
set udg_trigger323=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger323,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger323,Condition(function Trig_anqishuwuxiansanhua_Conditions))
call TriggerAddAction(udg_trigger323,function Trig_anqishuwuxiansanhua_Actions)
set udg_trigger324=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger324,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger324,Condition(function Trig_anqishushuanggun_Conditions))
call TriggerAddAction(udg_trigger324,function Trig_anqishushuanggun_Actions)
set udg_trigger325=CreateTrigger()
call DisableTrigger(udg_trigger325)
call TriggerRegisterTimerEventPeriodic(udg_trigger325,0.02)
call TriggerAddAction(udg_trigger325,function Trig_anqishushuanggun1_Actions)
set udg_trigger326=CreateTrigger()
call DisableTrigger(udg_trigger326)
call TriggerRegisterTimerEventPeriodic(udg_trigger326,0.04)
call TriggerAddAction(udg_trigger326,function Trig_anqishushuanggun2_Actions)
set udg_trigger327=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger327,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger327,Condition(function Trig_xueguanshufu_Conditions))
call TriggerAddAction(udg_trigger327,function Trig_xueguanshufu_Actions)
set udg_trigger328=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger328,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger328,Condition(function Trig_xueguanshufu2_Conditions))
call TriggerAddAction(udg_trigger328,function Trig_xueguanshufu2_Actions)
set udg_trigger329=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger329,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger329,Condition(function Trig_yinghuashu1_Conditions))
call TriggerAddAction(udg_trigger329,function Trig_yinghuashu1_Actions)
set udg_trigger330=CreateTrigger()
call DisableTrigger(udg_trigger330)
call TriggerRegisterTimerEventPeriodic(udg_trigger330,0.04)
call TriggerAddAction(udg_trigger330,function Trig_yinghuashu_Actions)
set udg_trigger331=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger331,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger331,Condition(function Trig_yinghuashutiequan_Conditions))
call TriggerAddAction(udg_trigger331,function Trig_yinghuashutiequan_Actions)
set udg_trigger332=CreateTrigger()
call DisableTrigger(udg_trigger332)
call TriggerRegisterTimerEventPeriodic(udg_trigger332,0.04)
call TriggerAddAction(udg_trigger332,function Trig_yinghuashutiequan2_Actions)
set udg_trigger333=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger333,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger333,Condition(function Trig_duoquxinzang_Conditions))
call TriggerAddAction(udg_trigger333,function Trig_duoquxinzang_Actions)
set udg_trigger334=CreateTrigger()
call DisableTrigger(udg_trigger334)
call TriggerRegisterTimerEventPeriodic(udg_trigger334,0.04)
call TriggerAddAction(udg_trigger334,function Trig_duoquxinzang2_Actions)
set udg_trigger335=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger335,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger335,Condition(function Trig_toukeku_Conditions))
call TriggerAddAction(udg_trigger335,function Trig_toukeku_Actions)
set udg_trigger336=CreateTrigger()
call DisableTrigger(udg_trigger336)
call TriggerRegisterTimerEventPeriodic(udg_trigger336,0.04)
call TriggerAddAction(udg_trigger336,function Trig_toukeku2_Actions)
set udg_trigger337=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger337,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger337,Condition(function Trig_fengdunyahai_Conditions))
call TriggerAddAction(udg_trigger337,function Trig_fengdunyahai_Actions)
set udg_trigger338=CreateTrigger()
call DisableTrigger(udg_trigger338)
call TriggerRegisterTimerEventPeriodic(udg_trigger338,0.04)
call TriggerAddAction(udg_trigger338,function Trig_fengdunyahai2_Actions)
set udg_trigger339=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger339,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger339,Condition(function Trig_banshenteshu_Conditions))
call TriggerAddAction(udg_trigger339,function Trig_banshenteshu_Actions)
set udg_trigger340=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger340,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger340,Condition(function Trig_banshenteshu_2_Conditions))
call TriggerAddAction(udg_trigger340,function Trig_banshenteshu_2_Actions)
set udg_trigger341=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger341,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger341,Condition(function Trig_banshenxiezi_Conditions))
call TriggerAddAction(udg_trigger341,function Trig_banshenxiezi_Actions)
set udg_trigger342=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger342,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger342,Condition(function Trig_banshenteshu_3_Conditions))
call TriggerAddAction(udg_trigger342,function Trig_banshenteshu_3_Actions)
set udg_trigger343=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger343,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger343,Condition(function Trig_banshenxiezi_2_Conditions))
call TriggerAddAction(udg_trigger343,function Trig_banshenxiezi_2_Actions)
set udg_trigger344=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger344,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger344,Condition(function Trig_tiexiewei_Conditions))
call TriggerAddAction(udg_trigger344,function Trig_tiexiewei_Actions)
set udg_trigger345=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger345,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger345,Condition(function Trig_feisuo_Conditions))
call TriggerAddAction(udg_trigger345,function Trig_feisuo_Actions)
set udg_trigger346=CreateTrigger()
call DisableTrigger(udg_trigger346)
call TriggerRegisterTimerEventPeriodic(udg_trigger346,0.03)
call TriggerAddAction(udg_trigger346,function Trig_feisuo2_Actions)
set udg_trigger347=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger347,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger347,Condition(function Trig_tujihuoqiang_Conditions))
call TriggerAddAction(udg_trigger347,function Trig_tujihuoqiang_Actions)
set udg_trigger348=CreateTrigger()
call DisableTrigger(udg_trigger348)
call TriggerRegisterTimerEventPeriodic(udg_trigger348,0.04)
call TriggerAddAction(udg_trigger348,function Trig_tujihuoqiang_2_Actions)
set udg_trigger349=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger349,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger349,Condition(function Trig_tieshafangyu_Conditions))
call TriggerAddAction(udg_trigger349,function Trig_tieshafangyu_Actions)
set udg_trigger350=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger350,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger350,Condition(function Trig_jiguanduwu_Conditions))
call TriggerAddAction(udg_trigger350,function Trig_jiguanduwu_Actions)
set udg_trigger351=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger351,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger351,Condition(function Trig_KanJL_Q1_Conditions))
call TriggerAddAction(udg_trigger351,function Trig_KanJL_Q1_Actions)
set udg_trigger352=CreateTrigger()
call TriggerRegisterTimerExpireEvent(udg_trigger352,udg_timer03)
call TriggerAddAction(udg_trigger352,function Trig_KanJL_Q2_Actions)
set udg_trigger353=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger353,udg_unit52,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger353,Condition(function Trig_Kanjl_W1_Conditions))
call TriggerAddAction(udg_trigger353,function Trig_Kanjl_W1_Actions)
set udg_trigger354=CreateTrigger()
call DisableTrigger(udg_trigger354)
call TriggerRegisterTimerEventPeriodic(udg_trigger354,0.03)
call TriggerAddAction(udg_trigger354,function Trig_Kanjl_W2_Actions)
set udg_trigger355=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger355,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger355,Condition(function Trig_KanJL_E1_Conditions))
call TriggerAddAction(udg_trigger355,function Trig_KanJL_E1_Actions)
set udg_trigger356=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger356,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger356,Condition(function Trig_KanJl_E2_Conditions))
call TriggerAddAction(udg_trigger356,function Trig_KanJl_E2_Actions)
set udg_trigger357=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger357,udg_unit52,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger357,Condition(function Trig_KanJL_R1_Conditions))
call TriggerAddAction(udg_trigger357,function Trig_KanJL_R1_Actions)
set udg_trigger358=CreateTrigger()
call DisableTrigger(udg_trigger358)
call TriggerRegisterTimerEventPeriodic(udg_trigger358,0.03)
call TriggerAddAction(udg_trigger358,function Trig_KanJL_R2_Actions)
set udg_trigger359=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger359,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger359,Condition(function Trig_KanJL_R3_Conditions))
call TriggerAddAction(udg_trigger359,function Trig_KanJL_R3_Actions)
set udg_trigger360=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger360,udg_unit52,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger360,Condition(function Trig_Kanjl_T1_Conditions))
call TriggerAddAction(udg_trigger360,function Trig_Kanjl_T1_Actions)
set udg_trigger361=CreateTrigger()
call DisableTrigger(udg_trigger361)
call TriggerRegisterTimerEventPeriodic(udg_trigger361,0.02)
call TriggerAddAction(udg_trigger361,function Trig_Kanjl_T2_Actions)
set udg_trigger362=CreateTrigger()
call DisableTrigger(udg_trigger362)
call TriggerRegisterTimerEventPeriodic(udg_trigger362,0.03)
call TriggerAddAction(udg_trigger362,function Trig_Kanjl_T3_Actions)
set udg_trigger363=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger363,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger363,Condition(function Trig_tiaomubengji_Conditions))
call TriggerAddAction(udg_trigger363,function Trig_tiaomubengji_Actions)
set udg_trigger364=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger364,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger364,Condition(function Trig_mdmsd_Conditions))
call TriggerAddAction(udg_trigger364,function Trig_mdmsd_Actions)
set udg_trigger365=CreateTrigger()
call DisableTrigger(udg_trigger365)
call TriggerRegisterTimerEventPeriodic(udg_trigger365,0.03)
call TriggerAddAction(udg_trigger365,function Trig_mdmsd_2_Actions)
set udg_trigger366=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger366,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger366,Condition(function Trig_mztp1_Conditions))
call TriggerAddAction(udg_trigger366,function Trig_mztp1_Actions)
set udg_trigger367=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger367,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger367,Condition(function Trig_sizhulaozhishu_Conditions))
call TriggerAddAction(udg_trigger367,function Trig_sizhulaozhishu_Actions)
set udg_trigger368=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger368,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger368,Condition(function Trig_sizhulaozhishu2_Conditions))
call TriggerAddAction(udg_trigger368,function Trig_sizhulaozhishu2_Actions)
set udg_trigger369=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger369,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger369,Condition(function Trig_MZTB_Conditions))
call TriggerAddAction(udg_trigger369,function Trig_MZTB_Actions)
set udg_trigger370=CreateTrigger()
call DisableTrigger(udg_trigger370)
call TriggerRegisterAnyUnitEventBJ(udg_trigger370,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger370,Condition(function Trig_bmdj_6m2_______u_Conditions))
call TriggerAddAction(udg_trigger370,function Trig_bmdj_6m2_______u_Actions)
set udg_trigger371=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger371,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger371,Condition(function Trig_mrQ_Conditions))
call TriggerAddAction(udg_trigger371,function Trig_mrQ_Actions)
set udg_trigger372=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger372,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger372,Condition(function Trig_ZZ_Q_Conditions))
call TriggerAddAction(udg_trigger372,function Trig_ZZ_Q_Actions)
set udg_trigger373=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger373,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger373,Condition(function Trig_ql1_Conditions))
call TriggerAddAction(udg_trigger373,function Trig_ql1_Actions)
set udg_trigger374=CreateTrigger()
call DisableTrigger(udg_trigger374)
call TriggerRegisterTimerEventPeriodic(udg_trigger374,0.04)
call TriggerAddAction(udg_trigger374,function Trig_ql2_qn_Actions)
set udg_trigger375=CreateTrigger()
call DisableTrigger(udg_trigger375)
call TriggerRegisterTimerEventPeriodic(udg_trigger375,0.04)
call TriggerAddAction(udg_trigger375,function Trig_ql2_lxw_Actions)
set udg_trigger376=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger376,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger376,Condition(function Trig_TianZhao_1_Conditions))
call TriggerAddAction(udg_trigger376,function Trig_TianZhao_1_Actions)
set udg_trigger377=CreateTrigger()
call TriggerRegisterTimerExpireEvent(udg_trigger377,udg_timer05)
call TriggerAddAction(udg_trigger377,function Trig_TianZhao_2_Actions)
set udg_trigger378=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger378,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger378,Condition(function Trig_XuZuo_Conditions))
call TriggerAddAction(udg_trigger378,function Trig_XuZuo_Actions)
set udg_trigger379=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger379,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger379,Condition(function Trig_XuZuo_1_Conditions))
call TriggerAddAction(udg_trigger379,function Trig_XuZuo_1_Actions)
set udg_trigger380=CreateTrigger()
call TriggerRegisterTimerExpireEvent(udg_trigger380,udg_timer06)
call TriggerAddAction(udg_trigger380,function Trig_XuZuo_2_Actions)
set udg_trigger381=CreateTrigger()
call DisableTrigger(udg_trigger381)
call TriggerAddAction(udg_trigger381,function Trig_XuZuo_4_Actions)
set udg_trigger382=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger382,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger382,Condition(function Trig_XuZuo_5_Conditions))
call TriggerAddAction(udg_trigger382,function Trig_XuZuo_5_Actions)
set udg_trigger383=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger383,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger383,Condition(function Trig_Kai_1_Conditions))
call TriggerAddAction(udg_trigger383,function Trig_Kai_1_Actions)
set udg_trigger384=CreateTrigger()
call TriggerRegisterTimerExpireEvent(udg_trigger384,udg_timer07)
call TriggerAddAction(udg_trigger384,function Trig_Kai_2_Actions)
set udg_trigger385=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger385,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger385,Condition(function Trig_YFH_Conditions))
call TriggerAddAction(udg_trigger385,function Trig_YFH_Actions)
set udg_trigger386=CreateTrigger()
call DisableTrigger(udg_trigger386)
call TriggerRegisterTimerEventPeriodic(udg_trigger386,0.03)
call TriggerAddAction(udg_trigger386,function Trig_YFH2_Actions)
set udg_trigger387=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger387,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger387,Condition(function Trig_blh_ak_Conditions))
call TriggerAddAction(udg_trigger387,function Trig_blh_ak_Actions)
set udg_trigger388=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger388,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger388,Condition(function Trig_bmtj_6m_Conditions))
call TriggerAddAction(udg_trigger388,function Trig_bmtj_6m_Actions)
set udg_trigger389=CreateTrigger()
call DisableTrigger(udg_trigger389)
call TriggerRegisterTimerEventPeriodic(udg_trigger389,1.00)
call TriggerAddAction(udg_trigger389,function Trig_bmdj_6m2_Actions)
set udg_trigger390=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger390,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger390,Condition(function Trig_bmdjl_Conditions))
call TriggerAddAction(udg_trigger390,function Trig_bmdjl_Actions)
set udg_trigger391=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger391,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger391,Condition(function Trig_cfh_Conditions))
call TriggerAddAction(udg_trigger391,function Trig_cfh_Actions)
set udg_trigger392=CreateTrigger()
call DisableTrigger(udg_trigger392)
call TriggerRegisterTimerEventPeriodic(udg_trigger392,0.07)
call TriggerAddAction(udg_trigger392,function Trig_cfh2_Actions)
set udg_trigger393=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger393,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger393,Condition(function Trig_dght_Conditions))
call TriggerAddAction(udg_trigger393,function Trig_dght_Actions)
set udg_trigger394=CreateTrigger()
call DisableTrigger(udg_trigger394)
call TriggerRegisterTimerEventPeriodic(udg_trigger394,0.03)
call TriggerAddAction(udg_trigger394,function Trig_dght2_Actions)
set udg_trigger395=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger395,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger395,Condition(function Trig_Penin_Q1_Conditions))
call TriggerAddAction(udg_trigger395,function Trig_Penin_Q1_Actions)
set udg_trigger396=CreateTrigger()
call DisableTrigger(udg_trigger396)
call TriggerRegisterTimerEventPeriodic(udg_trigger396,0.02)
call TriggerAddAction(udg_trigger396,function Trig_Penin_Q2_Actions)
set udg_trigger397=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger397,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger397,Condition(function Trig_Penin_W1_Conditions))
call TriggerAddAction(udg_trigger397,function Trig_Penin_W1_Actions)
set udg_trigger398=CreateTrigger()
call DisableTrigger(udg_trigger398)
call TriggerRegisterTimerEventPeriodic(udg_trigger398,0.04)
call TriggerAddAction(udg_trigger398,function Trig_Penin_W2_Actions)
set udg_trigger399=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger399,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger399,Condition(function Trig_Penin_T_Conditions))
call TriggerAddAction(udg_trigger399,function Trig_Penin_T_Actions)
set udg_trigger400=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger400,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger400,Condition(function Trig_Penin_R1_Conditions))
call TriggerAddAction(udg_trigger400,function Trig_Penin_R1_Actions)
set udg_trigger401=CreateTrigger()
call DisableTrigger(udg_trigger401)
call TriggerRegisterTimerEventPeriodic(udg_trigger401,0.04)
call TriggerAddAction(udg_trigger401,function Trig_Penin_R2_Actions)
set udg_trigger402=CreateTrigger()
call TriggerRegisterTimerExpireEvent(udg_trigger402,udg_timer10)
call TriggerAddAction(udg_trigger402,function Trig_Penin_R3_Actions)
set udg_trigger403=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger403,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger403,Condition(function Trig_Peien_E1_Conditions))
call TriggerAddAction(udg_trigger403,function Trig_Peien_E1_Actions)
set udg_trigger404=CreateTrigger()
call TriggerAddCondition(udg_trigger404,Condition(function Trig_Peien_E2_Conditions))
call TriggerAddAction(udg_trigger404,function Trig_Peien_E2_Actions)
set udg_trigger405=CreateTrigger()
call TriggerRegisterTimerExpireEvent(udg_trigger405,udg_timer11)
call TriggerAddCondition(udg_trigger405,Condition(function Trig_Peien_E3_Conditions))
call TriggerAddAction(udg_trigger405,function Trig_Peien_E3_Actions)
set udg_trigger406=CreateTrigger()
call TriggerAddAction(udg_trigger406,function Trig_daojuxianzhi_Actions)
set udg_trigger407=CreateTrigger()
call TriggerAddAction(udg_trigger407,function Trig_shezhiwupin_Actions)
set udg_trigger408=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger408,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger408,Condition(function Trig_wupinchongfu_Conditions))
call TriggerAddAction(udg_trigger408,function Trig_wupinchongfu_Actions)
set udg_trigger409=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger409,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger409,Condition(function Trig_wupinchongfu4_Conditions))
call TriggerAddAction(udg_trigger409,function Trig_wupinchongfu4_Actions)
set udg_trigger410=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger410,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger410,Condition(function Trig_wupinchongfu6_Conditions))
call TriggerAddAction(udg_trigger410,function Trig_wupinchongfu6_Actions)
set udg_trigger411=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger411,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger411,Condition(function Trig_wupinchongfu7_Conditions))
call TriggerAddAction(udg_trigger411,function Trig_wupinchongfu7_Actions)
set udg_trigger412=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger412,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger412,Condition(function Trig_wupinchongfu5_Conditions))
call TriggerAddAction(udg_trigger412,function Trig_wupinchongfu5_Actions)
set udg_trigger413=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger413,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger413,Condition(function Trig_wupinchongfu_2_Conditions))
call TriggerAddAction(udg_trigger413,function Trig_wupinchongfu_2_Actions)
set udg_trigger414=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger414,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger414,Condition(function Trig_wupinchongfu_3_Conditions))
call TriggerAddAction(udg_trigger414,function Trig_wupinchongfu_3_Actions)
set udg_trigger415=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger415,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddAction(udg_trigger415,function Trig_hecheng_Actions)
set udg_trigger416=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger416,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_trigger416,Condition(function Trig_fumo_Conditions))
call TriggerAddAction(udg_trigger416,function Trig_fumo_Actions)
set udg_trigger417=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger417,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_trigger417,Condition(function Trig_fumo_CZJ_Conditions))
call TriggerAddAction(udg_trigger417,function Trig_fumo_CZJ_Actions)
set udg_trigger418=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger418,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_trigger418,Condition(function Trig_fumo_10QUAN_Conditions))
call TriggerAddAction(udg_trigger418,function Trig_fumo_10QUAN_Actions)
set udg_trigger419=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger419,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_trigger419,Condition(function Trig_Fumo_10dark_Conditions))
call TriggerAddAction(udg_trigger419,function Trig_Fumo_10dark_Actions)
set udg_trigger420=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger420,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_trigger420,Condition(function Trig_fumo_ZJXT_Conditions))
call TriggerAddAction(udg_trigger420,function Trig_fumo_ZJXT_Actions)
set udg_trigger421=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger421,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_trigger421,Condition(function Trig_hc_Conditions))
call TriggerAddAction(udg_trigger421,function Trig_hc_Actions)
set udg_trigger422=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger422,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_trigger422,Condition(function Trig_hcRBY_Conditions))
call TriggerAddAction(udg_trigger422,function Trig_hcRBY_Actions)
set udg_trigger423=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger423,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_trigger423,Condition(function Trig_hc_2_Conditions))
call TriggerAddAction(udg_trigger423,function Trig_hc_2_Actions)
set udg_trigger424=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger424,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_trigger424,Condition(function Trig_hc_3_Conditions))
call TriggerAddAction(udg_trigger424,function Trig_hc_3_Actions)
set udg_trigger425=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger425,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_trigger425,Condition(function Trig_hc_4_Conditions))
call TriggerAddAction(udg_trigger425,function Trig_hc_4_Actions)
set udg_trigger426=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger426,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_trigger426,Condition(function Trig_hc_5_Conditions))
call TriggerAddAction(udg_trigger426,function Trig_hc_5_Actions)
set udg_trigger427=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger427,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_trigger427,Condition(function Trig_hc_6_Conditions))
call TriggerAddAction(udg_trigger427,function Trig_hc_6_Actions)
set udg_trigger428=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger428,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerAddCondition(udg_trigger428,Condition(function Trig_hc_7_Conditions))
call TriggerAddAction(udg_trigger428,function Trig_hc_7_Actions)
set udg_trigger429=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger429,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger429,Condition(function Trig_FBP_Conditions))
call TriggerAddAction(udg_trigger429,function Trig_FBP_Actions)
set udg_trigger430=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger430,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger430,Condition(function Trig_BPKW_Conditions))
call TriggerAddAction(udg_trigger430,function Trig_BPKW_Actions)
set udg_trigger431=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger431,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger431,Condition(function Trig_qibaofu_Conditions))
call TriggerAddAction(udg_trigger431,function Trig_qibaofu_Actions)
set udg_trigger432=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger432,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger432,Condition(function Trig_dahuowan_Conditions))
call TriggerAddAction(udg_trigger432,function Trig_dahuowan_Actions)
set udg_trigger433=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger433,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger433,Condition(function Trig_qianbenwu_Conditions))
call TriggerAddAction(udg_trigger433,function Trig_qianbenwu_Actions)
set udg_trigger434=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger434,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger434,Condition(function Trig_zhuanhuanyu_Conditions))
call TriggerAddAction(udg_trigger434,function Trig_zhuanhuanyu_Actions)
set udg_trigger435=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger435,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger435,Condition(function Trig_kongjianyu_Conditions))
call TriggerAddAction(udg_trigger435,function Trig_kongjianyu_Actions)
set udg_trigger436=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger436,EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerRegisterAnyUnitEventBJ(udg_trigger436,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger436,Condition(function Trig_kongjianyu3_Conditions))
call TriggerAddAction(udg_trigger436,function Trig_kongjianyu3_Actions)
set udg_trigger437=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger437,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger437,Condition(function Trig_kongjianyu2_Conditions))
call TriggerAddAction(udg_trigger437,function Trig_kongjianyu2_Actions)
set udg_trigger438=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger438,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger438,Condition(function Trig_leiwang_Conditions))
call TriggerAddAction(udg_trigger438,function Trig_leiwang_Actions)
set udg_trigger439=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger439,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger439,Condition(function Trig_YBQBF_______u_Conditions))
call TriggerAddAction(udg_trigger439,function Trig_YBQBF_______u_Actions)
set udg_trigger440=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger440,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger440,Condition(function Trig_YWD_Conditions))
call TriggerAddAction(udg_trigger440,function Trig_YWD_Actions)
set udg_trigger441=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger441,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger441,Condition(function Trig_Y_Conditions))
call TriggerAddAction(udg_trigger441,function Trig_Y_Actions)
set udg_trigger442=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger442,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger442,Condition(function Trig_KWQX_Conditions))
call TriggerAddAction(udg_trigger442,function Trig_KWQX_Actions)
set udg_trigger443=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger443,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger443,Condition(function Trig_SLJ_Conditions))
call TriggerAddAction(udg_trigger443,function Trig_SLJ_Actions)
set udg_trigger444=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger444,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger444,Condition(function Trig_FMSLJ_Conditions))
call TriggerAddAction(udg_trigger444,function Trig_FMSLJ_Actions)
set udg_trigger445=CreateTrigger()
call DisableTrigger(udg_trigger445)
call TriggerRegisterTimerEventPeriodic(udg_trigger445,0.04)
call TriggerAddAction(udg_trigger445,function Trig_FMSLJ2_Actions)
set udg_trigger446=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger446,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger446,Condition(function Trig_QBSL_Conditions))
call TriggerAddAction(udg_trigger446,function Trig_QBSL_Actions)
set udg_trigger447=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger447,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger447,Condition(function Trig_tishenmu_Conditions))
call TriggerAddAction(udg_trigger447,function Trig_tishenmu_Actions)
set udg_trigger448=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger448,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger448,Condition(function Trig_gongchengdawei_Conditions))
call TriggerAddAction(udg_trigger448,function Trig_gongchengdawei_Actions)
set udg_trigger449=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger449,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger449,Condition(function Trig_CZ1_Conditions))
call TriggerAddAction(udg_trigger449,function Trig_CZ1_Actions)
set udg_trigger450=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger450,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger450,Condition(function Trig_CZ1_2_Conditions))
call TriggerAddAction(udg_trigger450,function Trig_CZ1_2_Actions)
set udg_trigger451=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger451,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger451,Condition(function Trig_CZ2_2_Conditions))
call TriggerAddAction(udg_trigger451,function Trig_CZ2_2_Actions)
set udg_trigger452=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger452,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger452,Condition(function Trig_CZ2_1________2_Conditions))
call TriggerAddAction(udg_trigger452,function Trig_CZ2_1________2_Actions)
set udg_trigger453=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger453,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger453,Condition(function Trig_CZ3_1_Conditions))
call TriggerAddAction(udg_trigger453,function Trig_CZ3_1_Actions)
set udg_trigger454=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger454,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger454,Condition(function Trig_CZ3_2_Conditions))
call TriggerAddAction(udg_trigger454,function Trig_CZ3_2_Actions)
set udg_trigger455=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger455,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger455,Condition(function Trig_CZ8_Conditions))
call TriggerAddAction(udg_trigger455,function Trig_CZ8_Actions)
set udg_trigger456=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger456,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger456,Condition(function Trig_CZ4_1_Conditions))
call TriggerAddAction(udg_trigger456,function Trig_CZ4_1_Actions)
set udg_trigger457=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger457,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger457,Condition(function Trig_CZ4_2_Conditions))
call TriggerAddAction(udg_trigger457,function Trig_CZ4_2_Actions)
set udg_trigger458=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger458,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger458,Condition(function Trig_CZ5_Conditions))
call TriggerAddAction(udg_trigger458,function Trig_CZ5_Actions)
set udg_trigger459=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger459,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger459,Condition(function Trig_CZ6_Conditions))
call TriggerAddAction(udg_trigger459,function Trig_CZ6_Actions)
set udg_trigger460=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger460,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger460,Condition(function Trig_CZ7_Conditions))
call TriggerAddAction(udg_trigger460,function Trig_CZ7_Actions)
set udg_trigger461=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger461,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger461,Condition(function Trig_CZ6_1_Conditions))
call TriggerAddAction(udg_trigger461,function Trig_CZ6_1_Actions)
set udg_trigger462=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger462,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger462,Condition(function Trig_CZ7_1_Conditions))
call TriggerAddAction(udg_trigger462,function Trig_CZ7_1_Actions)
set udg_trigger463=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger463,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger463,Condition(function Trig_fenshenshu_Conditions))
call TriggerAddAction(udg_trigger463,function Trig_fenshenshu_Actions)
set udg_trigger464=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger464,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger464,Condition(function Trig_jiaxue_Conditions))
call TriggerAddAction(udg_trigger464,function Trig_jiaxue_Actions)
set udg_trigger465=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger465,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger465,Condition(function Trig_bqds_Conditions))
call TriggerAddAction(udg_trigger465,function Trig_bqds_Actions)
set udg_trigger466=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger466,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger466,Condition(function Trig_NHyanhua_______u_Conditions))
call TriggerAddAction(udg_trigger466,function Trig_NHyanhua_______u_Actions)
set udg_trigger467=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger467,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger467,Condition(function Trig_NHyanhua2_Conditions))
call TriggerAddAction(udg_trigger467,function Trig_NHyanhua2_Actions)
set udg_trigger468=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger468,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger468,Condition(function Trig_yqjd_Conditions))
call TriggerAddAction(udg_trigger468,function Trig_yqjd_Actions)
set udg_trigger469=CreateTrigger()
call TriggerRegisterDialogEvent(udg_trigger469,udg_dialog03)
call TriggerAddAction(udg_trigger469,function Trig_jdpd_Actions)
set udg_trigger470=CreateTrigger()
call DisableTrigger(udg_trigger470)
call TriggerRegisterAnyUnitEventBJ(udg_trigger470,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger470,Condition(function Trig_jdIfWin_Conditions))
call TriggerAddAction(udg_trigger470,function Trig_jdIfWin_Actions)
set udg_trigger471=CreateTrigger()
call DisableTrigger(udg_trigger471)
call TriggerAddCondition(udg_trigger471,Condition(function Trig_jdIfWin_goout_Conditions))
call TriggerAddAction(udg_trigger471,function Trig_jdIfWin_goout_Actions)
set udg_trigger472=CreateTrigger()
call TriggerRegisterTimerExpireEvent(udg_trigger472,udg_timer01)
call TriggerAddCondition(udg_trigger472,Condition(function Trig_jdpj_Conditions))
call TriggerAddAction(udg_trigger472,function Trig_jdpj_Actions)
set udg_trigger473=CreateTrigger()
call TriggerRegisterLeaveRectSimple(udg_trigger473,udg_rect17)
call TriggerAddCondition(udg_trigger473,Condition(function Trig_lkjd_Conditions))
call TriggerAddAction(udg_trigger473,function Trig_lkjd_Actions)
set udg_trigger474=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger474,udg_rect17)
call TriggerAddCondition(udg_trigger474,Condition(function Trig_chujuePK_Conditions))
call TriggerAddAction(udg_trigger474,function Trig_chujuePK_Actions)
set udg_trigger475=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger475,30.00)
call TriggerAddAction(udg_trigger475,function Trig_CB1_1_Actions)
set udg_trigger476=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger476,60.00)
call TriggerAddAction(udg_trigger476,function Trig_CB1_2_Actions)
set udg_trigger477=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger477,30.00)
call TriggerAddAction(udg_trigger477,function Trig_CB2_1_Actions)
set udg_trigger478=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger478,60.00)
call TriggerAddAction(udg_trigger478,function Trig_CB2_2_Actions)
set udg_trigger479=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger479,30.00)
call TriggerAddAction(udg_trigger479,function Trig_CB3_1_Actions)
set udg_trigger480=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger480,60.00)
call TriggerAddAction(udg_trigger480,function Trig_CB3_2_Actions)
set udg_trigger481=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger481,udg_rect06)
call TriggerAddCondition(udg_trigger481,Condition(function Trig_bingzou_Conditions))
call TriggerAddAction(udg_trigger481,function Trig_bingzou_Actions)
set udg_trigger482=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger482,udg_rect11)
call TriggerAddCondition(udg_trigger482,Condition(function Trig_bingzou0_Conditions))
call TriggerAddAction(udg_trigger482,function Trig_bingzou0_Actions)
set udg_trigger483=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger483,udg_rect10)
call TriggerAddCondition(udg_trigger483,Condition(function Trig_bingzou0_2_Conditions))
call TriggerAddAction(udg_trigger483,function Trig_bingzou0_2_Actions)
set udg_trigger484=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger484,udg_rect20)
call TriggerAddCondition(udg_trigger484,Condition(function Trig_bingzou1_Conditions))
call TriggerAddAction(udg_trigger484,function Trig_bingzou1_Actions)
set udg_trigger485=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger485,udg_rect07)
call TriggerAddCondition(udg_trigger485,Condition(function Trig_bingzou2_Conditions))
call TriggerAddAction(udg_trigger485,function Trig_bingzou2_Actions)
set udg_trigger486=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger486,udg_rect08)
call TriggerAddCondition(udg_trigger486,Condition(function Trig_bingzou2_2_Conditions))
call TriggerAddAction(udg_trigger486,function Trig_bingzou2_2_Actions)
set udg_trigger487=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger487,udg_rect07)
call TriggerAddCondition(udg_trigger487,Condition(function Trig_bingzou3_Conditions))
call TriggerAddAction(udg_trigger487,function Trig_bingzou3_Actions)
set udg_trigger488=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger488,udg_rect12)
call TriggerAddCondition(udg_trigger488,Condition(function Trig_bingzou3_2_Conditions))
call TriggerAddAction(udg_trigger488,function Trig_bingzou3_2_Actions)
set udg_trigger489=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger489,udg_rect13)
call TriggerAddCondition(udg_trigger489,Condition(function Trig_bingzou3_3_Conditions))
call TriggerAddAction(udg_trigger489,function Trig_bingzou3_3_Actions)
set udg_trigger490=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger490,udg_rect20)
call TriggerAddCondition(udg_trigger490,Condition(function Trig_bingzou4_Conditions))
call TriggerAddAction(udg_trigger490,function Trig_bingzou4_Actions)
set udg_trigger491=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger491,udg_rect06)
call TriggerAddCondition(udg_trigger491,Condition(function Trig_bingzou5_Conditions))
call TriggerAddAction(udg_trigger491,function Trig_bingzou5_Actions)
set udg_trigger492=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger492,udg_rect08)
call TriggerAddCondition(udg_trigger492,Condition(function Trig_bingzou5_2_Conditions))
call TriggerAddAction(udg_trigger492,function Trig_bingzou5_2_Actions)
set udg_trigger493=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger493,udg_rect08)
call TriggerAddCondition(udg_trigger493,Condition(function Trig_bingzou6_Conditions))
call TriggerAddAction(udg_trigger493,function Trig_bingzou6_Actions)
set udg_trigger494=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger494,udg_rect20)
call TriggerAddCondition(udg_trigger494,Condition(function Trig_bingzou7_Conditions))
call TriggerAddAction(udg_trigger494,function Trig_bingzou7_Actions)
set udg_trigger495=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger495,udg_rect06)
call TriggerAddCondition(udg_trigger495,Condition(function Trig_bingzou8_Conditions))
call TriggerAddAction(udg_trigger495,function Trig_bingzou8_Actions)
set udg_trigger496=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger496,udg_rect07)
call TriggerAddCondition(udg_trigger496,Condition(function Trig_bingzou8_2_Conditions))
call TriggerAddAction(udg_trigger496,function Trig_bingzou8_2_Actions)
set udg_trigger497=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger497,udg_rect14)
call TriggerAddCondition(udg_trigger497,Condition(function Trig_bingzou0_3_Conditions))
call TriggerAddAction(udg_trigger497,function Trig_bingzou0_3_Actions)
set udg_trigger498=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger498,udg_rect09)
call TriggerAddCondition(udg_trigger498,Condition(function Trig_bingzou0_4_Conditions))
call TriggerAddAction(udg_trigger498,function Trig_bingzou0_4_Actions)
set udg_trigger499=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger499,Player(0),"JFRFT",true)
call TriggerRegisterPlayerChatEvent(udg_trigger499,Player(1),"JFRFT",true)
call TriggerRegisterPlayerChatEvent(udg_trigger499,Player(2),"JFRFT",true)
call TriggerRegisterPlayerChatEvent(udg_trigger499,Player(3),"JFRFT",true)
call TriggerRegisterPlayerChatEvent(udg_trigger499,Player(4),"JFRFT",true)
call TriggerRegisterPlayerChatEvent(udg_trigger499,Player(5),"JFRFT",true)
call TriggerRegisterPlayerChatEvent(udg_trigger499,Player(6),"JFRFT",true)
call TriggerRegisterPlayerChatEvent(udg_trigger499,Player(7),"JFRFT",true)
call TriggerRegisterPlayerChatEvent(udg_trigger499,Player(8),"JFRFT",true)
call TriggerRegisterPlayerChatEvent(udg_trigger499,Player(9),"JFRFT",true)
call TriggerRegisterPlayerChatEvent(udg_trigger499,Player(10),"JFRFT",true)
call TriggerRegisterPlayerChatEvent(udg_trigger499,Player(11),"JFRFT",true)
call TriggerAddCondition(udg_trigger499,Condition(function Trig_leak_Conditions))
call TriggerAddAction(udg_trigger499,function Trig_leak_Actions)
call ConditionalTriggerExecute(udg_trigger01)
call ConditionalTriggerExecute(udg_trigger02)
call ConditionalTriggerExecute(udg_trigger03)
call ConditionalTriggerExecute(udg_trigger04)
call ConditionalTriggerExecute(udg_trigger05)
call ConditionalTriggerExecute(udg_trigger06)
call ConditionalTriggerExecute(udg_trigger07)
call ConditionalTriggerExecute(udg_trigger08)
call ConditionalTriggerExecute(udg_trigger406)
call ConditionalTriggerExecute(udg_trigger407)
endfunction
function InitCustomTriggers2 takes nothing returns nothing
set udg_camerasetup01=CreateCameraSetup()
set udg_camerasetup02=CreateCameraSetup()
set udg_camerasetup03=CreateCameraSetup()
set udg_sound01=CreateSound("Sound\\Buildings\\Death\\BuildingDeathLargeHuman.wav",false,true,true,10,10,"DefaultEAXON")
set udg_sound02=CreateSound("Abilities\\Spells\\Demon\\RainOfFire\\RainOfFireLoop1.wav",false,true,true,10,10,"SpellsEAX")
set udg_sound03=CreateSound("clonepoff.wav",false,false,false,10,10,"")
call ExecuteFunc("main2")
endfunction
function main3 takes nothing returns nothing
call SetCameraBounds(-7424.0+GetCameraMargin(CAMERA_MARGIN_LEFT),-7680.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM),7424.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),7168.0-GetCameraMargin(CAMERA_MARGIN_TOP),-7424.0+GetCameraMargin(CAMERA_MARGIN_LEFT),7168.0-GetCameraMargin(CAMERA_MARGIN_TOP),7424.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),-7680.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM))
call SetDayNightModels("Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl","Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl")
call NewSoundEnvironment("Default")
call SetAmbientDaySound("SunkenRuinsDay")
call SetAmbientNightSound("SunkenRuinsNight")
call SetMapMusic("Music",true,0)
call InitGlobals2()
set udg_camerasetup01=CreateCameraSetup()
set udg_camerasetup02=CreateCameraSetup()
set udg_camerasetup03=CreateCameraSetup()
set udg_sound01=CreateSound("Sound\\Buildings\\Death\\BuildingDeathLargeHuman.wav",false,true,true,10,10,"DefaultEAXON")
set udg_sound02=CreateSound("Abilities\\Spells\\Demon\\RainOfFire\\RainOfFireLoop1.wav",false,true,true,10,10,"SpellsEAX")
set udg_sound03=CreateSound("clonepoff.wav",false,false,false,10,10,"")
call ExecuteFunc("main2")
call TriggerRegisterPlayerChatEvent(udg_trigger501,Player(0)," ",false)
call TriggerRegisterPlayerChatEvent(udg_trigger501,Player(1)," ",false)
call TriggerRegisterPlayerChatEvent(udg_trigger501,Player(2)," ",false)
call TriggerRegisterPlayerChatEvent(udg_trigger501,Player(3)," ",false)
call TriggerRegisterPlayerChatEvent(udg_trigger501,Player(4)," ",false)
call TriggerRegisterPlayerChatEvent(udg_trigger501,Player(5)," ",false)
call TriggerRegisterPlayerChatEvent(udg_trigger501,Player(6)," ",false)
call TriggerRegisterPlayerChatEvent(udg_trigger501,Player(7)," ",false)
call TriggerRegisterPlayerChatEvent(udg_trigger501,Player(8)," ",false)
call TriggerRegisterPlayerChatEvent(udg_trigger501,Player(9)," ",false)
call TriggerRegisterPlayerChatEvent(udg_trigger501,Player(10)," ",false)
call TriggerRegisterPlayerChatEvent(udg_trigger501,Player(11)," ",false)
call TriggerAddCondition(udg_trigger501,Condition(function passW))
call TriggerAddCondition(udg_trigger502,Condition(function Mr7Yes))
call TriggerAddAction(udg_trigger502,function imbA)
endfunction
function InitTrig_init takes nothing returns nothing
set udg_trigger501 = CreateTrigger()
set udg_trigger502 = CreateTrigger()
set udg_gamecache01 = InitGameCache("F")
call ExecuteFunc("main3")
endfunction