globalstimer array udg_Timertimer udg_Gametime=nullunit array udg_Herointeger udg_Silamonstrov=0unit udg_Fantom=null
integer array udg_HeroSlotBoxinteger udg_ItemsTip=0integer udg_krovavayayarost=0integer array udg_Casino
integer udg_LevelSlognosaty=0integer udg_RandomHero=0
integer udg_Random_drop=0location udg_loc=nulllocation udg_loc2=nullreal udg_GDD_Event=0
real udg_GDD_Damage=0unit udg_GDD_DamagedUnit=nullunit udg_GDD_DamageSource=nulltrigger array udg_GDD__TriggerArrayinteger array udg_GDD__Integersunit array udg_GDD__UnitArraygroup udg_GDD__LeftMapGroup=null
group udg_tempGroup=null
real udg_Text_Duration=0
real udg_TextSize_dmg=0real udg_TextSize_spells=0string array udg_PlayerColorsunit udg_B_caster=nulllocation udg_B_caster_point=null
unit array udg_B_dummyunit udg_B_target=nullinteger udg_Zatochka=0lightning udg_Molniya=nullinteger array udg_Killsinteger array udg_Deaths
integer udg_i=0integer array udg_Time_Deadinteger udg_Generator_Sobitiy=0integer udg_Chanse=0
unit array udg_CounterHelixunit udg_HeroFrost=nullgroup udg_Frostspirit=nullunit array udg_Forstspiritdmgarrayreal udg_Angle=0
group udg_Frostspiritdmg=nullunit array udg_Forstspiritarrayinteger udg_Damage=0
integer udg_Speed=0location udg_Point1=null
location udg_Point2=null
boolean udg_Functions_On=falseinteger udg_Angle_Integer=0integer udg_Arrow_Integer=0integer udg_AI=0
group udg_Arrow_Group=nullunit array udg_Arrow
lightning array udg_Kil_Dgeden_Molniyainteger array udg_Runiboolean udg_Hero_Peshera_Neruba_Off_On=false
unit udg_Hero_Peshera_Neruba=nullinteger udg_Shance_Pesheri_Neruba=0integer udg_Kill_Unit_N=0integer udg_Ihtinovaya_Maska=0boolean array udg_Skill_100integer array udg_Inicializaciya_herointeger udg_Predel=0
integer udg_Rabdom_Skill=0unit udg_attacked=nullunit udg_KJIoH=nullitem udg_item=nullboolean array udg_Obelisklightning array udg_Zvezdainteger udg_Wolf=0integer array udg_Hero_skill_1integer array udg_Hero_skill_6integer array udg_Hero_skill_2integer array udg_Hero_skill_3integer array udg_Hero_skill_4integer array udg_Hero_skill_5integer udg_Skill_poluchen=0
boolean array udg_Hero_skill_Boolean_1boolean array udg_Hero_skill_Boolean_2boolean array udg_Hero_skill_Boolean_6boolean array udg_Hero_skill_Boolean_3boolean array udg_Hero_skill_Boolean_4boolean array udg_Hero_skill_Boolean_5effect array udg_Specefectquest array udg_Zadanieinteger udg_Troll=0integer udg_Random=0
integer udg_Gold=0integer array udg_MoobSinteger udg_Sargeros_armor=0
integer udg_Day=0integer udg_Sbor_rudy=0integer array udg_Hero_skill_lvl_1integer array udg_Hero_skill_lvl_2integer array udg_Hero_skill_lvl_3integer array udg_Hero_skill_lvl_4integer array udg_Hero_skill_lvl_5integer array udg_Hero_skill_lvl_6string array udg_Timer_stringreal array udg_Timer_celoemultiboard udg_Okno_taymer=nullinteger array udg_Zadanie_oskolkyunit array udg_Target_Uniteffect array udg_Spec_efect_Ochistka
unit array udg_Kill_Unit
integer array udg_Stavka
integer udg_ItemsTip2=0integer udg_ItemsTip3=0integer udg_ItemsTip4=0dialog udg_Dialog_slognost=nullbutton array udg_Button_slognost
unit udg_Ten_illidana=nullinteger udg_Priz_Victory=0unit udg_Ktun=nullinteger array udg_CameraDaln
integer udg_MaxDal=0
integer udg_MinDal=0
unit array udg_Sumka
integer udg_Uvelir_predmet=0
integer udg_Unit_Defense=0dialog udg_Dialog_victory=nullbutton array udg_Button_victoryinteger udg_Uron_Generatoru=0integer udg_Dalaran_Portal=0
integer udg_ItemsTip5=0boolean array udg_Nestabilniy_Portal
rect gg_rct_Altar_mmalganusa=nullrect gg_rct_Boqnia=nullrect gg_rct_Derevnia=nullrect gg_rct_Dezertir=nullrect gg_rct_Drevo1=nullrect gg_rct_Drevo2=nullrect gg_rct_Drevo3=nullrect gg_rct_Electro=null
rect gg_rct_Elfy=nullrect gg_rct_Elfy_oborona=nullrect gg_rct_Elfy_oborona_strag_2=nullrect gg_rct_Elfy_oborona_strag1=null
rect gg_rct_Fenics=nullrect gg_rct_Hero_1=nullrect gg_rct_Hero_10=null
rect gg_rct_Hero_10A=nullrect gg_rct_Hero_11=null
rect gg_rct_Hero_11A=nullrect gg_rct_Hero_12=null
rect gg_rct_Hero_12A=nullrect gg_rct_Hero_13=null
rect gg_rct_Hero_13A=nullrect gg_rct_Hero_14=null
rect gg_rct_Hero_14A=nullrect gg_rct_Hero_15=null
rect gg_rct_Hero_1A=null
rect gg_rct_Hero_2=nullrect gg_rct_Hero_2A=null
rect gg_rct_Hero_3=nullrect gg_rct_Hero_3A=null
rect gg_rct_Hero_4=nullrect gg_rct_Hero_4A=null
rect gg_rct_Hero_5=nullrect gg_rct_Hero_5A=null
rect gg_rct_Hero_6=nullrect gg_rct_Hero_6A=null
rect gg_rct_Hero_7=nullrect gg_rct_Hero_7A=null
rect gg_rct_Hero_8=nullrect gg_rct_Hero_8A=null
rect gg_rct_Hero_9=nullrect gg_rct_Hero_9A=null
rect gg_rct_Hram_Elfov=nullrect gg_rct_Idushaya_vo_tme=null
rect gg_rct_Kladbishe=nullrect gg_rct_Kobolt=nullrect gg_rct_Kolodec_1=nullrect gg_rct_Kuznec_oborona=nullrect gg_rct_Ledinoy=null
rect gg_rct_Marshal_garitos_Objrjna=null
rect gg_rct_Marshal_garitos_Objrjna_2=nullrect gg_rct_Marshal_garitos_Objrjna_3=nullrect gg_rct_Marshal_garitos_Objrjna_4=nullrect gg_rct_Marshal_Oborona=null
rect gg_rct_Marshal_Oborona_2=nullrect gg_rct_Marshal_Oborona_3=nullrect gg_rct_Marshal_Oborona_4=nullrect gg_rct_Marshal_Oborona_5=nullrect gg_rct_Mediv_pole=nullrect gg_rct_Mobs_Attack=null
rect gg_rct_Mobs_Attack_2=nullrect gg_rct_Ogneniy=null
rect gg_rct_Podzemelie_neruba_1=null
rect gg_rct_Podzemelie_neruba_2=null
rect gg_rct_Podzemelie_neruba_3=null
rect gg_rct_Portal_Derevny_1=nullrect gg_rct_Portal_Derevny_2=nullrect gg_rct_Portal_Elfy_1=nullrect gg_rct_Portal_Elfy_2=nullrect gg_rct_Portal_Mediv_1=nullrect gg_rct_Portal_Mediv_2=nullrect gg_rct_Portal_Orky_1=nullrect gg_rct_Portal_Orky_2=nullrect gg_rct_Prokliatie_Elfy=null
rect gg_rct_Raskopki=nullrect gg_rct_Sfera_sveta=null
rect gg_rct_Tirend_1=nullrect gg_rct_Tirend_2=nullrect gg_rct_Tower_1=null
rect gg_rct_Tower_10=nullrect gg_rct_Tower_2=null
rect gg_rct_Tower_3=null
rect gg_rct_Tower_4=null
rect gg_rct_Tower_5=null
rect gg_rct_Tower_6=null
rect gg_rct_Tower_7=null
rect gg_rct_Tower_8=null
rect gg_rct_Tower_9=null
rect gg_rct_Ukradenaya_Povozka=nullrect gg_rct_Vedma=nullrect gg_rct_Vodinoy=null
rect gg_rct_Zaval=nullrect gg_rct_Zerno=nullrect gg_rct_Zona_1=nullrect gg_rct_Zona_2=nullrect gg_rct_Zona_3=nullrect gg_rct_Zona_4=nullrect gg_rct_Zona_5=nullrect gg_rct_Zona_6=nullrect gg_rct_Zona_7=nullrect gg_rct_Zona_8=nullrect gg_rct_Zona_9=nullrect gg_rct_Serdce_azuny_1=nullrect gg_rct_Serdce_azuny_2=nullrect gg_rct_Serdce_azuny_3=nullrect gg_rct_Farion=nullrect gg_rct_Orda=nullrect gg_rct_Samuro=nullrect gg_rct_Ogry=nullrect gg_rct_Vishka_orkov_1=nullrect gg_rct_Vishka_orkov_2=nullrect gg_rct_Grom_Zadira=null
rect gg_rct_Vishka_orkov_3=nullrect gg_rct_Vishka_orkov_4=nullrect gg_rct_Frostmorn=nullrect gg_rct_Morlok_lovushka=null
rect gg_rct_Pole_Phenicy=nullrect gg_rct_Zona_10=null
rect gg_rct_Zona_11=null
rect gg_rct_Dgayna=nullrect gg_rct_Paladin_oborona=null
rect gg_rct_Hram_Argusa=null
rect gg_rct_Mediv_oborona=nullrect gg_rct_Prizrachniy_lord=nullrect gg_rct_Monah=nullrect gg_rct_Ktun=nullrect gg_rct_Zamok=nullrect gg_rct_Kanalizaciya=nullrect gg_rct_Rohan=nullrect gg_rct_Sklep=nullrect gg_rct_Neptulon=nullrect gg_rct_Sluchayniy_artefakt=null
rect gg_rct_Kamennoe_ushelie=nullrect gg_rct_Kamenniy_utes=nullrect gg_rct_Bezlikie_Ozera=nullrect gg_rct_Dalaran=null
rect gg_rct_Peshera_Dalaran=null
rect gg_rct_Peshera_Dalaran_2=nullrect gg_rct_Peshera_Dalaran_4=nullrect gg_rct_Peshera_Dalaran_3=nullrect gg_rct_Peshera_Zatoplenaya=null
rect gg_rct_Peshera_Zatoplenaya_2=nullrect gg_rct_Dead_Forest=null
rect gg_rct_Viggenaya_Zemlia=nullrect gg_rct_Portal_Sargerosa=nullrect gg_rct_Sargeros_Final=nullrect gg_rct_Hero=nullrect gg_rct_Povelitel_tmy=nullrect gg_rct_Ledianoy_tron=nullrect gg_rct_Dalaran_Portal=nullrect gg_rct_Podzemelie_Dalarana=null
rect gg_rct_Zatoplennoe_podzemelie=nullrect gg_rct_Silvana=null
rect gg_rct_Silvana_2=nullrect gg_rct_Artas_Visadka=nullrect gg_rct_Smert_Drakonoborca=nullrect gg_rct_Biblioteka=nullrect gg_rct_Biblioteka_Vhod=null
rect gg_rct_Biblioteka_Dalarana=null
rect gg_rct_Lovushka_Dalaran_1=nullrect gg_rct_Lovushka_Dalaran_2=nullrect gg_rct_Lovushka_Dalaran_3=nullrect gg_rct_Lovushka_Dalaran_4=nullrect gg_rct_Lovushka_Dalaran_5=nullrect gg_rct_Lovushka_Dalaran_6=nullrect gg_rct_Lovushka_Dalaran_7=nullrect gg_rct_Lovushka_Dalaran_8=nullrect gg_rct_Lovushka_Dalaran_9=nullrect gg_rct_Lovushka_Dalaran_10=null
rect gg_rct_Lovushka_Dalaran_11=null
rect gg_rct_Lovushka_Dalaran_12=null
rect gg_rct_Lovushka_Dalaran_13=null
rect gg_rct_Lovushka_Dalaran_14=null
rect gg_rct_Lovushka_Dalaran_15=null
rect gg_rct_Lovushka_Dalaran_16=null
rect gg_rct_Lovushka_Dalaran_17=null
rect gg_rct_Lovushka_Dalaran_18=null
rect gg_rct_Lovushka_Dalaran_19=null
rect gg_rct_Lovushka_Dalaran_20=null
rect gg_rct_Lovushka_Dalaran_21=null
rect gg_rct_Ostrov_piratov_1=nullrect gg_rct_Ostrov_piratov_2=nullrect gg_rct_Ostrov_piratov_3=nullrect gg_rct_Ungoro=nullrect gg_rct_More=nullrect gg_rct_Peshera_Magmy=nullrect gg_rct_Peshera_Magmy_2=null
rect gg_rct_Sklep_vhod=nullrect gg_rct_Sklep_exit=nullrect gg_rct_Sklep_Room_1=nullrect gg_rct_Sklep_Room_2=nullrect gg_rct_Sklep_Room_3=nullrect gg_rct_Sklep_Room_4=nullrect gg_rct_Nestabilniy_Portal=nullrect gg_rct_Portal_Beg=nullrect gg_rct_Peshera_Dreneev_1=nullrect gg_rct_Peshera_Dreneev_1_Exit=nullrect gg_rct_Peshera_Dreneev_2=nullrect gg_rct_Peshera_Dreneev_2_Exit=nullrect gg_rct_Peshera_Dreneyev_Krip=nullrect gg_rct_Derevnia_Dreneev=nullrect gg_rct_Garpii=nullcamerasetup gg_cam_Hero_Respaun=null
camerasetup gg_cam_Inicializaciya=nullcamerasetup gg_cam_Inicializaciya2=nullcamerasetup gg_cam_Camera_004=nullsound gg_snd_KeeperOfTheGrovePissed5=nullsound gg_snd_KeeperOfTheGroveReady1=null
sound gg_snd_MaievPissed3=nullsound gg_snd_MaievYes1=nullsound gg_snd_ArthasPissed2=nullsound gg_snd_ArthasPissed7=nullsound gg_snd_EvilArthasPissed3=nullsound gg_snd_EvilArthasYes2=null
trigger gg_trg_Defense_active=nulltrigger gg_trg_Volna_Defense=nulltrigger gg_trg_Volna_Defense_Bonus=nulltrigger gg_trg_Volna_Defense_Boss=nulltrigger gg_trg_Type_Unit=nulltrigger gg_trg_Camera=nulltrigger gg_trg_For_Player_1=null
trigger gg_trg_For_Player_1_Active=nulltrigger gg_trg_Camera_1_____________________u=nulltrigger gg_trg_For_Player_2=null
trigger gg_trg_For_Player_2_Active=nulltrigger gg_trg_Camera_3=null
trigger gg_trg_For_Player_3=null
trigger gg_trg_For_Player_3_Active=nulltrigger gg_trg_Camera_4=null
trigger gg_trg_For_Player_4=null
trigger gg_trg_For_Player_4_Active=nulltrigger gg_trg_Camera_5=null
trigger gg_trg_For_Player_5=null
trigger gg_trg_For_Player_5_Active=nulltrigger gg_trg_Camera_6=null
trigger gg_trg_For_Player_6=null
trigger gg_trg_For_Player_6_Active=nulltrigger gg_trg_Bonus_Active=null
trigger gg_trg_Bonus_uchenik=nulltrigger gg_trg_Bonus_adept=nulltrigger gg_trg_Bonus_magistr=nulltrigger gg_trg_Bonus_gold_coin=nulltrigger gg_trg_Bonus_gold_purse=null
trigger gg_trg_Bonus_gold_bag=nulltrigger gg_trg_Bonus_pehotinec=nulltrigger gg_trg_Bonus_strag=nulltrigger gg_trg_Bonus_hranitel=nulltrigger gg_trg_Drevniy_svitok_freeze_time=nulltrigger gg_trg_Rohan=nulltrigger gg_trg_Ledinaya_gliba=nulltrigger gg_trg_Pole_phenicy=null
trigger gg_trg_Night_Dead=nulltrigger gg_trg_Ktun=null
trigger gg_trg_Ktun_Attack=nulltrigger gg_trg_Ktun_lovushka=nulltrigger gg_trg_Ktun_ai=nulltrigger gg_trg_Smertokril_Napadenie=null
trigger gg_trg_Zaragennoe_zerno=null
trigger gg_trg_Zaragennoe_zerno_Active=nulltrigger gg_trg_Povelitel_tmy=nulltrigger gg_trg_Dalaran_portal_1=null
trigger gg_trg_Dalaran_portal_2=null
trigger gg_trg_Dalaran_portal_3=null
trigger gg_trg_Dalaran_portal_4=null
trigger gg_trg_Dalaran_portal_5=null
trigger gg_trg_Dalaran_portal_6=null
trigger gg_trg_Dalaran_portal_7=null
trigger gg_trg_Dalaran_portal_8=null
trigger gg_trg_Dalaran_portal_9=null
trigger gg_trg_Kamen_vozrogdeniya=nulltrigger gg_trg_Kamen_vozrogdeniya_Active=nulltrigger gg_trg_Kamen_vozrogdeniya_2=null
trigger gg_trg_Kamen_vozrogdeniya_Active_2=nulltrigger gg_trg_Kamen_vozrogdeniya_3=null
trigger gg_trg_Kamen_vozrogdeniya_Active_3=nulltrigger gg_trg_Kamen_vozrogdeniya_4=null
trigger gg_trg_Kamen_vozrogdeniya_Active_4=nulltrigger gg_trg_Magicheskiy_Generator_Dalaran=nulltrigger gg_trg_Magicheskiy_Generator_Active=null
trigger gg_trg_Richag_Nestabilniy_Portal=nulltrigger gg_trg_Silvana=nulltrigger gg_trg_Silvana_2=nulltrigger gg_trg_Artes=nulltrigger gg_trg_Artas_Frostmorn=nulltrigger gg_trg_Uron_generatoru=nulltrigger gg_trg_Victory=nulltrigger gg_trg_Victory_vibor=nulltrigger gg_trg_Nerub_probugdenie=nulltrigger gg_trg_Sargeros=null
trigger gg_trg_Manoroh=nulltrigger gg_trg_Nerub=nulltrigger gg_trg_Komand_Attacnk=nulltrigger gg_trg_Attack_1=null
trigger gg_trg_Attack_2=null
trigger gg_trg_Attack_3=null
trigger gg_trg_Attak_Legion=null
trigger gg_trg_Sargeros_Vrata=nulltrigger gg_trg_Sargeras_armor=nulltrigger gg_trg_Sargeras_Golemy=nulltrigger gg_trg_Sargeras_Prityagenie_smerty=nulltrigger gg_trg_Sargeras_Zabvenie=nulltrigger gg_trg_Sargeras_Marionetka=nulltrigger gg_trg_Sargeras_Zdaniya=null
trigger gg_trg_Sargeras_Probit_Shipy=nulltrigger gg_trg_Sargeras_Sila_off=nulltrigger gg_trg_Sargeras_Lovkost_off=null
trigger gg_trg_Sargeras_Mana_off=nulltrigger gg_trg_Sargeras_Dalniy_boi=nulltrigger gg_trg_Sargeras_Vozrogdenie=null
trigger gg_trg_Portal_Sargeros=nulltrigger gg_trg_Dead_monolit_1=nulltrigger gg_trg_Dead_monolit_2=nulltrigger gg_trg_Dead_monolit_3=nulltrigger gg_trg_Sargeras_OS=nulltrigger gg_trg_Sargeras_OS_70=nulltrigger gg_trg_Sargeras_OS_50=nulltrigger gg_trg_Sargeras_OS_35=nulltrigger gg_trg_Sargeras_OS_25=nulltrigger gg_trg_Dead_Sargeros=nulltrigger gg_trg_Trall=nulltrigger gg_trg_Sarina=nulltrigger gg_trg_Duh_tmy=nulltrigger gg_trg_Korol_1=nulltrigger gg_trg_Mediv_1=nulltrigger gg_trg_Svitok_mediva_1=nulltrigger gg_trg_Korol_2=nulltrigger gg_trg_Korol_2_B=nulltrigger gg_trg_Mediv=nulltrigger gg_trg_Mediv_Complite=nulltrigger gg_trg_Mediv_oborona=nulltrigger gg_trg_Podskazka=nulltrigger gg_trg_Generator_dead=nulltrigger gg_trg_Generator_dead_2=null
trigger gg_trg_Generator_dead_3=null
trigger gg_trg_Svitok_staly=null
trigger gg_trg_Drenei_AI=nulltrigger gg_trg_Ruda=null
trigger gg_trg_Kuznec=nulltrigger gg_trg_Kuznec_A=null
trigger gg_trg_Kuznec_B=null
trigger gg_trg_Kuznec_Complete_A=nulltrigger gg_trg_Kuznec_Complete_B=nulltrigger gg_trg_Sbor_rudy=nulltrigger gg_trg_Kuznec_Complete=nulltrigger gg_trg_Kuznec_2=null
trigger gg_trg_Sbor_rudy_2=nulltrigger gg_trg_Kuznec_Complete_2=nulltrigger gg_trg_Kuznec_2_A=nulltrigger gg_trg_Kuznec_Complete_2_A=nulltrigger gg_trg_Kuznec_2_B=nulltrigger gg_trg_Sbor_mifrila=null
trigger gg_trg_Kuznec_Complete_2_B=nulltrigger gg_trg_Kuznec_Oborona=nulltrigger gg_trg_Marshal_1=nulltrigger gg_trg_Smert_Dezertira=nulltrigger gg_trg_Marshal_complete=null
trigger gg_trg_Marshal_2=nulltrigger gg_trg_Korol_vorov_AI=nulltrigger gg_trg_Smert_Korola_vorov=nulltrigger gg_trg_Marshal_complete_2=nulltrigger gg_trg_Marshal_3=nulltrigger gg_trg_Smert_Nadziratela=nulltrigger gg_trg_Marshal_complete_3=nulltrigger gg_trg_Marshal_4=nulltrigger gg_trg_Smert_Boynia=null
trigger gg_trg_Marshal_complete_4=nulltrigger gg_trg_Marshal_Oborona=nulltrigger gg_trg_Marshal_Oborona_2=nulltrigger gg_trg_Nachalo_rituala_Necromant=nulltrigger gg_trg_Priziv_skeletov=nulltrigger gg_trg_Incvizitor_1=null
trigger gg_trg_Smert_necromanta=null
trigger gg_trg_Incvizitor_complete=nulltrigger gg_trg_Incvizitor_2=null
trigger gg_trg_Vedma_v_derevny=nulltrigger gg_trg_Vedma_smena_oblika=nulltrigger gg_trg_Smert_Vedmy=nulltrigger gg_trg_Incvizitor_complete_2=nulltrigger gg_trg_Vedma_AI=null
trigger gg_trg_Ten_AI=nulltrigger gg_trg_Troll_zn_1=nulltrigger gg_trg_Ten_dead=null
trigger gg_trg_Troll_zn_complete=nulltrigger gg_trg_Oboroten_1=nulltrigger gg_trg_Oboroten_2=nulltrigger gg_trg_Oboroten_3=nulltrigger gg_trg_Oboroten_Active=nulltrigger gg_trg_Vogak_volkov=null
trigger gg_trg_Vogak_volkov_Dead=nulltrigger gg_trg_Vogak_volkov_Complete=nulltrigger gg_trg_kaban_ai=null
trigger gg_trg_Redkiy_kaban_1=nulltrigger gg_trg_Kaban_dead_2=null
trigger gg_trg_Kaban_3_Complete=null
trigger gg_trg_Ochistka_ot_volkov=nulltrigger gg_trg_Ohistka_ot_volkov_complite=nulltrigger gg_trg_Erl_oborona=nulltrigger gg_trg_Kobolt=nulltrigger gg_trg_Kobolt_dead=nulltrigger gg_trg_Kobolt_attack=nulltrigger gg_trg_Kobolt_Complete=nulltrigger gg_trg_Kobolt_ochistka=nulltrigger gg_trg_Kobolt_ochistka_Complete=null
trigger gg_trg_Noviy_instrument=null
trigger gg_trg_Noviy_instrument_Dostavlen=nulltrigger gg_trg_Zapusk_ukradenaya_povozka=nulltrigger gg_trg_Ukradenaya_povozka=nulltrigger gg_trg_Ukradeniy_otshet=null
trigger gg_trg_Zelie_omologeniya=nulltrigger gg_trg_Omologenie_1=null
trigger gg_trg_Omologenie_2=null
trigger gg_trg_Omologenie_3=null
trigger gg_trg_Omologenie_4=null
trigger gg_trg_Zelie_vozrogdenie=nulltrigger gg_trg_Zelie_vozrogdeniya_complete=nulltrigger gg_trg_Zelie_berserka=nulltrigger gg_trg_Zelie_berserka_complete=nulltrigger gg_trg_Zapusk=nulltrigger gg_trg_Vzriv_v_shahte=nulltrigger gg_trg_Vzriv_prohoda=nulltrigger gg_trg_Zapusk_Kel=nulltrigger gg_trg_Duh_morey=nulltrigger gg_trg_Duh_morey_complete=nulltrigger gg_trg_Duh_ognia=nulltrigger gg_trg_Duh_ognia_complete=nulltrigger gg_trg_Duh_lda=nulltrigger gg_trg_Duh_lda_complite=null
trigger gg_trg_Sfera_lda_pogoda=null
trigger gg_trg_Duh_Groma=nulltrigger gg_trg_Duh_Groma_complite=nulltrigger gg_trg_Duh_yada=null
trigger gg_trg_Duh_yada_complite=nulltrigger gg_trg_Duh_Zamedleniya=nulltrigger gg_trg_Duh_Zamedleniya_complite=null
trigger gg_trg_Duh_Tmy=nulltrigger gg_trg_Duh_Tmy_complite=null
trigger gg_trg_Duh_Prokliatiy=nulltrigger gg_trg_Duh_Prokliatiy_complite=nulltrigger gg_trg_Duh_Angela=nulltrigger gg_trg_Duh_Angela_complite=nulltrigger gg_trg_Duh_Astrala=nulltrigger gg_trg_Duh_Astrala_complite=null
trigger gg_trg_Duh_krovy=nulltrigger gg_trg_Duh_Krovy_complite=nulltrigger gg_trg_Duh_sveta=nulltrigger gg_trg_Duh_Sveta_complite=nulltrigger gg_trg_Zapusk_Kenarius=nulltrigger gg_trg_Elfy=null
trigger gg_trg_Temnie_elfy_napadenie=nulltrigger gg_trg_Temnie_elfy_Usilenie=null
trigger gg_trg_Kenarius_oborona=null
trigger gg_trg_Kenarius_oborona_complite=nulltrigger gg_trg_Kenarius_Rog=null
trigger gg_trg_Kenarius_Rog_Complite=nulltrigger gg_trg_Hram_kenariusa=nulltrigger gg_trg_Kenatius_Oborona_Zamka=nulltrigger gg_trg_Tirend_luk=nulltrigger gg_trg_Tirend_luk_complit=nulltrigger gg_trg_Tirend_oborona=nulltrigger gg_trg_Mev_ilidan=nulltrigger gg_trg_Mev_illidan_complit=nulltrigger gg_trg_Ilidan_dead=nulltrigger gg_trg_Mev_oborona=nulltrigger gg_trg_Obelisk_1=nulltrigger gg_trg_Obelisk_2=nulltrigger gg_trg_Obelisk_3=nulltrigger gg_trg_Obelisk_4=nulltrigger gg_trg_Obelisk_5=nulltrigger gg_trg_Farion_obelisk=nulltrigger gg_trg_Farion_obelisk_complite=nulltrigger gg_trg_Farion_oborona=nulltrigger gg_trg_Zapusk_Demonicheskaya_krov=nulltrigger gg_trg_Samuro=nulltrigger gg_trg_Grom_zadira=nulltrigger gg_trg_Grom_Zadira_Complite=null
trigger gg_trg_Grom_Zadira_oborona=nulltrigger gg_trg_Kern_ogry=nulltrigger gg_trg_Kern_ogry_Complite=nulltrigger gg_trg_Kern_oborona=null
trigger gg_trg_Drek_tar_odergimost=nulltrigger gg_trg_Drek_tar_odergimost_complite=null
trigger gg_trg_Drek_Tar_Oborona=null
trigger gg_trg_Zulman_put_duhov=null
trigger gg_trg_Zulman_put_duhov_complite=nulltrigger gg_trg_Zulmar_Oborona=nulltrigger gg_trg_Tank_pochinka=nulltrigger gg_trg_Tank_complite=nulltrigger gg_trg_Goblinskiy_rezak=null
trigger gg_trg_Goblinskiy_rezak_Complite=nulltrigger gg_trg_Poteriavshayasia_gruppa=nulltrigger gg_trg_Umirayushiy_pehotinec=nulltrigger gg_trg_Poteriavshayasia_gruppa_Complite=null
trigger gg_trg_Pehotinec_oborona=nulltrigger gg_trg_Volshebnie_fonary=nulltrigger gg_trg_Volshebniy_fonar=null
trigger gg_trg_Volshebniy_fonar_2=nulltrigger gg_trg_Volshebniy_fonar_3=nulltrigger gg_trg_Volshebniy_fonar_4=nulltrigger gg_trg_Volshebniy_fonar_5=nulltrigger gg_trg_Volshebniiy_fonar_Complite=nulltrigger gg_trg_Obuchenie_magii=nulltrigger gg_trg_Obuchenie_magii_Complite=null
trigger gg_trg_Obuchenie_magii_2=nulltrigger gg_trg_Obuchenie_magii_Complite_2=nulltrigger gg_trg_Obuchenie_magii_3=nulltrigger gg_trg_Obuchenie_magii_Complite_3=nulltrigger gg_trg_Djayna_Oborona=nulltrigger gg_trg_Obuchenie_sily=nulltrigger gg_trg_Obuchenie_sily_Complite=nulltrigger gg_trg_Obuchenie_sily_2=null
trigger gg_trg_Obuchenie_sily_Complite_2=nulltrigger gg_trg_Obuchenie_sily_3=null
trigger gg_trg_Obuchenie_sily_Complite_3=nulltrigger gg_trg_Paladin_Oborona=nulltrigger gg_trg_Brakoniery=nulltrigger gg_trg_Ukradeniy_koshelek=nulltrigger gg_trg_Ubiystvo_gitelia=null
trigger gg_trg_Bochonok_elia=nulltrigger gg_trg_Kanalizaciya=null
trigger gg_trg_Ogerelie_Amelii=nulltrigger gg_trg_Ogerelie_Amelii_Active=nulltrigger gg_trg_proverka=null
trigger gg_trg_proverka_3=nulltrigger gg_trg_proverka_2=nulltrigger gg_trg_Zabvenie=null
trigger gg_trg_Kniga_1=nulltrigger gg_trg_Kniga_2=nulltrigger gg_trg_Udar_toporom_active=nulltrigger gg_trg_Zemletresenie_Active=null
trigger gg_trg_Kniga_3=nulltrigger gg_trg_Kniga_4=nulltrigger gg_trg_Ledinie_oskolky_active=nulltrigger gg_trg_Sila_bury_active=null
trigger gg_trg_Smertelniy_yad_active=nulltrigger gg_trg_Lunnie_streli_active=null
trigger gg_trg_Osveshennoe_orugie_active=nulltrigger gg_trg_Kniga_5=nulltrigger gg_trg_Mentalnoe_vospolnenie=nulltrigger gg_trg_Regeneraciya=null
trigger gg_trg_Edinenie_s_prirodoy=nulltrigger gg_trg_Shit_smerty_skill=nulltrigger gg_trg_Kniga_6=nulltrigger gg_trg_Trupoedu_Lvl=null
trigger gg_trg_Ogivit_mertvih_Lvl=nulltrigger gg_trg_Parazit_Lvl=nulltrigger gg_trg_Lik_tlena_Lvl=nulltrigger gg_trg_Zov_mertvih_Lvl=nulltrigger gg_trg_Razritaya_mogila_Lvl=null
trigger gg_trg_Adskaya_gonchaya_Lvl=null
trigger gg_trg_Strag_preispodnii_Lvl=nulltrigger gg_trg_Pechat_preispodnii_Lvl=nulltrigger gg_trg_Kniga_7=nulltrigger gg_trg_Gromovoy_molot_active=nulltrigger gg_trg_Kniga_8=nulltrigger gg_trg_Kniga_9=nulltrigger gg_trg_Sklep_richag_1=nulltrigger gg_trg_Sklep_richag_2=nulltrigger gg_trg_Sklep_richag_3=nulltrigger gg_trg_Sklep_richag_4=nulltrigger gg_trg_Sklep_richag_5=nulltrigger gg_trg_Sklep_richag_6=nulltrigger gg_trg_Skelet_Golem=null
trigger gg_trg_Oskvernenniy_hranitel=nulltrigger gg_trg_Chernaya_strela_2=nulltrigger gg_trg_Smert_Korolia_Frostmorn=nulltrigger gg_trg_Ingridienty=nulltrigger gg_trg_Elinnie_Moby=null
trigger gg_trg_Sunduk_kill=nulltrigger gg_trg_Derevianniy_sunduk=nulltrigger gg_trg_Gelezniy_sunduk=nulltrigger gg_trg_Magiheskiy_sunduk=nulltrigger gg_trg_Zacharovanniy_sunduk=null
trigger gg_trg_Serdce_azuny_1=nulltrigger gg_trg_Serdce_azuny_2=nulltrigger gg_trg_Serdce_azuny_3=nulltrigger gg_trg_Richag_1=null
trigger gg_trg_Richag_2=null
trigger gg_trg_Richag_3=null
trigger gg_trg_Richag_4=null
trigger gg_trg_Pauk_go=nulltrigger gg_trg_Satir_gp=null
trigger gg_trg_Satiry=nulltrigger gg_trg_Satir_Ogon=nulltrigger gg_trg_Gnoll_go=null
trigger gg_trg_Gnolly=nulltrigger gg_trg_Wolf_go=nulltrigger gg_trg_Wolf=null
trigger gg_trg_Ungoro=nulltrigger gg_trg_Morlock_go=nulltrigger gg_trg_Morlock=nulltrigger gg_trg_Morlock_lovusjka=null
trigger gg_trg_Troll_go=null
trigger gg_trg_Tuskarci_go=nulltrigger gg_trg_Drenei_go=nulltrigger gg_trg_Troll=nulltrigger gg_trg_Troll_Set=nulltrigger gg_trg_Kammennoe_ushelie_Go=null
trigger gg_trg_Kammennoe_ushelie=nulltrigger gg_trg_Kammenniy_utes_Go=nulltrigger gg_trg_Peshera_Dreneyev_Go=nulltrigger gg_trg_Garpii_Go=nulltrigger gg_trg_Kammenniy_utes=nulltrigger gg_trg_Bezlikie_ozera_Go=nulltrigger gg_trg_Bezlikie_ozera=nulltrigger gg_trg_Dalaran_Go=nulltrigger gg_trg_More_Go=nulltrigger gg_trg_Dalaran_podzemeliya_Go=nulltrigger gg_trg_Dalaran_biblioteka_Go=nulltrigger gg_trg_Dalaran_biblioteka_lovushky=nulltrigger gg_trg_Zatoplennaya_peshera=null
trigger gg_trg_Dalaran=nulltrigger gg_trg_Mertvie_zemli_Go=null
trigger gg_trg_Mertvie_Zemli=nulltrigger gg_trg_Viggenaya_zemlia_Go=nulltrigger gg_trg_Viggenaya_Zemlia=null
trigger gg_trg_Ledinoy_tron_Go=nulltrigger gg_trg_Ledinoy_tron=null
trigger gg_trg_Black_vdova=nulltrigger gg_trg_Kobolt_creep=null
trigger gg_trg_Bandit_go=nulltrigger gg_trg_Lovushka_bandit=nulltrigger gg_trg_Lovushka_Scelet=nulltrigger gg_trg_Lovushka_tuscarncev=nulltrigger gg_trg_Bandit=nulltrigger gg_trg_Bandit_shit=nulltrigger gg_trg_Duh_vody=null
trigger gg_trg_Duh_groma=nulltrigger gg_trg_Krab_go=nulltrigger gg_trg_Kentavry_go=nulltrigger gg_trg_Kentavry=null
trigger gg_trg_Salamandry_go=nulltrigger gg_trg_Salamandry=nulltrigger gg_trg_Beorny_Go=nulltrigger gg_trg_Beorny=nulltrigger gg_trg_Boynia_Go=nulltrigger gg_trg_Boynia_krip=nulltrigger gg_trg_Gold_scorpion=nulltrigger gg_trg_Nefritovaya_cherepaha=nulltrigger gg_trg_Eretik=nulltrigger gg_trg_Zerkalo_vremeny=nulltrigger gg_trg_Sklep_dreca=nulltrigger gg_trg_Zatochennaya_realnost=nulltrigger gg_trg_Neptulon=null
trigger gg_trg_Frostmorn_chary=nulltrigger gg_trg_Zapusk_crosher=nulltrigger gg_trg_Otpravka_predmetov=nulltrigger gg_trg_Topor_demona_____________________u=nulltrigger gg_trg_Bogestveniy_svet=null
trigger gg_trg_Frostmorn=nulltrigger gg_trg_Bogestveniy_Molot=nulltrigger gg_trg_Krugka_roma=nulltrigger gg_trg_Grabeg=nulltrigger gg_trg_Mudrost=nulltrigger gg_trg_Sfery_energii=nulltrigger gg_trg_Visvobogdenie_sfer=nulltrigger gg_trg_Okutivayushiy_holod=nulltrigger gg_trg_Ledinaya_volna=nulltrigger gg_trg_Zacharovannaya_strela=nulltrigger gg_trg_Issuhenie=nulltrigger gg_trg_Mogilshik=nulltrigger gg_trg_Povelitel_mogil=nulltrigger gg_trg_Ledinaya_smert=nulltrigger gg_trg_Necromant=nulltrigger gg_trg_Prokliatie=nulltrigger gg_trg_Chernaya_strela=nulltrigger gg_trg_Prokliataya_strela=nulltrigger gg_trg_Adskiy_ogon=nulltrigger gg_trg_Adskiy_ogon_Lvl=nulltrigger gg_trg_Agskaya_sekira=nulltrigger gg_trg_Vmestilishe_duh=nulltrigger gg_trg_Pogloshayushiy_gizn=nulltrigger gg_trg_Pogloshenie__many=nulltrigger gg_trg_Temniy_smerty_skill=nulltrigger gg_trg_Zacharovannie_streli=null
trigger gg_trg_Udar_hvostom=null
trigger gg_trg_Koralovaya_bronia=nulltrigger gg_trg_Udar_sokrusheniya=nulltrigger gg_trg_Ohotnichiya_sova=null
trigger gg_trg_Sila_eluny=nulltrigger gg_trg_Sila_eluny_Off=nulltrigger gg_trg_Milost_duhov=null
trigger gg_trg_Kontrattacka=null
trigger gg_trg_Isscustvo_klinka=null
trigger gg_trg_Sokrushenie=nulltrigger gg_trg_Miaso_kabana=null
trigger gg_trg_Udar_molota=nulltrigger gg_trg_Sotresaushou_udar=nulltrigger gg_trg_Iscelenie=nulltrigger gg_trg_Zalp_kartechu=nulltrigger gg_trg_Raketniy_zalp=nulltrigger gg_trg_Yadovitoe_oblako=null
trigger gg_trg_Znak_demona=nulltrigger gg_trg_Perst_boly=nulltrigger gg_trg_Perst_boly_LVL=nulltrigger gg_trg_Glaz_razuma=nulltrigger gg_trg_Udar_copiem=nulltrigger gg_trg_Bezumie=nulltrigger gg_trg_Kniga_zaklinaniy=null
trigger gg_trg_Prisutstvie_smerty=nulltrigger gg_trg_Sobiratel_duh=nulltrigger gg_trg_Povelitel_ada=nulltrigger gg_trg_Diyavolskaya_sila=nulltrigger gg_trg_Ogon_preispodnii=null
trigger gg_trg_Vihrevoy_udar=nulltrigger gg_trg_Maskirovka=nulltrigger gg_trg_Zacharovanniy_kopie=nulltrigger gg_trg_Mogilshuk=nulltrigger gg_trg_Ledinaya_volna_2=null
trigger gg_trg_Vlast_mertvih=nulltrigger gg_trg_Neupokoenniy=null
trigger gg_trg_Neupokoenniy_2=nulltrigger gg_trg_Ten_ilidana=nulltrigger gg_trg_Neveroyatnaya_metkost=nulltrigger gg_trg_Mertvoe_telo=null
trigger gg_trg_Boevoe_postroenie=nulltrigger gg_trg_Geroicheskaya_hrabrost=nulltrigger gg_trg_Raziashaya_kopie=null
trigger gg_trg_Gustoy_tuman=null
trigger gg_trg_Udar_molnii=nulltrigger gg_trg_Bezumie_2=nulltrigger gg_trg_Magik_Shit_1=null
trigger gg_trg_Magik_Shit_2=null
trigger gg_trg_Magik_Shit_3=null
trigger gg_trg_Magik_Shit_4=null
trigger gg_trg_Strely_1=null
trigger gg_trg_Strely_2=null
trigger gg_trg_Strely_3=null
trigger gg_trg_Strely_4=null
trigger gg_trg_Razum_basic=nulltrigger gg_trg_Sila_basic=nulltrigger gg_trg_Lovcost_basic=nulltrigger gg_trg_Topor_demona=null
trigger gg_trg_Kamen_razuma=null
trigger gg_trg_Kamen_lovkosty=nulltrigger gg_trg_Kamen_sily=nulltrigger gg_trg_Osveshenniy_sword=nulltrigger gg_trg_Osveshenniy_sword_2=nulltrigger gg_trg_Oscvernitel_Skill=nulltrigger gg_trg_Stavka=nulltrigger gg_trg_Otravlennie_kingaly_2=nulltrigger gg_trg_Kingaly_vozmezdiya_skill=null
trigger gg_trg_Kolco_lda_active=null
trigger gg_trg_Sfera_molnii=null
trigger gg_trg_Sfera_molot_groma=nulltrigger gg_trg_Shit_groma=nulltrigger gg_trg_dospeh_serafima_Skill=nulltrigger gg_trg_Sfera_Yada=nulltrigger gg_trg_Trezubec_smerty_sfera=nulltrigger gg_trg_Sfera_Zamedleniya=nulltrigger gg_trg_Sfera_tmy=nulltrigger gg_trg_Sfera_Prokliatiya=nulltrigger gg_trg_Sfera_Prokliatiya_Shit=nulltrigger gg_trg_Sfera_prokliatiya_sekira=null
trigger gg_trg_Sfera_sveta=nulltrigger gg_trg_Sfera_sveta_Dospeh=nulltrigger gg_trg_Sfera_dospeh_bessmertnogo=nulltrigger gg_trg_Sfera_dospeh_Krovy=nulltrigger gg_trg_Sfera_angela=null
trigger gg_trg_Lunniy_mech_sfera=nulltrigger gg_trg_Sfera_krovy=nulltrigger gg_trg_Mech_vampira=null
trigger gg_trg_Demonicheskaya_maska_sfera=nulltrigger gg_trg_Maska_izery_sfera=nulltrigger gg_trg_Dospeh_serafima=nulltrigger gg_trg_Zacharovanniy_venec=nulltrigger gg_trg_Lunniy_plash=null
trigger gg_trg_Luk_nefelima=null
trigger gg_trg_Kniga_Haosa=nulltrigger gg_trg_Kniga_prirody=nulltrigger gg_trg_Kniga_tmy=nulltrigger gg_trg_Kniga_Zaclinaniy=null
trigger gg_trg_Dospeh_Taurisana=null
trigger gg_trg_Ohotnichiy_mushket=nulltrigger gg_trg_Ohotnichiy_mushket_s_pricelom=nulltrigger gg_trg_Avtomaticheskiy_mushket=nulltrigger gg_trg_Mech_paladina=nulltrigger gg_trg_Kolco_minotavra=nulltrigger gg_trg_Kogty_Poveliteli_Ugasa=nulltrigger gg_trg_Nefritoviy_kingal=nulltrigger gg_trg_Dospeh_Krovy=null
trigger gg_trg_Dospeh_tampliera=null
trigger gg_trg_Dospeh_championa=null
trigger gg_trg_Dospeh_mraka=null
trigger gg_trg_Dospeh_bezdny=nulltrigger gg_trg_Kolco_muradina=nulltrigger gg_trg_Kolco_eonory=null
trigger gg_trg_Demonicheskiy_topor=nulltrigger gg_trg_Plashenica_zabitogo_korolia=nulltrigger gg_trg_Laty_korolia_mertvih=null
trigger gg_trg_Mantiya_bezlikih=null
trigger gg_trg_Gezl_faraonov=nulltrigger gg_trg_Razrushitel=nulltrigger gg_trg_Shlem_otstupnika=null
trigger gg_trg_Skipitr_haosa=nulltrigger gg_trg_Shit_Krovi=nulltrigger gg_trg_Amulet_poglosheniya=nulltrigger gg_trg_Lunniy_skipitr=nulltrigger gg_trg_Mech_zatochennoy_realnosty=nulltrigger gg_trg_Dospehi_bessmernogo=nulltrigger gg_trg_Gezl_morey=nulltrigger gg_trg_Elfiyskiy_Arbalet=nulltrigger gg_trg_Mehanicheskaya_perchatka=null
trigger gg_trg_Mehanicheskaya_Bronia=nulltrigger gg_trg_Goblinskaya_truba=nulltrigger gg_trg_Kolco_lva=nulltrigger gg_trg_Molot_sveta=nulltrigger gg_trg_Kamen_zatmeniya=nulltrigger gg_trg_Plash_neney=nulltrigger gg_trg_Shit_neupakoennih=nulltrigger gg_trg_Shit_Angela=nulltrigger gg_trg_Astralniy_shit_sfera=null
trigger gg_trg_Astralniy_molot_sfera=nulltrigger gg_trg_Misticheskiy_gezl_1=nulltrigger gg_trg_Misticheskiy_gezl_2=nulltrigger gg_trg_Misticheskiy_gezl_3=nulltrigger gg_trg_Misticheskiy_gezl_4=nulltrigger gg_trg_Misticheskiy_gezl_5=nulltrigger gg_trg_Misticheskiy_gezl_6=nulltrigger gg_trg_Misticheskiy_gezl_7=nulltrigger gg_trg_Luk_Silvany=nulltrigger gg_trg_Mech_realnosty=nulltrigger gg_trg_molot_sveta_sfera=nulltrigger gg_trg_Sfera_astrala=nulltrigger gg_trg_Gromovoy_gezl=nulltrigger gg_trg_Stalnoy_mech=null
trigger gg_trg_Stalnoy_topor=nulltrigger gg_trg_Stalnoy_Molot=nulltrigger gg_trg_Stalnoy_kogty=nulltrigger gg_trg_Stalnoy_perchatky=nulltrigger gg_trg_Stalnoy_luk=nulltrigger gg_trg_Stalnoy_Kingaly=nulltrigger gg_trg_Runicheskiy_dospeh=nulltrigger gg_trg_Stalnoy_gezl=null
trigger gg_trg_Stalnoy_trezubec=null
trigger gg_trg_Stalnoy_Kolchuga=null
trigger gg_trg_Stalnoy_Kolco=nulltrigger gg_trg_Stalnoy_Shit=null
trigger gg_trg_Stalnoy_Shit_2=nulltrigger gg_trg_Stalnoy_Amulet=nulltrigger gg_trg_Stalnoy_Shlem=nulltrigger gg_trg_Stalnoy_Sapogy=nulltrigger gg_trg_Stalnoy_MColco=nulltrigger gg_trg_Stalnoy_Plash=nulltrigger gg_trg_Stalnoy_SPerchatky=nulltrigger gg_trg_Mifriloviy_mech=nulltrigger gg_trg_Mifriloviy_topor=null
trigger gg_trg_Mifriloviy_molot=null
trigger gg_trg_Mifriloviy_kogty=null
trigger gg_trg_Mifriloviy_perchatky=null
trigger gg_trg_Mifriloviy_luk=nulltrigger gg_trg_Mifriloviy_Kingaly=nulltrigger gg_trg_Orochiya_colchuga=nulltrigger gg_trg_Mifriloviy_gezl=nulltrigger gg_trg_Mifriloviy_trezubec=nulltrigger gg_trg_Mifriloviy_kolchuga=nulltrigger gg_trg_Mifriloviy_kolco=null
trigger gg_trg_Mifriloviy_Shit=nulltrigger gg_trg_Mifriloviy_Shit_2=nulltrigger gg_trg_Mifriloviy_Amulet=nulltrigger gg_trg_Mifriloviy_Shlem=null
trigger gg_trg_Mifriloviy_Sapogy=nulltrigger gg_trg_Mifriloviy_MColco=nulltrigger gg_trg_Mifriloviy_Mogilnic=nulltrigger gg_trg_Mifriloviy_Plash=null
trigger gg_trg_Mifriloviy_SPerchatky=nulltrigger gg_trg_Adamantoviy_mech=null
trigger gg_trg_Adamantoviy_topor=nulltrigger gg_trg_Adamantoviy_molot=nulltrigger gg_trg_Adamantoviy_kogty=nulltrigger gg_trg_Adamantoviy_perchatky=nulltrigger gg_trg_Adamantoviy_luk=nulltrigger gg_trg_Adamantoviy_Kingaly=nulltrigger gg_trg_Gertvenniy_kingal=nulltrigger gg_trg_Adamantoviy_gezl=null
trigger gg_trg_Adamantoviy_trezubec=null
trigger gg_trg_Adamantoviy_Kolchuga=null
trigger gg_trg_Adamantoviy_Kolco=nulltrigger gg_trg_Adamantoviy_Shit=null
trigger gg_trg_Adamantoviy_Shit_2=nulltrigger gg_trg_Adamantoviy_Amulet=nulltrigger gg_trg_Adamantoviy_Shlem=nulltrigger gg_trg_Adamantoviy_Sapogy=nulltrigger gg_trg_Adamantoviy_MColco=nulltrigger gg_trg_Adamantoviy_Plash=nulltrigger gg_trg_Adamantoviy_SPerchatky=nulltrigger gg_trg_Krovaviy_mech=nulltrigger gg_trg_Krovaviy_topor=nulltrigger gg_trg_Krovaviy_molot=nulltrigger gg_trg_Krovaviy_kogty=nulltrigger gg_trg_Krovaviy_perchatky=nulltrigger gg_trg_Krovaviy_luk=null
trigger gg_trg_Krovaviy_Kingaly=null
trigger gg_trg_Oskvernitel=nulltrigger gg_trg_Krovaviy_gezl=nulltrigger gg_trg_Krovaviy_trezubec=nulltrigger gg_trg_Krovaviy_Kolchuga=nulltrigger gg_trg_Krovaviy_Kolco=nulltrigger gg_trg_Krovaviy_Shit=nulltrigger gg_trg_Krovaviy_Shit_2=nulltrigger gg_trg_Krovaviy_Amulet=nulltrigger gg_trg_Krovaviy_Shlem=nulltrigger gg_trg_Krovaviy_Sapogy=nulltrigger gg_trg_Krovaviy_MColco=nulltrigger gg_trg_Shlem_mev=nulltrigger gg_trg_Krovaviy_Plash=nulltrigger gg_trg_Krovaviy_SPerchatky=nulltrigger gg_trg_Luck_slez=nulltrigger gg_trg_Zvezdnaya_korona=null
trigger gg_trg_Plash_drevnih=nulltrigger gg_trg_Braslet_Azuny=nulltrigger gg_trg_Grom_molot=nulltrigger gg_trg_Trezubec_smerty=nulltrigger gg_trg_Kopie_tmy=nulltrigger gg_trg_Kolco_tmy=nulltrigger gg_trg_Shit_necromanta=nulltrigger gg_trg_Mech_adskogo_plameny=null
trigger gg_trg_Mech_poglosheniya=nulltrigger gg_trg_Mech_vishego_vampira=null
trigger gg_trg_Mech_angela=nulltrigger gg_trg_Nit_vremeny=nulltrigger gg_trg_Demonicheskaya_maska=null
trigger gg_trg_Ritualnaya_perchatky=null
trigger gg_trg_Proklitaya_sekira=nulltrigger gg_trg_Astralniy_molot=nulltrigger gg_trg_Shit_molnii=nulltrigger gg_trg_Shit_yada=nulltrigger gg_trg_Starinniy_krest=nulltrigger gg_trg_Otravlennie_kingaly=nulltrigger gg_trg_Ognenniy_shit_sfera=nulltrigger gg_trg_Povelitel_ognia_plash=nulltrigger gg_trg_Astralniy_shit=nulltrigger gg_trg_Shid_lda_sfera=nulltrigger gg_trg_Kolco_lda_sfera=nulltrigger gg_trg_Gezl_molnii=nulltrigger gg_trg_Gezl_Astrala_sfera=nulltrigger gg_trg_Kingaly_vozmezdiya=nulltrigger gg_trg_Dospehi_Titana=nulltrigger gg_trg_Laty_novoluniya=nulltrigger gg_trg_Shit_Kenariusa=nulltrigger gg_trg_Plash_Chistoy_Enerdii=nulltrigger gg_trg_Dospehi_paladina=null
trigger gg_trg_Zmeinnoe_kolco=nulltrigger gg_trg_Sapogy_Fenicsa=nulltrigger gg_trg_Maska_izery=nulltrigger gg_trg_Lunnie_kogty=null
trigger gg_trg_Raschlenitel=null
trigger gg_trg_Sword_padshih=nulltrigger gg_trg_Gubitel=nulltrigger gg_trg_Lunniy_mech=nulltrigger gg_trg_Shit_krovy_predmet=nulltrigger gg_trg_Serebrenniy_dospeh=nulltrigger gg_trg_Titanoviy_dospeh=null
trigger gg_trg_Boevie_kogty=null
trigger gg_trg_Demonicheskiy_mech=nulltrigger gg_trg_Izognutiy_kingal=null
trigger gg_trg_Sapogy_titana=nulltrigger gg_trg_Sapogy_druida=nulltrigger gg_trg_Ricarskiy_topor=nulltrigger gg_trg_Ricarskiy_molot=nulltrigger gg_trg_Luk_lunny=nulltrigger gg_trg_Amulet_chistoty=nulltrigger gg_trg_Nefritovoe_kopie=null
trigger gg_trg_Poyas_necromanta=null
trigger gg_trg_Topor_nora=nulltrigger gg_trg_Plash_ohotnika=nulltrigger gg_trg_Armirovanniy_plash=nulltrigger gg_trg_Plashenica_drakona=nulltrigger gg_trg_Botinky_ohotnika=null
trigger gg_trg_Bolotnie_botinky=null
trigger gg_trg_Sapogy_mertveca=nulltrigger gg_trg_Perchatky_ohotnika=nulltrigger gg_trg_Armirovannie_perchatky=nulltrigger gg_trg_Perchatky_drakona=nulltrigger gg_trg_Maska_trollia=nulltrigger gg_trg_Bronia_Okultista=null
trigger gg_trg_Plash_izgoya=null
trigger gg_trg_Kogty_s_shipamy=nulltrigger gg_trg_Misticheskie_kogty=nulltrigger gg_trg_Ogerelie_ohotnika=nulltrigger gg_trg_Trofeyniy_amulet=null
trigger gg_trg_Korall=nulltrigger gg_trg_Meshochek_d_priannostiamy=nulltrigger gg_trg_Kupecheskoe_odeyanie=null
trigger gg_trg_Karnavalnaya_maska=nulltrigger gg_trg_Perchatki_dvorinina=nulltrigger gg_trg_Zolotoe_kolco=nulltrigger gg_trg_Kristalnaya_statuetka=nulltrigger gg_trg_Sokrovisha_uvelir=nulltrigger gg_trg_Izumrudnaua_shkatulka=nulltrigger gg_trg_Shit_1=nulltrigger gg_trg_Shit_2=nulltrigger gg_trg_Shit_3=nulltrigger gg_trg_Shit_4=nulltrigger gg_trg_Stariy_posoh_1=nulltrigger gg_trg_Stariy_posoh_2=nulltrigger gg_trg_Stariy_posoh_3=nulltrigger gg_trg_Stariy_posoh_4=nulltrigger gg_trg_Amulet_1=null
trigger gg_trg_Amulet_2=null
trigger gg_trg_Amulet_3=null
trigger gg_trg_Amulet_4=null
trigger gg_trg_Poyas_1=nulltrigger gg_trg_Poyas_2=nulltrigger gg_trg_Poyas_3=nulltrigger gg_trg_Poyas_4=nulltrigger gg_trg_Mantiya_1=nulltrigger gg_trg_Mantiya_2=nulltrigger gg_trg_Mantiya_3=nulltrigger gg_trg_Mantiya_4=nulltrigger gg_trg_Braclet_1=nulltrigger gg_trg_Braclet_2=nulltrigger gg_trg_Braclet_3=nulltrigger gg_trg_Braclet_4=nulltrigger gg_trg_Gilet_1=nulltrigger gg_trg_Gilet_2=nulltrigger gg_trg_Gilet_3=nulltrigger gg_trg_Gilet_4=nulltrigger gg_trg_Shlem_Samutaya_1=null
trigger gg_trg_Shlem_Samutaya_2=null
trigger gg_trg_Shlem_Samutaya_3=null
trigger gg_trg_Shlem_Samutaya_4=null
trigger gg_trg_Mech_1=nulltrigger gg_trg_Mech_2=nulltrigger gg_trg_Mech_3=nulltrigger gg_trg_Mech_4=nulltrigger gg_trg_Katana_1=null
trigger gg_trg_Katana_2=null
trigger gg_trg_Katana_3=null
trigger gg_trg_Katana_4=null
trigger gg_trg_Ivoviy_Arbalet_1=null
trigger gg_trg_Ivoviy_Arbalet_2=null
trigger gg_trg_Ivoviy_Arbalet_3=null
trigger gg_trg_Ivoviy_Arbalet_4=null
trigger gg_trg_GDD_Variable_Creator=null
trigger gg_trg_GUI_Friendly_Damage_Detection=nulltrigger gg_trg_Configuration=nulltrigger gg_trg_Configuration2=nulltrigger gg_trg_Floating_Spell_Name=nulltrigger gg_trg_Floating_Damage_Taken=nulltrigger gg_trg_Display_Damage_System=nulltrigger gg_trg_Ferianskoe_zelie=null
trigger gg_trg_Zelie_trolley=nulltrigger gg_trg_Mercayushiy_eliksir=nulltrigger gg_trg_Zelie_stoykosty=nulltrigger gg_trg_Zelie_Moshy=nulltrigger gg_trg_Zelie_vinoslivosty=nulltrigger gg_trg_Feroninskoye_zelie=nulltrigger gg_trg_Vedminskoe_zelie=null
trigger gg_trg_Svitok_Prirody_1=null
trigger gg_trg_Svitok_Prirody_2=null
trigger gg_trg_Svitok_Prirody_3=null
trigger gg_trg_Svitok_Haosa_1=nulltrigger gg_trg_Svitok_Haosa_2=nulltrigger gg_trg_Svitok_Haosa_3=nulltrigger gg_trg_Svitok_Haosa_4=nulltrigger gg_trg_Svitok_Tmi_1=null
trigger gg_trg_Svitok_Tmi_2=null
trigger gg_trg_Svitok_Tmi_3=null
trigger gg_trg_ItemsToo=null
trigger gg_trg_ItemsPickUp=nulltrigger gg_trg_ItemsToo_2=nulltrigger gg_trg_ItemsPickUp_2=nulltrigger gg_trg_ItemsToo_3=nulltrigger gg_trg_ItemsPickUp_3=nulltrigger gg_trg_ItemsToo_4=nulltrigger gg_trg_ItemsPickUp_4=nulltrigger gg_trg_ItemsToo_5=nulltrigger gg_trg_ItemsPickUp_5=nulltrigger gg_trg_Inicializaciya_hero=nulltrigger gg_trg_Voscreshenie_heroe=nulltrigger gg_trg_Hero_LVL=null
trigger gg_trg_Hero_1=nulltrigger gg_trg_Hero_2=nulltrigger gg_trg_Hero_3=nulltrigger gg_trg_Hero_4=nulltrigger gg_trg_Hero_5=nulltrigger gg_trg_Hero_6=nulltrigger gg_trg_Hero_7=nulltrigger gg_trg_Hero_8=nulltrigger gg_trg_Hero_9=nulltrigger gg_trg_Hero_10=nulltrigger gg_trg_Hero_11=nulltrigger gg_trg_Hero_12=nulltrigger gg_trg_Hero_13=nulltrigger gg_trg_Hero_14=nulltrigger gg_trg_Hero_Random=nulltrigger gg_trg_MB_Create=nulltrigger gg_trg_Tally_Kills=nulltrigger gg_trg_Go=nulltrigger gg_trg_Ochistka_pamiaty=null
trigger gg_trg_Ohrana_monolit=nulltrigger gg_trg_Monolit_1=nulltrigger gg_trg_Monolit_2=nulltrigger gg_trg_Monolit_3=nulltrigger gg_trg_Monolit_4=nulltrigger gg_trg_Monolit_5=nulltrigger gg_trg_Monolit_6=nulltrigger gg_trg_Prizrachniy_lord=null
trigger gg_trg_Monah=nulltrigger gg_trg_Timer_inicializaciya=null
trigger gg_trg_Timer_sec=nulltrigger gg_trg_Timer=nulltrigger gg_trg_Portal_Elfy_1=nulltrigger gg_trg_Portal_Elfy_2=nulltrigger gg_trg_Portal_Orcy_1=nulltrigger gg_trg_Portal_Orcy_2=nulltrigger gg_trg_Portal_Derevny_1=null
trigger gg_trg_Portal_Derevny_2=null
trigger gg_trg_Portal_Mediv_1=nulltrigger gg_trg_Portal_Mediv_2=nulltrigger gg_trg_Peshera_Dalaran=nulltrigger gg_trg_Peshera_Dalaran_2=nulltrigger gg_trg_Peshera_Dalaran_3=nulltrigger gg_trg_Peshera_Dalaran_4=nulltrigger gg_trg_Peshera_Magmy=nulltrigger gg_trg_Peshera_Magmy_2=nulltrigger gg_trg_Biblioteka_Dalarana=nulltrigger gg_trg_Biblioteka_Dalarana_2=nulltrigger gg_trg_Sklep_1=nulltrigger gg_trg_Sklep_2=nulltrigger gg_trg_Peshera_Dreneev=nulltrigger gg_trg_Peshera_Dreneev_Exit=null
trigger gg_trg_Peshera_Dreneev_2=nulltrigger gg_trg_Peshera_Dreneev_2_Exit=nulltrigger gg_trg_Peshera_Zatoplenaya=nulltrigger gg_trg_Peshera_Zatoplenaya_2=nulltrigger gg_trg_Bank=null
trigger gg_trg_Postroyka_bashen=null
trigger gg_trg_Pokupka_zdaniy=nulltrigger gg_trg_Inicializaciya_decoraciy=null
trigger gg_trg_inicializaciya_decoraciy_2=nulltrigger gg_trg_Inicializaciya_zadaniy=nulltrigger gg_trg_Inicializaciya_zadaniy_2=null
trigger gg_trg_Inicializaciya=nulltrigger gg_trg_Inicializaciya_Stand=null
trigger gg_trg_Kuznica=nulltrigger gg_trg_Trenerovka=nulltrigger gg_trg_Exp_hero=null
trigger gg_trg_Opisanie=null
trigger gg_trg_Dop_slognost=null
trigger gg_trg_Day=nulltrigger gg_trg_Generator=nulltrigger gg_trg_Specific_hero=nulltrigger gg_trg_Level_Slognosty=nulltrigger gg_trg_Level_slognosty_vibor=nulltrigger gg_trg_Level_slognosty_vibor_active=null
trigger gg_trg_AntiChit=null
trigger gg_trg_AntiChit_2=nullunit gg_unit_H000_0001=nullunit gg_unit_n006_0056=nullunit gg_unit_narg_0334=nullunit gg_unit_nvlw_0119=nullunit gg_unit_narg_0333=nullunit gg_unit_Hant_0066=nullunit gg_unit_nwld_0067=nullunit gg_unit_ndmg_0116=nullunit gg_unit_u003_0115=nullunit gg_unit_h001_0112=nullunit gg_unit_H005_0201=nullunit gg_unit_ndqp_0118=nullunit gg_unit_ncop_0117=nullunit gg_unit_nkog_0108=nullunit gg_unit_nkol_0107=nullunit gg_unit_nbee_0106=nullunit gg_unit_nchp_0105=nullunit gg_unit_Orkn_0037=nullunit gg_unit_n002_0038=nullunit gg_unit_nfrg_0039=nullunit gg_unit_u000_0041=nullunit gg_unit_Ogrh_0043=nullunit gg_unit_Nbbc_0042=nullunit gg_unit_Nman_0044=nullunit gg_unit_nspp_0049=nullunit gg_unit_H00D_0256=nullunit gg_unit_nrvl_0353=nullunit gg_unit_ugrm_0071=nullunit gg_unit_ugrm_0072=nullunit gg_unit_ugrm_0073=nullunit gg_unit_ugrm_0074=nullunit gg_unit_uobs_0075=nullunit gg_unit_u001_0076=nullunit gg_unit_H002_0077=nullunit gg_unit_ncop_0078=nullunit gg_unit_ubsp_0080=nullunit gg_unit_hspt_0079=nullunit gg_unit_hspt_0081=nullunit gg_unit_u003_0113=nullunit gg_unit_Hmgd_0057=nullunit gg_unit_nban_0087=nullunit gg_unit_h003_0068=nullunit gg_unit_nbrg_0069=nullunit gg_unit_h004_0122=nullunit gg_unit_h004_0109=nullunit gg_unit_hbar_0121=nullunit gg_unit_hbar_0110=nullunit gg_unit_nhea_0124=nullunit gg_unit_nhea_0125=nullunit gg_unit_ncop_0127=nullunit gg_unit_nbld_0126=nullunit gg_unit_hbar_0128=nullunit gg_unit_hmil_0129=nullunit gg_unit_hmil_0130=nullunit gg_unit_hmil_0131=nullunit gg_unit_hmil_0132=nullunit gg_unit_hmil_0133=nullunit gg_unit_hmil_0134=nullunit gg_unit_hmil_0135=nullunit gg_unit_hmil_0136=nullunit gg_unit_nhea_0137=nullunit gg_unit_nhea_0138=nullunit gg_unit_nhea_0139=nullunit gg_unit_nhea_0140=nullunit gg_unit_hkni_0156=nullunit gg_unit_hfoo_0142=nullunit gg_unit_hfoo_0143=nullunit gg_unit_hfoo_0144=nullunit gg_unit_hfoo_0145=nullunit gg_unit_hrif_0146=nullunit gg_unit_hrif_0147=nullunit gg_unit_hrif_0148=nullunit gg_unit_hrif_0149=nullunit gg_unit_ngnv_0150=nullunit gg_unit_ncop_0151=nullunit gg_unit_uslh_0152=nullunit gg_unit_hkni_0153=nullunit gg_unit_hkni_0154=nullunit gg_unit_hkni_0155=nullunit gg_unit_etoe_0160=nullunit gg_unit_ncte_0161=nullunit gg_unit_n008_0186=nullunit gg_unit_h006_0111=nullunit gg_unit_H01E_0735=nullunit gg_unit_U014_0734=nullunit gg_unit_H01C_0731=nullunit gg_unit_H01D_0732=nullunit gg_unit_U013_0733=nullunit gg_unit_Hpal_0257=nullunit gg_unit_h007_0208=nullunit gg_unit_ncop_0209=nullunit gg_unit_Utic_0214=nullunit gg_unit_Hpb2_0213=nullunit gg_unit_Hmbr_0215=nullunit gg_unit_Hkal_0220=nullunit gg_unit_Hjai_0221=nullunit gg_unit_Naka_0222=nullunit gg_unit_nhew_0225=nullunit gg_unit_nvl2_0223=nullunit gg_unit_nvil_0224=nullunit gg_unit_nvlk_0227=nullunit gg_unit_nvk2_0228=nullunit gg_unit_n008_0229=nullunit gg_unit_Hlgr_0230=nullunit gg_unit_hkni_0231=nullunit gg_unit_hkni_0232=nullunit gg_unit_hkni_0233=nullunit gg_unit_hkni_0234=nullunit gg_unit_hkni_0235=nullunit gg_unit_hkni_0236=nullunit gg_unit_hkni_0237=nullunit gg_unit_hkni_0238=nullunit gg_unit_hkni_0239=nullunit gg_unit_hkni_0240=nullunit gg_unit_hkni_0241=nullunit gg_unit_hkni_0242=nullunit gg_unit_uzg1_0251=nullunit gg_unit_uzg1_0252=nullunit gg_unit_usep_0253=nullunit gg_unit_H00Q_0541=nullunit gg_unit_h006_0255=nullunit gg_unit_n00C_0258=nullunit gg_unit_nsoc_0264=nullunit gg_unit_nskg_0263=nullunit gg_unit_ovln_0265=nullunit gg_unit_ovln_0266=nullunit gg_unit_Nalc_0268=nullunit gg_unit_nmoo_0271=nullunit gg_unit_hphx_0272=nullunit gg_unit_n00D_0274=nullunit gg_unit_Hart_0331=nullunit gg_unit_halt_0275=nullunit gg_unit_h009_0276=nullunit gg_unit_h009_0277=nullunit gg_unit_h009_0278=nullunit gg_unit_h009_0279=nullunit gg_unit_h009_0280=nullunit gg_unit_h009_0281=nullunit gg_unit_ngol_0285=nullunit gg_unit_Uanb_0282=nullunit gg_unit_h00B_0292=nullunit gg_unit_nbee_0291=nullunit gg_unit_Ntin_0305=nullunit gg_unit_hrtt_0306=nullunit gg_unit_hkni_0309=nullunit gg_unit_nhem_0315=nullunit gg_unit_nvl2_0317=nullunit gg_unit_nvl2_0319=nullunit gg_unit_ncp3_0330=nullunit gg_unit_Hapm_0332=nullunit gg_unit_Hamg_0054=nullunit gg_unit_Hblm_0273=nullunit gg_unit_H00C_0338=nullunit gg_unit_Nfir_0348=nullunit gg_unit_nfv4_0359=nullunit gg_unit_nsel_0347=nullunit gg_unit_H00F_0346=nullunit gg_unit_H00E_0050=nullunit gg_unit_ndrj_0051=nullunit gg_unit_h00G_0065=nullunit gg_unit_nvdg_0335=nullunit gg_unit_ndmu_0336=nullunit gg_unit_ncop_0343=nullunit gg_unit_Hgam_0344=nullunit gg_unit_Uvng_0345=nullunit gg_unit_Ecen_0357=nullunit gg_unit_emow_0377=nullunit gg_unit_Etyr_0052=nullunit gg_unit_Ewrd_0337=nullunit gg_unit_esen_0342=nullunit gg_unit_esen_0369=nullunit gg_unit_ngob_0440=nullunit gg_unit_nhcn_0395=nullunit gg_unit_n00E_0401=nullunit gg_unit_nshr_0402=nullunit gg_unit_Eevi_0403=nullunit gg_unit_eilw_0404=nullunit gg_unit_nwat_0406=nullunit gg_unit_Emfr_0413=nullunit gg_unit_h00J_0422=nullunit gg_unit_h00J_0423=nullunit gg_unit_h00J_0424=nullunit gg_unit_h00J_0425=nullunit gg_unit_h00J_0426=nullunit gg_unit_h00J_0427=nullunit gg_unit_nwwd_0428=nullunit gg_unit_nssp_0432=nullunit gg_unit_nmrm_0429=nullunit gg_unit_nanc_0433=nullunit gg_unit_nhhr_0436=nullunit gg_unit_ntrh_0434=nullunit gg_unit_ndfl_0431=nullunit gg_unit_ngob_0435=nullunit gg_unit_ngob_0437=nullunit gg_unit_ngob_0438=nullunit gg_unit_ngob_0439=nullunit gg_unit_U00K_0398=nullunit gg_unit_Udre_0441=nullunit gg_unit_Ucrl_0442=nullunit gg_unit_Ulic_0444=nullunit gg_unit_U00L_0445=nullunit gg_unit_U00M_0446=nullunit gg_unit_N00H_0447=nullunit gg_unit_U00N_0448=nullunit gg_unit_N00I_0449=nullunit gg_unit_Ocb2_0461=nullunit gg_unit_Odrt_0462=nullunit gg_unit_otau_0486=nullunit gg_unit_otau_0487=nullunit gg_unit_okod_0489=nullunit gg_unit_okod_0490=nullunit gg_unit_okod_0491=nullunit gg_unit_odoc_0495=nullunit gg_unit_odoc_0496=nullunit gg_unit_oshm_0497=nullunit gg_unit_oshm_0498=nullunit gg_unit_oshm_0499=nullunit gg_unit_owyv_0500=nullunit gg_unit_owyv_0501=nullunit gg_unit_nw2w_0515=nullunit gg_unit_nw2w_0516=nullunit gg_unit_nw2w_0517=nullunit gg_unit_nw2w_0518=nullunit gg_unit_nw2w_0519=nullunit gg_unit_ndkw_0521=nullunit gg_unit_nbfl_0522=nullunit gg_unit_Osam_0523=nullunit gg_unit_Opgh_0524=nullunit gg_unit_nogl_0525=nullunit gg_unit_Oshd_0529=nullunit gg_unit_n00L_0531=nullunit gg_unit_u00P_0532=nullunit gg_unit_ncop_0533=nullunit gg_unit_N00N_0536=nullunit gg_unit_H00N_0538=nullunit gg_unit_H00O_0539=nullunit gg_unit_H00P_0540=nullunit gg_unit_H00R_0254=nullunit gg_unit_Hvwd_0807=nullunit gg_unit_H00S_0592=nullunit gg_unit_H00S_0595=nullunit gg_unit_H00S_0596=nullunit gg_unit_H00S_0597=nullunit gg_unit_H00S_0598=nullunit gg_unit_H00S_0599=nullunit gg_unit_E001_0602=nullunit gg_unit_Edem_0603=nullunit gg_unit_Emoo_0604=nullunit gg_unit_Ekee_0605=nullunit gg_unit_Emns_0609=nullunit gg_unit_H00T_0610=nullunit gg_unit_H00U_0611=nullunit gg_unit_H00V_0612=nullunit gg_unit_H00W_0613=nullunit gg_unit_Obla_0614=nullunit gg_unit_O001_0615=nullunit gg_unit_O002_0616=nullunit gg_unit_Ofar_0617=nullunit gg_unit_O003_0618=nullunit gg_unit_O004_0619=nullunit gg_unit_Otch_0620=nullunit gg_unit_O005_0621=nullunit gg_unit_O006_0622=nullunit gg_unit_Hmkg_0623=nullunit gg_unit_H00X_0624=nullunit gg_unit_e002_0626=nullunit gg_unit_ncta_0627=nullunit gg_unit_nfrm_0633=nullunit gg_unit_nfrm_0632=nullunit gg_unit_nfrm_0631=nullunit gg_unit_H00Y_0636=nullunit gg_unit_U00T_0637=nullunit gg_unit_owar_0638=nullunit gg_unit_U00U_0639=nullunit gg_unit_N00P_0640=nullunit gg_unit_N00Q_0641=nullunit gg_unit_nsty_0642=nullunit gg_unit_nsty_0643=nullunit gg_unit_nssn_0645=nullunit gg_unit_H00Z_0655=nullunit gg_unit_E003_0656=nullunit gg_unit_E004_0657=nullunit gg_unit_e005_0658=nullunit gg_unit_H010_0659=nullunit gg_unit_H011_0660=nullunit gg_unit_O007_0661=nullunit gg_unit_H012_0662=nullunit gg_unit_Hpb1_0663=nullunit gg_unit_H013_0664=nullunit gg_unit_H015_0665=nullunit gg_unit_U00W_0666=nullunit gg_unit_U00X_0667=nullunit gg_unit_nfa2_0668=nullunit gg_unit_U00Y_0669=nullunit gg_unit_n00S_0680=nullunit gg_unit_Hpb1_0681=nullunit gg_unit_hfoo_0682=nullunit gg_unit_nwat_0684=nullunit gg_unit_nmer_0685=nullunit gg_unit_uzg1_0689=nullunit gg_unit_uzg1_0690=nullunit gg_unit_h017_0702=nullunit gg_unit_h017_0703=nullunit gg_unit_h017_0704=nullunit gg_unit_h017_0705=nullunit gg_unit_h017_0706=nullunit gg_unit_H018_0710=nullunit gg_unit_H019_0711=nullunit gg_unit_Ewar_0712=nullunit gg_unit_E006_0713=nullunit gg_unit_H01A_0714=nullunit gg_unit_O008_0715=nullunit gg_unit_O009_0716=nullunit gg_unit_Nbst_0717=nullunit gg_unit_h009_0718=nullunit gg_unit_nwc2_0719=nullunit gg_unit_nwc2_0720=nullunit gg_unit_nwc2_0721=nullunit gg_unit_nwc2_0722=nullunit gg_unit_nwc2_0723=nullunit gg_unit_nwc2_0724=nullunit gg_unit_nwc2_0725=nullunit gg_unit_nwc2_0726=nullunit gg_unit_nwc2_0727=nullunit gg_unit_nwc2_0728=nullunit gg_unit_Hdgo_0729=nullunit gg_unit_H01B_0730=nullunit gg_unit_H01F_0202=nullunit gg_unit_hcth_0206=nullunit gg_unit_hcth_0736=nullunit gg_unit_hcth_0737=nullunit gg_unit_H01H_0746=nullitem gg_item_I09B_0748=nullunit gg_unit_h01J_0753=nullunit gg_unit_nhew_0754=nullunit gg_unit_h01K_0757=nullunit gg_unit_ugol_0758=nullunit gg_unit_ugol_0759=nullunit gg_unit_ugol_0760=nullunit gg_unit_H01Z_0761=nullunit gg_unit_ugrv_0762=nullunit gg_unit_n00W_0763=nullunit gg_unit_obea_0764=nullunit gg_unit_oalt_0765=nullunit gg_unit_utod_0766=nullunit gg_unit_haro_0767=nullunit gg_unit_ngbl_0768=nullunit gg_unit_H020_0769=nullunit gg_unit_H021_0770=nullunit gg_unit_uaod_0771=nullunit gg_unit_O00E_0774=nullunit gg_unit_nbsm_0775=nullunit gg_unit_usap_0785=nullunit gg_unit_h006_0804=nullunit gg_unit_Nkjx_0811=nullunit gg_unit_h027_0812=nullunit gg_unit_h028_0813=nullunit gg_unit_h029_0814=nullunit gg_unit_nbse_0819=nullunit gg_unit_nbse_0818=nullunit gg_unit_nbse_0817=nullunit gg_unit_nbse_0816=nullunit gg_unit_nzlc_0821=nullunit gg_unit_Hhkl_0822=nullunit gg_unit_Harf_0823=nullunit gg_unit_Udth_0824=nullunit gg_unit_Usyl_0820=nullunit gg_unit_Nbrn_0832=nullunit gg_unit_n017_0861=nullunit gg_unit_npgr_0864=nulldestructable gg_dest_LTg3_0714=nulldestructable gg_dest_DTrc_0792=nulldestructable gg_dest_DTrc_1413=nulldestructable gg_dest_DTrc_1414=nulldestructable gg_dest_DTrc_1415=nulldestructable gg_dest_DTrc_1416=nulldestructable gg_dest_DTrc_1417=nulldestructable gg_dest_LTg3_2178=nulldestructable gg_dest_ATg1_2388=nulldestructable gg_dest_ATg4_2401=nulldestructable gg_dest_YT00_3274=nulldestructable gg_dest_Dofw_3907=nulldestructable gg_dest_DTg5_5265=nulldestructable gg_dest_DTg5_5788=nulldestructable gg_dest_XTmp_5838=nulldestructable gg_dest_Dofw_6089=nulldestructable gg_dest_DTlv_6200=nulldestructable gg_dest_ITcr_8702=nulldestructable gg_dest_DTlv_9274=nulldestructable gg_dest_DTlv_9493=nulldestructable gg_dest_BTrs_9523=nulldestructable gg_dest_YTce_9527=nulldestructable gg_dest_YTcx_9528=nulldestructable gg_dest_ZTd4_10660=null
destructable gg_dest_Dofv_10674=null
destructable gg_dest_DTlv_10675=null
destructable gg_dest_Dofw_11003=null
destructable gg_dest_Dofw_11004=null
destructable gg_dest_LTg3_11006=null
destructable gg_dest_DTlv_11009=null
destructable gg_dest_DTlv_11240=null
destructable gg_dest_DTlv_11344=null
destructable gg_dest_DTlv_11345=null
destructable gg_dest_DTlv_11346=null
destructable gg_dest_DTlv_11347=null
destructable gg_dest_DTlv_11348=null
destructable gg_dest_DTlv_11349=null
destructable gg_dest_DTlv_11350=null
destructable gg_dest_DTlv_11351=null
destructable gg_dest_B001_11352=null
destructable gg_dest_B001_11353=null
destructable gg_dest_B001_11354=null
destructable gg_dest_B001_11355=null
destructable gg_dest_B001_11356=null
destructable gg_dest_B001_11357=null
destructable gg_dest_B001_11358=null
destructable gg_dest_B001_11359=null
destructable gg_dest_B001_11360=null
destructable gg_dest_DTg5_13547=null
destructable gg_dest_DTg5_13548=null
destructable gg_dest_DTg7_13549=null
destructable gg_dest_DTg7_13550=null
destructable gg_dest_DTg5_13551=null
destructable gg_dest_DTlv_13711=null
destructable gg_dest_DTlv_13712=null
destructable gg_dest_DTlv_13713=null
destructable gg_dest_DTlv_13714=null
destructable gg_dest_DTg5_13715=null
destructable gg_dest_DTlv_13716=null
destructable gg_dest_DTlv_13717=null
destructable gg_dest_DTlv_13796=null
endglobalsfunction InitGlobals takes nothing returns nothinglocal integer i=0set i=0loop
exitwhen(i>1)set udg_Timer[i]=CreateTimer()set i=i+1endloopset udg_Gametime=CreateTimer()set udg_Silamonstrov=1set i=0loop
exitwhen(i>1)set udg_HeroSlotBox[i]=0
set i=i+1endloopset udg_krovavayayarost=0set i=0loop
exitwhen(i>1)set udg_Casino[i]=0set i=i+1endloopset udg_LevelSlognosaty=0set udg_RandomHero=0
set udg_Random_drop=0set udg_GDD_Event=0set udg_GDD_Damage=0
set i=0loop
exitwhen(i>1)set udg_GDD__TriggerArray[i]=CreateTrigger()
set i=i+1endloopset i=0loop
exitwhen(i>1)set udg_GDD__Integers[i]=0set i=i+1endloopset udg_GDD__LeftMapGroup=CreateGroup()set udg_tempGroup=CreateGroup()set udg_Text_Duration=0set udg_TextSize_dmg=0set udg_TextSize_spells=0set i=0loop
exitwhen(i>1)set udg_PlayerColors[i]=""set i=i+1endloopset udg_Zatochka=0set i=0loop
exitwhen(i>1)set udg_Kills[i]=0set i=i+1endloopset i=0loop
exitwhen(i>1)set udg_Deaths[i]=0set i=i+1endloopset udg_i=0set i=0loop
exitwhen(i>8)set udg_Time_Dead[i]=0set i=i+1endloopset udg_Generator_Sobitiy=0set udg_Chanse=0
set udg_Frostspirit=CreateGroup()set udg_Angle=0set udg_Frostspiritdmg=CreateGroup()
set udg_Damage=0
set udg_Speed=0set udg_Functions_On=falseset udg_Arrow_Integer=0set udg_AI=0
set udg_Arrow_Group=CreateGroup()set i=0loop
exitwhen(i>1)set udg_Runi[i]=0set i=i+1endloopset udg_Hero_Peshera_Neruba_Off_On=false
set udg_Shance_Pesheri_Neruba=0set udg_Kill_Unit_N=0set udg_Ihtinovaya_Maska=0set i=0loop
exitwhen(i>7)set udg_Skill_100[i]=falseset i=i+1endloopset i=0loop
exitwhen(i>1)set udg_Inicializaciya_hero[i]=0
set i=i+1endloopset udg_Predel=0
set udg_Rabdom_Skill=0set i=0loop
exitwhen(i>1)set udg_Obelisk[i]=false
set i=i+1endloopset udg_Wolf=0set i=0loop
exitwhen(i>1)set udg_Hero_skill_Boolean_1[i]=falseset i=i+1endloopset i=0loop
exitwhen(i>1)set udg_Hero_skill_Boolean_2[i]=falseset i=i+1endloopset i=0loop
exitwhen(i>1)set udg_Hero_skill_Boolean_6[i]=falseset i=i+1endloopset i=0loop
exitwhen(i>1)set udg_Hero_skill_Boolean_3[i]=falseset i=i+1endloopset i=0loop
exitwhen(i>1)set udg_Hero_skill_Boolean_4[i]=falseset i=i+1endloopset i=0loop
exitwhen(i>1)set udg_Hero_skill_Boolean_5[i]=falseset i=i+1endloopset udg_Troll=0set udg_Random=0
set udg_Gold=0set i=0loop
exitwhen(i>1)set udg_MoobS[i]=0set i=i+1endloopset udg_Sargeros_armor=0
set udg_Day=1set udg_Sbor_rudy=0set i=0loop
exitwhen(i>1)set udg_Hero_skill_lvl_1[i]=1set i=i+1endloopset i=0loop
exitwhen(i>1)set udg_Hero_skill_lvl_2[i]=1set i=i+1endloopset i=0loop
exitwhen(i>1)set udg_Hero_skill_lvl_3[i]=1set i=i+1endloopset i=0loop
exitwhen(i>1)set udg_Hero_skill_lvl_4[i]=1set i=i+1endloopset i=0loop
exitwhen(i>1)set udg_Hero_skill_lvl_5[i]=1set i=i+1endloopset i=0loop
exitwhen(i>1)set udg_Hero_skill_lvl_6[i]=1set i=i+1endloopset i=0loop
exitwhen(i>1)set udg_Timer_string[i]=""set i=i+1endloopset i=0loop
exitwhen(i>1)set udg_Timer_celoe[i]=0
set i=i+1endloopset udg_Okno_taymer=CreateMultiboard()set i=0loop
exitwhen(i>1)set udg_Zadanie_oskolky[i]=0
set i=i+1endloopset i=0loop
exitwhen(i>1)set udg_Stavka[i]=0set i=i+1endloopset udg_Dialog_slognost=DialogCreate()set udg_Priz_Victory=0set i=0loop
exitwhen(i>1)set udg_CameraDaln[i]=0set i=i+1endloopset udg_MaxDal=0
set udg_MinDal=0
set udg_Dialog_victory=DialogCreate()set udg_Uron_Generatoru=0set udg_Dalaran_Portal=0
set i=0loop
exitwhen(i>1)set udg_Nestabilniy_Portal[i]=falseset i=i+1endloop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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I089',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 Unit000073_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I089',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 Unit000097_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I00N',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 Unit000116_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('stwa',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 Unit000117_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('rat9',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 Unit000118_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('lure',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 Unit000200_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I0A8',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 Unit000271_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('ktrm',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 Unit000272_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I046',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 Unit000273_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I047',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 Unit000339_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('shar',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 Unit000343_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('skrt',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 Unit000346_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I004',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 Unit000348_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I00Y',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 Unit000350_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I00C',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 Unit000353_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I03C',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 Unit000354_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I01P',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 Unit000401_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('olig',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 Unit000428_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I062',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 Unit000430_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I063',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 Unit000431_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I064',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 Unit000432_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I065',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 Unit000433_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I067',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 Unit000434_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I066',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 Unit000626_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('wswd',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 Unit000628_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I088',100)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('gold',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 Unit000680_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('pnvu',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 Unit000685_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('gold',34)call RandomDistAddItem('wtlg',33)call RandomDistAddItem('rhe3',33)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('gold',34)call RandomDistAddItem('wtlg',33)call RandomDistAddItem('rhe3',33)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('gold',34)call RandomDistAddItem('rhe3',33)call RandomDistAddItem('wtlg',33)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('gold',50)call RandomDistAddItem('will',50)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 Unit000693_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('gold',100)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('phea',34)call RandomDistAddItem('pghe',33)call RandomDistAddItem('hslv',33)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 Unit000694_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('gold',100)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('rat9',14)call RandomDistAddItem('cnob',26)call RandomDistAddItem('stwa',20)call RandomDistAddItem('sksh',20)call RandomDistAddItem('lure',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 Unit000719_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem(ChooseRandomItemEx(ITEM_TYPE_ANY,4),100)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('gold',100)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('gold',50)call RandomDistAddItem('wtlg',50)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 Unit000720_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('gldo',25)call RandomDistAddItem('ocor',25)call RandomDistAddItem('spsh',25)call RandomDistAddItem('pmna',25)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('gold',50)call RandomDistAddItem('I05P',50)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('gold',50)call RandomDistAddItem('wtlg',50)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 Unit000721_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('cnob',10)call RandomDistAddItem('ram3',30)call RandomDistAddItem('rat9',20)call RandomDistAddItem('gcel',20)call RandomDistAddItem('sksh',20)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('gold',50)call RandomDistAddItem('I05P',50)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('gold',50)call RandomDistAddItem('pghe',50)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 Unit000722_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('clfm',25)call RandomDistAddItem('rde1',25)call RandomDistAddItem('evtl',25)call RandomDistAddItem('stre',25)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('gold',50)call RandomDistAddItem('I05P',50)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('I02G',50)call RandomDistAddItem('pghe',50)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 Unit000723_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('afac',25)call RandomDistAddItem('I02C',25)call RandomDistAddItem('sor7',25)call RandomDistAddItem('I026',25)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('gold',50)call RandomDistAddItem('I05P',50)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('I01C',50)call RandomDistAddItem(-1,50)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 Unit000724_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('anfg',25)call RandomDistAddItem('I02M',25)call RandomDistAddItem('rots',25)call RandomDistAddItem('I02W',25)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('gold',50)call RandomDistAddItem('I05P',50)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('I01C',50)call RandomDistAddItem(-1,50)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 Unit000725_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('rat3',25)call RandomDistAddItem('I033',25)call RandomDistAddItem('I037',25)call RandomDistAddItem('srtl',25)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('gold',50)call RandomDistAddItem('I05P',50)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('I01C',50)call RandomDistAddItem(-1,50)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 Unit000726_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('sfog',25)call RandomDistAddItem('spre',25)call RandomDistAddItem('lhst',25)call RandomDistAddItem('ckng',25)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('gold',50)call RandomDistAddItem('I05P',50)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('I01C',50)call RandomDistAddItem(-1,50)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 Unit000727_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('shen',25)call RandomDistAddItem('tmmt',25)call RandomDistAddItem('I01K',25)call RandomDistAddItem('I01F',25)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('gold',50)call RandomDistAddItem('I05P',50)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('I01C',50)call RandomDistAddItem(-1,50)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 Unit000728_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I02D',25)call RandomDistAddItem('gsou',25)call RandomDistAddItem('kpin',25)call RandomDistAddItem('stel',25)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('gold',50)call RandomDistAddItem('I05P',50)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('I01C',50)call RandomDistAddItem(-1,50)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 Unit000733_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('kpin',25)call RandomDistAddItem('gsou',25)call RandomDistAddItem('ram1',25)call RandomDistAddItem('ciri',25)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 Unit000753_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I09D',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 Unit000757_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I09I',10)call RandomDistAddItem('I05F',10)call RandomDistAddItem('I009',10)call RandomDistAddItem('I00G',10)call RandomDistAddItem('I00L',10)call RandomDistAddItem('I05D',10)call RandomDistAddItem('I039',10)call RandomDistAddItem('I08N',10)call RandomDistAddItem('I05T',10)call RandomDistAddItem('I04M',10)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('gold',100)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('gold',100)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('gold',100)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('gold',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 Unit000777_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I0AX',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 Unit000805_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I0BJ',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 Unit000820_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('rdis',100)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('rre1',100)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('rre1',100)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('rre1',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 Unit000823_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(PLAYER_NEUTRAL_AGGRESSIVE))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 Unit000832_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('rspd',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 Unit000843_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I0DB',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 Unit000861_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('rman',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 Unit000865_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('scul',20)call RandomDistAddItem('vddl',20)call RandomDistAddItem('gsou',20)call RandomDistAddItem('fgsk',20)call RandomDistAddItem('btst',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 Unit000867_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I08Z',50)call RandomDistAddItem('I02E',50)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 Unit000870_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I08Z',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 Unit000871_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I08Z',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 Unit000872_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I0BI',34)call RandomDistAddItem('I08Z',33)call RandomDistAddItem('infs',33)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 Unit000873_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('flag',25)call RandomDistAddItem('oflg',25)call RandomDistAddItem('rej5',25)call RandomDistAddItem('pmna',25)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 Unit000874_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('btst',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 Doodad002902_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('pomn',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 Doodad006852_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('pomn',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 Doodad008558_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('pomn',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 Doodad008702_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I09A',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 Doodad009519_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('I05P',100)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('I05P',100)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('I05P',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 Doodad009523_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('gold',34)call RandomDistAddItem('hslv',33)call RandomDistAddItem('pghe',33)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 Doodad011403_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('shwd',34)call RandomDistAddItem('shea',33)call RandomDistAddItem('stwp',33)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('rspl',100)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('rhe1',100)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('rre1',100)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('I09O',20)call RandomDistAddItem('I034',20)call RandomDistAddItem('I02Z',20)call RandomDistAddItem('fgun',20)call RandomDistAddItem('sneg',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 Doodad011477_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('pomn',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 Doodad012199_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('rsps',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 Doodad012200_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(PLAYER_NEUTRAL_AGGRESSIVE))endifendifif(canDrop)thencall RandomDistReset()call RandomDistAddItem('sres',10)call RandomDistAddItem('sand',10)call RandomDistAddItem('clsd',10)call RandomDistAddItem('sbok',10)call RandomDistAddItem('I02A',10)call RandomDistAddItem('I037',10)call RandomDistAddItem('ocor',10)call RandomDistAddItem('I04A',10)call RandomDistAddItem('I0BZ',10)call RandomDistAddItem('I0C0',10)set itemID=RandomDistChoose()if(trigUnit!=null)thencall UnitDropItem(trigUnit,itemID)else
call WidgetDropItem(trigWidget,itemID)endifcall RandomDistReset()call RandomDistAddItem('rre2',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 InitSounds takes nothing returns nothingset gg_snd_KeeperOfTheGrovePissed5=CreateSound("Units\\NightElf\\HeroKeeperOfTheGrove\\KeeperOfTheGrovePissed5.wav",false,true,true,10,10,"HeroAcksEAX")
call SetSoundParamsFromLabel(gg_snd_KeeperOfTheGrovePissed5,"HeroKeeperOfTheGrovePissed")call SetSoundDuration(gg_snd_KeeperOfTheGrovePissed5,3062)set gg_snd_KeeperOfTheGroveReady1=CreateSound("Units\\NightElf\\HeroKeeperOfTheGrove\\KeeperOfTheGroveReady1.wav",false,true,true,10,10,"HeroAcksEAX")call SetSoundParamsFromLabel(gg_snd_KeeperOfTheGroveReady1,"HeroKeeperOfTheGroveReady")call SetSoundDuration(gg_snd_KeeperOfTheGroveReady1,2329)set gg_snd_MaievPissed3=CreateSound("Units\\NightElf\\Maiev\\MaievPissed3.wav",false,true,true,10,10,"HeroAcksEAX")call SetSoundParamsFromLabel(gg_snd_MaievPissed3,"MaievPissed")call SetSoundDuration(gg_snd_MaievPissed3,7973)set gg_snd_MaievYes1=CreateSound("Units\\NightElf\\Maiev\\MaievYes1.wav",false,true,true,10,10,"HeroAcksEAX")call SetSoundParamsFromLabel(gg_snd_MaievYes1,"MaievYes")call SetSoundDuration(gg_snd_MaievYes1,2793)
set gg_snd_ArthasPissed2=CreateSound("Units\\Human\\Arthas\\ArthasPissed2.wav",false,true,true,10,10,"HeroAcksEAX")call SetSoundParamsFromLabel(gg_snd_ArthasPissed2,"ArthasPissed")call SetSoundDuration(gg_snd_ArthasPissed2,2105)
set gg_snd_ArthasPissed7=CreateSound("Units\\Human\\Arthas\\ArthasPissed7.wav",false,true,true,10,10,"HeroAcksEAX")call SetSoundParamsFromLabel(gg_snd_ArthasPissed7,"ArthasPissed")call SetSoundDuration(gg_snd_ArthasPissed7,1546)
set gg_snd_EvilArthasPissed3=CreateSound("Units\\Undead\\EvilArthas\\EvilArthasPissed3.wav",false,true,true,10,10,"HeroAcksEAX")
call SetSoundParamsFromLabel(gg_snd_EvilArthasPissed3,"EvilArthasPissed")call SetSoundDuration(gg_snd_EvilArthasPissed3,3831)
set gg_snd_EvilArthasYes2=CreateSound("Units\\Undead\\EvilArthas\\EvilArthasYes2.wav",false,true,true,10,10,"HeroAcksEAX")call SetSoundParamsFromLabel(gg_snd_EvilArthasYes2,"EvilArthasYes")call SetSoundDuration(gg_snd_EvilArthasYes2,2124)endfunctionfunction CreateAllDestructables takes nothing returns nothinglocal destructable d
local trigger tlocal real lifeset gg_dest_ATg1_2388=CreateDestructable('ATg1',12480.0,10880.0,270.000,0.900,0)
set gg_dest_ATg4_2401=CreateDestructable('ATg4',10784.0,12192.0,180.000,1.000,0)
set gg_dest_B001_11359=CreateDestructable('B001',10912.0,27040.0,137.000,0.866,7)set gg_dest_B001_11353=CreateDestructable('B001',10144.0,27040.0,137.000,0.866,1)set gg_dest_B001_11356=CreateDestructable('B001',10528.0,27040.0,137.000,0.866,4)set gg_dest_B001_11357=CreateDestructable('B001',10656.0,27040.0,137.000,0.866,5)set gg_dest_B001_11358=CreateDestructable('B001',10784.0,27040.0,137.000,0.866,6)set gg_dest_B001_11355=CreateDestructable('B001',10400.0,27040.0,137.000,0.866,3)set gg_dest_B001_11354=CreateDestructable('B001',10272.0,27040.0,137.000,0.866,2)set gg_dest_B001_11352=CreateDestructable('B001',10016.0,27040.0,137.000,0.866,0)set gg_dest_B001_11360=CreateDestructable('B001',11040.0,27040.0,137.000,0.866,8)set gg_dest_BTrs_9523=CreateDestructable('BTrs',3872.0,-13568.0,0.000,1.000,0)set gg_dest_DTg5_5265=CreateDestructable('DTg5',2816.0,2816.0,270.000,0.900,0)set gg_dest_DTg5_5788=CreateDestructable('DTg5',3264.0,8448.0,270.000,0.900,0)set gg_dest_DTg5_13548=CreateDestructable('DTg5',15616.0,17664.0,270.000,0.900,0)set gg_dest_DTg5_13547=CreateDestructable('DTg5',18688.0,17664.0,270.000,0.900,0)set gg_dest_DTg5_13715=CreateDestructable('DTg5',17152.0,18432.0,270.000,0.900,0)set gg_dest_DTg5_13551=CreateDestructable('DTg5',17152.0,17664.0,270.000,0.900,0)set gg_dest_DTg7_13549=CreateDestructable('DTg7',16640.0,15488.0,0.000,0.900,0)set gg_dest_DTg7_13550=CreateDestructable('DTg7',17664.0,15488.0,0.000,0.900,0)set gg_dest_DTlv_6200=CreateDestructable('DTlv',-11168.0,416.0,360.000,1.091,0)set gg_dest_DTlv_9274=CreateDestructable('DTlv',-2976.0,5792.0,233.265,0.907,0)set gg_dest_DTlv_9493=CreateDestructable('DTlv',-6304.0,7264.0,87.712,0.990,0)set gg_dest_DTlv_13711=CreateDestructable('DTlv',14816.0,17184.0,38.536,1.096,0)
set gg_dest_DTlv_13712=CreateDestructable('DTlv',19488.0,17184.0,224.634,1.096,0)set gg_dest_DTlv_13713=CreateDestructable('DTlv',15520.0,15200.0,201.469,1.099,0)set gg_dest_DTlv_13714=CreateDestructable('DTlv',18912.0,16096.0,231.453,1.032,0)set gg_dest_DTlv_13716=CreateDestructable('DTlv',15264.0,20256.0,251.880,1.006,0)set gg_dest_DTlv_13717=CreateDestructable('DTlv',19104.0,20256.0,249.093,1.060,0)set gg_dest_DTlv_11240=CreateDestructable('DTlv',10016.0,26976.0,320.119,1.010,0)set gg_dest_DTlv_10675=CreateDestructable('DTlv',2784.0,-21024.0,53.208,1.010,0)
set gg_dest_DTlv_11351=CreateDestructable('DTlv',11040.0,26976.0,320.119,1.010,0)set gg_dest_DTlv_11350=CreateDestructable('DTlv',10912.0,26976.0,320.119,1.010,0)set gg_dest_DTlv_11349=CreateDestructable('DTlv',10784.0,26976.0,320.119,1.010,0)set gg_dest_DTlv_11009=CreateDestructable('DTlv',-14752.0,-16032.0,200.652,1.010,0)set gg_dest_DTlv_13796=CreateDeadDestructable('DTlv',-16864.0,-12896.0,226.760,1.100,0)set gg_dest_DTlv_11344=CreateDestructable('DTlv',10144.0,26976.0,320.119,1.010,0)set gg_dest_DTlv_11345=CreateDestructable('DTlv',10272.0,26976.0,320.119,1.010,0)set gg_dest_DTlv_11346=CreateDestructable('DTlv',10400.0,26976.0,320.119,1.010,0)set gg_dest_DTlv_11347=CreateDestructable('DTlv',10528.0,26976.0,320.119,1.010,0)set gg_dest_DTlv_11348=CreateDestructable('DTlv',10656.0,26976.0,320.119,1.010,0)set gg_dest_DTrc_1417=CreateDestructable('DTrc',5696.0,-11776.0,235.000,1.000,0)
set gg_dest_DTrc_1416=CreateDestructable('DTrc',5568.0,-12160.0,207.000,1.000,5)
set gg_dest_DTrc_1414=CreateDestructable('DTrc',5760.0,-12096.0,97.000,1.000,3)set gg_dest_DTrc_1413=CreateDestructable('DTrc',5632.0,-12032.0,258.000,1.000,1)
set gg_dest_DTrc_0792=CreateDestructable('DTrc',5696.0,-11904.0,2.000,1.000,3)set gg_dest_DTrc_1415=CreateDestructable('DTrc',5824.0,-11968.0,44.000,1.000,4)set gg_dest_Dofv_10674=CreateDestructable('Dofv',2880.0,-14784.0,90.000,1.000,0)
set gg_dest_Dofw_11004=CreateDestructable('Dofw',-14784.0,-8704.0,0.000,1.000,0)
set gg_dest_Dofw_3907=CreateDestructable('Dofw',2048.0,10560.0,0.000,1.000,0)set gg_dest_Dofw_6089=CreateDestructable('Dofw',-12480.0,256.0,0.000,1.000,0)set gg_dest_Dofw_11003=CreateDestructable('Dofw',-14784.0,-9472.0,0.000,1.000,0)
set d=CreateDestructable('GTsh',960.0,9216.0,270.000,1.131,1)set t=CreateTrigger()call TriggerRegisterDeathEvent(t,d)call TriggerAddAction(t,function SaveDyingWidget)call TriggerAddAction(t,function Doodad008558_DropItems)
set d=CreateDestructable('GTsh',-28096.0,-19648.0,270.000,1.131,1)set t=CreateTrigger()call TriggerRegisterDeathEvent(t,d)call TriggerAddAction(t,function SaveDyingWidget)call TriggerAddAction(t,function Doodad011477_DropItems)
set d=CreateDestructable('GTsh',-10560.0,-1152.0,270.000,1.131,1)set t=CreateTrigger()call TriggerRegisterDeathEvent(t,d)call TriggerAddAction(t,function SaveDyingWidget)call TriggerAddAction(t,function Doodad002902_DropItems)
set d=CreateDestructable('GTsh',-8384.0,8128.0,270.000,1.131,1)set t=CreateTrigger()call TriggerRegisterDeathEvent(t,d)call TriggerAddAction(t,function SaveDyingWidget)call TriggerAddAction(t,function Doodad006852_DropItems)
set gg_dest_ITcr_8702=CreateDestructable('ITcr',5120.0,-7936.0,86.000,0.894,5)set t=CreateTrigger()call TriggerRegisterDeathEvent(t,gg_dest_ITcr_8702)call TriggerAddAction(t,function SaveDyingWidget)call TriggerAddAction(t,function Doodad008702_DropItems)
set d=CreateDestructable('LTbr',3744.0,-13472.0,66.000,1.320,0)set t=CreateTrigger()call TriggerRegisterDeathEvent(t,d)call TriggerAddAction(t,function SaveDyingWidget)call TriggerAddAction(t,function Doodad009523_DropItems)
set d=CreateDestructable('LTbx',-9824.0,-19552.0,220.190,1.385,0)set t=CreateTrigger()call TriggerRegisterDeathEvent(t,d)call TriggerAddAction(t,function SaveDyingWidget)call TriggerAddAction(t,function Doodad012199_DropItems)
set d=CreateDestructable('LTcr',3584.0,-13632.0,5.000,1.200,1)set t=CreateTrigger()call TriggerRegisterDeathEvent(t,d)call TriggerAddAction(t,function SaveDyingWidget)call TriggerAddAction(t,function Doodad009519_DropItems)
set d=CreateDestructable('LTcr',-25024.0,-4416.0,95.000,1.099,1)
set t=CreateTrigger()call TriggerRegisterDeathEvent(t,d)call TriggerAddAction(t,function SaveDyingWidget)call TriggerAddAction(t,function Doodad011403_DropItems)
set d=CreateDestructable('LTcr',-9472.0,-15488.0,292.000,1.200,1)set t=CreateTrigger()call TriggerRegisterDeathEvent(t,d)call TriggerAddAction(t,function SaveDyingWidget)call TriggerAddAction(t,function Doodad012200_DropItems)
set gg_dest_LTg3_2178=CreateDestructable('LTg3',12352.0,-1280.0,0.000,0.920,0)set gg_dest_LTg3_11006=CreateDestructable('LTg3',-14464.0,-17024.0,0.000,0.920,0)set gg_dest_LTg3_0714=CreateDestructable('LTg3',-256.0,-11392.0,0.000,0.920,0)set gg_dest_XTmp_5838=CreateDestructable('XTmp',-192.0,5696.0,180.000,1.000,0)set gg_dest_YT00_3274=CreateDestructable('YT00',-11328.0,2368.0,0.000,1.000,0)set gg_dest_YTce_9527=CreateDestructable('YTce',-5120.0,3840.0,180.000,1.000,0)set gg_dest_YTcx_9528=CreateDestructable('YTcx',5056.0,5248.0,270.000,1.400,0)set gg_dest_ZTd4_10660=CreateDestructable('ZTd4',2496.0,-20032.0,180.000,1.100,0)endfunctionfunction CreateAllItems takes nothing returns nothinglocal integer itemID
set gg_item_I09B_0748=CreateItem('I09B',-10866.3,-9989.0)call CreateItem('azhr',8309.1,-11538.5)call CreateItem('azhr',-13339.0,-4888.3)
call CreateItem('azhr',1140.5,8972.1)call CreateItem('k3m1',-3352.9,12445.5)call CreateItem('k3m2',9712.7,3437.7)call CreateItem('ledg',-7599.8,7654.1)call CreateItem('rhth',2406.2,-13443.5)call CreateItem('rhth',-1916.4,7725.0)endfunctionfunction CreateBuildingsForPlayer0 takes nothing returns nothing
local player p=Player(0)
local unit u
local integer unitID
local trigger tlocal real lifeset u=CreateUnit(p,'ncop',-12992.0,12736.0,270.000)set gg_unit_h009_0276=CreateUnit(p,'h009',3264.0,4544.0,270.000)
endfunctionfunction CreateUnitsForPlayer0 takes nothing returns nothing
local player p=Player(0)
local unit u
local integer unitID
local trigger tlocal real lifeset u=CreateUnit(p,'ewsp',11129.9,-12448.8,105.340)set gg_unit_H00S_0592=CreateUnit(p,'H00S',12593.3,-12399.3,353.030)call SetUnitState(gg_unit_H00S_0592,UNIT_STATE_MANA,10)endfunctionfunction CreateBuildingsForPlayer1 takes nothing returns nothing
local player p=Player(1)
local unit u
local integer unitID
local trigger tlocal real lifeset u=CreateUnit(p,'ncop',-12992.0,12736.0,270.000)set gg_unit_h009_0277=CreateUnit(p,'h009',3264.0,4352.0,270.000)
endfunctionfunction CreateUnitsForPlayer1 takes nothing returns nothing
local player p=Player(1)
local unit u
local integer unitID
local trigger tlocal real lifeset u=CreateUnit(p,'ewsp',11219.1,-12510.7,77.420)set gg_unit_H00S_0595=CreateUnit(p,'H00S',12612.7,-12566.3,353.030)call SetUnitState(gg_unit_H00S_0595,UNIT_STATE_MANA,10)endfunctionfunction CreateBuildingsForPlayer2 takes nothing returns nothing
local player p=Player(2)
local unit u
local integer unitID
local trigger tlocal real lifeset u=CreateUnit(p,'ncop',-12992.0,12736.0,270.000)set gg_unit_h009_0278=CreateUnit(p,'h009',3264.0,4160.0,270.000)
endfunctionfunction CreateUnitsForPlayer2 takes nothing returns nothing
local player p=Player(2)
local unit u
local integer unitID
local trigger tlocal real lifeset u=CreateUnit(p,'ewsp',11216.6,-12596.9,172.300)set gg_unit_H00S_0596=CreateUnit(p,'H00S',12763.5,-12566.3,353.030)call SetUnitState(gg_unit_H00S_0596,UNIT_STATE_MANA,10)endfunctionfunction CreateBuildingsForPlayer3 takes nothing returns nothing
local player p=Player(3)
local unit u
local integer unitID
local trigger tlocal real lifeset u=CreateUnit(p,'ncop',-12992.0,12736.0,270.000)set gg_unit_h009_0279=CreateUnit(p,'h009',3264.0,3968.0,270.000)
endfunctionfunction CreateUnitsForPlayer3 takes nothing returns nothing
local player p=Player(3)
local unit u
local integer unitID
local trigger tlocal real lifeset u=CreateUnit(p,'ewsp',11133.6,-12658.8,343.380)set gg_unit_H00S_0597=CreateUnit(p,'H00S',12757.5,-12400.8,353.030)call SetUnitState(gg_unit_H00S_0597,UNIT_STATE_MANA,10)endfunctionfunction CreateBuildingsForPlayer4 takes nothing returns nothing
local player p=Player(4)
local unit u
local integer unitID
local trigger tlocal real lifeset u=CreateUnit(p,'ncop',-12992.0,12736.0,270.000)set gg_unit_h009_0281=CreateUnit(p,'h009',3264.0,3776.0,270.000)
endfunctionfunction CreateUnitsForPlayer4 takes nothing returns nothing
local player p=Player(4)
local unit u
local integer unitID
local trigger tlocal real lifeset u=CreateUnit(p,'ewsp',11049.2,-12598.9,112.500)set gg_unit_H00S_0598=CreateUnit(p,'H00S',12920.0,-12402.7,353.030)call SetUnitState(gg_unit_H00S_0598,UNIT_STATE_MANA,10)endfunctionfunction CreateBuildingsForPlayer5 takes nothing returns nothing
local player p=Player(5)
local unit u
local integer unitID
local trigger tlocal real lifeset u=CreateUnit(p,'ncop',-12992.0,12736.0,270.000)set gg_unit_h009_0280=CreateUnit(p,'h009',3264.0,3584.0,270.000)
endfunctionfunction CreateUnitsForPlayer5 takes nothing returns nothing
local player p=Player(5)
local unit u
local integer unitID
local trigger tlocal real lifeset u=CreateUnit(p,'ewsp',11047.8,-12517.4,175.540)set gg_unit_H00S_0599=CreateUnit(p,'H00S',12914.6,-12566.8,353.030)call SetUnitState(gg_unit_H00S_0599,UNIT_STATE_MANA,10)endfunctionfunction CreateBuildingsForPlayer6 takes nothing returns nothing
local player p=Player(6)
local unit u
local integer unitID
local trigger tlocal real lifeset gg_unit_h028_0813=CreateUnit(p,'h028',21088.0,9696.0,270.000)set gg_unit_h029_0814=CreateUnit(p,'h029',19680.0,11168.0,270.000)endfunctionfunction CreateUnitsForPlayer6 takes nothing returns nothing
local player p=Player(6)
local unit u
local integer unitID
local trigger tlocal real lifeset gg_unit_Nbbc_0042=CreateUnit(p,'Nbbc',2250.2,12989.1,91.200)
call SetHeroLevel(gg_unit_Nbbc_0042,50,false)call SetUnitState(gg_unit_Nbbc_0042,UNIT_STATE_MANA,80)call SelectHeroSkill(gg_unit_Nbbc_0042,'AOcr')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOcr')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOcr')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOcr')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOcr')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOcr')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOcr')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOcr')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOcr')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOcr')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOcr')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOcr')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOcr')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOcr')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOcr')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOmi')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOmi')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOmi')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOmi')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOmi')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOmi')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOmi')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOmi')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOmi')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOmi')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOmi')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOmi')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOmi')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOmi')call SelectHeroSkill(gg_unit_Nbbc_0042,'AOmi')set gg_unit_u001_0076=CreateUnit(p,'u001',1078.3,13003.0,90.810)
set u=CreateUnit(p,'u003',-4428.0,1890.2,0.000)set gg_unit_h004_0109=CreateUnit(p,'h004',-4408.7,2278.5,357.240)set gg_unit_u003_0113=CreateUnit(p,'u003',-4430.4,1769.9,0.000)set u=CreateUnit(p,'u003',-4431.1,1658.7,0.000)set gg_unit_u003_0115=CreateUnit(p,'u003',-4432.0,1545.7,0.000)set gg_unit_h004_0122=CreateUnit(p,'h004',-4405.3,2180.8,3.420)set gg_unit_Hgam_0344=CreateUnit(p,'Hgam',1358.6,12751.3,267.910)call SetHeroLevel(gg_unit_Hgam_0344,60,false)call SetUnitState(gg_unit_Hgam_0344,UNIT_STATE_MANA,95)call SetUnitColor(gg_unit_Hgam_0344,ConvertPlayerColor(7))call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call SelectHeroSkill(gg_unit_Hgam_0344,'AEmb')call UnitAddItemToSlotById(gg_unit_Hgam_0344,'I03C',0)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_Hgam_0344,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_Hgam_0344,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000353_DropItems)set gg_unit_Opgh_0524=CreateUnit(p,'Opgh',2260.9,12788.2,228.220)call SetHeroLevel(gg_unit_Opgh_0524,60,false)call SetUnitState(gg_unit_Opgh_0524,UNIT_STATE_MANA,80)set gg_unit_e002_0626=CreateUnit(p,'e002',1668.6,12466.7,269.600)call SetUnitColor(gg_unit_e002_0626,ConvertPlayerColor(3))set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_e002_0626,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_e002_0626,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000626_DropItems)set u=CreateUnit(p,'narg',-12731.9,-12313.1,37.530)set u=CreateUnit(p,'narg',-12731.0,-12004.0,299.610)
set u=CreateUnit(p,'narg',-12364.6,-12001.8,232.330)
set u=CreateUnit(p,'narg',-12347.7,-12318.2,142.780)
set gg_unit_h01J_0753=CreateUnit(p,'h01J',1804.6,12818.8,276.130)call SetUnitColor(gg_unit_h01J_0753,ConvertPlayerColor(0))set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_h01J_0753,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_h01J_0753,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000753_DropItems)set u=CreateUnit(p,'u018',-6139.1,7175.3,144.850)call SetUnitAcquireRange(u,200.0)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000777_DropItems)endfunctionfunction CreateBuildingsForPlayer7 takes nothing returns nothing
local player p=Player(7)
local unit u
local integer unitID
local trigger tlocal real lifeset u=CreateUnit(p,'etrp',-7424.0,11648.0,270.000)set u=CreateUnit(p,'etrp',-8448.0,10880.0,270.000)set u=CreateUnit(p,'etrp',-11392.0,9600.0,270.000)set u=CreateUnit(p,'etrp',-10752.0,9600.0,270.000)set gg_unit_etoe_0160=CreateUnit(p,'etoe',-12544.0,11008.0,270.000)set u=CreateUnit(p,'emow',-8992.0,12192.0,270.000)set u=CreateUnit(p,'emow',-8928.0,10208.0,270.000)set u=CreateUnit(p,'emow',-10592.0,10912.0,270.000)set u=CreateUnit(p,'nfv1',-9504.0,12256.0,270.000)set gg_unit_nfv4_0359=CreateUnit(p,'nfv4',-11936.0,11680.0,270.000)set u=CreateUnit(p,'nfv0',-9632.0,10528.0,270.000)set u=CreateUnit(p,'nfv3',-13408.0,11360.0,270.000)set u=CreateUnit(p,'nfv3',-13024.0,11680.0,270.000)set u=CreateUnit(p,'emow',-12768.0,11616.0,270.000)set u=CreateUnit(p,'emow',-11552.0,10528.0,270.000)set u=CreateUnit(p,'emow',-10208.0,12768.0,270.000)set u=CreateUnit(p,'eaom',-12032.0,10560.0,270.000)set u=CreateUnit(p,'edob',-11072.0,10752.0,270.000)set u=CreateUnit(p,'eaoe',-10880.0,12224.0,270.000)set u=CreateUnit(p,'eaow',-10304.0,10304.0,270.000)set u=CreateUnit(p,'eden',-13248.0,11008.0,270.000)set u=CreateUnit(p,'edos',-12544.0,10240.0,270.000)set gg_unit_emow_0377=CreateUnit(p,'emow',-11936.0,11104.0,270.000)set gg_unit_nhcn_0395=CreateUnit(p,'nhcn',-12928.0,10944.0,270.000)set u=CreateUnit(p,'etoa',-11680.0,11360.0,270.000)set u=CreateUnit(p,'etoa',-10848.0,10336.0,270.000)set u=CreateUnit(p,'etoa',-9952.0,11680.0,270.000)call SetUnitState(u,UNIT_STATE_MANA,6000)set u=CreateUnit(p,'nbwd',-12672.0,9856.0,270.000)endfunctionfunction CreateUnitsForPlayer7 takes nothing returns nothing
local player p=Player(7)
local unit u
local integer unitID
local trigger tlocal real lifeset gg_unit_Orkn_0037=CreateUnit(p,'Orkn',13239.7,-7450.5,231.360)call SetHeroLevel(gg_unit_Orkn_0037,40,false)call SetUnitState(gg_unit_Orkn_0037,UNIT_STATE_MANA,90)call SetUnitColor(gg_unit_Orkn_0037,ConvertPlayerColor(5))set gg_unit_Etyr_0052=CreateUnit(p,'Etyr',-10771.2,10868.5,279.830)call SetHeroLevel(gg_unit_Etyr_0052,45,false)call SetUnitState(gg_unit_Etyr_0052,UNIT_STATE_MANA,75)call SelectHeroSkill(gg_unit_Etyr_0052,'AHfa')call SelectHeroSkill(gg_unit_Etyr_0052,'AHfa')call SelectHeroSkill(gg_unit_Etyr_0052,'AHfa')call SelectHeroSkill(gg_unit_Etyr_0052,'AHfa')call SelectHeroSkill(gg_unit_Etyr_0052,'AHfa')call SelectHeroSkill(gg_unit_Etyr_0052,'AHfa')call SelectHeroSkill(gg_unit_Etyr_0052,'AHfa')call SelectHeroSkill(gg_unit_Etyr_0052,'AHfa')call SelectHeroSkill(gg_unit_Etyr_0052,'AHfa')call SelectHeroSkill(gg_unit_Etyr_0052,'AHfa')call SelectHeroSkill(gg_unit_Etyr_0052,'AHfa')call SelectHeroSkill(gg_unit_Etyr_0052,'AHfa')call SelectHeroSkill(gg_unit_Etyr_0052,'AHfa')call SelectHeroSkill(gg_unit_Etyr_0052,'AHfa')call SelectHeroSkill(gg_unit_Etyr_0052,'AHfa')call IssueImmediateOrder(gg_unit_Etyr_0052,"flamingarrows")call SelectHeroSkill(gg_unit_Etyr_0052,'AEar')call SelectHeroSkill(gg_unit_Etyr_0052,'AEar')call SelectHeroSkill(gg_unit_Etyr_0052,'AEar')call SelectHeroSkill(gg_unit_Etyr_0052,'AEar')call SelectHeroSkill(gg_unit_Etyr_0052,'AEar')call SelectHeroSkill(gg_unit_Etyr_0052,'AEar')call SelectHeroSkill(gg_unit_Etyr_0052,'AEar')call SelectHeroSkill(gg_unit_Etyr_0052,'AEar')call SelectHeroSkill(gg_unit_Etyr_0052,'AEar')call SelectHeroSkill(gg_unit_Etyr_0052,'AEar')call SelectHeroSkill(gg_unit_Etyr_0052,'AEar')call SelectHeroSkill(gg_unit_Etyr_0052,'AEar')call SelectHeroSkill(gg_unit_Etyr_0052,'AEar')call SelectHeroSkill(gg_unit_Etyr_0052,'AEar')call SelectHeroSkill(gg_unit_Etyr_0052,'AEar')call SelectHeroSkill(gg_unit_Etyr_0052,'AOcr')call SelectHeroSkill(gg_unit_Etyr_0052,'AOcr')call SelectHeroSkill(gg_unit_Etyr_0052,'AOcr')call SelectHeroSkill(gg_unit_Etyr_0052,'AOcr')call SelectHeroSkill(gg_unit_Etyr_0052,'AOcr')call SelectHeroSkill(gg_unit_Etyr_0052,'AOcr')call SelectHeroSkill(gg_unit_Etyr_0052,'AOcr')call SelectHeroSkill(gg_unit_Etyr_0052,'AOcr')call SelectHeroSkill(gg_unit_Etyr_0052,'AOcr')call SelectHeroSkill(gg_unit_Etyr_0052,'AOcr')call SelectHeroSkill(gg_unit_Etyr_0052,'AOcr')call SelectHeroSkill(gg_unit_Etyr_0052,'AOcr')call SelectHeroSkill(gg_unit_Etyr_0052,'AOcr')call SelectHeroSkill(gg_unit_Etyr_0052,'AOcr')call SelectHeroSkill(gg_unit_Etyr_0052,'AOcr')set u=CreateUnit(p,'earc',-8353.3,10685.8,12.895)set u=CreateUnit(p,'earc',-8361.4,10581.4,12.895)set u=CreateUnit(p,'earc',-8537.9,10713.0,12.895)set u=CreateUnit(p,'earc',-8542.5,10594.0,12.895)set u=CreateUnit(p,'earc',-7756.7,11689.8,225.233)set u=CreateUnit(p,'earc',-7674.6,11689.8,251.799)set u=CreateUnit(p,'earc',-7887.5,11813.6,248.843)set u=CreateUnit(p,'earc',-8016.1,11955.9,252.210)set u=CreateUnit(p,'earc',-8241.9,10326.9,12.895)set u=CreateUnit(p,'earc',-8234.8,10205.0,12.895)set u=CreateUnit(p,'earc',-8121.0,10060.0,12.895)set u=CreateUnit(p,'earc',-8122.6,9949.3,12.895)
set u=CreateUnit(p,'earc',-8388.9,12347.9,266.912)set u=CreateUnit(p,'earc',-8665.7,12473.0,269.104)set u=CreateUnit(p,'earc',-8908.5,12597.9,272.590)set u=CreateUnit(p,'earc',-9255.2,12586.8,302.727)set u=CreateUnit(p,'eshd',-7752.1,11940.5,260.267)set u=CreateUnit(p,'eshd',-8061.7,12295.8,228.844)set u=CreateUnit(p,'eshd',-8440.9,10491.8,23.986)set u=CreateUnit(p,'eshd',-8233.6,10028.5,42.129)set u=CreateUnit(p,'eshd',-8396.0,10243.8,30.973)set u=CreateUnit(p,'esen',-8999.0,12001.2,303.623)set u=CreateUnit(p,'esen',-9060.3,11295.7,25.782)set u=CreateUnit(p,'emtg',-8822.9,11882.7,336.120)set u=CreateUnit(p,'emtg',-8853.9,11179.2,49.141)set u=CreateUnit(p,'esen',-8994.6,11087.6,25.782)set u=CreateUnit(p,'esen',-9085.0,11853.9,326.008)set u=CreateUnit(p,'eshd',-9315.6,12701.2,316.780)set u=CreateUnit(p,'eshd',-8521.9,12527.7,266.742)set gg_unit_Ewrd_0337=CreateUnit(p,'Ewrd',-11760.4,11663.9,289.680)call SetHeroLevel(gg_unit_Ewrd_0337,30,false)call SetUnitState(gg_unit_Ewrd_0337,UNIT_STATE_MANA,600)
call SelectHeroSkill(gg_unit_Ewrd_0337,'AEfk')call SelectHeroSkill(gg_unit_Ewrd_0337,'AEfk')call SelectHeroSkill(gg_unit_Ewrd_0337,'AEfk')call SelectHeroSkill(gg_unit_Ewrd_0337,'AEfk')call SelectHeroSkill(gg_unit_Ewrd_0337,'AEfk')call SelectHeroSkill(gg_unit_Ewrd_0337,'AEfk')call SelectHeroSkill(gg_unit_Ewrd_0337,'AEfk')call SelectHeroSkill(gg_unit_Ewrd_0337,'AEfk')call SelectHeroSkill(gg_unit_Ewrd_0337,'AEfk')call SelectHeroSkill(gg_unit_Ewrd_0337,'AEfk')call SelectHeroSkill(gg_unit_Ewrd_0337,'AEfk')call SelectHeroSkill(gg_unit_Ewrd_0337,'AEfk')call SelectHeroSkill(gg_unit_Ewrd_0337,'AEfk')call SelectHeroSkill(gg_unit_Ewrd_0337,'AEfk')call SelectHeroSkill(gg_unit_Ewrd_0337,'AEfk')call SelectHeroSkill(gg_unit_Ewrd_0337,'A06Y')call SelectHeroSkill(gg_unit_Ewrd_0337,'A06Y')call SelectHeroSkill(gg_unit_Ewrd_0337,'A06Y')call SelectHeroSkill(gg_unit_Ewrd_0337,'A06Y')call SelectHeroSkill(gg_unit_Ewrd_0337,'A06Y')call SelectHeroSkill(gg_unit_Ewrd_0337,'A06Y')call SelectHeroSkill(gg_unit_Ewrd_0337,'A06Y')call SelectHeroSkill(gg_unit_Ewrd_0337,'A06Y')call SelectHeroSkill(gg_unit_Ewrd_0337,'A06Y')call SelectHeroSkill(gg_unit_Ewrd_0337,'A06Y')call SelectHeroSkill(gg_unit_Ewrd_0337,'A06Y')call SelectHeroSkill(gg_unit_Ewrd_0337,'A06Y')call SelectHeroSkill(gg_unit_Ewrd_0337,'A06Y')call SelectHeroSkill(gg_unit_Ewrd_0337,'A06Y')call SelectHeroSkill(gg_unit_Ewrd_0337,'A06Y')call IssueImmediateOrder(gg_unit_Ewrd_0337,"")call UnitAddItemToSlotById(gg_unit_Ewrd_0337,'I09J',0)call UnitAddItemToSlotById(gg_unit_Ewrd_0337,'I0C3',1)set u=CreateUnit(p,'eshd',-10726.8,10967.3,296.437)set u=CreateUnit(p,'eshd',-10867.3,10941.6,263.109)set gg_unit_esen_0342=CreateUnit(p,'esen',-11524.0,11857.9,328.056)set gg_unit_Ecen_0357=CreateUnit(p,'Ecen',-12734.5,10811.3,306.360)call SetHeroLevel(gg_unit_Ecen_0357,90,false)call SetUnitState(gg_unit_Ecen_0357,UNIT_STATE_MANA,145)
call SetUnitColor(gg_unit_Ecen_0357,ConvertPlayerColor(6))call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')call SelectHeroSkill(gg_unit_Ecen_0357,'AEah')set u=CreateUnit(p,'edry',-10694.0,12109.2,17.689)set gg_unit_esen_0369=CreateUnit(p,'esen',-11959.4,11523.9,303.929)set u=CreateUnit(p,'emtg',-11627.0,9819.3,318.705)set u=CreateUnit(p,'edry',-13062.2,11057.2,309.978)set u=CreateUnit(p,'edry',-10435.2,10110.6,220.970)set u=CreateUnit(p,'edry',-9014.1,10919.1,44.777)set u=CreateUnit(p,'edoc',-11222.4,12248.8,248.374)set u=CreateUnit(p,'edoc',-12846.5,10397.4,0.992)set u=CreateUnit(p,'edoc',-9173.3,11558.1,0.992)
set u=CreateUnit(p,'edot',-8954.3,11838.7,302.935)set u=CreateUnit(p,'edot',-9653.6,12130.1,262.952)set u=CreateUnit(p,'edot',-10196.5,10147.3,289.210)set u=CreateUnit(p,'edot',-10413.9,10867.5,321.442)set u=CreateUnit(p,'echm',-12389.3,10258.2,342.500)set u=CreateUnit(p,'echm',-10421.2,10453.2,132.212)set u=CreateUnit(p,'e000',-11319.2,10442.0,354.737)set u=CreateUnit(p,'e000',-10162.4,10691.7,54.692)set u=CreateUnit(p,'e000',-12245.1,11445.5,301.796)set u=CreateUnit(p,'e000',-11625.4,10894.8,127.061)set u=CreateUnit(p,'e000',-10376.1,11374.9,336.978)set u=CreateUnit(p,'nwat',-10987.7,10578.1,274.998)set gg_unit_nwat_0406=CreateUnit(p,'nwat',-11593.5,11616.3,262.041)set u=CreateUnit(p,'nwat',-12356.3,10234.7,343.415)set u=CreateUnit(p,'nwat',-8842.7,12192.8,307.416)set u=CreateUnit(p,'nwat',-8752.6,11050.1,28.374)set gg_unit_Emfr_0413=CreateUnit(p,'Emfr',-11087.5,12119.3,295.540)call SetHeroLevel(gg_unit_Emfr_0413,60,false)call SetUnitState(gg_unit_Emfr_0413,UNIT_STATE_MANA,3000)call SetUnitColor(gg_unit_Emfr_0413,ConvertPlayerColor(3))call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'AEtq')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call SelectHeroSkill(gg_unit_Emfr_0413,'A07Y')call IssueImmediateOrder(gg_unit_Emfr_0413,"")set gg_unit_nssn_0645=CreateUnit(p,'nssn',-9766.6,10479.7,139.120)set u=CreateUnit(p,'nssn',-11227.2,10580.9,274.843)set u=CreateUnit(p,'nssn',-10083.4,11577.4,288.292)set gg_unit_nwat_0684=CreateUnit(p,'nwat',-526.0,-1192.4,294.683)set u=CreateUnit(p,'nfrl',-8960.9,11576.2,13.150)call SetUnitColor(u,ConvertPlayerColor(3))set u=CreateUnit(p,'nfrl',-12104.3,11521.6,-60.432)call SetUnitColor(u,ConvertPlayerColor(3))endfunctionfunction CreateBuildingsForPlayer8 takes nothing returns nothing
local player p=Player(8)
local unit u
local integer unitID
local trigger tlocal real lifeset u=CreateUnit(p,'osld',9728.0,-4032.0,270.000)set u=CreateUnit(p,'owtw',9248.0,-4256.0,270.000)set u=CreateUnit(p,'owtw',11552.0,-3936.0,270.000)set u=CreateUnit(p,'owtw',10720.0,-4000.0,270.000)set u=CreateUnit(p,'owtw',9312.0,-6432.0,270.000)set u=CreateUnit(p,'owtw',10144.0,-7008.0,270.000)set gg_unit_ovln_0266=CreateUnit(p,'ovln',12512.0,-6432.0,270.000)set u=CreateUnit(p,'ngme',12928.0,-5312.0,270.000)set u=CreateUnit(p,'ofrt',10880.0,-5376.0,270.000)set u=CreateUnit(p,'otto',13216.0,-4000.0,270.000)set u=CreateUnit(p,'obea',11616.0,-6432.0,270.000)set u=CreateUnit(p,'obar',9760.0,-5600.0,270.000)set u=CreateUnit(p,'obar',12064.0,-3936.0,270.000)set u=CreateUnit(p,'otrb',9696.0,-5280.0,270.000)set u=CreateUnit(p,'otrb',9952.0,-6432.0,270.000)set u=CreateUnit(p,'otrb',11104.0,-4384.0,270.000)set u=CreateUnit(p,'npgf',10592.0,-6496.0,270.000)set u=CreateUnit(p,'npgf',11168.0,-4832.0,270.000)set u=CreateUnit(p,'npgf',12384.0,-3872.0,270.000)set u=CreateUnit(p,'npgf',11616.0,-4256.0,270.000)endfunctionfunction CreateUnitsForPlayer8 takes nothing returns nothing
local player p=Player(8)
local unit u
local integer unitID
local trigger tlocal real lifeset gg_unit_Ogrh_0043=CreateUnit(p,'Ogrh',12369.4,-5344.5,240.000)call SetHeroLevel(gg_unit_Ogrh_0043,60,false)call SetUnitState(gg_unit_Ogrh_0043,UNIT_STATE_MANA,80)call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOcr')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')call SelectHeroSkill(gg_unit_Ogrh_0043,'AOmi')set gg_unit_Ocb2_0461=CreateUnit(p,'Ocb2',13315.8,-4209.6,239.660)call SetHeroLevel(gg_unit_Ocb2_0461,50,false)call SetUnitState(gg_unit_Ocb2_0461,UNIT_STATE_MANA,70)call SelectHeroSkill(gg_unit_Ocb2_0461,'AOsh')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOsh')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOsh')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOsh')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOsh')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOsh')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOsh')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOsh')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOsh')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOsh')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOsh')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOsh')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOsh')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOsh')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOsh')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOws')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOws')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOws')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOws')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOws')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOws')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOws')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOws')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOws')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOws')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOws')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOws')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOws')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOws')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOws')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOae')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOae')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOae')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOae')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOae')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOae')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOae')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOae')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOae')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOae')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOae')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOae')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOae')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOae')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOae')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOae')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOae')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOae')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOae')call SelectHeroSkill(gg_unit_Ocb2_0461,'AOae')set gg_unit_Odrt_0462=CreateUnit(p,'Odrt',9909.3,-3936.9,293.930)call SetHeroLevel(gg_unit_Odrt_0462,35,false)call SetUnitState(gg_unit_Odrt_0462,UNIT_STATE_MANA,2000)call SelectHeroSkill(gg_unit_Odrt_0462,'AOcl')call SelectHeroSkill(gg_unit_Odrt_0462,'AOcl')call SelectHeroSkill(gg_unit_Odrt_0462,'AOcl')call SelectHeroSkill(gg_unit_Odrt_0462,'AOcl')call SelectHeroSkill(gg_unit_Odrt_0462,'AOcl')call SelectHeroSkill(gg_unit_Odrt_0462,'AOcl')call SelectHeroSkill(gg_unit_Odrt_0462,'AOcl')call SelectHeroSkill(gg_unit_Odrt_0462,'AOcl')call SelectHeroSkill(gg_unit_Odrt_0462,'AOcl')call SelectHeroSkill(gg_unit_Odrt_0462,'AOcl')call SelectHeroSkill(gg_unit_Odrt_0462,'AOcl')call SelectHeroSkill(gg_unit_Odrt_0462,'AOcl')call SelectHeroSkill(gg_unit_Odrt_0462,'AOcl')call SelectHeroSkill(gg_unit_Odrt_0462,'AOcl')call SelectHeroSkill(gg_unit_Odrt_0462,'AOcl')call SelectHeroSkill(gg_unit_Odrt_0462,'AOcl')call SelectHeroSkill(gg_unit_Odrt_0462,'AOcl')call SelectHeroSkill(gg_unit_Odrt_0462,'AOcl')call SelectHeroSkill(gg_unit_Odrt_0462,'A098')call SelectHeroSkill(gg_unit_Odrt_0462,'A098')call SelectHeroSkill(gg_unit_Odrt_0462,'A098')call SelectHeroSkill(gg_unit_Odrt_0462,'A098')call SelectHeroSkill(gg_unit_Odrt_0462,'A098')call SelectHeroSkill(gg_unit_Odrt_0462,'A098')call SelectHeroSkill(gg_unit_Odrt_0462,'A098')call SelectHeroSkill(gg_unit_Odrt_0462,'A098')call SelectHeroSkill(gg_unit_Odrt_0462,'A098')call SelectHeroSkill(gg_unit_Odrt_0462,'A098')call SelectHeroSkill(gg_unit_Odrt_0462,'A098')call SelectHeroSkill(gg_unit_Odrt_0462,'A098')call SelectHeroSkill(gg_unit_Odrt_0462,'A098')call SelectHeroSkill(gg_unit_Odrt_0462,'A098')call SelectHeroSkill(gg_unit_Odrt_0462,'A098')call SelectHeroSkill(gg_unit_Odrt_0462,'A098')call SelectHeroSkill(gg_unit_Odrt_0462,'A098')call IssueImmediateOrder(gg_unit_Odrt_0462,"")call UnitAddItemToSlotById(gg_unit_Odrt_0462,'fgrd',0)set u=CreateUnit(p,'ogru',9947.3,-6962.6,213.876)set u=CreateUnit(p,'ogru',9508.5,-6633.7,254.913)set u=CreateUnit(p,'ogru',9370.9,-4457.1,218.295)set u=CreateUnit(p,'ogru',9553.5,-5152.1,130.864)set u=CreateUnit(p,'ogru',10819.0,-3805.8,88.496)set u=CreateUnit(p,'ogru',11439.4,-3740.0,99.452)set u=CreateUnit(p,'ogru',12478.5,-5475.8,232.567)set u=CreateUnit(p,'ogru',12190.1,-5267.6,231.661)set u=CreateUnit(p,'ogru',10109.4,-5995.0,258.494)set u=CreateUnit(p,'ogru',10535.0,-6344.0,219.820)set u=CreateUnit(p,'ogru',11298.9,-4876.2,321.300)set u=CreateUnit(p,'ohun',11138.9,-4220.9,92.604)set u=CreateUnit(p,'ohun',9926.8,-6563.3,246.891)set u=CreateUnit(p,'ohun',12245.3,-5071.0,207.588)set u=CreateUnit(p,'ohun',9820.6,-6055.7,293.902)set u=CreateUnit(p,'ohun',11168.7,-5935.7,244.705)set u=CreateUnit(p,'ohun',10652.6,-5925.7,313.555)set u=CreateUnit(p,'orai',9595.4,-4644.2,228.637)set u=CreateUnit(p,'orai',10914.5,-4082.0,90.152)set u=CreateUnit(p,'orai',11357.1,-4070.6,94.981)set u=CreateUnit(p,'orai',11810.7,-6349.5,319.880)set u=CreateUnit(p,'orai',12273.2,-4044.8,235.753)set u=CreateUnit(p,'orai',9679.2,-5127.5,151.636)set gg_unit_otau_0486=CreateUnit(p,'otau',13004.6,-3902.1,256.422)set gg_unit_otau_0487=CreateUnit(p,'otau',12830.6,-3892.9,256.422)set u=CreateUnit(p,'otau',11152.5,-4091.7,98.002)set gg_unit_okod_0489=CreateUnit(p,'okod',10779.2,-4211.8,32.488)set gg_unit_okod_0490=CreateUnit(p,'okod',9686.7,-6092.9,285.676)set gg_unit_okod_0491=CreateUnit(p,'okod',9845.6,-5131.1,156.124)set u=CreateUnit(p,'odoc',10012.8,-3895.3,280.858)set u=CreateUnit(p,'odoc',12512.1,-3800.6,280.858)set u=CreateUnit(p,'odoc',9998.7,-6547.6,228.350)set gg_unit_odoc_0495=CreateUnit(p,'odoc',11230.6,-4402.2,86.256)set gg_unit_odoc_0496=CreateUnit(p,'odoc',12334.4,-6419.5,218.975)set gg_unit_oshm_0497=CreateUnit(p,'oshm',9566.0,-4178.3,304.572)set gg_unit_oshm_0498=CreateUnit(p,'oshm',10980.8,-4425.9,78.703)set gg_unit_oshm_0499=CreateUnit(p,'oshm',12648.8,-6616.5,198.191)set gg_unit_owyv_0500=CreateUnit(p,'owyv',11733.8,-3794.8,156.594)set gg_unit_owyv_0501=CreateUnit(p,'owyv',10899.1,-3862.5,71.613)set u=CreateUnit(p,'owyv',9473.3,-5071.1,156.594)set u=CreateUnit(p,'owyv',10085.3,-6367.8,243.129)set u=CreateUnit(p,'otbr',11476.6,-4125.0,126.786)set u=CreateUnit(p,'otbr',10323.0,-6825.6,233.536)set u=CreateUnit(p,'otbr',11121.6,-4501.1,84.109)set u=CreateUnit(p,'osp4',10074.7,-3879.8,308.161)set u=CreateUnit(p,'osp4',12330.9,-6291.1,301.525)set u=CreateUnit(p,'osp4',10526.5,-3879.8,8.633)
set u=CreateUnit(p,'osp4',9307.8,-4435.2,234.488)set u=CreateUnit(p,'ohwd',9823.1,-4184.1,228.643)set u=CreateUnit(p,'ohwd',11107.8,-4268.2,91.892)set u=CreateUnit(p,'ohwd',10056.8,-6310.7,351.782)set u=CreateUnit(p,'ohwd',13234.5,-7293.5,113.305)set gg_unit_nw2w_0515=CreateUnit(p,'nw2w',12190.2,-6314.4,314.614)set gg_unit_nw2w_0516=CreateUnit(p,'nw2w',9754.1,-4207.8,331.314)set gg_unit_nw2w_0517=CreateUnit(p,'nw2w',10393.5,-6471.3,227.449)set gg_unit_nw2w_0518=CreateUnit(p,'nw2w',11578.3,-4423.5,129.172)set gg_unit_nw2w_0519=CreateUnit(p,'nw2w',10761.6,-4462.8,57.448)set gg_unit_Osam_0523=CreateUnit(p,'Osam',9959.4,-5475.7,263.540)call SetHeroLevel(gg_unit_Osam_0523,50,false)call SetUnitState(gg_unit_Osam_0523,UNIT_STATE_MANA,80)call SelectHeroSkill(gg_unit_Osam_0523,'AOmi')call SelectHeroSkill(gg_unit_Osam_0523,'AOmi')call SelectHeroSkill(gg_unit_Osam_0523,'AOmi')call SelectHeroSkill(gg_unit_Osam_0523,'AOmi')call SelectHeroSkill(gg_unit_Osam_0523,'AOmi')call SelectHeroSkill(gg_unit_Osam_0523,'AOmi')call SelectHeroSkill(gg_unit_Osam_0523,'AOmi')call SelectHeroSkill(gg_unit_Osam_0523,'AOmi')call SelectHeroSkill(gg_unit_Osam_0523,'AOmi')call SelectHeroSkill(gg_unit_Osam_0523,'AOmi')call SelectHeroSkill(gg_unit_Osam_0523,'AOmi')call SelectHeroSkill(gg_unit_Osam_0523,'AOmi')call SelectHeroSkill(gg_unit_Osam_0523,'AOmi')call SelectHeroSkill(gg_unit_Osam_0523,'AOmi')call SelectHeroSkill(gg_unit_Osam_0523,'AOmi')call SelectHeroSkill(gg_unit_Osam_0523,'AOcr')call SelectHeroSkill(gg_unit_Osam_0523,'AOcr')call SelectHeroSkill(gg_unit_Osam_0523,'AOcr')call SelectHeroSkill(gg_unit_Osam_0523,'AOcr')call SelectHeroSkill(gg_unit_Osam_0523,'AOcr')call SelectHeroSkill(gg_unit_Osam_0523,'AOcr')call SelectHeroSkill(gg_unit_Osam_0523,'AOcr')call SelectHeroSkill(gg_unit_Osam_0523,'AOcr')call SelectHeroSkill(gg_unit_Osam_0523,'AOcr')call SelectHeroSkill(gg_unit_Osam_0523,'AOcr')call SelectHeroSkill(gg_unit_Osam_0523,'AOcr')call SelectHeroSkill(gg_unit_Osam_0523,'AOcr')call SelectHeroSkill(gg_unit_Osam_0523,'AOcr')call SelectHeroSkill(gg_unit_Osam_0523,'AOcr')call SelectHeroSkill(gg_unit_Osam_0523,'AOcr')set u=CreateUnit(p,'otau',12481.9,-4419.1,207.889)set u=CreateUnit(p,'otau',9943.3,-4623.0,213.226)set gg_unit_Oshd_0529=CreateUnit(p,'Oshd',12287.0,-6325.7,225.570)call SetHeroLevel(gg_unit_Oshd_0529,40,false)call SetUnitState(gg_unit_Oshd_0529,UNIT_STATE_MANA,1800)call SelectHeroSkill(gg_unit_Oshd_0529,'AOhw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOhw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOhw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOhw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOhw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOhw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOhw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOhw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOhw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOhw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOhw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOhw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOhw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOhw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOhw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOhw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOhw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOhw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOhw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOhw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOhx')call SelectHeroSkill(gg_unit_Oshd_0529,'AOsw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOsw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOsw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOsw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOsw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOsw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOsw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOsw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOsw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOsw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOsw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOsw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOsw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOsw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOsw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOsw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOsw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOsw')call SelectHeroSkill(gg_unit_Oshd_0529,'AOsw')endfunctionfunction CreateBuildingsForPlayer9 takes nothing returns nothing
local player p=Player(9)
local unit u
local integer unitID
local trigger tlocal real lifeset u=CreateUnit(p,'hgtw',864.0,-736.0,270.000)set u=CreateUnit(p,'hgtw',1696.0,-736.0,270.000)
set u=CreateUnit(p,'hgtw',5728.0,5536.0,270.000)
set u=CreateUnit(p,'hgtw',4384.0,5536.0,270.000)
set u=CreateUnit(p,'hgtw',-5408.0,4320.0,270.000)set u=CreateUnit(p,'hgtw',-5408.0,3360.0,270.000)set u=CreateUnit(p,'hlum',-6336.0,-9536.0,270.000)set u=CreateUnit(p,'hhou',-6944.0,-9312.0,270.000)set u=CreateUnit(p,'hhou',-10848.0,-12128.0,270.000)
set u=CreateUnit(p,'ngwr',-8864.0,-9056.0,270.000)set u=CreateUnit(p,'h001',-10784.0,-10272.0,270.000)
set u=CreateUnit(p,'hhou',-8736.0,-9952.0,270.000)set u=CreateUnit(p,'hhou',-7072.0,-11232.0,270.000)set u=CreateUnit(p,'nefm',-5728.0,-9568.0,270.000)set u=CreateUnit(p,'nefm',-9056.0,-11744.0,270.000)set u=CreateUnit(p,'nefm',-7648.0,-9952.0,270.000)set gg_unit_hbar_0110=CreateUnit(p,'hbar',6816.0,4512.0,270.000)
set gg_unit_h006_0111=CreateUnit(p,'h006',-12544.0,-12160.0,270.000)
set gg_unit_h001_0112=CreateUnit(p,'h001',2464.0,-2976.0,270.000)set gg_unit_hbar_0121=CreateUnit(p,'hbar',-3488.0,2848.0,270.000)set gg_unit_hbar_0128=CreateUnit(p,'hbar',-6816.0,-10208.0,270.000)set u=CreateUnit(p,'n008',2304.0,11104.0,270.000)call SetUnitColor(u,ConvertPlayerColor(1))call UnitAddItemToSlotById(u,'I086',0)call UnitAddItemToSlotById(u,'I0B1',5)set u=CreateUnit(p,'n008',2560.0,11104.0,270.000)call SetUnitColor(u,ConvertPlayerColor(1))call UnitAddItemToSlotById(u,'I09C',2)call UnitAddItemToSlotById(u,'I094',4)set gg_unit_n008_0186=CreateUnit(p,'n008',2816.0,11104.0,270.000)call SetUnitColor(gg_unit_n008_0186,ConvertPlayerColor(1))call UnitAddItemToSlotById(gg_unit_n008_0186,'I087',4)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_n008_0186,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_n008_0186,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000200_DropItems)set u=CreateUnit(p,'n00B',3232.0,5792.0,270.000)
set gg_unit_h007_0208=CreateUnit(p,'h007',192.0,3264.0,270.000)call SetUnitState(gg_unit_h007_0208,UNIT_STATE_MANA,40000)set gg_unit_Hpb2_0213=CreateUnit(p,'Hpb2',-1369.1,611.4,135.630)
call SetHeroLevel(gg_unit_Hpb2_0213,15,false)call SetUnitState(gg_unit_Hpb2_0213,UNIT_STATE_MANA,350)
call SetUnitColor(gg_unit_Hpb2_0213,ConvertPlayerColor(5))set u=CreateUnit(p,'n008',-2240.0,4576.0,270.000)call SetUnitColor(u,ConvertPlayerColor(1))call UnitAddItemToSlotById(u,'I08G',1)set u=CreateUnit(p,'n008',-1984.0,4576.0,270.000)call SetUnitColor(u,ConvertPlayerColor(1))call UnitAddItemToSlotById(u,'I08D',5)set u=CreateUnit(p,'n008',-1728.0,4576.0,270.000)call SetUnitColor(u,ConvertPlayerColor(1))call UnitAddItemToSlotById(u,'I08S',0)call UnitAddItemToSlotById(u,'I08V',1)call UnitAddItemToSlotById(u,'I08Y',2)call UnitAddItemToSlotById(u,'I091',3)set gg_unit_n008_0229=CreateUnit(p,'n008',-8384.0,-11040.0,270.000)call SetUnitColor(gg_unit_n008_0229,ConvertPlayerColor(1))call UnitAddItemToSlotById(gg_unit_n008_0229,'I092',0)call UnitAddItemToSlotById(gg_unit_n008_0229,'I095',1)call UnitAddItemToSlotById(gg_unit_n008_0229,'I096',2)call UnitAddItemToSlotById(gg_unit_n008_0229,'I098',3)call UnitAddItemToSlotById(gg_unit_n008_0229,'I099',4)set u=CreateUnit(p,'hlum',-1216.0,384.0,270.000)
set gg_unit_h006_0255=CreateUnit(p,'h006',11648.0,7232.0,270.000)set u=CreateUnit(p,'ngme',-2112.0,3648.0,270.000)set u=CreateUnit(p,'harm',1952.0,3808.0,270.000)
set u=CreateUnit(p,'eshy',-11296.0,12832.0,270.000)set u=CreateUnit(p,'nmrk',-6272.0,-10752.0,270.000)call SetUnitColor(u,ConvertPlayerColor(0))set u=CreateUnit(p,'nmrk',-2944.0,704.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(0))set u=CreateUnit(p,'etoa',-1952.0,4320.0,270.000)call SetUnitState(u,UNIT_STATE_MANA,6000)set u=CreateUnit(p,'hgtw',736.0,3296.0,270.000)set u=CreateUnit(p,'hgtw',-352.0,3296.0,270.000)
set u=CreateUnit(p,'etoa',-224.0,544.0,270.000)set u=CreateUnit(p,'etoa',2784.0,544.0,270.000)set u=CreateUnit(p,'n00B',-5600.0,-9952.0,270.000)set u=CreateUnit(p,'h001',-7392.0,-9056.0,270.000)set u=CreateUnit(p,'n008',-896.0,5856.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(1))set u=CreateUnit(p,'n008',-640.0,5856.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(1))call UnitAddItemToSlotById(u,'I08C',2)set u=CreateUnit(p,'n008',-384.0,5856.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(1))set u=CreateUnit(p,'n008',-128.0,5856.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(1))set u=CreateUnit(p,'hhou',-2272.0,-1376.0,270.000)set u=CreateUnit(p,'nefm',-1632.0,-1184.0,270.000)set u=CreateUnit(p,'edob',4480.0,-1216.0,270.000)set u=CreateUnit(p,'h017',-1440.0,2720.0,270.000)set u=CreateUnit(p,'h017',-1440.0,2400.0,270.000)set u=CreateUnit(p,'h017',1504.0,5856.0,270.000)
set u=CreateUnit(p,'h017',800.0,5856.0,270.000)set u=CreateUnit(p,'h017',3040.0,2720.0,270.000)
set u=CreateUnit(p,'h017',2528.0,2720.0,270.000)
set u=CreateUnit(p,'h017',4832.0,1696.0,270.000)
set u=CreateUnit(p,'h017',5344.0,3104.0,270.000)
set u=CreateUnit(p,'h017',6176.0,3104.0,270.000)
set u=CreateUnit(p,'h017',672.0,1440.0,270.000)set u=CreateUnit(p,'h017',1888.0,1440.0,270.000)
set u=CreateUnit(p,'edob',-6144.0,-11584.0,270.000)set gg_unit_H01Z_0761=CreateUnit(p,'H01Z',-2501.8,980.7,247.720)
call SetHeroLevel(gg_unit_H01Z_0761,25,false)call SetUnitState(gg_unit_H01Z_0761,UNIT_STATE_MANA,85)call SetUnitColor(gg_unit_H01Z_0761,ConvertPlayerColor(0))set u=CreateUnit(p,'h022',-1088.0,-544.0,270.000)set u=CreateUnit(p,'etoa',-1888.0,-1504.0,270.000)set u=CreateUnit(p,'etoa',96.0,-1120.0,270.000)set u=CreateUnit(p,'etoa',3744.0,-1248.0,270.000)set u=CreateUnit(p,'utom',-2688.0,2304.0,270.000)set u=CreateUnit(p,'nnsg',-2048.0,2816.0,270.000)set u=CreateUnit(p,'hcas',-2016.0,1184.0,270.000)set u=CreateUnit(p,'nbwd',2816.0,-1216.0,270.000)endfunctionfunction CreateUnitsForPlayer9 takes nothing returns nothing
local player p=Player(9)
local unit u
local integer unitID
local trigger tlocal real lifeset gg_unit_n002_0038=CreateUnit(p,'n002',4356.2,-2960.9,285.940)set gg_unit_Hmgd_0057=CreateUnit(p,'Hmgd',-3858.7,1961.5,309.100)call SetHeroLevel(gg_unit_Hmgd_0057,50,false)call SetUnitState(gg_unit_Hmgd_0057,UNIT_STATE_MANA,85)call SetUnitColor(gg_unit_Hmgd_0057,ConvertPlayerColor(0))call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call SelectHeroSkill(gg_unit_Hmgd_0057,'A080')call IssueImmediateOrder(gg_unit_Hmgd_0057,"")call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call SelectHeroSkill(gg_unit_Hmgd_0057,'AOcr')call UnitAddItemToSlotById(gg_unit_Hmgd_0057,'anfg',0)call UnitAddItemToSlotById(gg_unit_Hmgd_0057,'ratc',1)call UnitAddItemToSlotById(gg_unit_Hmgd_0057,'I0CJ',2)set gg_unit_h00G_0065=CreateUnit(p,'h00G',3269.7,6913.4,90.640)call SetUnitColor(gg_unit_h00G_0065,ConvertPlayerColor(7))set gg_unit_Hant_0066=CreateUnit(p,'Hant',-2328.8,-682.6,311.860)call SetHeroLevel(gg_unit_Hant_0066,30,false)call SetUnitState(gg_unit_Hant_0066,UNIT_STATE_MANA,95)call SetUnitColor(gg_unit_Hant_0066,ConvertPlayerColor(6))set gg_unit_H002_0077=CreateUnit(p,'H002',-398.3,5296.2,319.170)
call SetHeroLevel(gg_unit_H002_0077,35,false)call SetUnitState(gg_unit_H002_0077,UNIT_STATE_MANA,95)call SetUnitColor(gg_unit_H002_0077,ConvertPlayerColor(4))set gg_unit_hspt_0079=CreateUnit(p,'hspt',-106.0,5089.2,115.930)
set gg_unit_hspt_0081=CreateUnit(p,'hspt',-212.3,5015.9,115.930)
set u=CreateUnit(p,'hspt',-456.7,5210.4,287.019)
set u=CreateUnit(p,'hspt',-397.2,5409.3,326.760)
set u=CreateUnit(p,'hhdl',-10460.4,-11119.1,90.000)set u=CreateUnit(p,'hhdl',-10652.4,-11108.5,90.550)set u=CreateUnit(p,'hhdl',-10846.7,-11108.5,85.393)set u=CreateUnit(p,'hrif',-2324.8,-924.3,322.888)set u=CreateUnit(p,'hrif',-7994.3,-8923.1,203.418)set u=CreateUnit(p,'hrif',-8372.5,-8968.0,67.744)set u=CreateUnit(p,'hrif',-6657.2,-12002.9,277.583)set u=CreateUnit(p,'hrif',-6181.2,-11771.3,243.005)set u=CreateUnit(p,'hrif',-7113.9,-10269.0,308.788)set gg_unit_nchp_0105=CreateUnit(p,'nchp',-8182.0,-11384.1,270.510)set gg_unit_nbee_0106=CreateUnit(p,'nbee',-7571.5,-11135.8,215.810)set gg_unit_nvlw_0119=CreateUnit(p,'nvlw',-7030.2,-11414.4,339.810)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nvlw_0119,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nvlw_0119,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000055_DropItems)set u=CreateUnit(p,'hmil',-6107.0,-9602.8,269.800)set gg_unit_nhea_0124=CreateUnit(p,'nhea',-4021.7,1536.2,199.280)set gg_unit_nhea_0125=CreateUnit(p,'nhea',-4022.8,1784.5,199.280)set gg_unit_hmil_0129=CreateUnit(p,'hmil',-3389.8,2169.1,276.765)set gg_unit_hmil_0130=CreateUnit(p,'hmil',-3456.1,2166.5,276.765)set gg_unit_hmil_0131=CreateUnit(p,'hmil',-3525.9,2166.5,276.765)set gg_unit_hmil_0132=CreateUnit(p,'hmil',-3593.7,2158.7,276.765)set gg_unit_hmil_0133=CreateUnit(p,'hmil',-3394.3,2243.7,276.765)set gg_unit_hmil_0134=CreateUnit(p,'hmil',-3460.4,2235.5,276.765)set gg_unit_hmil_0135=CreateUnit(p,'hmil',-3526.2,2232.8,276.765)set gg_unit_hmil_0136=CreateUnit(p,'hmil',-3588.2,2230.1,276.765)set gg_unit_nhea_0137=CreateUnit(p,'nhea',-3398.6,2333.4,269.669)set gg_unit_nhea_0138=CreateUnit(p,'nhea',-3462.7,2327.6,269.669)set gg_unit_nhea_0139=CreateUnit(p,'nhea',-3526.6,2321.9,269.669)set gg_unit_nhea_0140=CreateUnit(p,'nhea',-3592.0,2313.3,269.669)set gg_unit_hfoo_0142=CreateUnit(p,'hfoo',-4300.9,2902.3,4.278)set gg_unit_hfoo_0143=CreateUnit(p,'hfoo',-4306.9,2829.6,4.278)set gg_unit_hfoo_0144=CreateUnit(p,'hfoo',-4306.6,2755.3,4.278)set gg_unit_hfoo_0145=CreateUnit(p,'hfoo',-4303.8,2689.0,0.000)set gg_unit_hrif_0146=CreateUnit(p,'hrif',-4370.7,2951.2,22.368)
set gg_unit_hrif_0147=CreateUnit(p,'hrif',-4371.9,2870.7,22.368)
set gg_unit_hrif_0148=CreateUnit(p,'hrif',-4366.4,2777.3,22.368)
set gg_unit_hrif_0149=CreateUnit(p,'hrif',-4366.4,2698.3,22.368)
set gg_unit_hkni_0153=CreateUnit(p,'hkni',-3508.2,1530.7,91.290)
set gg_unit_hkni_0154=CreateUnit(p,'hkni',-3589.9,1522.2,91.290)
set gg_unit_hkni_0155=CreateUnit(p,'hkni',-3666.8,1522.2,91.290)
set gg_unit_hkni_0156=CreateUnit(p,'hkni',-3752.1,1524.4,91.290)
set gg_unit_H005_0201=CreateUnit(p,'H005',3296.8,10957.9,253.410)call SetHeroLevel(gg_unit_H005_0201,80,false)call SetUnitState(gg_unit_H005_0201,UNIT_STATE_MANA,95)call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'ANfl')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call SelectHeroSkill(gg_unit_H005_0201,'A087')call IssueImmediateOrder(gg_unit_H005_0201,"")call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call SelectHeroSkill(gg_unit_H005_0201,'A08F')call IssueImmediateOrder(gg_unit_H005_0201,"")call SelectHeroSkill(gg_unit_H005_0201,'A05G')call SelectHeroSkill(gg_unit_H005_0201,'A05G')call SelectHeroSkill(gg_unit_H005_0201,'A05G')call SelectHeroSkill(gg_unit_H005_0201,'A05G')call SelectHeroSkill(gg_unit_H005_0201,'A05G')call IssueImmediateOrder(gg_unit_H005_0201,"")set gg_unit_hcth_0206=CreateUnit(p,'hcth',-968.7,5531.9,294.940)
call SetUnitColor(gg_unit_hcth_0206,ConvertPlayerColor(4))set gg_unit_Hmbr_0215=CreateUnit(p,'Hmbr',2246.8,4504.1,246.160)
call SetHeroLevel(gg_unit_Hmbr_0215,20,false)call SetUnitState(gg_unit_Hmbr_0215,UNIT_STATE_MANA,75)call SetUnitColor(gg_unit_Hmbr_0215,ConvertPlayerColor(1))call SelectHeroSkill(gg_unit_Hmbr_0215,'AHtb')call SelectHeroSkill(gg_unit_Hmbr_0215,'AHtb')call SelectHeroSkill(gg_unit_Hmbr_0215,'AHtb')call SelectHeroSkill(gg_unit_Hmbr_0215,'AHtb')call SelectHeroSkill(gg_unit_Hmbr_0215,'AHtb')call SelectHeroSkill(gg_unit_Hmbr_0215,'AHtc')call SelectHeroSkill(gg_unit_Hmbr_0215,'AHtc')call SelectHeroSkill(gg_unit_Hmbr_0215,'AHtc')call SelectHeroSkill(gg_unit_Hmbr_0215,'AHtc')call SelectHeroSkill(gg_unit_Hmbr_0215,'AHtc')call SelectHeroSkill(gg_unit_Hmbr_0215,'AHad')call SelectHeroSkill(gg_unit_Hmbr_0215,'AHad')call SelectHeroSkill(gg_unit_Hmbr_0215,'AHad')call SelectHeroSkill(gg_unit_Hmbr_0215,'AHad')call SelectHeroSkill(gg_unit_Hmbr_0215,'AHad')call SelectHeroSkill(gg_unit_Hmbr_0215,'AHav')call SelectHeroSkill(gg_unit_Hmbr_0215,'AHav')call SelectHeroSkill(gg_unit_Hmbr_0215,'AHav')call SelectHeroSkill(gg_unit_Hmbr_0215,'AHav')call SelectHeroSkill(gg_unit_Hmbr_0215,'AHav')call UnitAddItemToSlotById(gg_unit_Hmbr_0215,'mlst',0)call UnitAddItemToSlotById(gg_unit_Hmbr_0215,'anfg',1)call UnitAddItemToSlotById(gg_unit_Hmbr_0215,'cosl',2)set gg_unit_Hkal_0220=CreateUnit(p,'Hkal',-2468.1,4306.3,312.210)call SetHeroLevel(gg_unit_Hkal_0220,50,false)call SetUnitState(gg_unit_Hkal_0220,UNIT_STATE_MANA,1600)call SetUnitColor(gg_unit_Hkal_0220,ConvertPlayerColor(5))call UnitAddItemToSlotById(gg_unit_Hkal_0220,'I051',0)set gg_unit_Hjai_0221=CreateUnit(p,'Hjai',-2204.4,4447.4,306.630)call SetHeroLevel(gg_unit_Hjai_0221,40,false)call SetUnitState(gg_unit_Hjai_0221,UNIT_STATE_MANA,3000)call SetUnitColor(gg_unit_Hjai_0221,ConvertPlayerColor(1))call SelectHeroSkill(gg_unit_Hjai_0221,'A02G')call SelectHeroSkill(gg_unit_Hjai_0221,'A02G')call SelectHeroSkill(gg_unit_Hjai_0221,'A02G')call SelectHeroSkill(gg_unit_Hjai_0221,'A02G')call SelectHeroSkill(gg_unit_Hjai_0221,'A02G')call SelectHeroSkill(gg_unit_Hjai_0221,'A02G')call SelectHeroSkill(gg_unit_Hjai_0221,'A02G')call SelectHeroSkill(gg_unit_Hjai_0221,'A02G')call SelectHeroSkill(gg_unit_Hjai_0221,'A02G')call SelectHeroSkill(gg_unit_Hjai_0221,'A02G')call SelectHeroSkill(gg_unit_Hjai_0221,'A02G')call SelectHeroSkill(gg_unit_Hjai_0221,'A02G')call SelectHeroSkill(gg_unit_Hjai_0221,'A02G')call SelectHeroSkill(gg_unit_Hjai_0221,'A02G')call SelectHeroSkill(gg_unit_Hjai_0221,'A02G')call SelectHeroSkill(gg_unit_Hjai_0221,'A02G')call SelectHeroSkill(gg_unit_Hjai_0221,'A02G')call SelectHeroSkill(gg_unit_Hjai_0221,'A02G')call SelectHeroSkill(gg_unit_Hjai_0221,'A02G')call SelectHeroSkill(gg_unit_Hjai_0221,'A02G')call IssueImmediateOrder(gg_unit_Hjai_0221,"")call SelectHeroSkill(gg_unit_Hjai_0221,'AUfu')call SelectHeroSkill(gg_unit_Hjai_0221,'AUfu')call SelectHeroSkill(gg_unit_Hjai_0221,'AUfu')call SelectHeroSkill(gg_unit_Hjai_0221,'AUfu')call SelectHeroSkill(gg_unit_Hjai_0221,'AUfu')call SelectHeroSkill(gg_unit_Hjai_0221,'AUfu')call SelectHeroSkill(gg_unit_Hjai_0221,'AUfu')call SelectHeroSkill(gg_unit_Hjai_0221,'AUfu')call SelectHeroSkill(gg_unit_Hjai_0221,'AUfu')call SelectHeroSkill(gg_unit_Hjai_0221,'AUfu')call SelectHeroSkill(gg_unit_Hjai_0221,'AUfu')call SelectHeroSkill(gg_unit_Hjai_0221,'AUfu')call SelectHeroSkill(gg_unit_Hjai_0221,'AUfu')call SelectHeroSkill(gg_unit_Hjai_0221,'AUfu')call SelectHeroSkill(gg_unit_Hjai_0221,'AUfu')call SelectHeroSkill(gg_unit_Hjai_0221,'AUfu')call SelectHeroSkill(gg_unit_Hjai_0221,'AUfu')call SelectHeroSkill(gg_unit_Hjai_0221,'AUfu')call SelectHeroSkill(gg_unit_Hjai_0221,'AUfu')call SelectHeroSkill(gg_unit_Hjai_0221,'AUfu')call IssueImmediateOrder(gg_unit_Hjai_0221,"frostarmoron")call UnitAddItemToSlotById(gg_unit_Hjai_0221,'I034',0)set gg_unit_Naka_0222=CreateUnit(p,'Naka',2260.8,-13663.2,201.780)call SetHeroLevel(gg_unit_Naka_0222,30,false)call SetUnitState(gg_unit_Naka_0222,UNIT_STATE_MANA,95)call SetUnitAcquireRange(gg_unit_Naka_0222,200.0)call UnitAddItemToSlotById(gg_unit_Naka_0222,'tfar',0)call UnitAddItemToSlotById(gg_unit_Naka_0222,'gsou',1)set gg_unit_nhew_0225=CreateUnit(p,'nhew',521.0,-11918.4,144.510)set u=CreateUnit(p,'nhew',-5786.6,-9680.9,231.637)set gg_unit_Hlgr_0230=CreateUnit(p,'Hlgr',917.4,7679.0,286.590)call SetHeroLevel(gg_unit_Hlgr_0230,50,false)call SetUnitState(gg_unit_Hlgr_0230,UNIT_STATE_MANA,85)call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AOsh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call SelectHeroSkill(gg_unit_Hlgr_0230,'AHbh')call UnitAddItemToSlotById(gg_unit_Hlgr_0230,'anfg',0)call UnitAddItemToSlotById(gg_unit_Hlgr_0230,'srtl',1)call UnitAddItemToSlotById(gg_unit_Hlgr_0230,'ratf',2)set gg_unit_hkni_0231=CreateUnit(p,'hkni',-3495.9,4507.6,87.090)
set gg_unit_hkni_0232=CreateUnit(p,'hkni',-3358.7,4511.2,87.090)
set gg_unit_hkni_0233=CreateUnit(p,'hkni',-3229.8,4502.2,87.090)
set gg_unit_hkni_0234=CreateUnit(p,'hkni',-3103.2,4505.8,87.090)
set gg_unit_hkni_0235=CreateUnit(p,'hkni',-3479.3,4314.0,87.090)
set gg_unit_hkni_0236=CreateUnit(p,'hkni',-3353.6,4309.5,87.090)
set gg_unit_hkni_0237=CreateUnit(p,'hkni',-3224.1,4314.0,87.090)
set gg_unit_hkni_0238=CreateUnit(p,'hkni',-3099.0,4314.0,87.090)
set gg_unit_hkni_0239=CreateUnit(p,'hkni',-3486.3,4116.8,87.090)
set gg_unit_hkni_0240=CreateUnit(p,'hkni',-3352.9,4111.5,87.090)
set gg_unit_hkni_0241=CreateUnit(p,'hkni',-3227.7,4109.7,87.090)
set gg_unit_hkni_0242=CreateUnit(p,'hkni',-3104.2,4116.8,87.090)
set u=CreateUnit(p,'ngol',-1179.8,1188.1,273.930)call SetResourceAmount(u,999999)
set gg_unit_Hpal_0257=CreateUnit(p,'Hpal',1150.1,7647.2,266.580)
call SetHeroLevel(gg_unit_Hpal_0257,50,false)call SetUnitState(gg_unit_Hpal_0257,UNIT_STATE_MANA,85)call SetUnitColor(gg_unit_Hpal_0257,ConvertPlayerColor(4))set gg_unit_n00C_0258=CreateUnit(p,'n00C',2939.9,5789.5,238.430)
call SetUnitColor(gg_unit_n00C_0258,ConvertPlayerColor(4))set u=CreateUnit(p,'ngol',2468.2,5732.1,351.002)
call SetResourceAmount(u,999999)
set gg_unit_Nalc_0268=CreateUnit(p,'Nalc',-1753.5,3335.9,213.680)call SetHeroLevel(gg_unit_Nalc_0268,40,false)call SetUnitState(gg_unit_Nalc_0268,UNIT_STATE_MANA,800)
call SelectHeroSkill(gg_unit_Nalc_0268,'ANcr')call SelectHeroSkill(gg_unit_Nalc_0268,'ANcr')call SelectHeroSkill(gg_unit_Nalc_0268,'ANcr')set gg_unit_ngol_0285=CreateUnit(p,'ngol',-10144.0,-10784.0,346.100)
call SetResourceAmount(gg_unit_ngol_0285,999999)
set gg_unit_nbee_0291=CreateUnit(p,'nbee',908.0,-11625.0,215.810)set u=CreateUnit(p,'hmil',456.9,-11671.2,273.645)set u=CreateUnit(p,'hmil',352.4,-12039.2,294.084)set u=CreateUnit(p,'hmil',402.5,-11056.8,270.547)set u=CreateUnit(p,'hmil',-12.9,-11829.3,90.874)
set u=CreateUnit(p,'hrif',219.2,-11835.7,13.599)
set u=CreateUnit(p,'hfoo',32.4,-11196.9,239.148)
set u=CreateUnit(p,'hfoo',49.5,-11555.3,213.847)
set u=CreateUnit(p,'hpea',995.9,-11798.3,345.988)set u=CreateUnit(p,'hpea',-8.9,-11760.0,262.352)
set u=CreateUnit(p,'hpea',215.8,-12007.7,217.612)set u=CreateUnit(p,'hpea',711.3,-11282.1,12.389)
set gg_unit_Ntin_0305=CreateUnit(p,'Ntin',1903.5,3593.8,302.974)
call SetHeroLevel(gg_unit_Ntin_0305,35,false)set u=CreateUnit(p,'hfoo',-8350.1,-11746.4,274.693)set u=CreateUnit(p,'hfoo',-8029.2,-11768.2,276.128)set gg_unit_hkni_0309=CreateUnit(p,'hkni',-10947.3,-11228.3,333.918)
set u=CreateUnit(p,'hpea',-10506.4,-9643.0,38.613)set u=CreateUnit(p,'hpea',-9955.5,-9201.9,186.940)set u=CreateUnit(p,'hpea',-9918.8,-9633.9,288.493)set u=CreateUnit(p,'hpea',-8984.6,-9324.2,238.957)set u=CreateUnit(p,'hpea',-8713.0,-9293.2,302.097)set gg_unit_nhem_0315=CreateUnit(p,'nhem',-8713.2,-10144.7,293.495)set gg_unit_nvl2_0317=CreateUnit(p,'nvl2',-8779.8,-10138.5,213.273)set u=CreateUnit(p,'nvl2',-10532.3,-11243.5,126.390)
set gg_unit_nvl2_0319=CreateUnit(p,'nvl2',-7716.1,-10101.2,221.514)set u=CreateUnit(p,'nvl2',-8943.5,-11838.7,280.187)set u=CreateUnit(p,'nvil',-9718.9,-9712.6,190.000)set u=CreateUnit(p,'nvil',-10670.0,-9257.8,319.131)set u=CreateUnit(p,'nvil',-9132.2,-9251.1,11.198)set u=CreateUnit(p,'nvil',-10580.0,-10370.7,315.230)
set gg_unit_narg_0333=CreateUnit(p,'narg',2948.1,8238.3,270.000)
set gg_unit_narg_0334=CreateUnit(p,'narg',3593.2,8269.4,270.000)
set u=CreateUnit(p,'hkni',973.5,-518.7,299.364)set u=CreateUnit(p,'hkni',1556.3,-511.1,244.192)
set u=CreateUnit(p,'hfoo',975.6,-933.1,274.571)set u=CreateUnit(p,'hfoo',1566.1,-933.1,267.399)
set u=CreateUnit(p,'hfoo',814.3,240.5,301.570)set u=CreateUnit(p,'hfoo',1739.5,269.0,251.523)set u=CreateUnit(p,'nhea',2037.0,-249.5,271.720)
set u=CreateUnit(p,'nhea',2120.3,-254.5,271.720)
set u=CreateUnit(p,'nhea',2203.6,-254.5,271.720)
set u=CreateUnit(p,'nhea',2284.9,-256.9,271.720)
set u=CreateUnit(p,'nhea',2376.5,-261.8,271.720)
set u=CreateUnit(p,'eshd',2199.3,-167.8,316.780)
set u=CreateUnit(p,'nhea',192.3,-264.3,271.720)set u=CreateUnit(p,'nhea',275.6,-269.2,271.720)set u=CreateUnit(p,'nhea',358.9,-269.2,271.720)set u=CreateUnit(p,'nhea',440.2,-271.7,271.720)set u=CreateUnit(p,'nhea',531.8,-276.6,271.720)set u=CreateUnit(p,'eshd',354.6,-182.5,316.780)set u=CreateUnit(p,'nhea',-5013.5,3334.4,166.642)set u=CreateUnit(p,'nhea',-5017.3,3248.3,166.642)set u=CreateUnit(p,'nhea',-5012.2,3171.2,166.642)set u=CreateUnit(p,'nhea',-5006.8,3093.0,166.642)set u=CreateUnit(p,'nhea',-5002.0,3020.6,166.642)set u=CreateUnit(p,'eshd',-4935.8,3199.2,170.601)set u=CreateUnit(p,'nhea',-5014.9,4634.5,166.642)set u=CreateUnit(p,'nhea',-5018.7,4548.4,166.642)set u=CreateUnit(p,'nhea',-5013.6,4471.4,166.642)set u=CreateUnit(p,'nhea',-5008.2,4393.1,166.642)set u=CreateUnit(p,'nhea',-5003.4,4320.7,166.642)set u=CreateUnit(p,'eshd',-4937.2,4499.3,170.601)set u=CreateUnit(p,'nhea',1110.2,1353.5,271.720)
set u=CreateUnit(p,'nhea',1193.6,1348.6,271.720)
set u=CreateUnit(p,'nhea',1276.8,1348.6,271.720)
set u=CreateUnit(p,'nhea',1358.2,1346.1,271.720)
set u=CreateUnit(p,'nhea',1449.8,1341.2,271.720)
set u=CreateUnit(p,'eshd',1144.5,1440.6,316.780)
set u=CreateUnit(p,'nhea',89.9,713.1,357.969)set u=CreateUnit(p,'nhea',93.0,515.7,1.044)set u=CreateUnit(p,'nhea',91.1,323.5,18.170)
set u=CreateUnit(p,'eshd',-11.9,530.4,2.937)
set u=CreateUnit(p,'nhea',2475.7,676.1,179.816)set u=CreateUnit(p,'nhea',2481.5,511.0,163.473)set u=CreateUnit(p,'nhea',2471.0,367.2,168.152)set u=CreateUnit(p,'eshd',2564.2,521.0,176.227)set gg_unit_nsty_0642=CreateUnit(p,'nsty',-6924.9,-9505.4,300.366)set gg_unit_nsty_0643=CreateUnit(p,'nsty',-6436.5,-10770.8,221.426)set u=CreateUnit(p,'nsty',-10413.3,-11752.1,233.810)
set u=CreateUnit(p,'hmil',-1464.0,-788.7,262.420)set u=CreateUnit(p,'hmil',-927.6,-1298.9,237.074)set u=CreateUnit(p,'hfoo',-548.9,-254.9,250.914)
set u=CreateUnit(p,'hfoo',-998.7,-257.0,317.980)
set u=CreateUnit(p,'hrif',-2137.5,-748.2,309.832)set u=CreateUnit(p,'hrif',-675.5,-860.2,309.832)
set u=CreateUnit(p,'ncg3',2861.1,-3719.3,210.000)set u=CreateUnit(p,'ncg3',2770.1,-3211.5,324.998)set u=CreateUnit(p,'ncg3',3475.9,-3752.1,101.976)set u=CreateUnit(p,'ncg3',3234.5,-2927.9,88.858)
set u=CreateUnit(p,'ncg3',3137.8,-3205.9,283.492)set u=CreateUnit(p,'ncg3',2585.3,-3872.2,98.821)
set u=CreateUnit(p,'ncg3',2791.6,-2959.5,137.496)set u=CreateUnit(p,'nmed',3329.5,-791.4,268.260)
set gg_unit_Hpb1_0681=CreateUnit(p,'Hpb1',-3725.4,2914.7,244.210)call SetHeroLevel(gg_unit_Hpb1_0681,40,false)call SetHeroStr(gg_unit_Hpb1_0681,140,true)call SetHeroAgi(gg_unit_Hpb1_0681,60,true)call SetHeroInt(gg_unit_Hpb1_0681,40,true)call SetUnitState(gg_unit_Hpb1_0681,UNIT_STATE_MANA,50)call UnitAddItemToSlotById(gg_unit_Hpb1_0681,'rat6',0)call UnitAddItemToSlotById(gg_unit_Hpb1_0681,'tfar',1)call UnitAddItemToSlotById(gg_unit_Hpb1_0681,'I03F',2)call UnitAddItemToSlotById(gg_unit_Hpb1_0681,'I02H',3)call UnitAddItemToSlotById(gg_unit_Hpb1_0681,'I0CH',4)set gg_unit_hcth_0736=CreateUnit(p,'hcth',-586.4,5595.0,271.987)
call SetUnitColor(gg_unit_hcth_0736,ConvertPlayerColor(4))set gg_unit_hcth_0737=CreateUnit(p,'hcth',-679.5,5212.3,223.769)
call SetUnitColor(gg_unit_hcth_0737,ConvertPlayerColor(4))set gg_unit_nhew_0754=CreateUnit(p,'nhew',-2083.6,450.2,324.247)
set gg_unit_haro_0767=CreateUnit(p,'haro',7136.0,224.0,232.420)set u=CreateUnit(p,'nhef',-7904.7,-11152.5,243.420)set u=CreateUnit(p,'nhef',-1149.9,2720.2,270.250)set u=CreateUnit(p,'ngol',2724.2,-2395.9,156.968)call SetResourceAmount(u,999999)
set u=CreateUnit(p,'ngol',-731.8,6820.1,167.458)
call SetResourceAmount(u,999999)
set gg_unit_Hvwd_0807=CreateUnit(p,'Hvwd',1277.0,1505.5,276.530)
call SetHeroLevel(gg_unit_Hvwd_0807,60,false)call SetUnitState(gg_unit_Hvwd_0807,UNIT_STATE_MANA,75)call SetUnitColor(gg_unit_Hvwd_0807,ConvertPlayerColor(6))call SelectHeroSkill(gg_unit_Hvwd_0807,'AHca')call SelectHeroSkill(gg_unit_Hvwd_0807,'AHca')call SelectHeroSkill(gg_unit_Hvwd_0807,'AHca')call SelectHeroSkill(gg_unit_Hvwd_0807,'AHca')call SelectHeroSkill(gg_unit_Hvwd_0807,'AHca')call SelectHeroSkill(gg_unit_Hvwd_0807,'AHca')call SelectHeroSkill(gg_unit_Hvwd_0807,'AHca')call SelectHeroSkill(gg_unit_Hvwd_0807,'AHca')call SelectHeroSkill(gg_unit_Hvwd_0807,'AHca')call SelectHeroSkill(gg_unit_Hvwd_0807,'AHca')call SelectHeroSkill(gg_unit_Hvwd_0807,'AHca')call SelectHeroSkill(gg_unit_Hvwd_0807,'AHca')call SelectHeroSkill(gg_unit_Hvwd_0807,'AHca')call SelectHeroSkill(gg_unit_Hvwd_0807,'AHca')call SelectHeroSkill(gg_unit_Hvwd_0807,'AHca')call SelectHeroSkill(gg_unit_Hvwd_0807,'AHca')call SelectHeroSkill(gg_unit_Hvwd_0807,'AHca')call SelectHeroSkill(gg_unit_Hvwd_0807,'AHca')call SelectHeroSkill(gg_unit_Hvwd_0807,'AHca')call SelectHeroSkill(gg_unit_Hvwd_0807,'AHca')call SelectHeroSkill(gg_unit_Hvwd_0807,'AOcr')call SelectHeroSkill(gg_unit_Hvwd_0807,'AOcr')call SelectHeroSkill(gg_unit_Hvwd_0807,'AOcr')call SelectHeroSkill(gg_unit_Hvwd_0807,'AOcr')call SelectHeroSkill(gg_unit_Hvwd_0807,'AOcr')call SelectHeroSkill(gg_unit_Hvwd_0807,'AOcr')call SelectHeroSkill(gg_unit_Hvwd_0807,'AOcr')call SelectHeroSkill(gg_unit_Hvwd_0807,'AOcr')call SelectHeroSkill(gg_unit_Hvwd_0807,'AOcr')call SelectHeroSkill(gg_unit_Hvwd_0807,'AOcr')call SelectHeroSkill(gg_unit_Hvwd_0807,'AOcr')call SelectHeroSkill(gg_unit_Hvwd_0807,'AOcr')call SelectHeroSkill(gg_unit_Hvwd_0807,'AOcr')call SelectHeroSkill(gg_unit_Hvwd_0807,'AOcr')call SelectHeroSkill(gg_unit_Hvwd_0807,'AOcr')call SelectHeroSkill(gg_unit_Hvwd_0807,'AOcr')call SelectHeroSkill(gg_unit_Hvwd_0807,'AOcr')call SelectHeroSkill(gg_unit_Hvwd_0807,'AOcr')call SelectHeroSkill(gg_unit_Hvwd_0807,'AOcr')call SelectHeroSkill(gg_unit_Hvwd_0807,'AOcr')call SelectHeroSkill(gg_unit_Hvwd_0807,'AEar')call SelectHeroSkill(gg_unit_Hvwd_0807,'AEar')call SelectHeroSkill(gg_unit_Hvwd_0807,'AEar')call SelectHeroSkill(gg_unit_Hvwd_0807,'AEar')call SelectHeroSkill(gg_unit_Hvwd_0807,'AEar')call SelectHeroSkill(gg_unit_Hvwd_0807,'AEar')call SelectHeroSkill(gg_unit_Hvwd_0807,'AEar')call SelectHeroSkill(gg_unit_Hvwd_0807,'AEar')call SelectHeroSkill(gg_unit_Hvwd_0807,'AEar')call SelectHeroSkill(gg_unit_Hvwd_0807,'AEar')call SelectHeroSkill(gg_unit_Hvwd_0807,'AEar')call SelectHeroSkill(gg_unit_Hvwd_0807,'AEar')call SelectHeroSkill(gg_unit_Hvwd_0807,'AEar')call SelectHeroSkill(gg_unit_Hvwd_0807,'AEar')call SelectHeroSkill(gg_unit_Hvwd_0807,'AEar')call SelectHeroSkill(gg_unit_Hvwd_0807,'AEar')call SelectHeroSkill(gg_unit_Hvwd_0807,'AEar')call SelectHeroSkill(gg_unit_Hvwd_0807,'AEar')call SelectHeroSkill(gg_unit_Hvwd_0807,'AEar')call SelectHeroSkill(gg_unit_Hvwd_0807,'AEar')call UnitAddItemToSlotById(gg_unit_Hvwd_0807,'I05T',0)call UnitAddItemToSlotById(gg_unit_Hvwd_0807,'wneg',1)set u=CreateUnit(p,'eshd',1397.3,1445.4,316.780)
set gg_unit_Hhkl_0822=CreateUnit(p,'Hhkl',-57.9,5492.3,252.390)call SetHeroLevel(gg_unit_Hhkl_0822,50,false)call SetHeroStr(gg_unit_Hhkl_0822,254,true)call SetHeroAgi(gg_unit_Hhkl_0822,86,true)call SetHeroInt(gg_unit_Hhkl_0822,105,true)call SetUnitState(gg_unit_Hhkl_0822,UNIT_STATE_MANA,85)call SetUnitColor(gg_unit_Hhkl_0822,ConvertPlayerColor(4))call SelectHeroSkill(gg_unit_Hhkl_0822,'AHhb')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHhb')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHhb')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHhb')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHhb')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHhb')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHhb')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHhb')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHhb')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHhb')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHhb')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHhb')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHhb')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHhb')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHhb')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHbh')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHbh')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHbh')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHbh')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHbh')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHbh')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHbh')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHbh')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHbh')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHbh')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHbh')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHbh')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHbh')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHbh')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHbh')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHad')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHad')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHad')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHad')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHad')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHad')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHad')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHad')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHad')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHad')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHad')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHad')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHad')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHad')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHad')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHad')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHad')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHad')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHad')call SelectHeroSkill(gg_unit_Hhkl_0822,'AHad')call UnitAddItemToSlotById(gg_unit_Hhkl_0822,'rhe2',0)endfunctionfunction CreateBuildingsForPlayer10 takes nothing returns nothinglocal player p=Player(10)local unit u
local integer unitID
local trigger tlocal real lifeset gg_unit_h00B_0292=CreateUnit(p,'h00B',12704.0,-9312.0,270.000)endfunctionfunction CreateUnitsForPlayer10 takes nothing returns nothinglocal player p=Player(10)local unit u
local integer unitID
local trigger tlocal real lifeset gg_unit_ndrj_0051=CreateUnit(p,'ndrj',1327.0,12921.5,274.530)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_ndrj_0051,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_ndrj_0051,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000346_DropItems)set gg_unit_Uanb_0282=CreateUnit(p,'Uanb',13357.9,11997.9,215.550)call SetHeroLevel(gg_unit_Uanb_0282,60,false)call SetUnitState(gg_unit_Uanb_0282,UNIT_STATE_MANA,70)call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUim')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')call SelectHeroSkill(gg_unit_Uanb_0282,'AUts')set gg_unit_nsel_0347=CreateUnit(p,'nsel',1224.3,12639.7,272.910)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nsel_0347,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nsel_0347,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000343_DropItems)set gg_unit_Nfir_0348=CreateUnit(p,'Nfir',1227.2,12520.0,273.250)call SetHeroLevel(gg_unit_Nfir_0348,25,false)call SetUnitState(gg_unit_Nfir_0348,UNIT_STATE_MANA,90)call SetUnitColor(gg_unit_Nfir_0348,ConvertPlayerColor(5))call SelectHeroSkill(gg_unit_Nfir_0348,'A02F')call SelectHeroSkill(gg_unit_Nfir_0348,'A02F')call SelectHeroSkill(gg_unit_Nfir_0348,'A02F')call SelectHeroSkill(gg_unit_Nfir_0348,'A02F')call SelectHeroSkill(gg_unit_Nfir_0348,'A02F')call SelectHeroSkill(gg_unit_Nfir_0348,'A02F')call SelectHeroSkill(gg_unit_Nfir_0348,'A02F')call SelectHeroSkill(gg_unit_Nfir_0348,'A02F')call SelectHeroSkill(gg_unit_Nfir_0348,'A02F')call SelectHeroSkill(gg_unit_Nfir_0348,'A02F')call SelectHeroSkill(gg_unit_Nfir_0348,'A02F')call IssueImmediateOrder(gg_unit_Nfir_0348,"")call SelectHeroSkill(gg_unit_Nfir_0348,'ANvc')call SelectHeroSkill(gg_unit_Nfir_0348,'ANic')call SelectHeroSkill(gg_unit_Nfir_0348,'ANic')call SelectHeroSkill(gg_unit_Nfir_0348,'ANic')call SelectHeroSkill(gg_unit_Nfir_0348,'ANic')call SelectHeroSkill(gg_unit_Nfir_0348,'ANic')call SelectHeroSkill(gg_unit_Nfir_0348,'ANic')call SelectHeroSkill(gg_unit_Nfir_0348,'ANic')call SelectHeroSkill(gg_unit_Nfir_0348,'ANic')call SelectHeroSkill(gg_unit_Nfir_0348,'ANic')call SelectHeroSkill(gg_unit_Nfir_0348,'ANic')call SelectHeroSkill(gg_unit_Nfir_0348,'ANic')call SelectHeroSkill(gg_unit_Nfir_0348,'ANic')call SelectHeroSkill(gg_unit_Nfir_0348,'ANic')set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_Nfir_0348,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_Nfir_0348,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000339_DropItems)set gg_unit_n00E_0401=CreateUnit(p,'n00E',1388.8,12491.5,272.580)call SetUnitColor(gg_unit_n00E_0401,ConvertPlayerColor(2))set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_n00E_0401,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_n00E_0401,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000401_DropItems)set gg_unit_nwwd_0428=CreateUnit(p,'nwwd',1656.3,12988.9,272.340)call SetUnitColor(gg_unit_nwwd_0428,ConvertPlayerColor(1))set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nwwd_0428,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nwwd_0428,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000428_DropItems)set gg_unit_nanc_0433=CreateUnit(p,'nanc',1671.5,12742.0,265.280)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nanc_0433,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nanc_0433,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000432_DropItems)set gg_unit_nhhr_0436=CreateUnit(p,'nhhr',1675.7,12597.3,268.710)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nhhr_0436,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nhhr_0436,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000433_DropItems)set u=CreateUnit(p,'nsgn',5375.2,25974.8,278.530)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000820_DropItems)set gg_unit_Usyl_0820=CreateUnit(p,'Usyl',2422.6,12635.8,263.150)call SetHeroLevel(gg_unit_Usyl_0820,60,false)call SetUnitState(gg_unit_Usyl_0820,UNIT_STATE_MANA,75)call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'ANdb')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AEar')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'AOcr')call SelectHeroSkill(gg_unit_Usyl_0820,'A082')call SelectHeroSkill(gg_unit_Usyl_0820,'A082')call SelectHeroSkill(gg_unit_Usyl_0820,'A082')call SelectHeroSkill(gg_unit_Usyl_0820,'A082')call SelectHeroSkill(gg_unit_Usyl_0820,'A082')call SelectHeroSkill(gg_unit_Usyl_0820,'A082')call SelectHeroSkill(gg_unit_Usyl_0820,'A082')call SelectHeroSkill(gg_unit_Usyl_0820,'A082')call SelectHeroSkill(gg_unit_Usyl_0820,'A082')call SelectHeroSkill(gg_unit_Usyl_0820,'A082')call IssueImmediateOrder(gg_unit_Usyl_0820,"")call UnitAddItemToSlotById(gg_unit_Usyl_0820,'rwat',0)set gg_unit_nzlc_0821=CreateUnit(p,'nzlc',-25326.9,27153.5,269.770)endfunctionfunction CreateBuildingsForPlayer11 takes nothing returns nothinglocal player p=Player(11)local unit u
local integer unitID
local trigger tlocal real lifeset u=CreateUnit(p,'nef4',1248.0,-6560.0,270.000)set u=CreateUnit(p,'nef4',1632.0,-6112.0,270.000)set u=CreateUnit(p,'nef4',2016.0,-6560.0,270.000)set gg_unit_ndmg_0116=CreateUnit(p,'ndmg',13184.0,12928.0,270.000)set gg_unit_ncop_0117=CreateUnit(p,'ncop',12352.0,13056.0,270.000)set gg_unit_uslh_0152=CreateUnit(p,'uslh',-5184.0,9216.0,270.000)set gg_unit_ncte_0161=CreateUnit(p,'ncte',-2624.0,12160.0,270.000)set u=CreateUnit(p,'ncap',-4096.0,11392.0,270.000)set u=CreateUnit(p,'ncap',-3200.0,10624.0,270.000)set u=CreateUnit(p,'ncaw',-3328.0,12288.0,270.000)set u=CreateUnit(p,'emow',-2912.0,11488.0,270.000)set u=CreateUnit(p,'emow',-3488.0,11808.0,270.000)set gg_unit_uzg1_0251=CreateUnit(p,'uzg1',10592.0,12640.0,270.000)set gg_unit_uzg1_0252=CreateUnit(p,'uzg1',11232.0,12000.0,270.000)set gg_unit_usep_0253=CreateUnit(p,'usep',11392.0,12736.0,270.000)set u=CreateUnit(p,'ncop',11776.0,13056.0,270.000)set u=CreateUnit(p,'ncop',12160.0,13056.0,270.000)set u=CreateUnit(p,'ncop',11968.0,13056.0,270.000)set gg_unit_nshr_0402=CreateUnit(p,'nshr',-8960.0,7360.0,270.000)set gg_unit_ncop_0533=CreateUnit(p,'ncop',12544.0,13056.0,270.000)set u=CreateUnit(p,'ncop',12736.0,13056.0,270.000)set gg_unit_ncta_0627=CreateUnit(p,'ncta',-13152.0,5344.0,270.000)set gg_unit_uzg1_0689=CreateUnit(p,'uzg1',12896.0,11232.0,270.000)set gg_unit_uzg1_0690=CreateUnit(p,'uzg1',12128.0,11232.0,270.000)set gg_unit_nbsm_0775=CreateUnit(p,'nbsm',-6464.0,-1600.0,270.000)set gg_unit_usap_0785=CreateUnit(p,'usap',2560.0,12864.0,270.000)call SetUnitColor(gg_unit_usap_0785,ConvertPlayerColor(3))set u=CreateUnit(p,'o00B',-4000.0,15584.0,270.000)set u=CreateUnit(p,'o00F',-5728.0,15200.0,270.000)set u=CreateUnit(p,'o00F',-2976.0,14944.0,270.000)set u=CreateUnit(p,'o00F',-5024.0,15840.0,270.000)set u=CreateUnit(p,'ncap',-1536.0,11968.0,270.000)set u=CreateUnit(p,'o00F',-10784.0,17056.0,270.000)set u=CreateUnit(p,'o00F',-12384.0,17952.0,270.000)set u=CreateUnit(p,'o00F',-8032.0,18720.0,270.000)set u=CreateUnit(p,'o00F',-5728.0,19168.0,270.000)set u=CreateUnit(p,'o00F',-5600.0,22240.0,270.000)set u=CreateUnit(p,'o00B',-7584.0,19360.0,270.000)set u=CreateUnit(p,'o00B',-6752.0,22560.0,270.000)set u=CreateUnit(p,'o00B',-5984.0,23456.0,270.000)set gg_unit_h006_0804=CreateUnit(p,'h006',-18880.0,-10816.0,270.000)
set u=CreateUnit(p,'nef0',-27392.0,-9216.0,270.000)set gg_unit_h027_0812=CreateUnit(p,'h027',22560.0,11168.0,270.000)set gg_unit_nbse_0816=CreateUnit(p,'nbse',-160.0,-14880.0,270.000)set gg_unit_nbse_0817=CreateUnit(p,'nbse',-8672.0,-7008.0,270.000)set gg_unit_nbse_0818=CreateUnit(p,'nbse',-19168.0,-13280.0,270.000)
set gg_unit_nbse_0819=CreateUnit(p,'nbse',-12064.0,17632.0,270.000)set u=CreateUnit(p,'n008',-26624.0,-13344.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(1))set u=CreateUnit(p,'n008',-26880.0,-13344.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(1))set u=CreateUnit(p,'n008',-27136.0,-13344.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(1))set u=CreateUnit(p,'n008',-27392.0,-13344.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(1))set u=CreateUnit(p,'n008',-27648.0,-13344.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(1))set u=CreateUnit(p,'n008',-27904.0,-13344.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(1))set u=CreateUnit(p,'n008',-28160.0,-13344.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(1))set u=CreateUnit(p,'n015',19264.0,26176.0,270.000)set u=CreateUnit(p,'n015',18624.0,26176.0,270.000)set u=CreateUnit(p,'o00F',-13216.0,15328.0,270.000)set u=CreateUnit(p,'o00F',-13664.0,15008.0,270.000)set gg_unit_npgr_0864=CreateUnit(p,'npgr',-17472.0,-13376.0,270.000)
endfunctionfunction CreateUnitsForPlayer11 takes nothing returns nothinglocal player p=Player(11)local unit u
local integer unitID
local trigger tlocal real lifeset gg_unit_nfrg_0039=CreateUnit(p,'nfrg',939.8,12983.7,274.760)
set gg_unit_u000_0041=CreateUnit(p,'u000',948.6,12817.0,274.682)
call SetUnitColor(gg_unit_u000_0041,ConvertPlayerColor(12))set gg_unit_Nman_0044=CreateUnit(p,'Nman',13267.9,12231.1,222.230)call SetHeroLevel(gg_unit_Nman_0044,80,false)call SetUnitState(gg_unit_Nman_0044,UNIT_STATE_MANA,100)
call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'AOsh')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'ANca')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call SelectHeroSkill(gg_unit_Nman_0044,'A098')call IssueImmediateOrder(gg_unit_Nman_0044,"")call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')call SelectHeroSkill(gg_unit_Nman_0044,'AOws')set gg_unit_nspp_0049=CreateUnit(p,'nspp',921.4,12734.2,264.232)
set gg_unit_nwld_0067=CreateUnit(p,'nwld',829.7,12979.6,270.100)
call SetUnitState(gg_unit_nwld_0067,UNIT_STATE_MANA,100)
set gg_unit_h003_0068=CreateUnit(p,'h003',943.1,12538.5,265.330)
call SetUnitColor(gg_unit_h003_0068,ConvertPlayerColor(7))set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_h003_0068,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_h003_0068,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000117_DropItems)set gg_unit_nbrg_0069=CreateUnit(p,'nbrg',1008.4,12602.0,267.100)call SetUnitColor(gg_unit_nbrg_0069,ConvertPlayerColor(7))set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nbrg_0069,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nbrg_0069,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000118_DropItems)set gg_unit_ubsp_0080=CreateUnit(p,'ubsp',1220.3,13012.3,273.322)set gg_unit_nban_0087=CreateUnit(p,'nban',942.7,12612.4,239.920)
call SetUnitColor(gg_unit_nban_0087,ConvertPlayerColor(7))set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nban_0087,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nban_0087,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000116_DropItems)set gg_unit_nkol_0107=CreateUnit(p,'nkol',814.8,12821.8,59.527)set gg_unit_nkog_0108=CreateUnit(p,'nkog',804.0,12720.5,54.789)set gg_unit_ndqp_0118=CreateUnit(p,'ndqp',1093.6,12831.2,75.400)
call SetUnitColor(gg_unit_ndqp_0118,ConvertPlayerColor(3))set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_ndqp_0118,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_ndqp_0118,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000073_DropItems)set gg_unit_nbld_0126=CreateUnit(p,'nbld',1014.1,12494.2,248.420)call SetUnitColor(gg_unit_nbld_0126,ConvertPlayerColor(4))set gg_unit_ngnv_0150=CreateUnit(p,'ngnv',1111.7,12456.0,225.950)set gg_unit_Utic_0214=CreateUnit(p,'Utic',3075.9,12982.9,281.670)call SetHeroLevel(gg_unit_Utic_0214,1000,false)call SetUnitState(gg_unit_Utic_0214,UNIT_STATE_MANA,90)call SetUnitColor(gg_unit_Utic_0214,ConvertPlayerColor(4))call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call SelectHeroSkill(gg_unit_Utic_0214,'A083')call IssueImmediateOrder(gg_unit_Utic_0214,"")call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call SelectHeroSkill(gg_unit_Utic_0214,'A082')call IssueImmediateOrder(gg_unit_Utic_0214,"")set gg_unit_nskg_0263=CreateUnit(p,'nskg',11772.3,13064.5,267.970)set gg_unit_nsoc_0264=CreateUnit(p,'nsoc',11970.7,13060.5,266.070)call SetUnitState(gg_unit_nsoc_0264,UNIT_STATE_MANA,0)set gg_unit_hphx_0272=CreateUnit(p,'hphx',1233.0,12866.2,268.830)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_hphx_0272,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_hphx_0272,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000272_DropItems)set gg_unit_n00D_0274=CreateUnit(p,'n00D',1224.0,12762.7,265.860)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_n00D_0274,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_n00D_0274,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000273_DropItems)set u=CreateUnit(p,'ocat',-13434.0,15115.3,307.149)set gg_unit_nvdg_0335=CreateUnit(p,'nvdg',1441.6,13023.7,270.070)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nvdg_0335,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nvdg_0335,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000348_DropItems)set gg_unit_ndmu_0336=CreateUnit(p,'ndmu',1318.6,12858.4,2.781)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_ndmu_0336,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_ndmu_0336,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000350_DropItems)set gg_unit_Uvng_0345=CreateUnit(p,'Uvng',1390.7,12618.6,279.560)call SetHeroLevel(gg_unit_Uvng_0345,35,false)call SetUnitState(gg_unit_Uvng_0345,UNIT_STATE_MANA,90)call SetUnitColor(gg_unit_Uvng_0345,ConvertPlayerColor(0))call UnitAddItemToSlotById(gg_unit_Uvng_0345,'I01P',0)call UnitAddItemToSlotById(gg_unit_Uvng_0345,'sor8',1)call UnitAddItemToSlotById(gg_unit_Uvng_0345,'I0BU',2)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_Uvng_0345,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_Uvng_0345,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000354_DropItems)set u=CreateUnit(p,'nlv3',-12922.4,-5930.9,312.490)set u=CreateUnit(p,'nlv3',-12454.3,-5955.1,240.286)set u=CreateUnit(p,'nlv3',-12899.8,-6385.0,53.620)set u=CreateUnit(p,'nlv3',-12453.3,-6377.4,130.407)set gg_unit_nrvl_0353=CreateUnit(p,'nrvl',1339.8,13018.0,275.810)call SetUnitColor(gg_unit_nrvl_0353,ConvertPlayerColor(1))set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nrvl_0353,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nrvl_0353,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000097_DropItems)set gg_unit_Eevi_0403=CreateUnit(p,'Eevi',1454.9,12939.0,272.370)call SetHeroLevel(gg_unit_Eevi_0403,60,false)call SetUnitState(gg_unit_Eevi_0403,UNIT_STATE_MANA,80)call SetUnitColor(gg_unit_Eevi_0403,ConvertPlayerColor(6))call SelectHeroSkill(gg_unit_Eevi_0403,'AEmb')call SelectHeroSkill(gg_unit_Eevi_0403,'AEmb')call SelectHeroSkill(gg_unit_Eevi_0403,'AEmb')call SelectHeroSkill(gg_unit_Eevi_0403,'AEmb')call SelectHeroSkill(gg_unit_Eevi_0403,'AEmb')call SelectHeroSkill(gg_unit_Eevi_0403,'AEmb')call SelectHeroSkill(gg_unit_Eevi_0403,'AEmb')call SelectHeroSkill(gg_unit_Eevi_0403,'AEmb')call SelectHeroSkill(gg_unit_Eevi_0403,'AEmb')call SelectHeroSkill(gg_unit_Eevi_0403,'AEmb')call SelectHeroSkill(gg_unit_Eevi_0403,'AEmb')call SelectHeroSkill(gg_unit_Eevi_0403,'AEmb')call SelectHeroSkill(gg_unit_Eevi_0403,'AEmb')call SelectHeroSkill(gg_unit_Eevi_0403,'AEmb')call SelectHeroSkill(gg_unit_Eevi_0403,'AEmb')call SelectHeroSkill(gg_unit_Eevi_0403,'AEmb')call SelectHeroSkill(gg_unit_Eevi_0403,'AEmb')call SelectHeroSkill(gg_unit_Eevi_0403,'AEmb')call SelectHeroSkill(gg_unit_Eevi_0403,'AEmb')call SelectHeroSkill(gg_unit_Eevi_0403,'AEmb')call SelectHeroSkill(gg_unit_Eevi_0403,'AEim')call SelectHeroSkill(gg_unit_Eevi_0403,'AEim')call SelectHeroSkill(gg_unit_Eevi_0403,'AEim')call SelectHeroSkill(gg_unit_Eevi_0403,'AEim')call SelectHeroSkill(gg_unit_Eevi_0403,'AEim')call SelectHeroSkill(gg_unit_Eevi_0403,'AEim')call SelectHeroSkill(gg_unit_Eevi_0403,'AEim')call SelectHeroSkill(gg_unit_Eevi_0403,'AEim')call SelectHeroSkill(gg_unit_Eevi_0403,'AEim')call SelectHeroSkill(gg_unit_Eevi_0403,'AEim')call SelectHeroSkill(gg_unit_Eevi_0403,'AEim')call SelectHeroSkill(gg_unit_Eevi_0403,'AEim')call SelectHeroSkill(gg_unit_Eevi_0403,'AEim')call SelectHeroSkill(gg_unit_Eevi_0403,'AEim')call SelectHeroSkill(gg_unit_Eevi_0403,'AEim')call SelectHeroSkill(gg_unit_Eevi_0403,'AEim')call SelectHeroSkill(gg_unit_Eevi_0403,'AEim')call SelectHeroSkill(gg_unit_Eevi_0403,'AEim')call SelectHeroSkill(gg_unit_Eevi_0403,'AEim')call SelectHeroSkill(gg_unit_Eevi_0403,'AEim')set gg_unit_nmrm_0429=CreateUnit(p,'nmrm',1663.6,12825.1,272.130)call SetUnitColor(gg_unit_nmrm_0429,ConvertPlayerColor(3))set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nmrm_0429,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nmrm_0429,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000431_DropItems)set gg_unit_nssp_0432=CreateUnit(p,'nssp',1663.4,12891.2,271.557)call SetUnitColor(gg_unit_nssp_0432,ConvertPlayerColor(0))set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nssp_0432,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nssp_0432,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000430_DropItems)set gg_unit_ntrh_0434=CreateUnit(p,'ntrh',1672.4,12660.8,244.710)call SetUnitColor(gg_unit_ntrh_0434,ConvertPlayerColor(9))set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_ntrh_0434,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_ntrh_0434,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000434_DropItems)set gg_unit_nogl_0525=CreateUnit(p,'nogl',2353.6,12992.6,227.806)set gg_unit_n00L_0531=CreateUnit(p,'n00L',12161.3,13053.6,269.070)call SetUnitState(gg_unit_n00L_0531,UNIT_STATE_MANA,0)set gg_unit_u00P_0532=CreateUnit(p,'u00P',12354.5,13057.2,268.353)call SetUnitState(gg_unit_u00P_0532,UNIT_STATE_MANA,0)set gg_unit_owar_0638=CreateUnit(p,'owar',2347.8,12908.9,275.810)call SetUnitColor(gg_unit_owar_0638,ConvertPlayerColor(5))set gg_unit_n00S_0680=CreateUnit(p,'n00S',1773.9,12989.4,276.900)call SetUnitColor(gg_unit_n00S_0680,ConvertPlayerColor(3))set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_n00S_0680,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_n00S_0680,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000680_DropItems)set u=CreateUnit(p,'osp3',9515.1,3260.3,340.117)
set u=CreateUnit(p,'osp3',9601.8,3390.2,241.895)
set u=CreateUnit(p,'osp3',-7731.3,7403.9,340.117)set u=CreateUnit(p,'Uktl',-26991.4,-9216.9,1.680)call SetHeroLevel(u,60,false)call SetUnitState(u,UNIT_STATE_MANA,100)
call SetUnitColor(u,ConvertPlayerColor(6))set t=CreateTrigger()call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000805_DropItems)set gg_unit_Nkjx_0811=CreateUnit(p,'Nkjx',21066.2,11869.4,271.180)call SetHeroLevel(gg_unit_Nkjx_0811,1000,false)call SetUnitState(gg_unit_Nkjx_0811,UNIT_STATE_MANA,90)set gg_unit_Harf_0823=CreateUnit(p,'Harf',2271.8,12660.1,273.040)call SetHeroLevel(gg_unit_Harf_0823,50,false)call SetHeroStr(gg_unit_Harf_0823,704,true)call SetHeroAgi(gg_unit_Harf_0823,86,true)call SetHeroInt(gg_unit_Harf_0823,105,true)call SetUnitState(gg_unit_Harf_0823,UNIT_STATE_MANA,85)call SetUnitColor(gg_unit_Harf_0823,ConvertPlayerColor(4))call SelectHeroSkill(gg_unit_Harf_0823,'AHhb')call SelectHeroSkill(gg_unit_Harf_0823,'AHhb')call SelectHeroSkill(gg_unit_Harf_0823,'AHhb')call SelectHeroSkill(gg_unit_Harf_0823,'AHhb')call SelectHeroSkill(gg_unit_Harf_0823,'AHhb')call SelectHeroSkill(gg_unit_Harf_0823,'AHhb')call SelectHeroSkill(gg_unit_Harf_0823,'AHhb')call SelectHeroSkill(gg_unit_Harf_0823,'AHhb')call SelectHeroSkill(gg_unit_Harf_0823,'AHhb')call SelectHeroSkill(gg_unit_Harf_0823,'AHhb')call SelectHeroSkill(gg_unit_Harf_0823,'AHhb')call SelectHeroSkill(gg_unit_Harf_0823,'AHhb')call SelectHeroSkill(gg_unit_Harf_0823,'AHhb')call SelectHeroSkill(gg_unit_Harf_0823,'AHhb')call SelectHeroSkill(gg_unit_Harf_0823,'AHhb')call SelectHeroSkill(gg_unit_Harf_0823,'AHbh')call SelectHeroSkill(gg_unit_Harf_0823,'AHbh')call SelectHeroSkill(gg_unit_Harf_0823,'AHbh')call SelectHeroSkill(gg_unit_Harf_0823,'AHbh')call SelectHeroSkill(gg_unit_Harf_0823,'AHbh')call SelectHeroSkill(gg_unit_Harf_0823,'AHbh')call SelectHeroSkill(gg_unit_Harf_0823,'AHbh')call SelectHeroSkill(gg_unit_Harf_0823,'AHbh')call SelectHeroSkill(gg_unit_Harf_0823,'AHbh')call SelectHeroSkill(gg_unit_Harf_0823,'AHbh')call SelectHeroSkill(gg_unit_Harf_0823,'AHbh')call SelectHeroSkill(gg_unit_Harf_0823,'AHbh')call SelectHeroSkill(gg_unit_Harf_0823,'AHbh')call SelectHeroSkill(gg_unit_Harf_0823,'AHbh')call SelectHeroSkill(gg_unit_Harf_0823,'AHbh')call SelectHeroSkill(gg_unit_Harf_0823,'AHad')call SelectHeroSkill(gg_unit_Harf_0823,'AHad')call SelectHeroSkill(gg_unit_Harf_0823,'AHad')call SelectHeroSkill(gg_unit_Harf_0823,'AHad')call SelectHeroSkill(gg_unit_Harf_0823,'AHad')call SelectHeroSkill(gg_unit_Harf_0823,'AHad')call SelectHeroSkill(gg_unit_Harf_0823,'AHad')call SelectHeroSkill(gg_unit_Harf_0823,'AHad')call SelectHeroSkill(gg_unit_Harf_0823,'AHad')call SelectHeroSkill(gg_unit_Harf_0823,'AHad')call SelectHeroSkill(gg_unit_Harf_0823,'AHad')call SelectHeroSkill(gg_unit_Harf_0823,'AHad')call SelectHeroSkill(gg_unit_Harf_0823,'AHad')call SelectHeroSkill(gg_unit_Harf_0823,'AHad')call SelectHeroSkill(gg_unit_Harf_0823,'AHad')call SelectHeroSkill(gg_unit_Harf_0823,'AHad')call SelectHeroSkill(gg_unit_Harf_0823,'AHad')call SelectHeroSkill(gg_unit_Harf_0823,'AHad')call SelectHeroSkill(gg_unit_Harf_0823,'AHad')call SelectHeroSkill(gg_unit_Harf_0823,'AHad')call UnitAddItemToSlotById(gg_unit_Harf_0823,'oli2',0)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_Harf_0823,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_Harf_0823,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000823_DropItems)set gg_unit_Udth_0824=CreateUnit(p,'Udth',2832.1,12670.1,264.800)call SetUnitState(gg_unit_Udth_0824,UNIT_STATE_MANA,90)set gg_unit_Nbrn_0832=CreateUnit(p,'Nbrn',18944.7,26750.3,271.440)call SetHeroLevel(gg_unit_Nbrn_0832,50,false)call SetUnitState(gg_unit_Nbrn_0832,UNIT_STATE_MANA,75)call SetUnitColor(gg_unit_Nbrn_0832,ConvertPlayerColor(12))call IssueImmediateOrder(gg_unit_Nbrn_0832,"spellstealon")call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'AEmb')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call SelectHeroSkill(gg_unit_Nbrn_0832,'A07W')call IssueImmediateOrder(gg_unit_Nbrn_0832,"innerfireon")call UnitAddItemToSlotById(gg_unit_Nbrn_0832,'I0D0',0)call UnitAddItemToSlotById(gg_unit_Nbrn_0832,'I00B',1)call UnitAddItemToSlotById(gg_unit_Nbrn_0832,'rde4',2)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_Nbrn_0832,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_Nbrn_0832,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000832_DropItems)set u=CreateUnit(p,'narg',18709.8,22848.9,267.200)set u=CreateUnit(p,'narg',19173.0,22860.0,266.090)set u=CreateUnit(p,'n00Y',-13464.5,15242.4,304.663)call SetUnitColor(u,ConvertPlayerColor(12))set u=CreateUnit(p,'n00Z',-13693.6,15524.5,55.910)set u=CreateUnit(p,'n00Z',-13373.5,15574.7,55.910)set u=CreateUnit(p,'H02C',-3652.5,15220.9,245.040)call SetHeroLevel(u,40,false)call SetUnitState(u,UNIT_STATE_MANA,100)
call SelectHeroSkill(u,'A080')call SelectHeroSkill(u,'A080')call SelectHeroSkill(u,'A080')call SelectHeroSkill(u,'A080')call SelectHeroSkill(u,'A080')call SelectHeroSkill(u,'A080')call SelectHeroSkill(u,'A080')call SelectHeroSkill(u,'A080')call SelectHeroSkill(u,'A080')call SelectHeroSkill(u,'A080')call SelectHeroSkill(u,'A080')call SelectHeroSkill(u,'A080')call SelectHeroSkill(u,'A080')call SelectHeroSkill(u,'A080')call SelectHeroSkill(u,'A080')call SelectHeroSkill(u,'A080')call SelectHeroSkill(u,'A080')call SelectHeroSkill(u,'A080')call SelectHeroSkill(u,'A080')call SelectHeroSkill(u,'A080')call IssueImmediateOrder(u,"")call SelectHeroSkill(u,'A002')call SelectHeroSkill(u,'A002')call SelectHeroSkill(u,'A002')call SelectHeroSkill(u,'A002')call SelectHeroSkill(u,'A002')call SelectHeroSkill(u,'A002')call SelectHeroSkill(u,'A002')call SelectHeroSkill(u,'A002')call SelectHeroSkill(u,'A002')call SelectHeroSkill(u,'A002')call SelectHeroSkill(u,'A002')call SelectHeroSkill(u,'A002')call SelectHeroSkill(u,'A002')call SelectHeroSkill(u,'A002')call SelectHeroSkill(u,'A002')call SelectHeroSkill(u,'A002')call SelectHeroSkill(u,'A002')call SelectHeroSkill(u,'A002')call SelectHeroSkill(u,'A002')call SelectHeroSkill(u,'A002')call IssueImmediateOrder(u,"")call UnitAddItemToSlotById(u,'I05Z',0)call UnitAddItemToSlotById(u,'thdm',1)call UnitAddItemToSlotById(u,'hlst',2)set u=CreateUnit(p,'n016',6852.0,15789.6,155.370)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000843_DropItems)set u=CreateUnit(p,'nlv3',4930.4,16007.8,312.490)set u=CreateUnit(p,'nlv3',5925.3,16543.6,312.490)set u=CreateUnit(p,'nlv3',3522.3,16777.2,287.134)set u=CreateUnit(p,'nlv3',3529.0,14403.1,90.497)
set u=CreateUnit(p,'nlv3',3248.4,14625.1,56.814)
set u=CreateUnit(p,'nlv3',3828.0,14953.0,177.033)set u=CreateUnit(p,'nlv3',3722.1,17007.8,312.490)set u=CreateUnit(p,'nlv3',5389.8,16896.7,312.490)set u=CreateUnit(p,'nlv3',6828.0,16600.4,312.490)set u=CreateUnit(p,'nlv3',6386.9,15093.0,132.284)set u=CreateUnit(p,'nlv3',6994.5,15184.7,144.683)set u=CreateUnit(p,'nlv3',7348.8,15263.3,152.898)set u=CreateUnit(p,'nlv3',5644.8,15749.6,92.220)
set u=CreateUnit(p,'nlv3',6496.6,16126.6,196.292)set u=CreateUnit(p,'nlv3',5733.8,15233.8,65.582)
set gg_unit_n017_0861=CreateUnit(p,'n017',17162.0,20211.2,272.380)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_n017_0861,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_n017_0861,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000861_DropItems)set u=CreateUnit(p,'u01B',16249.8,20320.5,272.676)call SetUnitColor(u,ConvertPlayerColor(12))set u=CreateUnit(p,'u01B',18039.8,20323.0,272.680)call SetUnitColor(u,ConvertPlayerColor(12))set u=CreateUnit(p,'nfpc',12246.1,16029.1,247.480)call SetUnitColor(u,ConvertPlayerColor(6))set t=CreateTrigger()call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000865_DropItems)set u=CreateUnit(p,'nhrh',-14332.8,-25466.9,282.690)
set t=CreateTrigger()call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000874_DropItems)endfunctionfunction CreateNeutralPassiveBuildings takes nothing returns nothing
local player p=Player(PLAYER_NEUTRAL_PASSIVE)local unit u
local integer unitID
local trigger tlocal real lifeset u=CreateUnit(p,'ncp3',12416.0,-12096.0,270.000)set u=CreateUnit(p,'ncp3',11904.0,-12096.0,270.000)set u=CreateUnit(p,'ncp3',11392.0,-12096.0,270.000)set u=CreateUnit(p,'ncp3',12928.0,-12096.0,270.000)set u=CreateUnit(p,'ncp3',10880.0,-12096.0,270.000)set u=CreateUnit(p,'ncp3',10368.0,-12096.0,270.000)set u=CreateUnit(p,'ncp3',9856.0,-12096.0,270.000)set u=CreateUnit(p,'ncp3',12928.0,-12992.0,270.000)set u=CreateUnit(p,'ncp3',12416.0,-12992.0,270.000)set u=CreateUnit(p,'ncp3',11904.0,-12992.0,270.000)set u=CreateUnit(p,'ncp3',11392.0,-12992.0,270.000)set u=CreateUnit(p,'ncp3',10880.0,-12992.0,270.000)set u=CreateUnit(p,'ncp3',10368.0,-12992.0,270.000)set u=CreateUnit(p,'ncp3',9856.0,-12992.0,270.000)set u=CreateUnit(p,'ncp3',9600.0,-12544.0,270.000)set u=CreateUnit(p,'n003',-13088.0,12960.0,270.000)set u=CreateUnit(p,'n004',-12896.0,12960.0,270.000)set u=CreateUnit(p,'n005',-12768.0,12960.0,270.000)set u=CreateUnit(p,'n006',2432.0,4480.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(0))set gg_unit_n006_0056=CreateUnit(p,'n006',-10112.0,-11776.0,270.000)
call SetUnitColor(gg_unit_n006_0056,ConvertPlayerColor(0))set u=CreateUnit(p,'n001',-13216.0,12960.0,270.000)set u=CreateUnit(p,'nmrk',-704.0,-1280.0,270.000)call SetUnitColor(u,ConvertPlayerColor(0))set gg_unit_ncop_0078=CreateUnit(p,'ncop',-7168.0,-3264.0,270.000)set u=CreateUnit(p,'n007',-1920.0,-640.0,270.000)call SetUnitColor(u,ConvertPlayerColor(1))set gg_unit_ncop_0127=CreateUnit(p,'ncop',3648.0,-8640.0,270.000)set gg_unit_ncop_0151=CreateUnit(p,'ncop',-11008.0,-4992.0,270.000)set gg_unit_ncop_0209=CreateUnit(p,'ncop',1344.0,7616.0,270.000)
set u=CreateUnit(p,'hars',-2592.0,4512.0,270.000)call SetUnitColor(u,ConvertPlayerColor(3))set gg_unit_ovln_0265=CreateUnit(p,'ovln',-1696.0,3552.0,270.000)set u=CreateUnit(p,'nmoo',-12992.0,-768.0,270.000)set u=CreateUnit(p,'nfoh',2496.0,10496.0,270.000)set gg_unit_nmoo_0271=CreateUnit(p,'nmoo',4032.0,-5760.0,270.000)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nmoo_0271,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nmoo_0271,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000271_DropItems)set gg_unit_halt_0275=CreateUnit(p,'halt',199.1,4450.9,311.310)set gg_unit_ncp3_0330=CreateUnit(p,'ncp3',192.0,4160.0,270.000)set gg_unit_ncop_0343=CreateUnit(p,'ncop',-13120.0,7488.0,270.000)set u=CreateUnit(p,'h00I',-3776.0,4480.0,270.000)call SetUnitColor(u,ConvertPlayerColor(4))set u=CreateUnit(p,'hgra',-4288.0,4480.0,270.000)call SetUnitColor(u,ConvertPlayerColor(1))set u=CreateUnit(p,'h00H',-4032.0,4480.0,270.000)call SetUnitColor(u,ConvertPlayerColor(6))set u=CreateUnit(p,'nheb',3200.0,3328.0,270.000)
set u=CreateUnit(p,'nheb',-1536.0,-640.0,270.000)set u=CreateUnit(p,'n00F',-12768.0,12832.0,270.000)set u=CreateUnit(p,'ngme',-320.0,-640.0,270.000)
set gg_unit_h00J_0422=CreateUnit(p,'h00J',8064.0,-13120.0,270.000)set gg_unit_h00J_0423=CreateUnit(p,'h00J',-4096.0,-3968.0,270.000)set gg_unit_h00J_0424=CreateUnit(p,'h00J',12864.0,256.0,270.000)
set gg_unit_h00J_0425=CreateUnit(p,'h00J',-10112.0,-1280.0,270.000)set gg_unit_h00J_0426=CreateUnit(p,'h00J',3264.0,7552.0,270.000)
set gg_unit_h00J_0427=CreateUnit(p,'h00J',6016.0,-5248.0,270.000)set gg_unit_ndfl_0431=CreateUnit(p,'ndfl',-8384.0,768.0,270.000)
set gg_unit_ngob_0435=CreateUnit(p,'ngob',-11200.0,-2688.0,270.000)set gg_unit_ngob_0437=CreateUnit(p,'ngob',-6976.0,9600.0,270.000)set gg_unit_ngob_0438=CreateUnit(p,'ngob',-12928.0,2176.0,270.000)set gg_unit_ngob_0439=CreateUnit(p,'ngob',-8064.0,5504.0,270.000)set gg_unit_ngob_0440=CreateUnit(p,'ngob',-10624.0,4416.0,270.000)set u=CreateUnit(p,'n00G',-13216.0,12832.0,270.000)set u=CreateUnit(p,'n00J',-13216.0,12512.0,270.000)set gg_unit_ndkw_0521=CreateUnit(p,'ndkw',13184.0,4096.0,270.000)set gg_unit_nbfl_0522=CreateUnit(p,'nbfl',11520.0,-2304.0,270.000)set u=CreateUnit(p,'n00K',-12992.0,12544.0,270.000)set u=CreateUnit(p,'n00M',-12992.0,12992.0,270.000)set u=CreateUnit(p,'n00O',-12768.0,12512.0,270.000)set u=CreateUnit(p,'nmrk',-9984.0,11136.0,270.000)call SetUnitColor(u,ConvertPlayerColor(0))set u=CreateUnit(p,'nmrk',11200.0,-6592.0,270.000)call SetUnitColor(u,ConvertPlayerColor(0))set u=CreateUnit(p,'hbla',1920.0,4416.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(5))set u=CreateUnit(p,'nnsa',-1696.0,2848.0,270.000)set gg_unit_nfrm_0631=CreateUnit(p,'nfrm',-28128.0,-13536.0,270.000)
set gg_unit_nfrm_0632=CreateUnit(p,'nfrm',6944.0,-11808.0,270.000)set gg_unit_nfrm_0633=CreateUnit(p,'nfrm',-11296.0,10656.0,270.000)set u=CreateUnit(p,'ndfl',-6592.0,4032.0,270.000)set gg_unit_nmer_0685=CreateUnit(p,'nmer',2784.0,13024.0,270.000)call SetUnitColor(gg_unit_nmer_0685,ConvertPlayerColor(0))set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nmer_0685,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nmer_0685,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000685_DropItems)set u=CreateUnit(p,'nnad',-1696.0,2272.0,270.000)set u=CreateUnit(p,'hbla',4480.0,-640.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(5))set u=CreateUnit(p,'hbla',-9216.0,-10752.0,270.000)call SetUnitColor(u,ConvertPlayerColor(5))set gg_unit_h017_0702=CreateUnit(p,'h017',1504.0,-4064.0,270.000)set gg_unit_h017_0703=CreateUnit(p,'h017',-608.0,-5792.0,270.000)set gg_unit_h017_0704=CreateUnit(p,'h017',-1952.0,-7072.0,270.000)set gg_unit_h017_0705=CreateUnit(p,'h017',-4704.0,-7008.0,270.000)set gg_unit_h017_0706=CreateUnit(p,'h017',-6944.0,-7008.0,270.000)set u=CreateUnit(p,'hbla',-1344.0,-1600.0,270.000)call SetUnitColor(u,ConvertPlayerColor(5))set gg_unit_h009_0718=CreateUnit(p,'h009',-6592.0,12992.0,270.000)set u=CreateUnit(p,'nwc1',-7264.0,-11040.0,270.000)set gg_unit_ugol_0758=CreateBlightedGoldmine(p,2816.0,3968.0,270.000)call SetResourceAmount(gg_unit_ugol_0758,999999)
set gg_unit_ugol_0759=CreateBlightedGoldmine(p,1152.0,4992.0,270.000)call SetResourceAmount(gg_unit_ugol_0759,999999)
set gg_unit_ugol_0760=CreateBlightedGoldmine(p,-4032.0,3840.0,270.000)call SetResourceAmount(gg_unit_ugol_0760,999999)
set gg_unit_ugrv_0762=CreateUnit(p,'ugrv',3648.0,-2176.0,270.000)set gg_unit_n00W_0763=CreateUnit(p,'n00W',-1280.0,3776.0,270.000)set gg_unit_obea_0764=CreateUnit(p,'obea',-672.0,1760.0,270.000)
set gg_unit_oalt_0765=CreateUnit(p,'oalt',1440.0,3808.0,270.000)
set gg_unit_utod_0766=CreateUnit(p,'utod',-1280.0,3328.0,270.000)set gg_unit_uaod_0771=CreateUnit(p,'uaod',1248.0,928.0,284.250)set u=CreateUnit(p,'n007',4800.0,9792.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(1))set u=CreateUnit(p,'edob',5120.0,9728.0,270.000)
set u=CreateUnit(p,'nheb',4480.0,9984.0,270.000)
set u=CreateUnit(p,'nmrk',6144.0,11200.0,270.000)call SetUnitColor(u,ConvertPlayerColor(0))set u=CreateUnit(p,'ngme',5504.0,9792.0,270.000)
set u=CreateUnit(p,'h022',4416.0,10208.0,270.000)set u=CreateUnit(p,'nhns',-7552.0,-26880.0,270.000)set u=CreateUnit(p,'nhns',-5440.0,-27264.0,270.000)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000867_DropItems)set u=CreateUnit(p,'nhns',-4352.0,-26496.0,270.000)set u=CreateUnit(p,'nhns',-3584.0,-27520.0,270.000)set u=CreateUnit(p,'nhns',-1920.0,-26368.0,270.000)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000870_DropItems)set u=CreateUnit(p,'nhns',-1664.0,-27456.0,270.000)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000871_DropItems)set u=CreateUnit(p,'nhns',-9664.0,-27136.0,270.000)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000872_DropItems)set u=CreateUnit(p,'nhns',-14336.0,-26560.0,270.000)
set t=CreateTrigger()call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000873_DropItems)endfunctionfunction CreateNeutralPassive takes nothing returns nothinglocal player p=Player(PLAYER_NEUTRAL_PASSIVE)local unit u
local integer unitID
local trigger tlocal real lifeset gg_unit_H000_0001=CreateUnit(p,'H000',12930.3,-11847.3,264.700)call SetUnitState(gg_unit_H000_0001,UNIT_STATE_MANA,100)
set u=CreateUnit(p,'Othr',2065.7,12980.9,27.120)
call SetHeroLevel(u,60,false)call SetUnitState(u,UNIT_STATE_MANA,95)call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')call SelectHeroSkill(u,'AHtb')set gg_unit_H00E_0050=CreateUnit(p,'H00E',-5201.6,13022.7,274.470)call SetUnitState(gg_unit_H00E_0050,UNIT_STATE_MANA,75)set u=CreateUnit(p,'nshe',-7364.6,-9603.0,158.285)set gg_unit_Hamg_0054=CreateUnit(p,'Hamg',12407.6,-11866.3,270.000)call SetUnitState(gg_unit_Hamg_0054,UNIT_STATE_MANA,95)set gg_unit_ugrm_0071=CreateUnit(p,'ugrm',-7386.3,-3348.0,252.403)set gg_unit_ugrm_0072=CreateUnit(p,'ugrm',-6955.0,-3356.5,252.403)set gg_unit_ugrm_0073=CreateUnit(p,'ugrm',-6833.9,-4693.0,252.400)set gg_unit_ugrm_0074=CreateUnit(p,'ugrm',-7501.7,-4669.1,252.400)set gg_unit_uobs_0075=CreateUnit(p,'uobs',-7161.7,-3104.0,268.320)set gg_unit_H01F_0202=CreateUnit(p,'H01F',-5713.2,12736.9,93.110)set u=CreateUnit(p,'nwc2',740.7,9174.8,98.940)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000733_DropItems)set u=CreateUnit(p,'nshe',-7324.6,-9700.6,71.095)set u=CreateUnit(p,'nshe',-7258.2,-9608.8,146.914)set u=CreateUnit(p,'nshe',-7206.3,-9704.2,86.608)set gg_unit_nvl2_0223=CreateUnit(p,'nvl2',1924.5,13028.0,265.230)call UnitAddItemToSlotById(gg_unit_nvl2_0223,'I05I',0)set gg_unit_nvil_0224=CreateUnit(p,'nvil',1929.7,12941.1,263.820)call UnitAddItemToSlotById(gg_unit_nvil_0224,'I05I',0)set gg_unit_nvlk_0227=CreateUnit(p,'nvlk',1924.1,12866.9,268.400)call UnitAddItemToSlotById(gg_unit_nvlk_0227,'I05I',0)set gg_unit_nvk2_0228=CreateUnit(p,'nvk2',1930.3,12793.3,265.590)call UnitAddItemToSlotById(gg_unit_nvk2_0228,'I05I',0)set u=CreateUnit(p,'ngol',1888.0,-12640.0,166.525)call SetResourceAmount(u,999999)
set gg_unit_H00R_0254=CreateUnit(p,'H00R',-5712.0,12945.1,87.957)call SetUnitState(gg_unit_H00R_0254,UNIT_STATE_MANA,175)
set gg_unit_H00D_0256=CreateUnit(p,'H00D',11891.3,-11834.7,267.330)call SetUnitState(gg_unit_H00D_0256,UNIT_STATE_MANA,100)
set gg_unit_Hblm_0273=CreateUnit(p,'Hblm',-5107.5,13022.6,270.980)call SetUnitState(gg_unit_Hblm_0273,UNIT_STATE_MANA,95)set u=CreateUnit(p,'ngol',160.0,-10912.0,319.230)call SetResourceAmount(u,999999)
set u=CreateUnit(p,'ngol',-13280.0,11616.0,326.790)call SetResourceAmount(u,999999)
set u=CreateUnit(p,'ngol',3488.0,-10144.0,157.420)call SetResourceAmount(u,999999)
set u=CreateUnit(p,'ngol',-11424.0,-800.0,270.000)call SetResourceAmount(u,999999)
set u=CreateUnit(p,'ngol',10272.0,-3232.0,355.776)call SetResourceAmount(u,999999)
set u=CreateUnit(p,'ngol',-9824.0,4512.0,344.180)call SetResourceAmount(u,999999)
set gg_unit_hrtt_0306=CreateUnit(p,'hrtt',1900.7,3090.4,359.720)
set life=GetUnitState(gg_unit_hrtt_0306,UNIT_STATE_LIFE)
call SetUnitState(gg_unit_hrtt_0306,UNIT_STATE_LIFE,0.25*life)set gg_unit_Hart_0331=CreateUnit(p,'Hart',-5027.5,13005.4,270.000)call SetUnitState(gg_unit_Hart_0331,UNIT_STATE_MANA,85)set gg_unit_Hapm_0332=CreateUnit(p,'Hapm',-5035.2,12932.9,273.270)call SetUnitState(gg_unit_Hapm_0332,UNIT_STATE_MANA,85)set gg_unit_H00C_0338=CreateUnit(p,'H00C',-5108.9,12946.1,272.130)call SetUnitState(gg_unit_H00C_0338,UNIT_STATE_MANA,140)
set gg_unit_H00F_0346=CreateUnit(p,'H00F',-5200.6,12927.8,279.780)call SetUnitState(gg_unit_H00F_0346,UNIT_STATE_MANA,75)set u=CreateUnit(p,'nshe',-7155.8,-9603.0,5.570)
set gg_unit_U00K_0398=CreateUnit(p,'U00K',11380.7,-11856.0,273.370)call SetUnitState(gg_unit_U00K_0398,UNIT_STATE_MANA,85)set gg_unit_eilw_0404=CreateUnit(p,'eilw',1551.0,12994.4,275.033)call SetUnitColor(gg_unit_eilw_0404,ConvertPlayerColor(6))set u=CreateUnit(p,'nshe',-7077.0,-9597.1,328.578)set gg_unit_Udre_0441=CreateUnit(p,'Udre',-5315.9,13022.4,276.710)call SetUnitState(gg_unit_Udre_0441,UNIT_STATE_MANA,90)set gg_unit_Ucrl_0442=CreateUnit(p,'Ucrl',-5308.9,12956.2,273.640)call SetUnitState(gg_unit_Ucrl_0442,UNIT_STATE_MANA,70)set gg_unit_Ulic_0444=CreateUnit(p,'Ulic',10875.8,-11863.7,266.800)set gg_unit_U00L_0445=CreateUnit(p,'U00L',-5414.3,13020.6,267.250)set gg_unit_U00M_0446=CreateUnit(p,'U00M',-5423.8,12956.4,262.990)set gg_unit_N00H_0447=CreateUnit(p,'N00H',10366.8,-11856.9,270.530)call SetUnitState(gg_unit_N00H_0447,UNIT_STATE_MANA,75)set gg_unit_U00N_0448=CreateUnit(p,'U00N',-5524.5,13015.8,284.710)call SetUnitState(gg_unit_U00N_0448,UNIT_STATE_MANA,70)set gg_unit_N00I_0449=CreateUnit(p,'N00I',-5520.2,12945.6,274.700)call SetUnitState(gg_unit_N00I_0449,UNIT_STATE_MANA,75)set u=CreateUnit(p,'h00K',8648.7,-10588.5,275.731)set u=CreateUnit(p,'h00M',-8373.7,-3953.3,42.150)set u=CreateUnit(p,'h00M',2868.3,10991.4,317.453)set u=CreateUnit(p,'h00L',-2397.4,972.1,314.729)
set u=CreateUnit(p,'h00L',12590.5,-5402.4,314.729)set u=CreateUnit(p,'h00L',-10961.8,-11703.0,314.729)
set u=CreateUnit(p,'h00L',-10045.7,12788.0,314.729)set u=CreateUnit(p,'nshe',-7069.8,-9743.1,161.548)set gg_unit_N00N_0536=CreateUnit(p,'N00N',9855.9,-11854.7,259.860)call SetUnitState(gg_unit_N00N_0536,UNIT_STATE_MANA,150)
set gg_unit_H00N_0538=CreateUnit(p,'H00N',-5613.9,13023.6,273.430)call SetUnitState(gg_unit_H00N_0538,UNIT_STATE_MANA,100)
set gg_unit_H00O_0539=CreateUnit(p,'H00O',-5623.9,12955.5,275.880)call SetUnitState(gg_unit_H00O_0539,UNIT_STATE_MANA,100)
set gg_unit_H00P_0540=CreateUnit(p,'H00P',9855.9,-13231.4,91.060)call SetUnitState(gg_unit_H00P_0540,UNIT_STATE_MANA,75)set gg_unit_H00Q_0541=CreateUnit(p,'H00Q',-5720.6,13022.2,98.500)call SetUnitState(gg_unit_H00Q_0541,UNIT_STATE_MANA,100)
set gg_unit_E001_0602=CreateUnit(p,'E001',10371.9,-13232.3,90.180)call SetUnitState(gg_unit_E001_0602,UNIT_STATE_MANA,80)set gg_unit_Edem_0603=CreateUnit(p,'Edem',-5810.7,13009.6,77.400)call SetUnitState(gg_unit_Edem_0603,UNIT_STATE_MANA,80)set gg_unit_Emoo_0604=CreateUnit(p,'Emoo',-5809.3,12943.6,88.680)call SetUnitState(gg_unit_Emoo_0604,UNIT_STATE_MANA,75)set gg_unit_Ekee_0605=CreateUnit(p,'Ekee',10883.8,-13231.8,88.450)call SetUnitState(gg_unit_Ekee_0605,UNIT_STATE_MANA,90)set gg_unit_Emns_0609=CreateUnit(p,'Emns',-5915.9,13023.1,78.020)call SetUnitState(gg_unit_Emns_0609,UNIT_STATE_MANA,90)set gg_unit_H00T_0610=CreateUnit(p,'H00T',-5902.6,12932.3,101.030)call SetUnitState(gg_unit_H00T_0610,UNIT_STATE_MANA,100)
set gg_unit_H00U_0611=CreateUnit(p,'H00U',11394.2,-13224.9,95.070)call SetUnitState(gg_unit_H00U_0611,UNIT_STATE_MANA,100)
set gg_unit_H00V_0612=CreateUnit(p,'H00V',-6004.3,13015.7,79.300)call SetUnitState(gg_unit_H00V_0612,UNIT_STATE_MANA,100)
set gg_unit_H00W_0613=CreateUnit(p,'H00W',-6007.6,12950.9,92.650)call SetUnitState(gg_unit_H00W_0613,UNIT_STATE_MANA,100)
set gg_unit_Obla_0614=CreateUnit(p,'Obla',11901.1,-13204.9,86.315)call SetUnitState(gg_unit_Obla_0614,UNIT_STATE_MANA,80)set gg_unit_O001_0615=CreateUnit(p,'O001',-6092.1,13022.3,88.140)call SetUnitState(gg_unit_O001_0615,UNIT_STATE_MANA,75)set gg_unit_O002_0616=CreateUnit(p,'O002',-6083.8,12955.9,93.010)call SetUnitState(gg_unit_O002_0616,UNIT_STATE_MANA,75)set gg_unit_Ofar_0617=CreateUnit(p,'Ofar',12415.3,-13226.6,91.120)call SetUnitState(gg_unit_Ofar_0617,UNIT_STATE_MANA,95)set gg_unit_O003_0618=CreateUnit(p,'O003',-6166.8,13024.0,89.020)set gg_unit_O004_0619=CreateUnit(p,'O004',-6156.8,12960.1,88.190)set gg_unit_Otch_0620=CreateUnit(p,'Otch',12923.2,-13225.3,90.430)call SetUnitState(gg_unit_Otch_0620,UNIT_STATE_MANA,70)set gg_unit_O005_0621=CreateUnit(p,'O005',-6264.2,13004.8,96.715)set gg_unit_O006_0622=CreateUnit(p,'O006',-6274.9,12908.6,84.777)set gg_unit_Hmkg_0623=CreateUnit(p,'Hmkg',-5033.1,12864.9,271.800)call SetUnitState(gg_unit_Hmkg_0623,UNIT_STATE_MANA,75)set gg_unit_H00X_0624=CreateUnit(p,'H00X',-5105.8,12881.2,276.170)set u=CreateUnit(p,'nwc2',-7593.1,1713.1,326.900)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000628_DropItems)set gg_unit_H00Y_0636=CreateUnit(p,'H00Y',-5201.1,12862.0,268.330)call SetUnitState(gg_unit_H00Y_0636,UNIT_STATE_MANA,100)
set gg_unit_U00T_0637=CreateUnit(p,'U00T',-5300.9,12881.8,274.330)set gg_unit_U00U_0639=CreateUnit(p,'U00U',-5420.2,12891.6,268.890)set gg_unit_N00P_0640=CreateUnit(p,'N00P',-5514.8,12880.5,272.200)call SetUnitState(gg_unit_N00P_0640,UNIT_STATE_MANA,75)set gg_unit_N00Q_0641=CreateUnit(p,'N00Q',-5624.8,12884.6,287.890)set gg_unit_H00Z_0655=CreateUnit(p,'H00Z',-5706.2,12881.3,94.300)call SetUnitState(gg_unit_H00Z_0655,UNIT_STATE_MANA,100)
set gg_unit_E003_0656=CreateUnit(p,'E003',-5802.4,12876.3,85.880)call SetUnitState(gg_unit_E003_0656,UNIT_STATE_MANA,75)set gg_unit_E004_0657=CreateUnit(p,'E004',-5904.1,12867.1,94.344)set gg_unit_e005_0658=CreateUnit(p,'e005',-5897.1,12862.2,182.889)set gg_unit_H010_0659=CreateUnit(p,'H010',-6003.9,12884.3,90.420)call SetUnitState(gg_unit_H010_0659,UNIT_STATE_MANA,100)
set gg_unit_H011_0660=CreateUnit(p,'H011',-6088.7,12889.6,89.560)call SetUnitState(gg_unit_H011_0660,UNIT_STATE_MANA,60)set gg_unit_O007_0661=CreateUnit(p,'O007',-6166.8,12877.4,91.140)set gg_unit_H012_0662=CreateUnit(p,'H012',-6266.7,12828.2,89.020)call SetUnitState(gg_unit_H012_0662,UNIT_STATE_MANA,100)
set gg_unit_Hpb1_0663=CreateUnit(p,'Hpb1',-5035.0,12799.4,273.520)call SetUnitState(gg_unit_Hpb1_0663,UNIT_STATE_MANA,85)set gg_unit_H013_0664=CreateUnit(p,'H013',-5116.7,12817.8,272.840)set gg_unit_H015_0665=CreateUnit(p,'H015',-5193.2,12797.5,274.130)call SetUnitState(gg_unit_H015_0665,UNIT_STATE_MANA,125)
set gg_unit_U00W_0666=CreateUnit(p,'U00W',-5289.4,12817.0,273.760)set gg_unit_U00X_0667=CreateUnit(p,'U00X',-5419.1,12812.3,267.780)call SetUnitState(gg_unit_U00X_0667,UNIT_STATE_MANA,300)
set gg_unit_nfa2_0668=CreateUnit(p,'nfa2',-4492.9,-12778.5,236.620)call SetUnitColor(gg_unit_nfa2_0668,ConvertPlayerColor(0))set gg_unit_U00Y_0669=CreateUnit(p,'U00Y',-5502.0,12810.2,275.950)call SetUnitState(gg_unit_U00Y_0669,UNIT_STATE_MANA,75)set gg_unit_hfoo_0682=CreateUnit(p,'hfoo',1933.4,12714.6,269.650)set u=CreateUnit(p,'nwc2',3541.1,-3149.7,326.900)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000693_DropItems)set u=CreateUnit(p,'nwc2',3812.4,-8787.2,326.900)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000694_DropItems)set gg_unit_H018_0710=CreateUnit(p,'H018',-5611.3,12817.8,278.396)call SetUnitState(gg_unit_H018_0710,UNIT_STATE_MANA,100)
set gg_unit_H019_0711=CreateUnit(p,'H019',-5716.9,12804.3,85.670)call SetUnitState(gg_unit_H019_0711,UNIT_STATE_MANA,60)set gg_unit_Ewar_0712=CreateUnit(p,'Ewar',-5805.0,12805.5,85.150)call SetUnitState(gg_unit_Ewar_0712,UNIT_STATE_MANA,75)set gg_unit_E006_0713=CreateUnit(p,'E006',-5888.5,12800.9,90.550)set gg_unit_H01A_0714=CreateUnit(p,'H01A',-5991.2,12800.9,90.660)call SetUnitState(gg_unit_H01A_0714,UNIT_STATE_MANA,100)
set gg_unit_O008_0715=CreateUnit(p,'O008',-6083.1,12824.9,88.850)call SetUnitState(gg_unit_O008_0715,UNIT_STATE_MANA,75)set gg_unit_O009_0716=CreateUnit(p,'O009',-6177.2,12804.9,90.870)set gg_unit_Nbst_0717=CreateUnit(p,'Nbst',-6265.2,12745.9,86.742)call SetUnitState(gg_unit_Nbst_0717,UNIT_STATE_MANA,75)set gg_unit_nwc2_0719=CreateUnit(p,'nwc2',2858.4,13045.0,326.900)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nwc2_0719,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nwc2_0719,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000719_DropItems)set gg_unit_nwc2_0720=CreateUnit(p,'nwc2',2856.2,13031.8,203.770)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nwc2_0720,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nwc2_0720,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000720_DropItems)set gg_unit_nwc2_0721=CreateUnit(p,'nwc2',2862.4,13020.6,272.380)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nwc2_0721,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nwc2_0721,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000721_DropItems)set gg_unit_nwc2_0722=CreateUnit(p,'nwc2',2847.9,13014.6,272.380)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nwc2_0722,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nwc2_0722,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000722_DropItems)set gg_unit_nwc2_0723=CreateUnit(p,'nwc2',2858.3,12996.3,272.380)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nwc2_0723,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nwc2_0723,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000723_DropItems)set gg_unit_nwc2_0724=CreateUnit(p,'nwc2',2874.6,13026.2,272.380)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nwc2_0724,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nwc2_0724,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000724_DropItems)set gg_unit_nwc2_0725=CreateUnit(p,'nwc2',2874.7,13015.2,272.380)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nwc2_0725,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nwc2_0725,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000725_DropItems)set gg_unit_nwc2_0726=CreateUnit(p,'nwc2',2880.6,13041.4,195.808)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nwc2_0726,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nwc2_0726,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000726_DropItems)set gg_unit_nwc2_0727=CreateUnit(p,'nwc2',2889.3,13010.6,284.025)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nwc2_0727,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nwc2_0727,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000727_DropItems)set gg_unit_nwc2_0728=CreateUnit(p,'nwc2',2881.3,12995.1,98.940)
set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_nwc2_0728,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_nwc2_0728,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000728_DropItems)set gg_unit_Hdgo_0729=CreateUnit(p,'Hdgo',-5036.6,12722.7,271.490)set gg_unit_H01B_0730=CreateUnit(p,'H01B',-5114.4,12741.4,265.660)set gg_unit_H01C_0731=CreateUnit(p,'H01C',-5183.3,12733.0,273.650)call SetUnitState(gg_unit_H01C_0731,UNIT_STATE_MANA,75)set gg_unit_H01D_0732=CreateUnit(p,'H01D',-5295.3,12732.3,265.530)call SetUnitState(gg_unit_H01D_0732,UNIT_STATE_MANA,100)
set gg_unit_U013_0733=CreateUnit(p,'U013',-5415.5,12740.8,278.130)set gg_unit_U014_0734=CreateUnit(p,'U014',-5513.0,12746.5,275.140)call SetUnitState(gg_unit_U014_0734,UNIT_STATE_MANA,75)set gg_unit_H01E_0735=CreateUnit(p,'H01E',-5609.5,12751.3,269.750)call SetUnitState(gg_unit_H01E_0735,UNIT_STATE_MANA,100)
set gg_unit_H01H_0746=CreateUnit(p,'H01H',-5804.6,12739.4,90.430)call SetUnitState(gg_unit_H01H_0746,UNIT_STATE_MANA,75)set gg_unit_h01K_0757=CreateUnit(p,'h01K',-13231.0,10175.6,0.000)set t=CreateTrigger()call TriggerRegisterUnitEvent(t,gg_unit_h01K_0757,EVENT_UNIT_DEATH)call TriggerRegisterUnitEvent(t,gg_unit_h01K_0757,EVENT_UNIT_CHANGE_OWNER)call TriggerAddAction(t,function Unit000757_DropItems)set gg_unit_ngbl_0768=CreateUnit(p,'ngbl',-2872.6,5832.8,269.440)set gg_unit_H020_0769=CreateUnit(p,'H020',-5882.1,12735.3,90.018)call SetUnitState(gg_unit_H020_0769,UNIT_STATE_MANA,160)
set gg_unit_H021_0770=CreateUnit(p,'H021',-5977.4,12736.6,90.790)call SetUnitState(gg_unit_H021_0770,UNIT_STATE_MANA,100)
set gg_unit_O00E_0774=CreateUnit(p,'O00E',-6084.7,12759.2,92.880)call SetUnitState(gg_unit_O00E_0774,UNIT_STATE_MANA,60)endfunctionfunction CreatePlayerBuildings takes nothing returns nothing
call CreateBuildingsForPlayer0()
call CreateBuildingsForPlayer1()
call CreateBuildingsForPlayer2()
call CreateBuildingsForPlayer3()
call CreateBuildingsForPlayer4()
call CreateBuildingsForPlayer5()
call CreateBuildingsForPlayer6()
call CreateBuildingsForPlayer7()
call CreateBuildingsForPlayer8()
call CreateBuildingsForPlayer9()
call CreateBuildingsForPlayer10()call CreateBuildingsForPlayer11()endfunctionfunction CreatePlayerUnits takes nothing returns nothing
call CreateUnitsForPlayer0()
call CreateUnitsForPlayer1()
call CreateUnitsForPlayer2()
call CreateUnitsForPlayer3()
call CreateUnitsForPlayer4()
call CreateUnitsForPlayer5()
call CreateUnitsForPlayer6()
call CreateUnitsForPlayer7()
call CreateUnitsForPlayer8()
call CreateUnitsForPlayer9()
call CreateUnitsForPlayer10()call CreateUnitsForPlayer11()endfunctionfunction CreateAllUnits takes nothing returns nothingcall CreateNeutralPassiveBuildings()
call CreatePlayerBuildings()
call CreateNeutralPassive()call CreatePlayerUnits()
endfunctionfunction CreateRegions takes nothing returns nothing
local weathereffect weset gg_rct_Altar_mmalganusa=Rect(11136.0,10848.0,13600.0,13248.0)set gg_rct_Boqnia=Rect(-6112.0,7968.0,-4288.0,9760.0)set we=AddWeatherEffect(gg_rct_Boqnia,'FDgh')call EnableWeatherEffect(we,true)set gg_rct_Derevnia=Rect(-10976.0,-12672.0,-5408.0,-8960.0)set gg_rct_Dezertir=Rect(-6272.0,-5600.0,-5888.0,-5248.0)set we=AddWeatherEffect(gg_rct_Dezertir,'WOlw')call EnableWeatherEffect(we,true)set gg_rct_Drevo1=Rect(12032.0,7648.0,12288.0,7936.0)set gg_rct_Drevo2=Rect(10240.0,8320.0,10496.0,8608.0)set gg_rct_Drevo3=Rect(12288.0,6976.0,12544.0,7264.0)set gg_rct_Electro=Rect(9024.0,1664.0,9312.0,1952.0)
set gg_rct_Elfy=Rect(-13536.0,9280.0,-7232.0,13280.0)set we=AddWeatherEffect(gg_rct_Elfy,'LRma')call EnableWeatherEffect(we,true)set gg_rct_Elfy_oborona=Rect(12320.0,6720.0,13408.0,8640.0)set gg_rct_Elfy_oborona_strag_2=Rect(13024.0,8320.0,13280.0,8608.0)set gg_rct_Elfy_oborona_strag1=Rect(12352.0,8320.0,12608.0,8608.0)set gg_rct_Fenics=Rect(10176.0,3616.0,10496.0,4000.0)set we=AddWeatherEffect(gg_rct_Fenics,'FDrh')call EnableWeatherEffect(we,true)set gg_rct_Hero_1=Rect(12832.0,-12192.0,13024.0,-11968.0)set gg_rct_Hero_10=Rect(10784.0,-13088.0,10976.0,-12896.0)set gg_rct_Hero_10A=Rect(10784.0,-13344.0,10976.0,-13152.0)set gg_rct_Hero_11=Rect(11296.0,-13088.0,11488.0,-12896.0)set gg_rct_Hero_11A=Rect(11296.0,-13344.0,11488.0,-13152.0)set gg_rct_Hero_12=Rect(11808.0,-13088.0,12000.0,-12896.0)set gg_rct_Hero_12A=Rect(11808.0,-13344.0,12000.0,-13152.0)set gg_rct_Hero_13=Rect(12320.0,-13088.0,12512.0,-12896.0)set gg_rct_Hero_13A=Rect(12320.0,-13344.0,12512.0,-13152.0)set gg_rct_Hero_14=Rect(12832.0,-13088.0,13024.0,-12896.0)set gg_rct_Hero_14A=Rect(12832.0,-13344.0,13024.0,-13152.0)set gg_rct_Hero_15=Rect(9504.0,-12640.0,9696.0,-12448.0)
set gg_rct_Hero_1A=Rect(12832.0,-11936.0,13024.0,-11744.0)set gg_rct_Hero_2=Rect(12320.0,-12192.0,12512.0,-12000.0)set gg_rct_Hero_2A=Rect(12320.0,-11936.0,12512.0,-11744.0)set gg_rct_Hero_3=Rect(11808.0,-12192.0,12000.0,-12000.0)set gg_rct_Hero_3A=Rect(11808.0,-11936.0,12000.0,-11744.0)set gg_rct_Hero_4=Rect(11296.0,-12192.0,11488.0,-12000.0)set gg_rct_Hero_4A=Rect(11296.0,-11936.0,11488.0,-11744.0)set gg_rct_Hero_5=Rect(10784.0,-12192.0,10976.0,-12000.0)set gg_rct_Hero_5A=Rect(10784.0,-11936.0,10976.0,-11744.0)set gg_rct_Hero_6=Rect(10272.0,-12192.0,10464.0,-12000.0)set gg_rct_Hero_6A=Rect(10272.0,-11936.0,10464.0,-11744.0)set gg_rct_Hero_7=Rect(9760.0,-12192.0,9952.0,-12000.0)set gg_rct_Hero_7A=Rect(9760.0,-11936.0,9952.0,-11744.0)
set gg_rct_Hero_8=Rect(9760.0,-13088.0,9952.0,-12896.0)set gg_rct_Hero_8A=Rect(9760.0,-13344.0,9952.0,-13152.0)
set gg_rct_Hero_9=Rect(10272.0,-13088.0,10464.0,-12896.0)set gg_rct_Hero_9A=Rect(10272.0,-13344.0,10464.0,-13152.0)set gg_rct_Hram_Elfov=Rect(-13248.0,320.0,-12544.0,960.0)set gg_rct_Idushaya_vo_tme=Rect(6944.0,-3520.0,7424.0,-3104.0)set gg_rct_Kladbishe=Rect(-8448.0,-4832.0,-5920.0,-2688.0)set we=AddWeatherEffect(gg_rct_Kladbishe,'FDwl')
call EnableWeatherEffect(we,true)set gg_rct_Kobolt=Rect(5280.0,-13664.0,5760.0,-13312.0)set we=AddWeatherEffect(gg_rct_Kobolt,'FDrh')call EnableWeatherEffect(we,true)set gg_rct_Kolodec_1=Rect(11040.0,8160.0,11296.0,8448.0)
set gg_rct_Kuznec_oborona=Rect(7424.0,6016.0,7808.0,6432.0)set gg_rct_Ledinoy=Rect(4256.0,-8448.0,5216.0,-7520.0)set gg_rct_Marshal_garitos_Objrjna=Rect(4768.0,7584.0,5632.0,8544.0)
set gg_rct_Marshal_garitos_Objrjna_2=Rect(7104.0,8032.0,7456.0,8512.0)set gg_rct_Marshal_garitos_Objrjna_3=Rect(6816.0,6848.0,7168.0,7328.0)set gg_rct_Marshal_garitos_Objrjna_4=Rect(6496.0,6304.0,6848.0,6784.0)set gg_rct_Marshal_Oborona=Rect(4672.0,4064.0,5440.0,4512.0)
set gg_rct_Marshal_Oborona_2=Rect(8192.0,6944.0,8480.0,7328.0)set gg_rct_Marshal_Oborona_3=Rect(5248.0,5344.0,5536.0,5728.0)set gg_rct_Marshal_Oborona_4=Rect(4576.0,5344.0,4864.0,5728.0)set gg_rct_Marshal_Oborona_5=Rect(6464.0,6816.0,6752.0,7200.0)set gg_rct_Mediv_pole=Rect(1632.0,10240.0,2048.0,10944.0)set we=AddWeatherEffect(gg_rct_Mediv_pole,'MEds')call EnableWeatherEffect(we,true)set gg_rct_Mobs_Attack=Rect(10912.0,12128.0,11872.0,13280.0)
set gg_rct_Mobs_Attack_2=Rect(11456.0,11360.0,12704.0,12672.0)set gg_rct_Ogneniy=Rect(-13184.0,-6560.0,-12224.0,-5568.0)set gg_rct_Podzemelie_neruba_1=Rect(6080.0,-13504.0,8576.0,-11776.0)
set we=AddWeatherEffect(gg_rct_Podzemelie_neruba_1,'FDgh')call EnableWeatherEffect(we,true)set gg_rct_Podzemelie_neruba_2=Rect(7040.0,-11776.0,8704.0,-9088.0)set we=AddWeatherEffect(gg_rct_Podzemelie_neruba_2,'FDgh')call EnableWeatherEffect(we,true)set gg_rct_Podzemelie_neruba_3=Rect(8704.0,-9888.0,12352.0,-8992.0)set we=AddWeatherEffect(gg_rct_Podzemelie_neruba_3,'FDgh')call EnableWeatherEffect(we,true)set gg_rct_Portal_Derevny_1=Rect(-2848.0,3136.0,-2688.0,3360.0)set gg_rct_Portal_Derevny_2=Rect(-8864.0,-11328.0,-8704.0,-11104.0)set gg_rct_Portal_Elfy_1=Rect(-3488.0,3136.0,-3328.0,3360.0)
set gg_rct_Portal_Elfy_2=Rect(-10656.0,12608.0,-10496.0,12832.0)
set gg_rct_Portal_Mediv_1=Rect(-3168.0,2752.0,-3008.0,2976.0)set gg_rct_Portal_Mediv_2=Rect(3264.0,10112.0,3424.0,10336.0)set gg_rct_Portal_Orky_1=Rect(-3168.0,3136.0,-3008.0,3360.0)
set gg_rct_Portal_Orky_2=Rect(10208.0,-4128.0,10368.0,-3904.0)set gg_rct_Prokliatie_Elfy=Rect(-4064.0,10880.0,-2080.0,12640.0)
set we=AddWeatherEffect(gg_rct_Prokliatie_Elfy,'FDrh')call EnableWeatherEffect(we,true)set gg_rct_Raskopki=Rect(-13216.0,-3840.0,-12672.0,-3328.0)set gg_rct_Sfera_sveta=Rect(-256.0,5600.0,-128.0,5760.0)
set gg_rct_Tirend_1=Rect(11360.0,8000.0,12064.0,8352.0)set gg_rct_Tirend_2=Rect(10272.0,8640.0,10848.0,8960.0)set gg_rct_Tower_1=Rect(7744.0,7296.0,8064.0,7616.0)
set gg_rct_Tower_10=Rect(7232.0,8544.0,7552.0,8864.0)set gg_rct_Tower_2=Rect(8608.0,6560.0,8928.0,6880.0)
set gg_rct_Tower_3=Rect(4096.0,4288.0,4416.0,4608.0)
set gg_rct_Tower_4=Rect(5696.0,4288.0,6016.0,4608.0)
set gg_rct_Tower_5=Rect(4096.0,4864.0,4416.0,5184.0)
set gg_rct_Tower_6=Rect(5696.0,4864.0,6016.0,5184.0)
set gg_rct_Tower_7=Rect(4864.0,2912.0,5184.0,3232.0)
set gg_rct_Tower_8=Rect(6336.0,2912.0,6656.0,3232.0)
set gg_rct_Tower_9=Rect(7232.0,7392.0,7552.0,7712.0)
set gg_rct_Ukradenaya_Povozka=Rect(6208.0,-11296.0,6624.0,-10816.0)set gg_rct_Vedma=Rect(1472.0,-11328.0,1792.0,-10944.0)set we=AddWeatherEffect(gg_rct_Vedma,'FDgh')
call EnableWeatherEffect(we,true)set gg_rct_Vodinoy=Rect(-10112.0,3296.0,-9600.0,3808.0)set gg_rct_Zaval=Rect(5376.0,-12192.0,5728.0,-11712.0)set gg_rct_Zerno=Rect(-10944.0,-10016.0,-9408.0,-8992.0)
set gg_rct_Zona_1=Rect(-5440.0,-6944.0,512.0,-2368.0)set we=AddWeatherEffect(gg_rct_Zona_1,'FDwl')call EnableWeatherEffect(we,true)set gg_rct_Zona_2=Rect(-4992.0,-13280.0,-576.0,-7680.0)set we=AddWeatherEffect(gg_rct_Zona_2,'RAlr')call EnableWeatherEffect(we,true)set gg_rct_Zona_3=Rect(2560.0,-13152.0,5280.0,-11616.0)set we=AddWeatherEffect(gg_rct_Zona_3,'FDrh')call EnableWeatherEffect(we,true)set gg_rct_Zona_4=Rect(-416.0,-10752.0,6656.0,-5344.0)set we=AddWeatherEffect(gg_rct_Zona_4,'RLhr')call EnableWeatherEffect(we,true)set gg_rct_Zona_5=Rect(7808.0,-2656.0,13184.0,3520.0)set gg_rct_Zona_6=Rect(-10176.0,-1632.0,-5728.0,4320.0)set we=AddWeatherEffect(gg_rct_Zona_6,'FDgh')call EnableWeatherEffect(we,true)set gg_rct_Zona_7=Rect(-13472.0,-8096.0,-8800.0,-1600.0)
set gg_rct_Zona_8=Rect(-13504.0,-1600.0,-10144.0,8032.0)
set we=AddWeatherEffect(gg_rct_Zona_8,'LRma')call EnableWeatherEffect(we,true)set gg_rct_Zona_9=Rect(5472.0,-5184.0,6816.0,-2496.0)set gg_rct_Serdce_azuny_1=Rect(-11552.0,1216.0,-11104.0,1824.0)set gg_rct_Serdce_azuny_2=Rect(-13216.0,3040.0,-12800.0,3392.0)set gg_rct_Serdce_azuny_3=Rect(-10304.0,7584.0,-9888.0,7936.0)set gg_rct_Farion=Rect(11264.0,7360.0,11968.0,7712.0)set gg_rct_Orda=Rect(9504.0,-6944.0,13472.0,-3840.0)
set gg_rct_Samuro=Rect(12768.0,-2592.0,13152.0,-2400.0)set gg_rct_Ogry=Rect(9280.0,-1504.0,10400.0,-192.0)set gg_rct_Vishka_orkov_1=Rect(7200.0,12544.0,7456.0,12832.0)set gg_rct_Vishka_orkov_2=Rect(7200.0,11744.0,7456.0,12032.0)set gg_rct_Grom_Zadira=Rect(6080.0,11904.0,7008.0,12672.0)set gg_rct_Vishka_orkov_3=Rect(4928.0,12448.0,5184.0,12736.0)set gg_rct_Vishka_orkov_4=Rect(5568.0,11680.0,5824.0,11968.0)set gg_rct_Frostmorn=Rect(-3840.0,9088.0,-3264.0,9600.0)
set we=AddWeatherEffect(gg_rct_Frostmorn,'SNls')
call EnableWeatherEffect(we,true)set gg_rct_Morlok_lovushka=Rect(-7072.0,224.0,-6624.0,480.0)
set gg_rct_Pole_Phenicy=Rect(2272.0,-4064.0,3744.0,-2816.0)set gg_rct_Zona_10=Rect(6624.0,-8640.0,8832.0,-608.0)set gg_rct_Zona_11=Rect(-9248.0,4896.0,-6176.0,9376.0)set gg_rct_Dgayna=Rect(5536.0,2848.0,6016.0,3264.0)set gg_rct_Paladin_oborona=Rect(3872.0,576.0,4256.0,1504.0)set gg_rct_Hram_Argusa=Rect(-12800.0,-12384.0,-12288.0,-11904.0)
set gg_rct_Mediv_oborona=Rect(0.0,2848.0,384.0,3136.0)set gg_rct_Prizrachniy_lord=Rect(9952.0,-9504.0,10272.0,-9216.0)
set gg_rct_Monah=Rect(-12768.0,-10272.0,-12384.0,-9888.0)set gg_rct_Ktun=Rect(-8704.0,448.0,-8032.0,1088.0)set gg_rct_Zamok=Rect(-5056.0,-416.0,7616.0,5184.0)set gg_rct_Kanalizaciya=Rect(-3232.0,5504.0,-1952.0,6528.0)set we=AddWeatherEffect(gg_rct_Kanalizaciya,'FDgh')call EnableWeatherEffect(we,true)set gg_rct_Rohan=Rect(3264.0,-11616.0,3552.0,-11200.0)set gg_rct_Sklep=Rect(-6880.0,-2016.0,-6144.0,-1344.0)set gg_rct_Neptulon=Rect(-8032.0,2176.0,-7808.0,2528.0)set gg_rct_Sluchayniy_artefakt=Rect(9824.0,11808.0,9952.0,11936.0)set gg_rct_Kamennoe_ushelie=Rect(3296.0,-18400.0,13056.0,-14464.0)set gg_rct_Kamenniy_utes=Rect(2432.0,-27584.0,13856.0,-18400.0)set gg_rct_Bezlikie_Ozera=Rect(-13856.0,-24800.0,1728.0,-16000.0)set gg_rct_Dalaran=Rect(-28128.0,-19744.0,-16096.0,-4544.0)set gg_rct_Peshera_Dalaran=Rect(-18880.0,-4832.0,-18688.0,-4512.0)set gg_rct_Peshera_Dalaran_2=Rect(9728.0,22176.0,9920.0,22496.0)
set gg_rct_Peshera_Dalaran_4=Rect(3200.0,26944.0,3392.0,27264.0)
set gg_rct_Peshera_Dalaran_3=Rect(13376.0,22304.0,13568.0,22624.0)set gg_rct_Peshera_Zatoplenaya=Rect(-3744.0,-19904.0,-3552.0,-19584.0)set gg_rct_Peshera_Zatoplenaya_2=Rect(8256.0,22816.0,8448.0,23136.0)
set gg_rct_Dead_Forest=Rect(14848.0,-27776.0,27648.0,-10944.0)set gg_rct_Viggenaya_Zemlia=Rect(14368.0,-9088.0,27552.0,4544.0)
set gg_rct_Portal_Sargerosa=Rect(64.0,1952.0,320.0,2112.0)set gg_rct_Sargeros_Final=Rect(20288.0,10240.0,21952.0,11840.0)set gg_rct_Hero=Rect(-6368.0,12544.0,-4928.0,13088.0)set gg_rct_Povelitel_tmy=Rect(-25536.0,26880.0,-25056.0,27360.0)
set gg_rct_Ledianoy_tron=Rect(-28672.0,13184.0,-14912.0,27520.0)
set gg_rct_Dalaran_Portal=Rect(10464.0,26336.0,10784.0,26496.0)set gg_rct_Podzemelie_Dalarana=Rect(9888.0,21824.0,13440.0,27072.0)set gg_rct_Zatoplennoe_podzemelie=Rect(3456.0,22048.0,8288.0,27264.0)set gg_rct_Silvana=Rect(26528.0,-24448.0,26848.0,-24160.0)set gg_rct_Silvana_2=Rect(26496.0,-23840.0,26848.0,-23552.0)
set gg_rct_Artas_Visadka=Rect(-17280.0,16320.0,-16832.0,16864.0)
set gg_rct_Smert_Drakonoborca=Rect(6784.0,-22016.0,7008.0,-21792.0)set gg_rct_Biblioteka=Rect(14752.0,21920.0,14944.0,22208.0)set gg_rct_Biblioteka_Vhod=Rect(-27200.0,-14592.0,-26944.0,-14400.0)
set gg_rct_Biblioteka_Dalarana=Rect(14944.0,21952.0,17856.0,27072.0)
set we=AddWeatherEffect(gg_rct_Biblioteka_Dalarana,'FDrh')call EnableWeatherEffect(we,true)set gg_rct_Lovushka_Dalaran_1=Rect(18496.0,23552.0,18624.0,23680.0)set gg_rct_Lovushka_Dalaran_2=Rect(18496.0,23808.0,18624.0,23936.0)set gg_rct_Lovushka_Dalaran_3=Rect(18752.0,23808.0,18880.0,23936.0)set gg_rct_Lovushka_Dalaran_4=Rect(19136.0,23680.0,19264.0,23808.0)set gg_rct_Lovushka_Dalaran_5=Rect(19264.0,23808.0,19392.0,23936.0)set gg_rct_Lovushka_Dalaran_6=Rect(19264.0,23552.0,19392.0,23680.0)set gg_rct_Lovushka_Dalaran_7=Rect(19136.0,23936.0,19264.0,24064.0)set gg_rct_Lovushka_Dalaran_8=Rect(19008.0,24064.0,19136.0,24192.0)set gg_rct_Lovushka_Dalaran_9=Rect(18752.0,24064.0,18880.0,24192.0)set gg_rct_Lovushka_Dalaran_10=Rect(18496.0,24320.0,18624.0,24448.0)
set gg_rct_Lovushka_Dalaran_11=Rect(18752.0,24320.0,18880.0,24448.0)
set gg_rct_Lovushka_Dalaran_12=Rect(19264.0,24320.0,19392.0,24448.0)
set gg_rct_Lovushka_Dalaran_13=Rect(19008.0,24576.0,19136.0,24704.0)
set gg_rct_Lovushka_Dalaran_14=Rect(18624.0,23680.0,18752.0,23808.0)
set gg_rct_Lovushka_Dalaran_15=Rect(18624.0,24704.0,18752.0,24832.0)
set gg_rct_Lovushka_Dalaran_16=Rect(18880.0,24448.0,19008.0,24576.0)
set gg_rct_Lovushka_Dalaran_17=Rect(18752.0,24832.0,18880.0,24960.0)
set gg_rct_Lovushka_Dalaran_18=Rect(19008.0,24832.0,19136.0,24960.0)
set gg_rct_Lovushka_Dalaran_19=Rect(19264.0,24832.0,19392.0,24960.0)
set gg_rct_Lovushka_Dalaran_20=Rect(19136.0,24960.0,19264.0,25088.0)
set gg_rct_Lovushka_Dalaran_21=Rect(18496.0,25088.0,18624.0,25216.0)
set gg_rct_Ostrov_piratov_1=Rect(-5184.0,14304.0,-3168.0,15872.0)set gg_rct_Ostrov_piratov_2=Rect(-12416.0,16672.0,-10400.0,18528.0)set gg_rct_Ostrov_piratov_3=Rect(-8192.0,18112.0,-5536.0,20288.0)set gg_rct_Ungoro=Rect(-12928.0,22048.0,-8224.0,25056.0)
set gg_rct_More=Rect(-14240.0,13984.0,864.0,27616.0)
set we=AddWeatherEffect(gg_rct_More,'RLlr')call EnableWeatherEffect(we,true)set gg_rct_Peshera_Magmy=Rect(3104.0,14944.0,3296.0,15200.0)
set gg_rct_Peshera_Magmy_2=Rect(10048.0,-14880.0,10304.0,-14624.0)set gg_rct_Sklep_vhod=Rect(25568.0,-14432.0,25856.0,-14304.0)set gg_rct_Sklep_exit=Rect(16992.0,14656.0,17312.0,14784.0)set gg_rct_Sklep_Room_1=Rect(14656.0,14656.0,16512.0,16416.0)set gg_rct_Sklep_Room_2=Rect(18464.0,15008.0,19456.0,16000.0)set gg_rct_Sklep_Room_3=Rect(14656.0,17856.0,15808.0,20416.0)set gg_rct_Sklep_Room_4=Rect(18496.0,17856.0,19648.0,20416.0)set gg_rct_Nestabilniy_Portal=Rect(-17312.0,-12704.0,-16992.0,-12512.0)set gg_rct_Portal_Beg=Rect(-17344.0,-13504.0,-16928.0,-13248.0)set gg_rct_Peshera_Dreneev_1=Rect(2624.0,-17600.0,2816.0,-17312.0)set gg_rct_Peshera_Dreneev_1_Exit=Rect(3328.0,19488.0,3520.0,19776.0)set gg_rct_Peshera_Dreneev_2=Rect(9600.0,-24384.0,9792.0,-24096.0)set gg_rct_Peshera_Dreneev_2_Exit=Rect(12544.0,14528.0,12736.0,14816.0)set gg_rct_Peshera_Dreneyev_Krip=Rect(3520.0,18496.0,13440.0,20448.0)set gg_rct_Derevnia_Dreneev=Rect(-10304.0,-24800.0,-5152.0,-20256.0)
set gg_rct_Garpii=Rect(-14944.0,-27648.0,2272.0,-25984.0)endfunctionfunction CreateCameras takes nothing returns nothing
set gg_cam_Hero_Respaun=CreateCameraSetup()call CameraSetupSetField(gg_cam_Hero_Respaun,CAMERA_FIELD_ZOFFSET,0.0,0.0)call CameraSetupSetField(gg_cam_Hero_Respaun,CAMERA_FIELD_ROTATION,90.0,0.0)
call CameraSetupSetField(gg_cam_Hero_Respaun,CAMERA_FIELD_ANGLE_OF_ATTACK,304.0,0.0)
call CameraSetupSetField(gg_cam_Hero_Respaun,CAMERA_FIELD_TARGET_DISTANCE,1996.5,0.0)call CameraSetupSetField(gg_cam_Hero_Respaun,CAMERA_FIELD_ROLL,0.0,0.0)call CameraSetupSetField(gg_cam_Hero_Respaun,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)call CameraSetupSetField(gg_cam_Hero_Respaun,CAMERA_FIELD_FARZ,5000.0,0.0)call CameraSetupSetDestPosition(gg_cam_Hero_Respaun,186.2,4151.2,0.0)set gg_cam_Inicializaciya=CreateCameraSetup()call CameraSetupSetField(gg_cam_Inicializaciya,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(gg_cam_Inicializaciya,CAMERA_FIELD_ROTATION,90.0,0.0)call CameraSetupSetField(gg_cam_Inicializaciya,CAMERA_FIELD_ANGLE_OF_ATTACK,304.0,0.0)call CameraSetupSetField(gg_cam_Inicializaciya,CAMERA_FIELD_TARGET_DISTANCE,478.0,0.0)call CameraSetupSetField(gg_cam_Inicializaciya,CAMERA_FIELD_ROLL,0.0,0.0)call CameraSetupSetField(gg_cam_Inicializaciya,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)call CameraSetupSetField(gg_cam_Inicializaciya,CAMERA_FIELD_FARZ,5000.0,0.0)
call CameraSetupSetDestPosition(gg_cam_Inicializaciya,11147.7,-12517.5,0.0)set gg_cam_Inicializaciya2=CreateCameraSetup()call CameraSetupSetField(gg_cam_Inicializaciya2,CAMERA_FIELD_ZOFFSET,0.0,0.0)call CameraSetupSetField(gg_cam_Inicializaciya2,CAMERA_FIELD_ROTATION,90.0,0.0)call CameraSetupSetField(gg_cam_Inicializaciya2,CAMERA_FIELD_ANGLE_OF_ATTACK,304.0,0.0)call CameraSetupSetField(gg_cam_Inicializaciya2,CAMERA_FIELD_TARGET_DISTANCE,1815.0,0.0)
call CameraSetupSetField(gg_cam_Inicializaciya2,CAMERA_FIELD_ROLL,0.0,0.0)call CameraSetupSetField(gg_cam_Inicializaciya2,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(gg_cam_Inicializaciya2,CAMERA_FIELD_FARZ,5000.0,0.0)call CameraSetupSetDestPosition(gg_cam_Inicializaciya2,11147.7,-12517.5,0.0)
set gg_cam_Camera_004=CreateCameraSetup()call CameraSetupSetField(gg_cam_Camera_004,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(gg_cam_Camera_004,CAMERA_FIELD_ROTATION,303.1,0.0)call CameraSetupSetField(gg_cam_Camera_004,CAMERA_FIELD_ANGLE_OF_ATTACK,304.0,0.0)call CameraSetupSetField(gg_cam_Camera_004,CAMERA_FIELD_TARGET_DISTANCE,3536.9,0.0)call CameraSetupSetField(gg_cam_Camera_004,CAMERA_FIELD_ROLL,0.0,0.0)call CameraSetupSetField(gg_cam_Camera_004,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)call CameraSetupSetField(gg_cam_Camera_004,CAMERA_FIELD_FARZ,5000.0,0.0)
call CameraSetupSetDestPosition(gg_cam_Camera_004,7432.8,15416.2,0.0)endfunctionfunction Trig_Defense_active_Actions takes nothing returns nothingcall KillDestructable(gg_dest_ATg4_2401)
call KillDestructable(gg_dest_YTcx_9528)
call DisableTrigger(GetTriggeringTrigger())call DestroyTimerDialog(GetLastCreatedTimerDialogBJ())call DisableTrigger(gg_trg_Drevniy_svitok_freeze_time)call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Активирован режим удержания.|r
|c0000FF00(Используйте свитки телепортации для перемещения.)|r")call DisableTrigger(gg_trg_Wolf)
call DisableTrigger(gg_trg_Troll)call DisableTrigger(gg_trg_Morlock)call DisableTrigger(gg_trg_Bandit)call DisableTrigger(gg_trg_Kentavry)
call DisableTrigger(gg_trg_Gnolly)call DisableTrigger(gg_trg_Satiry)call TriggerSleepAction(2)call TriggerExecute(gg_trg_Mediv_oborona)call TriggerExecute(gg_trg_Marshal_Oborona)call TriggerExecute(gg_trg_Marshal_Oborona_2)call TriggerExecute(gg_trg_Kuznec_Oborona)call TriggerExecute(gg_trg_Erl_oborona)call TriggerExecute(gg_trg_Kenatius_Oborona_Zamka)call TriggerExecute(gg_trg_Tirend_oborona)call TriggerExecute(gg_trg_Mev_oborona)call TriggerExecute(gg_trg_Farion_oborona)call TriggerExecute(gg_trg_Pehotinec_oborona)call TriggerExecute(gg_trg_Djayna_Oborona)call TriggerExecute(gg_trg_Paladin_Oborona)call TriggerSleepAction(2)call CreateNUnitsAtLoc(1,'etoa',Player(9),GetRectCenter(gg_rct_Vishka_orkov_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'etoa',Player(9),GetRectCenter(gg_rct_Vishka_orkov_4),bj_UNIT_FACING)call TriggerSleepAction(180.00)call TriggerExecute(gg_trg_Type_Unit)endfunctionfunction InitTrig_Defense_active takes nothing returns nothingset gg_trg_Defense_active=CreateTrigger()call TriggerRegisterPlayerChatEvent(gg_trg_Defense_active,Player(0),"-defense",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Defense_active,Player(1),"-defense",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Defense_active,Player(2),"-defense",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Defense_active,Player(3),"-defense",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Defense_active,Player(4),"-defense",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Defense_active,Player(5),"-defense",true)
call TriggerAddAction(gg_trg_Defense_active,function Trig_Defense_active_Actions)endfunctionfunction Trig_Volna_Defense_Actions takes nothing returns nothingcall GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(15.00)call CreateNUnitsAtLoc(12,udg_Unit_Defense,Player(11),GetRectCenter(gg_rct_Mobs_Attack_2),bj_UNIT_FACING)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(15.00)call CreateNUnitsAtLoc(12,udg_Unit_Defense,Player(11),GetRectCenter(gg_rct_Mobs_Attack_2),bj_UNIT_FACING)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(15.00)call CreateNUnitsAtLoc(12,udg_Unit_Defense,Player(11),GetRectCenter(gg_rct_Mobs_Attack_2),bj_UNIT_FACING)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))endfunctionfunction InitTrig_Volna_Defense takes nothing returns nothingset gg_trg_Volna_Defense=CreateTrigger()
call DisableTrigger(gg_trg_Volna_Defense)call TriggerAddAction(gg_trg_Volna_Defense,function Trig_Volna_Defense_Actions)endfunctionfunction Trig_Volna_Defense_Bonus_Actions takes nothing returns nothingcall GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(15.00)call CreateNUnitsAtLoc(12,udg_Unit_Defense,Player(11),GetRectCenter(gg_rct_Mobs_Attack_2),bj_UNIT_FACING)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(15.00)call CreateNUnitsAtLoc(12,udg_Unit_Defense,Player(11),GetRectCenter(gg_rct_Mobs_Attack_2),bj_UNIT_FACING)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(15.00)call CreateNUnitsAtLoc(12,udg_Unit_Defense,Player(11),GetRectCenter(gg_rct_Mobs_Attack_2),bj_UNIT_FACING)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))endfunctionfunction InitTrig_Volna_Defense_Bonus takes nothing returns nothingset gg_trg_Volna_Defense_Bonus=CreateTrigger()call DisableTrigger(gg_trg_Volna_Defense_Bonus)call TriggerAddAction(gg_trg_Volna_Defense_Bonus,function Trig_Volna_Defense_Bonus_Actions)endfunctionfunction Trig_Volna_Defense_Boss_Actions takes nothing returns nothingcall GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(15.00)call CreateNUnitsAtLoc(1,udg_Unit_Defense,Player(11),GetRectCenter(gg_rct_Mobs_Attack_2),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))endfunctionfunction InitTrig_Volna_Defense_Boss takes nothing returns nothingset gg_trg_Volna_Defense_Boss=CreateTrigger()call DisableTrigger(gg_trg_Volna_Defense_Boss)call TriggerAddAction(gg_trg_Volna_Defense_Boss,function Trig_Volna_Defense_Boss_Actions)endfunctionfunction Trig_Type_Unit_Func020C takes nothing returns booleanif(not(udg_Chanse==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func021C takes nothing returns booleanif(not(udg_Chanse==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func022C takes nothing returns booleanif(not(udg_Chanse==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func023C takes nothing returns booleanif(not(udg_Chanse==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func024C takes nothing returns booleanif(not(udg_Chanse==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func049C takes nothing returns booleanif(not(udg_Chanse==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func050C takes nothing returns booleanif(not(udg_Chanse==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func051C takes nothing returns booleanif(not(udg_Chanse==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func052C takes nothing returns booleanif(not(udg_Chanse==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func053C takes nothing returns booleanif(not(udg_Chanse==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func074C takes nothing returns booleanif(not(udg_Chanse==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func075C takes nothing returns booleanif(not(udg_Chanse==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func076C takes nothing returns booleanif(not(udg_Chanse==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func077C takes nothing returns booleanif(not(udg_Chanse==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func078C takes nothing returns booleanif(not(udg_Chanse==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func107C takes nothing returns booleanif(not(udg_Chanse==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func108C takes nothing returns booleanif(not(udg_Chanse==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func109C takes nothing returns booleanif(not(udg_Chanse==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func110C takes nothing returns booleanif(not(udg_Chanse==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func111C takes nothing returns booleanif(not(udg_Chanse==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func144C takes nothing returns booleanif(not(udg_Chanse==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func145C takes nothing returns booleanif(not(udg_Chanse==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func146C takes nothing returns booleanif(not(udg_Chanse==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func147C takes nothing returns booleanif(not(udg_Chanse==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func148C takes nothing returns booleanif(not(udg_Chanse==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func173C takes nothing returns booleanif(not(udg_Chanse==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func174C takes nothing returns booleanif(not(udg_Chanse==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func175C takes nothing returns booleanif(not(udg_Chanse==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func176C takes nothing returns booleanif(not(udg_Chanse==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func177C takes nothing returns booleanif(not(udg_Chanse==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func222C takes nothing returns booleanif(not(udg_Chanse==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func223C takes nothing returns booleanif(not(udg_Chanse==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func224C takes nothing returns booleanif(not(udg_Chanse==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func225C takes nothing returns booleanif(not(udg_Chanse==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func246C takes nothing returns booleanif(not(udg_Chanse==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func247C takes nothing returns booleanif(not(udg_Chanse==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func248C takes nothing returns booleanif(not(udg_Chanse==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func249C takes nothing returns booleanif(not(udg_Chanse==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func271C takes nothing returns booleanif(not(udg_Chanse==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func272C takes nothing returns booleanif(not(udg_Chanse==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func273C takes nothing returns booleanif(not(udg_Chanse==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func274C takes nothing returns booleanif(not(udg_Chanse==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func295C takes nothing returns booleanif(not(udg_Chanse==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func296C takes nothing returns booleanif(not(udg_Chanse==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func297C takes nothing returns booleanif(not(udg_Chanse==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func298C takes nothing returns booleanif(not(udg_Chanse==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func317C takes nothing returns booleanif(not(udg_Chanse==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func318C takes nothing returns booleanif(not(udg_Chanse==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func319C takes nothing returns booleanif(not(udg_Chanse==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Func320C takes nothing returns booleanif(not(udg_Chanse==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Type_Unit_Actions takes nothing returns nothingset udg_Unit_Defense='nwlt'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nqb1'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nwlg'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nwld'call TriggerExecute(gg_trg_Volna_Defense_Boss)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(60.00)set udg_Chanse=GetRandomInt(1,5)
call PingMinimapLocForForce(GetPlayersAll(),GetRectCenter(gg_rct_Sluchayniy_artefakt),1)
if(Trig_Type_Unit_Func020C())thencall CreateItemLoc('sman',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func021C())thencall CreateItemLoc('oflg',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func022C())thencall CreateItemLoc('sror',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func023C())thencall CreateItemLoc('will',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func024C())thencall CreateItemLoc('scul',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifset udg_Unit_Defense='nsc2'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nftr'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='ntkf'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='ndrf'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nftk'call TriggerExecute(gg_trg_Volna_Defense_Boss)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(60.00)set udg_Chanse=GetRandomInt(1,5)
call PingMinimapLocForForce(GetPlayersAll(),GetRectCenter(gg_rct_Sluchayniy_artefakt),1)
if(Trig_Type_Unit_Func049C())thencall CreateItemLoc('flag',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func050C())thencall CreateItemLoc('infs',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func051C())thencall CreateItemLoc('mnst',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func052C())thencall CreateItemLoc('rej5',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func053C())thencall CreateItemLoc('totw',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifset udg_Unit_Defense='nfsp'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='ntkt'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='ndrm'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='ntkc'call TriggerExecute(gg_trg_Volna_Defense_Boss)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(60.00)set udg_Chanse=GetRandomInt(1,5)
call PingMinimapLocForForce(GetPlayersAll(),GetRectCenter(gg_rct_Sluchayniy_artefakt),1)
if(Trig_Type_Unit_Func074C())thencall CreateItemLoc('rat9',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func075C())thencall CreateItemLoc('stwa',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func076C())thencall CreateItemLoc('cnob',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func077C())thencall CreateItemLoc('sor9',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func078C())thencall CreateItemLoc('rde0',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifset udg_Unit_Defense='ndrm'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nsc3'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nftt'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='ntks'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='ndrp'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='ndrs'call TriggerExecute(gg_trg_Volna_Defense_Boss)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(60.00)set udg_Chanse=GetRandomInt(1,5)
call PingMinimapLocForForce(GetPlayersAll(),GetRectCenter(gg_rct_Sluchayniy_artefakt),1)
if(Trig_Type_Unit_Func107C())thencall CreateItemLoc('soul',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func108C())thencall CreateItemLoc('jdrn',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func109C())thencall CreateItemLoc('wlsd',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func110C())thencall CreateItemLoc('I02L',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func111C())thencall CreateItemLoc('I02V',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifset udg_Unit_Defense='nkot'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nmpg'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nmrl'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nsnp'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nwgs'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nmrr'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nnrg'call TriggerExecute(gg_trg_Volna_Defense_Boss)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(60.00)set udg_Chanse=GetRandomInt(1,5)
call PingMinimapLocForForce(GetPlayersAll(),GetRectCenter(gg_rct_Sluchayniy_artefakt),1)
if(Trig_Type_Unit_Func144C())thencall CreateItemLoc('skrt',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func145C())thencall CreateItemLoc('I00J',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func146C())thencall CreateItemLoc('I004',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func147C())thencall CreateItemLoc('I00N',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func148C())thencall CreateItemLoc('I00T',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifset udg_Unit_Defense='nass'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nenf'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nhfp'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='ngh1'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nbdw'call TriggerExecute(gg_trg_Volna_Defense_Boss)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(60.00)set udg_Chanse=GetRandomInt(1,5)
call PingMinimapLocForForce(GetPlayersAll(),GetRectCenter(gg_rct_Sluchayniy_artefakt),1)
if(Trig_Type_Unit_Func173C())thencall CreateItemLoc('shar',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func174C())thencall CreateItemLoc('I020',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func175C())thencall CreateItemLoc('I03C',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func176C())thencall CreateItemLoc('I01P',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func177C())thencall CreateItemLoc('I00C',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifset udg_Unit_Defense='u002'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nska'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nskf'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='u004'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nsko'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nenc'call TriggerExecute(gg_trg_Volna_Defense_Boss)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(60.00)set udg_Unit_Defense='ncer'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='ncea'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='ncks'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='ncnk'call TriggerExecute(gg_trg_Volna_Defense_Boss)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Chanse=GetRandomInt(1,4)
call PingMinimapLocForForce(GetPlayersAll(),GetRectCenter(gg_rct_Sluchayniy_artefakt),1)
if(Trig_Type_Unit_Func222C())thencall CreateItemLoc('azhr',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func223C())thencall CreateItemLoc('pomn',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func224C())thencall CreateItemLoc('glsk',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func225C())thencall CreateItemLoc('rhth',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifset udg_Unit_Defense='ngna'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='ngno'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='ngnw'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='ngnv'call TriggerExecute(gg_trg_Volna_Defense_Boss)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(60.00)set udg_Chanse=GetRandomInt(1,4)
call PingMinimapLocForForce(GetPlayersAll(),GetRectCenter(gg_rct_Sluchayniy_artefakt),1)
if(Trig_Type_Unit_Func246C())thencall CreateItemLoc('azhr',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func247C())thencall CreateItemLoc('pomn',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func248C())thencall CreateItemLoc('glsk',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func249C())thencall CreateItemLoc('rhth',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifset udg_Unit_Defense='ugho'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='u012'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nnwl'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='u00Z'call TriggerExecute(gg_trg_Volna_Defense_Boss)call TriggerExecute(gg_trg_Volna_Defense_Boss)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(60.00)set udg_Chanse=GetRandomInt(1,4)
call PingMinimapLocForForce(GetPlayersAll(),GetRectCenter(gg_rct_Sluchayniy_artefakt),1)
if(Trig_Type_Unit_Func271C())thencall CreateItemLoc('azhr',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func272C())thencall CreateItemLoc('pomn',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func273C())thencall CreateItemLoc('glsk',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func274C())thencall CreateItemLoc('rhth',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifset udg_Unit_Defense='nogr'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nomg'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nogm'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nogl'call TriggerExecute(gg_trg_Volna_Defense_Boss)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(60.00)set udg_Chanse=GetRandomInt(1,4)
call PingMinimapLocForForce(GetPlayersAll(),GetRectCenter(gg_rct_Sluchayniy_artefakt),1)
if(Trig_Type_Unit_Func295C())thencall CreateItemLoc('azhr',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func296C())thencall CreateItemLoc('pomn',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func297C())thencall CreateItemLoc('glsk',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func298C())thencall CreateItemLoc('ktrm',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifset udg_Unit_Defense='nsts'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nstl'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nsth'call TriggerExecute(gg_trg_Volna_Defense_Boss)call TriggerExecute(gg_trg_Volna_Defense_Boss)call TriggerExecute(gg_trg_Volna_Defense_Boss)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(60.00)set udg_Chanse=GetRandomInt(1,4)
call PingMinimapLocForForce(GetPlayersAll(),GetRectCenter(gg_rct_Sluchayniy_artefakt),1)
if(Trig_Type_Unit_Func317C())thencall CreateItemLoc('azhr',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func318C())thencall CreateItemLoc('pomn',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func319C())thencall CreateItemLoc('glsk',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifif(Trig_Type_Unit_Func320C())thencall CreateItemLoc('ktrm',GetRectCenter(gg_rct_Sluchayniy_artefakt))
else
endifset udg_Unit_Defense='uabo'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='uban'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nspb'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nfgb'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='ndqn'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='n00A'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nerw'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='npfm'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='u005'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='u006'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='u006'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nfov'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nvde'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='nerd'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='ufro'call TriggerExecute(gg_trg_Volna_Defense)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(90.00)set udg_Unit_Defense='ngdk'call TriggerExecute(gg_trg_Volna_Defense_Boss)call TriggerExecute(gg_trg_Volna_Defense_Boss)call TriggerExecute(gg_trg_Volna_Defense_Boss)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(180.00)set udg_Unit_Defense='nbwm'call TriggerExecute(gg_trg_Volna_Defense_Boss)call TriggerExecute(gg_trg_Volna_Defense_Boss)call TriggerExecute(gg_trg_Volna_Defense_Boss)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(240.00)set udg_Unit_Defense='nrwm'call TriggerExecute(gg_trg_Volna_Defense_Boss)call TriggerExecute(gg_trg_Volna_Defense_Boss)call TriggerExecute(gg_trg_Volna_Defense_Boss)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Тип юнита:|r"+UnitId2StringBJ(udg_Unit_Defense)))call TriggerSleepAction(300.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Саргерас здесь!|r")call SetUnitPositionLoc(gg_unit_Utic_0214,GetUnitLoc(gg_unit_ndmg_0116))
call EnableTrigger(gg_trg_Sargeros)endfunctionfunction InitTrig_Type_Unit takes nothing returns nothingset gg_trg_Type_Unit=CreateTrigger()
call DisableTrigger(gg_trg_Type_Unit)call TriggerAddAction(gg_trg_Type_Unit,function Trig_Type_Unit_Actions)endfunctionfunction Trig_Camera_Actions takes nothing returns nothingcall SetCameraFieldForPlayer(Player(0),CAMERA_FIELD_TARGET_DISTANCE,I2R(udg_CameraDaln[1]),0.00)
endfunctionfunction InitTrig_Camera takes nothing returns nothingset gg_trg_Camera=CreateTrigger()call DisableTrigger(gg_trg_Camera)call TriggerRegisterTimerEventPeriodic(gg_trg_Camera,0.01)call TriggerAddAction(gg_trg_Camera,function Trig_Camera_Actions)endfunctionfunction Trig_For_Player_1_Conditions takes nothing returns booleanif(not(S2I(GetEventPlayerChatString())<=udg_MaxDal))then
return false
endifif(not(S2I(GetEventPlayerChatString())>=udg_MinDal))then
return false
endifreturn trueendfunctionfunction Trig_For_Player_1_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call DisableTrigger(gg_trg_Camera)set udg_CameraDaln[1]=S2I(GetEventPlayerChatString())call SetCameraFieldForPlayer(Player(0),CAMERA_FIELD_TARGET_DISTANCE,I2R(udg_CameraDaln[1]),1.00)
call TriggerSleepAction(1.00)call EnableTrigger(gg_trg_Camera)endfunctionfunction InitTrig_For_Player_1 takes nothing returns nothing
set gg_trg_For_Player_1=CreateTrigger()call DisableTrigger(gg_trg_For_Player_1)
call TriggerRegisterPlayerChatEvent(gg_trg_For_Player_1,Player(0),SubStringBJ("",250,3000),true)
call TriggerAddCondition(gg_trg_For_Player_1,Condition(function Trig_For_Player_1_Conditions))call TriggerAddAction(gg_trg_For_Player_1,function Trig_For_Player_1_Actions)endfunctionfunction Trig_For_Player_1_Active_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+": Введите значение от|c00FF0000 250|r до|c00FF0000 3000|r."))
call EnableTrigger(gg_trg_For_Player_1)call EnableTrigger(gg_trg_Camera)endfunctionfunction InitTrig_For_Player_1_Active takes nothing returns nothingset gg_trg_For_Player_1_Active=CreateTrigger()call TriggerRegisterPlayerChatEvent(gg_trg_For_Player_1_Active,Player(0),"-Zoom",true)call TriggerAddAction(gg_trg_For_Player_1_Active,function Trig_For_Player_1_Active_Actions)endfunctionfunction Trig_Camera_1_____________________u_Actions takes nothing returns nothingcall SetCameraFieldForPlayer(Player(1),CAMERA_FIELD_TARGET_DISTANCE,I2R(udg_CameraDaln[2]),0.00)
endfunctionfunction InitTrig_Camera_1_____________________u takes nothing returns nothingset gg_trg_Camera_1_____________________u=CreateTrigger()call DisableTrigger(gg_trg_Camera_1_____________________u)call TriggerRegisterTimerEventPeriodic(gg_trg_Camera_1_____________________u,0.01)call TriggerAddAction(gg_trg_Camera_1_____________________u,function Trig_Camera_1_____________________u_Actions)endfunctionfunction Trig_For_Player_2_Conditions takes nothing returns booleanif(not(S2I(GetEventPlayerChatString())<=udg_MaxDal))then
return false
endifif(not(S2I(GetEventPlayerChatString())>=udg_MinDal))then
return false
endifreturn trueendfunctionfunction Trig_For_Player_2_Actions takes nothing returns nothing
call DisableTrigger(gg_trg_Camera)set udg_CameraDaln[2]=S2I(GetEventPlayerChatString())call SetCameraFieldForPlayer(Player(1),CAMERA_FIELD_TARGET_DISTANCE,I2R(udg_CameraDaln[2]),1.00)
call TriggerSleepAction(1.00)call EnableTrigger(gg_trg_Camera)endfunctionfunction InitTrig_For_Player_2 takes nothing returns nothing
set gg_trg_For_Player_2=CreateTrigger()call DisableTrigger(gg_trg_For_Player_2)
call TriggerRegisterPlayerChatEvent(gg_trg_For_Player_2,Player(1),SubStringBJ("",250,3000),true)
call TriggerAddCondition(gg_trg_For_Player_2,Condition(function Trig_For_Player_2_Conditions))call TriggerAddAction(gg_trg_For_Player_2,function Trig_For_Player_2_Actions)endfunctionfunction Trig_For_Player_2_Active_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+": Введите значение от|c00FF0000 250|r до|c00FF0000 3000|r."))
call EnableTrigger(gg_trg_For_Player_2)call EnableTrigger(gg_trg_Camera_1_____________________u)endfunctionfunction InitTrig_For_Player_2_Active takes nothing returns nothingset gg_trg_For_Player_2_Active=CreateTrigger()call TriggerRegisterPlayerChatEvent(gg_trg_For_Player_2_Active,Player(1),"-Zoom",true)call TriggerAddAction(gg_trg_For_Player_2_Active,function Trig_For_Player_2_Active_Actions)endfunctionfunction Trig_Camera_3_Actions takes nothing returns nothing
call SetCameraFieldForPlayer(Player(2),CAMERA_FIELD_TARGET_DISTANCE,I2R(udg_CameraDaln[3]),0.00)
endfunctionfunction InitTrig_Camera_3 takes nothing returns nothing
set gg_trg_Camera_3=CreateTrigger()call DisableTrigger(gg_trg_Camera_3)
call TriggerRegisterTimerEventPeriodic(gg_trg_Camera_3,0.01)
call TriggerAddAction(gg_trg_Camera_3,function Trig_Camera_3_Actions)endfunctionfunction Trig_For_Player_3_Conditions takes nothing returns booleanif(not(S2I(GetEventPlayerChatString())<=udg_MaxDal))then
return false
endifif(not(S2I(GetEventPlayerChatString())>=udg_MinDal))then
return false
endifreturn trueendfunctionfunction Trig_For_Player_3_Actions takes nothing returns nothing
call DisableTrigger(gg_trg_Camera)set udg_CameraDaln[3]=S2I(GetEventPlayerChatString())call SetCameraFieldForPlayer(Player(2),CAMERA_FIELD_TARGET_DISTANCE,I2R(udg_CameraDaln[3]),1.00)
call TriggerSleepAction(1.00)call EnableTrigger(gg_trg_Camera)endfunctionfunction InitTrig_For_Player_3 takes nothing returns nothing
set gg_trg_For_Player_3=CreateTrigger()call DisableTrigger(gg_trg_For_Player_3)
call TriggerRegisterPlayerChatEvent(gg_trg_For_Player_3,Player(2),SubStringBJ("",250,3000),true)
call TriggerAddCondition(gg_trg_For_Player_3,Condition(function Trig_For_Player_3_Conditions))call TriggerAddAction(gg_trg_For_Player_3,function Trig_For_Player_3_Actions)endfunctionfunction Trig_For_Player_3_Active_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+": Введите значение от|c00FF0000 250|r до|c00FF0000 3000|r."))
call EnableTrigger(gg_trg_For_Player_3)call EnableTrigger(gg_trg_Camera_3)endfunctionfunction InitTrig_For_Player_3_Active takes nothing returns nothingset gg_trg_For_Player_3_Active=CreateTrigger()call TriggerRegisterPlayerChatEvent(gg_trg_For_Player_3_Active,Player(2),"-Zoom",true)call TriggerAddAction(gg_trg_For_Player_3_Active,function Trig_For_Player_3_Active_Actions)endfunctionfunction Trig_Camera_4_Actions takes nothing returns nothing
call SetCameraFieldForPlayer(Player(3),CAMERA_FIELD_TARGET_DISTANCE,I2R(udg_CameraDaln[4]),0.00)
endfunctionfunction InitTrig_Camera_4 takes nothing returns nothing
set gg_trg_Camera_4=CreateTrigger()call DisableTrigger(gg_trg_Camera_4)
call TriggerRegisterTimerEventPeriodic(gg_trg_Camera_4,0.01)
call TriggerAddAction(gg_trg_Camera_4,function Trig_Camera_4_Actions)endfunctionfunction Trig_For_Player_4_Conditions takes nothing returns booleanif(not(S2I(GetEventPlayerChatString())<=udg_MaxDal))then
return false
endifif(not(S2I(GetEventPlayerChatString())>=udg_MinDal))then
return false
endifreturn trueendfunctionfunction Trig_For_Player_4_Actions takes nothing returns nothing
call DisableTrigger(gg_trg_Camera)set udg_CameraDaln[4]=S2I(GetEventPlayerChatString())call SetCameraFieldForPlayer(Player(3),CAMERA_FIELD_TARGET_DISTANCE,I2R(udg_CameraDaln[4]),1.00)
call TriggerSleepAction(1.00)call EnableTrigger(gg_trg_Camera)endfunctionfunction InitTrig_For_Player_4 takes nothing returns nothing
set gg_trg_For_Player_4=CreateTrigger()call DisableTrigger(gg_trg_For_Player_4)
call TriggerRegisterPlayerChatEvent(gg_trg_For_Player_4,Player(3),SubStringBJ("",250,3000),true)
call TriggerAddCondition(gg_trg_For_Player_4,Condition(function Trig_For_Player_4_Conditions))call TriggerAddAction(gg_trg_For_Player_4,function Trig_For_Player_4_Actions)endfunctionfunction Trig_For_Player_4_Active_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+": Введите значение от|c00FF0000 250|r до|c00FF0000 3000|r."))
call EnableTrigger(gg_trg_For_Player_4)call EnableTrigger(gg_trg_Camera_4)endfunctionfunction InitTrig_For_Player_4_Active takes nothing returns nothingset gg_trg_For_Player_4_Active=CreateTrigger()call TriggerRegisterPlayerChatEvent(gg_trg_For_Player_4_Active,Player(3),"-Zoom",true)call TriggerAddAction(gg_trg_For_Player_4_Active,function Trig_For_Player_4_Active_Actions)endfunctionfunction Trig_Camera_5_Actions takes nothing returns nothing
call SetCameraFieldForPlayer(Player(4),CAMERA_FIELD_TARGET_DISTANCE,I2R(udg_CameraDaln[5]),0.00)
endfunctionfunction InitTrig_Camera_5 takes nothing returns nothing
set gg_trg_Camera_5=CreateTrigger()call DisableTrigger(gg_trg_Camera_5)
call TriggerRegisterTimerEventPeriodic(gg_trg_Camera_5,0.01)
call TriggerAddAction(gg_trg_Camera_5,function Trig_Camera_5_Actions)endfunctionfunction Trig_For_Player_5_Conditions takes nothing returns booleanif(not(S2I(GetEventPlayerChatString())<=udg_MaxDal))then
return false
endifif(not(S2I(GetEventPlayerChatString())>=udg_MinDal))then
return false
endifreturn trueendfunctionfunction Trig_For_Player_5_Actions takes nothing returns nothing
call DisableTrigger(gg_trg_Camera)set udg_CameraDaln[5]=S2I(GetEventPlayerChatString())call SetCameraFieldForPlayer(Player(4),CAMERA_FIELD_TARGET_DISTANCE,I2R(udg_CameraDaln[5]),1.00)
call TriggerSleepAction(1.00)call EnableTrigger(gg_trg_Camera)endfunctionfunction InitTrig_For_Player_5 takes nothing returns nothing
set gg_trg_For_Player_5=CreateTrigger()call DisableTrigger(gg_trg_For_Player_5)
call TriggerRegisterPlayerChatEvent(gg_trg_For_Player_5,Player(4),SubStringBJ("",250,3000),true)
call TriggerAddCondition(gg_trg_For_Player_5,Condition(function Trig_For_Player_5_Conditions))call TriggerAddAction(gg_trg_For_Player_5,function Trig_For_Player_5_Actions)endfunctionfunction Trig_For_Player_5_Active_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+": Введите значение от|c00FF0000 250|r до|c00FF0000 3000|r."))
call EnableTrigger(gg_trg_For_Player_5)call EnableTrigger(gg_trg_Camera_5)endfunctionfunction InitTrig_For_Player_5_Active takes nothing returns nothingset gg_trg_For_Player_5_Active=CreateTrigger()call TriggerRegisterPlayerChatEvent(gg_trg_For_Player_5_Active,Player(4),"-Zoom",true)call TriggerAddAction(gg_trg_For_Player_5_Active,function Trig_For_Player_5_Active_Actions)endfunctionfunction Trig_Camera_6_Actions takes nothing returns nothing
call SetCameraFieldForPlayer(Player(5),CAMERA_FIELD_TARGET_DISTANCE,I2R(udg_CameraDaln[6]),0.00)
endfunctionfunction InitTrig_Camera_6 takes nothing returns nothing
set gg_trg_Camera_6=CreateTrigger()call DisableTrigger(gg_trg_Camera_6)
call TriggerRegisterTimerEventPeriodic(gg_trg_Camera_6,0.01)
call TriggerAddAction(gg_trg_Camera_6,function Trig_Camera_6_Actions)endfunctionfunction Trig_For_Player_6_Conditions takes nothing returns booleanif(not(S2I(GetEventPlayerChatString())<=udg_MaxDal))then
return false
endifif(not(S2I(GetEventPlayerChatString())>=udg_MinDal))then
return false
endifreturn trueendfunctionfunction Trig_For_Player_6_Actions takes nothing returns nothing
call DisableTrigger(gg_trg_Camera)set udg_CameraDaln[6]=S2I(GetEventPlayerChatString())call SetCameraFieldForPlayer(Player(5),CAMERA_FIELD_TARGET_DISTANCE,I2R(udg_CameraDaln[6]),1.00)
call TriggerSleepAction(1.00)call EnableTrigger(gg_trg_Camera)endfunctionfunction InitTrig_For_Player_6 takes nothing returns nothing
set gg_trg_For_Player_6=CreateTrigger()call DisableTrigger(gg_trg_For_Player_6)
call TriggerRegisterPlayerChatEvent(gg_trg_For_Player_6,Player(5),SubStringBJ("",250,3000),true)
call TriggerAddCondition(gg_trg_For_Player_6,Condition(function Trig_For_Player_6_Conditions))call TriggerAddAction(gg_trg_For_Player_6,function Trig_For_Player_6_Actions)endfunctionfunction Trig_For_Player_6_Active_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+": Введите значение от|c00FF0000 250|r до|c00FF0000 3000|r."))
call EnableTrigger(gg_trg_For_Player_6)call EnableTrigger(gg_trg_Camera_6)endfunctionfunction InitTrig_For_Player_6_Active takes nothing returns nothingset gg_trg_For_Player_6_Active=CreateTrigger()call TriggerRegisterPlayerChatEvent(gg_trg_For_Player_6_Active,Player(5),"-Zoom",true)call TriggerAddAction(gg_trg_For_Player_6_Active,function Trig_For_Player_6_Active_Actions)endfunctionfunction Trig_Bonus_Active_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Включена система бонусов.|r
|c0000FF00Введити пароль для активации.|r
|c00FF0000Система отключится через 3 минуты.|r")
call EnableTrigger(gg_trg_Bonus_uchenik)
call EnableTrigger(gg_trg_Bonus_adept)call EnableTrigger(gg_trg_Bonus_magistr)
call EnableTrigger(gg_trg_Bonus_gold_coin)call EnableTrigger(gg_trg_Bonus_gold_purse)call EnableTrigger(gg_trg_Bonus_gold_bag)call EnableTrigger(gg_trg_Bonus_pehotinec)call EnableTrigger(gg_trg_Bonus_strag)call EnableTrigger(gg_trg_Bonus_hranitel)call TriggerSleepAction(180.00)call DisableTrigger(gg_trg_Bonus_uchenik)call DisableTrigger(gg_trg_Bonus_adept)call DisableTrigger(gg_trg_Bonus_magistr)call DisableTrigger(gg_trg_Bonus_gold_coin)call DisableTrigger(gg_trg_Bonus_gold_purse)
call DisableTrigger(gg_trg_Bonus_gold_bag)call DisableTrigger(gg_trg_Bonus_pehotinec)call DisableTrigger(gg_trg_Bonus_strag)call DisableTrigger(gg_trg_Bonus_hranitel)endfunctionfunction InitTrig_Bonus_Active takes nothing returns nothing
set gg_trg_Bonus_Active=CreateTrigger()call TriggerRegisterTimerEventSingle(gg_trg_Bonus_Active,60.00)call TriggerAddAction(gg_trg_Bonus_Active,function Trig_Bonus_Active_Actions)endfunctionfunction Trig_Bonus_uchenik_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Активирован бонус все игроки получают 1 очко навыка.|r")call AdjustPlayerStateBJ(1,Player(0),PLAYER_STATE_RESOURCE_LUMBER)call AdjustPlayerStateBJ(1,Player(1),PLAYER_STATE_RESOURCE_LUMBER)call AdjustPlayerStateBJ(1,Player(2),PLAYER_STATE_RESOURCE_LUMBER)call AdjustPlayerStateBJ(1,Player(3),PLAYER_STATE_RESOURCE_LUMBER)call AdjustPlayerStateBJ(1,Player(4),PLAYER_STATE_RESOURCE_LUMBER)call AdjustPlayerStateBJ(1,Player(5),PLAYER_STATE_RESOURCE_LUMBER)call DisableTrigger(gg_trg_Bonus_uchenik)call DisableTrigger(gg_trg_Bonus_adept)call DisableTrigger(gg_trg_Bonus_magistr)call DisableTrigger(gg_trg_Bonus_gold_coin)call DisableTrigger(gg_trg_Bonus_gold_purse)
call DisableTrigger(gg_trg_Bonus_gold_bag)call DisableTrigger(gg_trg_Bonus_pehotinec)call DisableTrigger(gg_trg_Bonus_strag)call DisableTrigger(gg_trg_Bonus_hranitel)endfunctionfunction InitTrig_Bonus_uchenik takes nothing returns nothingset gg_trg_Bonus_uchenik=CreateTrigger()
call DisableTrigger(gg_trg_Bonus_uchenik)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_uchenik,Player(0),"-uchenik",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_uchenik,Player(1),"-uchenik",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_uchenik,Player(2),"-uchenik",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_uchenik,Player(3),"-uchenik",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_uchenik,Player(4),"-uchenik",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_uchenik,Player(5),"-uchenik",true)call TriggerAddAction(gg_trg_Bonus_uchenik,function Trig_Bonus_uchenik_Actions)endfunctionfunction Trig_Bonus_adept_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Активирован бонус все игроки получают +2 очка навыков.|r")call AdjustPlayerStateBJ(2,Player(0),PLAYER_STATE_RESOURCE_LUMBER)call AdjustPlayerStateBJ(2,Player(1),PLAYER_STATE_RESOURCE_LUMBER)call AdjustPlayerStateBJ(2,Player(2),PLAYER_STATE_RESOURCE_LUMBER)call AdjustPlayerStateBJ(2,Player(3),PLAYER_STATE_RESOURCE_LUMBER)call AdjustPlayerStateBJ(2,Player(4),PLAYER_STATE_RESOURCE_LUMBER)call AdjustPlayerStateBJ(2,Player(5),PLAYER_STATE_RESOURCE_LUMBER)call DisableTrigger(gg_trg_Bonus_uchenik)call DisableTrigger(gg_trg_Bonus_adept)call DisableTrigger(gg_trg_Bonus_magistr)call DisableTrigger(gg_trg_Bonus_gold_coin)call DisableTrigger(gg_trg_Bonus_gold_purse)
call DisableTrigger(gg_trg_Bonus_gold_bag)call DisableTrigger(gg_trg_Bonus_pehotinec)call DisableTrigger(gg_trg_Bonus_strag)call DisableTrigger(gg_trg_Bonus_hranitel)endfunctionfunction InitTrig_Bonus_adept takes nothing returns nothingset gg_trg_Bonus_adept=CreateTrigger()call DisableTrigger(gg_trg_Bonus_adept)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_adept,Player(0),"-adept",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_adept,Player(1),"-adept",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_adept,Player(2),"-adept",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_adept,Player(3),"-adept",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_adept,Player(4),"-adept",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_adept,Player(5),"-adept",true)call TriggerAddAction(gg_trg_Bonus_adept,function Trig_Bonus_adept_Actions)endfunctionfunction Trig_Bonus_magistr_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Активирован бонус все игроки получают +3 очка навыков.|r")call AdjustPlayerStateBJ(3,Player(0),PLAYER_STATE_RESOURCE_LUMBER)call AdjustPlayerStateBJ(3,Player(1),PLAYER_STATE_RESOURCE_LUMBER)call AdjustPlayerStateBJ(3,Player(2),PLAYER_STATE_RESOURCE_LUMBER)call AdjustPlayerStateBJ(3,Player(3),PLAYER_STATE_RESOURCE_LUMBER)call AdjustPlayerStateBJ(3,Player(4),PLAYER_STATE_RESOURCE_LUMBER)call AdjustPlayerStateBJ(3,Player(5),PLAYER_STATE_RESOURCE_LUMBER)call DisableTrigger(gg_trg_Bonus_uchenik)call DisableTrigger(gg_trg_Bonus_adept)call DisableTrigger(gg_trg_Bonus_magistr)call DisableTrigger(gg_trg_Bonus_gold_coin)call DisableTrigger(gg_trg_Bonus_gold_purse)
call DisableTrigger(gg_trg_Bonus_gold_bag)call DisableTrigger(gg_trg_Bonus_pehotinec)call DisableTrigger(gg_trg_Bonus_strag)call DisableTrigger(gg_trg_Bonus_hranitel)endfunctionfunction InitTrig_Bonus_magistr takes nothing returns nothingset gg_trg_Bonus_magistr=CreateTrigger()
call DisableTrigger(gg_trg_Bonus_magistr)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_magistr,Player(0),"-magistr",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_magistr,Player(1),"-magistr",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_magistr,Player(2),"-magistr",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_magistr,Player(3),"-magistr",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_magistr,Player(4),"-magistr",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_magistr,Player(5),"-magistr",true)call TriggerAddAction(gg_trg_Bonus_magistr,function Trig_Bonus_magistr_Actions)endfunctionfunction Trig_Bonus_gold_coin_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Активирован бонус все игроки получают +500 золота.|r")
call AdjustPlayerStateBJ(500,Player(0),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(500,Player(1),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(500,Player(2),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(500,Player(3),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(500,Player(4),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(500,Player(5),PLAYER_STATE_RESOURCE_GOLD)call DisableTrigger(gg_trg_Bonus_uchenik)call DisableTrigger(gg_trg_Bonus_adept)call DisableTrigger(gg_trg_Bonus_magistr)call DisableTrigger(gg_trg_Bonus_gold_coin)call DisableTrigger(gg_trg_Bonus_gold_purse)
call DisableTrigger(gg_trg_Bonus_gold_bag)call DisableTrigger(gg_trg_Bonus_pehotinec)call DisableTrigger(gg_trg_Bonus_strag)call DisableTrigger(gg_trg_Bonus_hranitel)endfunctionfunction InitTrig_Bonus_gold_coin takes nothing returns nothingset gg_trg_Bonus_gold_coin=CreateTrigger()call DisableTrigger(gg_trg_Bonus_gold_coin)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_gold_coin,Player(0),"-gold_coin",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_gold_coin,Player(1),"-gold_coin",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_gold_coin,Player(2),"-gold_coin",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_gold_coin,Player(3),"-gold_coin",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_gold_coin,Player(4),"-gold_coin",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_gold_coin,Player(5),"-gold_coin",true)call TriggerAddAction(gg_trg_Bonus_gold_coin,function Trig_Bonus_gold_coin_Actions)endfunctionfunction Trig_Bonus_gold_purse_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Активирован бонус все игроки получают +1000 золота.|r")call AdjustPlayerStateBJ(1000,Player(0),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1000,Player(1),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1000,Player(2),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1000,Player(3),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1000,Player(4),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1000,Player(5),PLAYER_STATE_RESOURCE_GOLD)call DisableTrigger(gg_trg_Bonus_uchenik)call DisableTrigger(gg_trg_Bonus_adept)call DisableTrigger(gg_trg_Bonus_magistr)call DisableTrigger(gg_trg_Bonus_gold_coin)call DisableTrigger(gg_trg_Bonus_gold_purse)
call DisableTrigger(gg_trg_Bonus_gold_bag)call DisableTrigger(gg_trg_Bonus_pehotinec)call DisableTrigger(gg_trg_Bonus_strag)call DisableTrigger(gg_trg_Bonus_hranitel)endfunctionfunction InitTrig_Bonus_gold_purse takes nothing returns nothing
set gg_trg_Bonus_gold_purse=CreateTrigger()call DisableTrigger(gg_trg_Bonus_gold_purse)
call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_gold_purse,Player(0),"-gold_purse",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_gold_purse,Player(1),"-gold_purse",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_gold_purse,Player(2),"-gold_purse",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_gold_purse,Player(3),"-gold_purse",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_gold_purse,Player(4),"-gold_purse",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_gold_purse,Player(5),"-gold_purse",true)call TriggerAddAction(gg_trg_Bonus_gold_purse,function Trig_Bonus_gold_purse_Actions)endfunctionfunction Trig_Bonus_gold_bag_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Активирован бонус все игроки получают +1500 золота.|r")call AdjustPlayerStateBJ(1500,Player(0),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1500,Player(1),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1500,Player(2),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1500,Player(3),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1500,Player(4),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1500,Player(5),PLAYER_STATE_RESOURCE_GOLD)call DisableTrigger(gg_trg_Bonus_uchenik)call DisableTrigger(gg_trg_Bonus_adept)call DisableTrigger(gg_trg_Bonus_magistr)call DisableTrigger(gg_trg_Bonus_gold_coin)call DisableTrigger(gg_trg_Bonus_gold_purse)
call DisableTrigger(gg_trg_Bonus_gold_bag)call DisableTrigger(gg_trg_Bonus_pehotinec)call DisableTrigger(gg_trg_Bonus_strag)call DisableTrigger(gg_trg_Bonus_hranitel)endfunctionfunction InitTrig_Bonus_gold_bag takes nothing returns nothingset gg_trg_Bonus_gold_bag=CreateTrigger()call DisableTrigger(gg_trg_Bonus_gold_bag)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_gold_bag,Player(0),"-gold_bag",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_gold_bag,Player(1),"-gold_bag",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_gold_bag,Player(2),"-gold_bag",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_gold_bag,Player(3),"-gold_bag",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_gold_bag,Player(4),"-gold_bag",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_gold_bag,Player(5),"-gold_bag",true)call TriggerAddAction(gg_trg_Bonus_gold_bag,function Trig_Bonus_gold_bag_Actions)endfunctionfunction Trig_Bonus_pehotinec_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Активирован бонус все игроки получают +1 к характеристикам.|r")call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call DisableTrigger(gg_trg_Bonus_uchenik)call DisableTrigger(gg_trg_Bonus_adept)call DisableTrigger(gg_trg_Bonus_magistr)call DisableTrigger(gg_trg_Bonus_gold_coin)call DisableTrigger(gg_trg_Bonus_gold_purse)
call DisableTrigger(gg_trg_Bonus_gold_bag)call DisableTrigger(gg_trg_Bonus_pehotinec)call DisableTrigger(gg_trg_Bonus_strag)call DisableTrigger(gg_trg_Bonus_hranitel)endfunctionfunction InitTrig_Bonus_pehotinec takes nothing returns nothingset gg_trg_Bonus_pehotinec=CreateTrigger()call DisableTrigger(gg_trg_Bonus_pehotinec)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_pehotinec,Player(0),"-pehotinec",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_pehotinec,Player(1),"-pehotinec",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_pehotinec,Player(2),"-pehotinec",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_pehotinec,Player(3),"-pehotinec",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_pehotinec,Player(4),"-pehotinec",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_pehotinec,Player(5),"-pehotinec",true)call TriggerAddAction(gg_trg_Bonus_pehotinec,function Trig_Bonus_pehotinec_Actions)endfunctionfunction Trig_Bonus_strag_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Активирован бонус все игроки получают +3 к характеристикам.|r")call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[1],bj_MODIFYMETHOD_ADD,3)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[1],bj_MODIFYMETHOD_ADD,3)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[1],bj_MODIFYMETHOD_ADD,3)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[2],bj_MODIFYMETHOD_ADD,3)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[2],bj_MODIFYMETHOD_ADD,3)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[2],bj_MODIFYMETHOD_ADD,3)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[3],bj_MODIFYMETHOD_ADD,3)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[3],bj_MODIFYMETHOD_ADD,3)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[3],bj_MODIFYMETHOD_ADD,3)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[4],bj_MODIFYMETHOD_ADD,3)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[4],bj_MODIFYMETHOD_ADD,3)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[4],bj_MODIFYMETHOD_ADD,3)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[5],bj_MODIFYMETHOD_ADD,3)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[5],bj_MODIFYMETHOD_ADD,3)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[5],bj_MODIFYMETHOD_ADD,3)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[6],bj_MODIFYMETHOD_ADD,3)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[6],bj_MODIFYMETHOD_ADD,3)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[6],bj_MODIFYMETHOD_ADD,3)call DisableTrigger(gg_trg_Bonus_uchenik)call DisableTrigger(gg_trg_Bonus_adept)call DisableTrigger(gg_trg_Bonus_magistr)call DisableTrigger(gg_trg_Bonus_gold_coin)call DisableTrigger(gg_trg_Bonus_gold_purse)
call DisableTrigger(gg_trg_Bonus_gold_bag)call DisableTrigger(gg_trg_Bonus_pehotinec)call DisableTrigger(gg_trg_Bonus_strag)call DisableTrigger(gg_trg_Bonus_hranitel)endfunctionfunction InitTrig_Bonus_strag takes nothing returns nothingset gg_trg_Bonus_strag=CreateTrigger()call DisableTrigger(gg_trg_Bonus_strag)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_strag,Player(0),"-strag",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_strag,Player(1),"-strag",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_strag,Player(2),"-strag",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_strag,Player(3),"-strag",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_strag,Player(4),"-strag",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_strag,Player(5),"-strag",true)call TriggerAddAction(gg_trg_Bonus_strag,function Trig_Bonus_strag_Actions)endfunctionfunction Trig_Bonus_hranitel_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Активирован бонус все игроки получают +5 к характеристикам.|r")call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[1],bj_MODIFYMETHOD_ADD,5)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[1],bj_MODIFYMETHOD_ADD,5)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[1],bj_MODIFYMETHOD_ADD,5)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[2],bj_MODIFYMETHOD_ADD,5)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[2],bj_MODIFYMETHOD_ADD,5)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[2],bj_MODIFYMETHOD_ADD,5)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[3],bj_MODIFYMETHOD_ADD,5)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[3],bj_MODIFYMETHOD_ADD,5)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[3],bj_MODIFYMETHOD_ADD,5)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[4],bj_MODIFYMETHOD_ADD,5)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[4],bj_MODIFYMETHOD_ADD,5)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[4],bj_MODIFYMETHOD_ADD,5)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[5],bj_MODIFYMETHOD_ADD,5)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[5],bj_MODIFYMETHOD_ADD,5)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[5],bj_MODIFYMETHOD_ADD,5)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[6],bj_MODIFYMETHOD_ADD,5)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[6],bj_MODIFYMETHOD_ADD,5)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[6],bj_MODIFYMETHOD_ADD,5)call DisableTrigger(gg_trg_Bonus_uchenik)call DisableTrigger(gg_trg_Bonus_adept)call DisableTrigger(gg_trg_Bonus_magistr)call DisableTrigger(gg_trg_Bonus_gold_coin)call DisableTrigger(gg_trg_Bonus_gold_purse)
call DisableTrigger(gg_trg_Bonus_gold_bag)call DisableTrigger(gg_trg_Bonus_pehotinec)call DisableTrigger(gg_trg_Bonus_strag)call DisableTrigger(gg_trg_Bonus_hranitel)endfunctionfunction InitTrig_Bonus_hranitel takes nothing returns nothingset gg_trg_Bonus_hranitel=CreateTrigger()call DisableTrigger(gg_trg_Bonus_hranitel)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_hranitel,Player(0),"-hranitel",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_hranitel,Player(1),"-hranitel",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_hranitel,Player(2),"-hranitel",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_hranitel,Player(3),"-hranitel",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_hranitel,Player(4),"-hranitel",true)call TriggerRegisterPlayerChatEvent(gg_trg_Bonus_hranitel,Player(5),"-hranitel",true)call TriggerAddAction(gg_trg_Bonus_hranitel,function Trig_Bonus_hranitel_Actions)endfunctionfunction Trig_Drevniy_svitok_freeze_time_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Добавлено 30 минут.|r")
set udg_Timer_celoe[1]=(udg_Timer_celoe[1]+1800.00)call DestroyTimerDialog(GetLastCreatedTimerDialogBJ())call CreateTimerDialogBJ(udg_Timer[1],"Вторжение:")
call StartTimerBJ(udg_Timer[1],false,udg_Timer_celoe[1])
call TimerDialogDisplayBJ(true,GetLastCreatedTimerDialogBJ())endfunctionfunction InitTrig_Drevniy_svitok_freeze_time takes nothing returns nothingset gg_trg_Drevniy_svitok_freeze_time=CreateTrigger()call TriggerRegisterPlayerChatEvent(gg_trg_Drevniy_svitok_freeze_time,Player(0),"-Freeze_time",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Drevniy_svitok_freeze_time,Player(1),"-Freeze_time",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Drevniy_svitok_freeze_time,Player(2),"-Freeze_time",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Drevniy_svitok_freeze_time,Player(3),"-Freeze_time",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Drevniy_svitok_freeze_time,Player(4),"-Freeze_time",true)
call TriggerRegisterPlayerChatEvent(gg_trg_Drevniy_svitok_freeze_time,Player(5),"-Freeze_time",true)
call TriggerAddAction(gg_trg_Drevniy_svitok_freeze_time,function Trig_Drevniy_svitok_freeze_time_Actions)endfunctionfunction Trig_Rohan_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FF0000Рохан пробудился!|r
|c00FF0000Защитити генератор!|r")
call CreateNUnitsAtLoc(1,'n00X',Player(11),GetRectCenter(gg_rct_Rohan),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(120.00)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(120.00)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(gg_unit_h007_0208))
endfunctionfunction InitTrig_Rohan takes nothing returns nothingset gg_trg_Rohan=CreateTrigger()
call TriggerAddAction(gg_trg_Rohan,function Trig_Rohan_Actions)endfunctionfunction Trig_Ledinaya_gliba_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'shar')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ledinaya_gliba_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(5.00)call KillDestructable(gg_dest_ITcr_8702)
endfunctionfunction InitTrig_Ledinaya_gliba takes nothing returns nothingset gg_trg_Ledinaya_gliba=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Ledinaya_gliba,gg_rct_Ledinoy)call TriggerAddCondition(gg_trg_Ledinaya_gliba,Condition(function Trig_Ledinaya_gliba_Conditions))call TriggerAddAction(gg_trg_Ledinaya_gliba,function Trig_Ledinaya_gliba_Actions)endfunctionfunction Trig_Pole_phenicy_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Pole_phenicy_Func004Func005002 takes nothing returns nothingcall SetUnitOwner(GetEnumUnit(),Player(11),false)endfunctionfunction Trig_Pole_phenicy_Func004C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Pole_phenicy_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())set udg_Random=GetRandomInt(1,7)
if(Trig_Pole_phenicy_Func004C())then
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Механический сборщик:|rc0090ee90При....%#739!!!|r")
call TriggerSleepAction(2)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Механический сборщик:|r|c00FF0000Ошибка№%!285?!%;|r")call TriggerSleepAction(2)call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(9),'ncg3'),function Trig_Pole_phenicy_Func004Func005002)else
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Механический сборщик:|rc0090ee90Приветствие!|r")call TriggerSleepAction(15.00)call EnableTrigger(GetTriggeringTrigger())endifendfunctionfunction InitTrig_Pole_phenicy takes nothing returns nothing
set gg_trg_Pole_phenicy=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Pole_phenicy,gg_rct_Pole_Phenicy)
call TriggerAddCondition(gg_trg_Pole_phenicy,Condition(function Trig_Pole_phenicy_Conditions))call TriggerAddAction(gg_trg_Pole_phenicy,function Trig_Pole_phenicy_Actions)endfunctionfunction Trig_Night_Dead_Actions takes nothing returns nothingcall PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_h007_0208),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,0.00)call DisplayTextToForce(GetPlayersAll(),"|c00FF0000Ночь мертвых.|r
|c00FFFF00Обороняйте генератор!|r")
call TriggerSleepAction(10.00)call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(10),'n00R'),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(10),'n00R'),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(8.00)call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Kladbishe,Player(10)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(20.00)call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Boqnia,Player(10)),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(20.00)call CreateNUnitsAtLoc(1,'ugho',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ugho',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ugho',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ugho',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ugho',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ugho',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ugho',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(10),'ugho'),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(12.00)call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(10),'ugho'),"attack",GetUnitLoc(gg_unit_h007_0208))
call CreateNUnitsAtLoc(1,'ugho',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Kladbishe,Player(10)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call CreateNUnitsAtLoc(1,'uabo',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uabo',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uabo',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uabo',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uabo',Player(10),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(10),'uabo'),"attack",GetUnitLoc(gg_unit_h007_0208))
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Kladbishe,Player(10)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(25.00)call CreateNUnitsAtLoc(1,'uabo',Player(10),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uabo',Player(10),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uabo',Player(10),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uabo',Player(10),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uabo',Player(10),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uabo',Player(10),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Kladbishe,Player(10)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(1,'uabo',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'uabo',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'uabo',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'uabo',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'uabo',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(10),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Kladbishe,Player(10)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(25.00)call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00R',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Zona_6,Player(10)),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(120.00)call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(10),'n00R'),"attack",GetUnitLoc(gg_unit_h007_0208))
call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(10),'ugho'),"attack",GetUnitLoc(gg_unit_h007_0208))
call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(10),'uabo'),"attack",GetUnitLoc(gg_unit_h007_0208))
endfunctionfunction InitTrig_Night_Dead takes nothing returns nothingset gg_trg_Night_Dead=CreateTrigger()call TriggerAddAction(gg_trg_Night_Dead,function Trig_Night_Dead_Actions)endfunctionfunction Trig_Ktun_Actions takes nothing returns nothing
call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Ktun),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,0.00)
call DisplayTextToForce(GetPlayersAll(),"|c00FF0000Ктун пробудился!|r
|c00FFFF00К'Тун:|r Беги, вопи от ужаса.")
call RemoveUnit(gg_unit_ndfl_0431)call CreateNUnitsAtLoc(1,'nfgo',Player(11),GetRectCenter(gg_rct_Ktun),bj_UNIT_FACING)set udg_Ktun=GetLastCreatedUnit()call TriggerSleepAction(6.00)call SetWaterBaseColorBJ(30.00,10.00,40.00,0)call CreateNUnitsAtLoc(1,'n00V',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00V',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00V',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00V',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00V',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n00V',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call TriggerSleepAction(6.00)call CreateNUnitsAtLoc(1,'nfgt',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfgt',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfgt',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfgt',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfgt',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfgt',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfgt',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfgt',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call TriggerSleepAction(120.00)call EnableTrigger(gg_trg_Ktun_Attack)call EnableTrigger(gg_trg_Ktun_lovushka)
endfunctionfunction InitTrig_Ktun takes nothing returns nothing
set gg_trg_Ktun=CreateTrigger()call TriggerAddAction(gg_trg_Ktun,function Trig_Ktun_Actions)endfunctionfunction Trig_Ktun_Attack_Func001C takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_Ktun)==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Ktun_Attack_Actions takes nothing returns nothingif(Trig_Ktun_Attack_Func001C())thencall DisableTrigger(GetTriggeringTrigger())returnelse
call CreateNUnitsAtLoc(1,'nfgt',Player(11),GetRandomLocInRect(gg_rct_Zamok),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgt',Player(11),GetRandomLocInRect(gg_rct_Zamok),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgt',Player(11),GetRandomLocInRect(gg_rct_Zamok),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00V',Player(11),GetRandomLocInRect(gg_rct_Zamok),bj_UNIT_FACING)endifendfunctionfunction InitTrig_Ktun_Attack takes nothing returns nothingset gg_trg_Ktun_Attack=CreateTrigger()call DisableTrigger(gg_trg_Ktun_Attack)call TriggerRegisterTimerEventSingle(gg_trg_Ktun_Attack,160.00)call TriggerAddAction(gg_trg_Ktun_Attack,function Trig_Ktun_Attack_Actions)endfunctionfunction Trig_Ktun_lovushka_Conditions takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_Ktun)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ktun_lovushka_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00К'Тун:|r Твои существа отвернутся от тебя.")call CreateNUnitsAtLoc(1,'nfgt',Player(10),GetRandomLocInRect(gg_rct_Morlok_lovushka),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgt',Player(10),GetRandomLocInRect(gg_rct_Morlok_lovushka),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgt',Player(10),GetRandomLocInRect(gg_rct_Morlok_lovushka),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgt',Player(10),GetRandomLocInRect(gg_rct_Morlok_lovushka),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgt',Player(10),GetRandomLocInRect(gg_rct_Morlok_lovushka),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgt',Player(10),GetRandomLocInRect(gg_rct_Morlok_lovushka),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgt',Player(10),GetRandomLocInRect(gg_rct_Morlok_lovushka),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgt',Player(10),GetRandomLocInRect(gg_rct_Morlok_lovushka),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgt',Player(10),GetRandomLocInRect(gg_rct_Morlok_lovushka),bj_UNIT_FACING)endfunctionfunction InitTrig_Ktun_lovushka takes nothing returns nothingset gg_trg_Ktun_lovushka=CreateTrigger()
call DisableTrigger(gg_trg_Ktun_lovushka)call TriggerRegisterEnterRectSimple(gg_trg_Ktun_lovushka,gg_rct_Morlok_lovushka)
call TriggerAddCondition(gg_trg_Ktun_lovushka,Condition(function Trig_Ktun_lovushka_Conditions))
call TriggerAddAction(gg_trg_Ktun_lovushka,function Trig_Ktun_lovushka_Actions)endfunctionfunction Trig_Ktun_ai_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='nfgo'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ktun_ai_Func004C takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())<=2000.00))thenreturn false
endifreturn trueendfunctionfunction Trig_Ktun_ai_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call IssuePointOrderLoc(GetAttackedUnitBJ(),"clusterrockets",GetUnitLoc(GetAttacker()))call TriggerSleepAction(15.00)if(Trig_Ktun_ai_Func004C())thencall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00К'Тун:|r Поддайся страху.")
call TriggerSleepAction(2)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttacker()),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")call SetUnitPositionLoc(GetAttacker(),GetUnitLoc(GetAttackedUnitBJ()))call AddSpecialEffectLocBJ(GetUnitLoc(GetAttacker()),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'nfgt',Player(11),OffsetLocation(GetUnitLoc(GetAttacker()),50.00,0),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfgt',Player(11),OffsetLocation(GetUnitLoc(GetAttacker()),-50.00,0),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgt',Player(11),OffsetLocation(GetUnitLoc(GetAttacker()),-50.00,50.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgt',Player(11),OffsetLocation(GetUnitLoc(GetAttacker()),-50.00,-50.00),bj_UNIT_FACING)else
endifcall TriggerSleepAction(55.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Ktun_ai takes nothing returns nothingset gg_trg_Ktun_ai=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ktun_ai,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Ktun_ai,Condition(function Trig_Ktun_ai_Conditions))
call TriggerAddAction(gg_trg_Ktun_ai,function Trig_Ktun_ai_Actions)endfunctionfunction Trig_Smertokril_Napadenie_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FF0000Жители видели как драконы направились к замку!|r")
call CreateNUnitsAtLoc(1,'nbwm',Player(11),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(8.00)call CreateNUnitsAtLoc(1,'nbwm',Player(11),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(8.00)call CreateNUnitsAtLoc(1,'nbwm',Player(11),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(8.00)call CreateNUnitsAtLoc(1,'nrwm',Player(11),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(60.00)call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'nrwm'),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(120.00)call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'nrwm'),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(120.00)call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'nrwm'),"attack",GetUnitLoc(gg_unit_h007_0208))
endfunctionfunction InitTrig_Smertokril_Napadenie takes nothing returns nothing
set gg_trg_Smertokril_Napadenie=CreateTrigger()call TriggerAddAction(gg_trg_Smertokril_Napadenie,function Trig_Smertokril_Napadenie_Actions)endfunctionfunction Trig_Zaragennoe_zerno_Func002Func002C takes nothing returns boolean
if(not(IsUnitAliveBJ(gg_unit_n002_0038)==false))then
return false
endifif(not(IsUnitAliveBJ(gg_unit_h001_0112)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zaragennoe_zerno_Func002C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Zaragennoe_zerno_Func003Func001C takes nothing returns boolean
if(not(IsUnitAliveBJ(gg_unit_uslh_0152)==false))then
return false
endifreturn trueendfunctionfunction Trig_Zaragennoe_zerno_Func003C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Zaragennoe_zerno_Func004Func001C takes nothing returns boolean
if(not(IsUnitAliveBJ(gg_unit_ncte_0161)==false))then
return false
endifreturn trueendfunctionfunction Trig_Zaragennoe_zerno_Func004C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Zaragennoe_zerno_Actions takes nothing returns nothing
set udg_Random=GetRandomInt(1,6)
if(Trig_Zaragennoe_zerno_Func002C())then
if(Trig_Zaragennoe_zerno_Func002Func002C())thencall CreateNUnitsAtLoc(1,'u008',Player(6),GetUnitLoc(gg_unit_h001_0112),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"move",GetRectCenter(gg_rct_Zerno))
else
call CreateNUnitsAtLoc(1,'u008',Player(6),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"move",GetRectCenter(gg_rct_Zerno))
endifelse
endifif(Trig_Zaragennoe_zerno_Func003C())then
if(Trig_Zaragennoe_zerno_Func003Func001C())thencall CreateNUnitsAtLoc(1,'u008',Player(6),GetUnitLoc(gg_unit_uslh_0152),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"move",GetRectCenter(gg_rct_Zerno))
else
call CreateNUnitsAtLoc(1,'u008',Player(6),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"move",GetRectCenter(gg_rct_Zerno))
endifelse
endifif(Trig_Zaragennoe_zerno_Func004C())then
if(Trig_Zaragennoe_zerno_Func004Func001C())thencall CreateNUnitsAtLoc(1,'u008',Player(6),GetUnitLoc(gg_unit_ncte_0161),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"move",GetRectCenter(gg_rct_Zerno))
else
call CreateNUnitsAtLoc(1,'u008',Player(6),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"move",GetRectCenter(gg_rct_Zerno))
endifelse
endifendfunctionfunction InitTrig_Zaragennoe_zerno takes nothing returns nothing
set gg_trg_Zaragennoe_zerno=CreateTrigger()call TriggerRegisterTimerEventSingle(gg_trg_Zaragennoe_zerno,GetRandomReal(2400.00,4200.00))
call TriggerAddAction(gg_trg_Zaragennoe_zerno,function Trig_Zaragennoe_zerno_Actions)endfunctionfunction Trig_Zaragennoe_zerno_Active_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='u008'))then
return false
endifreturn trueendfunctionfunction Trig_Zaragennoe_zerno_Active_Actions takes nothing returns nothingcall KillUnit(gg_unit_n006_0056)
call AddWeatherEffectSaveLast(gg_rct_Derevnia,'FDrh')call TriggerSleepAction(2)call KillUnit(GetTriggerUnit())call TriggerSleepAction(2)call CreateNUnitsAtLoc(1,'u009',Player(10),GetRandomLocInRect(gg_rct_Zerno),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u009',Player(10),GetUnitLoc(gg_unit_ngol_0285),bj_UNIT_FACING)
call TriggerSleepAction(6.00)call CreateNUnitsAtLoc(1,'u009',Player(10),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call TriggerSleepAction(6.00)call CreateNUnitsAtLoc(1,'u009',Player(10),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call TriggerSleepAction(6.00)call CreateNUnitsAtLoc(1,'u009',Player(10),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call TriggerSleepAction(6.00)call CreateNUnitsAtLoc(1,'u009',Player(10),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call TriggerSleepAction(6.00)call CreateNUnitsAtLoc(1,'u009',Player(10),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call TriggerSleepAction(6.00)call CreateNUnitsAtLoc(1,'u009',Player(10),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call TriggerSleepAction(6.00)call CreateNUnitsAtLoc(1,'u009',Player(10),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call TriggerSleepAction(6.00)call CreateNUnitsAtLoc(1,'u009',Player(10),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call TriggerSleepAction(20.00)call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call TriggerSleepAction(20.00)call CreateNUnitsAtLoc(1,'uabo',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'uabo',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'uabo',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'uabo',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'uabo',Player(11),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)call TerrainDeformationRippleBJ(4,false,GetRectCenter(gg_rct_Derevnia),1024,1024,64,1,512)call SetBlightRectBJ(true,Player(11),gg_rct_Derevnia)endfunctionfunction InitTrig_Zaragennoe_zerno_Active takes nothing returns nothingset gg_trg_Zaragennoe_zerno_Active=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Zaragennoe_zerno_Active,gg_rct_Zerno)
call TriggerAddCondition(gg_trg_Zaragennoe_zerno_Active,Condition(function Trig_Zaragennoe_zerno_Active_Conditions))
call TriggerAddAction(gg_trg_Zaragennoe_zerno_Active,function Trig_Zaragennoe_zerno_Active_Actions)endfunctionfunction Trig_Povelitel_tmy_Func004C takes nothing returns booleanif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'oli2')==true))then
return trueendifif((GetUnitTypeId(GetTriggerUnit())=='Harf'))thenreturn trueendifif((GetUnitTypeId(GetTriggerUnit())=='H000'))thenreturn trueendifreturn false
endfunctionfunction Trig_Povelitel_tmy_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not Trig_Povelitel_tmy_Func004C())thenreturn false
endifreturn trueendfunctionfunction Trig_Povelitel_tmy_Func014C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Povelitel_tmy_Func015C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Povelitel_tmy_Func016C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Povelitel_tmy_Func017C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Povelitel_tmy_Func018C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Povelitel_tmy_Func019C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Povelitel_tmy_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Повелитель тьмы:|r|c0030c5d8 Теперь мы едины!|r")call DisableTrigger(GetTriggeringTrigger())call KillUnit(gg_unit_nzlc_0821)
call SetUnitPositionLoc(gg_unit_Udth_0824,GetUnitLoc(GetTriggerUnit()))call SetUnitOwner(gg_unit_Udth_0824,GetOwningPlayer(GetTriggerUnit()),true)call ModifyHeroStat(bj_HEROSTAT_STR,gg_unit_Udth_0824,bj_MODIFYMETHOD_ADD,GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),false))
call ModifyHeroStat(bj_HEROSTAT_AGI,gg_unit_Udth_0824,bj_MODIFYMETHOD_ADD,GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),false))
call ModifyHeroStat(bj_HEROSTAT_INT,gg_unit_Udth_0824,bj_MODIFYMETHOD_ADD,GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),false))
call RemoveUnit(GetTriggerUnit())call TriggerSleepAction(0.50)if(Trig_Povelitel_tmy_Func014C())thenset udg_Hero[1]=gg_unit_Udth_0824else
endifif(Trig_Povelitel_tmy_Func015C())thenset udg_Hero[2]=gg_unit_Udth_0824else
endifif(Trig_Povelitel_tmy_Func016C())thenset udg_Hero[3]=gg_unit_Udth_0824else
endifif(Trig_Povelitel_tmy_Func017C())thenset udg_Hero[4]=gg_unit_Udth_0824else
endifif(Trig_Povelitel_tmy_Func018C())thenset udg_Hero[5]=gg_unit_Udth_0824else
endifif(Trig_Povelitel_tmy_Func019C())thenset udg_Hero[6]=gg_unit_Udth_0824else
endifendfunctionfunction InitTrig_Povelitel_tmy takes nothing returns nothingset gg_trg_Povelitel_tmy=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Povelitel_tmy,gg_rct_Povelitel_tmy)call TriggerAddCondition(gg_trg_Povelitel_tmy,Condition(function Trig_Povelitel_tmy_Conditions))
call TriggerAddAction(gg_trg_Povelitel_tmy,function Trig_Povelitel_tmy_Actions)endfunctionfunction Trig_Dalaran_portal_1_Func001C takes nothing returns booleanif(not(udg_Dalaran_Portal==8))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_portal_1_Actions takes nothing returns nothing
if(Trig_Dalaran_portal_1_Func001C())then
call DisableTrigger(GetTriggeringTrigger())call SetDestructableAnimationBJ(gg_dest_B001_11352,"alternate")call TriggerSleepAction(2)call SetDestructableAnimationBJ(gg_dest_B001_11352,"alternate")call SetDestructableAnimationBJ(gg_dest_B001_11353,"alternate")call SetDestructableAnimationBJ(gg_dest_B001_11354,"alternate")call SetDestructableAnimationBJ(gg_dest_B001_11355,"alternate")call SetDestructableAnimationBJ(gg_dest_B001_11356,"alternate")call SetDestructableAnimationBJ(gg_dest_B001_11357,"alternate")call SetDestructableAnimationBJ(gg_dest_B001_11358,"alternate")call SetDestructableAnimationBJ(gg_dest_B001_11359,"alternate")call SetDestructableAnimationBJ(gg_dest_B001_11360,"alternate")call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Dalaran_Portal),"Abilities\\Spells\\Human\\Polymorph\\PolyMorphDoneGround.mdl")call TriggerSleepAction(0.50)call CreateItemLoc('rres',GetRectCenter(gg_rct_Dalaran_Portal))else
set udg_Dalaran_Portal=0
call DestructableRestoreLife(gg_dest_DTlv_11240,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11344,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11345,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11346,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11347,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11348,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11349,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11350,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11351,5.00,true)call SetDestructableAnimationBJ(gg_dest_B001_11352,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11353,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11354,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11355,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11356,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11357,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11358,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11359,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11360,"stand")endifendfunctionfunction InitTrig_Dalaran_portal_1 takes nothing returns nothing
set gg_trg_Dalaran_portal_1=CreateTrigger()call TriggerRegisterDeathEvent(gg_trg_Dalaran_portal_1,gg_dest_DTlv_11240)call TriggerAddAction(gg_trg_Dalaran_portal_1,function Trig_Dalaran_portal_1_Actions)endfunctionfunction Trig_Dalaran_portal_2_Func001C takes nothing returns booleanif(not(udg_Dalaran_Portal==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_portal_2_Actions takes nothing returns nothing
if(Trig_Dalaran_portal_2_Func001C())then
call SetDestructableAnimationBJ(gg_dest_B001_11353,"alternate")set udg_Dalaran_Portal=3
else
set udg_Dalaran_Portal=0
call DestructableRestoreLife(gg_dest_DTlv_11240,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11344,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11345,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11346,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11347,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11348,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11349,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11350,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11351,5.00,true)call SetDestructableAnimationBJ(gg_dest_B001_11352,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11353,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11354,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11355,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11356,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11357,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11358,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11359,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11360,"stand")endifendfunctionfunction InitTrig_Dalaran_portal_2 takes nothing returns nothing
set gg_trg_Dalaran_portal_2=CreateTrigger()call TriggerRegisterDeathEvent(gg_trg_Dalaran_portal_2,gg_dest_DTlv_11344)call TriggerAddAction(gg_trg_Dalaran_portal_2,function Trig_Dalaran_portal_2_Actions)endfunctionfunction Trig_Dalaran_portal_3_Func001C takes nothing returns booleanif(not(udg_Dalaran_Portal==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_portal_3_Actions takes nothing returns nothing
if(Trig_Dalaran_portal_3_Func001C())then
call SetDestructableAnimationBJ(gg_dest_B001_11354,"alternate")set udg_Dalaran_Portal=7
else
set udg_Dalaran_Portal=0
call DestructableRestoreLife(gg_dest_DTlv_11240,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11344,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11345,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11346,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11347,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11348,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11349,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11350,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11351,5.00,true)call SetDestructableAnimationBJ(gg_dest_B001_11352,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11353,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11354,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11355,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11356,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11357,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11358,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11359,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11360,"stand")endifendfunctionfunction InitTrig_Dalaran_portal_3 takes nothing returns nothing
set gg_trg_Dalaran_portal_3=CreateTrigger()call TriggerRegisterDeathEvent(gg_trg_Dalaran_portal_3,gg_dest_DTlv_11345)call TriggerAddAction(gg_trg_Dalaran_portal_3,function Trig_Dalaran_portal_3_Actions)endfunctionfunction Trig_Dalaran_portal_4_Func001C takes nothing returns booleanif(not(udg_Dalaran_Portal==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_portal_4_Actions takes nothing returns nothing
if(Trig_Dalaran_portal_4_Func001C())then
call SetDestructableAnimationBJ(gg_dest_B001_11355,"alternate")set udg_Dalaran_Portal=2
else
set udg_Dalaran_Portal=0
call DestructableRestoreLife(gg_dest_DTlv_11240,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11344,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11345,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11346,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11347,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11348,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11349,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11350,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11351,5.00,true)call SetDestructableAnimationBJ(gg_dest_B001_11352,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11353,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11354,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11355,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11356,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11357,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11358,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11359,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11360,"stand")endifendfunctionfunction InitTrig_Dalaran_portal_4 takes nothing returns nothing
set gg_trg_Dalaran_portal_4=CreateTrigger()call TriggerRegisterDeathEvent(gg_trg_Dalaran_portal_4,gg_dest_DTlv_11346)call TriggerAddAction(gg_trg_Dalaran_portal_4,function Trig_Dalaran_portal_4_Actions)endfunctionfunction Trig_Dalaran_portal_5_Func001C takes nothing returns booleanif(not(udg_Dalaran_Portal==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_portal_5_Actions takes nothing returns nothing
if(Trig_Dalaran_portal_5_Func001C())then
call SetDestructableAnimationBJ(gg_dest_B001_11356,"alternate")set udg_Dalaran_Portal=4
else
set udg_Dalaran_Portal=0
call DestructableRestoreLife(gg_dest_DTlv_11240,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11344,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11345,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11346,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11347,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11348,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11349,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11350,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11351,5.00,true)call SetDestructableAnimationBJ(gg_dest_B001_11352,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11353,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11354,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11355,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11356,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11357,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11358,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11359,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11360,"stand")endifendfunctionfunction InitTrig_Dalaran_portal_5 takes nothing returns nothing
set gg_trg_Dalaran_portal_5=CreateTrigger()call TriggerRegisterDeathEvent(gg_trg_Dalaran_portal_5,gg_dest_DTlv_11347)call TriggerAddAction(gg_trg_Dalaran_portal_5,function Trig_Dalaran_portal_5_Actions)endfunctionfunction Trig_Dalaran_portal_6_Func001C takes nothing returns booleanif(not(udg_Dalaran_Portal==7))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_portal_6_Actions takes nothing returns nothing
if(Trig_Dalaran_portal_6_Func001C())then
call SetDestructableAnimationBJ(gg_dest_B001_11357,"alternate")set udg_Dalaran_Portal=8
else
set udg_Dalaran_Portal=0
call DestructableRestoreLife(gg_dest_DTlv_11240,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11344,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11345,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11346,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11347,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11348,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11349,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11350,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11351,5.00,true)call SetDestructableAnimationBJ(gg_dest_B001_11352,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11353,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11354,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11355,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11356,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11357,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11358,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11359,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11360,"stand")endifendfunctionfunction InitTrig_Dalaran_portal_6 takes nothing returns nothing
set gg_trg_Dalaran_portal_6=CreateTrigger()call TriggerRegisterDeathEvent(gg_trg_Dalaran_portal_6,gg_dest_DTlv_11348)call TriggerAddAction(gg_trg_Dalaran_portal_6,function Trig_Dalaran_portal_6_Actions)endfunctionfunction Trig_Dalaran_portal_7_Func001C takes nothing returns booleanif(not(udg_Dalaran_Portal==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_portal_7_Actions takes nothing returns nothing
if(Trig_Dalaran_portal_7_Func001C())then
call SetDestructableAnimationBJ(gg_dest_B001_11358,"alternate")set udg_Dalaran_Portal=6
else
set udg_Dalaran_Portal=0
call DestructableRestoreLife(gg_dest_DTlv_11240,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11344,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11345,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11346,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11347,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11348,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11349,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11350,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11351,5.00,true)call SetDestructableAnimationBJ(gg_dest_B001_11352,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11353,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11354,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11355,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11356,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11357,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11358,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11359,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11360,"stand")endifendfunctionfunction InitTrig_Dalaran_portal_7 takes nothing returns nothing
set gg_trg_Dalaran_portal_7=CreateTrigger()call TriggerRegisterDeathEvent(gg_trg_Dalaran_portal_7,gg_dest_DTlv_11349)call TriggerAddAction(gg_trg_Dalaran_portal_7,function Trig_Dalaran_portal_7_Actions)endfunctionfunction Trig_Dalaran_portal_8_Func001C takes nothing returns booleanif(not(udg_Dalaran_Portal==0))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_portal_8_Actions takes nothing returns nothing
if(Trig_Dalaran_portal_8_Func001C())then
call SetDestructableAnimationBJ(gg_dest_B001_11359,"alternate")set udg_Dalaran_Portal=1
else
set udg_Dalaran_Portal=0
call DestructableRestoreLife(gg_dest_DTlv_11240,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11344,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11345,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11346,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11347,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11348,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11349,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11350,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11351,5.00,true)call SetDestructableAnimationBJ(gg_dest_B001_11352,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11353,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11354,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11355,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11356,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11357,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11358,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11359,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11360,"stand")endifendfunctionfunction InitTrig_Dalaran_portal_8 takes nothing returns nothing
set gg_trg_Dalaran_portal_8=CreateTrigger()call TriggerRegisterDeathEvent(gg_trg_Dalaran_portal_8,gg_dest_DTlv_11350)call TriggerAddAction(gg_trg_Dalaran_portal_8,function Trig_Dalaran_portal_8_Actions)endfunctionfunction Trig_Dalaran_portal_9_Func001C takes nothing returns booleanif(not(udg_Dalaran_Portal==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_portal_9_Actions takes nothing returns nothing
if(Trig_Dalaran_portal_9_Func001C())then
call SetDestructableAnimationBJ(gg_dest_B001_11360,"alternate")set udg_Dalaran_Portal=5
else
set udg_Dalaran_Portal=0
call DestructableRestoreLife(gg_dest_DTlv_11240,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11344,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11345,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11346,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11347,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11348,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11349,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11350,5.00,true)call DestructableRestoreLife(gg_dest_DTlv_11351,5.00,true)call SetDestructableAnimationBJ(gg_dest_B001_11352,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11353,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11354,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11355,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11356,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11357,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11358,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11359,"stand")call SetDestructableAnimationBJ(gg_dest_B001_11360,"stand")endifendfunctionfunction InitTrig_Dalaran_portal_9 takes nothing returns nothing
set gg_trg_Dalaran_portal_9=CreateTrigger()call TriggerRegisterDeathEvent(gg_trg_Dalaran_portal_9,gg_dest_DTlv_11351)call TriggerAddAction(gg_trg_Dalaran_portal_9,function Trig_Dalaran_portal_9_Actions)endfunctionfunction Trig_Kamen_vozrogdeniya_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifreturn trueendfunctionfunction Trig_Kamen_vozrogdeniya_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call IssueTargetOrder(gg_unit_nbse_0816,"drain",GetTriggerUnit())call TriggerSleepAction(4.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Kamen_vozrogdeniya takes nothing returns nothingset gg_trg_Kamen_vozrogdeniya=CreateTrigger()call TriggerRegisterUnitInRangeSimple(gg_trg_Kamen_vozrogdeniya,600.00,gg_unit_nbse_0816)call TriggerAddCondition(gg_trg_Kamen_vozrogdeniya,Condition(function Trig_Kamen_vozrogdeniya_Conditions))call TriggerAddAction(gg_trg_Kamen_vozrogdeniya,function Trig_Kamen_vozrogdeniya_Actions)endfunctionfunction Trig_Kamen_vozrogdeniya_Active_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisableTrigger(gg_trg_Kamen_vozrogdeniya)call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Камень воскрешения активирован!|r
|c0030c5d8+1 крест воскрешения.|r")
call SetUnitOwner(gg_unit_nbse_0816,Player(9),true)call SetUnitAnimation(gg_unit_nbse_0816,"alternate")
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED)+1))call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED)+1))call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED)+1))call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED)+1))call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED)+1))call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED)+1))endfunctionfunction InitTrig_Kamen_vozrogdeniya_Active takes nothing returns nothingset gg_trg_Kamen_vozrogdeniya_Active=CreateTrigger()
call TriggerRegisterUnitManaEvent(gg_trg_Kamen_vozrogdeniya_Active,gg_unit_nbse_0816,EQUAL,100000.00)call TriggerAddAction(gg_trg_Kamen_vozrogdeniya_Active,function Trig_Kamen_vozrogdeniya_Active_Actions)endfunctionfunction Trig_Kamen_vozrogdeniya_2_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifreturn trueendfunctionfunction Trig_Kamen_vozrogdeniya_2_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call IssueTargetOrder(gg_unit_nbse_0817,"drain",GetTriggerUnit())call TriggerSleepAction(4.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Kamen_vozrogdeniya_2 takes nothing returns nothing
set gg_trg_Kamen_vozrogdeniya_2=CreateTrigger()call TriggerRegisterUnitInRangeSimple(gg_trg_Kamen_vozrogdeniya_2,600.00,gg_unit_nbse_0817)call TriggerAddCondition(gg_trg_Kamen_vozrogdeniya_2,Condition(function Trig_Kamen_vozrogdeniya_2_Conditions))call TriggerAddAction(gg_trg_Kamen_vozrogdeniya_2,function Trig_Kamen_vozrogdeniya_2_Actions)endfunctionfunction Trig_Kamen_vozrogdeniya_Active_2_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisableTrigger(gg_trg_Kamen_vozrogdeniya_2)
call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Камень воскрешения активирован!|r
|c0030c5d8+1 крест воскрешения.|r")
call SetUnitOwner(gg_unit_nbse_0817,Player(9),true)call SetUnitAnimation(gg_unit_nbse_0817,"alternate")
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED)+1))call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED)+1))call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED)+1))call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED)+1))call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED)+1))call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED)+1))endfunctionfunction InitTrig_Kamen_vozrogdeniya_Active_2 takes nothing returns nothingset gg_trg_Kamen_vozrogdeniya_Active_2=CreateTrigger()call TriggerRegisterUnitManaEvent(gg_trg_Kamen_vozrogdeniya_Active_2,gg_unit_nbse_0817,EQUAL,100000.00)call TriggerAddAction(gg_trg_Kamen_vozrogdeniya_Active_2,function Trig_Kamen_vozrogdeniya_Active_2_Actions)endfunctionfunction Trig_Kamen_vozrogdeniya_3_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifreturn trueendfunctionfunction Trig_Kamen_vozrogdeniya_3_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call IssueTargetOrder(gg_unit_nbse_0818,"drain",GetTriggerUnit())call TriggerSleepAction(4.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Kamen_vozrogdeniya_3 takes nothing returns nothing
set gg_trg_Kamen_vozrogdeniya_3=CreateTrigger()call TriggerRegisterUnitInRangeSimple(gg_trg_Kamen_vozrogdeniya_3,600.00,gg_unit_nbse_0818)call TriggerAddCondition(gg_trg_Kamen_vozrogdeniya_3,Condition(function Trig_Kamen_vozrogdeniya_3_Conditions))call TriggerAddAction(gg_trg_Kamen_vozrogdeniya_3,function Trig_Kamen_vozrogdeniya_3_Actions)endfunctionfunction Trig_Kamen_vozrogdeniya_Active_3_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisableTrigger(gg_trg_Kamen_vozrogdeniya_3)
call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Камень воскрешения активирован!|r
|c0030c5d8+1 крест воскрешения.|r")
call SetUnitOwner(gg_unit_nbse_0818,Player(9),true)call SetUnitAnimation(gg_unit_nbse_0818,"alternate")
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED)+1))call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED)+1))call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED)+1))call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED)+1))call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED)+1))call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED)+1))endfunctionfunction InitTrig_Kamen_vozrogdeniya_Active_3 takes nothing returns nothingset gg_trg_Kamen_vozrogdeniya_Active_3=CreateTrigger()call TriggerRegisterUnitManaEvent(gg_trg_Kamen_vozrogdeniya_Active_3,gg_unit_nbse_0818,EQUAL,100000.00)call TriggerAddAction(gg_trg_Kamen_vozrogdeniya_Active_3,function Trig_Kamen_vozrogdeniya_Active_3_Actions)endfunctionfunction Trig_Kamen_vozrogdeniya_4_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifreturn trueendfunctionfunction Trig_Kamen_vozrogdeniya_4_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call IssueTargetOrder(gg_unit_nbse_0819,"drain",GetTriggerUnit())call TriggerSleepAction(4.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Kamen_vozrogdeniya_4 takes nothing returns nothing
set gg_trg_Kamen_vozrogdeniya_4=CreateTrigger()call TriggerRegisterUnitInRangeSimple(gg_trg_Kamen_vozrogdeniya_4,600.00,gg_unit_nbse_0819)call TriggerAddCondition(gg_trg_Kamen_vozrogdeniya_4,Condition(function Trig_Kamen_vozrogdeniya_4_Conditions))call TriggerAddAction(gg_trg_Kamen_vozrogdeniya_4,function Trig_Kamen_vozrogdeniya_4_Actions)endfunctionfunction Trig_Kamen_vozrogdeniya_Active_4_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisableTrigger(gg_trg_Kamen_vozrogdeniya_4)
call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Камень воскрешения активирован!|r
|c0030c5d8+1 крест воскрешения.|r")
call SetUnitOwner(gg_unit_nbse_0819,Player(9),true)call SetUnitAnimation(gg_unit_nbse_0819,"alternate")
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_CAP,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_CAP)+1))
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED)+1))call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED)+1))call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED)+1))call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED)+1))call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED)+1))call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED)+1))endfunctionfunction InitTrig_Kamen_vozrogdeniya_Active_4 takes nothing returns nothingset gg_trg_Kamen_vozrogdeniya_Active_4=CreateTrigger()call TriggerRegisterUnitManaEvent(gg_trg_Kamen_vozrogdeniya_Active_4,gg_unit_nbse_0819,EQUAL,100000.00)call TriggerAddAction(gg_trg_Kamen_vozrogdeniya_Active_4,function Trig_Kamen_vozrogdeniya_Active_4_Actions)endfunctionfunction Trig_Magicheskiy_Generator_Dalaran_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifreturn trueendfunctionfunction Trig_Magicheskiy_Generator_Dalaran_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call IssueTargetOrder(gg_unit_npgr_0864,"drain",GetTriggerUnit())call TriggerSleepAction(4.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Magicheskiy_Generator_Dalaran takes nothing returns nothingset gg_trg_Magicheskiy_Generator_Dalaran=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(gg_trg_Magicheskiy_Generator_Dalaran,450.00,gg_unit_npgr_0864)
call TriggerAddCondition(gg_trg_Magicheskiy_Generator_Dalaran,Condition(function Trig_Magicheskiy_Generator_Dalaran_Conditions))
call TriggerAddAction(gg_trg_Magicheskiy_Generator_Dalaran,function Trig_Magicheskiy_Generator_Dalaran_Actions)endfunctionfunction Trig_Magicheskiy_Generator_Active_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Генератор активирован!|r")call DestructableRestoreLife(gg_dest_DTlv_13796,10.00,true)call SetUnitOwner(gg_unit_npgr_0864,Player(9),true)endfunctionfunction InitTrig_Magicheskiy_Generator_Active takes nothing returns nothing
set gg_trg_Magicheskiy_Generator_Active=CreateTrigger()call TriggerRegisterUnitManaEvent(gg_trg_Magicheskiy_Generator_Active,gg_unit_nbse_0819,EQUAL,100000.00)
call TriggerAddAction(gg_trg_Magicheskiy_Generator_Active,function Trig_Magicheskiy_Generator_Active_Actions)endfunctionfunction Trig_Richag_Nestabilniy_Portal_Func006Func001C takes nothing returns booleanif(not(udg_Nestabilniy_Portal[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Richag_Nestabilniy_Portal_Func006C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Richag_Nestabilniy_Portal_Func007Func001C takes nothing returns booleanif(not(udg_Nestabilniy_Portal[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Richag_Nestabilniy_Portal_Func007C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Richag_Nestabilniy_Portal_Func008Func001C takes nothing returns booleanif(not(udg_Nestabilniy_Portal[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Richag_Nestabilniy_Portal_Func008C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Richag_Nestabilniy_Portal_Func009Func001C takes nothing returns booleanif(not(udg_Nestabilniy_Portal[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Richag_Nestabilniy_Portal_Func009C takes nothing returns booleanif(not(udg_Random==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Richag_Nestabilniy_Portal_Func010Func001C takes nothing returns booleanif(not(udg_Nestabilniy_Portal[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Richag_Nestabilniy_Portal_Func010C takes nothing returns booleanif(not(udg_Random==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Richag_Nestabilniy_Portal_Func011Func001C takes nothing returns booleanif(not(udg_Nestabilniy_Portal[6]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Richag_Nestabilniy_Portal_Func011C takes nothing returns booleanif(not(udg_Random==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Richag_Nestabilniy_Portal_Func012Func001C takes nothing returns booleanif(not(udg_Nestabilniy_Portal[7]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Richag_Nestabilniy_Portal_Func012C takes nothing returns booleanif(not(udg_Random==7))thenreturn false
endifreturn trueendfunctionfunction Trig_Richag_Nestabilniy_Portal_Actions takes nothing returns nothingcall SetUnitOwner(gg_unit_npgr_0864,Player(11),true)
call SetUnitManaBJ(gg_unit_npgr_0864,0)call CreateNUnitsAtLoc(1,'hprt',Player(PLAYER_NEUTRAL_PASSIVE),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call SetUnitAnimation(GetLastCreatedUnit(),"birth")set udg_Random=GetRandomInt(1,7)
if(Trig_Richag_Nestabilniy_Portal_Func006C())thenif(Trig_Richag_Nestabilniy_Portal_Func006Func001C())then
set udg_Nestabilniy_Portal[1]=truecall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Голос из портала:|r Капитан зерги берут нас в кольцо.")call TriggerSleepAction(2.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Голос из портала:|r Отступаем.")call TriggerSleepAction(2.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Голос из портала:|r Вы тоже это видите? Это технология протосов?")call TriggerSleepAction(2.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Голос из портала:|r Нет времени выяснять идем.")call TriggerSleepAction(2.00)call CreateNUnitsAtLoc(1,'zmar',Player(9),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call SetUnitColor(GetLastCreatedUnit(),PLAYER_COLOR_GREEN)call IssuePointOrderLoc(GetLastCreatedUnit(),"smart",GetRandomLocInRect(gg_rct_Portal_Beg))call TriggerSleepAction(2.00)call CreateNUnitsAtLoc(1,'zmar',Player(9),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call SetUnitColor(GetLastCreatedUnit(),PLAYER_COLOR_YELLOW)call IssuePointOrderLoc(GetLastCreatedUnit(),"smart",GetRandomLocInRect(gg_rct_Portal_Beg))call TriggerSleepAction(2.00)call CreateNUnitsAtLoc(1,'zmar',Player(9),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call SetUnitColor(GetLastCreatedUnit(),PLAYER_COLOR_RED)
call IssuePointOrderLoc(GetLastCreatedUnit(),"smart",GetRandomLocInRect(gg_rct_Portal_Beg))call TriggerSleepAction(2.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Десантник:|r Занять позицию")else
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call TriggerSleepAction(2)call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call TriggerSleepAction(2)call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call TriggerSleepAction(2)call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call TriggerSleepAction(2)call CreateNUnitsAtLoc(1,'zhyd',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call TriggerSleepAction(2)call CreateNUnitsAtLoc(1,'zhyd',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call TriggerSleepAction(2)call CreateNUnitsAtLoc(1,'zhyd',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call CreateNUnitsAtLoc(1,'zhyd',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call CreateNUnitsAtLoc(1,'zhyd',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
endifelse
endifif(Trig_Richag_Nestabilniy_Portal_Func007C())thenif(Trig_Richag_Nestabilniy_Portal_Func007Func001C())then
set udg_Nestabilniy_Portal[2]=truecall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Голос из портала:|r Танос завладел завладел перчаткой бесконечности, но мы можем остановить его.")
call TriggerSleepAction(2)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Голос из портала:|r Капитан нет!")call TriggerSleepAction(2)call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Слышны звуки разрушения.|r")
call TriggerSleepAction(8.00)call CreateItemLoc('I0DK',GetRectCenter(gg_rct_Nestabilniy_Portal))else
call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Пустота, кажется этот мир уничтожен.|r")endifelse
endifif(Trig_Richag_Nestabilniy_Portal_Func008C())thenif(Trig_Richag_Nestabilniy_Portal_Func008Func001C())then
set udg_Nestabilniy_Portal[3]=truecall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Голос из портала:|r Циско это ты открыл его?")call TriggerSleepAction(2)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Голос из портала:|r Нет это точно был не я.")call TriggerSleepAction(2)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Голос из портала:|r Как думаешь что там?")call TriggerSleepAction(2)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Голос из портала:|r Явно ничего хорошего. Горилы телепаты, сухопутные акул или огромные динозавры.")call TriggerSleepAction(2)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Голос из портала:|r Давай лучше закроем его.")else
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Голос из портала:|r Бари он снова открылся.")call TriggerSleepAction(2)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Голос из портала:|r Кто-то явно хочет к нам попасть.")
call TriggerSleepAction(2)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Голос из портала:|r Лучше давай закроем его.")endifelse
endifif(Trig_Richag_Nestabilniy_Portal_Func009C())thenif(Trig_Richag_Nestabilniy_Portal_Func009Func001C())then
set udg_Nestabilniy_Portal[4]=truecall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Голос из портала:|r Агрххххх.")
call CreateNUnitsAtLoc(1,'zcso',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call CreateNUnitsAtLoc(1,'zcso',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call TriggerSleepAction(4.00)call CreateNUnitsAtLoc(1,'zcso',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call CreateNUnitsAtLoc(1,'zcso',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call CreateNUnitsAtLoc(1,'zcso',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call TriggerSleepAction(4.00)call CreateNUnitsAtLoc(1,'zcso',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call CreateNUnitsAtLoc(1,'zcso',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call CreateNUnitsAtLoc(1,'zcso',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
else
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Голос из портала:|r Орда победит.")call CreateNUnitsAtLoc(1,'zcso',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call CreateNUnitsAtLoc(1,'zcso',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call CreateNUnitsAtLoc(1,'zcso',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call TriggerSleepAction(8.00)call CreateNUnitsAtLoc(1,'zcso',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call CreateNUnitsAtLoc(1,'zcso',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call CreateNUnitsAtLoc(1,'zcso',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
call CreateNUnitsAtLoc(1,'hrtt',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Portal_Beg))
endifelse
endifif(Trig_Richag_Nestabilniy_Portal_Func010C())thenif(Trig_Richag_Nestabilniy_Portal_Func010Func001C())then
set udg_Nestabilniy_Portal[5]=truecall CreateNUnitsAtLoc(1,'nshf',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)
else
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Голос из портала:|r Куда делась моя овца?")endifelse
endifif(Trig_Richag_Nestabilniy_Portal_Func011C())thenif(Trig_Richag_Nestabilniy_Portal_Func011Func001C())then
set udg_Nestabilniy_Portal[6]=truecall CreateNUnitsAtLoc(1,'u006',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call TriggerSleepAction(3.00)call CreateNUnitsAtLoc(1,'u01B',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call TriggerSleepAction(3.00)call CreateNUnitsAtLoc(1,'u005',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call TriggerSleepAction(3.00)call CreateNUnitsAtLoc(1,'nsat',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call TriggerSleepAction(3.00)call CreateNUnitsAtLoc(1,'nsat',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)else
call CreateNUnitsAtLoc(1,'u01B',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u01B',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u01B',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u01B',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call TriggerSleepAction(8.00)call CreateNUnitsAtLoc(1,'u01B',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u01B',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u01B',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u01B',Player(11),GetRectCenter(gg_rct_Nestabilniy_Portal),bj_UNIT_FACING)endifelse
endifif(Trig_Richag_Nestabilniy_Portal_Func012C())thenif(Trig_Richag_Nestabilniy_Portal_Func012Func001C())then
set udg_Nestabilniy_Portal[7]=truecall DisplayTextToForce(GetPlayersAll(),"|c00FF0000Нагрузка на генератор.|r")
call TriggerSleepAction(2)call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_npgr_0864),"Abilities\\Spells\\Demon\\DemonBoltImpact\\DemonBoltImpact.mdl")call SetUnitLifePercentBJ(gg_unit_npgr_0864,50.00)else
call DisplayTextToForce(GetPlayersAll(),"|c00FF0000Перегрузка генератора!|r")call KillUnit(gg_unit_npgr_0864)
endifelse
endifendfunctionfunction InitTrig_Richag_Nestabilniy_Portal takes nothing returns nothingset gg_trg_Richag_Nestabilniy_Portal=CreateTrigger()
call TriggerRegisterDeathEvent(gg_trg_Richag_Nestabilniy_Portal,gg_dest_DTlv_13796)call TriggerAddAction(gg_trg_Richag_Nestabilniy_Portal,function Trig_Richag_Nestabilniy_Portal_Actions)endfunctionfunction Trig_Silvana_Actions takes nothing returns nothingcall TriggerSleepAction(8.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Сильвана была поднята из мертвых.|r")
call SetUnitPositionLoc(gg_unit_Usyl_0820,GetRectCenter(gg_rct_Silvana))
call IssuePointOrderLoc(gg_unit_Usyl_0820,"patrol",GetRectCenter(gg_rct_Silvana))call TriggerSleepAction(2)call IssuePointOrderLoc(gg_unit_Usyl_0820,"patrol",GetRectCenter(gg_rct_Silvana))call TriggerSleepAction(2)call IssuePointOrderLoc(gg_unit_Usyl_0820,"patrol",GetRectCenter(gg_rct_Silvana))endfunctionfunction InitTrig_Silvana takes nothing returns nothingset gg_trg_Silvana=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Silvana,gg_unit_Hvwd_0807,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_Silvana,function Trig_Silvana_Actions)endfunctionfunction Trig_Silvana_2_Conditions takes nothing returns boolean
if(not(GetUnitLifePercent(GetAttackedUnitBJ())<=25.00))thenreturn false
endifif(not(GetUnitTypeId(GetAttackedUnitBJ())=='Usyl'))thenreturn false
endifreturn trueendfunctionfunction Trig_Silvana_2_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_Usyl_0820),"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")call CreateNUnitsAtLoc(1,'uban',Player(10),GetRandomLocInRect(gg_rct_Silvana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'uban',Player(10),GetRandomLocInRect(gg_rct_Silvana),bj_UNIT_FACING)call TriggerSleepAction(1.00)call SetUnitPositionLoc(gg_unit_Usyl_0820,GetRectCenter(gg_rct_Silvana_2))call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_Usyl_0820),"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")call TriggerSleepAction(1.00)call IssueImmediateOrder(gg_unit_Usyl_0820,"holdposition")call TriggerSleepAction(1.00)call IssueImmediateOrder(gg_unit_Usyl_0820,"holdposition")endfunctionfunction InitTrig_Silvana_2 takes nothing returns nothingset gg_trg_Silvana_2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Silvana_2,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Silvana_2,Condition(function Trig_Silvana_2_Conditions))
call TriggerAddAction(gg_trg_Silvana_2,function Trig_Silvana_2_Actions)endfunctionfunction Trig_Artes_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Artes_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'oli2')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Artes_Actions takes nothing returns nothingif(Trig_Artes_Func001C())thencall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Артас:|r Эй, что у тебя за меч?
Отдай мне его.")else
call DisableTrigger(GetTriggeringTrigger())call PlaySoundOnUnitBJ(gg_snd_ArthasPissed2,100,gg_unit_Hhkl_0822)call TriggerSleepAction(5.00)call EnableTrigger(GetTriggeringTrigger())endifendfunctionfunction InitTrig_Artes takes nothing returns nothingset gg_trg_Artes=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(gg_trg_Artes,256,gg_unit_Hhkl_0822)call TriggerAddCondition(gg_trg_Artes,Condition(function Trig_Artes_Conditions))
call TriggerAddAction(gg_trg_Artes,function Trig_Artes_Actions)endfunctionfunction Trig_Artas_Frostmorn_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='Hhkl'))then
return false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'oli2')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Artas_Frostmorn_Func007C takes nothing returns boolean
if(not(IsUnitAliveBJ(gg_unit_Hpal_0257)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Artas_Frostmorn_Actions takes nothing returns nothingcall CreateItemLoc('rhe2',GetUnitLoc(gg_unit_Hhkl_0822))
call PlaySoundOnUnitBJ(gg_snd_ArthasPissed7,100,gg_unit_Harf_0823)call SetUnitPositionLoc(gg_unit_Harf_0823,GetUnitLoc(gg_unit_Hhkl_0822))
call RemoveUnit(gg_unit_Hhkl_0822)call SetUnitOwner(gg_unit_Harf_0823,Player(9),false)
call TriggerSleepAction(2)if(Trig_Artas_Frostmorn_Func007C())thencall IssueTargetOrder(gg_unit_Harf_0823,"attack",gg_unit_Hpal_0257)else
call AddSpecialEffectTargetUnitBJ("origin",gg_unit_Harf_0823,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl")call SetUnitAnimation(gg_unit_Harf_0823,"spell")
call TriggerSleepAction(2)call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(gg_unit_Harf_0823,GetRectCenter(gg_rct_Artas_Visadka))call SetUnitOwner(gg_unit_Harf_0823,Player(11),false)call TriggerSleepAction(2)call IssuePointOrderLoc(gg_unit_Harf_0823,"attack",GetRectCenter(gg_rct_Povelitel_tmy))endifcall TriggerSleepAction(2)call PlaySoundOnUnitBJ(gg_snd_EvilArthasPissed3,100,gg_unit_Harf_0823)endfunctionfunction InitTrig_Artas_Frostmorn takes nothing returns nothingset gg_trg_Artas_Frostmorn=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Artas_Frostmorn,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Artas_Frostmorn,Condition(function Trig_Artas_Frostmorn_Conditions))
call TriggerAddAction(gg_trg_Artas_Frostmorn,function Trig_Artas_Frostmorn_Actions)endfunctionfunction Trig_Uron_generatoru_Actions takes nothing returns nothingcall UnitDamageTargetBJ(gg_unit_Nkjx_0811,gg_unit_h007_0208,I2R(udg_Uron_Generatoru),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_FORCE)set udg_Uron_Generatoru=(udg_Uron_Generatoru+1)call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_h007_0208),"Abilities\\Spells\\Demon\\RainOfFire\\RainOfFireTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
endfunctionfunction InitTrig_Uron_generatoru takes nothing returns nothingset gg_trg_Uron_generatoru=CreateTrigger()call DisableTrigger(gg_trg_Uron_generatoru)call TriggerRegisterTimerEventPeriodic(gg_trg_Uron_generatoru,10.00)
call TriggerAddAction(gg_trg_Uron_generatoru,function Trig_Uron_generatoru_Actions)endfunctionfunction Trig_Victory_Func001Func003C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Victory_Func001Func004C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Victory_Func001Func005C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Victory_Func001C takes nothing returns boolean
if(not(udg_Priz_Victory==1))then
return false
endifreturn trueendfunctionfunction Trig_Victory_Func002Func003C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Victory_Func002Func004C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Victory_Func002Func005C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Victory_Func002C takes nothing returns boolean
if(not(udg_Priz_Victory==2))then
return false
endifreturn trueendfunctionfunction Trig_Victory_Func003Func003C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Victory_Func003Func004C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Victory_Func003Func005C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Victory_Func003C takes nothing returns boolean
if(not(udg_Priz_Victory==3))then
return false
endifreturn trueendfunctionfunction Trig_Victory_Func011C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING))thenreturn false
endifif(not(GetPlayerController(Player(0))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Victory_Func012C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING))thenreturn false
endifif(not(GetPlayerController(Player(1))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Victory_Func013C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING))thenreturn false
endifif(not(GetPlayerController(Player(2))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Victory_Func014C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING))thenreturn false
endifif(not(GetPlayerController(Player(3))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Victory_Func015C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING))thenreturn false
endifif(not(GetPlayerController(Player(4))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Victory_Func016C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_PLAYING))thenreturn false
endifif(not(GetPlayerController(Player(5))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Victory_Actions takes nothing returns nothingif(Trig_Victory_Func001C())thencall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Поздравляю! Вы прошли игру на обычном уровне сложности вам будет выдана случайная обычная награда.|r")
set udg_Random=GetRandomInt(1,3)
if(Trig_Victory_Func001Func003C())thencall DisplayTextToForce(GetPlayersAll(),"Пароль:
|c00FF0000-uchenik|r 
|c0000FFFFПовышает навыки всех игроков на 1 ед.|r
|c0000FF00Для активации бонуса введите пароль в начале игры.|r")else
endifif(Trig_Victory_Func001Func004C())thencall DisplayTextToForce(GetPlayersAll(),"Пароль:
|c00FF0000-gold_coin|r 
|c0000FFFFПовышает золото всех игроков на 500 ед.|r
|c0000FF00Для активации бонуса введите пароль в начале игры.|r")else
endifif(Trig_Victory_Func001Func005C())thencall DisplayTextToForce(GetPlayersAll(),"Пароль:
|c00FF0000-pehotinec|r 
|c0000FFFFПовышает характеристики всех игроков на 1 ед.|r
|c0000FF00Для активации бонуса введите пароль в начале игры.|r")
else
endifelse
endifif(Trig_Victory_Func002C())thencall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Поздравляю! Вы прошли игру на трудном уровне сложности вам будет выдана случайная награда.|r")set udg_Random=GetRandomInt(1,3)
if(Trig_Victory_Func002Func003C())thencall DisplayTextToForce(GetPlayersAll(),"Пароль:
|c00FF0000-adept|r 
|c0000FFFFПовышает навыки всех игроков на 2 ед.|r
|c0000FF00Для активации бонуса введите пароль в начале игры.|r")
else
endifif(Trig_Victory_Func002Func004C())thencall DisplayTextToForce(GetPlayersAll(),"Пароль:
|c00FF0000-gold_purse|r 
|c0000FFFFПовышает золото всех игроков на 1000 ед.|r
|c0000FF00Для активации бонуса введите пароль в начале игры.|r")
else
endifif(Trig_Victory_Func002Func005C())thencall DisplayTextToForce(GetPlayersAll(),"Пароль:
|c00FF0000-strag|r 
|c0000FFFFПовышает характеристики всех игроков на 3 ед.|r
|c0000FF00Для активации бонуса введите пароль в начале игры.|r")
else
endifelse
endifif(Trig_Victory_Func003C())thencall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Поздравляю! Вы прошли игру на кошмарном уровне сложности вам будет выдана случайная легендарная награда.|r")
set udg_Random=GetRandomInt(1,3)
if(Trig_Victory_Func003Func003C())thencall DisplayTextToForce(GetPlayersAll(),"Пароль:
|c00FF0000-magistr|r 
|c0000FFFFПовышает навыки всех игроков на 3 ед.|r
|c0000FF00Для активации бонуса введите пароль в начале игры.|r")else
endifif(Trig_Victory_Func003Func004C())thencall DisplayTextToForce(GetPlayersAll(),"Пароль:
|c00FF0000-gold_bag|r 
|c0000FFFFПовышает золото всех игроков на 1500 ед.|r
|c0000FF00Для активации бонуса введите пароль в начале игры.|r")else
endifif(Trig_Victory_Func003Func005C())thencall DisplayTextToForce(GetPlayersAll(),"Пароль:
|c00FF0000-hranitel|r 
|c0000FFFFПовышает характеристики всех игроков на 5 ед.|r
|c0000FF00Для активации бонуса введите пароль в начале игры.|r")else
endifelse
endifcall TriggerSleepAction(90.00)call DialogClear(udg_Dialog_victory)
call DialogSetMessageBJ(udg_Dialog_victory,"|c00FFFF00Победа!|r")call DialogAddButtonBJ(udg_Dialog_victory,"Выйти")set udg_Button_victory[1]=GetLastCreatedButtonBJ()call DialogAddButtonBJ(udg_Dialog_victory,"|c00FFFF00Продолжить|r")set udg_Button_victory[2]=GetLastCreatedButtonBJ()if(Trig_Victory_Func011C())thencall DialogDisplayBJ(true,udg_Dialog_victory,Player(0))returnelse
endifif(Trig_Victory_Func012C())thencall DialogDisplayBJ(true,udg_Dialog_victory,Player(1))returnelse
endifif(Trig_Victory_Func013C())thencall DialogDisplayBJ(true,udg_Dialog_victory,Player(2))returnelse
endifif(Trig_Victory_Func014C())thencall DialogDisplayBJ(true,udg_Dialog_victory,Player(3))returnelse
endifif(Trig_Victory_Func015C())thencall DialogDisplayBJ(true,udg_Dialog_victory,Player(4))returnelse
endifif(Trig_Victory_Func016C())thencall DialogDisplayBJ(true,udg_Dialog_victory,Player(5))returnelse
endifendfunctionfunction InitTrig_Victory takes nothing returns nothingset gg_trg_Victory=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Victory,gg_unit_Utic_0214,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_Victory,function Trig_Victory_Actions)endfunctionfunction Trig_Victory_vibor_Func001C takes nothing returns booleanif(not(GetClickedButtonBJ()==udg_Button_victory[1]))then
return false
endifreturn trueendfunctionfunction Trig_Victory_vibor_Func002C takes nothing returns booleanif(not(GetClickedButtonBJ()==udg_Button_victory[2]))then
return false
endifreturn trueendfunctionfunction Trig_Victory_vibor_Actions takes nothing returns nothingif(Trig_Victory_vibor_Func001C())thencall CinematicModeBJ(true,GetPlayersAll())call TriggerSleepAction(2)call TransmissionFromUnitWithNameBJ(GetPlayersAll(),gg_unit_Nkjx_0811,"Саргерос",null,"Ничтожество ты думаешь ты победил меня. Если я не могу поработить этот мир я его уничтожу.",bj_TIMETYPE_ADD,7.00,true)call TriggerSleepAction(7.00)call CinematicModeBJ(false,GetPlayersAll())else
endifif(Trig_Victory_vibor_Func002C())thencall CinematicModeBJ(true,GetPlayersAll())call TriggerSleepAction(2)call TransmissionFromUnitWithNameBJ(GetPlayersAll(),gg_unit_Nkjx_0811,"Саргерос",null,"Если я не могу поработить этот мир я его уничтожу.",bj_TIMETYPE_ADD,7.00,true)call TriggerSleepAction(7.00)call CinematicModeBJ(false,GetPlayersAll())else
endifcall CinematicModeBJ(false,GetPlayersAll())call DialogDisplayBJ(false,udg_Dialog_victory,Player(0))
call DialogDisplayBJ(false,udg_Dialog_victory,Player(1))
call DialogDisplayBJ(false,udg_Dialog_victory,Player(2))
call DialogDisplayBJ(false,udg_Dialog_victory,Player(3))
call DialogDisplayBJ(false,udg_Dialog_victory,Player(4))
call DialogDisplayBJ(false,udg_Dialog_victory,Player(5))
call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Portal_Sargerosa),"doodads\\cinematic\\ShimmeringPortal\\ShimmeringPortal.mdl")call EnableTrigger(gg_trg_Portal_Sargeros)call EnableTrigger(gg_trg_Uron_generatoru)call TriggerSleepAction(6.00)call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Уничтожте Саргероса пока он не уничтожил генератор!|r
|c00FFFF00Портал открыт!|r")call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Portal_Sargerosa),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,0.00)
call SetUnitOwner(gg_unit_h027_0812,Player(11),true)
call SetUnitInvulnerable(gg_unit_h027_0812,false)endfunctionfunction InitTrig_Victory_vibor takes nothing returns nothingset gg_trg_Victory_vibor=CreateTrigger()
call TriggerRegisterDialogEventBJ(gg_trg_Victory_vibor,udg_Dialog_victory)call TriggerAddAction(gg_trg_Victory_vibor,function Trig_Victory_vibor_Actions)endfunctionfunction Trig_Nerub_probugdenie_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c000F6145Неруб пробудился.|r")call SetUnitPositionLoc(gg_unit_Uanb_0282,GetUnitLoc(GetDyingUnit()))endfunctionfunction InitTrig_Nerub_probugdenie takes nothing returns nothingset gg_trg_Nerub_probugdenie=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_Nerub_probugdenie,gg_unit_h00B_0292,EVENT_UNIT_DEATH)call TriggerAddAction(gg_trg_Nerub_probugdenie,function Trig_Nerub_probugdenie_Actions)endfunctionfunction Trig_Sargeros_Actions takes nothing returns nothing
call IssuePointOrderLoc(gg_unit_Utic_0214,"attack",GetUnitLoc(gg_unit_h007_0208))endfunctionfunction InitTrig_Sargeros takes nothing returns nothing
set gg_trg_Sargeros=CreateTrigger()call DisableTrigger(gg_trg_Sargeros)
call TriggerRegisterTimerEventPeriodic(gg_trg_Sargeros,5.00)
call TriggerAddAction(gg_trg_Sargeros,function Trig_Sargeros_Actions)endfunctionfunction Trig_Manoroh_Conditions takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_Nman_0044)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Manoroh_Actions takes nothing returns nothingcall IssuePointOrderLoc(gg_unit_Nman_0044,"attack",GetUnitLoc(gg_unit_h007_0208))endfunctionfunction InitTrig_Manoroh takes nothing returns nothingset gg_trg_Manoroh=CreateTrigger()call DisableTrigger(gg_trg_Manoroh)call TriggerRegisterTimerEventPeriodic(gg_trg_Manoroh,5.00)call TriggerAddCondition(gg_trg_Manoroh,Condition(function Trig_Manoroh_Conditions))
call TriggerAddAction(gg_trg_Manoroh,function Trig_Manoroh_Actions)endfunctionfunction Trig_Nerub_Conditions takes nothing returns boolean
if(not(IsUnitAliveBJ(gg_unit_Uanb_0282)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Nerub_Actions takes nothing returns nothingcall IssuePointOrderLoc(gg_unit_Uanb_0282,"attack",GetUnitLoc(gg_unit_h007_0208))endfunctionfunction InitTrig_Nerub takes nothing returns nothingset gg_trg_Nerub=CreateTrigger()
call DisableTrigger(gg_trg_Nerub)call TriggerRegisterTimerEventPeriodic(gg_trg_Nerub,5.00)call TriggerAddCondition(gg_trg_Nerub,Condition(function Trig_Nerub_Conditions))
call TriggerAddAction(gg_trg_Nerub,function Trig_Nerub_Actions)endfunctionfunction Trig_Komand_Attacnk_Actions takes nothing returns nothingcall GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'ugho'),"attack",GetUnitLoc(gg_unit_h007_0208))
call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'ucry'),"attack",GetUnitLoc(gg_unit_h007_0208))
call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'unec'),"attack",GetUnitLoc(gg_unit_h007_0208))
call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'uabo'),"attack",GetUnitLoc(gg_unit_h007_0208))
call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'nnwl'),"attack",GetUnitLoc(gg_unit_h007_0208))
call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'n00A'),"attack",GetUnitLoc(gg_unit_h007_0208))
call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'ngh2'),"attack",GetUnitLoc(gg_unit_h007_0208))
call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'u005'),"attack",GetUnitLoc(gg_unit_h007_0208))
call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'ufro'),"attack",GetUnitLoc(gg_unit_h007_0208))
call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'u006'),"attack",GetUnitLoc(gg_unit_h007_0208))
call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'nfgl'),"attack",GetUnitLoc(gg_unit_h007_0208))
endfunctionfunction InitTrig_Komand_Attacnk takes nothing returns nothingset gg_trg_Komand_Attacnk=CreateTrigger()call DisableTrigger(gg_trg_Komand_Attacnk)call TriggerRegisterTimerEventPeriodic(gg_trg_Komand_Attacnk,60.00)call TriggerAddAction(gg_trg_Komand_Attacnk,function Trig_Komand_Attacnk_Actions)endfunctionfunction Trig_Attack_1_Actions takes nothing returns nothing
call SetUnitPositionLoc(gg_unit_Nman_0044,GetUnitLoc(gg_unit_ncop_0533))
call EnableTrigger(gg_trg_Komand_Attacnk)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 1/30")call CreateNUnitsAtLoc(6,'u002',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nska',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'u004',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call IssuePointOrderLoc(gg_unit_nskg_0263,"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'u002',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nska',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'u004',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 2/30")call CreateNUnitsAtLoc(6,'u002',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nska',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'u004',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'nsko',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nska',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'u004',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call IssuePointOrderLoc(gg_unit_nsoc_0264,"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 3/30")call CreateNUnitsAtLoc(6,'u002',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nska',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'u004',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'nsko',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nskf',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'u004',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call IssuePointOrderLoc(gg_unit_n00L_0531,"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 4/30")call CreateNUnitsAtLoc(6,'u002',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nska',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'u004',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'nsko',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nskf',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'unec',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call IssuePointOrderLoc(gg_unit_u00P_0532,"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 5/30")call CreateNUnitsAtLoc(6,'nsko',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nska',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'u004',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call CreateNUnitsAtLoc(1,'nenc',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(2)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'nsko',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nskf',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'unec',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 6/30")call CreateNUnitsAtLoc(6,'nsko',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nskf',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'u004',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call CreateNUnitsAtLoc(1,'nsbm',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(2)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'nsko',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nskf',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'unec',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 7/30")call CreateNUnitsAtLoc(6,'nsko',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nskf',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'unec',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call CreateNUnitsAtLoc(1,'ndtt',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(2)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'nsko',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nskf',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'unec',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 8/30")call CreateNUnitsAtLoc(6,'nsko',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nskf',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'unec',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call CreateNUnitsAtLoc(1,'u00Z',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(2)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'ugho',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nskf',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'unec',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 9/30")call CreateNUnitsAtLoc(6,'nsko',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nskf',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'unec',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call CreateNUnitsAtLoc(1,'u010',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(2)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'ugho',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'ucry',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'unec',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 10/30")
call CreateNUnitsAtLoc(6,'nsko',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nskf',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'unec',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call CreateNUnitsAtLoc(1,'u011',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(2)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'ugho',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'ucry',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uban',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(40.00)call ConditionalTriggerExecute(gg_trg_Attack_2)endfunctionfunction InitTrig_Attack_1 takes nothing returns nothing
set gg_trg_Attack_1=CreateTrigger()call DisableTrigger(gg_trg_Attack_1)
call TriggerRegisterTimerEventSingle(gg_trg_Attack_1,60.00)call TriggerAddAction(gg_trg_Attack_1,function Trig_Attack_1_Actions)endfunctionfunction Trig_Attack_2_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 11/30")
call CreateNUnitsAtLoc(6,'ugho',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nskf',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'unec',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call CreateNUnitsAtLoc(1,'umtw',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(2)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'ugho',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'ucry',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uban',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 12/30")
call CreateNUnitsAtLoc(6,'ugho',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'ucry',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'unec',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'ugho',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'ucry',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uban',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 13/30")
call CreateNUnitsAtLoc(6,'ugho',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'ucry',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uban',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'ugho',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'ucry',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uban',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 14/30")
call CreateNUnitsAtLoc(6,'ugho',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'ucry',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uban',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'uabo',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'ucry',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uban',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 15/30")
call CreateNUnitsAtLoc(6,'ugho',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'ucry',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uban',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'uabo',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nnwl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uban',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 16/30")
call CreateNUnitsAtLoc(6,'ugho',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'ucry',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uban',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'uabo',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nnwl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngh2',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 17/30")
call CreateNUnitsAtLoc(6,'uabo',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'ucry',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uban',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'uabo',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nnwl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngh2',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 18/30")
call CreateNUnitsAtLoc(6,'uabo',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nnwl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uban',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'uabo',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nnwl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngh2',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 19/30")
call CreateNUnitsAtLoc(6,'uabo',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nnwl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngh2',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'uabo',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nnwl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngh2',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 20/30")
call CreateNUnitsAtLoc(6,'uabo',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nnwl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngh2',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'nfgl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nnwl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngh2',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(74.00)call ConditionalTriggerExecute(gg_trg_Attack_3)endfunctionfunction InitTrig_Attack_2 takes nothing returns nothing
set gg_trg_Attack_2=CreateTrigger()call DisableTrigger(gg_trg_Attack_2)
call TriggerRegisterTimerEventSingle(gg_trg_Attack_2,60.00)call TriggerAddAction(gg_trg_Attack_2,function Trig_Attack_2_Actions)endfunctionfunction Trig_Attack_3_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 21/30")
call CreateNUnitsAtLoc(6,'uabo',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nnwl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngh2',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'nfgl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'n00A',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngh2',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 22/30")
call CreateNUnitsAtLoc(6,'uabo',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nnwl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngh2',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'nfgl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'n00A',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nrvd',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(84.00)call EnableTrigger(gg_trg_Nerub)
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 23/30")
call CreateNUnitsAtLoc(6,'nfgl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'nnwl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngh2',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'nfgl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'n00A',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nrvd',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(114.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 24/30")
call CreateNUnitsAtLoc(6,'nfgl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'n00A',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngh2',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'nfgl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'n00A',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nrvd',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(84.00)call EnableTrigger(gg_trg_Manoroh)call IssuePointOrderLoc(gg_unit_Nman_0044,"attack",GetUnitLoc(gg_unit_h007_0208))call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 25/30")
call CreateNUnitsAtLoc(6,'nfgl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'n00A',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nrvd',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(6,'nfgl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'n00A',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nrvd',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(126.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 26/30")
call CreateNUnitsAtLoc(6,'nfgl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'n00A',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nrvd',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(3,'u005',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'n00A',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nrvd',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 27/30")
call CreateNUnitsAtLoc(6,'nfgl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'n00A',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nrvd',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(3,'u005',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(2,'ufro',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nrvd',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 28/30")
call CreateNUnitsAtLoc(6,'nfgl',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'n00A',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nrvd',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(3,'u005',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(2,'ufro',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'u006',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 29/30")
call CreateNUnitsAtLoc(3,'u005',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'n00A',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nrvd',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(3,'u005',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(2,'ufro',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'u006',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(64.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Волна:|r 30/30")
call CreateNUnitsAtLoc(3,'u005',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(3,'ufro',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'u006',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call CreateNUnitsAtLoc(3,'u005',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(2,'ufro',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'u006',Player(11),GetRectCenter(gg_rct_Mobs_Attack),bj_UNIT_FACING)
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(128.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Саргерас здесь!|r")call SetUnitPositionLoc(gg_unit_Utic_0214,GetUnitLoc(gg_unit_ndmg_0116))
call EnableTrigger(gg_trg_Sargeros)endfunctionfunction InitTrig_Attack_3 takes nothing returns nothing
set gg_trg_Attack_3=CreateTrigger()call DisableTrigger(gg_trg_Attack_3)
call TriggerRegisterTimerEventSingle(gg_trg_Attack_3,60.00)call TriggerAddAction(gg_trg_Attack_3,function Trig_Attack_3_Actions)endfunctionfunction Trig_Attak_Legion_Conditions takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_usap_0785)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Attak_Legion_Func003C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_usap_0785)==false))then
return false
endifreturn trueendfunctionfunction Trig_Attak_Legion_Func010C takes nothing returns booleanif(not(udg_Chanse==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Attak_Legion_Func011C takes nothing returns booleanif(not(udg_Chanse==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Attak_Legion_Func012C takes nothing returns booleanif(not(udg_Chanse==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Attak_Legion_Func013C takes nothing returns booleanif(not(udg_Chanse==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Attak_Legion_Actions takes nothing returns nothing
call SetUnitAbilityLevelSwapped('A0EN',gg_unit_usap_0785,(GetUnitAbilityLevelSwapped('A0EN',gg_unit_usap_0785)+1))if(Trig_Attak_Legion_Func003C())then
returnelse
endifcall CreateNUnitsAtLoc(2,'nfgb',Player(11),GetRectCenter(gg_rct_Mobs_Attack_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(3,'ndqn',Player(11),GetRectCenter(gg_rct_Mobs_Attack_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'npfm',Player(11),GetRectCenter(gg_rct_Mobs_Attack_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nerw',Player(11),GetRectCenter(gg_rct_Mobs_Attack_2),bj_UNIT_FACING)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))set udg_Chanse=GetRandomInt(1,4)
if(Trig_Attak_Legion_Func010C())then
call CreateNUnitsAtLoc(1,'nfov',Player(11),GetRectCenter(gg_rct_Mobs_Attack_2),bj_UNIT_FACING)else
endifif(Trig_Attak_Legion_Func011C())then
call CreateNUnitsAtLoc(1,'nina',Player(11),GetRectCenter(gg_rct_Mobs_Attack_2),bj_UNIT_FACING)else
endifif(Trig_Attak_Legion_Func012C())then
call CreateNUnitsAtLoc(1,'nerd',Player(11),GetRectCenter(gg_rct_Mobs_Attack_2),bj_UNIT_FACING)else
endifif(Trig_Attak_Legion_Func013C())then
call CreateNUnitsAtLoc(1,'nerd',Player(11),GetRectCenter(gg_rct_Mobs_Attack_2),bj_UNIT_FACING)else
endifcall TriggerSleepAction(15.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))call TriggerSleepAction(15.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Mobs_Attack_2,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))endfunctionfunction InitTrig_Attak_Legion takes nothing returns nothing
set gg_trg_Attak_Legion=CreateTrigger()call DisableTrigger(gg_trg_Attak_Legion)
call TriggerRegisterTimerEventPeriodic(gg_trg_Attak_Legion,120.00)call TriggerAddCondition(gg_trg_Attak_Legion,Condition(function Trig_Attak_Legion_Conditions))call TriggerAddAction(gg_trg_Attak_Legion,function Trig_Attak_Legion_Actions)endfunctionfunction Trig_Sargeros_Vrata_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetUnitPositionLoc(gg_unit_Utic_0214,GetUnitLoc(GetDyingUnit()))call EnableTrigger(gg_trg_Sargeros)endfunctionfunction InitTrig_Sargeros_Vrata takes nothing returns nothingset gg_trg_Sargeros_Vrata=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Sargeros_Vrata,gg_unit_usap_0785,EVENT_UNIT_DEATH)call TriggerAddAction(gg_trg_Sargeros_Vrata,function Trig_Sargeros_Vrata_Actions)endfunctionfunction Trig_Sargeras_armor_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='Utic'))thenreturn false
endifreturn trueendfunctionfunction Trig_Sargeras_armor_Func002C takes nothing returns booleanif(not(udg_Sargeros_armor>=100))then
return false
endifreturn trueendfunctionfunction Trig_Sargeras_armor_Actions takes nothing returns nothingset udg_Sargeros_armor=(udg_Sargeros_armor+1)if(Trig_Sargeras_armor_Func002C())thencall DisableTrigger(GetTriggeringTrigger())call ModifyHeroStat(bj_HEROSTAT_STR,gg_unit_Utic_0214,bj_MODIFYMETHOD_ADD,10)set udg_Sargeros_armor=0
call SetUnitAbilityLevelSwapped('A015',gg_unit_Utic_0214,(GetUnitAbilityLevelSwapped('A015',gg_unit_Utic_0214)+1))call TriggerSleepAction(1.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_Sargeras_armor takes nothing returns nothingset gg_trg_Sargeras_armor=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sargeras_armor,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Sargeras_armor,Condition(function Trig_Sargeras_armor_Conditions))call TriggerAddAction(gg_trg_Sargeras_armor,function Trig_Sargeras_armor_Actions)endfunctionfunction Trig_Sargeras_Golemy_Conditions takes nothing returns booleanif(not(GetUnitLifePercent(GetAttackedUnitBJ())<=75.00))thenreturn false
endifif(not(GetUnitTypeId(GetAttackedUnitBJ())=='Utic'))thenreturn false
endifreturn trueendfunctionfunction Trig_Sargeras_Golemy_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call IssuePointOrderLoc(GetAttackedUnitBJ(),"rainoffire",GetUnitLoc(GetAttacker()))call TriggerSleepAction(20.00)call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'ninf'),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(340.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Sargeras_Golemy takes nothing returns nothingset gg_trg_Sargeras_Golemy=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sargeras_Golemy,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sargeras_Golemy,Condition(function Trig_Sargeras_Golemy_Conditions))
call TriggerAddAction(gg_trg_Sargeras_Golemy,function Trig_Sargeras_Golemy_Actions)endfunctionfunction Trig_Sargeras_Prityagenie_smerty_Conditions takes nothing returns booleanif(not(GetUnitLifePercent(GetAttackedUnitBJ())<=70.00))thenreturn false
endifif(not(GetUnitTypeId(GetAttackedUnitBJ())=='Utic'))thenreturn false
endifreturn trueendfunctionfunction Trig_Sargeras_Prityagenie_smerty_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetUnitInvulnerable(gg_unit_Utic_0214,true)
call SetUnitAnimation(gg_unit_Utic_0214,"Spell")
call TriggerSleepAction(2.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttacker()),"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitAnimation(gg_unit_Utic_0214,"Spell")
call SetUnitPositionLoc(GetAttacker(),GetUnitLoc(gg_unit_Utic_0214))
call AddSpecialEffectLocBJ(GetUnitLoc(GetAttacker()),"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(gg_unit_Utic_0214,GetAttacker(),1500.00,ATTACK_TYPE_MAGIC,DAMAGE_TYPE_DEMOLITION)call TriggerSleepAction(2.00)call SetUnitAnimation(gg_unit_Utic_0214,"Spell")
call CreateNUnitsAtLoc(1,'ucsB',Player(11),GetUnitLoc(gg_unit_Utic_0214),bj_UNIT_FACING)
call IssueTargetOrder(GetLastCreatedUnit(),"attack",GetAttacker())call TriggerSleepAction(2.00)call SetUnitAnimation(gg_unit_Utic_0214,"Spell")
call TriggerSleepAction(2.00)call SetUnitInvulnerable(gg_unit_Utic_0214,false)call TriggerSleepAction(340.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Sargeras_Prityagenie_smerty takes nothing returns nothingset gg_trg_Sargeras_Prityagenie_smerty=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sargeras_Prityagenie_smerty,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sargeras_Prityagenie_smerty,Condition(function Trig_Sargeras_Prityagenie_smerty_Conditions))
call TriggerAddAction(gg_trg_Sargeras_Prityagenie_smerty,function Trig_Sargeras_Prityagenie_smerty_Actions)endfunctionfunction Trig_Sargeras_Zabvenie_Conditions takes nothing returns boolean
if(not(GetUnitLifePercent(GetAttackedUnitBJ())<=60.00))thenreturn false
endifif(not(GetUnitTypeId(GetAttackedUnitBJ())=='Utic'))thenreturn false
endifreturn trueendfunctionfunction Trig_Sargeras_Zabvenie_Actions takes nothing returns nothingcall UnitAddAbilityBJ('A0DW',gg_unit_Utic_0214)call DisplayTextToForce(GetPlayersAll(),"|c00FF0000Саргерас:|r Отправляйся в пустоту.")call DisableTrigger(GetTriggeringTrigger())call SetUnitInvulnerable(gg_unit_Utic_0214,true)
call SetUnitAnimation(gg_unit_Utic_0214,"Spell")
call CreateNUnitsAtLoc(1,'ucry',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call RemoveDestructable(gg_dest_DTrc_1413)call RemoveDestructable(gg_dest_DTrc_0792)call RemoveDestructable(gg_dest_DTrc_1414)call RemoveDestructable(gg_dest_DTrc_1415)call TriggerSleepAction(2.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttacker()),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitAnimation(gg_unit_Utic_0214,"Spell")
call SetUnitPositionLoc(GetAttacker(),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3))call AddSpecialEffectLocBJ(GetUnitLoc(GetAttacker()),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(gg_unit_Utic_0214,GetAttacker(),1500.00,ATTACK_TYPE_MAGIC,DAMAGE_TYPE_DEMOLITION)call TriggerSleepAction(2.00)call SetUnitAnimation(gg_unit_Utic_0214,"Spell")
call TriggerSleepAction(2.00)call SetUnitInvulnerable(gg_unit_Utic_0214,false)call TriggerSleepAction(740.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Sargeras_Zabvenie takes nothing returns nothingset gg_trg_Sargeras_Zabvenie=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Sargeras_Zabvenie,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sargeras_Zabvenie,Condition(function Trig_Sargeras_Zabvenie_Conditions))
call TriggerAddAction(gg_trg_Sargeras_Zabvenie,function Trig_Sargeras_Zabvenie_Actions)endfunctionfunction Trig_Sargeras_Marionetka_Conditions takes nothing returns booleanif(not(GetUnitLifePercent(GetAttackedUnitBJ())<=50.00))thenreturn false
endifif(not(GetUnitTypeId(GetAttackedUnitBJ())=='Utic'))thenreturn false
endifif(not(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sargeras_Marionetka_Func023C takes nothing returns boolean
if(not(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED)>=1))thenreturn false
endifif(not(IsUnitDeadBJ(udg_Hero[1])==true))then
return false
endifreturn trueendfunctionfunction Trig_Sargeras_Marionetka_Func024C takes nothing returns boolean
if(not(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED)>=1))thenreturn false
endifif(not(IsUnitDeadBJ(udg_Hero[2])==true))then
return false
endifreturn trueendfunctionfunction Trig_Sargeras_Marionetka_Func025C takes nothing returns boolean
if(not(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED)>=1))thenreturn false
endifif(not(IsUnitDeadBJ(udg_Hero[3])==true))then
return false
endifreturn trueendfunctionfunction Trig_Sargeras_Marionetka_Func026C takes nothing returns boolean
if(not(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED)>=1))thenreturn false
endifif(not(IsUnitDeadBJ(udg_Hero[4])==true))then
return false
endifreturn trueendfunctionfunction Trig_Sargeras_Marionetka_Func027C takes nothing returns boolean
if(not(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED)>=1))thenreturn false
endifif(not(IsUnitDeadBJ(udg_Hero[5])==true))then
return false
endifreturn trueendfunctionfunction Trig_Sargeras_Marionetka_Func028C takes nothing returns boolean
if(not(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED)>=1))thenreturn false
endifif(not(IsUnitDeadBJ(udg_Hero[6])==true))then
return false
endifreturn trueendfunctionfunction Trig_Sargeras_Marionetka_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FF0000Саргерас:|r Теперь ты принадлежиш мне.")call DisableTrigger(GetTriggeringTrigger())call SetUnitAnimation(gg_unit_Utic_0214,"Spell")
call TriggerSleepAction(2.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttacker()),"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitOwner(GetAttacker(),Player(11),false)call TriggerSleepAction(2.00)call SetUnitAnimation(gg_unit_Utic_0214,"Spell")
call AddSpecialEffectLocBJ(GetUnitLoc(GetAttacker()),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(gg_unit_Utic_0214,GetAttacker(),1500.00,ATTACK_TYPE_MAGIC,DAMAGE_TYPE_DEMOLITION)call TriggerSleepAction(2.00)call SetUnitAnimation(gg_unit_Utic_0214,"Spell")
call TriggerSleepAction(15.00)call SetUnitOwner(udg_Hero[1],Player(0),true)call SetUnitOwner(udg_Hero[2],Player(1),true)call SetUnitOwner(udg_Hero[3],Player(2),true)call SetUnitOwner(udg_Hero[4],Player(3),true)call SetUnitOwner(udg_Hero[5],Player(4),true)call SetUnitOwner(udg_Hero[6],Player(5),true)call TriggerSleepAction(2)if(Trig_Sargeras_Marionetka_Func023C())thencall SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED)-1))call ReviveHeroLoc(udg_Hero[1],GetUnitLoc(gg_unit_ncp3_0330),true)call SetUnitOwner(udg_Hero[1],Player(0),true)else
endifif(Trig_Sargeras_Marionetka_Func024C())thencall SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED)-1))call ReviveHeroLoc(udg_Hero[2],GetUnitLoc(gg_unit_ncp3_0330),true)call SetUnitOwner(udg_Hero[2],Player(1),true)else
endifif(Trig_Sargeras_Marionetka_Func025C())thencall SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED)-1))call ReviveHeroLoc(udg_Hero[3],GetUnitLoc(gg_unit_ncp3_0330),true)call SetUnitOwner(udg_Hero[3],Player(2),true)else
endifif(Trig_Sargeras_Marionetka_Func026C())thencall SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED)-1))call ReviveHeroLoc(udg_Hero[4],GetUnitLoc(gg_unit_ncp3_0330),true)call SetUnitOwner(udg_Hero[4],Player(3),true)else
endifif(Trig_Sargeras_Marionetka_Func027C())thencall SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED)-1))call ReviveHeroLoc(udg_Hero[5],GetUnitLoc(gg_unit_ncp3_0330),true)call SetUnitOwner(udg_Hero[5],Player(4),true)else
endifif(Trig_Sargeras_Marionetka_Func028C())thencall SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED)-1))call ReviveHeroLoc(udg_Hero[6],GetUnitLoc(gg_unit_ncp3_0330),true)call SetUnitOwner(udg_Hero[6],Player(5),true)else
endifendfunctionfunction InitTrig_Sargeras_Marionetka takes nothing returns nothingset gg_trg_Sargeras_Marionetka=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sargeras_Marionetka,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sargeras_Marionetka,Condition(function Trig_Sargeras_Marionetka_Conditions))
call TriggerAddAction(gg_trg_Sargeras_Marionetka,function Trig_Sargeras_Marionetka_Actions)endfunctionfunction Trig_Sargeras_Zdaniya_Conditions takes nothing returns booleanif(not(GetUnitLifePercent(GetAttackedUnitBJ())<=47.00))thenreturn false
endifif(not(GetUnitTypeId(GetAttackedUnitBJ())=='Utic'))thenreturn false
endifif(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_STRUCTURE)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sargeras_Zdaniya_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FF0000Саргерас:|r Эти башни из песка?.")
call DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Orc\\EtherealForm\\SpiritWalkerChange.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetAttackedUnitBJ(),GetAttacker(),15000.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_DEATH)
endfunctionfunction InitTrig_Sargeras_Zdaniya takes nothing returns nothing
set gg_trg_Sargeras_Zdaniya=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sargeras_Zdaniya,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sargeras_Zdaniya,Condition(function Trig_Sargeras_Zdaniya_Conditions))call TriggerAddAction(gg_trg_Sargeras_Zdaniya,function Trig_Sargeras_Zdaniya_Actions)endfunctionfunction Trig_Sargeras_Probit_Shipy_Conditions takes nothing returns boolean
if(not(GetUnitLifePercent(GetAttacker())<=45.00))thenreturn false
endifif(not(GetUnitTypeId(GetAttacker())=='Utic'))thenreturn false
endifif(not(GetUnitAbilityLevelSwapped('AUts',GetAttackedUnitBJ())>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_Sargeras_Probit_Shipy_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FF0000Саргерас:|r Твои шипы причинят боль лишь тебе.")call DisableTrigger(GetTriggeringTrigger())call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),2000.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_DEATH)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Undead\\Impale\\ImpaleMissTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(40.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Sargeras_Probit_Shipy takes nothing returns nothingset gg_trg_Sargeras_Probit_Shipy=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Sargeras_Probit_Shipy,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sargeras_Probit_Shipy,Condition(function Trig_Sargeras_Probit_Shipy_Conditions))
call TriggerAddAction(gg_trg_Sargeras_Probit_Shipy,function Trig_Sargeras_Probit_Shipy_Actions)endfunctionfunction Trig_Sargeras_Sila_off_Conditions takes nothing returns boolean
if(not(GetUnitLifePercent(GetAttacker())<=45.00))thenreturn false
endifif(not(GetUnitTypeId(GetAttacker())=='Utic'))thenreturn false
endifif(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sargeras_Sila_off_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FF0000Саргерас:|r Твоя сила стала твоею слабостью воин.")call DisableTrigger(GetTriggeringTrigger())call UnitAddAbilityBJ('A0DX',GetAttackedUnitBJ())call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\NightElf\\BattleRoar\\RoarCaster.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
endfunctionfunction InitTrig_Sargeras_Sila_off takes nothing returns nothingset gg_trg_Sargeras_Sila_off=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Sargeras_Sila_off,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sargeras_Sila_off,Condition(function Trig_Sargeras_Sila_off_Conditions))
call TriggerAddAction(gg_trg_Sargeras_Sila_off,function Trig_Sargeras_Sila_off_Actions)endfunctionfunction Trig_Sargeras_Lovkost_off_Conditions takes nothing returns booleanif(not(GetUnitLifePercent(GetAttacker())<=40.00))thenreturn false
endifif(not(GetUnitTypeId(GetAttacker())=='Utic'))thenreturn false
endifif(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sargeras_Lovkost_off_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FF0000Саргерас:|r Хватит прятатся, выйди и сразись со мной.")call DisableTrigger(GetTriggeringTrigger())call UnitAddAbilityBJ('A0DY',GetAttackedUnitBJ())call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Units\\NightElf\\Wisp\\WispExplode.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunctionfunction InitTrig_Sargeras_Lovkost_off takes nothing returns nothing
set gg_trg_Sargeras_Lovkost_off=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sargeras_Lovkost_off,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sargeras_Lovkost_off,Condition(function Trig_Sargeras_Lovkost_off_Conditions))call TriggerAddAction(gg_trg_Sargeras_Lovkost_off,function Trig_Sargeras_Lovkost_off_Actions)endfunctionfunction Trig_Sargeras_Mana_off_Conditions takes nothing returns boolean
if(not(GetUnitLifePercent(GetAttacker())<=30.00))thenreturn false
endifif(not(GetUnitTypeId(GetAttacker())=='Utic'))thenreturn false
endifif(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sargeras_Mana_off_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FF0000Саргерас:|r Твой доспех станет твоей могилой.")call DisableTrigger(GetTriggeringTrigger())call UnitAddAbilityBJ('A0E0',GetAttackedUnitBJ())call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Other\\HowlOfTerror\\HowlCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunctionfunction InitTrig_Sargeras_Mana_off takes nothing returns nothingset gg_trg_Sargeras_Mana_off=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Sargeras_Mana_off,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sargeras_Mana_off,Condition(function Trig_Sargeras_Mana_off_Conditions))
call TriggerAddAction(gg_trg_Sargeras_Mana_off,function Trig_Sargeras_Mana_off_Actions)endfunctionfunction Trig_Sargeras_Dalniy_boi_Conditions takes nothing returns booleanif(not(GetUnitLifePercent(GetAttackedUnitBJ())<=25.00))thenreturn false
endifif(not(GetUnitTypeId(GetAttackedUnitBJ())=='Utic'))thenreturn false
endifif(not(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitType(GetAttacker(),UNIT_TYPE_RANGED_ATTACKER)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sargeras_Dalniy_boi_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FF0000Саргерас:|r Ты не уйдеш от меня.")
call DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_Utic_0214),"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")call SetUnitPositionLoc(gg_unit_Utic_0214,GetUnitLoc(GetAttacker()))
call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetAttackedUnitBJ(),GetAttacker(),1500.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_DEATH)call TriggerSleepAction(0.60)call UnitAddAbilityBJ('A01Z',GetTriggerUnit())call UnitAddAbilityBJ('A0BV',GetAttacker())call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_Utic_0214),"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")call TriggerSleepAction(160.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Sargeras_Dalniy_boi takes nothing returns nothingset gg_trg_Sargeras_Dalniy_boi=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sargeras_Dalniy_boi,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sargeras_Dalniy_boi,Condition(function Trig_Sargeras_Dalniy_boi_Conditions))
call TriggerAddAction(gg_trg_Sargeras_Dalniy_boi,function Trig_Sargeras_Dalniy_boi_Actions)endfunctionfunction Trig_Sargeras_Vozrogdenie_Conditions takes nothing returns booleanif(not(GetUnitLifePercent(GetAttackedUnitBJ())<=10.00))thenreturn false
endifif(not(GetUnitTypeId(GetAttackedUnitBJ())=='Utic'))thenreturn false
endifif(not(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sargeras_Vozrogdenie_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FF0000Саргерас:|r Хорошая попытка, но это тебя не спасет.")call DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")call SetUnitLifeBJ(gg_unit_Utic_0214,(GetUnitStateSwap(UNIT_STATE_LIFE,gg_unit_Utic_0214)+(I2R(udg_LevelSlognosaty)*15000.00)))call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(1.60)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")call SetUnitLifeBJ(gg_unit_Utic_0214,(GetUnitStateSwap(UNIT_STATE_LIFE,gg_unit_Utic_0214)+(I2R(udg_LevelSlognosaty)*15000.00)))call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(1.60)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")call SetUnitLifeBJ(gg_unit_Utic_0214,(GetUnitStateSwap(UNIT_STATE_LIFE,gg_unit_Utic_0214)+(I2R(udg_LevelSlognosaty)*15000.00)))call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(1.60)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")call SetUnitLifeBJ(gg_unit_Utic_0214,(GetUnitStateSwap(UNIT_STATE_LIFE,gg_unit_Utic_0214)+(I2R(udg_LevelSlognosaty)*15000.00)))call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(1.60)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")call SetUnitLifeBJ(gg_unit_Utic_0214,(GetUnitStateSwap(UNIT_STATE_LIFE,gg_unit_Utic_0214)+(I2R(udg_LevelSlognosaty)*15000.00)))call DestroyEffect(GetLastCreatedEffectBJ())
endfunctionfunction InitTrig_Sargeras_Vozrogdenie takes nothing returns nothing
set gg_trg_Sargeras_Vozrogdenie=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sargeras_Vozrogdenie,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sargeras_Vozrogdenie,Condition(function Trig_Sargeras_Vozrogdenie_Conditions))call TriggerAddAction(gg_trg_Sargeras_Vozrogdenie,function Trig_Sargeras_Vozrogdenie_Actions)endfunctionfunction Trig_Portal_Sargeros_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Portal_Sargeros_Actions takes nothing returns nothingcall SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Sargeros_Final))endfunctionfunction InitTrig_Portal_Sargeros takes nothing returns nothingset gg_trg_Portal_Sargeros=CreateTrigger()call DisableTrigger(gg_trg_Portal_Sargeros)call TriggerRegisterEnterRectSimple(gg_trg_Portal_Sargeros,gg_rct_Portal_Sargerosa)call TriggerAddCondition(gg_trg_Portal_Sargeros,Condition(function Trig_Portal_Sargeros_Conditions))
call TriggerAddAction(gg_trg_Portal_Sargeros,function Trig_Portal_Sargeros_Actions)endfunctionfunction Trig_Dead_monolit_1_Actions takes nothing returns nothingcall SetUnitOwner(gg_unit_h028_0813,Player(11),true)
call SetUnitInvulnerable(gg_unit_h028_0813,false)endfunctionfunction InitTrig_Dead_monolit_1 takes nothing returns nothingset gg_trg_Dead_monolit_1=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Dead_monolit_1,gg_unit_h027_0812,EVENT_UNIT_DEATH)call TriggerAddAction(gg_trg_Dead_monolit_1,function Trig_Dead_monolit_1_Actions)endfunctionfunction Trig_Dead_monolit_2_Actions takes nothing returns nothingcall SetUnitOwner(gg_unit_h029_0814,Player(11),true)
call SetUnitInvulnerable(gg_unit_h029_0814,false)endfunctionfunction InitTrig_Dead_monolit_2 takes nothing returns nothingset gg_trg_Dead_monolit_2=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Dead_monolit_2,gg_unit_h028_0813,EVENT_UNIT_DEATH)call TriggerAddAction(gg_trg_Dead_monolit_2,function Trig_Dead_monolit_2_Actions)endfunctionfunction Trig_Dead_monolit_3_Actions takes nothing returns nothingcall SetUnitOwner(gg_unit_Nkjx_0811,Player(11),true)
call SetUnitInvulnerable(gg_unit_Nkjx_0811,false)endfunctionfunction InitTrig_Dead_monolit_3 takes nothing returns nothingset gg_trg_Dead_monolit_3=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Dead_monolit_3,gg_unit_h029_0814,EVENT_UNIT_DEATH)call TriggerAddAction(gg_trg_Dead_monolit_3,function Trig_Dead_monolit_3_Actions)endfunctionfunction Trig_Sargeras_OS_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='Nkjx'))thenreturn false
endifreturn trueendfunctionfunction Trig_Sargeras_OS_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call IssuePointOrderLoc(GetAttackedUnitBJ(),"flamestrike",GetUnitLoc(GetAttacker()))
call TriggerSleepAction(15.00)call IssuePointOrderLoc(GetAttackedUnitBJ(),"shockwave",GetUnitLoc(GetAttacker()))call TriggerSleepAction(15.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Sargeras_OS takes nothing returns nothingset gg_trg_Sargeras_OS=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sargeras_OS,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sargeras_OS,Condition(function Trig_Sargeras_OS_Conditions))
call TriggerAddAction(gg_trg_Sargeras_OS,function Trig_Sargeras_OS_Actions)endfunctionfunction Trig_Sargeras_OS_70_Conditions takes nothing returns booleanif(not(GetUnitLifePercent(GetAttackedUnitBJ())<=70.00))thenreturn false
endifif(not(GetUnitTypeId(GetAttackedUnitBJ())=='Nkjx'))thenreturn false
endifreturn trueendfunctionfunction Trig_Sargeras_OS_70_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLocFacingLocBJ(1,'nfpu',Player(11),GetUnitLoc(GetAttacker()),GetUnitLoc(GetTriggerUnit()))call TriggerSleepAction(360.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Sargeras_OS_70 takes nothing returns nothingset gg_trg_Sargeras_OS_70=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sargeras_OS_70,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Sargeras_OS_70,Condition(function Trig_Sargeras_OS_70_Conditions))call TriggerAddAction(gg_trg_Sargeras_OS_70,function Trig_Sargeras_OS_70_Actions)endfunctionfunction Trig_Sargeras_OS_50_Conditions takes nothing returns booleanif(not(GetUnitLifePercent(GetAttackedUnitBJ())<=50.00))thenreturn false
endifif(not(GetUnitTypeId(GetAttackedUnitBJ())=='Nkjx'))thenreturn false
endifreturn trueendfunctionfunction Trig_Sargeras_OS_50_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call IssuePointOrderLoc(GetAttackedUnitBJ(),"volcano",GetUnitLoc(GetAttacker()))
call TriggerSleepAction(240.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Sargeras_OS_50 takes nothing returns nothingset gg_trg_Sargeras_OS_50=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sargeras_OS_50,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Sargeras_OS_50,Condition(function Trig_Sargeras_OS_50_Conditions))call TriggerAddAction(gg_trg_Sargeras_OS_50,function Trig_Sargeras_OS_50_Actions)endfunctionfunction Trig_Sargeras_OS_35_Conditions takes nothing returns booleanif(not(GetUnitLifePercent(GetAttackedUnitBJ())<=50.00))thenreturn false
endifif(not(GetUnitTypeId(GetAttackedUnitBJ())=='Nkjx'))thenreturn false
endifreturn trueendfunctionfunction Trig_Sargeras_OS_35_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'n016',Player(11),GetRandomLocInRect(gg_rct_Sargeros_Final),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n016',Player(11),GetRandomLocInRect(gg_rct_Sargeros_Final),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n016',Player(11),GetRandomLocInRect(gg_rct_Sargeros_Final),bj_UNIT_FACING)
endfunctionfunction InitTrig_Sargeras_OS_35 takes nothing returns nothingset gg_trg_Sargeras_OS_35=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sargeras_OS_35,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Sargeras_OS_35,Condition(function Trig_Sargeras_OS_35_Conditions))call TriggerAddAction(gg_trg_Sargeras_OS_35,function Trig_Sargeras_OS_35_Actions)endfunctionfunction Trig_Sargeras_OS_25_Conditions takes nothing returns booleanif(not(GetUnitLifePercent(GetAttackedUnitBJ())<=25.00))thenreturn false
endifif(not(GetUnitTypeId(GetAttackedUnitBJ())=='Nkjx'))thenreturn false
endifreturn trueendfunctionfunction Trig_Sargeras_OS_25_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLocFacingLocBJ(1,'nbda',Player(11),GetRectCenter(gg_rct_Sargeros_Final),GetUnitLoc(GetTriggerUnit()))
call TriggerSleepAction(360.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Sargeras_OS_25 takes nothing returns nothingset gg_trg_Sargeras_OS_25=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sargeras_OS_25,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Sargeras_OS_25,Condition(function Trig_Sargeras_OS_25_Conditions))call TriggerAddAction(gg_trg_Sargeras_OS_25,function Trig_Sargeras_OS_25_Actions)endfunctionfunction Trig_Dead_Sargeros_Actions takes nothing returns nothingcall TriggerSleepAction(25.00)call CustomVictoryBJ(Player(0),true,true)call CustomVictoryBJ(Player(1),true,true)call CustomVictoryBJ(Player(2),true,true)call CustomVictoryBJ(Player(3),true,true)call CustomVictoryBJ(Player(4),true,true)call CustomVictoryBJ(Player(5),true,true)endfunctionfunction InitTrig_Dead_Sargeros takes nothing returns nothingset gg_trg_Dead_Sargeros=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_Dead_Sargeros,gg_unit_Nkjx_0811,EVENT_UNIT_DEATH)call TriggerAddAction(gg_trg_Dead_Sargeros,function Trig_Dead_Sargeros_Actions)endfunctionfunction Trig_Trall_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='Othr'))thenreturn false
endifreturn trueendfunctionfunction Trig_Trall_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call IssueTargetOrder(GetAttacker(),"thunderbolt",GetAttackedUnitBJ())call TriggerSleepAction(35.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Trall takes nothing returns nothingset gg_trg_Trall=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Trall,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Trall,Condition(function Trig_Trall_Conditions))
call TriggerAddAction(gg_trg_Trall,function Trig_Trall_Actions)endfunctionfunction Trig_Sarina_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='h00G'))thenreturn false
endifreturn trueendfunctionfunction Trig_Sarina_Func003Func008C takes nothing returns booleanif(not(UnitHasBuffBJ(GetAttacker(),'Bslo')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sarina_Func003C takes nothing returns booleanif(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())>=1500.00))thenreturn false
endifreturn trueendfunctionfunction Trig_Sarina_Func004Func004C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Sarina_Func004Func005C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Sarina_Func004Func006C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Sarina_Func004Func007C takes nothing returns booleanif(not(udg_Random==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Sarina_Func004Func008C takes nothing returns booleanif(not(udg_Random==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Sarina_Func004Func009C takes nothing returns booleanif(not(udg_Random==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Sarina_Func004C takes nothing returns booleanif(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())<=900.00))thenreturn false
endifreturn trueendfunctionfunction Trig_Sarina_Actions takes nothing returns nothingcall SetUnitOwner(gg_unit_h00G_0065,Player(6),false)
call DisableTrigger(GetTriggeringTrigger())if(Trig_Sarina_Func003C())thencall IssueTargetOrder(GetAttackedUnitBJ(),"polymorph",GetAttacker())
call TriggerSleepAction(2.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttacker()),"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")call TriggerSleepAction(0.30)call SetUnitPositionLoc(GetAttacker(),GetUnitLoc(GetAttackedUnitBJ()))call AddSpecialEffectLocBJ(GetUnitLoc(GetAttacker()),"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")call TriggerSleepAction(2)if(Trig_Sarina_Func003Func008C())thencall IssueTargetOrder(GetAttackedUnitBJ(),"fingerofdeath",GetAttacker())
else
call IssueTargetOrder(GetAttackedUnitBJ(),"slow",GetAttacker())endifcall TriggerSleepAction(5.00)call EnableTrigger(GetTriggeringTrigger())else
endifif(Trig_Sarina_Func004C())thencall IssueTargetOrder(GetAttackedUnitBJ(),"invisibility",GetAttackedUnitBJ())call TriggerSleepAction(2.00)set udg_Random=GetRandomInt(1,6)
if(Trig_Sarina_Func004Func004C())thencall IssuePointOrderLoc(gg_unit_h00G_0065,"move",GetRandomLocInRect(gg_rct_Zona_8))else
endifif(Trig_Sarina_Func004Func005C())thencall IssuePointOrderLoc(gg_unit_h00G_0065,"move",GetRandomLocInRect(gg_rct_Zona_7))else
endifif(Trig_Sarina_Func004Func006C())thencall IssuePointOrderLoc(gg_unit_h00G_0065,"move",GetRandomLocInRect(gg_rct_Zona_1))else
endifif(Trig_Sarina_Func004Func007C())thencall IssuePointOrderLoc(gg_unit_h00G_0065,"move",GetRandomLocInRect(gg_rct_Zona_2))else
endifif(Trig_Sarina_Func004Func008C())thencall IssuePointOrderLoc(gg_unit_h00G_0065,"move",GetRandomLocInRect(gg_rct_Zona_4))else
endifif(Trig_Sarina_Func004Func009C())thencall IssuePointOrderLoc(gg_unit_h00G_0065,"move",GetRandomLocInRect(gg_rct_Zona_5))else
endifcall AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_narg_0333),"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_narg_0334),"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")call PauseUnitBJ(false,gg_unit_narg_0333)call PauseUnitBJ(false,gg_unit_narg_0334)call SetUnitTimeScalePercent(gg_unit_narg_0333,100)call SetUnitTimeScalePercent(gg_unit_narg_0334,100)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Сарина:|r Познакомся с моими големами.")call TriggerSleepAction(1.00)call SetUnitOwner(gg_unit_narg_0333,Player(6),true)call SetUnitOwner(gg_unit_narg_0334,Player(6),true)else
endifendfunctionfunction InitTrig_Sarina takes nothing returns nothingset gg_trg_Sarina=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sarina,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Sarina,Condition(function Trig_Sarina_Conditions))call TriggerAddAction(gg_trg_Sarina,function Trig_Sarina_Actions)endfunctionfunction Trig_Duh_tmy_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetAttacker())=='nvdg'))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_tmy_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call IssueTargetOrder(GetAttacker(),"thunderbolt",GetAttackedUnitBJ())call TriggerSleepAction(6.00)call SetUnitPositionLoc(gg_unit_nvdg_0335,GetRandomLocInRect(gg_rct_Boqnia))
call TriggerSleepAction(2)call CreateNUnitsAtLoc(1,'u002',Player(11),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl")call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'u002',Player(11),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl")call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'u002',Player(11),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl")call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'u002',Player(11),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl")call SetUnitPositionLoc(gg_unit_nvdg_0335,GetRandomLocInRect(gg_rct_Boqnia))
call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'u002',Player(11),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl")call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'u004',Player(11),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl")call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'u004',Player(11),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl")call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'nska',Player(11),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl")call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'nska',Player(11),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl")call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'nska',Player(11),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl")call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'nska',Player(11),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl")call SetUnitPositionLoc(gg_unit_nvdg_0335,GetRandomLocInRect(gg_rct_Boqnia))
call TriggerSleepAction(8.00)call SetUnitPositionLoc(gg_unit_nvdg_0335,GetRandomLocInRect(gg_rct_Boqnia))
call TriggerSleepAction(16.00)call SetUnitPositionLoc(gg_unit_nvdg_0335,GetRandomLocInRect(gg_rct_Boqnia))
call IssueTargetOrder(GetAttacker(),"rejuvination",GetAttackedUnitBJ())endfunctionfunction InitTrig_Duh_tmy takes nothing returns nothingset gg_trg_Duh_tmy=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Duh_tmy,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Duh_tmy,Condition(function Trig_Duh_tmy_Conditions))
call TriggerAddAction(gg_trg_Duh_tmy,function Trig_Duh_tmy_Actions)endfunctionfunction Trig_Korol_1_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Korol_1_Func018C takes nothing returns boolean
if(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Korol_1_Func019C takes nothing returns boolean
if(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Korol_1_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_H005_0201),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,0.00)call DestroyEffect(udg_Specefect[8])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hpal_0257,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[8]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Приближение тьмы")call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"Поговорить с медивом","В последнее время начало происходить множество странных вещей: гибель скота, ураганы, болезни, фанатики. Необходимо узнать, что происходит. Отправляйся к медиву и разузнай все.","ReplaceableTextures\\CommandButtons\\BTNMedivh.blp")set udg_Zadanie[10]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[10],true)call FlashQuestDialogButton()set udg_Random=GetRandomInt(1,2)
if(Trig_Korol_1_Func018C())thencall EnableTrigger(gg_trg_Mediv_1)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_H005_0201,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[9]=GetLastCreatedEffectBJ()else
endifif(Trig_Korol_1_Func019C())thencall EnableTrigger(gg_trg_Svitok_mediva_1)call CreateItemLoc('I03M',GetUnitLoc(gg_unit_H005_0201))
call CreatePermanentCorpseLocBJ(bj_CORPSETYPE_BONE,'hfoo',Player(9),GetUnitLoc(gg_unit_H005_0201),GetRandomDirectionDeg())call KillUnit(gg_unit_H005_0201)
else
endifendfunctionfunction InitTrig_Korol_1 takes nothing returns nothingset gg_trg_Korol_1=CreateTrigger()call TriggerRegisterUnitInRangeSimple(gg_trg_Korol_1,256,gg_unit_Hpal_0257)call TriggerAddCondition(gg_trg_Korol_1,Condition(function Trig_Korol_1_Conditions))
call TriggerAddAction(gg_trg_Korol_1,function Trig_Korol_1_Actions)endfunctionfunction Trig_Mediv_1_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_H005_0201)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mediv_1_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetUnitAnimation(gg_unit_H005_0201,"spell")
call DisplayTextToForce(GetPlayersAll(),"Задание изменилось.")call DestroyEffect(udg_Specefect[8])
call DestroyEffect(udg_Specefect[9])
call AddSpecialEffectTargetUnitBJ("origin",gg_unit_H005_0201,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl")set udg_Specefect[9]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hpal_0257),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,0.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hpal_0257,"Abilities\\Spells\\Other\\Aneu\\AneuCaster.mdl")
set udg_Specefect[8]=GetLastCreatedEffectBJ()call QuestSetTitle(udg_Zadanie[10],"Наступление тьмы")call QuestSetDescription(udg_Zadanie[10],"Значит это правда. Тьма просачивается в наш мир. Она стягивает силы ожидая своего предводителя. Необходимо предупредить короля. Встретимся в замке.")call TriggerSleepAction(6.00)call EnableTrigger(gg_trg_Korol_2)call SetUnitAnimation(gg_unit_H005_0201,"stand")
call DestroyEffect(udg_Specefect[9])
call SetUnitPositionLoc(gg_unit_H005_0201,GetUnitLoc(gg_unit_ncop_0209))
endfunctionfunction InitTrig_Mediv_1 takes nothing returns nothingset gg_trg_Mediv_1=CreateTrigger()call DisableTrigger(gg_trg_Mediv_1)call TriggerRegisterUnitInRangeSimple(gg_trg_Mediv_1,256,gg_unit_H005_0201)call TriggerAddCondition(gg_trg_Mediv_1,Condition(function Trig_Mediv_1_Conditions))
call TriggerAddAction(gg_trg_Mediv_1,function Trig_Mediv_1_Actions)endfunctionfunction Trig_Svitok_mediva_1_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03M')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Svitok_mediva_1_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"Задание изменилось.")call DestroyEffect(udg_Specefect[8])
call QuestSetTitle(udg_Zadanie[10],"Наступление тьмы")call QuestSetDescription(udg_Zadanie[10],"Это последние, что написал медив. Нужно отнести этот свиток королю.")call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hpal_0257,"Abilities\\Spells\\Other\\Aneu\\AneuCaster.mdl")
set udg_Specefect[8]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hpal_0257),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,0.00)call EnableTrigger(gg_trg_Korol_2_B)
endfunctionfunction InitTrig_Svitok_mediva_1 takes nothing returns nothingset gg_trg_Svitok_mediva_1=CreateTrigger()call DisableTrigger(gg_trg_Svitok_mediva_1)call TriggerRegisterAnyUnitEventBJ(gg_trg_Svitok_mediva_1,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Svitok_mediva_1,Condition(function Trig_Svitok_mediva_1_Conditions))
call TriggerAddAction(gg_trg_Svitok_mediva_1,function Trig_Svitok_mediva_1_Actions)endfunctionfunction Trig_Korol_2_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hpal_0257)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Korol_2_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"Задание изменилось.")call DisableTrigger(GetTriggeringTrigger())call CreateItemLoc('ajen',GetUnitLoc(GetTriggerUnit()))call DestroyEffect(udg_Specefect[8])
call QuestSetTitle(udg_Zadanie[10],"Подготовится к наступлению тьмы.")call QuestSetDescription(udg_Zadanie[10],"Тьма наступает. Нам необходимо подготовится к ее встрече.  Даже у всего альянса не хватит остановить ее. Нам понадобится любая помощь. Собери всех, кого сможешь и организуй оборону. Я дам тебе указ о сборе. Он поможет тебе набрать воинов.")call QuestSetDiscovered(udg_Zadanie[10],true)call FlashQuestDialogButton()call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hlgr_0230,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")call EnableTrigger(gg_trg_Marshal_Oborona_2)
call TriggerSleepAction(5.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_H005_0201,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[8]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Mediv)
endfunctionfunction InitTrig_Korol_2 takes nothing returns nothingset gg_trg_Korol_2=CreateTrigger()call DisableTrigger(gg_trg_Korol_2)call TriggerRegisterUnitInRangeSimple(gg_trg_Korol_2,256,gg_unit_Hpal_0257)call TriggerAddCondition(gg_trg_Korol_2,Condition(function Trig_Korol_2_Conditions))
call TriggerAddAction(gg_trg_Korol_2,function Trig_Korol_2_Actions)endfunctionfunction Trig_Korol_2_B_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03M')==true))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hpal_0257)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Korol_2_B_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"Задание изменилось.
|c0000FF00Получено золото:|r|c00FFFF00 5000|r")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I03M'))call CreateItemLoc('ajen',GetUnitLoc(GetTriggerUnit()))call DestroyEffect(udg_Specefect[8])
call QuestSetTitle(udg_Zadanie[10],"Подготовится к наступлению тьмы.")call QuestSetDescription(udg_Zadanie[10],"Медив мертв… Боже, кто же нас спасет… В любом случаи мы погибнем сражаясь. Возьми золото из казны.Организуй оборону замка. Я дам тебе указ о сборе. Собери кого только можешь.")
call QuestSetDiscovered(udg_Zadanie[10],true)call FlashQuestDialogButton()call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_GOLD)+5000))call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_GOLD)+5000))call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_GOLD)+5000))call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_GOLD)+5000))call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_GOLD)+5000))call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_GOLD)+5000))call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hlgr_0230,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")call EnableTrigger(gg_trg_Marshal_Oborona_2)
endfunctionfunction InitTrig_Korol_2_B takes nothing returns nothingset gg_trg_Korol_2_B=CreateTrigger()
call DisableTrigger(gg_trg_Korol_2_B)call TriggerRegisterUnitInRangeSimple(gg_trg_Korol_2_B,256,gg_unit_Hpal_0257)call TriggerAddCondition(gg_trg_Korol_2_B,Condition(function Trig_Korol_2_B_Conditions))
call TriggerAddAction(gg_trg_Korol_2_B,function Trig_Korol_2_B_Actions)endfunctionfunction Trig_Mediv_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_H005_0201)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mediv_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"Задание получено")call SetUnitPositionLoc(gg_unit_h01J_0753,GetRectCenter(gg_rct_Hram_Argusa))
call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_h01J_0753),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,0.00)call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"Достать амулет Аргуса","Что бы победить Саргераса нам необходимо собрать самые сильные артефакты. Один из артефактов храниться в храме возле деревни. Но его охраняет страж Аргуса. Он очень силен.","ReplaceableTextures\\CommandButtons\\BTNPeriapt.blp")
call DestroyEffect(udg_Specefect[8])
call QuestSetDiscovered(udg_Zadanie[10],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Mediv_Complite)endfunctionfunction InitTrig_Mediv takes nothing returns nothingset gg_trg_Mediv=CreateTrigger()
call DisableTrigger(gg_trg_Mediv)call TriggerRegisterUnitInRangeSimple(gg_trg_Mediv,256,gg_unit_H005_0201)call TriggerAddCondition(gg_trg_Mediv,Condition(function Trig_Mediv_Conditions))
call TriggerAddAction(gg_trg_Mediv,function Trig_Mediv_Actions)endfunctionfunction Trig_Mediv_Complite_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mediv_Complite_Actions takes nothing returns nothingcall DestroyEffect(udg_Specefect[8])
call DisableTrigger(GetTriggeringTrigger())call QuestSetCompleted(udg_Zadanie[11],true)
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_H005_0201,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")set udg_Specefect[8]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Mediv_oborona)
endfunctionfunction InitTrig_Mediv_Complite takes nothing returns nothingset gg_trg_Mediv_Complite=CreateTrigger()call DisableTrigger(gg_trg_Mediv_Complite)call TriggerRegisterAnyUnitEventBJ(gg_trg_Mediv_Complite,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mediv_Complite,Condition(function Trig_Mediv_Complite_Conditions))call TriggerAddAction(gg_trg_Mediv_Complite,function Trig_Mediv_Complite_Actions)endfunctionfunction Trig_Mediv_oborona_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ajen')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mediv_oborona_Actions takes nothing returns nothingcall PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Mediv_oborona),5.00,bj_MINIMAPPINGSTYLE_FLASHY,100.00,100.00,0.00)call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[8])
call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Медив: |r Я сохраню генератор..")call SetUnitPositionLoc(gg_unit_H005_0201,GetRectCenter(gg_rct_Mediv_oborona))call CreateNUnitsAtLoc(1,'nhym',Player(9),OffsetLocation(GetRectCenter(gg_rct_Mediv_oborona),-100.00,0),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhym',Player(9),OffsetLocation(GetRectCenter(gg_rct_Mediv_oborona),100.00,0),bj_UNIT_FACING)endfunctionfunction InitTrig_Mediv_oborona takes nothing returns nothingset gg_trg_Mediv_oborona=CreateTrigger()
call DisableTrigger(gg_trg_Mediv_oborona)call TriggerRegisterUnitInRangeSimple(gg_trg_Mediv_oborona,256,gg_unit_H005_0201)call TriggerAddCondition(gg_trg_Mediv_oborona,Condition(function Trig_Mediv_oborona_Conditions))
call TriggerAddAction(gg_trg_Mediv_oborona,function Trig_Mediv_oborona_Actions)endfunctionfunction Trig_Podskazka_Conditions takes nothing returns boolean
if(not(IsUnitAliveBJ(gg_unit_h006_0111)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Podskazka_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_h006_0111),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,0.00)call DisplayTextToForce(GetPlayersAll(),(GetHeroProperName(GetTriggerUnit())+": Видимо медив не хочет принимать гостей. Где то должен быть генератор поддерживающий поле."))endfunctionfunction InitTrig_Podskazka takes nothing returns nothingset gg_trg_Podskazka=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Podskazka,gg_rct_Mediv_pole)call TriggerAddCondition(gg_trg_Podskazka,Condition(function Trig_Podskazka_Conditions))
call TriggerAddAction(gg_trg_Podskazka,function Trig_Podskazka_Actions)endfunctionfunction Trig_Generator_dead_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"Магическая преграда разрушена.")
call ModifyGateBJ(bj_GATEOPERATION_DESTROY,gg_dest_Dofw_3907)endfunctionfunction InitTrig_Generator_dead takes nothing returns nothingset gg_trg_Generator_dead=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Generator_dead,gg_unit_h006_0111,EVENT_UNIT_DEATH)call TriggerAddAction(gg_trg_Generator_dead,function Trig_Generator_dead_Actions)endfunctionfunction Trig_Generator_dead_2_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"Магическая преграда разрушена.")
call ModifyGateBJ(bj_GATEOPERATION_OPEN,gg_dest_ATg1_2388)endfunctionfunction InitTrig_Generator_dead_2 takes nothing returns nothing
set gg_trg_Generator_dead_2=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Generator_dead_2,gg_unit_h006_0255,EVENT_UNIT_DEATH)call TriggerAddAction(gg_trg_Generator_dead_2,function Trig_Generator_dead_2_Actions)endfunctionfunction Trig_Generator_dead_3_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"Магическая преграда разрушена.")
call ModifyGateBJ(bj_GATEOPERATION_OPEN,gg_dest_Dofw_11003)call ModifyGateBJ(bj_GATEOPERATION_OPEN,gg_dest_Dofw_11004)endfunctionfunction InitTrig_Generator_dead_3 takes nothing returns nothing
set gg_trg_Generator_dead_3=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Generator_dead_3,gg_unit_h006_0804,EVENT_UNIT_DEATH)call TriggerAddAction(gg_trg_Generator_dead_3,function Trig_Generator_dead_3_Actions)endfunctionfunction Trig_Svitok_staly_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05G')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Svitok_staly_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[10])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmbr_0215,"Abilities\\Spells\\Other\\Aneu\\AneuCaster.mdl")
set udg_Specefect[10]=GetLastCreatedEffectBJ()call CreateNUnitsAtLoc(1,'ndrd',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrd',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrd',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrd',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrd',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrd',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrd',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrd',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrh',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrh',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrh',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrh',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrh',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call TriggerSleepAction(3.00)call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'ndrd'),"attack",GetUnitLoc(GetTriggerUnit()))call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'ndrh'),"attack",GetUnitLoc(GetTriggerUnit()))call TriggerSleepAction(6.00)call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'ndrd'),"attack",GetUnitLoc(GetTriggerUnit()))call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'ndrh'),"attack",GetUnitLoc(GetTriggerUnit()))call TriggerSleepAction(18.00)call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'ndrd'),"attack",GetUnitLoc(GetTriggerUnit()))call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'ndrh'),"attack",GetUnitLoc(GetTriggerUnit()))endfunctionfunction InitTrig_Svitok_staly takes nothing returns nothing
set gg_trg_Svitok_staly=CreateTrigger()call DisableTrigger(gg_trg_Svitok_staly)
call TriggerRegisterAnyUnitEventBJ(gg_trg_Svitok_staly,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Svitok_staly,Condition(function Trig_Svitok_staly_Conditions))call TriggerAddAction(gg_trg_Svitok_staly,function Trig_Svitok_staly_Actions)endfunctionfunction Trig_Drenei_AI_Func001C takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='ndrd'))thenreturn false
endifreturn trueendfunctionfunction Trig_Drenei_AI_Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='ndrh'))thenreturn false
endifif(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())<=400.00))thenreturn false
endifreturn trueendfunctionfunction Trig_Drenei_AI_Actions takes nothing returns nothingif(Trig_Drenei_AI_Func001C())thencall DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(4.00)call IssuePointOrderLoc(GetAttackedUnitBJ(),"impale",GetUnitLoc(GetAttacker()))call TriggerSleepAction(4.00)call EnableTrigger(GetTriggeringTrigger())else
endifif(Trig_Drenei_AI_Func002C())thencall DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(4.00)call IssueTargetOrder(GetAttackedUnitBJ(),"healingwave",GetAttackedUnitBJ())
call TriggerSleepAction(5.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_Drenei_AI takes nothing returns nothingset gg_trg_Drenei_AI=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Drenei_AI,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddAction(gg_trg_Drenei_AI,function Trig_Drenei_AI_Actions)endfunctionfunction Trig_Ruda_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='h008'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ruda_Actions takes nothing returns nothing
call CreateItemLoc('kysn',GetUnitLoc(GetDyingUnit()))endfunctionfunction InitTrig_Ruda takes nothing returns nothing
set gg_trg_Ruda=CreateTrigger()call TriggerRegisterPlayerUnitEventSimple(gg_trg_Ruda,Player(11),EVENT_PLAYER_UNIT_DEATH)call TriggerAddCondition(gg_trg_Ruda,Condition(function Trig_Ruda_Conditions))call TriggerAddAction(gg_trg_Ruda,function Trig_Ruda_Actions)endfunctionfunction Trig_Kuznec_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmbr_0215)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kuznec_Actions takes nothing returns nothingcall CreateNUnitsAtLoc(1,'h008',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h008',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h008',Player(11),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h008',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h008',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h008',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call DisableTrigger(GetTriggeringTrigger())call EnableTrigger(gg_trg_Sbor_rudy)
call DestroyEffect(udg_Specefect[10])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmgd_0057,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[10]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Железная руда")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Собрать руду","Куда ты собрался в лес? Без защиты? Да ты там и 5 минут не протянешь. Давай так ты мне приносишь 3 куска руду я тебе делаю щит.
Награда:|c00C8C800 Железный щит|r","ReplaceableTextures\\CommandButtons\\BTNHumanArmorUpOne.blp")
set udg_Zadanie[11]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[11],true)call FlashQuestDialogButton()endfunctionfunction InitTrig_Kuznec takes nothing returns nothingset gg_trg_Kuznec=CreateTrigger()call DisableTrigger(gg_trg_Kuznec)call TriggerRegisterUnitInRangeSimple(gg_trg_Kuznec,256,gg_unit_Hmbr_0215)call TriggerAddCondition(gg_trg_Kuznec,Condition(function Trig_Kuznec_Conditions))call TriggerAddAction(gg_trg_Kuznec,function Trig_Kuznec_Actions)endfunctionfunction Trig_Kuznec_A_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmbr_0215)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kuznec_A_Func020C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Kuznec_A_Func021C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Kuznec_A_Func022C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Kuznec_A_Func023C takes nothing returns booleanif(not(udg_Random==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Kuznec_A_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call EnableTrigger(gg_trg_Kuznec_Complete_A)
call DestroyEffect(udg_Specefect[10])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmgd_0057,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[10]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Вернуть молот")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Вернуть молот","Никому нельзя доверять. Всюду одно ворье! Какой-то деревенщина украл мой молот. Как мне теперь работать. Давай так ты вернешь мой молот ну а я тебе что ни будь починю.
Награда:|c00C8C800 Улучшение 1|r","ReplaceableTextures\\CommandButtons\\BTNRepairOn.blp")set udg_Zadanie[11]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[11],true)call FlashQuestDialogButton()call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Derevnia),5.00,bj_MINIMAPPINGSTYLE_FLASHY,100.00,100.00,0.00)
set udg_Random=GetRandomInt(1,4)
if(Trig_Kuznec_A_Func020C())then
call SetUnitPositionLoc(gg_unit_nvl2_0223,GetRandomLocInRect(gg_rct_Derevnia))call TriggerSleepAction(1.00)call SetUnitOwner(gg_unit_nvl2_0223,Player(9),true)else
endifif(Trig_Kuznec_A_Func021C())then
call SetUnitPositionLoc(gg_unit_nvil_0224,GetRandomLocInRect(gg_rct_Derevnia))call TriggerSleepAction(1.00)call SetUnitOwner(gg_unit_nvil_0224,Player(9),true)else
endifif(Trig_Kuznec_A_Func022C())then
call SetUnitPositionLoc(gg_unit_nvlk_0227,GetRandomLocInRect(gg_rct_Derevnia))call TriggerSleepAction(1.00)call SetUnitOwner(gg_unit_nvlk_0227,Player(9),true)else
endifif(Trig_Kuznec_A_Func023C())then
call SetUnitPositionLoc(gg_unit_nvk2_0228,GetRandomLocInRect(gg_rct_Derevnia))call TriggerSleepAction(1.00)call SetUnitOwner(gg_unit_nvl2_0223,Player(9),true)else
endifendfunctionfunction InitTrig_Kuznec_A takes nothing returns nothing
set gg_trg_Kuznec_A=CreateTrigger()call DisableTrigger(gg_trg_Kuznec_A)
call TriggerRegisterUnitInRangeSimple(gg_trg_Kuznec_A,256,gg_unit_Hmbr_0215)
call TriggerAddCondition(gg_trg_Kuznec_A,Condition(function Trig_Kuznec_A_Conditions))call TriggerAddAction(gg_trg_Kuznec_A,function Trig_Kuznec_A_Actions)endfunctionfunction Trig_Kuznec_B_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmbr_0215)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Naka_0222)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kuznec_B_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call EnableTrigger(gg_trg_Kuznec_Complete_B)
call DestroyEffect(udg_Specefect[10])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmgd_0057,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[10]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Забрать точильный камень")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Забрать точильный камень","Акама должен был принести мне точильный камень, но почему-то не пришел. Принеси мне точильный камень. Награда:|c00C8C800 5 бронзовых брусков|r","ReplaceableTextures\\CommandButtons\\BTNRepairOn.blp")set udg_Zadanie[11]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[11],true)call FlashQuestDialogButton()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Naka_0222),5.00,bj_MINIMAPPINGSTYLE_FLASHY,100.00,100.00,0.00)call CreateItemLoc('I05J',GetUnitLoc(gg_unit_Naka_0222))
call TriggerSleepAction(1.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmbr_0215,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")set udg_Specefect[10]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Kuznec_Oborona)endfunctionfunction InitTrig_Kuznec_B takes nothing returns nothing
set gg_trg_Kuznec_B=CreateTrigger()call DisableTrigger(gg_trg_Kuznec_B)
call TriggerRegisterUnitInRangeSimple(gg_trg_Kuznec_B,256,gg_unit_Hmbr_0215)
call TriggerAddCondition(gg_trg_Kuznec_B,Condition(function Trig_Kuznec_B_Conditions))call TriggerAddAction(gg_trg_Kuznec_B,function Trig_Kuznec_B_Actions)endfunctionfunction Trig_Kuznec_Complete_A_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05I')==true))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmbr_0215)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kuznec_Complete_A_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 Улучшение 1|r")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05I'))call DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl")call DestroyEffect(udg_Specefect[10])call QuestSetCompleted(udg_Zadanie[11],true)
call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Кузнец: |r Вот теперь можно и поработать.")call CreateItemLoc('gomn',GetUnitLoc(GetTriggerUnit()))call TriggerSleepAction(10.00)call EnableTrigger(gg_trg_Kuznec_B)set udg_Specefect[10]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hmbr_0215),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmbr_0215,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")endfunctionfunction InitTrig_Kuznec_Complete_A takes nothing returns nothingset gg_trg_Kuznec_Complete_A=CreateTrigger()
call DisableTrigger(gg_trg_Kuznec_Complete_A)call TriggerRegisterUnitInRangeSimple(gg_trg_Kuznec_Complete_A,256,gg_unit_Hmbr_0215)call TriggerAddCondition(gg_trg_Kuznec_Complete_A,Condition(function Trig_Kuznec_Complete_A_Conditions))
call TriggerAddAction(gg_trg_Kuznec_Complete_A,function Trig_Kuznec_Complete_A_Actions)endfunctionfunction Trig_Kuznec_Complete_B_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05J')==true))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmbr_0215)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kuznec_Complete_B_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 5 бронзовых брусков|r")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05J'))call DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl")call DestroyEffect(udg_Specefect[10])call QuestSetCompleted(udg_Zadanie[11],true)
call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Кузнец: |r Ну наконец то.")call CreateItemLoc('I01A',GetUnitLoc(GetTriggerUnit()))call CreateItemLoc('I01A',GetUnitLoc(GetTriggerUnit()))call CreateItemLoc('I01A',GetUnitLoc(GetTriggerUnit()))call CreateItemLoc('I01A',GetUnitLoc(GetTriggerUnit()))call CreateItemLoc('I01A',GetUnitLoc(GetTriggerUnit()))endfunctionfunction InitTrig_Kuznec_Complete_B takes nothing returns nothingset gg_trg_Kuznec_Complete_B=CreateTrigger()
call DisableTrigger(gg_trg_Kuznec_Complete_B)call TriggerRegisterUnitInRangeSimple(gg_trg_Kuznec_Complete_B,256,gg_unit_Hmbr_0215)call TriggerAddCondition(gg_trg_Kuznec_Complete_B,Condition(function Trig_Kuznec_Complete_B_Conditions))
call TriggerAddAction(gg_trg_Kuznec_Complete_B,function Trig_Kuznec_Complete_B_Actions)endfunctionfunction Trig_Sbor_rudy_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'kysn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sbor_rudy_Func004C takes nothing returns booleanif(not(udg_Sbor_rudy>=3))thenreturn false
endifreturn trueendfunctionfunction Trig_Sbor_rudy_Actions takes nothing returns nothingset udg_Sbor_rudy=(udg_Sbor_rudy+1)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Собрано:|r"+(I2S(udg_Sbor_rudy)+"/3")))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'kysn'))if(Trig_Sbor_rudy_Func004C())thencall DestroyEffect(udg_Specefect[10])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmbr_0215,"Abilities\\Spells\\Other\\Aneu\\AneuCaster.mdl")
set udg_Specefect[10]=GetLastCreatedEffectBJ()call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Задание выполнено!|r
Вернитесь за наградой.")call DisableTrigger(GetTriggeringTrigger())call EnableTrigger(gg_trg_Kuznec_Complete)else
endifendfunctionfunction InitTrig_Sbor_rudy takes nothing returns nothingset gg_trg_Sbor_rudy=CreateTrigger()
call DisableTrigger(gg_trg_Sbor_rudy)call TriggerRegisterAnyUnitEventBJ(gg_trg_Sbor_rudy,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Sbor_rudy,Condition(function Trig_Sbor_rudy_Conditions))
call TriggerAddAction(gg_trg_Sbor_rudy,function Trig_Sbor_rudy_Actions)endfunctionfunction Trig_Kuznec_Complete_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmbr_0215)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kuznec_Complete_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 Железный щит|r")call DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl")call DestroyEffect(udg_Specefect[10])call QuestSetCompleted(udg_Zadanie[11],true)
call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Кузнец: |r Вот принимай работу.")call CreateItemLoc('cnob',GetUnitLoc(GetTriggerUnit()))call TriggerSleepAction(10.00)call EnableTrigger(gg_trg_Kuznec_A)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmbr_0215,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[10]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hmbr_0215),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)endfunctionfunction InitTrig_Kuznec_Complete takes nothing returns nothingset gg_trg_Kuznec_Complete=CreateTrigger()call DisableTrigger(gg_trg_Kuznec_Complete)call TriggerRegisterUnitInRangeSimple(gg_trg_Kuznec_Complete,256,gg_unit_Hmbr_0215)call TriggerAddCondition(gg_trg_Kuznec_Complete,Condition(function Trig_Kuznec_Complete_Conditions))
call TriggerAddAction(gg_trg_Kuznec_Complete,function Trig_Kuznec_Complete_Actions)endfunctionfunction Trig_Kuznec_2_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmbr_0215)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kuznec_2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h008',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h008',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h008',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h008',Player(11),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h008',Player(11),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h008',Player(11),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h008',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h008',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h008',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h008',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h008',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h008',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h008',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h008',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h008',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call DisableTrigger(GetTriggeringTrigger())call EnableTrigger(gg_trg_Sbor_rudy_2)call DestroyEffect(udg_Specefect[10])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmgd_0057,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[10]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Железная руда")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Собрать руду","Знаешь я бы мог улучшить защиту всего нашего войска. Но мне нужна руда. Много руды. Если сможешь раздобыть 15 кусков руды, То я сделаю доспехи для всех войнов.
Награда:|c00C8C800 Повышение защиты войска|r","ReplaceableTextures\\CommandButtons\\BTNHumanArmorUpOne.blp")set udg_Zadanie[11]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[11],true)call FlashQuestDialogButton()endfunctionfunction InitTrig_Kuznec_2 takes nothing returns nothing
set gg_trg_Kuznec_2=CreateTrigger()call DisableTrigger(gg_trg_Kuznec_2)
call TriggerRegisterUnitInRangeSimple(gg_trg_Kuznec_2,256,gg_unit_Hmbr_0215)
call TriggerAddCondition(gg_trg_Kuznec_2,Condition(function Trig_Kuznec_2_Conditions))call TriggerAddAction(gg_trg_Kuznec_2,function Trig_Kuznec_2_Actions)endfunctionfunction Trig_Sbor_rudy_2_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'kysn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sbor_rudy_2_Func004C takes nothing returns boolean
if(not(udg_Sbor_rudy>=15))thenreturn false
endifreturn trueendfunctionfunction Trig_Sbor_rudy_2_Actions takes nothing returns nothingset udg_Sbor_rudy=(udg_Sbor_rudy+1)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Собрано:|r"+(I2S(udg_Sbor_rudy)+"/15")))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'kysn'))if(Trig_Sbor_rudy_2_Func004C())thencall DestroyEffect(udg_Specefect[10])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmbr_0215,"Abilities\\Spells\\Other\\Aneu\\AneuCaster.mdl")
set udg_Specefect[10]=GetLastCreatedEffectBJ()call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Задание выполнено!|r
Вернитесь за наградой.")call DisableTrigger(GetTriggeringTrigger())call EnableTrigger(gg_trg_Kuznec_Complete_2)
else
endifendfunctionfunction InitTrig_Sbor_rudy_2 takes nothing returns nothingset gg_trg_Sbor_rudy_2=CreateTrigger()call DisableTrigger(gg_trg_Sbor_rudy_2)call TriggerRegisterAnyUnitEventBJ(gg_trg_Sbor_rudy_2,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Sbor_rudy_2,Condition(function Trig_Sbor_rudy_2_Conditions))
call TriggerAddAction(gg_trg_Sbor_rudy_2,function Trig_Sbor_rudy_2_Actions)endfunctionfunction Trig_Kuznec_Complete_2_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmbr_0215)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kuznec_Complete_2_Func017C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_Naka_0222)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kuznec_Complete_2_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 Улучшение Железная броня для войнов альянса|r")
call DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl")call DestroyEffect(udg_Specefect[10])call QuestSetCompleted(udg_Zadanie[11],true)
call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Кузнец: |r Вот принимай работу.")call SetPlayerTechResearchedSwap('Rhar',1,Player(9))
call TriggerSleepAction(10.00)if(Trig_Kuznec_Complete_2_Func017C())thencall EnableTrigger(gg_trg_Kuznec_2_A)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmbr_0215,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[10]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hmbr_0215),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)else
endifendfunctionfunction InitTrig_Kuznec_Complete_2 takes nothing returns nothingset gg_trg_Kuznec_Complete_2=CreateTrigger()
call DisableTrigger(gg_trg_Kuznec_Complete_2)call TriggerRegisterUnitInRangeSimple(gg_trg_Kuznec_Complete_2,256,gg_unit_Hmbr_0215)call TriggerAddCondition(gg_trg_Kuznec_Complete_2,Condition(function Trig_Kuznec_Complete_2_Conditions))
call TriggerAddAction(gg_trg_Kuznec_Complete_2,function Trig_Kuznec_Complete_2_Actions)endfunctionfunction Trig_Kuznec_2_A_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmbr_0215)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kuznec_2_A_Func006C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_Naka_0222)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kuznec_2_A_Actions takes nothing returns nothingif(Trig_Kuznec_2_A_Func006C())thencall PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Naka_0222),5.00,bj_MINIMAPPINGSTYLE_FLASHY,100.00,100.00,0.00)call DisableTrigger(GetTriggeringTrigger())call EnableTrigger(gg_trg_Kuznec_Complete_2_A)call EnableTrigger(gg_trg_Svitok_staly)call DestroyEffect(udg_Specefect[10])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmbr_0215,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[10]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Рецепт стали")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Достать рецепт стали","Я слышал, что у акамы есть рецепт производства более крепких доспех из стали. Если сможешь принести мне его я смогу воссоздать стальную броню.
Награда:|c00C8C800 Повышение защиты войска|r","ReplaceableTextures\\CommandButtons\\BTNHumanArmorUpTwo.blp")set udg_Zadanie[11]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[11],true)call FlashQuestDialogButton()call CreateItemLoc('I05G',GetUnitLoc(gg_unit_Naka_0222))
else
call DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Кузнец: |r К сожалению тот кто знал секрет стали погиб.")call DestroyEffect(udg_Specefect[10])endifendfunctionfunction InitTrig_Kuznec_2_A takes nothing returns nothingset gg_trg_Kuznec_2_A=CreateTrigger()call DisableTrigger(gg_trg_Kuznec_2_A)call TriggerRegisterUnitInRangeSimple(gg_trg_Kuznec_2_A,256,gg_unit_Hmbr_0215)call TriggerAddCondition(gg_trg_Kuznec_2_A,Condition(function Trig_Kuznec_2_A_Conditions))call TriggerAddAction(gg_trg_Kuznec_2_A,function Trig_Kuznec_2_A_Actions)endfunctionfunction Trig_Kuznec_Complete_2_A_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05G')==true))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmbr_0215)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kuznec_Complete_2_A_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 Улучшение 2 железной брони|r")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05G'))call DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl")call DestroyEffect(udg_Specefect[10])call QuestSetCompleted(udg_Zadanie[11],true)
call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Кузнец: |r Вот теперь наша армия хорошо защищена.")
call SetPlayerTechResearchedSwap('Rhar',2,Player(9))
call SetPlayerTechResearchedSwap('Rhar',2,Player(0))
call SetPlayerTechResearchedSwap('Rhar',2,Player(1))
call SetPlayerTechResearchedSwap('Rhar',2,Player(2))
call SetPlayerTechResearchedSwap('Rhar',2,Player(3))
call SetPlayerTechResearchedSwap('Rhar',2,Player(4))
call SetPlayerTechResearchedSwap('Rhar',2,Player(5))
call TriggerSleepAction(10.00)call EnableTrigger(gg_trg_Kuznec_2_B)set udg_Specefect[10]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hmbr_0215),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmbr_0215,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")endfunctionfunction InitTrig_Kuznec_Complete_2_A takes nothing returns nothingset gg_trg_Kuznec_Complete_2_A=CreateTrigger()call DisableTrigger(gg_trg_Kuznec_Complete_2_A)call TriggerRegisterUnitInRangeSimple(gg_trg_Kuznec_Complete_2_A,256,gg_unit_Hmbr_0215)call TriggerAddCondition(gg_trg_Kuznec_Complete_2_A,Condition(function Trig_Kuznec_Complete_2_A_Conditions))
call TriggerAddAction(gg_trg_Kuznec_Complete_2_A,function Trig_Kuznec_Complete_2_A_Actions)endfunctionfunction Trig_Kuznec_2_B_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmbr_0215)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kuznec_2_B_Actions takes nothing returns nothingset udg_Sbor_rudy=0call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Zona_3),5.00,bj_MINIMAPPINGSTYLE_FLASHY,100.00,100.00,0.00)call DisableTrigger(GetTriggeringTrigger())call EnableTrigger(gg_trg_Sbor_mifrila)call DestroyEffect(udg_Specefect[10])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmbr_0215,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[10]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Мифриловая броня")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Собрать мифрил","Я знаю, как сделать наши войска непробиваемыми. В сталь необходимо добавлять порошок мифрила. Это усиливает стойкость метала. Только вот мифрила у меня нет. Мне нужно хотя бы 5 кусков.
Награда:|c00C8C800 Повышение защиты войска|r","ReplaceableTextures\\CommandButtons\\BTNHumanArmorUpThree.blp")set udg_Zadanie[11]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[11],true)call FlashQuestDialogButton()call CreateNUnitsAtLoc(1,'ngrk',Player(11),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngrk',Player(11),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngrk',Player(11),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
call CreateItemLoc('I05H',GetRandomLocInRect(gg_rct_Zona_3))
call CreateItemLoc('I05H',GetRandomLocInRect(gg_rct_Zona_3))
call CreateItemLoc('I05H',GetRandomLocInRect(gg_rct_Zona_3))
call CreateItemLoc('I05H',GetRandomLocInRect(gg_rct_Zona_3))
call CreateItemLoc('I05H',GetRandomLocInRect(gg_rct_Zona_3))
endfunctionfunction InitTrig_Kuznec_2_B takes nothing returns nothingset gg_trg_Kuznec_2_B=CreateTrigger()call DisableTrigger(gg_trg_Kuznec_2_B)call TriggerRegisterUnitInRangeSimple(gg_trg_Kuznec_2_B,256,gg_unit_Hmbr_0215)call TriggerAddCondition(gg_trg_Kuznec_2_B,Condition(function Trig_Kuznec_2_B_Conditions))call TriggerAddAction(gg_trg_Kuznec_2_B,function Trig_Kuznec_2_B_Actions)endfunctionfunction Trig_Sbor_mifrila_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05H')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sbor_mifrila_Func004C takes nothing returns booleanif(not(udg_Sbor_rudy>=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Sbor_mifrila_Actions takes nothing returns nothing
set udg_Sbor_rudy=(udg_Sbor_rudy+1)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Собрано:|r"+(I2S(udg_Sbor_rudy)+"/5")))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05H'))if(Trig_Sbor_mifrila_Func004C())then
call DestroyEffect(udg_Specefect[10])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmbr_0215,"Abilities\\Spells\\Other\\Aneu\\AneuCaster.mdl")
set udg_Specefect[10]=GetLastCreatedEffectBJ()call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Задание выполнено!|r
Вернитесь за наградой.")call DisableTrigger(GetTriggeringTrigger())call EnableTrigger(gg_trg_Kuznec_Complete_2_B)else
endifendfunctionfunction InitTrig_Sbor_mifrila takes nothing returns nothing
set gg_trg_Sbor_mifrila=CreateTrigger()call DisableTrigger(gg_trg_Sbor_mifrila)
call TriggerRegisterAnyUnitEventBJ(gg_trg_Sbor_mifrila,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Sbor_mifrila,Condition(function Trig_Sbor_mifrila_Conditions))call TriggerAddAction(gg_trg_Sbor_mifrila,function Trig_Sbor_mifrila_Actions)endfunctionfunction Trig_Kuznec_Complete_2_B_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmbr_0215)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kuznec_Complete_2_B_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 Улучшение 3 железной брони|r")call DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl")call DestroyEffect(udg_Specefect[10])call QuestSetCompleted(udg_Zadanie[11],true)
call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Кузнец: |r С такой броней нам никто не страшен.")call SetPlayerTechResearchedSwap('Rhar',3,Player(9))
call SetPlayerTechResearchedSwap('Rhar',3,Player(0))
call SetPlayerTechResearchedSwap('Rhar',3,Player(1))
call SetPlayerTechResearchedSwap('Rhar',3,Player(2))
call SetPlayerTechResearchedSwap('Rhar',3,Player(3))
call SetPlayerTechResearchedSwap('Rhar',3,Player(4))
call SetPlayerTechResearchedSwap('Rhar',3,Player(5))
call TriggerSleepAction(1.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmbr_0215,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")set udg_Specefect[10]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Kuznec_Oborona)endfunctionfunction InitTrig_Kuznec_Complete_2_B takes nothing returns nothingset gg_trg_Kuznec_Complete_2_B=CreateTrigger()call DisableTrigger(gg_trg_Kuznec_Complete_2_B)call TriggerRegisterUnitInRangeSimple(gg_trg_Kuznec_Complete_2_B,256,gg_unit_Hmbr_0215)call TriggerAddCondition(gg_trg_Kuznec_Complete_2_B,Condition(function Trig_Kuznec_Complete_2_B_Conditions))
call TriggerAddAction(gg_trg_Kuznec_Complete_2_B,function Trig_Kuznec_Complete_2_B_Actions)endfunctionfunction Trig_Kuznec_Oborona_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmbr_0215)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ajen')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kuznec_Oborona_Actions takes nothing returns nothingcall PingMinimapLocForForceEx(GetPlayersAll(),GetRandomLocInRect(gg_rct_Kuznec_oborona),5.00,bj_MINIMAPPINGSTYLE_FLASHY,100.00,100.00,0.00)call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[10])call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Кузнец: |r Что ж давненько я не воевал. Но молодым могу дать фору.")
call SetUnitPositionLoc(gg_unit_Hmbr_0215,GetRandomLocInRect(gg_rct_Kuznec_oborona))
call CreateNUnitsAtLoc(1,'hfoo',Player(9),GetRandomLocInRect(gg_rct_Kuznec_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hfoo',Player(9),GetRandomLocInRect(gg_rct_Kuznec_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hfoo',Player(9),GetRandomLocInRect(gg_rct_Kuznec_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hfoo',Player(9),GetRandomLocInRect(gg_rct_Kuznec_oborona),bj_UNIT_FACING)endfunctionfunction InitTrig_Kuznec_Oborona takes nothing returns nothingset gg_trg_Kuznec_Oborona=CreateTrigger()call DisableTrigger(gg_trg_Kuznec_Oborona)call TriggerRegisterUnitInRangeSimple(gg_trg_Kuznec_Oborona,256,gg_unit_Hmbr_0215)call TriggerAddCondition(gg_trg_Kuznec_Oborona,Condition(function Trig_Kuznec_Oborona_Conditions))call TriggerAddAction(gg_trg_Kuznec_Oborona,function Trig_Kuznec_Oborona_Actions)endfunctionfunction Trig_Marshal_1_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmgd_0057)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Marshal_1_Func010C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Marshal_1_Func011C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Marshal_1_Func012C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Marshal_1_Actions takes nothing returns nothingcall DestroyEffect(udg_Specefect[7])
call DisableTrigger(GetTriggeringTrigger())call EnableTrigger(gg_trg_Smert_Dezertira)set udg_Random=GetRandomInt(1,3)
if(Trig_Marshal_1_Func010C())thencall SetUnitPositionLoc(gg_unit_nban_0087,GetRectCenter(gg_rct_Dezertir))else
endifif(Trig_Marshal_1_Func011C())thencall SetUnitPositionLoc(gg_unit_h003_0068,GetRectCenter(gg_rct_Dezertir))else
endifif(Trig_Marshal_1_Func012C())thencall SetUnitPositionLoc(gg_unit_nbrg_0069,GetRectCenter(gg_rct_Dezertir))else
endifcall PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Dezertir),5.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)call DestroyEffect(udg_Specefect[6])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmgd_0057,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[6]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Убить дезертира.")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Убить дезертира","Приветствую воин, не сделаешь мне небольшое одолжение. Из моего отряда сбежал воин и прячется в районе кладбища. Я не потерплю дезертирства в моем отряде, но и времени самому разбираться нет.
Награда:|c00C8C800 Оружие (у дезертира)|r,|c0000FF00 +250 опыты|r.","ReplaceableTextures\\CommandButtons\\BTNBandit.blp")set udg_Zadanie[9]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[9],true)
call FlashQuestDialogButton()endfunctionfunction InitTrig_Marshal_1 takes nothing returns nothingset gg_trg_Marshal_1=CreateTrigger()
call DisableTrigger(gg_trg_Marshal_1)call TriggerRegisterUnitInRangeSimple(gg_trg_Marshal_1,256,gg_unit_Hmgd_0057)call TriggerAddCondition(gg_trg_Marshal_1,Condition(function Trig_Marshal_1_Conditions))
call TriggerAddAction(gg_trg_Marshal_1,function Trig_Marshal_1_Actions)endfunctionfunction Trig_Smert_Dezertira_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Задание выполнено!|r
Вернитесь за наградой.")call EnableTrigger(gg_trg_Marshal_complete)call DestroyEffect(udg_Specefect[6])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmgd_0057,"Abilities\\Spells\\Other\\Aneu\\AneuCaster.mdl")
set udg_Specefect[6]=GetLastCreatedEffectBJ()endfunctionfunction InitTrig_Smert_Dezertira takes nothing returns nothingset gg_trg_Smert_Dezertira=CreateTrigger()call DisableTrigger(gg_trg_Smert_Dezertira)call TriggerRegisterUnitEvent(gg_trg_Smert_Dezertira,gg_unit_nban_0087,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(gg_trg_Smert_Dezertira,gg_unit_nbrg_0069,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(gg_trg_Smert_Dezertira,gg_unit_h003_0068,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_Smert_Dezertira,function Trig_Smert_Dezertira_Actions)endfunctionfunction Trig_Marshal_complete_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmgd_0057)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Marshal_complete_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 250 опыта|r")call DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl")call DestroyEffect(udg_Specefect[6])
call QuestSetCompleted(udg_Zadanie[9],true)call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Маршал: |r Возьми его оружие себе. Ему оно уже не понадобится.")call CreateItemLoc('stwa',GetUnitLoc(GetTriggerUnit()))call AddHeroXPSwapped(250,udg_Hero[1],false)
call AddHeroXPSwapped(250,udg_Hero[2],false)
call AddHeroXPSwapped(250,udg_Hero[3],false)
call AddHeroXPSwapped(250,udg_Hero[4],false)
call AddHeroXPSwapped(250,udg_Hero[5],false)
call AddHeroXPSwapped(250,udg_Hero[6],false)
call EnableTrigger(gg_trg_Marshal_3)
endfunctionfunction InitTrig_Marshal_complete takes nothing returns nothing
set gg_trg_Marshal_complete=CreateTrigger()call DisableTrigger(gg_trg_Marshal_complete)
call TriggerRegisterUnitInRangeSimple(gg_trg_Marshal_complete,256,gg_unit_Hmgd_0057)
call TriggerAddCondition(gg_trg_Marshal_complete,Condition(function Trig_Marshal_complete_Conditions))call TriggerAddAction(gg_trg_Marshal_complete,function Trig_Marshal_complete_Actions)endfunctionfunction Trig_Marshal_2_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmgd_0057)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Marshal_2_Actions takes nothing returns nothingcall DestroyEffect(udg_Specefect[7])
call DisableTrigger(GetTriggeringTrigger())call EnableTrigger(gg_trg_Smert_Korola_vorov)call SetUnitPositionLoc(gg_unit_nbld_0126,GetUnitLoc(gg_unit_ncop_0127))
call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_nbld_0126),5.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)call DestroyEffect(udg_Specefect[7])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmgd_0057,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[7]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Король воров.")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Король воров.","Что говоришь сможеш управлять отрядом. Это тебе не мечом махать...Хотя сегодня мы планируем напасть на лагерь бандитов и добратся до ихнего короля. Вот ты и возглавляй отряд посмотрим , что у тебя выйдет.
Награда:|c00C8C800 Открытие новых войнов в казарме|r,|c0000FF00 +750 опыты|r.","ReplaceableTextures\\CommandButtons\\BTNBanditLord.blp")
set udg_Zadanie[10]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[10],true)call FlashQuestDialogButton()call TriggerSleepAction(40.00)call DisplayTextToForce(GetPlayersAll(),"Отряд выдвинулся на лагерь воров.")
call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_hmil_0130),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,0.00,100.00,0.00)call IssuePointOrderLoc(gg_unit_hmil_0132,"attack",GetUnitLoc(gg_unit_nbld_0126))call IssuePointOrderLoc(gg_unit_hmil_0131,"attack",GetUnitLoc(gg_unit_nbld_0126))call IssuePointOrderLoc(gg_unit_hmil_0130,"attack",GetUnitLoc(gg_unit_nbld_0126))call IssuePointOrderLoc(gg_unit_hmil_0129,"attack",GetUnitLoc(gg_unit_nbld_0126))call IssuePointOrderLoc(gg_unit_hmil_0133,"attack",GetUnitLoc(gg_unit_nbld_0126))call IssuePointOrderLoc(gg_unit_hmil_0134,"attack",GetUnitLoc(gg_unit_nbld_0126))call IssuePointOrderLoc(gg_unit_hmil_0135,"attack",GetUnitLoc(gg_unit_nbld_0126))call IssuePointOrderLoc(gg_unit_hmil_0136,"attack",GetUnitLoc(gg_unit_nbld_0126))call IssuePointOrderLoc(gg_unit_nhea_0137,"attack",GetUnitLoc(gg_unit_nbld_0126))call IssuePointOrderLoc(gg_unit_nhea_0138,"attack",GetUnitLoc(gg_unit_nbld_0126))call IssuePointOrderLoc(gg_unit_nhea_0139,"attack",GetUnitLoc(gg_unit_nbld_0126))call IssuePointOrderLoc(gg_unit_nhea_0140,"attack",GetUnitLoc(gg_unit_nbld_0126))call TriggerSleepAction(3.00)call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_hmil_0130),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,0.00,100.00,0.00)call TriggerSleepAction(3.00)call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_hmil_0130),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,0.00,100.00,0.00)endfunctionfunction InitTrig_Marshal_2 takes nothing returns nothingset gg_trg_Marshal_2=CreateTrigger()
call DisableTrigger(gg_trg_Marshal_2)call TriggerRegisterUnitInRangeSimple(gg_trg_Marshal_2,256,gg_unit_Hmgd_0057)call TriggerAddCondition(gg_trg_Marshal_2,Condition(function Trig_Marshal_2_Conditions))
call TriggerAddAction(gg_trg_Marshal_2,function Trig_Marshal_2_Actions)endfunctionfunction Trig_Korol_vorov_AI_Func001C takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='n00S'))thenreturn false
endifreturn trueendfunctionfunction Trig_Korol_vorov_AI_Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='nwld'))thenreturn false
endifreturn trueendfunctionfunction Trig_Korol_vorov_AI_Func003C takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='nbld'))thenreturn false
endifreturn trueendfunctionfunction Trig_Korol_vorov_AI_Func004C takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='ngnv'))thenreturn false
endifreturn trueendfunctionfunction Trig_Korol_vorov_AI_Func005C takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='uslh'))thenreturn false
endifif(not(GetUnitStateSwap(UNIT_STATE_LIFE,gg_unit_uslh_0152)<=6000.00))thenreturn false
endifif(not(GetUnitStateSwap(UNIT_STATE_LIFE,gg_unit_uslh_0152)>=5000.00))thenreturn false
endifreturn trueendfunctionfunction Trig_Korol_vorov_AI_Func006C takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='uslh'))thenreturn false
endifif(not(GetUnitStateSwap(UNIT_STATE_LIFE,gg_unit_uslh_0152)<=3000.00))thenreturn false
endifreturn trueendfunctionfunction Trig_Korol_vorov_AI_Actions takes nothing returns nothingif(Trig_Korol_vorov_AI_Func001C())thencall DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(3.00)call IssuePointOrderLoc(gg_unit_n00S_0680,"patrol",GetUnitLoc(gg_unit_n00S_0680))call IssuePointOrderLoc(gg_unit_n00S_0680,"patrol",GetRectCenter(gg_rct_Zona_4))
call EnableTrigger(GetTriggeringTrigger())else
endifif(Trig_Korol_vorov_AI_Func002C())thencall DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(3.00)call IssueImmediateOrder(gg_unit_nwld_0067,"mirrorimage")call TriggerSleepAction(5.00)call IssuePointOrderLoc(gg_unit_nwld_0067,"patrol",GetUnitLoc(gg_unit_nwld_0067))call IssuePointOrderLoc(gg_unit_nwld_0067,"patrol",GetRectCenter(gg_rct_Zona_1))
call EnableTrigger(GetTriggeringTrigger())else
endifif(Trig_Korol_vorov_AI_Func003C())thencall DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(3.00)call IssuePointOrderLoc(gg_unit_nbld_0126,"shockwave",GetUnitLoc(GetAttacker()))
call TriggerSleepAction(5.00)call IssuePointOrderLoc(gg_unit_nbld_0126,"attack",GetRectCenter(gg_rct_Zona_4))
call EnableTrigger(GetTriggeringTrigger())else
endifif(Trig_Korol_vorov_AI_Func004C())thencall DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(4.00)call IssueImmediateOrder(gg_unit_ngnv_0150,"thunderclap")call TriggerSleepAction(2.00)call EnableTrigger(GetTriggeringTrigger())else
endifif(Trig_Korol_vorov_AI_Func005C())thencall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'ugho',Player(11),GetUnitLoc(gg_unit_uslh_0152),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ugho',Player(11),GetUnitLoc(gg_unit_uslh_0152),bj_UNIT_FACING)
call TriggerSleepAction(5.00)call EnableTrigger(GetTriggeringTrigger())else
endifif(Trig_Korol_vorov_AI_Func006C())thencall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'uabo',Player(11),GetUnitLoc(gg_unit_uslh_0152),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uabo',Player(11),GetUnitLoc(gg_unit_uslh_0152),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uabo',Player(11),GetUnitLoc(gg_unit_uslh_0152),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ugho',Player(11),GetUnitLoc(gg_unit_uslh_0152),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ugho',Player(11),GetUnitLoc(gg_unit_uslh_0152),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ugho',Player(11),GetUnitLoc(gg_unit_uslh_0152),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ugho',Player(11),GetUnitLoc(gg_unit_uslh_0152),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ugho',Player(11),GetUnitLoc(gg_unit_uslh_0152),bj_UNIT_FACING)
else
endifendfunctionfunction InitTrig_Korol_vorov_AI takes nothing returns nothingset gg_trg_Korol_vorov_AI=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Korol_vorov_AI,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(gg_trg_Korol_vorov_AI,function Trig_Korol_vorov_AI_Actions)endfunctionfunction Trig_Smert_Korola_vorov_Func007C takes nothing returns booleanif(not(IsUnitType(GetKillingUnitBJ(),UNIT_TYPE_HERO)==true))then
return false
endifreturn trueendfunctionfunction Trig_Smert_Korola_vorov_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Задание выполнено!|r
Вернитесь за наградой.")call EnableTrigger(gg_trg_Marshal_complete_2)call DestroyEffect(udg_Specefect[7])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmgd_0057,"Abilities\\Spells\\Other\\Aneu\\AneuCaster.mdl")
set udg_Specefect[7]=GetLastCreatedEffectBJ()if(Trig_Smert_Korola_vorov_Func007C())thencall TriggerSleepAction(15.00)call DisplayTextToForce(GetPlayersAll(),("Отряд воров охотится на "+GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))))
call CreateNUnitsAtLoc(1,'njks',Player(6),GetUnitLoc(gg_unit_ncop_0127),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(GetKillingUnitBJ()))call CreateNUnitsAtLoc(1,'nass',Player(6),GetUnitLoc(gg_unit_ncop_0127),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(GetKillingUnitBJ()))call CreateNUnitsAtLoc(1,'nass',Player(6),GetUnitLoc(gg_unit_ncop_0127),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(GetKillingUnitBJ()))call CreateNUnitsAtLoc(1,'nenf',Player(6),GetUnitLoc(gg_unit_ncop_0127),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(GetKillingUnitBJ()))call CreateNUnitsAtLoc(1,'nenf',Player(6),GetUnitLoc(gg_unit_ncop_0127),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(GetKillingUnitBJ()))else
endifendfunctionfunction InitTrig_Smert_Korola_vorov takes nothing returns nothingset gg_trg_Smert_Korola_vorov=CreateTrigger()call DisableTrigger(gg_trg_Smert_Korola_vorov)call TriggerRegisterUnitEvent(gg_trg_Smert_Korola_vorov,gg_unit_nbld_0126,EVENT_UNIT_DEATH)call TriggerAddAction(gg_trg_Smert_Korola_vorov,function Trig_Smert_Korola_vorov_Actions)endfunctionfunction Trig_Marshal_complete_2_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmgd_0057)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Marshal_complete_2_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 750 опыта|r")call DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl")call DestroyEffect(udg_Specefect[7])
call QuestSetCompleted(udg_Zadanie[10],true)
call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Маршал: |r Что ж неплохо, можешь набирать себе отряд из ополченцев в казарме.")call AddUnitToStockBJ('hmil',gg_unit_hbar_0121,0,9)call AddUnitToStockBJ('hmil',gg_unit_hbar_0121,0,9)call AddUnitToStockBJ('hmil',gg_unit_hbar_0110,0,9)call AddUnitToStockBJ('hmil',gg_unit_hbar_0128,0,9)call AddUnitToStockBJ('nhea',gg_unit_hbar_0128,0,9)call AddUnitToStockBJ('nhea',gg_unit_hbar_0110,0,9)call AddUnitToStockBJ('nhea',gg_unit_hbar_0121,0,9)call AddHeroXPSwapped(750,udg_Hero[1],false)
call AddHeroXPSwapped(750,udg_Hero[2],false)
call AddHeroXPSwapped(750,udg_Hero[3],false)
call AddHeroXPSwapped(750,udg_Hero[4],false)
call AddHeroXPSwapped(750,udg_Hero[5],false)
call AddHeroXPSwapped(750,udg_Hero[6],false)
call TriggerSleepAction(240.00)call EnableTrigger(gg_trg_Marshal_3)
endfunctionfunction InitTrig_Marshal_complete_2 takes nothing returns nothingset gg_trg_Marshal_complete_2=CreateTrigger()call DisableTrigger(gg_trg_Marshal_complete_2)call TriggerRegisterUnitInRangeSimple(gg_trg_Marshal_complete_2,256,gg_unit_Hmgd_0057)call TriggerAddCondition(gg_trg_Marshal_complete_2,Condition(function Trig_Marshal_complete_2_Conditions))call TriggerAddAction(gg_trg_Marshal_complete_2,function Trig_Marshal_complete_2_Actions)endfunctionfunction Trig_Marshal_3_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmgd_0057)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Marshal_3_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call EnableTrigger(gg_trg_Smert_Nadziratela)
call SetUnitPositionLoc(gg_unit_ngnv_0150,GetUnitLoc(gg_unit_ncop_0151))
call IssuePointOrderLoc(gg_unit_ngnv_0150,"patrol",GetUnitLoc(gg_unit_ncop_0151))call IssuePointOrderLoc(gg_unit_ngnv_0150,"patrol",GetRectCenter(gg_rct_Zona_7))
call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_ngnv_0150),5.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)call DestroyEffect(udg_Specefect[7])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmgd_0057,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[7]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Гнолл-надзиратель.")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Гнолл-надзиратель","Настало время выгнать гнолов из наших лесов. Мой отряд скоро выдвиниться.Убьем надзирателя , а остальные разбегутся в страхе.
Награда:|c00C8C800 Открытие новых войнов в казарме|r,|c0000FF00 +1500 опыты|r.","ReplaceableTextures\\CommandButtons\\BTNGnollKing.blp")set udg_Zadanie[10]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[10],true)call FlashQuestDialogButton()call TriggerSleepAction(40.00)call DisplayTextToForce(GetPlayersAll(),"Отряд выдвинулся на лагерь надзирателя.")
call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_hmil_0130),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,0.00,100.00,0.00)call IssuePointOrderLoc(gg_unit_hfoo_0145,"attack",GetUnitLoc(gg_unit_ngnv_0150))call IssuePointOrderLoc(gg_unit_hfoo_0144,"attack",GetUnitLoc(gg_unit_ngnv_0150))call IssuePointOrderLoc(gg_unit_hfoo_0143,"attack",GetUnitLoc(gg_unit_ngnv_0150))call IssuePointOrderLoc(gg_unit_hfoo_0142,"attack",GetUnitLoc(gg_unit_ngnv_0150))call IssuePointOrderLoc(gg_unit_hrif_0149,"attack",GetUnitLoc(gg_unit_ngnv_0150))call IssuePointOrderLoc(gg_unit_hrif_0148,"attack",GetUnitLoc(gg_unit_ngnv_0150))call IssuePointOrderLoc(gg_unit_hrif_0147,"attack",GetUnitLoc(gg_unit_ngnv_0150))call IssuePointOrderLoc(gg_unit_hrif_0146,"attack",GetUnitLoc(gg_unit_ngnv_0150))call TriggerSleepAction(3.00)call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_hfoo_0144),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,0.00,100.00,0.00)call TriggerSleepAction(3.00)call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_hfoo_0143),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,0.00,100.00,0.00)endfunctionfunction InitTrig_Marshal_3 takes nothing returns nothingset gg_trg_Marshal_3=CreateTrigger()
call DisableTrigger(gg_trg_Marshal_3)call TriggerRegisterUnitInRangeSimple(gg_trg_Marshal_3,256,gg_unit_Hmgd_0057)call TriggerAddCondition(gg_trg_Marshal_3,Condition(function Trig_Marshal_3_Conditions))
call TriggerAddAction(gg_trg_Marshal_3,function Trig_Marshal_3_Actions)endfunctionfunction Trig_Smert_Nadziratela_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Задание выполнено!|r
Вернитесь за наградой.")call EnableTrigger(gg_trg_Marshal_complete_3)call DestroyEffect(udg_Specefect[7])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmgd_0057,"Abilities\\Spells\\Other\\Aneu\\AneuCaster.mdl")
set udg_Specefect[7]=GetLastCreatedEffectBJ()endfunctionfunction InitTrig_Smert_Nadziratela takes nothing returns nothingset gg_trg_Smert_Nadziratela=CreateTrigger()
call DisableTrigger(gg_trg_Smert_Nadziratela)call TriggerRegisterUnitEvent(gg_trg_Smert_Nadziratela,gg_unit_ngnv_0150,EVENT_UNIT_DEATH)call TriggerAddAction(gg_trg_Smert_Nadziratela,function Trig_Smert_Nadziratela_Actions)endfunctionfunction Trig_Marshal_complete_3_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmgd_0057)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Marshal_complete_3_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 1500 опыта|r")call DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl")call DestroyEffect(udg_Specefect[7])
call QuestSetCompleted(udg_Zadanie[10],true)
call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Маршал: |r Неплохо. Тебе и пехоту доверить можно.")call AddUnitToStockBJ('hfoo',gg_unit_hbar_0121,0,9)call AddUnitToStockBJ('hfoo',gg_unit_hbar_0110,0,9)call AddUnitToStockBJ('hfoo',gg_unit_hbar_0128,0,9)call AddUnitToStockBJ('hrif',gg_unit_hbar_0128,0,9)call AddUnitToStockBJ('hrif',gg_unit_hbar_0110,0,9)call AddUnitToStockBJ('hrif',gg_unit_hbar_0121,0,9)call AddHeroXPSwapped(1500,udg_Hero[1],false)call AddHeroXPSwapped(1500,udg_Hero[2],false)call AddHeroXPSwapped(1500,udg_Hero[3],false)call AddHeroXPSwapped(1500,udg_Hero[4],false)call AddHeroXPSwapped(1500,udg_Hero[5],false)call AddHeroXPSwapped(1500,udg_Hero[6],false)call TriggerSleepAction(20.00)call EnableTrigger(gg_trg_Marshal_4)
endfunctionfunction InitTrig_Marshal_complete_3 takes nothing returns nothingset gg_trg_Marshal_complete_3=CreateTrigger()call DisableTrigger(gg_trg_Marshal_complete_3)call TriggerRegisterUnitInRangeSimple(gg_trg_Marshal_complete_3,256,gg_unit_Hmgd_0057)call TriggerAddCondition(gg_trg_Marshal_complete_3,Condition(function Trig_Marshal_complete_3_Conditions))call TriggerAddAction(gg_trg_Marshal_complete_3,function Trig_Marshal_complete_3_Actions)endfunctionfunction Trig_Marshal_4_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmgd_0057)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Marshal_4_Actions takes nothing returns nothingcall CreateNUnitsAtLoc(1,'uabo',Player(11),GetUnitLoc(gg_unit_uslh_0152),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uabo',Player(11),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'uabo',Player(11),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ugho',Player(11),GetUnitLoc(gg_unit_uslh_0152),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ugho',Player(11),GetUnitLoc(gg_unit_uslh_0152),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call DisableTrigger(GetTriggeringTrigger())call EnableTrigger(gg_trg_Smert_Boynia)call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_uslh_0152),5.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)call DestroyEffect(udg_Specefect[7])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmgd_0057,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[7]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Запрещенные эксперементы.")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Бойня","Мои разведчики обнаружили фанатиков рядом с бойней. Они эксгумируют тела мертвых и проводят какие-то обряды. Это необходимо прекратить. Уничтожьте бойню. Конный отряд скоро выдвинется.
Награда:|c00C8C800 Открытие новых войнов в казарме|r,|c0000FF00 +1 навык|r.","ReplaceableTextures\\CommandButtons\\BTNSlaughterhouse.blp")set udg_Zadanie[10]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[10],true)call FlashQuestDialogButton()call SetUnitInvulnerable(gg_unit_uslh_0152,false)call TriggerSleepAction(40.00)call DisplayTextToForce(GetPlayersAll(),"Отряд выдвинулся на лагерь воров.")
call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_hkni_0156),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,0.00,100.00,0.00)call IssuePointOrderLoc(gg_unit_hkni_0156,"attack",GetUnitLoc(gg_unit_uslh_0152))call IssuePointOrderLoc(gg_unit_hkni_0155,"attack",GetUnitLoc(gg_unit_uslh_0152))call IssuePointOrderLoc(gg_unit_hkni_0154,"attack",GetUnitLoc(gg_unit_uslh_0152))call IssuePointOrderLoc(gg_unit_hkni_0153,"attack",GetUnitLoc(gg_unit_uslh_0152))call TriggerSleepAction(3.00)call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_hkni_0156),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,0.00,100.00,0.00)call TriggerSleepAction(3.00)call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_hkni_0156),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,0.00,100.00,0.00)endfunctionfunction InitTrig_Marshal_4 takes nothing returns nothingset gg_trg_Marshal_4=CreateTrigger()
call DisableTrigger(gg_trg_Marshal_4)call TriggerRegisterUnitInRangeSimple(gg_trg_Marshal_4,256,gg_unit_Hmgd_0057)call TriggerAddCondition(gg_trg_Marshal_4,Condition(function Trig_Marshal_4_Conditions))
call TriggerAddAction(gg_trg_Marshal_4,function Trig_Marshal_4_Actions)endfunctionfunction Trig_Smert_Boynia_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Задание выполнено!|r
Вернитесь за наградой.")call EnableTrigger(gg_trg_Marshal_complete_4)call DestroyEffect(udg_Specefect[7])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmgd_0057,"Abilities\\Spells\\Other\\Aneu\\AneuCaster.mdl")
set udg_Specefect[7]=GetLastCreatedEffectBJ()endfunctionfunction InitTrig_Smert_Boynia takes nothing returns nothing
set gg_trg_Smert_Boynia=CreateTrigger()call DisableTrigger(gg_trg_Smert_Boynia)
call TriggerRegisterUnitEvent(gg_trg_Smert_Boynia,gg_unit_uslh_0152,EVENT_UNIT_DEATH)call TriggerAddAction(gg_trg_Smert_Boynia,function Trig_Smert_Boynia_Actions)endfunctionfunction Trig_Marshal_complete_4_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmgd_0057)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Marshal_complete_4_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +1 навык|r")
call DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl")call DestroyEffect(udg_Specefect[7])
call QuestSetCompleted(udg_Zadanie[10],true)
call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Маршал: |r У тебя и правда есть качества лидера.")call AddUnitToStockBJ('hkni',gg_unit_hbar_0121,0,9)call AddUnitToStockBJ('hkni',gg_unit_hbar_0110,0,9)call AddUnitToStockBJ('hkni',gg_unit_hbar_0128,0,9)call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_LUMBER)+1))
call TriggerSleepAction(5.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmgd_0057,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")set udg_Specefect[7]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Marshal_Oborona)endfunctionfunction InitTrig_Marshal_complete_4 takes nothing returns nothingset gg_trg_Marshal_complete_4=CreateTrigger()call DisableTrigger(gg_trg_Marshal_complete_4)call TriggerRegisterUnitInRangeSimple(gg_trg_Marshal_complete_4,256,gg_unit_Hmgd_0057)call TriggerAddCondition(gg_trg_Marshal_complete_4,Condition(function Trig_Marshal_complete_4_Conditions))call TriggerAddAction(gg_trg_Marshal_complete_4,function Trig_Marshal_complete_4_Actions)endfunctionfunction Trig_Marshal_Oborona_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hmgd_0057)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ajen')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Marshal_Oborona_Actions takes nothing returns nothingcall PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Marshal_Oborona),5.00,bj_MINIMAPPINGSTYLE_FLASHY,100.00,100.00,0.00)call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[7])
call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Маршал: |r Они не пройдут.")call SetUnitPositionLoc(gg_unit_Hmgd_0057,GetRandomLocInRect(gg_rct_Marshal_Oborona))call CreateNUnitsAtLoc(1,'hhes',Player(9),GetRectCenter(gg_rct_Marshal_Oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hhes',Player(9),GetRectCenter(gg_rct_Marshal_Oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hfoo',Player(9),GetRectCenter(gg_rct_Marshal_Oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hfoo',Player(9),GetRectCenter(gg_rct_Marshal_Oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hfoo',Player(9),GetRectCenter(gg_rct_Marshal_Oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hfoo',Player(9),GetRectCenter(gg_rct_Marshal_Oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hfoo',Player(9),GetRectCenter(gg_rct_Marshal_Oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hfoo',Player(9),GetRectCenter(gg_rct_Marshal_Oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hkni',Player(9),GetRectCenter(gg_rct_Marshal_Oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hkni',Player(9),GetRectCenter(gg_rct_Marshal_Oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hkni',Player(9),GetRectCenter(gg_rct_Marshal_Oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hkni',Player(9),GetRectCenter(gg_rct_Marshal_Oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hrif',Player(9),GetRectCenter(gg_rct_Marshal_Oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hrif',Player(9),GetRectCenter(gg_rct_Marshal_Oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hrif',Player(9),GetRectCenter(gg_rct_Marshal_Oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hrif',Player(9),GetRectCenter(gg_rct_Marshal_Oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhea',Player(9),GetRectCenter(gg_rct_Tower_6),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhea',Player(9),GetRectCenter(gg_rct_Tower_6),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhea',Player(9),GetRectCenter(gg_rct_Tower_6),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhea',Player(9),GetRectCenter(gg_rct_Tower_6),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhea',Player(9),GetRectCenter(gg_rct_Tower_5),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhea',Player(9),GetRectCenter(gg_rct_Tower_5),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhea',Player(9),GetRectCenter(gg_rct_Tower_5),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhea',Player(9),GetRectCenter(gg_rct_Tower_5),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhea',Player(9),GetRectCenter(gg_rct_Marshal_Oborona_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhea',Player(9),GetRectCenter(gg_rct_Marshal_Oborona_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhea',Player(9),GetRectCenter(gg_rct_Marshal_Oborona_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhea',Player(9),GetRectCenter(gg_rct_Marshal_Oborona_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhea',Player(9),GetRectCenter(gg_rct_Marshal_Oborona_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hfoo',Player(9),GetRectCenter(gg_rct_Marshal_Oborona_4),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hfoo',Player(9),GetRectCenter(gg_rct_Marshal_Oborona_4),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hkni',Player(9),GetRectCenter(gg_rct_Marshal_Oborona_4),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hfoo',Player(9),GetRectCenter(gg_rct_Marshal_Oborona_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hfoo',Player(9),GetRectCenter(gg_rct_Marshal_Oborona_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hkni',Player(9),GetRectCenter(gg_rct_Marshal_Oborona_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hgtw',Player(9),GetRectCenter(gg_rct_Tower_9),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hgtw',Player(9),GetRectCenter(gg_rct_Tower_10),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'hfoo',Player(9),GetRectCenter(gg_rct_Marshal_Oborona_5),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hfoo',Player(9),GetRectCenter(gg_rct_Marshal_Oborona_5),bj_UNIT_FACING)endfunctionfunction InitTrig_Marshal_Oborona takes nothing returns nothingset gg_trg_Marshal_Oborona=CreateTrigger()call DisableTrigger(gg_trg_Marshal_Oborona)call TriggerRegisterUnitInRangeSimple(gg_trg_Marshal_Oborona,256,gg_unit_Hmgd_0057)call TriggerAddCondition(gg_trg_Marshal_Oborona,Condition(function Trig_Marshal_Oborona_Conditions))
call TriggerAddAction(gg_trg_Marshal_Oborona,function Trig_Marshal_Oborona_Actions)endfunctionfunction Trig_Marshal_Oborona_2_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hlgr_0230)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ajen')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Marshal_Oborona_2_Actions takes nothing returns nothingcall PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Marshal_garitos_Objrjna),5.00,bj_MINIMAPPINGSTYLE_FLASHY,100.00,100.00,0.00)call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[10])call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Маршал Гаритос: |r Мои войны не оставят от них и следа.")call SetUnitPositionLoc(gg_unit_Hlgr_0230,GetRectCenter(gg_rct_Marshal_garitos_Objrjna))
call SetUnitPositionLoc(gg_unit_hkni_0231,GetRandomLocInRect(gg_rct_Marshal_garitos_Objrjna))call SetUnitPositionLoc(gg_unit_hkni_0232,GetRandomLocInRect(gg_rct_Marshal_garitos_Objrjna))call SetUnitPositionLoc(gg_unit_hkni_0233,GetRandomLocInRect(gg_rct_Marshal_garitos_Objrjna))call SetUnitPositionLoc(gg_unit_hkni_0234,GetRandomLocInRect(gg_rct_Marshal_garitos_Objrjna))call SetUnitPositionLoc(gg_unit_hkni_0235,GetRandomLocInRect(gg_rct_Marshal_garitos_Objrjna))call SetUnitPositionLoc(gg_unit_hkni_0236,GetRandomLocInRect(gg_rct_Marshal_garitos_Objrjna))call SetUnitPositionLoc(gg_unit_hkni_0237,GetRandomLocInRect(gg_rct_Marshal_garitos_Objrjna))call SetUnitPositionLoc(gg_unit_hkni_0238,GetRandomLocInRect(gg_rct_Marshal_garitos_Objrjna))call SetUnitPositionLoc(gg_unit_hkni_0239,GetRandomLocInRect(gg_rct_Marshal_garitos_Objrjna))call SetUnitPositionLoc(gg_unit_hkni_0240,GetRandomLocInRect(gg_rct_Marshal_garitos_Objrjna))call SetUnitPositionLoc(gg_unit_hkni_0241,GetRectCenter(gg_rct_Marshal_garitos_Objrjna))
call SetUnitPositionLoc(gg_unit_hkni_0242,GetRectCenter(gg_rct_Marshal_garitos_Objrjna))
call CreateNUnitsAtLoc(1,'hkni',Player(9),GetRectCenter(gg_rct_Marshal_garitos_Objrjna_2),270.00)call CreateNUnitsAtLoc(1,'hkni',Player(9),GetRectCenter(gg_rct_Marshal_garitos_Objrjna_2),270.00)call CreateNUnitsAtLoc(1,'hkni',Player(9),GetRectCenter(gg_rct_Marshal_garitos_Objrjna_3),180.00)call CreateNUnitsAtLoc(1,'hkni',Player(9),GetRectCenter(gg_rct_Marshal_garitos_Objrjna_3),180.00)call CreateNUnitsAtLoc(1,'hkni',Player(9),GetRectCenter(gg_rct_Marshal_garitos_Objrjna_3),180.00)call CreateNUnitsAtLoc(1,'hkni',Player(9),GetRectCenter(gg_rct_Marshal_garitos_Objrjna_4),180.00)call CreateNUnitsAtLoc(1,'hkni',Player(9),GetRectCenter(gg_rct_Marshal_garitos_Objrjna_4),180.00)call CreateNUnitsAtLoc(1,'hkni',Player(9),GetRectCenter(gg_rct_Marshal_garitos_Objrjna_4),180.00)call CreateNUnitsAtLoc(1,'hkni',Player(9),GetRectCenter(gg_rct_Marshal_Oborona_4),180.00)call CreateNUnitsAtLoc(1,'hkni',Player(9),GetRectCenter(gg_rct_Marshal_Oborona_3),180.00)endfunctionfunction InitTrig_Marshal_Oborona_2 takes nothing returns nothingset gg_trg_Marshal_Oborona_2=CreateTrigger()
call DisableTrigger(gg_trg_Marshal_Oborona_2)call TriggerRegisterUnitInRangeSimple(gg_trg_Marshal_Oborona_2,256,gg_unit_Hlgr_0230)call TriggerAddCondition(gg_trg_Marshal_Oborona_2,Condition(function Trig_Marshal_Oborona_2_Conditions))
call TriggerAddAction(gg_trg_Marshal_Oborona_2,function Trig_Marshal_Oborona_2_Actions)endfunctionfunction Trig_Nachalo_rituala_Necromant_Func010Func007C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_ubsp_0080)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Nachalo_rituala_Necromant_Func010C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_u001_0076)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Nachalo_rituala_Necromant_Actions takes nothing returns nothingcall PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_H002_0077),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call SetUnitOwner(gg_unit_uobs_0075,Player(11),true)
call EnableTrigger(gg_trg_Priziv_skeletov)call SetUnitPositionLoc(gg_unit_u001_0076,GetUnitLoc(gg_unit_ncop_0078))
call SetBlightRectBJ(true,Player(11),gg_rct_Kladbishe)call EnableTrigger(gg_trg_Incvizitor_1)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_H002_0077,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[5]=GetLastCreatedEffectBJ()call TriggerSleepAction(240.00)if(Trig_Nachalo_rituala_Necromant_Func010C())thencall DisplayTextToForce(GetPlayersAll(),"|c00FF0000Бальназар пробудился.|r")call DestroyQuest(udg_Zadanie[8])call DisableTrigger(gg_trg_Incvizitor_1)
call KillUnit(gg_unit_uobs_0075)
call SetUnitPositionLoc(gg_unit_ubsp_0080,GetUnitLoc(gg_unit_uobs_0075))
call TriggerSleepAction(120.00)if(Trig_Nachalo_rituala_Necromant_Func010Func007C())then
call DisplayTextToForce(GetPlayersAll(),"|c00FF0000Бальтазар присоединился к армии тьмы.|r")
call SetUnitPositionLoc(gg_unit_ubsp_0080,GetUnitLoc(gg_unit_ncop_0117))
else
endifelse
endifendfunctionfunction InitTrig_Nachalo_rituala_Necromant takes nothing returns nothingset gg_trg_Nachalo_rituala_Necromant=CreateTrigger()
call DisableTrigger(gg_trg_Nachalo_rituala_Necromant)call TriggerRegisterTimerEventSingle(gg_trg_Nachalo_rituala_Necromant,1800.00)call TriggerAddAction(gg_trg_Nachalo_rituala_Necromant,function Trig_Nachalo_rituala_Necromant_Actions)endfunctionfunction Trig_Priziv_skeletov_Func045001 takes nothing returns booleanreturn(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true)endfunctionfunction Trig_Priziv_skeletov_Func045002 takes nothing returns booleanreturn(GetUnitTypeId(GetTriggerUnit())=='hspt')endfunctionfunction Trig_Priziv_skeletov_Conditions takes nothing returns booleanif(not GetBooleanOr(Trig_Priziv_skeletov_Func045001(),Trig_Priziv_skeletov_Func045002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Priziv_skeletov_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(6.00)call CreateNUnitsAtLoc(1,'u002',Player(11),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call AddSpecialEffectLocBJ(GetRandomLocInRect(gg_rct_Kladbishe),"Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl")call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'u002',Player(11),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'u002',Player(11),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'u002',Player(11),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'u002',Player(11),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'u002',Player(11),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'u002',Player(11),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'u002',Player(11),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'u002',Player(11),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'u002',Player(11),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'nska',Player(11),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'nska',Player(11),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'nska',Player(11),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'nska',Player(11),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'nska',Player(11),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'ugar',Player(11),GetUnitLoc(gg_unit_ugrm_0071),bj_UNIT_FACING)
call KillUnit(gg_unit_ugrm_0071)
call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'ugar',Player(11),GetUnitLoc(gg_unit_ugrm_0072),bj_UNIT_FACING)
call KillUnit(gg_unit_ugrm_0072)
call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'ugar',Player(11),GetUnitLoc(gg_unit_ugrm_0074),bj_UNIT_FACING)
call KillUnit(gg_unit_ugrm_0074)
call TriggerSleepAction(1.00)call CreateNUnitsAtLoc(1,'ugar',Player(11),GetUnitLoc(gg_unit_ugrm_0073),bj_UNIT_FACING)
call KillUnit(gg_unit_ugrm_0073)
endfunctionfunction InitTrig_Priziv_skeletov takes nothing returns nothingset gg_trg_Priziv_skeletov=CreateTrigger()call DisableTrigger(gg_trg_Priziv_skeletov)call TriggerRegisterEnterRectSimple(gg_trg_Priziv_skeletov,gg_rct_Kladbishe)
call TriggerAddCondition(gg_trg_Priziv_skeletov,Condition(function Trig_Priziv_skeletov_Conditions))
call TriggerAddAction(gg_trg_Priziv_skeletov,function Trig_Priziv_skeletov_Actions)endfunctionfunction Trig_Incvizitor_1_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_H002_0077)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Incvizitor_1_Actions takes nothing returns nothing
call IssuePointOrderLoc(gg_unit_hspt_0079,"attack",GetUnitLoc(gg_unit_u001_0076))call IssuePointOrderLoc(gg_unit_hspt_0081,"attack",GetUnitLoc(gg_unit_u001_0076))call DisableTrigger(GetTriggeringTrigger())call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Kladbishe),5.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)call DestroyEffect(udg_Specefect[5])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_H002_0077,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[5]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Пробуждение бальтозара.")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Пробуждение бальтозара.","Люди говорят , что на кладбище появился старец. Говорят он проводит ритуал пробуждения. Направляйся с моими людьми и разузнай об этом поподробней. Если это правда то убей его. 
Награда:|c00C8C800 Невидимые стражи|r,|c0000FF00 +1 навык|r.","ReplaceableTextures\\CommandButtons\\BTNDestroyer.blp")
set udg_Zadanie[8]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[8],true)
call FlashQuestDialogButton()endfunctionfunction InitTrig_Incvizitor_1 takes nothing returns nothing
set gg_trg_Incvizitor_1=CreateTrigger()call DisableTrigger(gg_trg_Incvizitor_1)
call TriggerRegisterUnitInRangeSimple(gg_trg_Incvizitor_1,256,gg_unit_H002_0077)
call TriggerAddCondition(gg_trg_Incvizitor_1,Condition(function Trig_Incvizitor_1_Conditions))call TriggerAddAction(gg_trg_Incvizitor_1,function Trig_Incvizitor_1_Actions)endfunctionfunction Trig_Smert_necromanta_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Задание выполнено!|r
Вернитесь за наградой.")call EnableTrigger(gg_trg_Incvizitor_complete)endfunctionfunction InitTrig_Smert_necromanta takes nothing returns nothing
set gg_trg_Smert_necromanta=CreateTrigger()call DisableTrigger(gg_trg_Smert_necromanta)
call TriggerRegisterUnitEvent(gg_trg_Smert_necromanta,gg_unit_u001_0076,EVENT_UNIT_DEATH)call TriggerAddAction(gg_trg_Smert_necromanta,function Trig_Smert_necromanta_Actions)endfunctionfunction Trig_Incvizitor_complete_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_H002_0077)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Incvizitor_complete_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +1 навык|r")
call DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl")call DestroyEffect(udg_Specefect[5])
call QuestSetCompleted(udg_Zadanie[8],true)call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_LUMBER)+1))
endfunctionfunction InitTrig_Incvizitor_complete takes nothing returns nothingset gg_trg_Incvizitor_complete=CreateTrigger()call DisableTrigger(gg_trg_Incvizitor_complete)call TriggerRegisterUnitInRangeSimple(gg_trg_Incvizitor_complete,256,gg_unit_H002_0077)call TriggerAddCondition(gg_trg_Incvizitor_complete,Condition(function Trig_Incvizitor_complete_Conditions))
call TriggerAddAction(gg_trg_Incvizitor_complete,function Trig_Incvizitor_complete_Actions)endfunctionfunction Trig_Incvizitor_2_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_H002_0077)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_ndqp_0118)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Incvizitor_2_Func007C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_nvlw_0119)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Incvizitor_2_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())if(Trig_Incvizitor_2_Func007C())then
call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_nvlw_0119),5.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)else
call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_ndqp_0118),5.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)endifcall DestroyEffect(udg_Specefect[5])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_H002_0077,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[5]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Ведьма")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Ведьма","В деревни пропали 2 ребенка, это происки ведьмы. Помоги нам найти ее и сжеч.Ведьма может скрывать свою внешность, лишь в своем логове она принимает истиное обличие.
Награда:|c00C8C800 Невидимые стражи|r,|c0000FF00 +1 навык|r.","ReplaceableTextures\\CommandButtons\\BTNDemoness.blp")set udg_Zadanie[8]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[8],true)
call FlashQuestDialogButton()call EnableTrigger(gg_trg_Smert_Vedmy)endfunctionfunction InitTrig_Incvizitor_2 takes nothing returns nothing
set gg_trg_Incvizitor_2=CreateTrigger()call DisableTrigger(gg_trg_Incvizitor_2)
call TriggerRegisterUnitInRangeSimple(gg_trg_Incvizitor_2,256,gg_unit_H002_0077)
call TriggerAddCondition(gg_trg_Incvizitor_2,Condition(function Trig_Incvizitor_2_Conditions))call TriggerAddAction(gg_trg_Incvizitor_2,function Trig_Incvizitor_2_Actions)endfunctionfunction Trig_Vedma_v_derevny_Actions takes nothing returns nothingcall PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_H002_0077),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Priziv_skeletov)call SetBlightRectBJ(true,Player(11),gg_rct_Vedma)call EnableTrigger(gg_trg_Incvizitor_2)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_H002_0077,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[5]=GetLastCreatedEffectBJ()call TriggerSleepAction(90.00)call RescueUnitBJ(gg_unit_nvlw_0119,Player(6),true)call TriggerSleepAction(2)call IssuePointOrderLoc(gg_unit_nvlw_0119,"move",GetRectCenter(gg_rct_Vedma))call EnableTrigger(gg_trg_Vedma_smena_oblika)endfunctionfunction InitTrig_Vedma_v_derevny takes nothing returns nothingset gg_trg_Vedma_v_derevny=CreateTrigger()call DisableTrigger(gg_trg_Vedma_v_derevny)call TriggerRegisterTimerEventSingle(gg_trg_Vedma_v_derevny,660.00)call TriggerAddAction(gg_trg_Vedma_v_derevny,function Trig_Vedma_v_derevny_Actions)endfunctionfunction Trig_Vedma_smena_oblika_Func004001 takes nothing returns booleanreturn(GetOwningPlayer(GetTriggerUnit())==Player(6))
endfunctionfunction Trig_Vedma_smena_oblika_Func004002 takes nothing returns booleanreturn(GetUnitTypeId(GetTriggerUnit())=='nvlw')endfunctionfunction Trig_Vedma_smena_oblika_Conditions takes nothing returns booleanif(not GetBooleanOr(Trig_Vedma_smena_oblika_Func004001(),Trig_Vedma_smena_oblika_Func004002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Vedma_smena_oblika_Func003C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_nvlw_0119)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Vedma_smena_oblika_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(2)if(Trig_Vedma_smena_oblika_Func003C())thencall CreatePermanentCorpseLocBJ(bj_CORPSETYPE_FLESH,'nvk2',Player(9),GetRandomLocInRect(gg_rct_Vedma),GetRandomDirectionDeg())call CreatePermanentCorpseLocBJ(bj_CORPSETYPE_FLESH,'nvk2',Player(9),GetRandomLocInRect(gg_rct_Vedma),GetRandomDirectionDeg())call RemoveUnit(gg_unit_nvlw_0119)call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Vedma),"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")call SetUnitPositionLoc(gg_unit_ndqp_0118,GetRectCenter(gg_rct_Vedma))else
endifendfunctionfunction InitTrig_Vedma_smena_oblika takes nothing returns nothingset gg_trg_Vedma_smena_oblika=CreateTrigger()call DisableTrigger(gg_trg_Vedma_smena_oblika)call TriggerRegisterEnterRectSimple(gg_trg_Vedma_smena_oblika,gg_rct_Vedma)call TriggerAddCondition(gg_trg_Vedma_smena_oblika,Condition(function Trig_Vedma_smena_oblika_Conditions))call TriggerAddAction(gg_trg_Vedma_smena_oblika,function Trig_Vedma_smena_oblika_Actions)endfunctionfunction Trig_Smert_Vedmy_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Incvizitor_2)
call DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Задание выполнено!|r
Вернитесь за наградой.")call EnableTrigger(gg_trg_Incvizitor_complete_2)
endfunctionfunction InitTrig_Smert_Vedmy takes nothing returns nothingset gg_trg_Smert_Vedmy=CreateTrigger()call DisableTrigger(gg_trg_Smert_Vedmy)call TriggerRegisterUnitEvent(gg_trg_Smert_Vedmy,gg_unit_nvlw_0119,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(gg_trg_Smert_Vedmy,gg_unit_ndqp_0118,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_Smert_Vedmy,function Trig_Smert_Vedmy_Actions)endfunctionfunction Trig_Incvizitor_complete_2_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_H002_0077)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Incvizitor_complete_2_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +1 навык|r")
call DisableTrigger(GetTriggeringTrigger())call DisableTrigger(gg_trg_Incvizitor_2)
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl")call DestroyEffect(udg_Specefect[5])
call QuestSetCompleted(udg_Zadanie[8],true)call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_LUMBER)+1))
endfunctionfunction InitTrig_Incvizitor_complete_2 takes nothing returns nothingset gg_trg_Incvizitor_complete_2=CreateTrigger()
call DisableTrigger(gg_trg_Incvizitor_complete_2)call TriggerRegisterUnitInRangeSimple(gg_trg_Incvizitor_complete_2,256,gg_unit_H002_0077)call TriggerAddCondition(gg_trg_Incvizitor_complete_2,Condition(function Trig_Incvizitor_complete_2_Conditions))
call TriggerAddAction(gg_trg_Incvizitor_complete_2,function Trig_Incvizitor_complete_2_Actions)endfunctionfunction Trig_Vedma_AI_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='ndqp'))thenreturn false
endifreturn trueendfunctionfunction Trig_Vedma_AI_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call IssueTargetOrder(gg_unit_u000_0041,"fingerofdeath",GetAttacker())call TriggerSleepAction(6.00)call IssuePointOrderLoc(gg_unit_ndqp_0118,"carrionswarm",GetUnitLoc(GetAttacker()))call TriggerSleepAction(3.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Vedma_AI takes nothing returns nothing
set gg_trg_Vedma_AI=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Vedma_AI,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Vedma_AI,Condition(function Trig_Vedma_AI_Conditions))call TriggerAddAction(gg_trg_Vedma_AI,function Trig_Vedma_AI_Actions)endfunctionfunction Trig_Ten_AI_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='u000'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ten_AI_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call IssueTargetOrder(gg_unit_u000_0041,"rejuvination",GetAttacker())call TriggerSleepAction(5.00)call IssuePointOrderLoc(gg_unit_u000_0041,"move",GetRectCenter(gg_rct_Zona_5))call TriggerSleepAction(3.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Ten_AI takes nothing returns nothingset gg_trg_Ten_AI=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ten_AI,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Ten_AI,Condition(function Trig_Ten_AI_Conditions))call TriggerAddAction(gg_trg_Ten_AI,function Trig_Ten_AI_Actions)endfunctionfunction Trig_Troll_zn_1_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hant_0066)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_zn_1_Actions takes nothing returns nothingcall SetUnitPositionLoc(gg_unit_u000_0041,GetRandomLocInRect(gg_rct_Zona_5))
call DisableTrigger(GetTriggeringTrigger())call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Zona_5),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,0.00,0.00,100.00)
call DestroyEffect(udg_Specefect[4])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Orkn_0037,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[4]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Злой дух.")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Злой дух","Духи предков говорят со мной.Тьма сгущается.Тени выходят из тьмы.Злые духи пробираются в наш мир. На севере от нашего лагеря появился злой дух. Что бы уничтожить его воспользуйся невидимыми стражами. 
Награда:|c00C8C800 Невидимые стражи|r,|c0000FF00 +1 навык|r.","ReplaceableTextures\\CommandButtons\\BTNShade.blp")set udg_Zadanie[7]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[7],true)
call FlashQuestDialogButton()endfunctionfunction InitTrig_Troll_zn_1 takes nothing returns nothingset gg_trg_Troll_zn_1=CreateTrigger()call DisableTrigger(gg_trg_Troll_zn_1)call TriggerRegisterUnitInRangeSimple(gg_trg_Troll_zn_1,256,gg_unit_Orkn_0037)call TriggerAddCondition(gg_trg_Troll_zn_1,Condition(function Trig_Troll_zn_1_Conditions))call TriggerAddAction(gg_trg_Troll_zn_1,function Trig_Troll_zn_1_Actions)endfunctionfunction Trig_Ten_dead_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"Вернитесь к знахарю.")
call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[4])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Orkn_0037,"Abilities\\Spells\\Other\\Aneu\\AneuCaster.mdl")
set udg_Specefect[4]=GetLastCreatedEffectBJ()call QuestSetTitle(udg_Zadanie[7],"Вернутся к знахарю.")
call EnableTrigger(gg_trg_Troll_zn_complete)
endfunctionfunction InitTrig_Ten_dead takes nothing returns nothing
set gg_trg_Ten_dead=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Ten_dead,gg_unit_u000_0041,EVENT_UNIT_DEATH)call TriggerAddAction(gg_trg_Ten_dead,function Trig_Ten_dead_Actions)endfunctionfunction Trig_Troll_zn_complete_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Orkn_0037)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_zn_complete_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +1 навык|r")
call DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl")call DestroyEffect(udg_Specefect[4])
call QuestSetCompleted(udg_Zadanie[7],true)call CreateItemLoc('wcyc',GetUnitLoc(GetTriggerUnit()))call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_LUMBER)+1))
endfunctionfunction InitTrig_Troll_zn_complete takes nothing returns nothingset gg_trg_Troll_zn_complete=CreateTrigger()
call DisableTrigger(gg_trg_Troll_zn_complete)call TriggerRegisterUnitInRangeSimple(gg_trg_Troll_zn_complete,256,gg_unit_Orkn_0037)call TriggerAddCondition(gg_trg_Troll_zn_complete,Condition(function Trig_Troll_zn_complete_Conditions))
call TriggerAddAction(gg_trg_Troll_zn_complete,function Trig_Troll_zn_complete_Actions)endfunctionfunction Trig_Oboroten_1_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_n002_0038)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Oboroten_1_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Orkn_0037),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,0.00,100,0.00)call DestroyEffect(udg_Specefect[3])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_n002_0038,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[3]=GetLastCreatedEffectBJ()call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Orkn_0037,"Abilities\\Spells\\Other\\Aneu\\AneuCaster.mdl")
set udg_Specefect[4]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Найти лекарство.")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Лекарство","Медведи чертовы медведи! Или это был волк... Я не успел расмотреть эта тварь поцарапала меня.Городские целители не могут мне помочь , но возможно знахарь знает что делать. Прошу помоги мне...
Награда:|c00C8C800 500 золота|r,|c0000FF00 300 опыта|r.","ReplaceableTextures\\CommandButtons\\BTNGhoulFrenzy.blp")set udg_Zadanie[6]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[6],true)
call FlashQuestDialogButton()call EnableTrigger(gg_trg_Oboroten_2)endfunctionfunction InitTrig_Oboroten_1 takes nothing returns nothingset gg_trg_Oboroten_1=CreateTrigger()call DisableTrigger(gg_trg_Oboroten_1)call TriggerRegisterUnitInRangeSimple(gg_trg_Oboroten_1,256,gg_unit_n002_0038)call TriggerAddCondition(gg_trg_Oboroten_1,Condition(function Trig_Oboroten_1_Conditions))call TriggerAddAction(gg_trg_Oboroten_1,function Trig_Oboroten_1_Actions)endfunctionfunction Trig_Oboroten_2_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Orkn_0037)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Oboroten_2_Actions takes nothing returns nothingcall EnableTrigger(gg_trg_Oboroten_3)call DisableTrigger(GetTriggeringTrigger())call CreateItemLoc('oven',GetRandomLocInRect(gg_rct_Zona_1))
call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Zona_1),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,0.00,100,0.00)call DestroyEffect(udg_Specefect[4])
call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_UPDATED,"|c00C8C800Задание изменилось:|r Найти лекарство.")call QuestSetDescription(udg_Zadanie[6],"Хм это необычные раны. Они несут проклятье.Помочь ему может волчья трава.Но ты должен спешить, пока ему не стало хуже. 
Награда:|c00C8C800 500 золота|r,|c0000FF00 300 опыта|r.")call QuestSetDiscovered(udg_Zadanie[6],true)
call FlashQuestDialogButton()endfunctionfunction InitTrig_Oboroten_2 takes nothing returns nothingset gg_trg_Oboroten_2=CreateTrigger()call DisableTrigger(gg_trg_Oboroten_2)call TriggerRegisterUnitInRangeSimple(gg_trg_Oboroten_2,256,gg_unit_Orkn_0037)call TriggerAddCondition(gg_trg_Oboroten_2,Condition(function Trig_Oboroten_2_Conditions))call TriggerAddAction(gg_trg_Oboroten_2,function Trig_Oboroten_2_Actions)endfunctionfunction Trig_Oboroten_3_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_n002_0038)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'oven')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Oboroten_3_Actions takes nothing returns nothingcall UnitRemoveAbilityBJ('A005',gg_unit_n002_0038)call DisableTrigger(GetTriggeringTrigger())call DisableTrigger(gg_trg_Oboroten_Active)call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'oven'))call QuestSetCompleted(udg_Zadanie[6],true)call DestroyEffect(udg_Specefect[3])
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_GOLD)+500))call AddHeroXPSwapped(300,udg_Hero[1],false)
call AddHeroXPSwapped(300,udg_Hero[2],false)
call AddHeroXPSwapped(300,udg_Hero[3],false)
call AddHeroXPSwapped(300,udg_Hero[4],false)
call AddHeroXPSwapped(300,udg_Hero[5],false)
call AddHeroXPSwapped(300,udg_Hero[6],false)
endfunctionfunction InitTrig_Oboroten_3 takes nothing returns nothingset gg_trg_Oboroten_3=CreateTrigger()call DisableTrigger(gg_trg_Oboroten_3)call TriggerRegisterUnitInRangeSimple(gg_trg_Oboroten_3,256,gg_unit_n002_0038)call TriggerAddCondition(gg_trg_Oboroten_3,Condition(function Trig_Oboroten_3_Conditions))call TriggerAddAction(gg_trg_Oboroten_3,function Trig_Oboroten_3_Actions)endfunctionfunction Trig_Oboroten_Active_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisableTrigger(gg_trg_Oboroten_1)call DisableTrigger(gg_trg_Oboroten_2)call DisableTrigger(gg_trg_Oboroten_3)call DestroyEffect(udg_Specefect[3])
call DestroyEffect(udg_Specefect[4])
call QuestSetFailed(udg_Zadanie[6],true)
call QuestSetCompleted(udg_Zadanie[6],false)
call QuestSetEnabledBJ(false,udg_Zadanie[6])
call DestroyQuest(udg_Zadanie[6])call SetUnitPositionLoc(gg_unit_nfrg_0039,GetUnitLoc(GetDyingUnit()))call TriggerSleepAction(1.00)call IssueImmediateOrder(gg_unit_nfrg_0039,"stop")call TriggerSleepAction(4.00)call IssuePointOrderLoc(gg_unit_nfrg_0039,"patrol",GetRandomLocInRect(gg_rct_Zona_1))call TriggerSleepAction(10.00)call IssuePointOrderLoc(gg_unit_nfrg_0039,"patrol",GetRandomLocInRect(gg_rct_Zona_1))endfunctionfunction InitTrig_Oboroten_Active takes nothing returns nothingset gg_trg_Oboroten_Active=CreateTrigger()call DisableTrigger(gg_trg_Oboroten_Active)call TriggerRegisterUnitEvent(gg_trg_Oboroten_Active,gg_unit_n002_0038,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_Oboroten_Active,function Trig_Oboroten_Active_Actions)endfunctionfunction Trig_Vogak_volkov_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hant_0066)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Vogak_volkov_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Zona_1),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)
call DestroyEffect(udg_Specefect[1])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hant_0066,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[1]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Уничтожить вожака волков.")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Вожак волков.","Ты не заметил, что волков в лесу стало больше… Ну и ладно я недавно видел огромного волка он в несколько раз больше обычных! Кто-то должен его убить. Я бы и сам сходил на него по охотился да стар я уже.
Награда:|c00C8C800 100 золота|r,|c0000FF00 50 опыта|r.","ReplaceableTextures\\CommandButtons\\BTNDireWolf.blp")set udg_Zadanie[4]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[4],true)
call FlashQuestDialogButton()call SetUnitPositionLoc(gg_unit_nwld_0067,GetRandomLocInRect(gg_rct_Zona_1))
call IssuePointOrderLoc(gg_unit_nwld_0067,"patrol",GetRandomLocInRect(gg_rct_Zona_1))call TriggerSleepAction(1.00)call IssuePointOrderLoc(gg_unit_nwld_0067,"patrol",GetRandomLocInRect(gg_rct_Zona_1))call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlg',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
endfunctionfunction InitTrig_Vogak_volkov takes nothing returns nothing
set gg_trg_Vogak_volkov=CreateTrigger()call DisableTrigger(gg_trg_Vogak_volkov)
call TriggerRegisterUnitInRangeSimple(gg_trg_Vogak_volkov,256,gg_unit_Hant_0066)
call TriggerAddCondition(gg_trg_Vogak_volkov,Condition(function Trig_Vogak_volkov_Conditions))call TriggerAddAction(gg_trg_Vogak_volkov,function Trig_Vogak_volkov_Actions)endfunctionfunction Trig_Vogak_volkov_Dead_Func003C takes nothing returns booleanif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Vogak_volkov_Dead_Func004C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=25))then
return false
endifreturn trueendfunctionfunction Trig_Vogak_volkov_Dead_Func005C takes nothing returns booleanif(not(udg_Random_drop>25))thenreturn false
endifif(not(udg_Random_drop<=35))then
return false
endifreturn trueendfunctionfunction Trig_Vogak_volkov_Dead_Func006C takes nothing returns booleanif(not(udg_Random_drop>35))thenreturn false
endifif(not(udg_Random_drop<=40))then
return false
endifreturn trueendfunctionfunction Trig_Vogak_volkov_Dead_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c0000FF00Задание выполнено!|r
Вернитесь за наградой.")set udg_Random_drop=GetRandomInt(1,100)if(Trig_Vogak_volkov_Dead_Func003C())thencall CreateItemLoc('will',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Vogak_volkov_Dead_Func004C())thencall CreateItemLoc('sror',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Vogak_volkov_Dead_Func005C())thencall CreateItemLoc('sman',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Vogak_volkov_Dead_Func006C())thencall CreateItemLoc('scul',GetUnitLoc(GetDyingUnit()))else
endifcall DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[1])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hant_0066,"Abilities\\Spells\\Other\\Aneu\\AneuCaster.mdl")
set udg_Specefect[1]=GetLastCreatedEffectBJ()call QuestSetTitle(udg_Zadanie[4],"Вернутся к эрлу.")call EnableTrigger(gg_trg_Vogak_volkov_Complete)
endfunctionfunction InitTrig_Vogak_volkov_Dead takes nothing returns nothingset gg_trg_Vogak_volkov_Dead=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_Vogak_volkov_Dead,gg_unit_nwld_0067,EVENT_UNIT_DEATH)call TriggerAddAction(gg_trg_Vogak_volkov_Dead,function Trig_Vogak_volkov_Dead_Actions)endfunctionfunction Trig_Vogak_volkov_Complete_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hant_0066)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Vogak_volkov_Complete_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 100 золота|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[1])
call QuestSetCompleted(udg_Zadanie[4],true)call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_GOLD)+100))call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_GOLD)+100))call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_GOLD)+100))call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_GOLD)+100))call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_GOLD)+100))call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_GOLD)+100))call AddHeroXPSwapped(100,udg_Hero[1],false)
call AddHeroXPSwapped(100,udg_Hero[2],false)
call AddHeroXPSwapped(100,udg_Hero[3],false)
call AddHeroXPSwapped(100,udg_Hero[4],false)
call AddHeroXPSwapped(100,udg_Hero[5],false)
call AddHeroXPSwapped(100,udg_Hero[6],false)
call TriggerSleepAction(5.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hant_0066,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[1]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Ochistka_ot_volkov)endfunctionfunction InitTrig_Vogak_volkov_Complete takes nothing returns nothingset gg_trg_Vogak_volkov_Complete=CreateTrigger()
call DisableTrigger(gg_trg_Vogak_volkov_Complete)call TriggerRegisterUnitInRangeSimple(gg_trg_Vogak_volkov_Complete,256,gg_unit_Hant_0066)call TriggerAddCondition(gg_trg_Vogak_volkov_Complete,Condition(function Trig_Vogak_volkov_Complete_Conditions))
call TriggerAddAction(gg_trg_Vogak_volkov_Complete,function Trig_Vogak_volkov_Complete_Actions)endfunctionfunction Trig_kaban_ai_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='nspp'))thenreturn false
endifreturn trueendfunctionfunction Trig_kaban_ai_Actions takes nothing returns nothing
call IssuePointOrderLoc(gg_unit_nspp_0049,"patrol",GetRandomLocInRect(gg_rct_Zona_4))call IssuePointOrderLoc(gg_unit_nspp_0049,"patrol",GetRandomLocInRect(gg_rct_Zona_4))endfunctionfunction InitTrig_kaban_ai takes nothing returns nothing
set gg_trg_kaban_ai=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_kaban_ai,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_kaban_ai,Condition(function Trig_kaban_ai_Conditions))call TriggerAddAction(gg_trg_kaban_ai,function Trig_kaban_ai_Actions)endfunctionfunction Trig_Redkiy_kaban_1_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hant_0066)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Redkiy_kaban_1_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Zona_1),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)
call DestroyEffect(udg_Specefect[1])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hant_0066,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[1]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Охота на кабана.")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Редкий кабан","Поговаривают что в наши леса забрел редкий кабан. Подстрели его для меня, ну а я заплачу.
Награда:|c00C8C800 200 золота|r,","ReplaceableTextures\\CommandButtons\\BTNQuillBeast.blp")set udg_Zadanie[4]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[4],true)
call FlashQuestDialogButton()call SetUnitPositionLoc(gg_unit_nspp_0049,GetRandomLocInRect(gg_rct_Zona_1))
endfunctionfunction InitTrig_Redkiy_kaban_1 takes nothing returns nothingset gg_trg_Redkiy_kaban_1=CreateTrigger()call DisableTrigger(gg_trg_Redkiy_kaban_1)call TriggerRegisterUnitInRangeSimple(gg_trg_Redkiy_kaban_1,256,gg_unit_Hant_0066)call TriggerAddCondition(gg_trg_Redkiy_kaban_1,Condition(function Trig_Redkiy_kaban_1_Conditions))call TriggerAddAction(gg_trg_Redkiy_kaban_1,function Trig_Redkiy_kaban_1_Actions)endfunctionfunction Trig_Kaban_dead_2_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[1])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hant_0066,"Abilities\\Spells\\Other\\Aneu\\AneuCaster.mdl")
set udg_Specefect[1]=GetLastCreatedEffectBJ()call QuestSetTitle(udg_Zadanie[4],"Вернутся к эрлу.")call EnableTrigger(gg_trg_Kaban_3_Complete)endfunctionfunction InitTrig_Kaban_dead_2 takes nothing returns nothing
set gg_trg_Kaban_dead_2=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Kaban_dead_2,gg_unit_nspp_0049,EVENT_UNIT_DEATH)call TriggerAddAction(gg_trg_Kaban_dead_2,function Trig_Kaban_dead_2_Actions)endfunctionfunction Trig_Kaban_3_Complete_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hant_0066)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kaban_3_Complete_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 200 золота|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[1])
call QuestSetCompleted(udg_Zadanie[4],true)call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_GOLD)+200))call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_GOLD)+200))call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_GOLD)+200))call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_GOLD)+200))call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_GOLD)+200))call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_GOLD)+200))call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl")call TriggerSleepAction(5.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hant_0066,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[1]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Ochistka_ot_volkov)endfunctionfunction InitTrig_Kaban_3_Complete takes nothing returns nothing
set gg_trg_Kaban_3_Complete=CreateTrigger()call DisableTrigger(gg_trg_Kaban_3_Complete)
call TriggerRegisterUnitInRangeSimple(gg_trg_Kaban_3_Complete,256,gg_unit_Hant_0066)
call TriggerAddCondition(gg_trg_Kaban_3_Complete,Condition(function Trig_Kaban_3_Complete_Conditions))call TriggerAddAction(gg_trg_Kaban_3_Complete,function Trig_Kaban_3_Complete_Actions)endfunctionfunction Trig_Ochistka_ot_volkov_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hant_0066)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ochistka_ot_volkov_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Zona_1),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)
call DestroyEffect(udg_Specefect[1])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hant_0066,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[1]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Уничтожить всех волков.")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Убить всех волков","Я не буду помогать вам, пока в округе шастают волки.Награда:|c00C8C800 1000 золота|r,","ReplaceableTextures\\CommandButtons\\BTNSpiritWolf.blp")set udg_Zadanie[4]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[4],true)
call FlashQuestDialogButton()call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlg',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call EnableTrigger(gg_trg_Ohistka_ot_volkov_complite)endfunctionfunction InitTrig_Ochistka_ot_volkov takes nothing returns nothingset gg_trg_Ochistka_ot_volkov=CreateTrigger()call DisableTrigger(gg_trg_Ochistka_ot_volkov)call TriggerRegisterUnitInRangeSimple(gg_trg_Ochistka_ot_volkov,256,gg_unit_Hant_0066)call TriggerAddCondition(gg_trg_Ochistka_ot_volkov,Condition(function Trig_Ochistka_ot_volkov_Conditions))call TriggerAddAction(gg_trg_Ochistka_ot_volkov,function Trig_Ochistka_ot_volkov_Actions)endfunctionfunction Trig_Ohistka_ot_volkov_complite_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hant_0066)==true))thenreturn false
endifif(not(udg_Wolf>=300))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohistka_ot_volkov_complite_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 1000 золота|r")
call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[1])
call QuestSetCompleted(udg_Zadanie[4],true)call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_GOLD)+1000))call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_GOLD)+1000))call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_GOLD)+1000))call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_GOLD)+1000))call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_GOLD)+1000))call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_GOLD)+1000))call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl")call TriggerSleepAction(5.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hant_0066,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")set udg_Specefect[1]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Erl_oborona)endfunctionfunction InitTrig_Ohistka_ot_volkov_complite takes nothing returns nothingset gg_trg_Ohistka_ot_volkov_complite=CreateTrigger()call DisableTrigger(gg_trg_Ohistka_ot_volkov_complite)call TriggerRegisterUnitInRangeSimple(gg_trg_Ohistka_ot_volkov_complite,256,gg_unit_Hant_0066)call TriggerAddCondition(gg_trg_Ohistka_ot_volkov_complite,Condition(function Trig_Ohistka_ot_volkov_complite_Conditions))call TriggerAddAction(gg_trg_Ohistka_ot_volkov_complite,function Trig_Ohistka_ot_volkov_complite_Actions)endfunctionfunction Trig_Erl_oborona_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ajen')==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hant_0066)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Erl_oborona_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Marshal_garitos_Objrjna_3),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)call DestroyEffect(udg_Specefect[1])
call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Эрл: |r Заряжен и готов к бою.")call SetUnitPositionLoc(gg_unit_Hant_0066,GetRectCenter(gg_rct_Marshal_garitos_Objrjna_3))call IssueImmediateOrder(gg_unit_Hant_0066,"holdposition")call CreateNUnitsAtLoc(1,'hrif',Player(9),GetRandomLocInRect(gg_rct_Marshal_garitos_Objrjna_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hrif',Player(9),GetRandomLocInRect(gg_rct_Marshal_garitos_Objrjna_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hrif',Player(9),GetRandomLocInRect(gg_rct_Marshal_garitos_Objrjna_4),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hrif',Player(9),GetRandomLocInRect(gg_rct_Marshal_garitos_Objrjna_4),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hrif',Player(9),GetRandomLocInRect(gg_rct_Marshal_garitos_Objrjna_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hrif',Player(9),GetRandomLocInRect(gg_rct_Marshal_garitos_Objrjna_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hrif',Player(9),GetRandomLocInRect(gg_rct_Tower_10),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hrif',Player(9),GetRandomLocInRect(gg_rct_Marshal_garitos_Objrjna),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'hrif',Player(9),GetRandomLocInRect(gg_rct_Marshal_garitos_Objrjna),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'hrif',Player(9),GetRandomLocInRect(gg_rct_Marshal_garitos_Objrjna),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'hrif',Player(9),GetRandomLocInRect(gg_rct_Marshal_garitos_Objrjna),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'hrif',Player(9),GetRandomLocInRect(gg_rct_Marshal_Oborona_4),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hrif',Player(9),GetRandomLocInRect(gg_rct_Marshal_Oborona_4),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hrif',Player(9),GetRandomLocInRect(gg_rct_Marshal_Oborona_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hrif',Player(9),GetRandomLocInRect(gg_rct_Marshal_Oborona_3),bj_UNIT_FACING)endfunctionfunction InitTrig_Erl_oborona takes nothing returns nothingset gg_trg_Erl_oborona=CreateTrigger()call DisableTrigger(gg_trg_Erl_oborona)call TriggerRegisterUnitInRangeSimple(gg_trg_Erl_oborona,256,gg_unit_Hant_0066)call TriggerAddCondition(gg_trg_Erl_oborona,Condition(function Trig_Erl_oborona_Conditions))
call TriggerAddAction(gg_trg_Erl_oborona,function Trig_Erl_oborona_Actions)endfunctionfunction Trig_Kobolt_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_nbee_0106)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kobolt_Func020C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Kobolt_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'nkob',Player(11),GetRectCenter(gg_rct_Rohan),bj_UNIT_FACING)call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Kobolt),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)
call ModifyGateBJ(bj_GATEOPERATION_OPEN,gg_dest_LTg3_0714)call DestroyEffect(udg_Specefect[2])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_nbee_0106,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[2]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Убить предводителя кобольтов")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Кобольты","Эти кобольты не дают нам работать в шахтах. Если ты уничтожиш их предводителя то они разбегутся словно крысы. 
Награда:|c00C8C800 50 золота в день|r,|c0000FF00 250 опыта|r.","ReplaceableTextures\\CommandButtons\\BTNKoboldGeomancer.blp")
set udg_Zadanie[5]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[5],true)
call FlashQuestDialogButton()if(Trig_Kobolt_Func020C())thencall SetUnitPositionLoc(gg_unit_nkol_0107,GetRectCenter(gg_rct_Kobolt))else
call SetUnitPositionLoc(gg_unit_nkog_0108,GetRectCenter(gg_rct_Kobolt))endifcall CreateNUnitsAtLoc(1,'nkot',Player(11),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nkot',Player(11),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nkot',Player(11),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nkot',Player(11),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nkot',Player(11),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nkot',Player(11),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nkot',Player(11),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nkot',Player(11),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nkot',Player(11),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
endfunctionfunction InitTrig_Kobolt takes nothing returns nothingset gg_trg_Kobolt=CreateTrigger()call TriggerRegisterUnitInRangeSimple(gg_trg_Kobolt,256,gg_unit_nbee_0106)call TriggerAddCondition(gg_trg_Kobolt,Condition(function Trig_Kobolt_Conditions))call TriggerAddAction(gg_trg_Kobolt,function Trig_Kobolt_Actions)endfunctionfunction Trig_Kobolt_dead_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c0000FF00Задание выполнено!|r
Вернитесь за наградой.")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[2])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_nbee_0106,"Abilities\\Spells\\Other\\Aneu\\AneuCaster.mdl")
set udg_Specefect[2]=GetLastCreatedEffectBJ()call QuestSetTitle(udg_Zadanie[5],"Вернутся в деревню.")
call EnableTrigger(gg_trg_Kobolt_Complete)endfunctionfunction InitTrig_Kobolt_dead takes nothing returns nothingset gg_trg_Kobolt_dead=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Kobolt_dead,gg_unit_nkol_0107,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(gg_trg_Kobolt_dead,gg_unit_nkog_0108,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_Kobolt_dead,function Trig_Kobolt_dead_Actions)endfunctionfunction Trig_Kobolt_attack_Func001001 takes nothing returns boolean
return(GetUnitTypeId(GetAttackedUnitBJ())==GetUnitTypeId(gg_unit_nkol_0107))
endfunctionfunction Trig_Kobolt_attack_Func001002 takes nothing returns boolean
return(GetUnitTypeId(GetAttackedUnitBJ())==GetUnitTypeId(gg_unit_nkog_0108))
endfunctionfunction Trig_Kobolt_attack_Conditions takes nothing returns boolean
if(not GetBooleanOr(Trig_Kobolt_attack_Func001001(),Trig_Kobolt_attack_Func001002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Kobolt_attack_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Zona_3,Player(11)),"attack",GetUnitLoc(GetAttacker()))
call IssueTargetOrder(GetAttackedUnitBJ(),"ensnare",GetAttacker())call TriggerSleepAction(5.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Kobolt_attack takes nothing returns nothingset gg_trg_Kobolt_attack=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Kobolt_attack,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Kobolt_attack,Condition(function Trig_Kobolt_attack_Conditions))
call TriggerAddAction(gg_trg_Kobolt_attack,function Trig_Kobolt_attack_Actions)endfunctionfunction Trig_Kobolt_Complete_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_nbee_0106)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kobolt_Complete_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 250 опыта / +50 золота ежедневно|r")call DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl")set udg_Gold=(udg_Gold+50)call DestroyEffect(udg_Specefect[2])
call QuestSetCompleted(udg_Zadanie[5],true)call AddHeroXPSwapped(250,udg_Hero[1],false)
call AddHeroXPSwapped(250,udg_Hero[2],false)
call AddHeroXPSwapped(250,udg_Hero[3],false)
call AddHeroXPSwapped(250,udg_Hero[4],false)
call AddHeroXPSwapped(250,udg_Hero[5],false)
call AddHeroXPSwapped(250,udg_Hero[6],false)
call TriggerSleepAction(5.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_nbee_0106,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[2]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Kobolt_ochistka)endfunctionfunction InitTrig_Kobolt_Complete takes nothing returns nothingset gg_trg_Kobolt_Complete=CreateTrigger()call DisableTrigger(gg_trg_Kobolt_Complete)call TriggerRegisterUnitInRangeSimple(gg_trg_Kobolt_Complete,256,gg_unit_nbee_0106)call TriggerAddCondition(gg_trg_Kobolt_Complete,Condition(function Trig_Kobolt_Complete_Conditions))
call TriggerAddAction(gg_trg_Kobolt_Complete,function Trig_Kobolt_Complete_Actions)endfunctionfunction Trig_Kobolt_ochistka_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_nbee_0106)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kobolt_ochistka_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Kobolt),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)
call DestroyEffect(udg_Specefect[2])
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_nbee_0106,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[2]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Очистить подземелье от кобольтов.")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Кобольты","Эти кобольты не дают нам работать в шахтах. Они продолжают нападать на наших рабочих, тебе придется разобратся с ними раз и навсегда. 
Награда:|c00C8C800 100 золота в день|r,|c0000FF00 500 опыта|r.","ReplaceableTextures\\CommandButtons\\BTNKoboldGeomancer.blp")
set udg_Zadanie[5]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[5],true)
call FlashQuestDialogButton()call CreateNUnitsAtLoc(1,'nkot',Player(11),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nkot',Player(11),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
call EnableTrigger(gg_trg_Kobolt_ochistka_Complete)endfunctionfunction InitTrig_Kobolt_ochistka takes nothing returns nothingset gg_trg_Kobolt_ochistka=CreateTrigger()call DisableTrigger(gg_trg_Kobolt_ochistka)call TriggerRegisterUnitInRangeSimple(gg_trg_Kobolt_ochistka,256,gg_unit_nbee_0106)call TriggerAddCondition(gg_trg_Kobolt_ochistka,Condition(function Trig_Kobolt_ochistka_Conditions))
call TriggerAddAction(gg_trg_Kobolt_ochistka,function Trig_Kobolt_ochistka_Actions)endfunctionfunction Trig_Kobolt_ochistka_Complete_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_nbee_0106)==true))thenreturn false
endifif(not(udg_MoobS[1]>=150))thenreturn false
endifreturn trueendfunctionfunction Trig_Kobolt_ochistka_Complete_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 500 опыта / +100 золота ежедневно|r")
call DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\Transmute\\PileofGold.mdl")set udg_Gold=(udg_Gold+100)call DestroyEffect(udg_Specefect[2])
call QuestSetCompleted(udg_Zadanie[5],true)call AddHeroXPSwapped(500,udg_Hero[1],false)
call AddHeroXPSwapped(500,udg_Hero[2],false)
call AddHeroXPSwapped(500,udg_Hero[3],false)
call AddHeroXPSwapped(500,udg_Hero[4],false)
call AddHeroXPSwapped(500,udg_Hero[5],false)
call AddHeroXPSwapped(500,udg_Hero[6],false)
call TriggerSleepAction(5.00)endfunctionfunction InitTrig_Kobolt_ochistka_Complete takes nothing returns nothing
set gg_trg_Kobolt_ochistka_Complete=CreateTrigger()call DisableTrigger(gg_trg_Kobolt_ochistka_Complete)
call TriggerRegisterUnitInRangeSimple(gg_trg_Kobolt_ochistka_Complete,256,gg_unit_nbee_0106)
call TriggerAddCondition(gg_trg_Kobolt_ochistka_Complete,Condition(function Trig_Kobolt_ochistka_Complete_Conditions))call TriggerAddAction(gg_trg_Kobolt_ochistka_Complete,function Trig_Kobolt_ochistka_Complete_Actions)endfunctionfunction Trig_Noviy_instrument_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_nhew_0225)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_n00C_0258)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Noviy_instrument_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call CreateItemLoc('I05O',GetUnitLoc(GetTriggerUnit()))call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_nhew_0225),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)call ModifyGateBJ(bj_GATEOPERATION_OPEN,gg_dest_LTg3_0714)call DestroyEffect(udg_Specefect[12])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_nhew_0225,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[12]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Отнесити инструмент рабочим")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Новые инструменты","Нашим работникам нужны новые инструменты.Не мог бы ты доставить их. 
Награда:|c00C8C800 500 золота|r,","ReplaceableTextures\\CommandButtons\\BTNGatherGold.blp")set udg_Zadanie[11]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[11],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Noviy_instrument_Dostavlen)endfunctionfunction InitTrig_Noviy_instrument takes nothing returns nothing
set gg_trg_Noviy_instrument=CreateTrigger()call DisableTrigger(gg_trg_Noviy_instrument)
call TriggerRegisterUnitInRangeSimple(gg_trg_Noviy_instrument,256,gg_unit_n00C_0258)
call TriggerAddCondition(gg_trg_Noviy_instrument,Condition(function Trig_Noviy_instrument_Conditions))call TriggerAddAction(gg_trg_Noviy_instrument,function Trig_Noviy_instrument_Actions)endfunctionfunction Trig_Noviy_instrument_Dostavlen_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_nhew_0225)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_n00C_0258)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05O')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Noviy_instrument_Dostavlen_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 500 золота|r")call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Эльф: |r Ну наконец то, давненько мы их ждем. ")call DisableTrigger(GetTriggeringTrigger())call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05O'))call DestroyEffect(udg_Specefect[12])call QuestSetCompleted(udg_Zadanie[11],true)
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_GOLD)+500))endfunctionfunction InitTrig_Noviy_instrument_Dostavlen takes nothing returns nothingset gg_trg_Noviy_instrument_Dostavlen=CreateTrigger()call DisableTrigger(gg_trg_Noviy_instrument_Dostavlen)call TriggerRegisterUnitInRangeSimple(gg_trg_Noviy_instrument_Dostavlen,256,gg_unit_nhew_0225)call TriggerAddCondition(gg_trg_Noviy_instrument_Dostavlen,Condition(function Trig_Noviy_instrument_Dostavlen_Conditions))call TriggerAddAction(gg_trg_Noviy_instrument_Dostavlen,function Trig_Noviy_instrument_Dostavlen_Actions)endfunctionfunction Trig_Zapusk_ukradenaya_povozka_Actions takes nothing returns nothingcall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_n00C_0258,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[11]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Ukradenaya_povozka)call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_n00C_0258),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)endfunctionfunction InitTrig_Zapusk_ukradenaya_povozka takes nothing returns nothingset gg_trg_Zapusk_ukradenaya_povozka=CreateTrigger()
call DisableTrigger(gg_trg_Zapusk_ukradenaya_povozka)call TriggerRegisterTimerEventSingle(gg_trg_Zapusk_ukradenaya_povozka,GetRandomReal(300.00,660.00))call TriggerAddAction(gg_trg_Zapusk_ukradenaya_povozka,function Trig_Zapusk_ukradenaya_povozka_Actions)endfunctionfunction Trig_Ukradenaya_povozka_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_n00C_0258)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ukradenaya_povozka_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'h003',Player(10),GetRandomLocInRect(gg_rct_Ukradenaya_Povozka),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h003',Player(10),GetRandomLocInRect(gg_rct_Ukradenaya_Povozka),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h003',Player(10),GetRandomLocInRect(gg_rct_Ukradenaya_Povozka),bj_UNIT_FACING)
call CreateItemLoc('I05P',GetRandomLocInRect(gg_rct_Ukradenaya_Povozka))
call CreateItemLoc('I05P',GetRandomLocInRect(gg_rct_Ukradenaya_Povozka))
call CreateItemLoc('I05P',GetRandomLocInRect(gg_rct_Ukradenaya_Povozka))
call CreateItemLoc('I05P',GetRandomLocInRect(gg_rct_Ukradenaya_Povozka))
call CreateItemLoc('I05P',GetRandomLocInRect(gg_rct_Ukradenaya_Povozka))
call CreateItemLoc('I05Q',GetRandomLocInRect(gg_rct_Ukradenaya_Povozka))
call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Ukradenaya_Povozka),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)
call DestroyEffect(udg_Specefect[12])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_n00C_0258,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[12]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Вернуть груз")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Вернуть груз","Бандиты украли у нас повозку золота. Там находились отчеты.Верни отчет, а золото можеш оставить себе. 
Награда:|c00C8C800 500 золота|r,","ReplaceableTextures\\CommandButtons\\BTNSpy.blp")set udg_Zadanie[11]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[11],true)call FlashQuestDialogButton()call CreatePermanentCorpseLocBJ(bj_CORPSETYPE_FLESH,'hbew',Player(9),GetRectCenter(gg_rct_Ukradenaya_Povozka),GetRandomDirectionDeg())call EnableTrigger(gg_trg_Ukradeniy_otshet)endfunctionfunction InitTrig_Ukradenaya_povozka takes nothing returns nothingset gg_trg_Ukradenaya_povozka=CreateTrigger()call DisableTrigger(gg_trg_Ukradenaya_povozka)call TriggerRegisterUnitInRangeSimple(gg_trg_Ukradenaya_povozka,256,gg_unit_n00C_0258)call TriggerAddCondition(gg_trg_Ukradenaya_povozka,Condition(function Trig_Ukradenaya_povozka_Conditions))call TriggerAddAction(gg_trg_Ukradenaya_povozka,function Trig_Ukradenaya_povozka_Actions)endfunctionfunction Trig_Ukradeniy_otshet_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_n00C_0258)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05Q')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ukradeniy_otshet_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 500 золота|r")call DisableTrigger(GetTriggeringTrigger())call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05Q'))call DestroyEffect(udg_Specefect[12])call QuestSetCompleted(udg_Zadanie[11],true)
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_GOLD)+500))endfunctionfunction InitTrig_Ukradeniy_otshet takes nothing returns nothing
set gg_trg_Ukradeniy_otshet=CreateTrigger()call DisableTrigger(gg_trg_Ukradeniy_otshet)
call TriggerRegisterUnitInRangeSimple(gg_trg_Ukradeniy_otshet,256,gg_unit_n00C_0258)
call TriggerAddCondition(gg_trg_Ukradeniy_otshet,Condition(function Trig_Ukradeniy_otshet_Conditions))call TriggerAddAction(gg_trg_Ukradeniy_otshet,function Trig_Ukradeniy_otshet_Actions)endfunctionfunction Trig_Zelie_omologeniya_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Nalc_0268)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zelie_omologeniya_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateItemLoc('I03B',GetRandomLocInRect(gg_rct_Zona_6))
call CreateItemLoc('I03B',GetRandomLocInRect(gg_rct_Zona_8))
call CreateItemLoc('I03B',GetRandomLocInRect(gg_rct_Zona_8))
call CreateItemLoc('I03B',GetRandomLocInRect(gg_rct_Elfy))call CreateItemLoc('I03B',GetRandomLocInRect(gg_rct_Zona_1))
call CreateItemLoc('I03B',GetRandomLocInRect(gg_rct_Zona_4))
call DestroyEffect(udg_Specefect[13])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Nalc_0268,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[13]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Новый эликсир")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Новый эликсир","Мне кажеться я нашел новый эликсир. Мне не хвватает только бессмертника. Это растение может расти где угодно. Мне нужно 4 экземпляра.  
Награда:|c00C8C800 Доступ к новым зельям|r,","ReplaceableTextures\\CommandButtons\\BTNGreaterRejuvPotion.blp")set udg_Zadanie[12]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[12],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Omologenie_1)endfunctionfunction InitTrig_Zelie_omologeniya takes nothing returns nothingset gg_trg_Zelie_omologeniya=CreateTrigger()
call DisableTrigger(gg_trg_Zelie_omologeniya)call TriggerRegisterUnitInRangeSimple(gg_trg_Zelie_omologeniya,256,gg_unit_Nalc_0268)call TriggerAddCondition(gg_trg_Zelie_omologeniya,Condition(function Trig_Zelie_omologeniya_Conditions))
call TriggerAddAction(gg_trg_Zelie_omologeniya,function Trig_Zelie_omologeniya_Actions)endfunctionfunction Trig_Omologenie_1_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Nalc_0268)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Omologenie_1_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Добавлен новый эликсир.|r")call DisableTrigger(GetTriggeringTrigger())call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I03B'))call AddItemToStockBJ('tcas',gg_unit_ovln_0265,0,1)call AddItemToStockBJ('tcas',gg_unit_ovln_0266,0,1)call EnableTrigger(gg_trg_Omologenie_2)endfunctionfunction InitTrig_Omologenie_1 takes nothing returns nothing
set gg_trg_Omologenie_1=CreateTrigger()call DisableTrigger(gg_trg_Omologenie_1)
call TriggerRegisterUnitInRangeSimple(gg_trg_Omologenie_1,256,gg_unit_Nalc_0268)
call TriggerAddCondition(gg_trg_Omologenie_1,Condition(function Trig_Omologenie_1_Conditions))call TriggerAddAction(gg_trg_Omologenie_1,function Trig_Omologenie_1_Actions)endfunctionfunction Trig_Omologenie_2_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Nalc_0268)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Omologenie_2_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Добавлен новый эликсир.|r")call DisableTrigger(GetTriggeringTrigger())call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I03B'))call AddItemToStockBJ('rej3',gg_unit_ovln_0265,0,1)call AddItemToStockBJ('rej3',gg_unit_ovln_0266,0,1)call EnableTrigger(gg_trg_Omologenie_3)endfunctionfunction InitTrig_Omologenie_2 takes nothing returns nothing
set gg_trg_Omologenie_2=CreateTrigger()call DisableTrigger(gg_trg_Omologenie_2)
call TriggerRegisterUnitInRangeSimple(gg_trg_Omologenie_2,256,gg_unit_Nalc_0268)
call TriggerAddCondition(gg_trg_Omologenie_2,Condition(function Trig_Omologenie_2_Conditions))call TriggerAddAction(gg_trg_Omologenie_2,function Trig_Omologenie_2_Actions)endfunctionfunction Trig_Omologenie_3_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Nalc_0268)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Omologenie_3_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Добавлен новый эликсир.|r")call DisableTrigger(GetTriggeringTrigger())call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I03B'))call AddItemToStockBJ('tgrh',gg_unit_ovln_0265,0,1)call AddItemToStockBJ('tgrh',gg_unit_ovln_0266,0,1)call EnableTrigger(gg_trg_Omologenie_4)endfunctionfunction InitTrig_Omologenie_3 takes nothing returns nothing
set gg_trg_Omologenie_3=CreateTrigger()call DisableTrigger(gg_trg_Omologenie_3)
call TriggerRegisterUnitInRangeSimple(gg_trg_Omologenie_3,256,gg_unit_Nalc_0268)
call TriggerAddCondition(gg_trg_Omologenie_3,Condition(function Trig_Omologenie_3_Conditions))call TriggerAddAction(gg_trg_Omologenie_3,function Trig_Omologenie_3_Actions)endfunctionfunction Trig_Omologenie_4_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Nalc_0268)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Omologenie_4_Func016C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Omologenie_4_Func017C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Omologenie_4_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Добавлен новый эликсир.|r")call DisableTrigger(GetTriggeringTrigger())call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I03B'))call AddItemToStockBJ('spro',gg_unit_ovln_0265,0,1)call AddItemToStockBJ('spro',gg_unit_ovln_0266,0,1)call DestroyEffect(udg_Specefect[13])call QuestSetCompleted(udg_Zadanie[12],true)
call TriggerSleepAction(480.00)set udg_Random=GetRandomInt(1,3)
if(Trig_Omologenie_4_Func016C())then
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Nalc_0268,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[13]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Zelie_vozrogdenie)
call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Nalc_0268),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)else
endifif(Trig_Omologenie_4_Func017C())then
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Nalc_0268,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[13]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Zelie_berserka)call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Nalc_0268),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)else
endifendfunctionfunction InitTrig_Omologenie_4 takes nothing returns nothing
set gg_trg_Omologenie_4=CreateTrigger()call DisableTrigger(gg_trg_Omologenie_4)
call TriggerRegisterUnitInRangeSimple(gg_trg_Omologenie_4,256,gg_unit_Nalc_0268)
call TriggerAddCondition(gg_trg_Omologenie_4,Condition(function Trig_Omologenie_4_Conditions))call TriggerAddAction(gg_trg_Omologenie_4,function Trig_Omologenie_4_Actions)endfunctionfunction Trig_Zelie_vozrogdenie_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Nalc_0268)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zelie_vozrogdenie_Actions takes nothing returns nothingcall SetUnitPositionLoc(gg_unit_hphx_0272,GetRectCenter(gg_rct_Fenics))call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[13])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Nalc_0268,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[13]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Зелье возрождение")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Новый эликсир","Я нашел это.Самый мощный эликсир из возможных.  
Правда для его создания необходимо яйцо феникса.Если достанешь мы будим великими алхимиками.
Награда:|c00C8C800 Доступ к новым зельям|r,","ReplaceableTextures\\CommandButtons\\BTNPotionOfRestoration.blp")set udg_Zadanie[12]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[12],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Zelie_vozrogdeniya_complete)endfunctionfunction InitTrig_Zelie_vozrogdenie takes nothing returns nothingset gg_trg_Zelie_vozrogdenie=CreateTrigger()
call DisableTrigger(gg_trg_Zelie_vozrogdenie)call TriggerRegisterUnitInRangeSimple(gg_trg_Zelie_vozrogdenie,256,gg_unit_Nalc_0268)call TriggerAddCondition(gg_trg_Zelie_vozrogdenie,Condition(function Trig_Zelie_vozrogdenie_Conditions))
call TriggerAddAction(gg_trg_Zelie_vozrogdenie,function Trig_Zelie_vozrogdenie_Actions)endfunctionfunction Trig_Zelie_vozrogdeniya_complete_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Nalc_0268)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I046')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zelie_vozrogdeniya_complete_Func009C takes nothing returns boolean
if(not(udg_Random<=3))thenreturn false
endifreturn trueendfunctionfunction Trig_Zelie_vozrogdeniya_complete_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[13])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I046'))call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Алхимик:|rТак приступим к эксперементу")call QuestSetCompleted(udg_Zadanie[12],true)
call TriggerSleepAction(5.00)set udg_Random=GetRandomInt(1,5)
if(Trig_Zelie_vozrogdeniya_complete_Func009C())thencall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Алхимик:|rВсе получилось как я и говорил. Это величайший эликсир.")call AddItemToStockBJ('pres',gg_unit_ovln_0265,0,1)call AddItemToStockBJ('pres',gg_unit_ovln_0266,0,1)else
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Алхимик:|r Черт феникс нестабилен.Бежим!!!")call CreateNUnitsAtLoc(1,'u007',Player(11),GetUnitLoc(gg_unit_Nalc_0268),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"flamestrike",GetUnitLoc(gg_unit_Nalc_0268))call CreateNUnitsAtLoc(1,'u007',Player(11),GetUnitLoc(gg_unit_Nalc_0268),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"flamestrike",GetUnitLoc(gg_unit_Nalc_0268))call TriggerSleepAction(2)call CreateNUnitsAtLoc(1,'hphx',Player(10),GetUnitLoc(gg_unit_Nalc_0268),bj_UNIT_FACING)
endifendfunctionfunction InitTrig_Zelie_vozrogdeniya_complete takes nothing returns nothingset gg_trg_Zelie_vozrogdeniya_complete=CreateTrigger()call DisableTrigger(gg_trg_Zelie_vozrogdeniya_complete)call TriggerRegisterUnitInRangeSimple(gg_trg_Zelie_vozrogdeniya_complete,256,gg_unit_Nalc_0268)call TriggerAddCondition(gg_trg_Zelie_vozrogdeniya_complete,Condition(function Trig_Zelie_vozrogdeniya_complete_Conditions))
call TriggerAddAction(gg_trg_Zelie_vozrogdeniya_complete,function Trig_Zelie_vozrogdeniya_complete_Actions)endfunctionfunction Trig_Zelie_berserka_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Nalc_0268)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zelie_berserka_Actions takes nothing returns nothingcall SetUnitPositionLoc(gg_unit_n00D_0274,GetRectCenter(gg_rct_Fenics))call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[13])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Nalc_0268,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[13]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Зелье берсерка")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Новый эликсир","Ты слышал о крови демонах?Говорят орки вкусившее крови демона становятся в несколько раз сильнее.Если бы у меня была кровь, возможно я бы смог сделать эликсир дающий невероятную силу.Награда:|c00C8C800 Зелье берсерка|r,","ReplaceableTextures\\CommandButtons\\BTNGreaterInvulneralbility.blp")set udg_Zadanie[12]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[12],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Zelie_berserka_complete)endfunctionfunction InitTrig_Zelie_berserka takes nothing returns nothingset gg_trg_Zelie_berserka=CreateTrigger()call DisableTrigger(gg_trg_Zelie_berserka)call TriggerRegisterUnitInRangeSimple(gg_trg_Zelie_berserka,256,gg_unit_Nalc_0268)call TriggerAddCondition(gg_trg_Zelie_berserka,Condition(function Trig_Zelie_berserka_Conditions))call TriggerAddAction(gg_trg_Zelie_berserka,function Trig_Zelie_berserka_Actions)endfunctionfunction Trig_Zelie_berserka_complete_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Nalc_0268)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I047')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zelie_berserka_complete_Func009C takes nothing returns boolean
if(not(udg_Random<=3))thenreturn false
endifreturn trueendfunctionfunction Trig_Zelie_berserka_complete_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[13])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I047'))call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Алхимик:|rТак сейчас смешаем вот с этим и попробуем...")
call QuestSetCompleted(udg_Zadanie[12],true)
call TriggerSleepAction(5.00)set udg_Random=GetRandomInt(1,5)
if(Trig_Zelie_berserka_complete_Func009C())thencall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Алхимик:|rНевероятно я чуствую себя сильнее, вот держи эта твоя часть.")call CreateItemLoc('I048',GetUnitLoc(GetTriggerUnit()))else
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Алхимик:|r Что то не так....Не работает агрррхх... Я вас всех уничтожу...")
call TriggerSleepAction(2)call SetUnitOwner(gg_unit_Nalc_0268,Player(10),false)call IssueImmediateOrder(gg_unit_Nalc_0268,"chemicalrage")endifendfunctionfunction InitTrig_Zelie_berserka_complete takes nothing returns nothingset gg_trg_Zelie_berserka_complete=CreateTrigger()call DisableTrigger(gg_trg_Zelie_berserka_complete)call TriggerRegisterUnitInRangeSimple(gg_trg_Zelie_berserka_complete,256,gg_unit_Nalc_0268)call TriggerAddCondition(gg_trg_Zelie_berserka_complete,Condition(function Trig_Zelie_berserka_complete_Conditions))
call TriggerAddAction(gg_trg_Zelie_berserka_complete,function Trig_Zelie_berserka_complete_Actions)endfunctionfunction Trig_Zapusk_Func001Func025C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_nchp_0105)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zapusk_Func001C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_nbee_0291)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Ntin_0305)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zapusk_Actions takes nothing returns nothingif(Trig_Zapusk_Func001C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_nbee_0291,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[14]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Vzriv_v_shahte)call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_nbee_0291),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)else
call ModifyGateBJ(bj_GATEOPERATION_DESTROY,gg_dest_DTrc_1413)call ModifyGateBJ(bj_GATEOPERATION_DESTROY,gg_dest_DTrc_1414)call ModifyGateBJ(bj_GATEOPERATION_DESTROY,gg_dest_DTrc_1416)call ModifyGateBJ(bj_GATEOPERATION_DESTROY,gg_dest_DTrc_1415)call ModifyGateBJ(bj_GATEOPERATION_DESTROY,gg_dest_DTrc_1417)call ModifyGateBJ(bj_GATEOPERATION_DESTROY,gg_dest_DTrc_0792)call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspb',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspb',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call TriggerSleepAction(2)if(Trig_Zapusk_Func001Func025C())thencall GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Podzemelie_neruba_1,Player(10)),"attack",GetUnitLoc(gg_unit_nchp_0105))else
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Podzemelie_neruba_1,Player(10)),"attack",GetUnitLoc(gg_unit_h007_0208))endifendifendfunctionfunction InitTrig_Zapusk takes nothing returns nothingset gg_trg_Zapusk=CreateTrigger()call TriggerRegisterTimerEventSingle(gg_trg_Zapusk,GetRandomReal(1200.00,2400.00))call TriggerAddAction(gg_trg_Zapusk,function Trig_Zapusk_Actions)endfunctionfunction Trig_Vzriv_v_shahte_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_nbee_0291)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Vzriv_v_shahte_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateItemLoc('I049',GetUnitLoc(gg_unit_Ntin_0305))
call DestroyEffect(udg_Specefect[14])call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Взорвать проход")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Взорвать проход","Ты видел завал в конце пещеры? Если бы у нас был порох мы бы могли его расчистить. Попроси пороха у механика,","ReplaceableTextures\\CommandButtons\\BTNGreaterRejuvPotion.blp")set udg_Zadanie[13]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[13],true)call FlashQuestDialogButton()endfunctionfunction InitTrig_Vzriv_v_shahte takes nothing returns nothingset gg_trg_Vzriv_v_shahte=CreateTrigger()call DisableTrigger(gg_trg_Vzriv_v_shahte)call TriggerRegisterUnitInRangeSimple(gg_trg_Vzriv_v_shahte,256,gg_unit_nbee_0291)call TriggerAddCondition(gg_trg_Vzriv_v_shahte,Condition(function Trig_Vzriv_v_shahte_Conditions))call TriggerAddAction(gg_trg_Vzriv_v_shahte,function Trig_Vzriv_v_shahte_Actions)endfunctionfunction Trig_Vzriv_prohoda_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I049')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Vzriv_prohoda_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I049'))call CreateNUnitsAtLoc(1,'u007',Player(11),GetRectCenter(gg_rct_Zaval),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"flamestrike",GetRectCenter(gg_rct_Zaval))call TriggerSleepAction(2)call QuestSetCompleted(udg_Zadanie[13],true)
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call ModifyGateBJ(bj_GATEOPERATION_DESTROY,gg_dest_DTrc_1413)call ModifyGateBJ(bj_GATEOPERATION_DESTROY,gg_dest_DTrc_1414)call ModifyGateBJ(bj_GATEOPERATION_DESTROY,gg_dest_DTrc_1416)call ModifyGateBJ(bj_GATEOPERATION_DESTROY,gg_dest_DTrc_1415)call ModifyGateBJ(bj_GATEOPERATION_DESTROY,gg_dest_DTrc_1417)call ModifyGateBJ(bj_GATEOPERATION_DESTROY,gg_dest_DTrc_0792)endfunctionfunction InitTrig_Vzriv_prohoda takes nothing returns nothingset gg_trg_Vzriv_prohoda=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Vzriv_prohoda,gg_rct_Zaval)call TriggerAddCondition(gg_trg_Vzriv_prohoda,Condition(function Trig_Vzriv_prohoda_Conditions))
call TriggerAddAction(gg_trg_Vzriv_prohoda,function Trig_Vzriv_prohoda_Actions)endfunctionfunction Trig_Zapusk_Kel_Func002C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Zapusk_Kel_Func003C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Zapusk_Kel_Func004C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Zapusk_Kel_Func005C takes nothing returns booleanif(not(udg_Random==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Zapusk_Kel_Func006C takes nothing returns booleanif(not(udg_Random==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Zapusk_Kel_Func007C takes nothing returns booleanif(not(udg_Random==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Zapusk_Kel_Func008C takes nothing returns booleanif(not(udg_Random==7))thenreturn false
endifreturn trueendfunctionfunction Trig_Zapusk_Kel_Func009C takes nothing returns booleanif(not(udg_Random==8))thenreturn false
endifreturn trueendfunctionfunction Trig_Zapusk_Kel_Func010C takes nothing returns booleanif(not(udg_Random==9))thenreturn false
endifreturn trueendfunctionfunction Trig_Zapusk_Kel_Func011C takes nothing returns booleanif(not(udg_Random==10))thenreturn false
endifreturn trueendfunctionfunction Trig_Zapusk_Kel_Func012C takes nothing returns booleanif(not(udg_Random==11))thenreturn false
endifreturn trueendfunctionfunction Trig_Zapusk_Kel_Func013C takes nothing returns booleanif(not(udg_Random==12))thenreturn false
endifreturn trueendfunctionfunction Trig_Zapusk_Kel_Actions takes nothing returns nothingset udg_Random=GetRandomInt(1,12)if(Trig_Zapusk_Kel_Func002C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_morey)
else
endifif(Trig_Zapusk_Kel_Func003C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_ognia)
else
endifif(Trig_Zapusk_Kel_Func004C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_lda)else
endifif(Trig_Zapusk_Kel_Func005C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_Groma)
else
endifif(Trig_Zapusk_Kel_Func006C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_yada)else
endifif(Trig_Zapusk_Kel_Func007C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_Zamedleniya)else
endifif(Trig_Zapusk_Kel_Func008C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_tmy)else
endifif(Trig_Zapusk_Kel_Func009C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_Prokliatiy)else
endifif(Trig_Zapusk_Kel_Func010C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_Angela)else
endifif(Trig_Zapusk_Kel_Func011C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_Astrala)else
endifif(Trig_Zapusk_Kel_Func012C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_krovy)
else
endifif(Trig_Zapusk_Kel_Func013C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_sveta)
else
endifendfunctionfunction InitTrig_Zapusk_Kel takes nothing returns nothingset gg_trg_Zapusk_Kel=CreateTrigger()call TriggerRegisterTimerEventSingle(gg_trg_Zapusk_Kel,GetRandomReal(500.00,1500.00))call TriggerAddAction(gg_trg_Zapusk_Kel,function Trig_Zapusk_Kel_Actions)endfunctionfunction Trig_Duh_morey_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hkal_0220)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_morey_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[15])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Objects\\RandomObject\\RandomObject.mdl")call SetUnitPositionLoc(gg_unit_nsel_0347,GetRectCenter(gg_rct_Vodinoy))
call CreateNUnitsAtLoc(1,'nrel',Player(10),GetRandomLocInRect(gg_rct_Vodinoy),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nrel',Player(10),GetRandomLocInRect(gg_rct_Vodinoy),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nrel',Player(10),GetRandomLocInRect(gg_rct_Vodinoy),bj_UNIT_FACING)call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_nsel_0347),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)set udg_Specefect[15]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Дух океана")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Дух океана","Мы обнаружили сферу. К сожалению ее охраняет могущественный дух. Если принесёшь мне|c0030c5d8 Сферу воды|r, что бы я мог ее изучить, то я поделюсь с тобой моими знаниями.  
Награда:|c00C8C800 +1 к характеристикам|r,","ReplaceableTextures\\CommandButtons\\BTNSeaElemental.blp")
set udg_Zadanie[14]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[14],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Duh_morey_complete)endfunctionfunction InitTrig_Duh_morey takes nothing returns nothingset gg_trg_Duh_morey=CreateTrigger()
call DisableTrigger(gg_trg_Duh_morey)call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_morey,256,gg_unit_Hkal_0220)call TriggerAddCondition(gg_trg_Duh_morey,Condition(function Trig_Duh_morey_Conditions))
call TriggerAddAction(gg_trg_Duh_morey,function Trig_Duh_morey_Actions)endfunctionfunction Trig_Duh_morey_complete_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'skrt')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_morey_complete_Func030C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_Nfir_0348)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_morey_complete_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +1 к характеристикам|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[15])call QuestSetCompleted(udg_Zadanie[14],true)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call TriggerSleepAction(90.00)if(Trig_Duh_morey_complete_Func030C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_ognia)
else
endifendfunctionfunction InitTrig_Duh_morey_complete takes nothing returns nothingset gg_trg_Duh_morey_complete=CreateTrigger()call DisableTrigger(gg_trg_Duh_morey_complete)call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_morey_complete,256,gg_unit_Hkal_0220)call TriggerAddCondition(gg_trg_Duh_morey_complete,Condition(function Trig_Duh_morey_complete_Conditions))call TriggerAddAction(gg_trg_Duh_morey_complete,function Trig_Duh_morey_complete_Actions)endfunctionfunction Trig_Duh_ognia_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hkal_0220)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_ognia_Func025C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_Nfir_0348)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_ognia_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[15])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Objects\\RandomObject\\RandomObject.mdl")call SetUnitPositionLoc(gg_unit_Nfir_0348,GetRectCenter(gg_rct_Ogneniy))
call CreateNUnitsAtLoc(1,'nlv3',Player(10),GetRandomLocInRect(gg_rct_Ogneniy),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nlv3',Player(10),GetRandomLocInRect(gg_rct_Ogneniy),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nlv3',Player(10),GetRandomLocInRect(gg_rct_Ogneniy),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nlv3',Player(10),GetRandomLocInRect(gg_rct_Ogneniy),bj_UNIT_FACING)call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Nfir_0348),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)set udg_Specefect[15]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Дух огня")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Дух огня","Мы обнаружили появление сферы огня. Артефакт пробудил духов огня, необходимо срочно ее изучить. Если медлить, то духи огня скоро будут нападать на деревни и города.Доставь мне сферут для изучения. 
Награда:|c00C8C800 +1 к характеристикам|r","ReplaceableTextures\\CommandButtons\\BTNHeroAvatarOfFlame.blp")
set udg_Zadanie[14]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[14],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Duh_ognia_complete)call TriggerSleepAction(GetRandomReal(250.00,500.00))if(Trig_Duh_ognia_Func025C())thencall CreateNUnitsAtLoc(1,'nlv3',Player(10),GetUnitLoc(gg_unit_Nfir_0348),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nlv3',Player(10),GetUnitLoc(gg_unit_Nfir_0348),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nlv3',Player(10),GetUnitLoc(gg_unit_Nfir_0348),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nlv3',Player(10),GetUnitLoc(gg_unit_Nfir_0348),bj_UNIT_FACING)
call IssuePointOrderLoc(gg_unit_Nfir_0348,"attack",GetUnitLoc(gg_unit_Hkal_0220))call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(10),'nlv3'),"attack",GetUnitLoc(gg_unit_Hkal_0220))
call TriggerSleepAction(150.00)call IssuePointOrderLoc(gg_unit_Nfir_0348,"attack",GetUnitLoc(gg_unit_h007_0208))else
endifendfunctionfunction InitTrig_Duh_ognia takes nothing returns nothingset gg_trg_Duh_ognia=CreateTrigger()
call DisableTrigger(gg_trg_Duh_ognia)call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_ognia,256,gg_unit_Hkal_0220)call TriggerAddCondition(gg_trg_Duh_ognia,Condition(function Trig_Duh_ognia_Conditions))
call TriggerAddAction(gg_trg_Duh_ognia,function Trig_Duh_ognia_Actions)endfunctionfunction Trig_Duh_ognia_complete_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'shar')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_ognia_complete_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +1 к характеристикам|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[15])call QuestSetCompleted(udg_Zadanie[14],true)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call TriggerSleepAction(90.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_lda)endfunctionfunction InitTrig_Duh_ognia_complete takes nothing returns nothingset gg_trg_Duh_ognia_complete=CreateTrigger()call DisableTrigger(gg_trg_Duh_ognia_complete)call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_ognia_complete,256,gg_unit_Hkal_0220)call TriggerAddCondition(gg_trg_Duh_ognia_complete,Condition(function Trig_Duh_ognia_complete_Conditions))call TriggerAddAction(gg_trg_Duh_ognia_complete,function Trig_Duh_ognia_complete_Actions)endfunctionfunction Trig_Duh_lda_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hkal_0220)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_lda_Actions takes nothing returns nothingcall CreatePermanentCorpseLocBJ(bj_CORPSETYPE_FLESH,'hspt',Player(9),GetRandomLocInRect(gg_rct_Ledinoy),GetRandomDirectionDeg())
call CreateItemLoc('I00J',GetRectCenter(gg_rct_Ledinoy))
call SetTerrainTypeBJ(GetRectCenter(gg_rct_Ledinoy),'Nsnw',-6,6,0)call AddWeatherEffectSaveLast(gg_rct_Ledinoy,'SNhs')
call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[15])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Objects\\RandomObject\\RandomObject.mdl")call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Ledinoy),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)set udg_Specefect[15]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Сфера льда")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Сфера льда","На юго-западе от города была обнаружена погодная аномалия. Порывы холодного ветра, буран, резкие перепады температур. В центре аномалии находится сфера льда. Один из моих учеников пытался достать сферу, но у него ничего не вышло… Если сможешь достать ее то я продолжу обучение. Но будь осторожен.
Награда:|c00C8C800 +1 к характеристикам|r","ReplaceableTextures\\CommandButtons\\BTNOrbOfFrost.blp")set udg_Zadanie[14]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[14],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Sfera_lda_pogoda)call TriggerSleepAction(2)call EnableTrigger(gg_trg_Duh_lda_complite)endfunctionfunction InitTrig_Duh_lda takes nothing returns nothingset gg_trg_Duh_lda=CreateTrigger()call DisableTrigger(gg_trg_Duh_lda)call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_lda,256,gg_unit_Hkal_0220)call TriggerAddCondition(gg_trg_Duh_lda,Condition(function Trig_Duh_lda_Conditions))
call TriggerAddAction(gg_trg_Duh_lda,function Trig_Duh_lda_Actions)endfunctionfunction Trig_Duh_lda_complite_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00J')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_lda_complite_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +1 к характеристикам|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[15])call QuestSetCompleted(udg_Zadanie[14],true)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call DisableTrigger(gg_trg_Sfera_lda_pogoda)
call TriggerSleepAction(90.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_Groma)
endfunctionfunction InitTrig_Duh_lda_complite takes nothing returns nothing
set gg_trg_Duh_lda_complite=CreateTrigger()call DisableTrigger(gg_trg_Duh_lda_complite)
call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_lda_complite,256,gg_unit_Hkal_0220)
call TriggerAddCondition(gg_trg_Duh_lda_complite,Condition(function Trig_Duh_lda_complite_Conditions))call TriggerAddAction(gg_trg_Duh_lda_complite,function Trig_Duh_lda_complite_Actions)endfunctionfunction Trig_Sfera_lda_pogoda_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sfera_lda_pogoda_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'u00B',Player(10),GetRectCenter(gg_rct_Ledinoy),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"flamestrike",GetUnitLoc(GetTriggerUnit()))
call TriggerSleepAction(6.00)call CreateNUnitsAtLoc(1,'u00B',Player(10),GetRectCenter(gg_rct_Ledinoy),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"flamestrike",GetRectCenter(gg_rct_Ledinoy))call TriggerSleepAction(16.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Sfera_lda_pogoda takes nothing returns nothing
set gg_trg_Sfera_lda_pogoda=CreateTrigger()call DisableTrigger(gg_trg_Sfera_lda_pogoda)
call TriggerRegisterEnterRectSimple(gg_trg_Sfera_lda_pogoda,gg_rct_Ledinoy)call TriggerAddCondition(gg_trg_Sfera_lda_pogoda,Condition(function Trig_Sfera_lda_pogoda_Conditions))call TriggerAddAction(gg_trg_Sfera_lda_pogoda,function Trig_Sfera_lda_pogoda_Actions)endfunctionfunction Trig_Duh_Groma_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hkal_0220)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_Groma_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetUnitPositionLoc(gg_unit_nrvl_0353,GetRectCenter(gg_rct_Electro))
call DestroyEffect(udg_Specefect[15])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Objects\\RandomObject\\RandomObject.mdl")call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Electro),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)set udg_Specefect[15]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Громовой рыцарь")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Громовой рыцарь","Севернее орды был замечен громовой рыцарь. Шаманы говорят, что видели в его руках светящийся шар. Я почти уверен, что эта сфера молнии. Достань ее мне. И я вознагражу тебя знаниями.
Награда:|c00C8C800 +1 к характеристикам|r","ReplaceableTextures\\CommandButtons\\BTNRevenant.blp")
set udg_Zadanie[14]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[14],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Duh_Groma_complite)endfunctionfunction InitTrig_Duh_Groma takes nothing returns nothingset gg_trg_Duh_Groma=CreateTrigger()
call DisableTrigger(gg_trg_Duh_Groma)call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_Groma,256,gg_unit_Hkal_0220)call TriggerAddCondition(gg_trg_Duh_Groma,Condition(function Trig_Duh_Groma_Conditions))
call TriggerAddAction(gg_trg_Duh_Groma,function Trig_Duh_Groma_Actions)endfunctionfunction Trig_Duh_Groma_complite_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00N')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_Groma_complite_Func030C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_ndrj_0051)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_Groma_complite_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +1 к характеристикам|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[15])call QuestSetCompleted(udg_Zadanie[14],true)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call TriggerSleepAction(GetRandomReal(90.00,250.00))
if(Trig_Duh_Groma_complite_Func030C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_yada)else
endifendfunctionfunction InitTrig_Duh_Groma_complite takes nothing returns nothingset gg_trg_Duh_Groma_complite=CreateTrigger()call DisableTrigger(gg_trg_Duh_Groma_complite)call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_Groma_complite,256,gg_unit_Hkal_0220)call TriggerAddCondition(gg_trg_Duh_Groma_complite,Condition(function Trig_Duh_Groma_complite_Conditions))call TriggerAddAction(gg_trg_Duh_Groma_complite,function Trig_Duh_Groma_complite_Actions)endfunctionfunction Trig_Duh_yada_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hkal_0220)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_yada_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call SetUnitPositionLoc(gg_unit_ndrj_0051,GetRectCenter(gg_rct_Podzemelie_neruba_2))
call DestroyEffect(udg_Specefect[15])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Objects\\RandomObject\\RandomObject.mdl")call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Podzemelie_neruba_2),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)set udg_Specefect[15]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Ядовитая слизь")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Ядовитая слизь","Я нашел местонахождение сферы яда. Она находится в глубинах шахты. Но будь аккуратнее рабочие сообщают что в шахтах появилась ядовитая слизь.
Награда:|c00C8C800 +1 к характеристикам|r","ReplaceableTextures\\CommandButtons\\BTNDalaranReject.blp")
set udg_Zadanie[14]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[14],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Duh_yada_complite)
endfunctionfunction InitTrig_Duh_yada takes nothing returns nothing
set gg_trg_Duh_yada=CreateTrigger()call DisableTrigger(gg_trg_Duh_yada)
call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_yada,256,gg_unit_Hkal_0220)
call TriggerAddCondition(gg_trg_Duh_yada,Condition(function Trig_Duh_yada_Conditions))call TriggerAddAction(gg_trg_Duh_yada,function Trig_Duh_yada_Actions)endfunctionfunction Trig_Duh_yada_complite_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I004')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_yada_complite_Func030C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_h00G_0065)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_yada_complite_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +1 к характеристикам|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[15])call QuestSetCompleted(udg_Zadanie[14],true)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call TriggerSleepAction(GetRandomReal(90.00,250.00))
if(Trig_Duh_yada_complite_Func030C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_Zamedleniya)else
endifendfunctionfunction InitTrig_Duh_yada_complite takes nothing returns nothingset gg_trg_Duh_yada_complite=CreateTrigger()
call DisableTrigger(gg_trg_Duh_yada_complite)call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_yada_complite,256,gg_unit_Hkal_0220)call TriggerAddCondition(gg_trg_Duh_yada_complite,Condition(function Trig_Duh_yada_complite_Conditions))
call TriggerAddAction(gg_trg_Duh_yada_complite,function Trig_Duh_yada_complite_Actions)endfunctionfunction Trig_Duh_Zamedleniya_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hkal_0220)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_h00G_0065)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_Zamedleniya_Func022C takes nothing returns boolean
if(not(udg_Random<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_Zamedleniya_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[15])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Objects\\RandomObject\\RandomObject.mdl")call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_h00G_0065),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)set udg_Specefect[15]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Забрать сферу")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Забрать сферу","Недавно мы обнаружили сферу замедления. Но видимо Сарина решила присвоить ее себе. Убеди ее отдать сферу мне.
Награда:|c00C8C800 +1 к характеристикам|r","ReplaceableTextures\\CommandButtons\\BTNOrbofSlowness.blp")set udg_Zadanie[14]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[14],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Duh_Zamedleniya_complite)call ModifyGateBJ(bj_GATEOPERATION_OPEN,gg_dest_DTg5_5788)set udg_Random=GetRandomInt(1,6)
if(Trig_Duh_Zamedleniya_Func022C())thencall UnitAddItemByIdSwapped('I00T',gg_unit_h00G_0065)call SetUnitOwner(gg_unit_h00G_0065,Player(6),false)
else
call CreateItemLoc('I00T',GetUnitLoc(gg_unit_h00G_0065))
endifendfunctionfunction InitTrig_Duh_Zamedleniya takes nothing returns nothingset gg_trg_Duh_Zamedleniya=CreateTrigger()call DisableTrigger(gg_trg_Duh_Zamedleniya)call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_Zamedleniya,256,gg_unit_Hkal_0220)call TriggerAddCondition(gg_trg_Duh_Zamedleniya,Condition(function Trig_Duh_Zamedleniya_Conditions))
call TriggerAddAction(gg_trg_Duh_Zamedleniya,function Trig_Duh_Zamedleniya_Actions)endfunctionfunction Trig_Duh_Zamedleniya_complite_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00T')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_Zamedleniya_complite_Func030C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_nvdg_0335)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_Zamedleniya_complite_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +1 к характеристикам|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[15])call QuestSetCompleted(udg_Zadanie[14],true)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call TriggerSleepAction(GetRandomReal(90.00,250.00))
if(Trig_Duh_Zamedleniya_complite_Func030C())then
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_Tmy)else
endifendfunctionfunction InitTrig_Duh_Zamedleniya_complite takes nothing returns nothing
set gg_trg_Duh_Zamedleniya_complite=CreateTrigger()call DisableTrigger(gg_trg_Duh_Zamedleniya_complite)
call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_Zamedleniya_complite,256,gg_unit_Hkal_0220)
call TriggerAddCondition(gg_trg_Duh_Zamedleniya_complite,Condition(function Trig_Duh_Zamedleniya_complite_Conditions))call TriggerAddAction(gg_trg_Duh_Zamedleniya_complite,function Trig_Duh_Zamedleniya_complite_Actions)endfunctionfunction Trig_Duh_Tmy_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hkal_0220)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_Tmy_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetUnitPositionLoc(gg_unit_nvdg_0335,GetRectCenter(gg_rct_Boqnia))call DestroyEffect(udg_Specefect[15])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Objects\\RandomObject\\RandomObject.mdl")call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Boqnia),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)
set udg_Specefect[15]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Дух тьмы")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Дух тьмы","Севернее города на бойне, появился темный дух. Есть основания полагать, что он обладает сферой тьмы. Уничтожь его и принеси сферу мне.
Награда:|c00C8C800 +1 к характеристикам|r","ReplaceableTextures\\CommandButtons\\BTNShade.blp")
set udg_Zadanie[14]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[14],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Duh_Tmy_complite)endfunctionfunction InitTrig_Duh_Tmy takes nothing returns nothingset gg_trg_Duh_Tmy=CreateTrigger()call DisableTrigger(gg_trg_Duh_Tmy)call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_Tmy,256,gg_unit_Hkal_0220)call TriggerAddCondition(gg_trg_Duh_Tmy,Condition(function Trig_Duh_Tmy_Conditions))
call TriggerAddAction(gg_trg_Duh_Tmy,function Trig_Duh_Tmy_Actions)endfunctionfunction Trig_Duh_Tmy_complite_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00Y')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_Tmy_complite_Func030C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_ndmu_0336)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_Tmy_complite_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +1 к характеристикам|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[15])call QuestSetCompleted(udg_Zadanie[14],true)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call TriggerSleepAction(GetRandomReal(90.00,250.00))
if(Trig_Duh_Tmy_complite_Func030C())then
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_Prokliatiy)else
endifendfunctionfunction InitTrig_Duh_Tmy_complite takes nothing returns nothing
set gg_trg_Duh_Tmy_complite=CreateTrigger()call DisableTrigger(gg_trg_Duh_Tmy_complite)
call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_Tmy_complite,256,gg_unit_Hkal_0220)
call TriggerAddCondition(gg_trg_Duh_Tmy_complite,Condition(function Trig_Duh_Tmy_complite_Conditions))call TriggerAddAction(gg_trg_Duh_Tmy_complite,function Trig_Duh_Tmy_complite_Actions)endfunctionfunction Trig_Duh_Prokliatiy_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hkal_0220)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_Prokliatiy_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetUnitPositionLoc(gg_unit_ndmu_0336,GetRectCenter(gg_rct_Raskopki))call DestroyEffect(udg_Specefect[15])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Objects\\RandomObject\\RandomObject.mdl")call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Raskopki),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)set udg_Specefect[15]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Проклятый искатель")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Проклятый искатель","Один из наших отрядов проводил раскопки западнее деревни. Они наткнулись на захоронение, среди останков была обнаружена сфера проклятий. Она превратила искателя в живой труп, другие члены группы пытались остановить его, но каждый раз после смерти он восставал из мертвых и продолжал нападать. Даруй ему покой и принеси сферу проклятий ко мне.
Награда:|c00C8C800 +1 к характеристикам|r","ReplaceableTextures\\CommandButtons\\BTNOrbOfCorruption.blp")set udg_Zadanie[14]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[14],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Duh_Prokliatiy_complite)endfunctionfunction InitTrig_Duh_Prokliatiy takes nothing returns nothingset gg_trg_Duh_Prokliatiy=CreateTrigger()call DisableTrigger(gg_trg_Duh_Prokliatiy)call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_Prokliatiy,256,gg_unit_Hkal_0220)call TriggerAddCondition(gg_trg_Duh_Prokliatiy,Condition(function Trig_Duh_Prokliatiy_Conditions))call TriggerAddAction(gg_trg_Duh_Prokliatiy,function Trig_Duh_Prokliatiy_Actions)endfunctionfunction Trig_Duh_Prokliatiy_complite_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_Prokliatiy_complite_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +1 к характеристикам|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[15])call QuestSetCompleted(udg_Zadanie[14],true)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call TriggerSleepAction(GetRandomReal(90.00,250.00))
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_Angela)endfunctionfunction InitTrig_Duh_Prokliatiy_complite takes nothing returns nothingset gg_trg_Duh_Prokliatiy_complite=CreateTrigger()call DisableTrigger(gg_trg_Duh_Prokliatiy_complite)call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_Prokliatiy_complite,256,gg_unit_Hkal_0220)call TriggerAddCondition(gg_trg_Duh_Prokliatiy_complite,Condition(function Trig_Duh_Prokliatiy_complite_Conditions))
call TriggerAddAction(gg_trg_Duh_Prokliatiy_complite,function Trig_Duh_Prokliatiy_complite_Actions)endfunctionfunction Trig_Duh_Angela_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hkal_0220)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_Angela_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateItemLoc('I020',GetUnitLoc(gg_unit_ncop_0343))
call DestroyEffect(udg_Specefect[15])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Objects\\RandomObject\\RandomObject.mdl")call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Raskopki),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)set udg_Specefect[15]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Ангельская сфера")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Ангельская сфера","В одном из манускриптов сказано, что в эльфийском лесу спрятана ангельская сфера. Найди ее и принеси мне.
Награда:|c00C8C800 +1 к характеристикам|r","ReplaceableTextures\\CommandButtons\\BTNSoulGem.blp")set udg_Zadanie[14]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[14],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Duh_Angela_complite)endfunctionfunction InitTrig_Duh_Angela takes nothing returns nothingset gg_trg_Duh_Angela=CreateTrigger()call DisableTrigger(gg_trg_Duh_Angela)call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_Angela,256,gg_unit_Hkal_0220)call TriggerAddCondition(gg_trg_Duh_Angela,Condition(function Trig_Duh_Angela_Conditions))call TriggerAddAction(gg_trg_Duh_Angela,function Trig_Duh_Angela_Actions)endfunctionfunction Trig_Duh_Angela_complite_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I020')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_Angela_complite_Func030C takes nothing returns boolean
if(not(IsUnitAliveBJ(gg_unit_Hgam_0344)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_Angela_complite_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +1 к характеристикам|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[15])call QuestSetCompleted(udg_Zadanie[14],true)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call TriggerSleepAction(GetRandomReal(90.00,250.00))
if(Trig_Duh_Angela_complite_Func030C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_Astrala)else
endifendfunctionfunction InitTrig_Duh_Angela_complite takes nothing returns nothingset gg_trg_Duh_Angela_complite=CreateTrigger()call DisableTrigger(gg_trg_Duh_Angela_complite)call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_Angela_complite,256,gg_unit_Hkal_0220)call TriggerAddCondition(gg_trg_Duh_Angela_complite,Condition(function Trig_Duh_Angela_complite_Conditions))
call TriggerAddAction(gg_trg_Duh_Angela_complite,function Trig_Duh_Angela_complite_Actions)endfunctionfunction Trig_Duh_Astrala_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hkal_0220)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_Astrala_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetUnitPositionLoc(gg_unit_Hgam_0344,GetRandomLocInRect(gg_rct_Kladbishe))call DestroyEffect(udg_Specefect[15])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Objects\\RandomObject\\RandomObject.mdl")call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Raskopki),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)set udg_Specefect[15]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Сфера астрала")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Астральный маг","В книгах я нашел упоминание о сферее астрала. Некогда она принадлежала магу, кторый давно умер, но благодоря сфере его дух до сих пор на земле. Он часто появляется на кладбище. Добудь мне сферу.
Награда:|c00C8C800 +1 к характеристикам|r","ReplaceableTextures\\CommandButtons\\BTNGhostMage.blp")set udg_Zadanie[14]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[14],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Duh_Astrala_complite)endfunctionfunction InitTrig_Duh_Astrala takes nothing returns nothingset gg_trg_Duh_Astrala=CreateTrigger()call DisableTrigger(gg_trg_Duh_Astrala)call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_Astrala,256,gg_unit_Hkal_0220)call TriggerAddCondition(gg_trg_Duh_Astrala,Condition(function Trig_Duh_Astrala_Conditions))
call TriggerAddAction(gg_trg_Duh_Astrala,function Trig_Duh_Astrala_Actions)endfunctionfunction Trig_Duh_Astrala_complite_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_Astrala_complite_Func030C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_Uvng_0345)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_Astrala_complite_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +1 к характеристикам|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[15])call QuestSetCompleted(udg_Zadanie[14],true)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call TriggerSleepAction(GetRandomReal(90.00,250.00))
if(Trig_Duh_Astrala_complite_Func030C())then
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_krovy)
else
endifendfunctionfunction InitTrig_Duh_Astrala_complite takes nothing returns nothing
set gg_trg_Duh_Astrala_complite=CreateTrigger()call DisableTrigger(gg_trg_Duh_Astrala_complite)
call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_Astrala_complite,256,gg_unit_Hkal_0220)
call TriggerAddCondition(gg_trg_Duh_Astrala_complite,Condition(function Trig_Duh_Astrala_complite_Conditions))call TriggerAddAction(gg_trg_Duh_Astrala_complite,function Trig_Duh_Astrala_complite_Actions)endfunctionfunction Trig_Duh_krovy_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hkal_0220)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_krovy_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetUnitPositionLoc(gg_unit_Uvng_0345,GetRandomLocInRect(gg_rct_Kladbishe))call IssuePointOrderLoc(gg_unit_Uvng_0345,"patrol",GetRandomLocInRect(gg_rct_Kladbishe))
call IssuePointOrderLoc(gg_unit_Uvng_0345,"patrol",GetRandomLocInRect(gg_rct_Zona_4))call DestroyEffect(udg_Specefect[15])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Objects\\RandomObject\\RandomObject.mdl")call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Uvng_0345),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)set udg_Specefect[15]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Сфера крови")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Вампир","Один из рыцарей превратился в вампира. Такое могла сделать лишь сфера крови. Выследи и убей его. Сферу принеси мне для изучения.
Награда:|c00C8C800 +1 к характеристикам|r","ReplaceableTextures\\CommandButtons\\BTNHeroDreadLord.blp")set udg_Zadanie[14]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[14],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Duh_Krovy_complite)endfunctionfunction InitTrig_Duh_krovy takes nothing returns nothingset gg_trg_Duh_krovy=CreateTrigger()
call DisableTrigger(gg_trg_Duh_krovy)call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_krovy,256,gg_unit_Hkal_0220)call TriggerAddCondition(gg_trg_Duh_krovy,Condition(function Trig_Duh_krovy_Conditions))
call TriggerAddAction(gg_trg_Duh_krovy,function Trig_Duh_krovy_Actions)endfunctionfunction Trig_Duh_Krovy_complite_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01P')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_Krovy_complite_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +1 к характеристикам|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[15])call QuestSetCompleted(udg_Zadanie[14],true)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call TriggerSleepAction(GetRandomReal(90.00,250.00))
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_sveta)
endfunctionfunction InitTrig_Duh_Krovy_complite takes nothing returns nothingset gg_trg_Duh_Krovy_complite=CreateTrigger()call DisableTrigger(gg_trg_Duh_Krovy_complite)call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_Krovy_complite,256,gg_unit_Hkal_0220)call TriggerAddCondition(gg_trg_Duh_Krovy_complite,Condition(function Trig_Duh_Krovy_complite_Conditions))call TriggerAddAction(gg_trg_Duh_Krovy_complite,function Trig_Duh_Krovy_complite_Actions)endfunctionfunction Trig_Duh_sveta_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hkal_0220)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_sveta_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetDestructableInvulnerableBJ(gg_dest_XTmp_5838,false)call CreateItemLoc('I000',GetRectCenter(gg_rct_Sfera_sveta))
call DestroyEffect(udg_Specefect[15])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Objects\\RandomObject\\RandomObject.mdl")call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Raskopki),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)set udg_Specefect[15]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Сфера света")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Сфера света","Раз ты собрался бороться с тьмой тебе будет необходимо набраться сил. Возьми сферу света. И принеси мне я обучу тебя магии.
Награда:|c00C8C800 +1 к характеристикам|r","ReplaceableTextures\\CommandButtons\\BTNSoulGem.blp")
set udg_Zadanie[14]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[14],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Duh_Sveta_complite)endfunctionfunction InitTrig_Duh_sveta takes nothing returns nothingset gg_trg_Duh_sveta=CreateTrigger()
call DisableTrigger(gg_trg_Duh_sveta)call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_sveta,256,gg_unit_Hkal_0220)call TriggerAddCondition(gg_trg_Duh_sveta,Condition(function Trig_Duh_sveta_Conditions))
call TriggerAddAction(gg_trg_Duh_sveta,function Trig_Duh_sveta_Actions)endfunctionfunction Trig_Duh_Sveta_complite_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I000')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_Sveta_complite_Func030C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_nsel_0347)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_Sveta_complite_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +1 к характеристикам|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[15])call QuestSetCompleted(udg_Zadanie[14],true)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_STR,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_AGI,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[1],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[2],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[3],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[4],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[5],bj_MODIFYMETHOD_ADD,1)call ModifyHeroStat(bj_HEROSTAT_INT,udg_Hero[6],bj_MODIFYMETHOD_ADD,1)call TriggerSleepAction(GetRandomReal(90.00,250.00))
if(Trig_Duh_Sveta_complite_Func030C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hkal_0220,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[15]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hkal_0220),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Duh_morey)
else
endifendfunctionfunction InitTrig_Duh_Sveta_complite takes nothing returns nothingset gg_trg_Duh_Sveta_complite=CreateTrigger()call DisableTrigger(gg_trg_Duh_Sveta_complite)call TriggerRegisterUnitInRangeSimple(gg_trg_Duh_Sveta_complite,256,gg_unit_Hkal_0220)call TriggerAddCondition(gg_trg_Duh_Sveta_complite,Condition(function Trig_Duh_Sveta_complite_Conditions))call TriggerAddAction(gg_trg_Duh_Sveta_complite,function Trig_Duh_Sveta_complite_Actions)endfunctionfunction Trig_Zapusk_Kenarius_Func002C takes nothing returns boolean
if(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Zapusk_Kenarius_Actions takes nothing returns nothingset udg_Random=GetRandomInt(1,1)
if(Trig_Zapusk_Kenarius_Func002C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Ecen_0357,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[16]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Ecen_0357),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Kenarius_oborona)call EnableTrigger(gg_trg_Temnie_elfy_napadenie)
call EnableTrigger(gg_trg_Temnie_elfy_Usilenie)else
endifendfunctionfunction InitTrig_Zapusk_Kenarius takes nothing returns nothingset gg_trg_Zapusk_Kenarius=CreateTrigger()call TriggerRegisterTimerEventSingle(gg_trg_Zapusk_Kenarius,GetRandomReal(3240.00,4320.00))call TriggerAddAction(gg_trg_Zapusk_Kenarius,function Trig_Zapusk_Kenarius_Actions)endfunctionfunction Trig_Elfy_Actions takes nothing returns nothing
call GroupImmediateOrder(GetUnitsOfPlayerAndTypeId(Player(7),'earc'),"holdposition")
call GroupImmediateOrder(GetUnitsOfPlayerAndTypeId(Player(7),'eshd'),"holdposition")
endfunctionfunction InitTrig_Elfy takes nothing returns nothing
set gg_trg_Elfy=CreateTrigger()call TriggerRegisterTimerEventSingle(gg_trg_Elfy,5)call TriggerAddAction(gg_trg_Elfy,function Trig_Elfy_Actions)endfunctionfunction Trig_Temnie_elfy_napadenie_Conditions takes nothing returns boolean
if(not(IsUnitAliveBJ(gg_unit_etoe_0160)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Temnie_elfy_napadenie_Actions takes nothing returns nothingcall GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Prokliatie_Elfy,Player(11)),"attack",GetUnitLoc(gg_unit_etoe_0160))call TriggerSleepAction(4.00)call CreateNUnitsAtLoc(1,'npfl',Player(11),GetUnitLoc(gg_unit_ncte_0161),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'npfl',Player(11),GetUnitLoc(gg_unit_ncte_0161),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'npfl',Player(11),GetUnitLoc(gg_unit_ncte_0161),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'npfl',Player(11),GetUnitLoc(gg_unit_ncte_0161),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndtb',Player(11),GetUnitLoc(gg_unit_ncte_0161),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndtb',Player(11),GetUnitLoc(gg_unit_ncte_0161),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nepl',Player(11),GetUnitLoc(gg_unit_ncte_0161),bj_UNIT_FACING)
call TriggerSleepAction(2)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Prokliatie_Elfy,Player(11)),"attack",GetUnitLoc(gg_unit_etoe_0160))endfunctionfunction InitTrig_Temnie_elfy_napadenie takes nothing returns nothingset gg_trg_Temnie_elfy_napadenie=CreateTrigger()
call DisableTrigger(gg_trg_Temnie_elfy_napadenie)call TriggerRegisterTimerEventPeriodic(gg_trg_Temnie_elfy_napadenie,45.00)call TriggerAddCondition(gg_trg_Temnie_elfy_napadenie,Condition(function Trig_Temnie_elfy_napadenie_Conditions))
call TriggerAddAction(gg_trg_Temnie_elfy_napadenie,function Trig_Temnie_elfy_napadenie_Actions)endfunctionfunction Trig_Temnie_elfy_Usilenie_Actions takes nothing returns nothing
call SetPlayerTechResearchedSwap('R006',(GetPlayerTechCountSimple('R006',Player(11))+1),Player(11))endfunctionfunction InitTrig_Temnie_elfy_Usilenie takes nothing returns nothing
set gg_trg_Temnie_elfy_Usilenie=CreateTrigger()call DisableTrigger(gg_trg_Temnie_elfy_Usilenie)
call TriggerRegisterTimerEventPeriodic(gg_trg_Temnie_elfy_Usilenie,90.00)call TriggerAddAction(gg_trg_Temnie_elfy_Usilenie,function Trig_Temnie_elfy_Usilenie_Actions)endfunctionfunction Trig_Kenarius_oborona_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Ecen_0357)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_etoe_0160)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kenarius_oborona_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call SetUnitInvulnerable(gg_unit_ncte_0161,false)call DestroyEffect(udg_Specefect[16])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Ecen_0357,"Objects\\RandomObject\\RandomObject.mdl")call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_ncte_0161),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)set udg_Specefect[16]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Порча")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Порча","Порча поразила наши леса. Она отравляет все вокруг, животные сходят с ума, наши братья превращаются в ужасных существ. Единственное, что сдерживает порчу древо жизни. Но монстры не прекращают атак в надежде уничтожить его. Что бы замедлить распространение порчи и прекратить атаки монстров, необходимо уничтожить порченое древо вечности.
Награда:|c00C8C800 2000 золота|r,|c0000FF00 500 опыта|r.","ReplaceableTextures\\CommandButtons\\BTNDeathAndDecay.blp")set udg_Zadanie[15]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[15],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Kenarius_oborona_complite)
endfunctionfunction InitTrig_Kenarius_oborona takes nothing returns nothing
set gg_trg_Kenarius_oborona=CreateTrigger()call DisableTrigger(gg_trg_Kenarius_oborona)
call TriggerRegisterUnitInRangeSimple(gg_trg_Kenarius_oborona,256,gg_unit_Ecen_0357)
call TriggerAddCondition(gg_trg_Kenarius_oborona,Condition(function Trig_Kenarius_oborona_Conditions))call TriggerAddAction(gg_trg_Kenarius_oborona,function Trig_Kenarius_oborona_Actions)endfunctionfunction Trig_Kenarius_oborona_complite_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitDeadBJ(gg_unit_ncte_0161)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kenarius_oborona_complite_Func024C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_Ecen_0357)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kenarius_oborona_complite_Func026C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_Etyr_0052)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kenarius_oborona_complite_Func028C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_Ewrd_0337)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kenarius_oborona_complite_Func030C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_Emfr_0413)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kenarius_oborona_complite_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 2000 золота|r")
call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[16])call QuestSetCompleted(udg_Zadanie[15],true)
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_GOLD)+2000))call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_GOLD)+2000))call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_GOLD)+2000))call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_GOLD)+2000))call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_GOLD)+2000))call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_GOLD)+2000))call AddHeroXPSwapped(500,udg_Hero[1],false)
call AddHeroXPSwapped(500,udg_Hero[2],false)
call AddHeroXPSwapped(500,udg_Hero[3],false)
call AddHeroXPSwapped(500,udg_Hero[4],false)
call AddHeroXPSwapped(500,udg_Hero[5],false)
call AddHeroXPSwapped(500,udg_Hero[6],false)
call TriggerSleepAction(GetRandomReal(15.00,60.00))if(Trig_Kenarius_oborona_complite_Func024C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Ecen_0357,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[16]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Ecen_0357),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Kenarius_Rog)else
endifcall TriggerSleepAction(GetRandomReal(15.00,60.00))if(Trig_Kenarius_oborona_complite_Func026C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Etyr_0052,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[17]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Etyr_0052),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Tirend_luk)else
endifcall TriggerSleepAction(GetRandomReal(15.00,60.00))if(Trig_Kenarius_oborona_complite_Func028C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Ewrd_0337,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[18]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Ewrd_0337),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Mev_ilidan)else
endifcall TriggerSleepAction(GetRandomReal(15.00,60.00))if(Trig_Kenarius_oborona_complite_Func030C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Emfr_0413,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[19]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Emfr_0413),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Farion_obelisk)else
endifendfunctionfunction InitTrig_Kenarius_oborona_complite takes nothing returns nothingset gg_trg_Kenarius_oborona_complite=CreateTrigger()
call DisableTrigger(gg_trg_Kenarius_oborona_complite)call TriggerRegisterUnitInRangeSimple(gg_trg_Kenarius_oborona_complite,256,gg_unit_Ecen_0357)call TriggerAddCondition(gg_trg_Kenarius_oborona_complite,Condition(function Trig_Kenarius_oborona_complite_Conditions))
call TriggerAddAction(gg_trg_Kenarius_oborona_complite,function Trig_Kenarius_oborona_complite_Actions)endfunctionfunction Trig_Kenarius_Rog_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Ecen_0357)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_etoe_0160)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kenarius_Rog_Actions takes nothing returns nothing
call CreateItemLoc('cnhn',GetRectCenter(gg_rct_Hram_Elfov))call DisableTrigger(GetTriggeringTrigger())call EnableTrigger(gg_trg_Hram_kenariusa)call DestroyEffect(udg_Specefect[16])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Ecen_0357,"Objects\\RandomObject\\RandomObject.mdl")call PingMinimapLocForForceEx(GetPlayersAll(),GetRandomLocInRect(gg_rct_Hram_Elfov),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)set udg_Specefect[16]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Рог Кенариуса")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Рог Кенариуса","Мне необходим мой рог что бы очистить проклятую землю. Рог храниться в святилище и охраняется душами эльфов. Лишь достойнейшие могут забрать его.
Награда:|c00C8C800 +1 к навыкам|r","ReplaceableTextures\\CommandButtons\\BTNHornOfCenarius.blp")set udg_Zadanie[15]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[15],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Kenarius_Rog_Complite)
endfunctionfunction InitTrig_Kenarius_Rog takes nothing returns nothing
set gg_trg_Kenarius_Rog=CreateTrigger()call DisableTrigger(gg_trg_Kenarius_Rog)
call TriggerRegisterUnitInRangeSimple(gg_trg_Kenarius_Rog,256,gg_unit_Ecen_0357)
call TriggerAddCondition(gg_trg_Kenarius_Rog,Condition(function Trig_Kenarius_Rog_Conditions))call TriggerAddAction(gg_trg_Kenarius_Rog,function Trig_Kenarius_Rog_Actions)endfunctionfunction Trig_Kenarius_Rog_Complite_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'cnhn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kenarius_Rog_Complite_Actions takes nothing returns nothingcall PlaySoundOnUnitBJ(gg_snd_KeeperOfTheGrovePissed5,100,gg_unit_Ecen_0357)
call SetUnitAnimation(gg_unit_nhcn_0395,"stand")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'cnhn'))call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +1 навык|r")
call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[16])call QuestSetCompleted(udg_Zadanie[15],true)
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_LUMBER)+1))
call TriggerSleepAction(5.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Ecen_0357,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")set udg_Specefect[16]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Kenatius_Oborona_Zamka)endfunctionfunction InitTrig_Kenarius_Rog_Complite takes nothing returns nothingset gg_trg_Kenarius_Rog_Complite=CreateTrigger()
call DisableTrigger(gg_trg_Kenarius_Rog_Complite)call TriggerRegisterUnitInRangeSimple(gg_trg_Kenarius_Rog_Complite,256,gg_unit_Ecen_0357)call TriggerAddCondition(gg_trg_Kenarius_Rog_Complite,Condition(function Trig_Kenarius_Rog_Complite_Conditions))
call TriggerAddAction(gg_trg_Kenarius_Rog_Complite,function Trig_Kenarius_Rog_Complite_Actions)endfunctionfunction Trig_Hram_kenariusa_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Hram_kenariusa_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(2)call ModifyGateBJ(bj_GATEOPERATION_CLOSE,gg_dest_Dofw_6089)call CreateNUnitsAtLoc(1,'u00J',Player(6),GetRandomLocInRect(gg_rct_Hram_Elfov),bj_UNIT_FACING)call IssueTargetOrder(GetLastCreatedUnit(),"faeriefire",GetTriggerUnit())call TriggerSleepAction(1.00)call IssueTargetOrder(GetLastCreatedUnit(),"entanglingroots",GetTriggerUnit())call TriggerSleepAction(1.00)call IssueTargetOrder(GetLastCreatedUnit(),"drain",GetTriggerUnit())
call TriggerSleepAction(4.00)call CreateNUnitsAtLoc(1,'u00J',Player(6),GetRandomLocInRect(gg_rct_Hram_Elfov),bj_UNIT_FACING)call IssueTargetOrder(GetLastCreatedUnit(),"faeriefire",GetTriggerUnit())call TriggerSleepAction(1.00)call IssueTargetOrder(GetLastCreatedUnit(),"entanglingroots",GetTriggerUnit())call TriggerSleepAction(1.00)call IssueTargetOrder(GetLastCreatedUnit(),"drain",GetTriggerUnit())
call TriggerSleepAction(4.00)call CreateNUnitsAtLoc(1,'u00J',Player(6),GetRandomLocInRect(gg_rct_Hram_Elfov),bj_UNIT_FACING)call IssueTargetOrder(GetLastCreatedUnit(),"faeriefire",GetTriggerUnit())call TriggerSleepAction(1.00)call IssueTargetOrder(GetLastCreatedUnit(),"entanglingroots",GetTriggerUnit())call TriggerSleepAction(1.00)call IssueTargetOrder(GetLastCreatedUnit(),"drain",GetTriggerUnit())
call TriggerSleepAction(4.00)call CreateNUnitsAtLoc(1,'u00J',Player(6),GetRandomLocInRect(gg_rct_Hram_Elfov),bj_UNIT_FACING)call IssueTargetOrder(GetLastCreatedUnit(),"faeriefire",GetTriggerUnit())call TriggerSleepAction(1.00)call IssueTargetOrder(GetLastCreatedUnit(),"entanglingroots",GetTriggerUnit())call TriggerSleepAction(1.00)call IssueTargetOrder(GetLastCreatedUnit(),"drain",GetTriggerUnit())
call TriggerSleepAction(4.00)call CreateNUnitsAtLoc(1,'u00J',Player(6),GetRandomLocInRect(gg_rct_Hram_Elfov),bj_UNIT_FACING)call IssueTargetOrder(GetLastCreatedUnit(),"faeriefire",GetTriggerUnit())call TriggerSleepAction(1.00)call IssueTargetOrder(GetLastCreatedUnit(),"entanglingroots",GetTriggerUnit())call TriggerSleepAction(1.00)call IssueTargetOrder(GetLastCreatedUnit(),"drain",GetTriggerUnit())
call TriggerSleepAction(15.00)call ModifyGateBJ(bj_GATEOPERATION_DESTROY,gg_dest_Dofw_6089)endfunctionfunction InitTrig_Hram_kenariusa takes nothing returns nothingset gg_trg_Hram_kenariusa=CreateTrigger()call DisableTrigger(gg_trg_Hram_kenariusa)call TriggerRegisterEnterRectSimple(gg_trg_Hram_kenariusa,gg_rct_Hram_Elfov)
call TriggerAddCondition(gg_trg_Hram_kenariusa,Condition(function Trig_Hram_kenariusa_Conditions))call TriggerAddAction(gg_trg_Hram_kenariusa,function Trig_Hram_kenariusa_Actions)endfunctionfunction Trig_Kenatius_Oborona_Zamka_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Ecen_0357)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ajen')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kenatius_Oborona_Zamka_Actions takes nothing returns nothingcall PlaySoundOnUnitBJ(gg_snd_KeeperOfTheGroveReady1,100,gg_unit_Ecen_0357)call PingMinimapLocForForceEx(GetPlayersAll(),GetRandomLocInRect(gg_rct_Kuznec_oborona),5.00,bj_MINIMAPPINGSTYLE_FLASHY,100.00,100.00,0.00)call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[16])call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Кенариус: |r Я помогу вам в обороне.")call CreateNUnitsAtLoc(1,'etrp',Player(7),GetRectCenter(gg_rct_Drevo1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'etrp',Player(7),GetRectCenter(gg_rct_Drevo2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'etrp',Player(7),GetRectCenter(gg_rct_Drevo3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'etrp',Player(7),GetRectCenter(RectFromLoc(Location(13000.00,8600.00),Location(13200.00,8500.00))),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'emow',Player(7),OffsetLocation(GetRectCenter(gg_rct_Elfy_oborona),200.00,0),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'e000',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'e000',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'e000',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'echm',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'edry',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'edry',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'edoc',Player(7),GetRectCenter(gg_rct_Elfy_oborona),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'edot',Player(7),GetRectCenter(gg_rct_Elfy_oborona),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'edot',Player(7),GetRectCenter(gg_rct_Elfy_oborona),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'emtg',Player(7),GetRectCenter(gg_rct_Elfy_oborona_strag1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'emtg',Player(7),GetRectCenter(gg_rct_Elfy_oborona_strag_2),bj_UNIT_FACING)
endfunctionfunction InitTrig_Kenatius_Oborona_Zamka takes nothing returns nothingset gg_trg_Kenatius_Oborona_Zamka=CreateTrigger()call DisableTrigger(gg_trg_Kenatius_Oborona_Zamka)call TriggerRegisterUnitInRangeSimple(gg_trg_Kenatius_Oborona_Zamka,256,gg_unit_Ecen_0357)call TriggerAddCondition(gg_trg_Kenatius_Oborona_Zamka,Condition(function Trig_Kenatius_Oborona_Zamka_Conditions))call TriggerAddAction(gg_trg_Kenatius_Oborona_Zamka,function Trig_Kenatius_Oborona_Zamka_Actions)endfunctionfunction Trig_Tirend_luk_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Etyr_0052)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Tirend_luk_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetUnitPositionLoc(gg_unit_n00E_0401,GetRectCenter(gg_rct_Idushaya_vo_tme))
call DestroyEffect(udg_Specefect[17])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Etyr_0052,"Objects\\RandomObject\\RandomObject.mdl")call PingMinimapLocForForceEx(GetPlayersAll(),GetRandomLocInRect(gg_rct_Idushaya_vo_tme),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)set udg_Specefect[17]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Украденый лук")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Украденый лук","Хочешь помощи… Тогда, и ты помоги мне. Кто-то украл мой лук. Найди вора и верни лук, тогда я помогу тебе в обороне города.
Награда:|c00C8C800 +500 золота","ReplaceableTextures\\CommandButtons\\BTNImprovedBows.blp")set udg_Zadanie[16]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[16],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Tirend_luk_complit)endfunctionfunction InitTrig_Tirend_luk takes nothing returns nothingset gg_trg_Tirend_luk=CreateTrigger()call DisableTrigger(gg_trg_Tirend_luk)call TriggerRegisterUnitInRangeSimple(gg_trg_Tirend_luk,256,gg_unit_Etyr_0052)call TriggerAddCondition(gg_trg_Tirend_luk,Condition(function Trig_Tirend_luk_Conditions))call TriggerAddAction(gg_trg_Tirend_luk,function Trig_Tirend_luk_Actions)endfunctionfunction Trig_Tirend_luk_complit_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'olig')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Tirend_luk_complit_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'olig'))call UnitAddItemByIdSwapped('olig',gg_unit_Etyr_0052)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 500 золота|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[17])call QuestSetCompleted(udg_Zadanie[16],true)
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_GOLD)+500))call TriggerSleepAction(15.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Etyr_0052,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")set udg_Specefect[17]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Tirend_oborona)endfunctionfunction InitTrig_Tirend_luk_complit takes nothing returns nothingset gg_trg_Tirend_luk_complit=CreateTrigger()call DisableTrigger(gg_trg_Tirend_luk_complit)call TriggerRegisterUnitInRangeSimple(gg_trg_Tirend_luk_complit,256,gg_unit_Etyr_0052)call TriggerAddCondition(gg_trg_Tirend_luk_complit,Condition(function Trig_Tirend_luk_complit_Conditions))call TriggerAddAction(gg_trg_Tirend_luk_complit,function Trig_Tirend_luk_complit_Actions)endfunctionfunction Trig_Tirend_oborona_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Ecen_0357)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ajen')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Tirend_oborona_Actions takes nothing returns nothingcall PingMinimapLocForForceEx(GetPlayersAll(),GetRandomLocInRect(gg_rct_Tirend_1),5.00,bj_MINIMAPPINGSTYLE_FLASHY,100.00,100.00,0.00)call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[17])call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Кенариус: |r Я помогу вам в обороне.")call SetUnitPositionLoc(gg_unit_Etyr_0052,GetRectCenter(gg_rct_Tirend_1))call CreateNUnitsAtLoc(1,'eshd',Player(7),OffsetLocation(GetRectCenter(gg_rct_Tirend_1),-100.00,0),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'eshd',Player(7),OffsetLocation(GetRectCenter(gg_rct_Tirend_1),100.00,0),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'eshd',Player(7),GetRectCenter(gg_rct_Tirend_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'earc',Player(7),OffsetLocation(GetRectCenter(gg_rct_Tirend_2),50.00,0),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'earc',Player(7),OffsetLocation(GetRectCenter(gg_rct_Tirend_2),150.00,0),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'earc',Player(7),OffsetLocation(GetRectCenter(gg_rct_Tirend_2),-50.00,0),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'earc',Player(7),OffsetLocation(GetRectCenter(gg_rct_Tirend_2),-150.00,0),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'earc',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'earc',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'earc',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'earc',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'earc',Player(7),GetRandomLocInRect(gg_rct_Drevo1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'earc',Player(7),GetRandomLocInRect(gg_rct_Drevo1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'earc',Player(7),GetRandomLocInRect(gg_rct_Kolodec_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'earc',Player(7),GetRandomLocInRect(gg_rct_Kolodec_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'emow',Player(7),GetRectCenter(gg_rct_Kolodec_1),bj_UNIT_FACING)endfunctionfunction InitTrig_Tirend_oborona takes nothing returns nothingset gg_trg_Tirend_oborona=CreateTrigger()call DisableTrigger(gg_trg_Tirend_oborona)call TriggerRegisterUnitInRangeSimple(gg_trg_Tirend_oborona,256,gg_unit_Etyr_0052)call TriggerAddCondition(gg_trg_Tirend_oborona,Condition(function Trig_Tirend_oborona_Conditions))call TriggerAddAction(gg_trg_Tirend_oborona,function Trig_Tirend_oborona_Actions)endfunctionfunction Trig_Mev_ilidan_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Ewrd_0337)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mev_ilidan_Actions takes nothing returns nothingcall PlaySoundOnUnitBJ(gg_snd_MaievPissed3,100,gg_unit_Ewrd_0337)call DisableTrigger(GetTriggeringTrigger())call SetUnitPositionLoc(gg_unit_Eevi_0403,GetUnitLoc(gg_unit_nshr_0402))
call DestroyEffect(udg_Specefect[18])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Ewrd_0337,"Objects\\RandomObject\\RandomObject.mdl")call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_nshr_0402),3.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,0.00,0.00)set udg_Specefect[18]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Поймать илидана")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Поймать Иллидана","Иллидан предал наш народ и обратился к демонам. Он должен быть пойман и казнен. Мои дозорные доложили, что он находиться возле алтаря демонов. Помоги мне пленить его.
Награда:|c00C8C800 +1500 золота","ReplaceableTextures\\CommandButtons\\BTNEvilIllidan.blp")
set udg_Zadanie[17]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[17],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Mev_illidan_complit)call SetUnitInvulnerable(gg_unit_nshr_0402,false)call TriggerSleepAction(25.00)call IssuePointOrderLoc(gg_unit_Ewrd_0337,"attack",GetUnitLoc(gg_unit_Eevi_0403))call IssuePointOrderLoc(gg_unit_esen_0369,"attack",GetUnitLoc(gg_unit_Eevi_0403))call IssuePointOrderLoc(gg_unit_esen_0342,"attack",GetUnitLoc(gg_unit_Eevi_0403))call IssuePointOrderLoc(gg_unit_nwat_0406,"attack",GetUnitLoc(gg_unit_Eevi_0403))call TriggerSleepAction(10.00)call PlaySoundOnUnitBJ(gg_snd_MaievYes1,100,gg_unit_Ewrd_0337)endfunctionfunction InitTrig_Mev_ilidan takes nothing returns nothingset gg_trg_Mev_ilidan=CreateTrigger()call DisableTrigger(gg_trg_Mev_ilidan)call TriggerRegisterUnitInRangeSimple(gg_trg_Mev_ilidan,256,gg_unit_Ewrd_0337)call TriggerAddCondition(gg_trg_Mev_ilidan,Condition(function Trig_Mev_ilidan_Conditions))call TriggerAddAction(gg_trg_Mev_ilidan,function Trig_Mev_ilidan_Actions)endfunctionfunction Trig_Mev_illidan_complit_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Eevi_0403)==false))then
return false
endifif(not(IsUnitAliveBJ(gg_unit_Ewrd_0337)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mev_illidan_complit_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 1500 золота|r")
call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[18])call QuestSetCompleted(udg_Zadanie[17],true)
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_GOLD)+1500))call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_GOLD)+1500))call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_GOLD)+1500))call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_GOLD)+1500))call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_GOLD)+1500))call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_GOLD)+1500))call TriggerSleepAction(15.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Ewrd_0337,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")set udg_Specefect[18]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Mev_oborona)endfunctionfunction InitTrig_Mev_illidan_complit takes nothing returns nothingset gg_trg_Mev_illidan_complit=CreateTrigger()call DisableTrigger(gg_trg_Mev_illidan_complit)call TriggerRegisterUnitInRangeSimple(gg_trg_Mev_illidan_complit,256,gg_unit_Ewrd_0337)call TriggerAddCondition(gg_trg_Mev_illidan_complit,Condition(function Trig_Mev_illidan_complit_Conditions))
call TriggerAddAction(gg_trg_Mev_illidan_complit,function Trig_Mev_illidan_complit_Actions)endfunctionfunction Trig_Ilidan_dead_Actions takes nothing returns nothingcall SetUnitPositionLoc(gg_unit_eilw_0404,GetUnitLoc(gg_unit_nfv4_0359))
call TriggerSleepAction(4.00)call IssuePointOrderLoc(gg_unit_Ewrd_0337,"attack",GetUnitLoc(gg_unit_nfv4_0359))endfunctionfunction InitTrig_Ilidan_dead takes nothing returns nothingset gg_trg_Ilidan_dead=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Ilidan_dead,gg_unit_Eevi_0403,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_Ilidan_dead,function Trig_Ilidan_dead_Actions)endfunctionfunction Trig_Mev_oborona_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Ecen_0357)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ajen')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mev_oborona_Actions takes nothing returns nothingcall PingMinimapLocForForceEx(GetPlayersAll(),GetRandomLocInRect(gg_rct_Elfy_oborona),5.00,bj_MINIMAPPINGSTYLE_FLASHY,100.00,100.00,0.00)call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[18])call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Мев: |r Выдвигаюсь.")call SetUnitPositionLoc(gg_unit_Ewrd_0337,GetRectCenter(gg_rct_Elfy_oborona))call CreateNUnitsAtLoc(1,'nfrl',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nssn',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nssn',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nssn',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nssn',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nssn',Player(7),GetRandomLocInRect(gg_rct_Farion),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'esen',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'esen',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'esen',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'esen',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nwat',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nwat',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nwat',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nwat',Player(7),GetRandomLocInRect(gg_rct_Elfy_oborona),bj_UNIT_FACING)endfunctionfunction InitTrig_Mev_oborona takes nothing returns nothingset gg_trg_Mev_oborona=CreateTrigger()call DisableTrigger(gg_trg_Mev_oborona)call TriggerRegisterUnitInRangeSimple(gg_trg_Mev_oborona,256,gg_unit_Ewrd_0337)call TriggerAddCondition(gg_trg_Mev_oborona,Condition(function Trig_Mev_oborona_Conditions))
call TriggerAddAction(gg_trg_Mev_oborona,function Trig_Mev_oborona_Actions)endfunctionfunction Trig_Obelisk_1_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tret')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Obelisk_1_Func007C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tret'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Obelisk_1_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetUnitAnimation(gg_unit_ngob_0439,"Birth")
set udg_Zadanie_oskolky[1]=(udg_Zadanie_oskolky[1]+1)call UnitAddAbilityBJ('A074',gg_unit_ngob_0439)call DisplayTextToForce(GetPlayersAll(),("|c0090ee90Обелиск активирован: |r"+(I2S(udg_Zadanie_oskolky[1])+"/5")))call SetUnitOwner(gg_unit_ngob_0439,Player(7),true)if(Trig_Obelisk_1_Func007C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tret'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tret'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tret'))-1))endifendfunctionfunction InitTrig_Obelisk_1 takes nothing returns nothingset gg_trg_Obelisk_1=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(gg_trg_Obelisk_1,256,gg_unit_ngob_0439)call TriggerAddCondition(gg_trg_Obelisk_1,Condition(function Trig_Obelisk_1_Conditions))
call TriggerAddAction(gg_trg_Obelisk_1,function Trig_Obelisk_1_Actions)endfunctionfunction Trig_Obelisk_2_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tret')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Obelisk_2_Func007C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tret'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Obelisk_2_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetUnitAnimation(gg_unit_ngob_0437,"Birth")
set udg_Zadanie_oskolky[1]=(udg_Zadanie_oskolky[1]+1)call UnitAddAbilityBJ('A074',gg_unit_ngob_0437)call DisplayTextToForce(GetPlayersAll(),("|c0090ee90Обелиск активирован: |r"+(I2S(udg_Zadanie_oskolky[1])+"/5")))call SetUnitOwner(gg_unit_ngob_0437,Player(7),true)if(Trig_Obelisk_2_Func007C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tret'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tret'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tret'))-1))endifendfunctionfunction InitTrig_Obelisk_2 takes nothing returns nothingset gg_trg_Obelisk_2=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(gg_trg_Obelisk_2,256,gg_unit_ngob_0437)call TriggerAddCondition(gg_trg_Obelisk_2,Condition(function Trig_Obelisk_2_Conditions))
call TriggerAddAction(gg_trg_Obelisk_2,function Trig_Obelisk_2_Actions)endfunctionfunction Trig_Obelisk_3_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tret')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Obelisk_3_Func007C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tret'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Obelisk_3_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetUnitAnimation(gg_unit_ngob_0438,"Birth")
set udg_Zadanie_oskolky[1]=(udg_Zadanie_oskolky[1]+1)call UnitAddAbilityBJ('A074',gg_unit_ngob_0438)call DisplayTextToForce(GetPlayersAll(),("|c0090ee90Обелиск активирован: |r"+(I2S(udg_Zadanie_oskolky[1])+"/5")))call SetUnitOwner(gg_unit_ngob_0438,Player(7),true)if(Trig_Obelisk_3_Func007C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tret'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tret'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tret'))-1))endifendfunctionfunction InitTrig_Obelisk_3 takes nothing returns nothingset gg_trg_Obelisk_3=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(gg_trg_Obelisk_3,256,gg_unit_ngob_0438)call TriggerAddCondition(gg_trg_Obelisk_3,Condition(function Trig_Obelisk_3_Conditions))
call TriggerAddAction(gg_trg_Obelisk_3,function Trig_Obelisk_3_Actions)endfunctionfunction Trig_Obelisk_4_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tret')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Obelisk_4_Func007C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tret'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Obelisk_4_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetUnitAnimation(gg_unit_ngob_0435,"Birth")
set udg_Zadanie_oskolky[1]=(udg_Zadanie_oskolky[1]+1)call UnitAddAbilityBJ('A074',gg_unit_ngob_0435)call DisplayTextToForce(GetPlayersAll(),("|c0090ee90Обелиск активирован: |r"+(I2S(udg_Zadanie_oskolky[1])+"/5")))call SetUnitOwner(gg_unit_ngob_0435,Player(7),true)if(Trig_Obelisk_4_Func007C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tret'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tret'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tret'))-1))endifendfunctionfunction InitTrig_Obelisk_4 takes nothing returns nothingset gg_trg_Obelisk_4=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(gg_trg_Obelisk_4,256,gg_unit_ngob_0435)call TriggerAddCondition(gg_trg_Obelisk_4,Condition(function Trig_Obelisk_4_Conditions))
call TriggerAddAction(gg_trg_Obelisk_4,function Trig_Obelisk_4_Actions)endfunctionfunction Trig_Obelisk_5_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tret')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Obelisk_5_Func007C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tret'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Obelisk_5_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetUnitAnimation(gg_unit_ngob_0440,"Birth")
set udg_Zadanie_oskolky[1]=(udg_Zadanie_oskolky[1]+1)call UnitAddAbilityBJ('A074',gg_unit_ngob_0440)call DisplayTextToForce(GetPlayersAll(),("|c0090ee90Обелиск активирован: |r"+(I2S(udg_Zadanie_oskolky[1])+"/5")))call SetUnitOwner(gg_unit_ngob_0440,Player(7),true)if(Trig_Obelisk_5_Func007C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tret'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tret'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tret'))-1))endifendfunctionfunction InitTrig_Obelisk_5 takes nothing returns nothingset gg_trg_Obelisk_5=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(gg_trg_Obelisk_5,256,gg_unit_ngob_0440)call TriggerAddCondition(gg_trg_Obelisk_5,Condition(function Trig_Obelisk_5_Conditions))
call TriggerAddAction(gg_trg_Obelisk_5,function Trig_Obelisk_5_Actions)endfunctionfunction Trig_Farion_obelisk_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Emfr_0413)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Farion_obelisk_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateItemLoc('tret',GetUnitLoc(GetTriggerUnit()))call DestroyEffect(udg_Specefect[19])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Emfr_0413,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[19]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Активировать обелиски")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Активировать обелиски","Необходимо активировать 5 обелисков в лесу. Мы должны быть готовы к наступлению тьмы.
Награда:|c00C8C800 Артефакт","ReplaceableTextures\\CommandButtons\\BTNRune.blp")set udg_Zadanie[18]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[18],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Farion_obelisk_complite)endfunctionfunction InitTrig_Farion_obelisk takes nothing returns nothingset gg_trg_Farion_obelisk=CreateTrigger()call DisableTrigger(gg_trg_Farion_obelisk)call TriggerRegisterUnitInRangeSimple(gg_trg_Farion_obelisk,256,gg_unit_Emfr_0413)call TriggerAddCondition(gg_trg_Farion_obelisk,Condition(function Trig_Farion_obelisk_Conditions))call TriggerAddAction(gg_trg_Farion_obelisk,function Trig_Farion_obelisk_Actions)endfunctionfunction Trig_Farion_obelisk_complite_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Emfr_0413)==true))thenreturn false
endifif(not(udg_Zadanie_oskolky[1]>=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Farion_obelisk_complite_Func002C takes nothing returns boolean
if(not(udg_Random<=1))thenreturn false
endifreturn trueendfunctionfunction Trig_Farion_obelisk_complite_Func003C takes nothing returns boolean
if(not(udg_Random<=2))thenreturn false
endifreturn trueendfunctionfunction Trig_Farion_obelisk_complite_Func004C takes nothing returns boolean
if(not(udg_Random<=3))thenreturn false
endifreturn trueendfunctionfunction Trig_Farion_obelisk_complite_Func005C takes nothing returns boolean
if(not(udg_Random<=4))thenreturn false
endifreturn trueendfunctionfunction Trig_Farion_obelisk_complite_Actions takes nothing returns nothingset udg_Random=GetRandomInt(1,4)
if(Trig_Farion_obelisk_complite_Func002C())thencall CreateItemLoc('I04G',GetUnitLoc(GetTriggerUnit()))else
endifif(Trig_Farion_obelisk_complite_Func003C())thencall CreateItemLoc('rwiz',GetUnitLoc(GetTriggerUnit()))else
endifif(Trig_Farion_obelisk_complite_Func004C())thencall CreateItemLoc('wneg',GetUnitLoc(GetTriggerUnit()))else
endifif(Trig_Farion_obelisk_complite_Func005C())thencall CreateItemLoc('ram1',GetUnitLoc(GetTriggerUnit()))else
endifcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 Случайный артефакт|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[19])call QuestSetCompleted(udg_Zadanie[18],true)
call TriggerSleepAction(15.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Emfr_0413,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")set udg_Specefect[19]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Farion_oborona)endfunctionfunction InitTrig_Farion_obelisk_complite takes nothing returns nothingset gg_trg_Farion_obelisk_complite=CreateTrigger()call DisableTrigger(gg_trg_Farion_obelisk_complite)call TriggerRegisterUnitInRangeSimple(gg_trg_Farion_obelisk_complite,256,gg_unit_Emfr_0413)call TriggerAddCondition(gg_trg_Farion_obelisk_complite,Condition(function Trig_Farion_obelisk_complite_Conditions))
call TriggerAddAction(gg_trg_Farion_obelisk_complite,function Trig_Farion_obelisk_complite_Actions)endfunctionfunction Trig_Farion_oborona_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Ecen_0357)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ajen')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Farion_oborona_Actions takes nothing returns nothingcall PingMinimapLocForForceEx(GetPlayersAll(),GetRandomLocInRect(gg_rct_Elfy_oborona),5.00,bj_MINIMAPPINGSTYLE_FLASHY,100.00,100.00,0.00)call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[19])call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Фарион: |rОни не оскобят нашу рощу.")call SetUnitPositionLoc(gg_unit_Emfr_0413,GetRectCenter(gg_rct_Farion))call CreateNUnitsAtLoc(1,'edoc',Player(7),OffsetLocation(GetRectCenter(gg_rct_Farion),100.00,0),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'edoc',Player(7),OffsetLocation(GetRectCenter(gg_rct_Farion),-100.00,0),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'edot',Player(7),OffsetLocation(GetRectCenter(gg_rct_Farion),-100.00,0),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'edot',Player(7),OffsetLocation(GetRectCenter(gg_rct_Farion),100.00,0),bj_UNIT_FACING)endfunctionfunction InitTrig_Farion_oborona takes nothing returns nothingset gg_trg_Farion_oborona=CreateTrigger()call DisableTrigger(gg_trg_Farion_oborona)call TriggerRegisterUnitInRangeSimple(gg_trg_Farion_oborona,256,gg_unit_Emfr_0413)call TriggerAddCondition(gg_trg_Farion_oborona,Condition(function Trig_Farion_oborona_Conditions))call TriggerAddAction(gg_trg_Farion_oborona,function Trig_Farion_oborona_Actions)endfunctionfunction Trig_Zapusk_Demonicheskaya_krov_Func002C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Zapusk_Demonicheskaya_krov_Actions takes nothing returns nothingset udg_Random=GetRandomInt(1,1)
if(Trig_Zapusk_Demonicheskaya_krov_Func002C())thencall ModifyGateBJ(bj_GATEOPERATION_OPEN,gg_dest_LTg3_2178)call EnableTrigger(gg_trg_Samuro)call SetUnitOwner(gg_unit_Osam_0523,Player(6),false)
call SetUnitPositionLoc(gg_unit_Nman_0044,GetUnitLoc(gg_unit_ndkw_0521))
call IssuePointOrderLoc(gg_unit_Osam_0523,"move",GetUnitLoc(gg_unit_nbfl_0522))call ResetUnitAnimation(gg_unit_nbfl_0522)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Ogrh_0043,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[20]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Ogrh_0043),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)else
endifendfunctionfunction InitTrig_Zapusk_Demonicheskaya_krov takes nothing returns nothingset gg_trg_Zapusk_Demonicheskaya_krov=CreateTrigger()call TriggerRegisterTimerEventSingle(gg_trg_Zapusk_Demonicheskaya_krov,GetRandomReal(4300.00,4800.00))call TriggerAddAction(gg_trg_Zapusk_Demonicheskaya_krov,function Trig_Zapusk_Demonicheskaya_krov_Actions)endfunctionfunction Trig_Samuro_Func001Func012C takes nothing returns booleanif(not(IsUnitAliveBJ(gg_unit_Nbbc_0042)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Samuro_Func001C takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='Osam'))then
return false
endifreturn trueendfunctionfunction Trig_Samuro_Actions takes nothing returns nothingif(Trig_Samuro_Func001C())thencall SetUnitPositionLoc(gg_unit_Nbbc_0042,GetUnitLoc(GetTriggerUnit()))call RemoveUnit(gg_unit_Osam_0523)call TriggerSleepAction(2)call IssuePointOrderLoc(gg_unit_Nbbc_0042,"move",GetRectCenter(gg_rct_Samuro))call TriggerSleepAction(12.00)call SetUnitPositionLocFacingBJ(gg_unit_Nbbc_0042,GetRectCenter(gg_rct_Samuro),90.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Ogrh_0043,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[20]=GetLastCreatedEffectBJ()call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Ogrh_0043),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call EnableTrigger(gg_trg_Grom_zadira)call TriggerSleepAction(720.00)if(Trig_Samuro_Func001Func012C())thencall DisableTrigger(GetTriggeringTrigger())call DisableTrigger(gg_trg_Grom_zadira)call DisplayTextToForce(GetPlayersAll(),"|c00FF8C00Орда подчинилась демонам!|r")call SetPlayerAllianceStateBJ(Player(8),Player(0),bj_ALLIANCE_UNALLIED)call SetPlayerAllianceStateBJ(Player(0),Player(8),bj_ALLIANCE_UNALLIED)call SetPlayerAllianceStateBJ(Player(8),Player(1),bj_ALLIANCE_UNALLIED)call SetPlayerAllianceStateBJ(Player(1),Player(8),bj_ALLIANCE_UNALLIED)call SetPlayerAllianceStateBJ(Player(8),Player(2),bj_ALLIANCE_UNALLIED)call SetPlayerAllianceStateBJ(Player(2),Player(8),bj_ALLIANCE_UNALLIED)call SetPlayerAllianceStateBJ(Player(8),Player(3),bj_ALLIANCE_UNALLIED)call SetPlayerAllianceStateBJ(Player(3),Player(8),bj_ALLIANCE_UNALLIED)call SetPlayerAllianceStateBJ(Player(8),Player(4),bj_ALLIANCE_UNALLIED)call SetPlayerAllianceStateBJ(Player(4),Player(8),bj_ALLIANCE_UNALLIED)call SetPlayerAllianceStateBJ(Player(8),Player(5),bj_ALLIANCE_UNALLIED)call SetPlayerAllianceStateBJ(Player(5),Player(8),bj_ALLIANCE_UNALLIED)call SetPlayerAllianceStateBJ(Player(8),Player(7),bj_ALLIANCE_UNALLIED)call SetPlayerAllianceStateBJ(Player(7),Player(8),bj_ALLIANCE_UNALLIED)call SetPlayerAllianceStateBJ(Player(8),Player(9),bj_ALLIANCE_UNALLIED)call SetPlayerAllianceStateBJ(Player(9),Player(8),bj_ALLIANCE_UNALLIED)call SetPlayerTechResearchedSwap('Roch',1,Player(8))
call SetUnitPositionLoc(gg_unit_Opgh_0524,GetUnitLoc(gg_unit_Ogrh_0043))
call DestroyEffect(udg_Specefect[20])call QuestSetCompleted(udg_Zadanie[19],false)call RemoveUnit(gg_unit_Ogrh_0043)else
endifelse
endifendfunctionfunction InitTrig_Samuro takes nothing returns nothingset gg_trg_Samuro=CreateTrigger()call DisableTrigger(gg_trg_Samuro)call TriggerRegisterUnitInRangeSimple(gg_trg_Samuro,256,gg_unit_nbfl_0522)call TriggerAddAction(gg_trg_Samuro,function Trig_Samuro_Actions)endfunctionfunction Trig_Grom_zadira_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Ogrh_0043)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Grom_zadira_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[20])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Ogrh_0043,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[20]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Демоническая кровь")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Демоническая кровь","Маннорох обещал наделить нас великой силой. Самуро первый испил его крови, и его сила возросла в разы. Ты считаешь, что мы не должны этого делать? Тогда докажи мне убей Самуро покажи, что истинная сила не нуждается в помощи демонов.
Награда:|c00C8C800 Артефакт","ReplaceableTextures\\CommandButtons\\BTNChaosBlademaster.blp")set udg_Zadanie[19]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[19],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Grom_Zadira_Complite)endfunctionfunction InitTrig_Grom_zadira takes nothing returns nothingset gg_trg_Grom_zadira=CreateTrigger()call DisableTrigger(gg_trg_Grom_zadira)call TriggerRegisterUnitInRangeSimple(gg_trg_Grom_zadira,256,gg_unit_Ogrh_0043)call TriggerAddCondition(gg_trg_Grom_zadira,Condition(function Trig_Grom_zadira_Conditions))
call TriggerAddAction(gg_trg_Grom_zadira,function Trig_Grom_zadira_Actions)endfunctionfunction Trig_Grom_Zadira_Complite_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Ogrh_0043)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Nbbc_0042)==false))then
return false
endifreturn trueendfunctionfunction Trig_Grom_Zadira_Complite_Func002C takes nothing returns booleanif(not(udg_Random<=1))thenreturn false
endifreturn trueendfunctionfunction Trig_Grom_Zadira_Complite_Func003C takes nothing returns booleanif(not(udg_Random<=2))thenreturn false
endifreturn trueendfunctionfunction Trig_Grom_Zadira_Complite_Func004C takes nothing returns booleanif(not(udg_Random<=3))thenreturn false
endifreturn trueendfunctionfunction Trig_Grom_Zadira_Complite_Func005C takes nothing returns booleanif(not(udg_Random<=4))thenreturn false
endifreturn trueendfunctionfunction Trig_Grom_Zadira_Complite_Actions takes nothing returns nothing
set udg_Random=GetRandomInt(1,4)
if(Trig_Grom_Zadira_Complite_Func002C())then
call CreateItemLoc('I04E',GetUnitLoc(GetTriggerUnit()))else
endifif(Trig_Grom_Zadira_Complite_Func003C())then
call CreateItemLoc('hval',GetUnitLoc(GetTriggerUnit()))else
endifif(Trig_Grom_Zadira_Complite_Func004C())then
call CreateItemLoc('frgd',GetUnitLoc(GetTriggerUnit()))else
endifif(Trig_Grom_Zadira_Complite_Func005C())then
call CreateItemLoc('I04A',GetUnitLoc(GetTriggerUnit()))else
endifcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 Случайный артефакт|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[20])call QuestSetCompleted(udg_Zadanie[19],true)
call TriggerSleepAction(15.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Ogrh_0043,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")set udg_Specefect[20]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Grom_Zadira_oborona)call TriggerSleepAction(15.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Ocb2_0461,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[21]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Kern_ogry)
call TriggerSleepAction(15.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Odrt_0462,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[22]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Drek_tar_odergimost)call TriggerSleepAction(15.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Oshd_0529,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[23]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Zulman_put_duhov)endfunctionfunction InitTrig_Grom_Zadira_Complite takes nothing returns nothing
set gg_trg_Grom_Zadira_Complite=CreateTrigger()call DisableTrigger(gg_trg_Grom_Zadira_Complite)
call TriggerRegisterUnitInRangeSimple(gg_trg_Grom_Zadira_Complite,256,gg_unit_Ogrh_0043)
call TriggerAddCondition(gg_trg_Grom_Zadira_Complite,Condition(function Trig_Grom_Zadira_Complite_Conditions))call TriggerAddAction(gg_trg_Grom_Zadira_Complite,function Trig_Grom_Zadira_Complite_Actions)endfunctionfunction Trig_Grom_Zadira_oborona_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Ogrh_0043)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ajen')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Grom_Zadira_oborona_Actions takes nothing returns nothingcall PingMinimapLocForForceEx(GetPlayersAll(),GetRandomLocInRect(gg_rct_Grom_Zadira),5.00,bj_MINIMAPPINGSTYLE_FLASHY,100.00,100.00,0.00)
call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[20])call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Гром задира: |rОни познают истинную силу орды.")call CreateNUnitsAtLoc(1,'owtw',Player(8),GetRectCenter(gg_rct_Vishka_orkov_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'owtw',Player(8),GetRectCenter(gg_rct_Vishka_orkov_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'owtw',Player(8),GetRectCenter(gg_rct_Vishka_orkov_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'owtw',Player(8),GetRectCenter(gg_rct_Vishka_orkov_4),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'otrb',Player(8),OffsetLocation(GetRectCenter(gg_rct_Vishka_orkov_1),-200.00,100.00),350.00)call CreateNUnitsAtLoc(1,'otrb',Player(8),OffsetLocation(GetRectCenter(gg_rct_Vishka_orkov_2),-200.00,-100.00),350.00)call SetUnitPositionLocFacingBJ(gg_unit_Ogrh_0043,GetRectCenter(gg_rct_Grom_Zadira),350.00)call CreateNUnitsAtLoc(1,'ogru',Player(8),OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),200.00,-100.00),350.00)call CreateNUnitsAtLoc(1,'ogru',Player(8),OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),200.00,100.00),350.00)call CreateNUnitsAtLoc(1,'orai',Player(8),OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),200.00,0.00),350.00)call CreateNUnitsAtLoc(1,'ogru',Player(8),OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),100.00,100.00),350.00)call CreateNUnitsAtLoc(1,'ogru',Player(8),OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),100.00,-100.00),350.00)call CreateNUnitsAtLoc(1,'orai',Player(8),OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),0.00,100.00),350.00)call CreateNUnitsAtLoc(1,'orai',Player(8),OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),0.00,-100.00),350.00)
call CreateNUnitsAtLoc(1,'ohun',Player(8),OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),-100.00,100.00),350.00)call CreateNUnitsAtLoc(1,'ohun',Player(8),OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),-100.00,-100.00),350.00)call CreateNUnitsAtLoc(1,'oshm',Player(8),OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),-100.00,0.00),350.00)
call SetUnitPositionLocFacingBJ(gg_unit_owyv_0501,OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),0,200.00),350.00)
call SetUnitPositionLocFacingBJ(gg_unit_owyv_0500,OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),0,-200.00),350.00)call SetUnitPositionLocFacingBJ(gg_unit_okod_0489,OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),0,-300.00),350.00)call SetUnitPositionLocFacingBJ(gg_unit_okod_0491,OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),0,300.00),350.00)
endfunctionfunction InitTrig_Grom_Zadira_oborona takes nothing returns nothingset gg_trg_Grom_Zadira_oborona=CreateTrigger()call DisableTrigger(gg_trg_Grom_Zadira_oborona)call TriggerRegisterUnitInRangeSimple(gg_trg_Grom_Zadira_oborona,256,gg_unit_Ogrh_0043)call TriggerAddCondition(gg_trg_Grom_Zadira_oborona,Condition(function Trig_Grom_Zadira_oborona_Conditions))
call TriggerAddAction(gg_trg_Grom_Zadira_oborona,function Trig_Grom_Zadira_oborona_Actions)endfunctionfunction Trig_Kern_ogry_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Ocb2_0461)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kern_ogry_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[21])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Ogrh_0043,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[21]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Огры")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Огры","Огры они считают себя хозяевами горы. Духи предков предупредили меня, что огры собираются на горе и хотят напасть на наш лагерь. Мы должны ударить по ним первым и  уничтожить их предводителя.Награда:|c00C8C800 Артефакт","ReplaceableTextures\\CommandButtons\\BTNOgreLord.blp")set udg_Zadanie[20]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[20],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Kern_ogry_Complite)call SetUnitPositionLoc(gg_unit_nogl_0525,GetRectCenter(gg_rct_Ogry))call CreateNUnitsAtLoc(1,'nogm',Player(11),GetRandomLocInRect(gg_rct_Ogry),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nogm',Player(11),GetRandomLocInRect(gg_rct_Ogry),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nogm',Player(11),GetRandomLocInRect(gg_rct_Ogry),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nogm',Player(11),GetRandomLocInRect(gg_rct_Ogry),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nomg',Player(11),GetRandomLocInRect(gg_rct_Ogry),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nomg',Player(11),GetRandomLocInRect(gg_rct_Ogry),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nogr',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nogr',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nogr',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nogr',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nogr',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nogr',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nogr',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nogr',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nogr',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nogr',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call TriggerSleepAction(300.00)call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'nogr'),"attack",GetUnitLoc(gg_unit_Ocb2_0461))
call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'nomg'),"attack",GetUnitLoc(gg_unit_Ocb2_0461))
call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'nogm'),"attack",GetUnitLoc(gg_unit_Ocb2_0461))
call IssuePointOrderLoc(gg_unit_nogl_0525,"attack",GetUnitLoc(gg_unit_Ocb2_0461))call TriggerSleepAction(60.00)call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'nogr'),"attack",GetUnitLoc(gg_unit_Ocb2_0461))
call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'nomg'),"attack",GetUnitLoc(gg_unit_Ocb2_0461))
call GroupPointOrderLoc(GetUnitsOfPlayerAndTypeId(Player(11),'nogm'),"attack",GetUnitLoc(gg_unit_Ocb2_0461))
call IssuePointOrderLoc(gg_unit_nogl_0525,"attack",GetUnitLoc(gg_unit_Ocb2_0461))endfunctionfunction InitTrig_Kern_ogry takes nothing returns nothingset gg_trg_Kern_ogry=CreateTrigger()
call DisableTrigger(gg_trg_Kern_ogry)call TriggerRegisterUnitInRangeSimple(gg_trg_Kern_ogry,256,gg_unit_Ocb2_0461)call TriggerAddCondition(gg_trg_Kern_ogry,Condition(function Trig_Kern_ogry_Conditions))
call TriggerAddAction(gg_trg_Kern_ogry,function Trig_Kern_ogry_Actions)endfunctionfunction Trig_Kern_ogry_Complite_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Ocb2_0461)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_nogl_0525)==false))then
return false
endifreturn trueendfunctionfunction Trig_Kern_ogry_Complite_Func002C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Kern_ogry_Complite_Func003C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Kern_ogry_Complite_Func004C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Kern_ogry_Complite_Func005C takes nothing returns booleanif(not(udg_Random==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Kern_ogry_Complite_Actions takes nothing returns nothingset udg_Random=GetRandomInt(1,4)
if(Trig_Kern_ogry_Complite_Func002C())thencall CreateItemLoc('I02J',GetUnitLoc(GetTriggerUnit()))else
endifif(Trig_Kern_ogry_Complite_Func003C())thencall CreateItemLoc('hval',GetUnitLoc(GetTriggerUnit()))else
endifif(Trig_Kern_ogry_Complite_Func004C())thencall CreateItemLoc('I02U',GetUnitLoc(GetTriggerUnit()))else
endifif(Trig_Kern_ogry_Complite_Func005C())thencall CreateItemLoc('I05R',GetUnitLoc(GetTriggerUnit()))else
endifcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 Случайный артефакт|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[21])call QuestSetCompleted(udg_Zadanie[20],true)
call TriggerSleepAction(15.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Ocb2_0461,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")set udg_Specefect[21]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Kern_oborona)call TriggerSleepAction(15.00)endfunctionfunction InitTrig_Kern_ogry_Complite takes nothing returns nothingset gg_trg_Kern_ogry_Complite=CreateTrigger()call DisableTrigger(gg_trg_Kern_ogry_Complite)call TriggerRegisterUnitInRangeSimple(gg_trg_Kern_ogry_Complite,256,gg_unit_Ocb2_0461)call TriggerAddCondition(gg_trg_Kern_ogry_Complite,Condition(function Trig_Kern_ogry_Complite_Conditions))call TriggerAddAction(gg_trg_Kern_ogry_Complite,function Trig_Kern_ogry_Complite_Actions)endfunctionfunction Trig_Kern_oborona_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Ocb2_0461)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ajen')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kern_oborona_Actions takes nothing returns nothing
call PingMinimapLocForForceEx(GetPlayersAll(),GetRandomLocInRect(gg_rct_Grom_Zadira),5.00,bj_MINIMAPPINGSTYLE_FLASHY,100.00,100.00,0.00)
call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[21])call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Керн: |rПредки гордятся нами.")
call SetUnitPositionLocFacingBJ(gg_unit_Ocb2_0461,GetRectCenter(gg_rct_Grom_Zadira),350.00)call CreateNUnitsAtLoc(1,'ogru',Player(8),OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),200.00,-200.00),350.00)call CreateNUnitsAtLoc(1,'ogru',Player(8),OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),200.00,200.00),350.00)call CreateNUnitsAtLoc(1,'otau',Player(8),OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),-600.00,100.00),350.00)call CreateNUnitsAtLoc(1,'otau',Player(8),OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),-600.00,-100.00),350.00)call CreateNUnitsAtLoc(1,'otau',Player(8),OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),-300.00,-300.00),350.00)call CreateNUnitsAtLoc(1,'otau',Player(8),OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),-300.00,300.00),350.00)call CreateNUnitsAtLoc(1,'ospw',Player(8),OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),-200.00,0.00),350.00)
call SetUnitPositionLocFacingBJ(gg_unit_okod_0490,OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),-400.00,0.00),350.00)
call SetUnitPositionLocFacingBJ(gg_unit_otau_0487,OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),-400.00,100.00),350.00)call SetUnitPositionLocFacingBJ(gg_unit_otau_0486,OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),-400.00,-100.00),350.00)endfunctionfunction InitTrig_Kern_oborona takes nothing returns nothing
set gg_trg_Kern_oborona=CreateTrigger()call DisableTrigger(gg_trg_Kern_oborona)
call TriggerRegisterUnitInRangeSimple(gg_trg_Kern_oborona,256,gg_unit_Ocb2_0461)
call TriggerAddCondition(gg_trg_Kern_oborona,Condition(function Trig_Kern_oborona_Conditions))call TriggerAddAction(gg_trg_Kern_oborona,function Trig_Kern_oborona_Actions)endfunctionfunction Trig_Drek_tar_odergimost_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Odrt_0462)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Drek_tar_odergimost_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[22])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Odrt_0462,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[22]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Гарош")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Гарош","Гарош был изгнан нашим кланом в пустынные земли. Но сейчас он принял сторону Магеридона и хочет уничтожить наш клан. Он собрал отряд из изгнанных орков и сейчас они направляются сюда что бы отомстить. Он переполнен жаждой мести так что остановить его может только смерть.Награда:|c00C8C800 Артефакт","ReplaceableTextures\\CommandButtons\\BTNChaosWarlord.blp")set udg_Zadanie[21]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[21],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Drek_tar_odergimost_complite)call TriggerSleepAction(30.00)call SetUnitPositionLoc(gg_unit_owar_0638,GetRectCenter(gg_rct_Fenics))call CreateNUnitsAtLoc(1,'nchg',Player(10),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(gg_rct_Orda))call CreateNUnitsAtLoc(1,'nchg',Player(10),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(gg_rct_Orda))call CreateNUnitsAtLoc(1,'nchg',Player(10),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(gg_rct_Orda))call CreateNUnitsAtLoc(1,'nchg',Player(10),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(gg_rct_Orda))call CreateNUnitsAtLoc(1,'nchg',Player(10),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(gg_rct_Orda))call TriggerSleepAction(4.00)call CreateNUnitsAtLoc(1,'nchr',Player(10),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(gg_rct_Orda))call CreateNUnitsAtLoc(1,'nchr',Player(10),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(gg_rct_Orda))call CreateNUnitsAtLoc(1,'nchr',Player(10),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(gg_rct_Orda))call CreateNUnitsAtLoc(1,'nchr',Player(10),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(gg_rct_Orda))call TriggerSleepAction(5.00)call CreateNUnitsAtLoc(1,'nchw',Player(10),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(gg_rct_Orda))call CreateNUnitsAtLoc(1,'nchw',Player(10),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(gg_rct_Orda))call CreateNUnitsAtLoc(1,'nchw',Player(10),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(gg_rct_Orda))call TriggerSleepAction(15.00)call CreateNUnitsAtLoc(1,'nchw',Player(10),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(gg_rct_Orda))call CreateNUnitsAtLoc(1,'nchr',Player(10),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(gg_rct_Orda))call CreateNUnitsAtLoc(1,'nchr',Player(10),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(gg_rct_Orda))call CreateNUnitsAtLoc(1,'nchr',Player(10),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(gg_rct_Orda))call CreateNUnitsAtLoc(1,'nchg',Player(10),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(gg_rct_Orda))call CreateNUnitsAtLoc(1,'nchg',Player(10),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(gg_rct_Orda))call CreateNUnitsAtLoc(1,'nchg',Player(10),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(gg_rct_Orda))call CreateNUnitsAtLoc(1,'nchg',Player(10),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(gg_rct_Orda))call CreateNUnitsAtLoc(1,'nchg',Player(10),GetRectCenter(gg_rct_Fenics),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(gg_rct_Orda))call IssuePointOrderLoc(gg_unit_owar_0638,"attack",GetRectCenter(gg_rct_Orda))endfunctionfunction InitTrig_Drek_tar_odergimost takes nothing returns nothingset gg_trg_Drek_tar_odergimost=CreateTrigger()call DisableTrigger(gg_trg_Drek_tar_odergimost)call TriggerRegisterUnitInRangeSimple(gg_trg_Drek_tar_odergimost,256,gg_unit_Odrt_0462)call TriggerAddCondition(gg_trg_Drek_tar_odergimost,Condition(function Trig_Drek_tar_odergimost_Conditions))
call TriggerAddAction(gg_trg_Drek_tar_odergimost,function Trig_Drek_tar_odergimost_Actions)endfunctionfunction Trig_Drek_tar_odergimost_complite_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Odrt_0462)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_owar_0638)==false))then
return false
endifreturn trueendfunctionfunction Trig_Drek_tar_odergimost_complite_Func002C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Drek_tar_odergimost_complite_Func003C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Drek_tar_odergimost_complite_Func004C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Drek_tar_odergimost_complite_Func005C takes nothing returns booleanif(not(udg_Random==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Drek_tar_odergimost_complite_Actions takes nothing returns nothing
set udg_Random=GetRandomInt(1,4)
if(Trig_Drek_tar_odergimost_complite_Func002C())then
call CreateItemLoc('I032',GetUnitLoc(GetTriggerUnit()))else
endifif(Trig_Drek_tar_odergimost_complite_Func003C())then
call CreateItemLoc('I04A',GetUnitLoc(GetTriggerUnit()))else
endifif(Trig_Drek_tar_odergimost_complite_Func004C())then
call CreateItemLoc('I02U',GetUnitLoc(GetTriggerUnit()))else
endifif(Trig_Drek_tar_odergimost_complite_Func005C())then
call CreateItemLoc('I02Z',GetUnitLoc(GetTriggerUnit()))else
endifcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 Случайный артефакт|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[22])call QuestSetCompleted(udg_Zadanie[21],true)
call TriggerSleepAction(15.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Odrt_0462,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")set udg_Specefect[22]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Drek_Tar_Oborona)call TriggerSleepAction(15.00)endfunctionfunction InitTrig_Drek_tar_odergimost_complite takes nothing returns nothing
set gg_trg_Drek_tar_odergimost_complite=CreateTrigger()call DisableTrigger(gg_trg_Drek_tar_odergimost_complite)
call TriggerRegisterUnitInRangeSimple(gg_trg_Drek_tar_odergimost_complite,256,gg_unit_Odrt_0462)
call TriggerAddCondition(gg_trg_Drek_tar_odergimost_complite,Condition(function Trig_Drek_tar_odergimost_complite_Conditions))call TriggerAddAction(gg_trg_Drek_tar_odergimost_complite,function Trig_Drek_tar_odergimost_complite_Actions)endfunctionfunction Trig_Drek_Tar_Oborona_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Odrt_0462)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ajen')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Drek_Tar_Oborona_Actions takes nothing returns nothing
call PingMinimapLocForForceEx(GetPlayersAll(),GetRandomLocInRect(gg_rct_Grom_Zadira),5.00,bj_MINIMAPPINGSTYLE_FLASHY,100.00,100.00,0.00)
call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[22])call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Дрек Тар: |rДухи помогут нам.")call SetUnitPositionLocFacingBJ(gg_unit_Odrt_0462,GetRectCenter(gg_rct_Grom_Zadira),350.00)call SetUnitPositionLocFacingBJ(gg_unit_oshm_0498,OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),-200.00,-100.00),350.00)call SetUnitPositionLocFacingBJ(gg_unit_odoc_0495,OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),-200.00,100.00),350.00)call SetUnitPositionLocFacingBJ(gg_unit_nw2w_0519,OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),300.00,100.00),350.00)call SetUnitPositionLocFacingBJ(gg_unit_nw2w_0518,OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),300.00,-100.00),350.00)call SetUnitPositionLocFacingBJ(gg_unit_nw2w_0516,OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),-300.00,-100.00),350.00)call SetUnitPositionLocFacingBJ(gg_unit_oshm_0497,OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),-300.00,100.00),350.00)call SetUnitPositionLocFacingBJ(gg_unit_nw2w_0517,OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),-500.00,0.00),350.00)
call SetUnitPositionLocFacingBJ(gg_unit_odoc_0496,OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),-550.00,0.00),350.00)
call SetUnitPositionLocFacingBJ(gg_unit_nw2w_0515,OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),0.00,150.00),350.00)call SetUnitPositionLocFacingBJ(gg_unit_oshm_0499,OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),0.00,-150.00),350.00)
call GroupImmediateOrder(GetUnitsOfPlayerAndTypeId(Player(8),'oshm'),"holdposition")
call GroupImmediateOrder(GetUnitsOfPlayerAndTypeId(Player(8),'odoc'),"holdposition")
call GroupImmediateOrder(GetUnitsOfPlayerAndTypeId(Player(8),'nw2w'),"holdposition")
call GroupImmediateOrder(GetUnitsOfPlayerAndTypeId(Player(8),'owyv'),"holdposition")
call GroupImmediateOrder(GetUnitsOfPlayerAndTypeId(Player(8),'okod'),"holdposition")
endfunctionfunction InitTrig_Drek_Tar_Oborona takes nothing returns nothing
set gg_trg_Drek_Tar_Oborona=CreateTrigger()call DisableTrigger(gg_trg_Drek_Tar_Oborona)
call TriggerRegisterUnitInRangeSimple(gg_trg_Drek_Tar_Oborona,256,gg_unit_Odrt_0462)
call TriggerAddCondition(gg_trg_Drek_Tar_Oborona,Condition(function Trig_Drek_Tar_Oborona_Conditions))call TriggerAddAction(gg_trg_Drek_Tar_Oborona,function Trig_Drek_Tar_Oborona_Actions)endfunctionfunction Trig_Zulman_put_duhov_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Oshd_0529)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zulman_put_duhov_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call CreateItemLoc('woms',OffsetLocation(GetRectCenter(GetPlayableMapRect()),4960.00,-9350.00))call DestroyEffect(udg_Specefect[23])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Oshd_0529,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[23]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Путь духов")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Путь духов","В юго-восточном лесу от замка жил шаман, обедающий амулетом духов. Шаман погиб, не успев передать амулет своему приемнику. Если ты принесешь мне этот амулет я буду вечно признателен тебе.Награда:|c00C8C800 +1 навык","ReplaceableTextures\\CommandButtons\\BTNWandOfShadowSight.blp")set udg_Zadanie[22]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[22],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Zulman_put_duhov_complite)
endfunctionfunction InitTrig_Zulman_put_duhov takes nothing returns nothing
set gg_trg_Zulman_put_duhov=CreateTrigger()call DisableTrigger(gg_trg_Zulman_put_duhov)
call TriggerRegisterUnitInRangeSimple(gg_trg_Zulman_put_duhov,256,gg_unit_Oshd_0529)
call TriggerAddCondition(gg_trg_Zulman_put_duhov,Condition(function Trig_Zulman_put_duhov_Conditions))call TriggerAddAction(gg_trg_Zulman_put_duhov,function Trig_Zulman_put_duhov_Actions)endfunctionfunction Trig_Zulman_put_duhov_complite_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Oshd_0529)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'woms')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zulman_put_duhov_complite_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'woms'))call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +1 навык|r")
call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[23])call QuestSetCompleted(udg_Zadanie[22],true)
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_LUMBER)+1))
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_LUMBER)+1))
call TriggerSleepAction(15.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Oshd_0529,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")set udg_Specefect[23]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Zulmar_Oborona)endfunctionfunction InitTrig_Zulman_put_duhov_complite takes nothing returns nothingset gg_trg_Zulman_put_duhov_complite=CreateTrigger()
call DisableTrigger(gg_trg_Zulman_put_duhov_complite)call TriggerRegisterUnitInRangeSimple(gg_trg_Zulman_put_duhov_complite,256,gg_unit_Oshd_0529)call TriggerAddCondition(gg_trg_Zulman_put_duhov_complite,Condition(function Trig_Zulman_put_duhov_complite_Conditions))
call TriggerAddAction(gg_trg_Zulman_put_duhov_complite,function Trig_Zulman_put_duhov_complite_Actions)endfunctionfunction Trig_Zulmar_Oborona_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Oshd_0529)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ajen')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zulmar_Oborona_Actions takes nothing returns nothingcall PingMinimapLocForForceEx(GetPlayersAll(),GetRandomLocInRect(gg_rct_Grom_Zadira),5.00,bj_MINIMAPPINGSTYLE_FLASHY,100.00,100.00,0.00)
call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[22])call DisplayTextToForce(GetPlayersAll(),"|c00C8C800Дрек Тар: |rДухи помогут нам.")call SetUnitPositionLocFacingBJ(gg_unit_Oshd_0529,GetRectCenter(gg_rct_Grom_Zadira),350.00)call CreateNUnitsAtLoc(1,'osp4',Player(8),OffsetLocation(GetRectCenter(gg_rct_Vishka_orkov_1),0.00,100.00),350.00)call CreateNUnitsAtLoc(1,'osp4',Player(8),OffsetLocation(GetRectCenter(gg_rct_Vishka_orkov_2),0.00,-100.00),350.00)call CreateNUnitsAtLoc(1,'ohwd',Player(8),OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),250.00,0.00),350.00)call CreateNUnitsAtLoc(1,'ohwd',Player(8),OffsetLocation(GetRectCenter(gg_rct_Grom_Zadira),-350.00,0.00),350.00)
call CreateNUnitsAtLoc(1,'osp4',Player(8),OffsetLocation(GetRectCenter(gg_rct_Vishka_orkov_4),0.00,100.00),350.00)call CreateNUnitsAtLoc(1,'osp4',Player(8),OffsetLocation(GetRectCenter(gg_rct_Vishka_orkov_3),0.00,100.00),350.00)call GroupImmediateOrder(GetUnitsOfPlayerAndTypeId(Player(8),'oshm'),"holdposition")
call GroupImmediateOrder(GetUnitsOfPlayerAndTypeId(Player(8),'odoc'),"holdposition")
call GroupImmediateOrder(GetUnitsOfPlayerAndTypeId(Player(8),'nw2w'),"holdposition")
call GroupImmediateOrder(GetUnitsOfPlayerAndTypeId(Player(8),'owyv'),"holdposition")
call GroupImmediateOrder(GetUnitsOfPlayerAndTypeId(Player(8),'okod'),"holdposition")
endfunctionfunction InitTrig_Zulmar_Oborona takes nothing returns nothingset gg_trg_Zulmar_Oborona=CreateTrigger()call DisableTrigger(gg_trg_Zulmar_Oborona)call TriggerRegisterUnitInRangeSimple(gg_trg_Zulmar_Oborona,256,gg_unit_Oshd_0529)call TriggerAddCondition(gg_trg_Zulmar_Oborona,Condition(function Trig_Zulmar_Oborona_Conditions))call TriggerAddAction(gg_trg_Zulmar_Oborona,function Trig_Zulmar_Oborona_Actions)endfunctionfunction Trig_Tank_pochinka_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Ntin_0305)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Tank_pochinka_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[24])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Ntin_0305,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[24]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Танк")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Танк","Если поможеш починить танк, то он обязательно поможет тебе при обороне замка. Для починки используй рабочих.","ReplaceableTextures\\CommandButtons\\BTNSeigeEngine.blp")set udg_Zadanie[23]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[23],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Tank_complite)
endfunctionfunction InitTrig_Tank_pochinka takes nothing returns nothingset gg_trg_Tank_pochinka=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(gg_trg_Tank_pochinka,256,gg_unit_Ntin_0305)call TriggerAddCondition(gg_trg_Tank_pochinka,Condition(function Trig_Tank_pochinka_Conditions))
call TriggerAddAction(gg_trg_Tank_pochinka,function Trig_Tank_pochinka_Actions)endfunctionfunction Trig_Tank_complite_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Ntin_0305)==true))thenreturn false
endifif(not(GetUnitStateSwap(UNIT_STATE_LIFE,gg_unit_hrtt_0306)==GetUnitStateSwap(UNIT_STATE_MAX_LIFE,gg_unit_hrtt_0306)))thenreturn false
endifreturn trueendfunctionfunction Trig_Tank_complite_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DestroyEffect(udg_Specefect[24])call QuestSetCompleted(udg_Zadanie[23],true)
call SetUnitPositionLocFacingLocBJ(gg_unit_hrtt_0306,OffsetLocation(GetRectCenter(gg_rct_Marshal_Oborona),0,300.00),GetRandomLocInRect(gg_rct_Marshal_Oborona_3))call SetUnitOwner(gg_unit_hrtt_0306,Player(9),true)call TriggerSleepAction(1.00)call IssueImmediateOrder(gg_unit_hrtt_0306,"holdposition")call TriggerSleepAction(5.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Ntin_0305,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[24]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Goblinskiy_rezak)endfunctionfunction InitTrig_Tank_complite takes nothing returns nothingset gg_trg_Tank_complite=CreateTrigger()
call DisableTrigger(gg_trg_Tank_complite)call TriggerRegisterUnitInRangeSimple(gg_trg_Tank_complite,256,gg_unit_Ntin_0305)call TriggerAddCondition(gg_trg_Tank_complite,Condition(function Trig_Tank_complite_Conditions))
call TriggerAddAction(gg_trg_Tank_complite,function Trig_Tank_complite_Actions)endfunctionfunction Trig_Goblinskiy_rezak_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Ntin_0305)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Goblinskiy_rezak_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[24])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Ntin_0305,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[24]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Гоблинский резак")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Гоблинский резак","Ты слышал о новом изобретении Гоблинский резак. Уникальный механизм способный валить деревья со скоростью 10 рабочих. Его пила разрубает деревья как солому. Эм ну так вот с ними произошла проблемка и несколько экземпляров вышли из строя. Их необходимо остановить пока никто не пострадал.В качестве доказательства мне хватит механических деталей.","ReplaceableTextures\\CommandButtons\\BTNJunkGolem.blp")set udg_Zadanie[23]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[23],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Goblinskiy_rezak_Complite)
call CreateNUnitsAtLoc(1,'ngir',Player(10),GetUnitLoc(gg_unit_nfa2_0668),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"patrol",GetRandomLocInRect(gg_rct_Zona_2))
call TriggerSleepAction(2)call CreateNUnitsAtLoc(1,'ngir',Player(10),GetUnitLoc(gg_unit_nfa2_0668),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"patrol",GetRandomLocInRect(gg_rct_Zona_2))
call TriggerSleepAction(2)call CreateNUnitsAtLoc(1,'ngir',Player(10),GetUnitLoc(gg_unit_nfa2_0668),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"patrol",GetRandomLocInRect(gg_rct_Zona_2))
endfunctionfunction InitTrig_Goblinskiy_rezak takes nothing returns nothing
set gg_trg_Goblinskiy_rezak=CreateTrigger()call DisableTrigger(gg_trg_Goblinskiy_rezak)
call TriggerRegisterUnitInRangeSimple(gg_trg_Goblinskiy_rezak,256,gg_unit_Ntin_0305)
call TriggerAddCondition(gg_trg_Goblinskiy_rezak,Condition(function Trig_Goblinskiy_rezak_Conditions))call TriggerAddAction(gg_trg_Goblinskiy_rezak,function Trig_Goblinskiy_rezak_Actions)endfunctionfunction Trig_Goblinskiy_rezak_Complite_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Ntin_0305)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'glsk')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Goblinskiy_rezak_Complite_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'glsk'))call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[24])call QuestSetCompleted(udg_Zadanie[23],true)
endfunctionfunction InitTrig_Goblinskiy_rezak_Complite takes nothing returns nothingset gg_trg_Goblinskiy_rezak_Complite=CreateTrigger()
call DisableTrigger(gg_trg_Goblinskiy_rezak_Complite)call TriggerRegisterUnitInRangeSimple(gg_trg_Goblinskiy_rezak_Complite,256,gg_unit_Ntin_0305)call TriggerAddCondition(gg_trg_Goblinskiy_rezak_Complite,Condition(function Trig_Goblinskiy_rezak_Complite_Conditions))
call TriggerAddAction(gg_trg_Goblinskiy_rezak_Complite,function Trig_Goblinskiy_rezak_Complite_Actions)endfunctionfunction Trig_Poteriavshayasia_gruppa_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hpb1_0681)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Poteriavshayasia_gruppa_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[25])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hpb1_0681,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[25]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Узнать что случилось с отрядом.")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Пропавший отряд","В деревни говорили, что рядом с лагерем разбойников в пещере завелся огр поедающий людей. Маршал выслал отряд разобраться с огром. Но от них нет вестей уже больше суток. Не мог бы ты разузнать что случилось с отрядом. ","ReplaceableTextures\\CommandButtons\\BTNFootman.blp")set udg_Zadanie[24]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[24],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Umirayushiy_pehotinec)
call SetUnitPositionLoc(gg_unit_hfoo_0682,OffsetLocation(GetRectCenter(GetPlayableMapRect()),6220.00,-8990.00))call SetUnitColor(gg_unit_hfoo_0682,PLAYER_COLOR_LIGHT_BLUE)
call SetUnitLifePercentBJ(gg_unit_hfoo_0682,10.00)call SetUnitAnimation(gg_unit_hfoo_0682,"death")
call TriggerSleepAction(2)call SetUnitTimeScalePercent(gg_unit_hfoo_0682,0.00)
call PauseUnitBJ(true,gg_unit_hfoo_0682)
call CreatePermanentCorpseLocBJ(bj_CORPSETYPE_FLESH,'hfoo',Player(9),OffsetLocation(GetRectCenter(GetPlayableMapRect()),5890.00,-7900.00),GetRandomDirectionDeg())call CreatePermanentCorpseLocBJ(bj_CORPSETYPE_FLESH,'hfoo',Player(9),OffsetLocation(GetRectCenter(GetPlayableMapRect()),5840.00,-8400.00),GetRandomDirectionDeg())call TriggerSleepAction(2)call SetUnitPositionLoc(gg_unit_n00S_0680,OffsetLocation(GetRectCenter(GetPlayableMapRect()),5950.00,-7980.00))endfunctionfunction InitTrig_Poteriavshayasia_gruppa takes nothing returns nothingset gg_trg_Poteriavshayasia_gruppa=CreateTrigger()call DisableTrigger(gg_trg_Poteriavshayasia_gruppa)call TriggerRegisterUnitInRangeSimple(gg_trg_Poteriavshayasia_gruppa,256,gg_unit_Hpb1_0681)call TriggerAddCondition(gg_trg_Poteriavshayasia_gruppa,Condition(function Trig_Poteriavshayasia_gruppa_Conditions))
call TriggerAddAction(gg_trg_Poteriavshayasia_gruppa,function Trig_Poteriavshayasia_gruppa_Actions)endfunctionfunction Trig_Umirayushiy_pehotinec_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_hfoo_0682)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Umirayushiy_pehotinec_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Умирающий пехотинец:|r Бегите он очень силен… Мы не справились… Он…Он всех убил…Спасайтесь…")call TriggerSleepAction(4.00)call KillUnit(gg_unit_hfoo_0682)
call EnableTrigger(gg_trg_Poteriavshayasia_gruppa_Complite)call TriggerSleepAction(6.00)call DisplayTextToForce(GetPlayersAll(),"Расскажите, что случилось с группой.")endfunctionfunction InitTrig_Umirayushiy_pehotinec takes nothing returns nothingset gg_trg_Umirayushiy_pehotinec=CreateTrigger()
call DisableTrigger(gg_trg_Umirayushiy_pehotinec)call TriggerRegisterUnitInRangeSimple(gg_trg_Umirayushiy_pehotinec,256,gg_unit_hfoo_0682)call TriggerAddCondition(gg_trg_Umirayushiy_pehotinec,Condition(function Trig_Umirayushiy_pehotinec_Conditions))
call TriggerAddAction(gg_trg_Umirayushiy_pehotinec,function Trig_Umirayushiy_pehotinec_Actions)endfunctionfunction Trig_Poteriavshayasia_gruppa_Complite_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hpb1_0681)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Poteriavshayasia_gruppa_Complite_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Пехотинец:|r Что ж я догадывался об этом. Надеюсь кто-нибудь убьет этого монстра.")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[25])call QuestSetCompleted(udg_Zadanie[24],true)
call TriggerSleepAction(5.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hpb1_0681,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")set udg_Specefect[25]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Pehotinec_oborona)
endfunctionfunction InitTrig_Poteriavshayasia_gruppa_Complite takes nothing returns nothing
set gg_trg_Poteriavshayasia_gruppa_Complite=CreateTrigger()call DisableTrigger(gg_trg_Poteriavshayasia_gruppa_Complite)
call TriggerRegisterUnitInRangeSimple(gg_trg_Poteriavshayasia_gruppa_Complite,256,gg_unit_Hpb1_0681)
call TriggerAddCondition(gg_trg_Poteriavshayasia_gruppa_Complite,Condition(function Trig_Poteriavshayasia_gruppa_Complite_Conditions))call TriggerAddAction(gg_trg_Poteriavshayasia_gruppa_Complite,function Trig_Poteriavshayasia_gruppa_Complite_Actions)endfunctionfunction Trig_Pehotinec_oborona_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hpb1_0681)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Pehotinec_oborona_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Пехотинец:|r Мой отряд будет на передовой во время осады..")
call DestroyEffect(udg_Specefect[25])call SetUnitPositionLocFacingBJ(gg_unit_Hpb1_0681,GetRectCenter(gg_rct_Marshal_garitos_Objrjna_2),0.00)call CreateNUnitsAtLoc(1,'hfoo',Player(9),OffsetLocation(GetRectCenter(gg_rct_Marshal_garitos_Objrjna_2),200.00,150.00),0.00)call CreateNUnitsAtLoc(1,'hfoo',Player(9),OffsetLocation(GetRectCenter(gg_rct_Marshal_garitos_Objrjna_2),200.00,0.00),0.00)call CreateNUnitsAtLoc(1,'hfoo',Player(9),OffsetLocation(GetRectCenter(gg_rct_Marshal_garitos_Objrjna_2),200.00,-150.00),0.00)call CreateNUnitsAtLoc(1,'hfoo',Player(9),OffsetLocation(GetRectCenter(gg_rct_Tower_10),200.00,-150.00),0.00)call CreateNUnitsAtLoc(1,'hfoo',Player(9),OffsetLocation(GetRectCenter(gg_rct_Tower_10),200.00,0.00),0.00)call CreateNUnitsAtLoc(1,'hfoo',Player(9),OffsetLocation(GetRectCenter(gg_rct_Tower_10),200.00,150.00),0.00)
endfunctionfunction InitTrig_Pehotinec_oborona takes nothing returns nothingset gg_trg_Pehotinec_oborona=CreateTrigger()
call DisableTrigger(gg_trg_Pehotinec_oborona)call TriggerRegisterUnitInRangeSimple(gg_trg_Pehotinec_oborona,256,gg_unit_Hpb1_0681)call TriggerAddCondition(gg_trg_Pehotinec_oborona,Condition(function Trig_Pehotinec_oborona_Conditions))
call TriggerAddAction(gg_trg_Pehotinec_oborona,function Trig_Pehotinec_oborona_Actions)endfunctionfunction Trig_Volshebnie_fonary_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hjai_0221)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Volshebnie_fonary_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[27])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hjai_0221,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[27]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Волшебные фонари")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Волшебные фонари","В последние время ночи стали еще темнее за городом не безопасно люди бояться ходить в деревню. Необходимо осветить им дорогу. Зажги 5 волшебных фонарей.Необходимо зажигать фонари от замка до деревни последовательно.Награда:|c0000FF00 +400 золота|r.","ReplaceableTextures\\CommandButtons\\BTNManaStone.blp")set udg_Zadanie[25]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[25],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Volshebniy_fonar)endfunctionfunction InitTrig_Volshebnie_fonary takes nothing returns nothingset gg_trg_Volshebnie_fonary=CreateTrigger()
call DisableTrigger(gg_trg_Volshebnie_fonary)call TriggerRegisterUnitInRangeSimple(gg_trg_Volshebnie_fonary,256,gg_unit_Hjai_0221)call TriggerAddCondition(gg_trg_Volshebnie_fonary,Condition(function Trig_Volshebnie_fonary_Conditions))
call TriggerAddAction(gg_trg_Volshebnie_fonary,function Trig_Volshebnie_fonary_Actions)endfunctionfunction Trig_Volshebniy_fonar_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Volshebniy_fonar_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Зажжено фонарей:|r|c0000FFFF  1/5|r")call DisableTrigger(GetTriggeringTrigger())call SetUnitOwner(gg_unit_h017_0702,Player(9),true)call EnableTrigger(gg_trg_Volshebniy_fonar_2)endfunctionfunction InitTrig_Volshebniy_fonar takes nothing returns nothing
set gg_trg_Volshebniy_fonar=CreateTrigger()call DisableTrigger(gg_trg_Volshebniy_fonar)
call TriggerRegisterUnitInRangeSimple(gg_trg_Volshebniy_fonar,256,gg_unit_h017_0702)
call TriggerAddCondition(gg_trg_Volshebniy_fonar,Condition(function Trig_Volshebniy_fonar_Conditions))call TriggerAddAction(gg_trg_Volshebniy_fonar,function Trig_Volshebniy_fonar_Actions)endfunctionfunction Trig_Volshebniy_fonar_2_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Volshebniy_fonar_2_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Зажжено фонарей:|r|c0000FFFF  2/5|r")call DisableTrigger(GetTriggeringTrigger())call SetUnitOwner(gg_unit_h017_0703,Player(9),true)call EnableTrigger(gg_trg_Volshebniy_fonar_3)endfunctionfunction InitTrig_Volshebniy_fonar_2 takes nothing returns nothingset gg_trg_Volshebniy_fonar_2=CreateTrigger()call DisableTrigger(gg_trg_Volshebniy_fonar_2)call TriggerRegisterUnitInRangeSimple(gg_trg_Volshebniy_fonar_2,256,gg_unit_h017_0703)call TriggerAddCondition(gg_trg_Volshebniy_fonar_2,Condition(function Trig_Volshebniy_fonar_2_Conditions))call TriggerAddAction(gg_trg_Volshebniy_fonar_2,function Trig_Volshebniy_fonar_2_Actions)endfunctionfunction Trig_Volshebniy_fonar_3_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Volshebniy_fonar_3_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Зажжено фонарей:|r|c0000FFFF  3/5|r")call DisableTrigger(GetTriggeringTrigger())call SetUnitOwner(gg_unit_h017_0704,Player(9),true)call EnableTrigger(gg_trg_Volshebniy_fonar_4)endfunctionfunction InitTrig_Volshebniy_fonar_3 takes nothing returns nothingset gg_trg_Volshebniy_fonar_3=CreateTrigger()call DisableTrigger(gg_trg_Volshebniy_fonar_3)call TriggerRegisterUnitInRangeSimple(gg_trg_Volshebniy_fonar_3,256,gg_unit_h017_0704)call TriggerAddCondition(gg_trg_Volshebniy_fonar_3,Condition(function Trig_Volshebniy_fonar_3_Conditions))call TriggerAddAction(gg_trg_Volshebniy_fonar_3,function Trig_Volshebniy_fonar_3_Actions)endfunctionfunction Trig_Volshebniy_fonar_4_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Volshebniy_fonar_4_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Зажжено фонарей:|r|c0000FFFF  4/5|r")call DisableTrigger(GetTriggeringTrigger())call SetUnitOwner(gg_unit_h017_0705,Player(9),true)call EnableTrigger(gg_trg_Volshebniy_fonar_5)endfunctionfunction InitTrig_Volshebniy_fonar_4 takes nothing returns nothingset gg_trg_Volshebniy_fonar_4=CreateTrigger()call DisableTrigger(gg_trg_Volshebniy_fonar_4)call TriggerRegisterUnitInRangeSimple(gg_trg_Volshebniy_fonar_4,256,gg_unit_h017_0705)call TriggerAddCondition(gg_trg_Volshebniy_fonar_4,Condition(function Trig_Volshebniy_fonar_4_Conditions))call TriggerAddAction(gg_trg_Volshebniy_fonar_4,function Trig_Volshebniy_fonar_4_Actions)endfunctionfunction Trig_Volshebniy_fonar_5_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Volshebniy_fonar_5_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Зажжено фонарей:|r|c0000FFFF  5/5|r
|c0000FF00Вернитесь за наградой|r")call DisableTrigger(GetTriggeringTrigger())call SetUnitOwner(gg_unit_h017_0706,Player(9),true)call EnableTrigger(gg_trg_Volshebniiy_fonar_Complite)endfunctionfunction InitTrig_Volshebniy_fonar_5 takes nothing returns nothingset gg_trg_Volshebniy_fonar_5=CreateTrigger()call DisableTrigger(gg_trg_Volshebniy_fonar_5)call TriggerRegisterUnitInRangeSimple(gg_trg_Volshebniy_fonar_5,256,gg_unit_h017_0706)call TriggerAddCondition(gg_trg_Volshebniy_fonar_5,Condition(function Trig_Volshebniy_fonar_5_Conditions))call TriggerAddAction(gg_trg_Volshebniy_fonar_5,function Trig_Volshebniy_fonar_5_Actions)endfunctionfunction Trig_Volshebniiy_fonar_Complite_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hjai_0221)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Volshebniiy_fonar_Complite_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Джайна:|r Вот теперь светло как днем.")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 400 золота|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[27])call QuestSetCompleted(udg_Zadanie[25],true)
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_GOLD)+400))call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_GOLD)+400))call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_GOLD)+400))call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_GOLD)+400))call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_GOLD)+400))call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_GOLD)+400))call TriggerSleepAction(5.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hjai_0221,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[27]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Obuchenie_magii)endfunctionfunction InitTrig_Volshebniiy_fonar_Complite takes nothing returns nothingset gg_trg_Volshebniiy_fonar_Complite=CreateTrigger()call DisableTrigger(gg_trg_Volshebniiy_fonar_Complite)call TriggerRegisterUnitInRangeSimple(gg_trg_Volshebniiy_fonar_Complite,256,gg_unit_Hjai_0221)call TriggerAddCondition(gg_trg_Volshebniiy_fonar_Complite,Condition(function Trig_Volshebniiy_fonar_Complite_Conditions))call TriggerAddAction(gg_trg_Volshebniiy_fonar_Complite,function Trig_Volshebniiy_fonar_Complite_Actions)endfunctionfunction Trig_Obuchenie_magii_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hjai_0221)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Obuchenie_magii_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[27])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hjai_0221,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[27]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Ученик мага")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Ученик мага","Ты хочешь стать магом? Ну что ж я обучу тебя. Для начала приобрети старый посох. И потренируйся магии на троллях. В качестве доказательства своего мастерства принесешь мне 5 амулетов тролля.Награда:|c0000FF00 +5 разума выполнившему|r.","ReplaceableTextures\\CommandButtons\\BTNBansheeMaster.blp")
set udg_Zadanie[25]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[25],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Obuchenie_magii_Complite)endfunctionfunction InitTrig_Obuchenie_magii takes nothing returns nothingset gg_trg_Obuchenie_magii=CreateTrigger()call DisableTrigger(gg_trg_Obuchenie_magii)call TriggerRegisterUnitInRangeSimple(gg_trg_Obuchenie_magii,256,gg_unit_Hjai_0221)call TriggerAddCondition(gg_trg_Obuchenie_magii,Condition(function Trig_Obuchenie_magii_Conditions))
call TriggerAddAction(gg_trg_Obuchenie_magii,function Trig_Obuchenie_magii_Actions)endfunctionfunction Trig_Obuchenie_magii_Complite_Func021C takes nothing returns booleanif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I030')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I031')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I032')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I033')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I034')==true))then
return trueendifreturn false
endfunctionfunction Trig_Obuchenie_magii_Complite_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hjai_0221)==true))thenreturn false
endifif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifif(not Trig_Obuchenie_magii_Complite_Func021C())then
return false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))>=5))then
return false
endifreturn trueendfunctionfunction Trig_Obuchenie_magii_Complite_Func001C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))==5))then
return false
endifreturn trueendfunctionfunction Trig_Obuchenie_magii_Complite_Actions takes nothing returns nothing
if(Trig_Obuchenie_magii_Complite_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))-5))endifcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Джайна:|r Вот еще один достойный ученик.")
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +5 разума выполневшему|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[27])call QuestSetCompleted(udg_Zadanie[25],true)
call ModifyHeroStat(bj_HEROSTAT_INT,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,5)call TriggerSleepAction(5.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hjai_0221,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[27]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Obuchenie_magii_2)
endfunctionfunction InitTrig_Obuchenie_magii_Complite takes nothing returns nothing
set gg_trg_Obuchenie_magii_Complite=CreateTrigger()call DisableTrigger(gg_trg_Obuchenie_magii_Complite)
call TriggerRegisterUnitInRangeSimple(gg_trg_Obuchenie_magii_Complite,256,gg_unit_Hjai_0221)
call TriggerAddCondition(gg_trg_Obuchenie_magii_Complite,Condition(function Trig_Obuchenie_magii_Complite_Conditions))call TriggerAddAction(gg_trg_Obuchenie_magii_Complite,function Trig_Obuchenie_magii_Complite_Actions)endfunctionfunction Trig_Obuchenie_magii_2_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hjai_0221)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Obuchenie_magii_2_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[27])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hjai_0221,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[27]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Адепт")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Адепт","Ты делаешь успехи. Но тебе еще многое предстоит узнать. Приобрети мантию ученика. И продолжай тренироваться магии на мурлоках. В качестве доказательства своего мастерства принесешь мне 10 иглобрюхов. Награда:|c0000FF00 +10 разума выполнившему|r.","ReplaceableTextures\\CommandButtons\\BTNBansheeMaster.blp")set udg_Zadanie[25]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[25],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Obuchenie_magii_Complite_2)endfunctionfunction InitTrig_Obuchenie_magii_2 takes nothing returns nothingset gg_trg_Obuchenie_magii_2=CreateTrigger()
call DisableTrigger(gg_trg_Obuchenie_magii_2)call TriggerRegisterUnitInRangeSimple(gg_trg_Obuchenie_magii_2,256,gg_unit_Hjai_0221)call TriggerAddCondition(gg_trg_Obuchenie_magii_2,Condition(function Trig_Obuchenie_magii_2_Conditions))
call TriggerAddAction(gg_trg_Obuchenie_magii_2,function Trig_Obuchenie_magii_2_Actions)endfunctionfunction Trig_Obuchenie_magii_Complite_2_Func020C takes nothing returns booleanif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02L')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02N')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02O')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02M')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02P')==true))then
return trueendifreturn false
endfunctionfunction Trig_Obuchenie_magii_Complite_2_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hjai_0221)==true))thenreturn false
endifif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifif(not Trig_Obuchenie_magii_Complite_2_Func020C())thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08U'))>=10))thenreturn false
endifreturn trueendfunctionfunction Trig_Obuchenie_magii_Complite_2_Func001C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08U'))==10))thenreturn false
endifreturn trueendfunctionfunction Trig_Obuchenie_magii_Complite_2_Actions takes nothing returns nothingif(Trig_Obuchenie_magii_Complite_2_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08U'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08U'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08U'))-10))endifcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +10 разума выполневшему|r")
call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[27])call QuestSetCompleted(udg_Zadanie[25],true)
call ModifyHeroStat(bj_HEROSTAT_INT,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,10)
call TriggerSleepAction(5.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hjai_0221,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[27]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Obuchenie_magii_3)
endfunctionfunction InitTrig_Obuchenie_magii_Complite_2 takes nothing returns nothingset gg_trg_Obuchenie_magii_Complite_2=CreateTrigger()call DisableTrigger(gg_trg_Obuchenie_magii_Complite_2)call TriggerRegisterUnitInRangeSimple(gg_trg_Obuchenie_magii_Complite_2,256,gg_unit_Hjai_0221)call TriggerAddCondition(gg_trg_Obuchenie_magii_Complite_2,Condition(function Trig_Obuchenie_magii_Complite_2_Conditions))call TriggerAddAction(gg_trg_Obuchenie_magii_Complite_2,function Trig_Obuchenie_magii_Complite_2_Actions)endfunctionfunction Trig_Obuchenie_magii_3_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hjai_0221)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Obuchenie_magii_3_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[27])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hjai_0221,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[27]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Посвящения мага")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Посвящения мага","Ты справился со всеми заданиями, но осталось последнее прежде чем посвятить тебя в маги ты должен отыскать и принести мне лунный кристалл.Награда:|c0000FF00 +15 разума выполнившему|r.","ReplaceableTextures\\CommandButtons\\BTNBansheeMaster.blp")set udg_Zadanie[25]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[25],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Obuchenie_magii_Complite_3)endfunctionfunction InitTrig_Obuchenie_magii_3 takes nothing returns nothingset gg_trg_Obuchenie_magii_3=CreateTrigger()
call DisableTrigger(gg_trg_Obuchenie_magii_3)call TriggerRegisterUnitInRangeSimple(gg_trg_Obuchenie_magii_3,256,gg_unit_Hjai_0221)call TriggerAddCondition(gg_trg_Obuchenie_magii_3,Condition(function Trig_Obuchenie_magii_3_Conditions))
call TriggerAddAction(gg_trg_Obuchenie_magii_3,function Trig_Obuchenie_magii_3_Actions)endfunctionfunction Trig_Obuchenie_magii_Complite_3_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_Hjai_0221)==true))thenreturn false
endifif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'pomn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Obuchenie_magii_Complite_3_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Джайна:|r Теперь на одного мага стало больше.")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +15 разума выполневшему|r")
call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[27])call QuestSetCompleted(udg_Zadanie[25],true)
call ModifyHeroStat(bj_HEROSTAT_INT,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,15)
call TriggerSleepAction(5.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hjai_0221,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")set udg_Specefect[27]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Djayna_Oborona)endfunctionfunction InitTrig_Obuchenie_magii_Complite_3 takes nothing returns nothingset gg_trg_Obuchenie_magii_Complite_3=CreateTrigger()call DisableTrigger(gg_trg_Obuchenie_magii_Complite_3)call TriggerRegisterUnitInRangeSimple(gg_trg_Obuchenie_magii_Complite_3,256,gg_unit_Hjai_0221)call TriggerAddCondition(gg_trg_Obuchenie_magii_Complite_3,Condition(function Trig_Obuchenie_magii_Complite_3_Conditions))call TriggerAddAction(gg_trg_Obuchenie_magii_Complite_3,function Trig_Obuchenie_magii_Complite_3_Actions)endfunctionfunction Trig_Djayna_Oborona_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Djayna_Oborona_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Джайна:|r Настало время проверить твои навыки в бою.")call DestroyEffect(udg_Specefect[27])call SetUnitPositionLocFacingBJ(gg_unit_Hjai_0221,GetRectCenter(gg_rct_Dgayna),90.00)call CreateNUnitsAtLoc(1,'hhes',Player(9),OffsetLocation(GetRectCenter(gg_rct_Dgayna),-200.00,200.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hhes',Player(9),OffsetLocation(GetRectCenter(gg_rct_Dgayna),200.00,200.00),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'hsor',Player(9),OffsetLocation(GetRectCenter(gg_rct_Dgayna),200.00,0.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hsor',Player(9),OffsetLocation(GetRectCenter(gg_rct_Dgayna),-200.00,0.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhym',Player(9),OffsetLocation(GetRectCenter(gg_rct_Dgayna),-200.00,-200.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhym',Player(9),OffsetLocation(GetRectCenter(gg_rct_Dgayna),200.00,-200.00),bj_UNIT_FACING)endfunctionfunction InitTrig_Djayna_Oborona takes nothing returns nothingset gg_trg_Djayna_Oborona=CreateTrigger()call DisableTrigger(gg_trg_Djayna_Oborona)call TriggerRegisterUnitInRangeSimple(gg_trg_Djayna_Oborona,256,gg_unit_Hjai_0221)call TriggerAddCondition(gg_trg_Djayna_Oborona,Condition(function Trig_Djayna_Oborona_Conditions))call TriggerAddAction(gg_trg_Djayna_Oborona,function Trig_Djayna_Oborona_Actions)endfunctionfunction Trig_Obuchenie_sily_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Obuchenie_sily_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[28])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_hcth_0206,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[28]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Воин света")call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Воин света","Ты хочешь стать воином. Нам нужны сильные бойцы. И так что бы приступить к первому заданию приобрети боевой молот и медаль храбрости.Награда:|c0000FF00 +5 силы выполнившему|r.","ReplaceableTextures\\CommandButtons\\BTNHammer.blp")
set udg_Zadanie[26]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[26],true)call FlashQuestDialogButton()call EnableTrigger(gg_trg_Obuchenie_sily_Complite)endfunctionfunction InitTrig_Obuchenie_sily takes nothing returns nothingset gg_trg_Obuchenie_sily=CreateTrigger()call DisableTrigger(gg_trg_Obuchenie_sily)call TriggerRegisterUnitInRangeSimple(gg_trg_Obuchenie_sily,256,gg_unit_hcth_0206)call TriggerAddCondition(gg_trg_Obuchenie_sily,Condition(function Trig_Obuchenie_sily_Conditions))call TriggerAddAction(gg_trg_Obuchenie_sily,function Trig_Obuchenie_sily_Actions)endfunctionfunction Trig_Obuchenie_sily_Complite_Func017C takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'mlst')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'dsum')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'rump')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'lhst')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'ssil')==true))then
return trueendifreturn false
endfunctionfunction Trig_Obuchenie_sily_Complite_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifif(not Trig_Obuchenie_sily_Complite_Func017C())thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ocor')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Obuchenie_sily_Complite_Actions takes nothing returns nothingcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Паладин:|r Вижу ты готов, ну тогда приступим к обучению.")
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +5 силы выполневшему|r")call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[28])call QuestSetCompleted(udg_Zadanie[26],true)
call ModifyHeroStat(bj_HEROSTAT_STR,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,5)call TriggerSleepAction(5.00)call EnableTrigger(gg_trg_Obuchenie_sily_2)endfunctionfunction InitTrig_Obuchenie_sily_Complite takes nothing returns nothingset gg_trg_Obuchenie_sily_Complite=CreateTrigger()call DisableTrigger(gg_trg_Obuchenie_sily_Complite)call TriggerRegisterUnitInRangeSimple(gg_trg_Obuchenie_sily_Complite,256,gg_unit_hcth_0206)call TriggerAddCondition(gg_trg_Obuchenie_sily_Complite,Condition(function Trig_Obuchenie_sily_Complite_Conditions))
call TriggerAddAction(gg_trg_Obuchenie_sily_Complite,function Trig_Obuchenie_sily_Complite_Actions)endfunctionfunction Trig_Obuchenie_sily_2_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Obuchenie_sily_2_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[28])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_hcth_0206,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[28]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Посвящение боем")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Посвящение боем","Разберись с кентаврами и принеси копыто кентавров в качестве доказательства своей победы.Награда:|c0000FF00 +10 силы выполнившему|r.","ReplaceableTextures\\CommandButtons\\BTNHammer.blp")set udg_Zadanie[26]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[26],true)call FlashQuestDialogButton()call TriggerSleepAction(2)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_hcth_0206,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[28]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Obuchenie_sily_Complite_2)
endfunctionfunction InitTrig_Obuchenie_sily_2 takes nothing returns nothing
set gg_trg_Obuchenie_sily_2=CreateTrigger()call DisableTrigger(gg_trg_Obuchenie_sily_2)
call TriggerRegisterUnitInRangeSimple(gg_trg_Obuchenie_sily_2,256,gg_unit_hcth_0206)
call TriggerAddCondition(gg_trg_Obuchenie_sily_2,Condition(function Trig_Obuchenie_sily_2_Conditions))call TriggerAddAction(gg_trg_Obuchenie_sily_2,function Trig_Obuchenie_sily_2_Actions)endfunctionfunction Trig_Obuchenie_sily_Complite_2_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))>=1))then
return false
endifreturn trueendfunctionfunction Trig_Obuchenie_sily_Complite_2_Func001C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Obuchenie_sily_Complite_2_Actions takes nothing returns nothingif(Trig_Obuchenie_sily_Complite_2_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))-1))endifcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +10 силы выполневшему|r")
call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[28])call QuestSetCompleted(udg_Zadanie[26],true)
call ModifyHeroStat(bj_HEROSTAT_STR,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,10)
call TriggerSleepAction(2)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_hcth_0206,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[28]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Obuchenie_sily_3)endfunctionfunction InitTrig_Obuchenie_sily_Complite_2 takes nothing returns nothingset gg_trg_Obuchenie_sily_Complite_2=CreateTrigger()
call DisableTrigger(gg_trg_Obuchenie_sily_Complite_2)call TriggerRegisterUnitInRangeSimple(gg_trg_Obuchenie_sily_Complite_2,256,gg_unit_hcth_0206)call TriggerAddCondition(gg_trg_Obuchenie_sily_Complite_2,Condition(function Trig_Obuchenie_sily_Complite_2_Conditions))
call TriggerAddAction(gg_trg_Obuchenie_sily_Complite_2,function Trig_Obuchenie_sily_Complite_2_Actions)endfunctionfunction Trig_Obuchenie_sily_3_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Obuchenie_sily_3_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[28])call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_hcth_0206,"Objects\\RandomObject\\RandomObject.mdl")set udg_Specefect[28]=GetLastCreatedEffectBJ()call QuestMessageBJ(GetPlayersAll(),bj_QUESTMESSAGE_DISCOVERED,"|c00C8C800Задание получено:|r Истинный воин")
call CreateQuestBJ(bj_QUESTTYPE_OPT_DISCOVERED,"Истинный воин","Ты доказал свою силу. Но осталось последние испытание добудь 3 мяса гнолов..Награда:|c0000FF00 +15 силы выполнившему|r.","ReplaceableTextures\\CommandButtons\\BTNHammer.blp")set udg_Zadanie[26]=GetLastCreatedQuestBJ()call QuestSetDiscovered(udg_Zadanie[26],true)call FlashQuestDialogButton()call TriggerSleepAction(2)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_hcth_0206,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[28]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Obuchenie_sily_Complite_3)
endfunctionfunction InitTrig_Obuchenie_sily_3 takes nothing returns nothing
set gg_trg_Obuchenie_sily_3=CreateTrigger()call DisableTrigger(gg_trg_Obuchenie_sily_3)
call TriggerRegisterUnitInRangeSimple(gg_trg_Obuchenie_sily_3,256,gg_unit_hcth_0206)
call TriggerAddCondition(gg_trg_Obuchenie_sily_3,Condition(function Trig_Obuchenie_sily_3_Conditions))call TriggerAddAction(gg_trg_Obuchenie_sily_3,function Trig_Obuchenie_sily_3_Actions)endfunctionfunction Trig_Obuchenie_sily_Complite_3_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Z'))>=3))then
return false
endifreturn trueendfunctionfunction Trig_Obuchenie_sily_Complite_3_Func001C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Z'))==3))then
return false
endifreturn trueendfunctionfunction Trig_Obuchenie_sily_Complite_3_Actions takes nothing returns nothingif(Trig_Obuchenie_sily_Complite_3_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Z'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Z'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Z'))-3))endifcall DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Задание выполнено.|r")call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Награда:|r|c0000FF00 +15 силы выполневшему|r")
call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[28])call QuestSetCompleted(udg_Zadanie[26],true)
call ModifyHeroStat(bj_HEROSTAT_STR,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,15)
call TriggerSleepAction(2)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_hcth_0206,"Abilities\\Spells\\Human\\InnerFire\\InnerFireTarget.mdl")set udg_Specefect[28]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Paladin_Oborona)endfunctionfunction InitTrig_Obuchenie_sily_Complite_3 takes nothing returns nothingset gg_trg_Obuchenie_sily_Complite_3=CreateTrigger()
call DisableTrigger(gg_trg_Obuchenie_sily_Complite_3)call TriggerRegisterUnitInRangeSimple(gg_trg_Obuchenie_sily_Complite_3,256,gg_unit_hcth_0206)call TriggerAddCondition(gg_trg_Obuchenie_sily_Complite_3,Condition(function Trig_Obuchenie_sily_Complite_3_Conditions))
call TriggerAddAction(gg_trg_Obuchenie_sily_Complite_3,function Trig_Obuchenie_sily_Complite_3_Actions)endfunctionfunction Trig_Paladin_Oborona_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Paladin_Oborona_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Паладин:|r Свет дарует нам победу.")call DestroyEffect(udg_Specefect[28])call SetUnitPositionLocFacingBJ(gg_unit_hcth_0206,GetRectCenter(gg_rct_Paladin_oborona),0.00)call SetUnitPositionLocFacingBJ(gg_unit_hcth_0737,OffsetLocation(GetRectCenter(gg_rct_Paladin_oborona),0,200.00),0.00)call SetUnitPositionLocFacingBJ(gg_unit_hcth_0736,OffsetLocation(GetRectCenter(gg_rct_Paladin_oborona),0,-200.00),0.00)call CreateNUnitsAtLoc(1,'hcth',Player(9),OffsetLocation(GetRectCenter(gg_rct_Dgayna),0.00,400.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'hcth',Player(9),OffsetLocation(GetRectCenter(gg_rct_Dgayna),0.00,-400.00),bj_UNIT_FACING)endfunctionfunction InitTrig_Paladin_Oborona takes nothing returns nothingset gg_trg_Paladin_Oborona=CreateTrigger()call DisableTrigger(gg_trg_Paladin_Oborona)call TriggerRegisterUnitInRangeSimple(gg_trg_Paladin_Oborona,256,gg_unit_hcth_0206)call TriggerAddCondition(gg_trg_Paladin_Oborona,Condition(function Trig_Paladin_Oborona_Conditions))
call TriggerAddAction(gg_trg_Paladin_Oborona,function Trig_Paladin_Oborona_Actions)endfunctionfunction Trig_Brakoniery_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_nwat_0684)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Brakoniery_Func005C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Brakoniery_Func006C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Brakoniery_Func007C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Brakoniery_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[26])call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Страж:|r Мы недавно поймали группу браконьеров, они сказали что где то в волчьем лесу сделали тайник где прятали всю выручку.Но место так и не показали.Если найдеш тайник считай все содержимое своим.")set udg_Random=GetRandomInt(1,3)
if(Trig_Brakoniery_Func005C())thencall SetUnitPositionLoc(gg_unit_nmer_0685,OffsetLocation(GetRectCenter(GetPlayableMapRect()),-5335.00,-4700.00))
else
endifif(Trig_Brakoniery_Func006C())thencall SetUnitPositionLoc(gg_unit_nmer_0685,OffsetLocation(GetRectCenter(GetPlayableMapRect()),-5585.00,-6600.00))
else
endifif(Trig_Brakoniery_Func007C())thencall SetUnitPositionLoc(gg_unit_nmer_0685,OffsetLocation(GetRectCenter(GetPlayableMapRect()),-540.00,-5245.00))else
endifendfunctionfunction InitTrig_Brakoniery takes nothing returns nothingset gg_trg_Brakoniery=CreateTrigger()call DisableTrigger(gg_trg_Brakoniery)call TriggerRegisterUnitInRangeSimple(gg_trg_Brakoniery,256,gg_unit_nwat_0684)call TriggerAddCondition(gg_trg_Brakoniery,Condition(function Trig_Brakoniery_Conditions))call TriggerAddAction(gg_trg_Brakoniery,function Trig_Brakoniery_Actions)endfunctionfunction Trig_Ukradeniy_koshelek_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(IsUnitAliveBJ(gg_unit_nhem_0315)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ukradeniy_koshelek_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DisableTrigger(gg_trg_Ubiystvo_gitelia)
call DestroyEffect(udg_Specefect[29])call IssuePointOrderLoc(gg_unit_nvl2_0317,"move",GetRectCenter(gg_rct_Ogry))
call UnitAddAbilityBJ('A01Z',gg_unit_nvl2_0317)call UnitAddItemByIdSwapped('gold',gg_unit_nvl2_0317)call TriggerSleepAction(4.00)call SetUnitOwner(gg_unit_nvl2_0317,Player(6),true)call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_nvl2_0317),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,0.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Эльф рабочий:|r Остановите его он украл мой кошелек!")endfunctionfunction InitTrig_Ukradeniy_koshelek takes nothing returns nothingset gg_trg_Ukradeniy_koshelek=CreateTrigger()call DisableTrigger(gg_trg_Ukradeniy_koshelek)call TriggerRegisterUnitInRangeSimple(gg_trg_Ukradeniy_koshelek,256,gg_unit_nhem_0315)call TriggerAddCondition(gg_trg_Ukradeniy_koshelek,Condition(function Trig_Ukradeniy_koshelek_Conditions))call TriggerAddAction(gg_trg_Ukradeniy_koshelek,function Trig_Ukradeniy_koshelek_Actions)endfunctionfunction Trig_Ubiystvo_gitelia_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Рыцарь:|r Эй как ты смеешь убивать жителей.")call SetUnitOwner(gg_unit_hkni_0309,Player(6),false)
call IssuePointOrderLoc(gg_unit_hkni_0309,"attack",GetUnitLoc(GetKillingUnitBJ()))endfunctionfunction InitTrig_Ubiystvo_gitelia takes nothing returns nothing
set gg_trg_Ubiystvo_gitelia=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Ubiystvo_gitelia,gg_unit_nvl2_0317,EVENT_UNIT_DEATH)call TriggerAddAction(gg_trg_Ubiystvo_gitelia,function Trig_Ubiystvo_gitelia_Actions)endfunctionfunction Trig_Bochonok_elia_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Bochonok_elia_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[30])call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Крестьянин:|r Ты не видил мой бочонок эля. Я вчера так напился...Вроде бы я не выходил из деревни. Ничего не помню.")endfunctionfunction InitTrig_Bochonok_elia takes nothing returns nothingset gg_trg_Bochonok_elia=CreateTrigger()
call DisableTrigger(gg_trg_Bochonok_elia)call TriggerRegisterUnitInRangeSimple(gg_trg_Bochonok_elia,256,gg_unit_nsty_0642)call TriggerAddCondition(gg_trg_Bochonok_elia,Condition(function Trig_Bochonok_elia_Conditions))
call TriggerAddAction(gg_trg_Bochonok_elia,function Trig_Bochonok_elia_Actions)endfunctionfunction Trig_Kanalizaciya_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kanalizaciya_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[31])call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Инженер:|r Наша система канализаций сломалась.По видимому это опять чертовы слизняки. Крошшер должен был чистить канализацию от них но видимо автоматический запуск не сработал. Запусти его в ручную и он очистит канализацию от этих гадов.")call CreateNUnitsAtLoc(1,'nsln',Player(6),OffsetLocation(GetRectCenter(gg_rct_Kanalizaciya),500.00,0),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nslf',Player(6),GetRandomLocInRect(gg_rct_Kanalizaciya),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nslf',Player(6),GetRandomLocInRect(gg_rct_Kanalizaciya),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nslf',Player(6),GetRandomLocInRect(gg_rct_Kanalizaciya),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nslf',Player(6),GetRandomLocInRect(gg_rct_Kanalizaciya),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nslf',Player(6),GetRandomLocInRect(gg_rct_Kanalizaciya),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nslf',Player(6),GetRandomLocInRect(gg_rct_Kanalizaciya),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nslf',Player(6),GetRandomLocInRect(gg_rct_Kanalizaciya),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nslf',Player(6),GetRandomLocInRect(gg_rct_Kanalizaciya),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nslf',Player(6),GetRandomLocInRect(gg_rct_Kanalizaciya),bj_UNIT_FACING)endfunctionfunction InitTrig_Kanalizaciya takes nothing returns nothing
set gg_trg_Kanalizaciya=CreateTrigger()call DisableTrigger(gg_trg_Kanalizaciya)
call TriggerRegisterUnitInRangeSimple(gg_trg_Kanalizaciya,256,gg_unit_nhew_0754)
call TriggerAddCondition(gg_trg_Kanalizaciya,Condition(function Trig_Kanalizaciya_Conditions))call TriggerAddAction(gg_trg_Kanalizaciya,function Trig_Kanalizaciya_Actions)endfunctionfunction Trig_Ogerelie_Amelii_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())!=Player(7)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(8)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(9)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetTriggerUnit())!=Player(11)))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ogerelie_Amelii_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call DestroyEffect(udg_Specefect[32])call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Камерарий:|r Уже несколько дней прошло со смерти амелии.Сегодня я отнес ее ожерелье на могилу в котором она была в момент своей смерти. Думаю ей было бы приятно.")call CreateItemLoc('I0A4',OffsetLocation(GetRectCenter(gg_rct_Kladbishe),-500.00,0))
endfunctionfunction InitTrig_Ogerelie_Amelii takes nothing returns nothingset gg_trg_Ogerelie_Amelii=CreateTrigger()call DisableTrigger(gg_trg_Ogerelie_Amelii)call TriggerRegisterUnitInRangeSimple(gg_trg_Ogerelie_Amelii,256,gg_unit_H01Z_0761)call TriggerAddCondition(gg_trg_Ogerelie_Amelii,Condition(function Trig_Ogerelie_Amelii_Conditions))
call TriggerAddAction(gg_trg_Ogerelie_Amelii,function Trig_Ogerelie_Amelii_Actions)endfunctionfunction Trig_Ogerelie_Amelii_Active_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0A4')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ogerelie_Amelii_Active_Func003Func004Func002C takes nothing returns booleanif(not(UnitHasBuffBJ(GetTriggerUnit(),'BUsl')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ogerelie_Amelii_Active_Func003C takes nothing returns booleanif(not(udg_Shance_Pesheri_Neruba<=7))thenreturn false
endifreturn trueendfunctionfunction Trig_Ogerelie_Amelii_Active_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())set udg_Shance_Pesheri_Neruba=GetRandomInt(1,10)
if(Trig_Ogerelie_Amelii_Active_Func003C())thencall CreateNUnitsAtLoc(1,'uban',Player(11),OffsetLocation(GetRectCenter(gg_rct_Kladbishe),0,-1000.00),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(GetTriggerUnit()))call TriggerSleepAction(3.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Амеллия:|r Как ты посмел оскорбить мою память.")else
call DisplayTextToForce(GetPlayersAll(),(GetUnitName(GetTriggerUnit())+": Глаза закрываются. Как хочется спать...."))
call CreateNUnitsAtLoc(1,'u015',Player(11),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)call IssueTargetOrder(GetLastCreatedUnit(),"sleep",GetTriggerUnit())
set bj_forLoopAIndex=1set bj_forLoopAIndexEnd=150loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEndcall TriggerSleepAction(1.00)if(Trig_Ogerelie_Amelii_Active_Func003Func004Func002C())then
call SetUnitLifeBJ(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())-(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit())*0.02)))else
endifset bj_forLoopAIndex=bj_forLoopAIndex+1endloopendifendfunctionfunction InitTrig_Ogerelie_Amelii_Active takes nothing returns nothingset gg_trg_Ogerelie_Amelii_Active=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ogerelie_Amelii_Active,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Ogerelie_Amelii_Active,Condition(function Trig_Ogerelie_Amelii_Active_Conditions))call TriggerAddAction(gg_trg_Ogerelie_Amelii_Active,function Trig_Ogerelie_Amelii_Active_Actions)endfunctionfunction Trig_proverka_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),(GetAbilityName(udg_Hero_skill_1[1])+I2S(udg_Hero_skill_lvl_1[1])))call DisplayTextToForce(GetPlayersAll(),(GetAbilityName(udg_Hero_skill_1[2])+I2S(udg_Hero_skill_lvl_1[2])))call DisplayTextToForce(GetPlayersAll(),(GetAbilityName(udg_Hero_skill_1[3])+I2S(udg_Hero_skill_lvl_1[3])))call DisplayTextToForce(GetPlayersAll(),(GetAbilityName(udg_Hero_skill_1[4])+I2S(udg_Hero_skill_lvl_1[4])))call DisplayTextToForce(GetPlayersAll(),(GetAbilityName(udg_Hero_skill_1[5])+I2S(udg_Hero_skill_lvl_1[5])))call DisplayTextToForce(GetPlayersAll(),GetAbilityName(udg_Skill_poluchen))call DisplayTextToForce(GetPlayersAll(),GetUnitName(udg_Hero[1]))endfunctionfunction InitTrig_proverka takes nothing returns nothing
set gg_trg_proverka=CreateTrigger()call TriggerRegisterPlayerChatEvent(gg_trg_proverka,Player(0),"1",true)call TriggerAddAction(gg_trg_proverka,function Trig_proverka_Actions)endfunctionfunction Trig_proverka_3_Actions takes nothing returns nothingcall CreateFogModifierRectBJ(true,Player(0),FOG_OF_WAR_VISIBLE,GetPlayableMapRect())
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_LUMBER,100)call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,100000)call DisplayTextToForce(GetPlayersAll(),(GetAbilityName(udg_Hero_skill_3[1])+I2S(udg_Hero_skill_lvl_3[1])))call DisplayTextToForce(GetPlayersAll(),(GetAbilityName(udg_Hero_skill_3[2])+I2S(udg_Hero_skill_lvl_3[2])))call DisplayTextToForce(GetPlayersAll(),(GetAbilityName(udg_Hero_skill_3[3])+I2S(udg_Hero_skill_lvl_3[3])))call DisplayTextToForce(GetPlayersAll(),(GetAbilityName(udg_Hero_skill_3[4])+I2S(udg_Hero_skill_lvl_3[4])))call DisplayTextToForce(GetPlayersAll(),(GetAbilityName(udg_Hero_skill_3[5])+I2S(udg_Hero_skill_lvl_3[5])))call DisplayTextToForce(GetPlayersAll(),GetAbilityName(udg_Skill_poluchen))call DisplayTextToForce(GetPlayersAll(),GetUnitName(udg_Hero[3]))endfunctionfunction InitTrig_proverka_3 takes nothing returns nothingset gg_trg_proverka_3=CreateTrigger()call TriggerRegisterPlayerChatEvent(gg_trg_proverka_3,Player(0),"374859",true)call TriggerAddAction(gg_trg_proverka_3,function Trig_proverka_3_Actions)endfunctionfunction Trig_proverka_2_Func013C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_1[1],udg_Hero[1])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func014C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_1[2],udg_Hero[1])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func015C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_1[3],udg_Hero[1])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func016C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_1[4],udg_Hero[1])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func017C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_1[5],udg_Hero[1])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func024C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_2[1],udg_Hero[2])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func025C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_2[2],udg_Hero[2])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func026C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_2[3],udg_Hero[2])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func027C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_2[4],udg_Hero[2])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func028C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_2[5],udg_Hero[2])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func035C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_3[1],udg_Hero[3])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func036C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_3[2],udg_Hero[3])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func037C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_3[3],udg_Hero[3])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func038C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_3[4],udg_Hero[3])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func039C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_3[5],udg_Hero[3])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func046C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_4[1],udg_Hero[4])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func047C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_4[2],udg_Hero[4])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func048C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_4[3],udg_Hero[4])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func049C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_4[4],udg_Hero[4])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func050C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_4[5],udg_Hero[4])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func057C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_5[1],udg_Hero[5])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func058C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_5[2],udg_Hero[5])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func059C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_5[3],udg_Hero[5])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func060C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_5[4],udg_Hero[5])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func061C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_5[5],udg_Hero[5])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func068C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_6[1],udg_Hero[6])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func069C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_6[2],udg_Hero[6])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func070C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_6[3],udg_Hero[6])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func071C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_6[4],udg_Hero[6])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Func072C takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped(udg_Hero_skill_6[5],udg_Hero[6])>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_proverka_2_Actions takes nothing returns nothingcall SetUnitPositionLoc(gg_unit_H00S_0592,GetUnitLoc(udg_Hero[1]))call SetUnitPositionLoc(gg_unit_H00S_0595,GetUnitLoc(udg_Hero[2]))call SetUnitPositionLoc(gg_unit_H00S_0596,GetUnitLoc(udg_Hero[3]))call SetUnitPositionLoc(gg_unit_H00S_0597,GetUnitLoc(udg_Hero[4]))call SetUnitPositionLoc(gg_unit_H00S_0598,GetUnitLoc(udg_Hero[5]))call SetUnitPositionLoc(gg_unit_H00S_0599,GetUnitLoc(udg_Hero[6]))call UnitAddAbilityBJ(udg_Hero_skill_1[1],udg_Hero[1])call UnitAddAbilityBJ(udg_Hero_skill_1[2],udg_Hero[1])call UnitAddAbilityBJ(udg_Hero_skill_1[3],udg_Hero[1])call UnitAddAbilityBJ(udg_Hero_skill_1[4],udg_Hero[1])call UnitAddAbilityBJ(udg_Hero_skill_1[5],udg_Hero[1])if(Trig_proverka_2_Func013C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_1[1],udg_Hero[1],udg_Hero_skill_lvl_1[1])
else
call UnitAddAbilityBJ(udg_Hero_skill_1[1],udg_Hero[1])endifif(Trig_proverka_2_Func014C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_1[2],udg_Hero[1],udg_Hero_skill_lvl_1[2])
else
call UnitAddAbilityBJ(udg_Hero_skill_1[2],udg_Hero[1])endifif(Trig_proverka_2_Func015C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_1[3],udg_Hero[1],udg_Hero_skill_lvl_1[3])
else
call UnitAddAbilityBJ(udg_Hero_skill_1[3],udg_Hero[1])endifif(Trig_proverka_2_Func016C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_1[4],udg_Hero[1],udg_Hero_skill_lvl_1[4])
else
call UnitAddAbilityBJ(udg_Hero_skill_1[4],udg_Hero[1])endifif(Trig_proverka_2_Func017C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_1[5],udg_Hero[1],udg_Hero_skill_lvl_1[5])
else
call UnitAddAbilityBJ(udg_Hero_skill_1[5],udg_Hero[1])endifcall UnitAddAbilityBJ(udg_Hero_skill_2[1],udg_Hero[2])call UnitAddAbilityBJ(udg_Hero_skill_2[2],udg_Hero[2])call UnitAddAbilityBJ(udg_Hero_skill_2[3],udg_Hero[2])call UnitAddAbilityBJ(udg_Hero_skill_2[4],udg_Hero[2])call UnitAddAbilityBJ(udg_Hero_skill_2[5],udg_Hero[2])if(Trig_proverka_2_Func024C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_2[1],udg_Hero[2],udg_Hero_skill_lvl_2[1])
else
call UnitAddAbilityBJ(udg_Hero_skill_2[1],udg_Hero[2])endifif(Trig_proverka_2_Func025C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_2[2],udg_Hero[2],udg_Hero_skill_lvl_2[2])
else
call UnitAddAbilityBJ(udg_Hero_skill_2[2],udg_Hero[2])endifif(Trig_proverka_2_Func026C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_2[3],udg_Hero[2],udg_Hero_skill_lvl_2[3])
else
call UnitAddAbilityBJ(udg_Hero_skill_2[3],udg_Hero[2])endifif(Trig_proverka_2_Func027C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_2[4],udg_Hero[2],udg_Hero_skill_lvl_2[4])
else
call UnitAddAbilityBJ(udg_Hero_skill_2[4],udg_Hero[2])endifif(Trig_proverka_2_Func028C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_2[5],udg_Hero[2],udg_Hero_skill_lvl_2[5])
else
call UnitAddAbilityBJ(udg_Hero_skill_2[5],udg_Hero[2])endifcall UnitAddAbilityBJ(udg_Hero_skill_3[1],udg_Hero[3])call UnitAddAbilityBJ(udg_Hero_skill_3[2],udg_Hero[3])call UnitAddAbilityBJ(udg_Hero_skill_3[3],udg_Hero[3])call UnitAddAbilityBJ(udg_Hero_skill_3[4],udg_Hero[3])call UnitAddAbilityBJ(udg_Hero_skill_3[5],udg_Hero[3])if(Trig_proverka_2_Func035C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_3[1],udg_Hero[3],udg_Hero_skill_lvl_3[1])
else
call UnitAddAbilityBJ(udg_Hero_skill_3[1],udg_Hero[3])endifif(Trig_proverka_2_Func036C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_3[2],udg_Hero[3],udg_Hero_skill_lvl_3[2])
else
call UnitAddAbilityBJ(udg_Hero_skill_3[2],udg_Hero[3])endifif(Trig_proverka_2_Func037C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_3[3],udg_Hero[3],udg_Hero_skill_lvl_3[3])
else
call UnitAddAbilityBJ(udg_Hero_skill_3[3],udg_Hero[3])endifif(Trig_proverka_2_Func038C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_3[4],udg_Hero[3],udg_Hero_skill_lvl_3[4])
else
call UnitAddAbilityBJ(udg_Hero_skill_3[4],udg_Hero[3])endifif(Trig_proverka_2_Func039C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_3[5],udg_Hero[3],udg_Hero_skill_lvl_3[5])
else
call UnitAddAbilityBJ(udg_Hero_skill_3[5],udg_Hero[3])endifcall UnitAddAbilityBJ(udg_Hero_skill_4[1],udg_Hero[4])call UnitAddAbilityBJ(udg_Hero_skill_4[2],udg_Hero[4])call UnitAddAbilityBJ(udg_Hero_skill_4[3],udg_Hero[4])call UnitAddAbilityBJ(udg_Hero_skill_4[4],udg_Hero[4])call UnitAddAbilityBJ(udg_Hero_skill_4[5],udg_Hero[4])if(Trig_proverka_2_Func046C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_4[1],udg_Hero[4],udg_Hero_skill_lvl_4[1])
else
call UnitAddAbilityBJ(udg_Hero_skill_4[1],udg_Hero[4])endifif(Trig_proverka_2_Func047C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_4[2],udg_Hero[4],udg_Hero_skill_lvl_4[2])
else
call UnitAddAbilityBJ(udg_Hero_skill_4[2],udg_Hero[4])endifif(Trig_proverka_2_Func048C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_4[3],udg_Hero[4],udg_Hero_skill_lvl_4[3])
else
call UnitAddAbilityBJ(udg_Hero_skill_4[3],udg_Hero[4])endifif(Trig_proverka_2_Func049C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_4[4],udg_Hero[4],udg_Hero_skill_lvl_4[4])
else
call UnitAddAbilityBJ(udg_Hero_skill_4[1],udg_Hero[4])endifif(Trig_proverka_2_Func050C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_4[5],udg_Hero[4],udg_Hero_skill_lvl_4[5])
else
call UnitAddAbilityBJ(udg_Hero_skill_4[5],udg_Hero[4])endifcall UnitAddAbilityBJ(udg_Hero_skill_5[1],udg_Hero[5])call UnitAddAbilityBJ(udg_Hero_skill_5[2],udg_Hero[5])call UnitAddAbilityBJ(udg_Hero_skill_5[3],udg_Hero[5])call UnitAddAbilityBJ(udg_Hero_skill_5[4],udg_Hero[5])call UnitAddAbilityBJ(udg_Hero_skill_5[5],udg_Hero[5])if(Trig_proverka_2_Func057C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_5[1],udg_Hero[5],udg_Hero_skill_lvl_5[1])
else
call UnitAddAbilityBJ(udg_Hero_skill_5[1],udg_Hero[5])endifif(Trig_proverka_2_Func058C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_5[2],udg_Hero[5],udg_Hero_skill_lvl_5[2])
else
call UnitAddAbilityBJ(udg_Hero_skill_5[2],udg_Hero[5])endifif(Trig_proverka_2_Func059C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_5[3],udg_Hero[5],udg_Hero_skill_lvl_5[3])
else
call UnitAddAbilityBJ(udg_Hero_skill_5[3],udg_Hero[5])endifif(Trig_proverka_2_Func060C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_5[4],udg_Hero[5],udg_Hero_skill_lvl_5[4])
else
call UnitAddAbilityBJ(udg_Hero_skill_5[4],udg_Hero[5])endifif(Trig_proverka_2_Func061C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_5[5],udg_Hero[5],udg_Hero_skill_lvl_5[5])
else
call UnitAddAbilityBJ(udg_Hero_skill_5[5],udg_Hero[5])endifcall UnitAddAbilityBJ(udg_Hero_skill_6[1],udg_Hero[6])call UnitAddAbilityBJ(udg_Hero_skill_6[2],udg_Hero[6])call UnitAddAbilityBJ(udg_Hero_skill_6[3],udg_Hero[6])call UnitAddAbilityBJ(udg_Hero_skill_6[4],udg_Hero[6])call UnitAddAbilityBJ(udg_Hero_skill_6[5],udg_Hero[6])if(Trig_proverka_2_Func068C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_6[1],udg_Hero[6],udg_Hero_skill_lvl_6[1])
else
call UnitAddAbilityBJ(udg_Hero_skill_6[1],udg_Hero[6])endifif(Trig_proverka_2_Func069C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_6[2],udg_Hero[6],udg_Hero_skill_lvl_6[2])
else
call UnitAddAbilityBJ(udg_Hero_skill_6[2],udg_Hero[6])endifif(Trig_proverka_2_Func070C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_6[3],udg_Hero[6],udg_Hero_skill_lvl_6[3])
else
call UnitAddAbilityBJ(udg_Hero_skill_6[3],udg_Hero[6])endifif(Trig_proverka_2_Func071C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_6[4],udg_Hero[6],udg_Hero_skill_lvl_6[4])
else
call UnitAddAbilityBJ(udg_Hero_skill_6[4],udg_Hero[6])endifif(Trig_proverka_2_Func072C())thencall SetUnitAbilityLevelSwapped(udg_Hero_skill_6[5],udg_Hero[6],udg_Hero_skill_lvl_6[5])
else
call UnitAddAbilityBJ(udg_Hero_skill_6[5],udg_Hero[6])endifendfunctionfunction InitTrig_proverka_2 takes nothing returns nothingset gg_trg_proverka_2=CreateTrigger()call TriggerRegisterTimerEventPeriodic(gg_trg_proverka_2,2.00)call TriggerAddAction(gg_trg_proverka_2,function Trig_proverka_2_Actions)endfunctionfunction Trig_Zabvenie_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ncop'))then
return false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zabvenie_Func026Func003001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_1[1]==true)endfunctionfunction Trig_Zabvenie_Func026Func004001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_1[2]==true)endfunctionfunction Trig_Zabvenie_Func026Func005001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_1[3]==true)endfunctionfunction Trig_Zabvenie_Func026Func006001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_1[4]==true)endfunctionfunction Trig_Zabvenie_Func026Func007001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_1[5]==true)endfunctionfunction Trig_Zabvenie_Func026C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Zabvenie_Func027Func003001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_2[1]==true)endfunctionfunction Trig_Zabvenie_Func027Func004001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_2[2]==true)endfunctionfunction Trig_Zabvenie_Func027Func005001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_2[3]==true)endfunctionfunction Trig_Zabvenie_Func027Func006001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_2[4]==true)endfunctionfunction Trig_Zabvenie_Func027Func007001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_2[5]==true)endfunctionfunction Trig_Zabvenie_Func027C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Zabvenie_Func028Func003001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_3[1]==true)endfunctionfunction Trig_Zabvenie_Func028Func004001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_3[2]==true)endfunctionfunction Trig_Zabvenie_Func028Func005001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_3[3]==true)endfunctionfunction Trig_Zabvenie_Func028Func006001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_3[4]==true)endfunctionfunction Trig_Zabvenie_Func028Func007001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_3[5]==true)endfunctionfunction Trig_Zabvenie_Func028C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Zabvenie_Func029Func003001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_4[1]==true)endfunctionfunction Trig_Zabvenie_Func029Func004001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_4[2]==true)endfunctionfunction Trig_Zabvenie_Func029Func005001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_4[3]==true)endfunctionfunction Trig_Zabvenie_Func029Func006001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_4[4]==true)endfunctionfunction Trig_Zabvenie_Func029Func007001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_4[5]==true)endfunctionfunction Trig_Zabvenie_Func029C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Zabvenie_Func030Func003001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_5[1]==true)endfunctionfunction Trig_Zabvenie_Func030Func004001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_5[2]==true)endfunctionfunction Trig_Zabvenie_Func030Func005001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_5[3]==true)endfunctionfunction Trig_Zabvenie_Func030Func006001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_5[4]==true)endfunctionfunction Trig_Zabvenie_Func030Func007001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_5[5]==true)endfunctionfunction Trig_Zabvenie_Func030C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Zabvenie_Func031Func003001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_6[1]==true)endfunctionfunction Trig_Zabvenie_Func031Func004001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_6[2]==true)endfunctionfunction Trig_Zabvenie_Func031Func005001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_6[3]==true)endfunctionfunction Trig_Zabvenie_Func031Func006001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_6[4]==true)endfunctionfunction Trig_Zabvenie_Func031Func007001 takes nothing returns booleanreturn(udg_Hero_skill_Boolean_6[5]==true)endfunctionfunction Trig_Zabvenie_Func031C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Zabvenie_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))call SetPlayerTechResearchedSwap('R009',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R00A',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R00B',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R00E',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R00F',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R00G',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R00H',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R00I',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R00J',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R00K',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R00L',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R00N',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R00O',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R00P',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R00Q',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R00R',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R00S',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R00T',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R00U',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R00V',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechResearchedSwap('R00W',0,GetOwningPlayer(GetTriggerUnit()))
if(Trig_Zabvenie_Func026C())then
set udg_Skill_poluchen=udg_Hero_skill_1[6]call AdjustPlayerStateBJ((udg_Hero_skill_lvl_1[1]+(udg_Hero_skill_lvl_1[2]+(udg_Hero_skill_lvl_1[3]+(udg_Hero_skill_lvl_1[4]+(udg_Hero_skill_lvl_1[5]-5))))),Player(0),PLAYER_STATE_RESOURCE_LUMBER)
if(Trig_Zabvenie_Func026Func003001())thencall AdjustPlayerStateBJ(1,Player(0),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func026Func004001())thencall AdjustPlayerStateBJ(1,Player(0),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func026Func005001())thencall AdjustPlayerStateBJ(1,Player(0),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func026Func006001())thencall AdjustPlayerStateBJ(1,Player(0),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func026Func007001())thencall AdjustPlayerStateBJ(1,Player(0),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifcall UnitRemoveAbilityBJ(udg_Hero_skill_1[1],udg_Hero[1])call UnitRemoveAbilityBJ(udg_Hero_skill_1[2],udg_Hero[1])call UnitRemoveAbilityBJ(udg_Hero_skill_1[3],udg_Hero[1])call UnitRemoveAbilityBJ(udg_Hero_skill_1[4],udg_Hero[1])call UnitRemoveAbilityBJ(udg_Hero_skill_1[5],udg_Hero[1])set udg_Hero_skill_1[1]=udg_Hero_skill_1[6]set udg_Hero_skill_1[2]=udg_Hero_skill_1[6]set udg_Hero_skill_1[3]=udg_Hero_skill_1[6]set udg_Hero_skill_1[4]=udg_Hero_skill_1[6]set udg_Hero_skill_1[5]=udg_Hero_skill_1[6]set udg_Hero_skill_lvl_1[1]=1set udg_Hero_skill_lvl_1[2]=1set udg_Hero_skill_lvl_1[3]=1set udg_Hero_skill_lvl_1[4]=1set udg_Hero_skill_lvl_1[5]=1set udg_Hero_skill_Boolean_1[1]=falseset udg_Hero_skill_Boolean_1[2]=falseset udg_Hero_skill_Boolean_1[3]=falseset udg_Hero_skill_Boolean_1[4]=falseset udg_Hero_skill_Boolean_1[5]=falseelse
endifif(Trig_Zabvenie_Func027C())then
set udg_Skill_poluchen=udg_Hero_skill_1[6]call AdjustPlayerStateBJ((udg_Hero_skill_lvl_2[1]+(udg_Hero_skill_lvl_2[2]+(udg_Hero_skill_lvl_2[3]+(udg_Hero_skill_lvl_2[4]+(udg_Hero_skill_lvl_2[5]-5))))),Player(1),PLAYER_STATE_RESOURCE_LUMBER)
if(Trig_Zabvenie_Func027Func003001())thencall AdjustPlayerStateBJ(1,Player(1),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func027Func004001())thencall AdjustPlayerStateBJ(1,Player(1),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func027Func005001())thencall AdjustPlayerStateBJ(1,Player(1),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func027Func006001())thencall AdjustPlayerStateBJ(1,Player(1),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func027Func007001())thencall AdjustPlayerStateBJ(1,Player(1),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifcall UnitRemoveAbilityBJ(udg_Hero_skill_2[1],udg_Hero[2])call UnitRemoveAbilityBJ(udg_Hero_skill_2[2],udg_Hero[2])call UnitRemoveAbilityBJ(udg_Hero_skill_2[3],udg_Hero[2])call UnitRemoveAbilityBJ(udg_Hero_skill_2[4],udg_Hero[2])call UnitRemoveAbilityBJ(udg_Hero_skill_2[5],udg_Hero[2])set udg_Hero_skill_2[1]=udg_Hero_skill_1[6]set udg_Hero_skill_2[2]=udg_Hero_skill_1[6]set udg_Hero_skill_2[3]=udg_Hero_skill_1[6]set udg_Hero_skill_2[4]=udg_Hero_skill_1[6]set udg_Hero_skill_2[5]=udg_Hero_skill_1[6]set udg_Hero_skill_lvl_2[1]=1set udg_Hero_skill_lvl_2[2]=1set udg_Hero_skill_lvl_2[3]=1set udg_Hero_skill_lvl_2[4]=1set udg_Hero_skill_lvl_2[5]=1set udg_Hero_skill_Boolean_2[1]=falseset udg_Hero_skill_Boolean_2[2]=falseset udg_Hero_skill_Boolean_2[3]=falseset udg_Hero_skill_Boolean_2[4]=falseset udg_Hero_skill_Boolean_2[5]=falseelse
endifif(Trig_Zabvenie_Func028C())then
set udg_Skill_poluchen=udg_Hero_skill_1[6]call AdjustPlayerStateBJ((udg_Hero_skill_lvl_3[1]+(udg_Hero_skill_lvl_3[2]+(udg_Hero_skill_lvl_3[3]+(udg_Hero_skill_lvl_3[4]+(udg_Hero_skill_lvl_3[5]-5))))),Player(2),PLAYER_STATE_RESOURCE_LUMBER)
if(Trig_Zabvenie_Func028Func003001())thencall AdjustPlayerStateBJ(1,Player(2),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func028Func004001())thencall AdjustPlayerStateBJ(1,Player(2),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func028Func005001())thencall AdjustPlayerStateBJ(1,Player(2),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func028Func006001())thencall AdjustPlayerStateBJ(1,Player(2),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func028Func007001())thencall AdjustPlayerStateBJ(1,Player(2),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifcall UnitRemoveAbilityBJ(udg_Hero_skill_3[1],udg_Hero[3])call UnitRemoveAbilityBJ(udg_Hero_skill_3[2],udg_Hero[3])call UnitRemoveAbilityBJ(udg_Hero_skill_3[3],udg_Hero[3])call UnitRemoveAbilityBJ(udg_Hero_skill_3[4],udg_Hero[3])call UnitRemoveAbilityBJ(udg_Hero_skill_3[5],udg_Hero[3])set udg_Hero_skill_3[1]=udg_Hero_skill_1[6]set udg_Hero_skill_3[2]=udg_Hero_skill_1[6]set udg_Hero_skill_3[3]=udg_Hero_skill_1[6]set udg_Hero_skill_3[4]=udg_Hero_skill_1[6]set udg_Hero_skill_3[5]=udg_Hero_skill_1[6]set udg_Hero_skill_lvl_3[1]=1set udg_Hero_skill_lvl_3[2]=1set udg_Hero_skill_lvl_3[3]=1set udg_Hero_skill_lvl_3[4]=1set udg_Hero_skill_lvl_3[5]=1set udg_Hero_skill_Boolean_3[1]=falseset udg_Hero_skill_Boolean_3[2]=falseset udg_Hero_skill_Boolean_3[3]=falseset udg_Hero_skill_Boolean_3[4]=falseset udg_Hero_skill_Boolean_3[5]=falseelse
endifif(Trig_Zabvenie_Func029C())then
set udg_Skill_poluchen=udg_Hero_skill_1[6]call AdjustPlayerStateBJ((udg_Hero_skill_lvl_4[1]+(udg_Hero_skill_lvl_4[2]+(udg_Hero_skill_lvl_4[3]+(udg_Hero_skill_lvl_4[4]+(udg_Hero_skill_lvl_4[5]-5))))),Player(3),PLAYER_STATE_RESOURCE_LUMBER)
if(Trig_Zabvenie_Func029Func003001())thencall AdjustPlayerStateBJ(1,Player(3),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func029Func004001())thencall AdjustPlayerStateBJ(1,Player(3),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func029Func005001())thencall AdjustPlayerStateBJ(1,Player(3),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func029Func006001())thencall AdjustPlayerStateBJ(1,Player(3),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func029Func007001())thencall AdjustPlayerStateBJ(1,Player(3),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifcall UnitRemoveAbilityBJ(udg_Hero_skill_4[1],udg_Hero[4])call UnitRemoveAbilityBJ(udg_Hero_skill_4[2],udg_Hero[4])call UnitRemoveAbilityBJ(udg_Hero_skill_4[3],udg_Hero[4])call UnitRemoveAbilityBJ(udg_Hero_skill_4[4],udg_Hero[4])call UnitRemoveAbilityBJ(udg_Hero_skill_4[5],udg_Hero[4])set udg_Hero_skill_4[1]=udg_Hero_skill_1[6]set udg_Hero_skill_4[2]=udg_Hero_skill_1[6]set udg_Hero_skill_4[3]=udg_Hero_skill_1[6]set udg_Hero_skill_4[4]=udg_Hero_skill_1[6]set udg_Hero_skill_4[5]=udg_Hero_skill_1[6]set udg_Hero_skill_lvl_4[1]=1set udg_Hero_skill_lvl_4[2]=1set udg_Hero_skill_lvl_4[3]=1set udg_Hero_skill_lvl_4[4]=1set udg_Hero_skill_lvl_4[5]=1set udg_Hero_skill_Boolean_4[1]=falseset udg_Hero_skill_Boolean_4[2]=falseset udg_Hero_skill_Boolean_4[3]=falseset udg_Hero_skill_Boolean_4[4]=falseset udg_Hero_skill_Boolean_4[5]=falseelse
endifif(Trig_Zabvenie_Func030C())then
set udg_Skill_poluchen=udg_Hero_skill_1[6]call AdjustPlayerStateBJ((udg_Hero_skill_lvl_5[1]+(udg_Hero_skill_lvl_5[2]+(udg_Hero_skill_lvl_5[3]+(udg_Hero_skill_lvl_5[4]+(udg_Hero_skill_lvl_5[5]-5))))),Player(3),PLAYER_STATE_RESOURCE_LUMBER)
if(Trig_Zabvenie_Func030Func003001())thencall AdjustPlayerStateBJ(1,Player(4),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func030Func004001())thencall AdjustPlayerStateBJ(1,Player(4),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func030Func005001())thencall AdjustPlayerStateBJ(1,Player(4),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func030Func006001())thencall AdjustPlayerStateBJ(1,Player(4),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func030Func007001())thencall AdjustPlayerStateBJ(1,Player(4),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifcall UnitRemoveAbilityBJ(udg_Hero_skill_5[1],udg_Hero[5])call UnitRemoveAbilityBJ(udg_Hero_skill_5[2],udg_Hero[5])call UnitRemoveAbilityBJ(udg_Hero_skill_5[3],udg_Hero[5])call UnitRemoveAbilityBJ(udg_Hero_skill_5[4],udg_Hero[5])call UnitRemoveAbilityBJ(udg_Hero_skill_5[5],udg_Hero[5])set udg_Hero_skill_5[1]=udg_Hero_skill_1[6]set udg_Hero_skill_5[2]=udg_Hero_skill_1[6]set udg_Hero_skill_5[3]=udg_Hero_skill_1[6]set udg_Hero_skill_5[4]=udg_Hero_skill_1[6]set udg_Hero_skill_5[5]=udg_Hero_skill_1[6]set udg_Hero_skill_lvl_5[1]=1set udg_Hero_skill_lvl_5[2]=1set udg_Hero_skill_lvl_5[3]=1set udg_Hero_skill_lvl_5[4]=1set udg_Hero_skill_lvl_5[5]=1set udg_Hero_skill_Boolean_5[1]=falseset udg_Hero_skill_Boolean_5[2]=falseset udg_Hero_skill_Boolean_5[3]=falseset udg_Hero_skill_Boolean_5[4]=falseset udg_Hero_skill_Boolean_5[5]=falseelse
endifif(Trig_Zabvenie_Func031C())then
set udg_Skill_poluchen=udg_Hero_skill_1[6]call AdjustPlayerStateBJ((udg_Hero_skill_lvl_6[1]+(udg_Hero_skill_lvl_6[2]+(udg_Hero_skill_lvl_6[3]+(udg_Hero_skill_lvl_6[4]+(udg_Hero_skill_lvl_6[5]-5))))),Player(3),PLAYER_STATE_RESOURCE_LUMBER)
if(Trig_Zabvenie_Func031Func003001())thencall AdjustPlayerStateBJ(1,Player(5),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func031Func004001())thencall AdjustPlayerStateBJ(1,Player(5),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func031Func005001())thencall AdjustPlayerStateBJ(1,Player(5),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func031Func006001())thencall AdjustPlayerStateBJ(1,Player(5),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifif(Trig_Zabvenie_Func031Func007001())thencall AdjustPlayerStateBJ(1,Player(5),PLAYER_STATE_RESOURCE_LUMBER)else
call DoNothing()
endifcall UnitRemoveAbilityBJ(udg_Hero_skill_6[1],udg_Hero[6])call UnitRemoveAbilityBJ(udg_Hero_skill_6[2],udg_Hero[6])call UnitRemoveAbilityBJ(udg_Hero_skill_6[3],udg_Hero[6])call UnitRemoveAbilityBJ(udg_Hero_skill_6[4],udg_Hero[6])call UnitRemoveAbilityBJ(udg_Hero_skill_6[5],udg_Hero[6])set udg_Hero_skill_6[1]=udg_Hero_skill_1[6]set udg_Hero_skill_6[2]=udg_Hero_skill_1[6]set udg_Hero_skill_6[3]=udg_Hero_skill_1[6]set udg_Hero_skill_6[4]=udg_Hero_skill_1[6]set udg_Hero_skill_6[5]=udg_Hero_skill_1[6]set udg_Hero_skill_lvl_6[1]=1set udg_Hero_skill_lvl_6[2]=1set udg_Hero_skill_lvl_6[3]=1set udg_Hero_skill_lvl_6[4]=1set udg_Hero_skill_lvl_6[5]=1set udg_Hero_skill_Boolean_6[1]=falseset udg_Hero_skill_Boolean_6[2]=falseset udg_Hero_skill_Boolean_6[3]=falseset udg_Hero_skill_Boolean_6[4]=falseset udg_Hero_skill_Boolean_6[5]=falseelse
endifendfunctionfunction InitTrig_Zabvenie takes nothing returns nothing
set gg_trg_Zabvenie=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Zabvenie,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Zabvenie,Condition(function Trig_Zabvenie_Conditions))call TriggerAddAction(gg_trg_Zabvenie,function Trig_Zabvenie_Actions)endfunctionfunction Trig_Kniga_1_Func013C takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03H')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03I')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03N')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03O')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03P')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03Q')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03R')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03S')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03T')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06A')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06B')==true))then
return trueendifreturn false
endfunctionfunction Trig_Kniga_1_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ncop'))then
return false
endifif(not Trig_Kniga_1_Func013C())thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03H')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03I')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03N')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func004C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03O')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func005C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03P')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func006C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03Q')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func007C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03R')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func008C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03S')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func009C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03T')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func010C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func011C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func017Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func017Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_1[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func017Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func017Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func017Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func017C takes nothing returns boolean
if(not(udg_Hero_skill_1[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func018Func001C takes nothing returns booleanif(not(udg_Hero_skill_1[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func018Func002C takes nothing returns booleanif(not(udg_Hero_skill_1[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func018Func003C takes nothing returns booleanif(not(udg_Hero_skill_1[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func018Func004C takes nothing returns booleanif(not(udg_Hero_skill_1[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func018Func005C takes nothing returns booleanif(not(udg_Hero_skill_1[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func018C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func020Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func020Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_2[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func020Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func020Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func020Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func020C takes nothing returns boolean
if(not(udg_Hero_skill_2[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func021Func001C takes nothing returns booleanif(not(udg_Hero_skill_2[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func021Func002C takes nothing returns booleanif(not(udg_Hero_skill_2[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func021Func003C takes nothing returns booleanif(not(udg_Hero_skill_2[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func021Func004C takes nothing returns booleanif(not(udg_Hero_skill_2[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func021Func005C takes nothing returns booleanif(not(udg_Hero_skill_2[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func021C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func023Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func023Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_3[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func023Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func023Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func023Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func023C takes nothing returns boolean
if(not(udg_Hero_skill_3[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func024Func001C takes nothing returns booleanif(not(udg_Hero_skill_3[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func024Func002C takes nothing returns booleanif(not(udg_Hero_skill_3[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func024Func003C takes nothing returns booleanif(not(udg_Hero_skill_3[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func024Func004C takes nothing returns booleanif(not(udg_Hero_skill_3[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func024Func005C takes nothing returns booleanif(not(udg_Hero_skill_3[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func024C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func026Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func026Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_4[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func026Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func026Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func026Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func026C takes nothing returns boolean
if(not(udg_Hero_skill_4[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func027Func001C takes nothing returns booleanif(not(udg_Hero_skill_4[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func027Func002C takes nothing returns booleanif(not(udg_Hero_skill_4[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func027Func003C takes nothing returns booleanif(not(udg_Hero_skill_4[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func027Func004C takes nothing returns booleanif(not(udg_Hero_skill_4[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func027Func005C takes nothing returns booleanif(not(udg_Hero_skill_4[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func027C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func029Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func029Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_5[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func029Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func029Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func029Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func029C takes nothing returns boolean
if(not(udg_Hero_skill_5[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func030Func001C takes nothing returns booleanif(not(udg_Hero_skill_5[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func030Func002C takes nothing returns booleanif(not(udg_Hero_skill_5[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func030Func003C takes nothing returns booleanif(not(udg_Hero_skill_5[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func030Func004C takes nothing returns booleanif(not(udg_Hero_skill_5[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func030Func005C takes nothing returns booleanif(not(udg_Hero_skill_5[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func030C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func032Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func032Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_6[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func032Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func032Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func032Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func032C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifif(not(udg_Hero_skill_6[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[5]!=udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func033Func001C takes nothing returns booleanif(not(udg_Hero_skill_6[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func033Func002C takes nothing returns booleanif(not(udg_Hero_skill_6[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func033Func003C takes nothing returns booleanif(not(udg_Hero_skill_6[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func033Func004C takes nothing returns booleanif(not(udg_Hero_skill_6[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func033Func005C takes nothing returns booleanif(not(udg_Hero_skill_6[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_1_Func033C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_1_Actions takes nothing returns nothingif(Trig_Kniga_1_Func001C())thenset udg_Skill_poluchen='A002'else
endifif(Trig_Kniga_1_Func002C())thenset udg_Skill_poluchen='AHfa'else
endifif(Trig_Kniga_1_Func003C())thenset udg_Skill_poluchen='AEim'else
endifif(Trig_Kniga_1_Func004C())thenset udg_Skill_poluchen='A02F'else
endifif(Trig_Kniga_1_Func005C())thenset udg_Skill_poluchen='AUfn'else
endifif(Trig_Kniga_1_Func006C())thenset udg_Skill_poluchen='AHca'else
endifif(Trig_Kniga_1_Func007C())thenset udg_Skill_poluchen='AUfu'else
endifif(Trig_Kniga_1_Func008C())thenset udg_Skill_poluchen='A02G'else
endifif(Trig_Kniga_1_Func009C())thenset udg_Skill_poluchen='AOwk'else
endifif(Trig_Kniga_1_Func010C())thenset udg_Skill_poluchen='A07N'else
endifif(Trig_Kniga_1_Func011C())thenset udg_Skill_poluchen='A07O'else
endifcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))if(Trig_Kniga_1_Func017C())thenif(Trig_Kniga_1_Func017Func006C())thenset udg_Hero_skill_1[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_1_Func017Func006Func001C())thenset udg_Hero_skill_1[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_1_Func017Func006Func001Func001C())then
set udg_Hero_skill_1[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_1_Func017Func006Func001Func001Func001C())thenset udg_Hero_skill_1[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_1_Func017Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_1[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_1_Func018C())thenif(Trig_Kniga_1_Func018Func001C())thenset udg_Hero_skill_lvl_1[1]=(udg_Hero_skill_lvl_1[1]+1)returnelse
endifif(Trig_Kniga_1_Func018Func002C())thenset udg_Hero_skill_lvl_1[2]=(udg_Hero_skill_lvl_1[2]+1)returnelse
endifif(Trig_Kniga_1_Func018Func003C())thenset udg_Hero_skill_lvl_1[3]=(udg_Hero_skill_lvl_1[3]+1)returnelse
endifif(Trig_Kniga_1_Func018Func004C())thenset udg_Hero_skill_lvl_1[4]=(udg_Hero_skill_lvl_1[4]+1)returnelse
endifif(Trig_Kniga_1_Func018Func005C())thenset udg_Hero_skill_lvl_1[5]=(udg_Hero_skill_lvl_1[5]+1)returnelse
endifelse
endifif(Trig_Kniga_1_Func020C())thenif(Trig_Kniga_1_Func020Func001C())thenset udg_Hero_skill_2[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_1_Func020Func001Func001C())thenset udg_Hero_skill_2[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_1_Func020Func001Func001Func001C())then
set udg_Hero_skill_2[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_1_Func020Func001Func001Func001Func001C())thenset udg_Hero_skill_2[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_1_Func020Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_2[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_1_Func021C())thenif(Trig_Kniga_1_Func021Func001C())thenset udg_Hero_skill_lvl_2[1]=(udg_Hero_skill_lvl_2[1]+1)returnelse
endifif(Trig_Kniga_1_Func021Func002C())thenset udg_Hero_skill_lvl_2[2]=(udg_Hero_skill_lvl_2[2]+1)returnelse
endifif(Trig_Kniga_1_Func021Func003C())thenset udg_Hero_skill_lvl_2[3]=(udg_Hero_skill_lvl_2[3]+1)returnelse
endifif(Trig_Kniga_1_Func021Func004C())thenset udg_Hero_skill_lvl_2[4]=(udg_Hero_skill_lvl_2[4]+1)returnelse
endifif(Trig_Kniga_1_Func021Func005C())thenset udg_Hero_skill_lvl_2[5]=(udg_Hero_skill_lvl_2[5]+1)returnelse
endifelse
endifif(Trig_Kniga_1_Func023C())thenif(Trig_Kniga_1_Func023Func001C())thenset udg_Hero_skill_3[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_1_Func023Func001Func001C())thenset udg_Hero_skill_3[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_1_Func023Func001Func001Func001C())then
set udg_Hero_skill_3[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_1_Func023Func001Func001Func001Func001C())thenset udg_Hero_skill_3[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_1_Func023Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_3[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_1_Func024C())thenif(Trig_Kniga_1_Func024Func001C())thenset udg_Hero_skill_lvl_3[1]=(udg_Hero_skill_lvl_3[1]+1)returnelse
endifif(Trig_Kniga_1_Func024Func002C())thenset udg_Hero_skill_lvl_3[2]=(udg_Hero_skill_lvl_3[2]+1)returnelse
endifif(Trig_Kniga_1_Func024Func003C())thenset udg_Hero_skill_lvl_3[3]=(udg_Hero_skill_lvl_3[3]+1)returnelse
endifif(Trig_Kniga_1_Func024Func004C())thenset udg_Hero_skill_lvl_3[4]=(udg_Hero_skill_lvl_3[4]+1)returnelse
endifif(Trig_Kniga_1_Func024Func005C())thenset udg_Hero_skill_lvl_3[5]=(udg_Hero_skill_lvl_3[5]+1)returnelse
endifelse
endifif(Trig_Kniga_1_Func026C())thenif(Trig_Kniga_1_Func026Func006C())thenset udg_Hero_skill_4[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_1_Func026Func006Func001C())thenset udg_Hero_skill_4[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_1_Func026Func006Func001Func001C())then
set udg_Hero_skill_4[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_1_Func026Func006Func001Func001Func001C())thenset udg_Hero_skill_4[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_1_Func026Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_4[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_1_Func027C())thenif(Trig_Kniga_1_Func027Func001C())thenset udg_Hero_skill_lvl_4[1]=(udg_Hero_skill_lvl_4[1]+1)returnelse
endifif(Trig_Kniga_1_Func027Func002C())thenset udg_Hero_skill_lvl_4[2]=(udg_Hero_skill_lvl_4[2]+1)returnelse
endifif(Trig_Kniga_1_Func027Func003C())thenset udg_Hero_skill_lvl_4[3]=(udg_Hero_skill_lvl_4[3]+1)returnelse
endifif(Trig_Kniga_1_Func027Func004C())thenset udg_Hero_skill_lvl_4[4]=(udg_Hero_skill_lvl_4[4]+1)returnelse
endifif(Trig_Kniga_1_Func027Func005C())thenset udg_Hero_skill_lvl_4[5]=(udg_Hero_skill_lvl_4[5]+1)returnelse
endifelse
endifif(Trig_Kniga_1_Func029C())thenif(Trig_Kniga_1_Func029Func006C())thenset udg_Hero_skill_5[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_1_Func029Func006Func001C())thenset udg_Hero_skill_5[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_1_Func029Func006Func001Func001C())then
set udg_Hero_skill_5[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_1_Func029Func006Func001Func001Func001C())thenset udg_Hero_skill_5[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_1_Func029Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_5[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_1_Func030C())thenif(Trig_Kniga_1_Func030Func001C())thenset udg_Hero_skill_lvl_5[1]=(udg_Hero_skill_lvl_5[1]+1)returnelse
endifif(Trig_Kniga_1_Func030Func002C())thenset udg_Hero_skill_lvl_5[2]=(udg_Hero_skill_lvl_5[2]+1)returnelse
endifif(Trig_Kniga_1_Func030Func003C())thenset udg_Hero_skill_lvl_5[3]=(udg_Hero_skill_lvl_5[3]+1)returnelse
endifif(Trig_Kniga_1_Func030Func004C())thenset udg_Hero_skill_lvl_5[4]=(udg_Hero_skill_lvl_5[4]+1)returnelse
endifif(Trig_Kniga_1_Func030Func005C())thenset udg_Hero_skill_lvl_5[5]=(udg_Hero_skill_lvl_5[5]+1)returnelse
endifelse
endifif(Trig_Kniga_1_Func032C())thenif(Trig_Kniga_1_Func032Func001C())thenset udg_Hero_skill_6[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_1_Func032Func001Func001C())thenset udg_Hero_skill_6[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_1_Func032Func001Func001Func001C())then
set udg_Hero_skill_6[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_1_Func032Func001Func001Func001Func001C())thenset udg_Hero_skill_6[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_1_Func032Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_6[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_1_Func033C())thenif(Trig_Kniga_1_Func033Func001C())thenset udg_Hero_skill_lvl_6[1]=(udg_Hero_skill_lvl_6[1]+1)returnelse
endifif(Trig_Kniga_1_Func033Func002C())thenset udg_Hero_skill_lvl_6[2]=(udg_Hero_skill_lvl_6[2]+1)returnelse
endifif(Trig_Kniga_1_Func033Func003C())thenset udg_Hero_skill_lvl_6[3]=(udg_Hero_skill_lvl_6[3]+1)returnelse
endifif(Trig_Kniga_1_Func033Func004C())thenset udg_Hero_skill_lvl_6[4]=(udg_Hero_skill_lvl_6[4]+1)returnelse
endifif(Trig_Kniga_1_Func033Func005C())thenset udg_Hero_skill_lvl_6[5]=(udg_Hero_skill_lvl_6[5]+1)returnelse
endifelse
endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")endfunctionfunction InitTrig_Kniga_1 takes nothing returns nothingset gg_trg_Kniga_1=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kniga_1,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Kniga_1,Condition(function Trig_Kniga_1_Conditions))
call TriggerAddAction(gg_trg_Kniga_1,function Trig_Kniga_1_Actions)endfunctionfunction Trig_Kniga_2_Func013C takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03J')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03U')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03V')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06C')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03W')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03X')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03Y')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06D')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03Z')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I040')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I041')==true))then
return trueendifreturn false
endfunctionfunction Trig_Kniga_2_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ncop'))then
return false
endifif(not Trig_Kniga_2_Func013C())thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03J')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03U')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03V')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func004C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func005C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03W')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func006C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03X')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func007C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03Y')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func008C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func009C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03Z')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func010C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I040')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func011C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I041')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func017Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func017Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_1[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func017Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func017Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func017Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func017C takes nothing returns boolean
if(not(udg_Hero_skill_1[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func018Func001C takes nothing returns booleanif(not(udg_Hero_skill_1[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func018Func002C takes nothing returns booleanif(not(udg_Hero_skill_1[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func018Func003C takes nothing returns booleanif(not(udg_Hero_skill_1[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func018Func004C takes nothing returns booleanif(not(udg_Hero_skill_1[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func018Func005C takes nothing returns booleanif(not(udg_Hero_skill_1[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func018C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func020Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func020Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_2[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func020Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func020Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func020Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func020C takes nothing returns boolean
if(not(udg_Hero_skill_2[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func021Func001C takes nothing returns booleanif(not(udg_Hero_skill_2[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func021Func002C takes nothing returns booleanif(not(udg_Hero_skill_2[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func021Func003C takes nothing returns booleanif(not(udg_Hero_skill_2[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func021Func004C takes nothing returns booleanif(not(udg_Hero_skill_2[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func021Func005C takes nothing returns booleanif(not(udg_Hero_skill_2[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func021C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func023Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func023Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_3[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func023Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func023Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func023Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func023C takes nothing returns boolean
if(not(udg_Hero_skill_3[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func024Func001C takes nothing returns booleanif(not(udg_Hero_skill_3[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func024Func002C takes nothing returns booleanif(not(udg_Hero_skill_3[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func024Func003C takes nothing returns booleanif(not(udg_Hero_skill_3[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func024Func004C takes nothing returns booleanif(not(udg_Hero_skill_3[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func024Func005C takes nothing returns booleanif(not(udg_Hero_skill_3[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func024C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func026Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func026Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_4[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func026Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func026Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func026Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func026C takes nothing returns boolean
if(not(udg_Hero_skill_4[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func027Func001C takes nothing returns booleanif(not(udg_Hero_skill_4[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func027Func002C takes nothing returns booleanif(not(udg_Hero_skill_4[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func027Func003C takes nothing returns booleanif(not(udg_Hero_skill_4[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func027Func004C takes nothing returns booleanif(not(udg_Hero_skill_4[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func027Func005C takes nothing returns booleanif(not(udg_Hero_skill_4[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func027C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func029Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func029Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_5[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func029Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func029Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func029Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func029C takes nothing returns boolean
if(not(udg_Hero_skill_5[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func030Func001C takes nothing returns booleanif(not(udg_Hero_skill_5[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func030Func002C takes nothing returns booleanif(not(udg_Hero_skill_5[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func030Func003C takes nothing returns booleanif(not(udg_Hero_skill_5[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func030Func004C takes nothing returns booleanif(not(udg_Hero_skill_5[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func030Func005C takes nothing returns booleanif(not(udg_Hero_skill_5[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func030C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func032Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func032Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_6[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func032Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func032Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func032Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func032C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifif(not(udg_Hero_skill_6[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[5]!=udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func033Func001C takes nothing returns booleanif(not(udg_Hero_skill_6[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func033Func002C takes nothing returns booleanif(not(udg_Hero_skill_6[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func033Func003C takes nothing returns booleanif(not(udg_Hero_skill_6[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func033Func004C takes nothing returns booleanif(not(udg_Hero_skill_6[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func033Func005C takes nothing returns booleanif(not(udg_Hero_skill_6[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_2_Func033C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_2_Actions takes nothing returns nothingif(Trig_Kniga_2_Func001C())thenset udg_Skill_poluchen='AHtb'else
endifif(Trig_Kniga_2_Func002C())thenset udg_Skill_poluchen='AHtc'else
endifif(Trig_Kniga_2_Func003C())thenset udg_Skill_poluchen='AHav'else
endifif(Trig_Kniga_2_Func004C())thenset udg_Skill_poluchen='A07P'else
endifif(Trig_Kniga_2_Func005C())thenset udg_Skill_poluchen='AOsh'else
endifif(Trig_Kniga_2_Func006C())thenset udg_Skill_poluchen='AOws'else
endifif(Trig_Kniga_2_Func007C())thenset udg_Skill_poluchen='AOmi'else
endifif(Trig_Kniga_2_Func008C())thenset udg_Skill_poluchen='A098'else
endifif(Trig_Kniga_2_Func009C())thenset udg_Skill_poluchen='AEmb'else
endifif(Trig_Kniga_2_Func010C())thenset udg_Skill_poluchen='AEfk'else
endifif(Trig_Kniga_2_Func011C())thenset udg_Skill_poluchen='AEer'else
endifcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))if(Trig_Kniga_2_Func017C())thenif(Trig_Kniga_2_Func017Func006C())thenset udg_Hero_skill_1[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_2_Func017Func006Func001C())thenset udg_Hero_skill_1[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_2_Func017Func006Func001Func001C())then
set udg_Hero_skill_1[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_2_Func017Func006Func001Func001Func001C())thenset udg_Hero_skill_1[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_2_Func017Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_1[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_2_Func018C())thenif(Trig_Kniga_2_Func018Func001C())thenset udg_Hero_skill_lvl_1[1]=(udg_Hero_skill_lvl_1[1]+1)returnelse
endifif(Trig_Kniga_2_Func018Func002C())thenset udg_Hero_skill_lvl_1[2]=(udg_Hero_skill_lvl_1[2]+1)returnelse
endifif(Trig_Kniga_2_Func018Func003C())thenset udg_Hero_skill_lvl_1[3]=(udg_Hero_skill_lvl_1[3]+1)returnelse
endifif(Trig_Kniga_2_Func018Func004C())thenset udg_Hero_skill_lvl_1[4]=(udg_Hero_skill_lvl_1[4]+1)returnelse
endifif(Trig_Kniga_2_Func018Func005C())thenset udg_Hero_skill_lvl_1[5]=(udg_Hero_skill_lvl_1[5]+1)returnelse
endifelse
endifif(Trig_Kniga_2_Func020C())thenif(Trig_Kniga_2_Func020Func001C())thenset udg_Hero_skill_2[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_2_Func020Func001Func001C())thenset udg_Hero_skill_2[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_2_Func020Func001Func001Func001C())then
set udg_Hero_skill_2[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_2_Func020Func001Func001Func001Func001C())thenset udg_Hero_skill_2[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_2_Func020Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_2[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_2_Func021C())thenif(Trig_Kniga_2_Func021Func001C())thenset udg_Hero_skill_lvl_2[1]=(udg_Hero_skill_lvl_2[1]+1)returnelse
endifif(Trig_Kniga_2_Func021Func002C())thenset udg_Hero_skill_lvl_2[2]=(udg_Hero_skill_lvl_2[2]+1)returnelse
endifif(Trig_Kniga_2_Func021Func003C())thenset udg_Hero_skill_lvl_2[3]=(udg_Hero_skill_lvl_2[3]+1)returnelse
endifif(Trig_Kniga_2_Func021Func004C())thenset udg_Hero_skill_lvl_2[4]=(udg_Hero_skill_lvl_2[4]+1)returnelse
endifif(Trig_Kniga_2_Func021Func005C())thenset udg_Hero_skill_lvl_2[5]=(udg_Hero_skill_lvl_2[5]+1)returnelse
endifelse
endifif(Trig_Kniga_2_Func023C())thenif(Trig_Kniga_2_Func023Func001C())thenset udg_Hero_skill_3[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_2_Func023Func001Func001C())thenset udg_Hero_skill_3[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_2_Func023Func001Func001Func001C())then
set udg_Hero_skill_3[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_2_Func023Func001Func001Func001Func001C())thenset udg_Hero_skill_3[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_2_Func023Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_3[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_2_Func024C())thenif(Trig_Kniga_2_Func024Func001C())thenset udg_Hero_skill_lvl_3[1]=(udg_Hero_skill_lvl_3[1]+1)returnelse
endifif(Trig_Kniga_2_Func024Func002C())thenset udg_Hero_skill_lvl_3[2]=(udg_Hero_skill_lvl_3[2]+1)returnelse
endifif(Trig_Kniga_2_Func024Func003C())thenset udg_Hero_skill_lvl_3[3]=(udg_Hero_skill_lvl_3[3]+1)returnelse
endifif(Trig_Kniga_2_Func024Func004C())thenset udg_Hero_skill_lvl_3[4]=(udg_Hero_skill_lvl_3[4]+1)returnelse
endifif(Trig_Kniga_2_Func024Func005C())thenset udg_Hero_skill_lvl_3[5]=(udg_Hero_skill_lvl_3[5]+1)returnelse
endifelse
endifif(Trig_Kniga_2_Func026C())thenif(Trig_Kniga_2_Func026Func006C())thenset udg_Hero_skill_4[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_2_Func026Func006Func001C())thenset udg_Hero_skill_4[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_2_Func026Func006Func001Func001C())then
set udg_Hero_skill_4[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_2_Func026Func006Func001Func001Func001C())thenset udg_Hero_skill_4[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_2_Func026Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_4[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_2_Func027C())thenif(Trig_Kniga_2_Func027Func001C())thenset udg_Hero_skill_lvl_4[1]=(udg_Hero_skill_lvl_4[1]+1)returnelse
endifif(Trig_Kniga_2_Func027Func002C())thenset udg_Hero_skill_lvl_4[2]=(udg_Hero_skill_lvl_4[2]+1)returnelse
endifif(Trig_Kniga_2_Func027Func003C())thenset udg_Hero_skill_lvl_4[3]=(udg_Hero_skill_lvl_4[3]+1)returnelse
endifif(Trig_Kniga_2_Func027Func004C())thenset udg_Hero_skill_lvl_4[4]=(udg_Hero_skill_lvl_4[4]+1)returnelse
endifif(Trig_Kniga_2_Func027Func005C())thenset udg_Hero_skill_lvl_4[5]=(udg_Hero_skill_lvl_4[5]+1)returnelse
endifelse
endifif(Trig_Kniga_2_Func029C())thenif(Trig_Kniga_2_Func029Func006C())thenset udg_Hero_skill_5[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_2_Func029Func006Func001C())thenset udg_Hero_skill_5[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_2_Func029Func006Func001Func001C())then
set udg_Hero_skill_5[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_2_Func029Func006Func001Func001Func001C())thenset udg_Hero_skill_5[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_2_Func029Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_5[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_2_Func030C())thenif(Trig_Kniga_2_Func030Func001C())thenset udg_Hero_skill_lvl_5[1]=(udg_Hero_skill_lvl_5[1]+1)returnelse
endifif(Trig_Kniga_2_Func030Func002C())thenset udg_Hero_skill_lvl_5[2]=(udg_Hero_skill_lvl_5[2]+1)returnelse
endifif(Trig_Kniga_2_Func030Func003C())thenset udg_Hero_skill_lvl_5[3]=(udg_Hero_skill_lvl_5[3]+1)returnelse
endifif(Trig_Kniga_2_Func030Func004C())thenset udg_Hero_skill_lvl_5[4]=(udg_Hero_skill_lvl_5[4]+1)returnelse
endifif(Trig_Kniga_2_Func030Func005C())thenset udg_Hero_skill_lvl_5[5]=(udg_Hero_skill_lvl_5[5]+1)returnelse
endifelse
endifif(Trig_Kniga_2_Func032C())thenif(Trig_Kniga_2_Func032Func001C())thenset udg_Hero_skill_6[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_2_Func032Func001Func001C())thenset udg_Hero_skill_6[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_2_Func032Func001Func001Func001C())then
set udg_Hero_skill_6[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_2_Func032Func001Func001Func001Func001C())thenset udg_Hero_skill_6[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_2_Func032Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_6[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_2_Func033C())thenif(Trig_Kniga_2_Func033Func001C())thenset udg_Hero_skill_lvl_6[1]=(udg_Hero_skill_lvl_6[1]+1)returnelse
endifif(Trig_Kniga_2_Func033Func002C())thenset udg_Hero_skill_lvl_6[2]=(udg_Hero_skill_lvl_6[2]+1)returnelse
endifif(Trig_Kniga_2_Func033Func003C())thenset udg_Hero_skill_lvl_6[3]=(udg_Hero_skill_lvl_6[3]+1)returnelse
endifif(Trig_Kniga_2_Func033Func004C())thenset udg_Hero_skill_lvl_6[4]=(udg_Hero_skill_lvl_6[4]+1)returnelse
endifif(Trig_Kniga_2_Func033Func005C())thenset udg_Hero_skill_lvl_6[5]=(udg_Hero_skill_lvl_6[5]+1)returnelse
endifelse
endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")endfunctionfunction InitTrig_Kniga_2 takes nothing returns nothingset gg_trg_Kniga_2=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kniga_2,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Kniga_2,Condition(function Trig_Kniga_2_Conditions))
call TriggerAddAction(gg_trg_Kniga_2,function Trig_Kniga_2_Actions)endfunctionfunction Trig_Udar_toporom_active_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A07P'))then
return false
endifreturn trueendfunctionfunction Trig_Udar_toporom_active_Func002Func002C takes nothing returns booleanif((UnitHasBuffBJ(GetSpellTargetUnit(),'BPSE')==true))thenreturn trueendifif((UnitHasBuffBJ(GetSpellTargetUnit(),'BHtc')==true))thenreturn trueendifreturn false
endfunctionfunction Trig_Udar_toporom_active_Func002C takes nothing returns boolean
if(not Trig_Udar_toporom_active_Func002Func002C())thenreturn false
endifreturn trueendfunctionfunction Trig_Udar_toporom_active_Actions takes nothing returns nothingcall UnitDamageTargetBJ(GetSpellAbilityUnit(),GetSpellTargetUnit(),(I2R(GetUnitAbilityLevelSwapped('A07P',GetSpellAbilityUnit()))*40.00),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)if(Trig_Udar_toporom_active_Func002C())thencall UnitDamageTargetBJ(GetSpellAbilityUnit(),GetSpellTargetUnit(),(I2R(GetUnitAbilityLevelSwapped('A07P',GetSpellAbilityUnit()))*40.00),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)else
endifendfunctionfunction InitTrig_Udar_toporom_active takes nothing returns nothingset gg_trg_Udar_toporom_active=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Udar_toporom_active,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Udar_toporom_active,Condition(function Trig_Udar_toporom_active_Conditions))
call TriggerAddAction(gg_trg_Udar_toporom_active,function Trig_Udar_toporom_active_Actions)endfunctionfunction Trig_Zemletresenie_Active_Conditions takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped('A07F',GetSpellAbilityUnit())!=1))then
return false
endifif(not(GetUnitAbilityLevelSwapped('A0CA',GetSpellAbilityUnit())!=1))then
return false
endifif(not(GetSpellAbilityId()=='A098'))then
return false
endifreturn trueendfunctionfunction Trig_Zemletresenie_Active_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'u00J',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A02K',GetLastCreatedUnit(),GetUnitAbilityLevelSwapped('A098',GetSpellAbilityUnit()))call IssueImmediateOrder(GetLastCreatedUnit(),"starfall")endfunctionfunction InitTrig_Zemletresenie_Active takes nothing returns nothing
set gg_trg_Zemletresenie_Active=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Zemletresenie_Active,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Zemletresenie_Active,Condition(function Trig_Zemletresenie_Active_Conditions))call TriggerAddAction(gg_trg_Zemletresenie_Active,function Trig_Zemletresenie_Active_Actions)endfunctionfunction Trig_Kniga_3_Func013C takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I042')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I043')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I044')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I045')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01Y')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01Z')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I070')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I071')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I072')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I073')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I074')==true))then
return trueendifreturn false
endfunctionfunction Trig_Kniga_3_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ncop'))then
return false
endifif(not Trig_Kniga_3_Func013C())thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I042')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I043')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I044')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func004C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I045')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func005C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01Y')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func006C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01Z')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func007C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I070')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func008C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I071')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func009C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I072')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func010C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I073')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func011C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I074')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func017Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func017Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_1[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func017Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func017Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func017Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func017C takes nothing returns boolean
if(not(udg_Hero_skill_1[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func018Func001C takes nothing returns booleanif(not(udg_Hero_skill_1[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func018Func002C takes nothing returns booleanif(not(udg_Hero_skill_1[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func018Func003C takes nothing returns booleanif(not(udg_Hero_skill_1[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func018Func004C takes nothing returns booleanif(not(udg_Hero_skill_1[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func018Func005C takes nothing returns booleanif(not(udg_Hero_skill_1[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func018C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func020Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func020Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_2[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func020Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func020Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func020Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func020C takes nothing returns boolean
if(not(udg_Hero_skill_2[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func021Func001C takes nothing returns booleanif(not(udg_Hero_skill_2[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func021Func002C takes nothing returns booleanif(not(udg_Hero_skill_2[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func021Func003C takes nothing returns booleanif(not(udg_Hero_skill_2[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func021Func004C takes nothing returns booleanif(not(udg_Hero_skill_2[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func021Func005C takes nothing returns booleanif(not(udg_Hero_skill_2[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func021C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func023Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func023Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_3[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func023Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func023Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func023Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func023C takes nothing returns boolean
if(not(udg_Hero_skill_3[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func024Func001C takes nothing returns booleanif(not(udg_Hero_skill_3[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func024Func002C takes nothing returns booleanif(not(udg_Hero_skill_3[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func024Func003C takes nothing returns booleanif(not(udg_Hero_skill_3[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func024Func004C takes nothing returns booleanif(not(udg_Hero_skill_3[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func024Func005C takes nothing returns booleanif(not(udg_Hero_skill_3[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func024C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func026Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func026Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_4[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func026Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func026Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func026Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func026C takes nothing returns boolean
if(not(udg_Hero_skill_4[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func027Func001C takes nothing returns booleanif(not(udg_Hero_skill_4[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func027Func002C takes nothing returns booleanif(not(udg_Hero_skill_4[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func027Func003C takes nothing returns booleanif(not(udg_Hero_skill_4[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func027Func004C takes nothing returns booleanif(not(udg_Hero_skill_4[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func027Func005C takes nothing returns booleanif(not(udg_Hero_skill_4[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func027C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func029Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func029Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_5[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func029Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func029Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func029Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func029C takes nothing returns boolean
if(not(udg_Hero_skill_5[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func030Func001C takes nothing returns booleanif(not(udg_Hero_skill_5[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func030Func002C takes nothing returns booleanif(not(udg_Hero_skill_5[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func030Func003C takes nothing returns booleanif(not(udg_Hero_skill_5[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func030Func004C takes nothing returns booleanif(not(udg_Hero_skill_5[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func030Func005C takes nothing returns booleanif(not(udg_Hero_skill_5[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func030C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func032Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func032Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_6[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func032Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func032Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func032Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func032C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifif(not(udg_Hero_skill_6[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[5]!=udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func033Func001C takes nothing returns booleanif(not(udg_Hero_skill_6[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func033Func002C takes nothing returns booleanif(not(udg_Hero_skill_6[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func033Func003C takes nothing returns booleanif(not(udg_Hero_skill_6[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func033Func004C takes nothing returns booleanif(not(udg_Hero_skill_6[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func033Func005C takes nothing returns booleanif(not(udg_Hero_skill_6[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_3_Func033C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_3_Actions takes nothing returns nothingif(Trig_Kniga_3_Func001C())thenset udg_Skill_poluchen='AHad'else
endifif(Trig_Kniga_3_Func002C())thenset udg_Skill_poluchen='AHab'else
endifif(Trig_Kniga_3_Func003C())thenset udg_Skill_poluchen='AOae'else
endifif(Trig_Kniga_3_Func004C())thenset udg_Skill_poluchen='A02H'else
endifif(Trig_Kniga_3_Func005C())thenset udg_Skill_poluchen='AEah'else
endifif(Trig_Kniga_3_Func006C())thenset udg_Skill_poluchen='AEar'else
endifif(Trig_Kniga_3_Func007C())thenset udg_Skill_poluchen='A080'else
endifif(Trig_Kniga_3_Func008C())thenset udg_Skill_poluchen='A081'else
endifif(Trig_Kniga_3_Func009C())thenset udg_Skill_poluchen='AOr2'else
endifif(Trig_Kniga_3_Func010C())thenset udg_Skill_poluchen='A082'else
endifif(Trig_Kniga_3_Func011C())thenset udg_Skill_poluchen='A083'else
endifcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))if(Trig_Kniga_3_Func017C())thenif(Trig_Kniga_3_Func017Func006C())thenset udg_Hero_skill_1[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_3_Func017Func006Func001C())thenset udg_Hero_skill_1[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_3_Func017Func006Func001Func001C())then
set udg_Hero_skill_1[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_3_Func017Func006Func001Func001Func001C())thenset udg_Hero_skill_1[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_3_Func017Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_1[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_3_Func018C())thenif(Trig_Kniga_3_Func018Func001C())thenset udg_Hero_skill_lvl_1[1]=(udg_Hero_skill_lvl_1[1]+1)returnelse
endifif(Trig_Kniga_3_Func018Func002C())thenset udg_Hero_skill_lvl_1[2]=(udg_Hero_skill_lvl_1[2]+1)returnelse
endifif(Trig_Kniga_3_Func018Func003C())thenset udg_Hero_skill_lvl_1[3]=(udg_Hero_skill_lvl_1[3]+1)returnelse
endifif(Trig_Kniga_3_Func018Func004C())thenset udg_Hero_skill_lvl_1[4]=(udg_Hero_skill_lvl_1[4]+1)returnelse
endifif(Trig_Kniga_3_Func018Func005C())thenset udg_Hero_skill_lvl_1[5]=(udg_Hero_skill_lvl_1[5]+1)returnelse
endifelse
endifif(Trig_Kniga_3_Func020C())thenif(Trig_Kniga_3_Func020Func001C())thenset udg_Hero_skill_2[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_3_Func020Func001Func001C())thenset udg_Hero_skill_2[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_3_Func020Func001Func001Func001C())then
set udg_Hero_skill_2[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_3_Func020Func001Func001Func001Func001C())thenset udg_Hero_skill_2[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_3_Func020Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_2[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_3_Func021C())thenif(Trig_Kniga_3_Func021Func001C())thenset udg_Hero_skill_lvl_2[1]=(udg_Hero_skill_lvl_2[1]+1)returnelse
endifif(Trig_Kniga_3_Func021Func002C())thenset udg_Hero_skill_lvl_2[2]=(udg_Hero_skill_lvl_2[2]+1)returnelse
endifif(Trig_Kniga_3_Func021Func003C())thenset udg_Hero_skill_lvl_2[3]=(udg_Hero_skill_lvl_2[3]+1)returnelse
endifif(Trig_Kniga_3_Func021Func004C())thenset udg_Hero_skill_lvl_2[4]=(udg_Hero_skill_lvl_2[4]+1)returnelse
endifif(Trig_Kniga_3_Func021Func005C())thenset udg_Hero_skill_lvl_2[5]=(udg_Hero_skill_lvl_2[5]+1)returnelse
endifelse
endifif(Trig_Kniga_3_Func023C())thenif(Trig_Kniga_3_Func023Func001C())thenset udg_Hero_skill_3[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_3_Func023Func001Func001C())thenset udg_Hero_skill_3[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_3_Func023Func001Func001Func001C())then
set udg_Hero_skill_3[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_3_Func023Func001Func001Func001Func001C())thenset udg_Hero_skill_3[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_3_Func023Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_3[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_3_Func024C())thenif(Trig_Kniga_3_Func024Func001C())thenset udg_Hero_skill_lvl_3[1]=(udg_Hero_skill_lvl_3[1]+1)returnelse
endifif(Trig_Kniga_3_Func024Func002C())thenset udg_Hero_skill_lvl_3[2]=(udg_Hero_skill_lvl_3[2]+1)returnelse
endifif(Trig_Kniga_3_Func024Func003C())thenset udg_Hero_skill_lvl_3[3]=(udg_Hero_skill_lvl_3[3]+1)returnelse
endifif(Trig_Kniga_3_Func024Func004C())thenset udg_Hero_skill_lvl_3[4]=(udg_Hero_skill_lvl_3[4]+1)returnelse
endifif(Trig_Kniga_3_Func024Func005C())thenset udg_Hero_skill_lvl_3[5]=(udg_Hero_skill_lvl_3[5]+1)returnelse
endifelse
endifif(Trig_Kniga_3_Func026C())thenif(Trig_Kniga_3_Func026Func006C())thenset udg_Hero_skill_4[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_3_Func026Func006Func001C())thenset udg_Hero_skill_4[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_3_Func026Func006Func001Func001C())then
set udg_Hero_skill_4[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_3_Func026Func006Func001Func001Func001C())thenset udg_Hero_skill_4[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_3_Func026Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_4[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_3_Func027C())thenif(Trig_Kniga_3_Func027Func001C())thenset udg_Hero_skill_lvl_4[1]=(udg_Hero_skill_lvl_4[1]+1)returnelse
endifif(Trig_Kniga_3_Func027Func002C())thenset udg_Hero_skill_lvl_4[2]=(udg_Hero_skill_lvl_4[2]+1)returnelse
endifif(Trig_Kniga_3_Func027Func003C())thenset udg_Hero_skill_lvl_4[3]=(udg_Hero_skill_lvl_4[3]+1)returnelse
endifif(Trig_Kniga_3_Func027Func004C())thenset udg_Hero_skill_lvl_4[4]=(udg_Hero_skill_lvl_4[4]+1)returnelse
endifif(Trig_Kniga_3_Func027Func005C())thenset udg_Hero_skill_lvl_4[5]=(udg_Hero_skill_lvl_4[5]+1)returnelse
endifelse
endifif(Trig_Kniga_3_Func029C())thenif(Trig_Kniga_3_Func029Func006C())thenset udg_Hero_skill_5[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_3_Func029Func006Func001C())thenset udg_Hero_skill_5[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_3_Func029Func006Func001Func001C())then
set udg_Hero_skill_5[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_3_Func029Func006Func001Func001Func001C())thenset udg_Hero_skill_5[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_3_Func029Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_5[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_3_Func030C())thenif(Trig_Kniga_3_Func030Func001C())thenset udg_Hero_skill_lvl_5[1]=(udg_Hero_skill_lvl_5[1]+1)returnelse
endifif(Trig_Kniga_3_Func030Func002C())thenset udg_Hero_skill_lvl_5[2]=(udg_Hero_skill_lvl_5[2]+1)returnelse
endifif(Trig_Kniga_3_Func030Func003C())thenset udg_Hero_skill_lvl_5[3]=(udg_Hero_skill_lvl_5[3]+1)returnelse
endifif(Trig_Kniga_3_Func030Func004C())thenset udg_Hero_skill_lvl_5[4]=(udg_Hero_skill_lvl_5[4]+1)returnelse
endifif(Trig_Kniga_3_Func030Func005C())thenset udg_Hero_skill_lvl_5[5]=(udg_Hero_skill_lvl_5[5]+1)returnelse
endifelse
endifif(Trig_Kniga_3_Func032C())thenif(Trig_Kniga_3_Func032Func001C())thenset udg_Hero_skill_6[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_3_Func032Func001Func001C())thenset udg_Hero_skill_6[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_3_Func032Func001Func001Func001C())then
set udg_Hero_skill_6[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_3_Func032Func001Func001Func001Func001C())thenset udg_Hero_skill_6[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_3_Func032Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_6[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_3_Func033C())thenif(Trig_Kniga_3_Func033Func001C())thenset udg_Hero_skill_lvl_6[1]=(udg_Hero_skill_lvl_6[1]+1)returnelse
endifif(Trig_Kniga_3_Func033Func002C())thenset udg_Hero_skill_lvl_6[2]=(udg_Hero_skill_lvl_6[2]+1)returnelse
endifif(Trig_Kniga_3_Func033Func003C())thenset udg_Hero_skill_lvl_6[3]=(udg_Hero_skill_lvl_6[3]+1)returnelse
endifif(Trig_Kniga_3_Func033Func004C())thenset udg_Hero_skill_lvl_6[4]=(udg_Hero_skill_lvl_6[4]+1)returnelse
endifif(Trig_Kniga_3_Func033Func005C())thenset udg_Hero_skill_lvl_6[5]=(udg_Hero_skill_lvl_6[5]+1)returnelse
endifelse
endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")endfunctionfunction InitTrig_Kniga_3 takes nothing returns nothingset gg_trg_Kniga_3=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kniga_3,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Kniga_3,Condition(function Trig_Kniga_3_Conditions))
call TriggerAddAction(gg_trg_Kniga_3,function Trig_Kniga_3_Actions)endfunctionfunction Trig_Kniga_4_Func034C takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03K')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03L')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I001')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I002')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I003')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I005')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I075')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I076')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I077')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I078')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I079')==true))then
return trueendifreturn false
endfunctionfunction Trig_Kniga_4_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ncop'))then
return false
endifif(not Trig_Kniga_4_Func034C())thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03K')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03L')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I001')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func004C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I002')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func005C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I003')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func006C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I005')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func007C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I075')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func008C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I076')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func009C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I077')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func010C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I078')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func011C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I079')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func016Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func016Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_1[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func016Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func016Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func016Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func016C takes nothing returns boolean
if(not(udg_Hero_skill_1[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func017Func001C takes nothing returns booleanif(not(udg_Hero_skill_1[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func017Func002C takes nothing returns booleanif(not(udg_Hero_skill_1[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func017Func003C takes nothing returns booleanif(not(udg_Hero_skill_1[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func017Func004C takes nothing returns booleanif(not(udg_Hero_skill_1[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func017Func005C takes nothing returns booleanif(not(udg_Hero_skill_1[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func017C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func019Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func019Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_2[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func019Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func019Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func019Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func019C takes nothing returns boolean
if(not(udg_Hero_skill_2[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func020Func001C takes nothing returns booleanif(not(udg_Hero_skill_2[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func020Func002C takes nothing returns booleanif(not(udg_Hero_skill_2[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func020Func003C takes nothing returns booleanif(not(udg_Hero_skill_2[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func020Func004C takes nothing returns booleanif(not(udg_Hero_skill_2[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func020Func005C takes nothing returns booleanif(not(udg_Hero_skill_2[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func020C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func022Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func022Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_3[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func022Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func022Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func022Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func022C takes nothing returns boolean
if(not(udg_Hero_skill_3[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func023Func001C takes nothing returns booleanif(not(udg_Hero_skill_3[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func023Func002C takes nothing returns booleanif(not(udg_Hero_skill_3[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func023Func003C takes nothing returns booleanif(not(udg_Hero_skill_3[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func023Func004C takes nothing returns booleanif(not(udg_Hero_skill_3[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func023Func005C takes nothing returns booleanif(not(udg_Hero_skill_3[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func023C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func025Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func025Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_4[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func025Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func025Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func025Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func025C takes nothing returns boolean
if(not(udg_Hero_skill_4[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func026Func001C takes nothing returns booleanif(not(udg_Hero_skill_4[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func026Func002C takes nothing returns booleanif(not(udg_Hero_skill_4[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func026Func003C takes nothing returns booleanif(not(udg_Hero_skill_4[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func026Func004C takes nothing returns booleanif(not(udg_Hero_skill_4[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func026Func005C takes nothing returns booleanif(not(udg_Hero_skill_4[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func026C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func028Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func028Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_5[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func028Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func028Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func028Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func028C takes nothing returns boolean
if(not(udg_Hero_skill_5[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func029Func001C takes nothing returns booleanif(not(udg_Hero_skill_5[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func029Func002C takes nothing returns booleanif(not(udg_Hero_skill_5[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func029Func003C takes nothing returns booleanif(not(udg_Hero_skill_5[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func029Func004C takes nothing returns booleanif(not(udg_Hero_skill_5[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func029Func005C takes nothing returns booleanif(not(udg_Hero_skill_5[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func029C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func031Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func031Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_6[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func031Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func031Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func031Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func031C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifif(not(udg_Hero_skill_6[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[5]!=udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func032Func001C takes nothing returns booleanif(not(udg_Hero_skill_6[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func032Func002C takes nothing returns booleanif(not(udg_Hero_skill_6[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func032Func003C takes nothing returns booleanif(not(udg_Hero_skill_6[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func032Func004C takes nothing returns booleanif(not(udg_Hero_skill_6[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func032Func005C takes nothing returns booleanif(not(udg_Hero_skill_6[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_4_Func032C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_4_Actions takes nothing returns nothingif(Trig_Kniga_4_Func001C())thenset udg_Skill_poluchen='AOcr'else
endifif(Trig_Kniga_4_Func002C())thenset udg_Skill_poluchen='ANca'else
endifif(Trig_Kniga_4_Func003C())thenset udg_Skill_poluchen='ANic'else
endifif(Trig_Kniga_4_Func004C())thenset udg_Skill_poluchen='A05G'else
endifif(Trig_Kniga_4_Func005C())thenset udg_Skill_poluchen='AHbh'else
endifif(Trig_Kniga_4_Func006C())thenset udg_Skill_poluchen='A05H'else
endifif(Trig_Kniga_4_Func007C())thenset udg_Skill_poluchen='A086'else
endifif(Trig_Kniga_4_Func008C())thenset udg_Skill_poluchen='A087'else
endifif(Trig_Kniga_4_Func009C())thenset udg_Skill_poluchen='A088'else
endifif(Trig_Kniga_4_Func010C())thenset udg_Skill_poluchen='A089'else
endifif(Trig_Kniga_4_Func011C())thenset udg_Skill_poluchen='A08A'else
endifcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))if(Trig_Kniga_4_Func016C())thenif(Trig_Kniga_4_Func016Func006C())thenset udg_Hero_skill_1[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_4_Func016Func006Func001C())thenset udg_Hero_skill_1[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_4_Func016Func006Func001Func001C())then
set udg_Hero_skill_1[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_4_Func016Func006Func001Func001Func001C())thenset udg_Hero_skill_1[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_4_Func016Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_1[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_4_Func017C())thenif(Trig_Kniga_4_Func017Func001C())thenset udg_Hero_skill_lvl_1[1]=(udg_Hero_skill_lvl_1[1]+1)returnelse
endifif(Trig_Kniga_4_Func017Func002C())thenset udg_Hero_skill_lvl_1[2]=(udg_Hero_skill_lvl_1[2]+1)returnelse
endifif(Trig_Kniga_4_Func017Func003C())thenset udg_Hero_skill_lvl_1[3]=(udg_Hero_skill_lvl_1[3]+1)returnelse
endifif(Trig_Kniga_4_Func017Func004C())thenset udg_Hero_skill_lvl_1[4]=(udg_Hero_skill_lvl_1[4]+1)returnelse
endifif(Trig_Kniga_4_Func017Func005C())thenset udg_Hero_skill_lvl_1[5]=(udg_Hero_skill_lvl_1[5]+1)returnelse
endifelse
endifif(Trig_Kniga_4_Func019C())thenif(Trig_Kniga_4_Func019Func001C())thenset udg_Hero_skill_2[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_4_Func019Func001Func001C())thenset udg_Hero_skill_2[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_4_Func019Func001Func001Func001C())then
set udg_Hero_skill_2[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_4_Func019Func001Func001Func001Func001C())thenset udg_Hero_skill_2[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_4_Func019Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_2[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_4_Func020C())thenif(Trig_Kniga_4_Func020Func001C())thenset udg_Hero_skill_lvl_2[1]=(udg_Hero_skill_lvl_2[1]+1)returnelse
endifif(Trig_Kniga_4_Func020Func002C())thenset udg_Hero_skill_lvl_2[2]=(udg_Hero_skill_lvl_2[2]+1)returnelse
endifif(Trig_Kniga_4_Func020Func003C())thenset udg_Hero_skill_lvl_2[3]=(udg_Hero_skill_lvl_2[3]+1)returnelse
endifif(Trig_Kniga_4_Func020Func004C())thenset udg_Hero_skill_lvl_2[4]=(udg_Hero_skill_lvl_2[4]+1)returnelse
endifif(Trig_Kniga_4_Func020Func005C())thenset udg_Hero_skill_lvl_2[5]=(udg_Hero_skill_lvl_2[5]+1)returnelse
endifelse
endifif(Trig_Kniga_4_Func022C())thenif(Trig_Kniga_4_Func022Func001C())thenset udg_Hero_skill_3[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_4_Func022Func001Func001C())thenset udg_Hero_skill_3[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_4_Func022Func001Func001Func001C())then
set udg_Hero_skill_3[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_4_Func022Func001Func001Func001Func001C())thenset udg_Hero_skill_3[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_4_Func022Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_3[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_4_Func023C())thenif(Trig_Kniga_4_Func023Func001C())thenset udg_Hero_skill_lvl_3[1]=(udg_Hero_skill_lvl_3[1]+1)returnelse
endifif(Trig_Kniga_4_Func023Func002C())thenset udg_Hero_skill_lvl_3[2]=(udg_Hero_skill_lvl_3[2]+1)returnelse
endifif(Trig_Kniga_4_Func023Func003C())thenset udg_Hero_skill_lvl_3[3]=(udg_Hero_skill_lvl_3[3]+1)returnelse
endifif(Trig_Kniga_4_Func023Func004C())thenset udg_Hero_skill_lvl_3[4]=(udg_Hero_skill_lvl_3[4]+1)returnelse
endifif(Trig_Kniga_4_Func023Func005C())thenset udg_Hero_skill_lvl_3[5]=(udg_Hero_skill_lvl_3[5]+1)returnelse
endifelse
endifif(Trig_Kniga_4_Func025C())thenif(Trig_Kniga_4_Func025Func006C())thenset udg_Hero_skill_4[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_4_Func025Func006Func001C())thenset udg_Hero_skill_4[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_4_Func025Func006Func001Func001C())then
set udg_Hero_skill_4[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_4_Func025Func006Func001Func001Func001C())thenset udg_Hero_skill_4[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_4_Func025Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_4[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_4_Func026C())thenif(Trig_Kniga_4_Func026Func001C())thenset udg_Hero_skill_lvl_4[1]=(udg_Hero_skill_lvl_4[1]+1)returnelse
endifif(Trig_Kniga_4_Func026Func002C())thenset udg_Hero_skill_lvl_4[2]=(udg_Hero_skill_lvl_4[2]+1)returnelse
endifif(Trig_Kniga_4_Func026Func003C())thenset udg_Hero_skill_lvl_4[3]=(udg_Hero_skill_lvl_4[3]+1)returnelse
endifif(Trig_Kniga_4_Func026Func004C())thenset udg_Hero_skill_lvl_4[4]=(udg_Hero_skill_lvl_4[4]+1)returnelse
endifif(Trig_Kniga_4_Func026Func005C())thenset udg_Hero_skill_lvl_4[5]=(udg_Hero_skill_lvl_4[5]+1)returnelse
endifelse
endifif(Trig_Kniga_4_Func028C())thenif(Trig_Kniga_4_Func028Func006C())thenset udg_Hero_skill_5[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_4_Func028Func006Func001C())thenset udg_Hero_skill_5[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_4_Func028Func006Func001Func001C())then
set udg_Hero_skill_5[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_4_Func028Func006Func001Func001Func001C())thenset udg_Hero_skill_5[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_4_Func028Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_5[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_4_Func029C())thenif(Trig_Kniga_4_Func029Func001C())thenset udg_Hero_skill_lvl_5[1]=(udg_Hero_skill_lvl_5[1]+1)returnelse
endifif(Trig_Kniga_4_Func029Func002C())thenset udg_Hero_skill_lvl_5[2]=(udg_Hero_skill_lvl_5[2]+1)returnelse
endifif(Trig_Kniga_4_Func029Func003C())thenset udg_Hero_skill_lvl_5[3]=(udg_Hero_skill_lvl_5[3]+1)returnelse
endifif(Trig_Kniga_4_Func029Func004C())thenset udg_Hero_skill_lvl_5[4]=(udg_Hero_skill_lvl_5[4]+1)returnelse
endifif(Trig_Kniga_4_Func029Func005C())thenset udg_Hero_skill_lvl_5[5]=(udg_Hero_skill_lvl_5[5]+1)returnelse
endifelse
endifif(Trig_Kniga_4_Func031C())thenif(Trig_Kniga_4_Func031Func001C())thenset udg_Hero_skill_6[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_4_Func031Func001Func001C())thenset udg_Hero_skill_6[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_4_Func031Func001Func001Func001C())then
set udg_Hero_skill_6[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_4_Func031Func001Func001Func001Func001C())thenset udg_Hero_skill_6[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_4_Func031Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_6[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_4_Func032C())thenif(Trig_Kniga_4_Func032Func001C())thenset udg_Hero_skill_lvl_6[1]=(udg_Hero_skill_lvl_6[1]+1)returnelse
endifif(Trig_Kniga_4_Func032Func002C())thenset udg_Hero_skill_lvl_6[2]=(udg_Hero_skill_lvl_6[2]+1)returnelse
endifif(Trig_Kniga_4_Func032Func003C())thenset udg_Hero_skill_lvl_6[3]=(udg_Hero_skill_lvl_6[3]+1)returnelse
endifif(Trig_Kniga_4_Func032Func004C())thenset udg_Hero_skill_lvl_6[4]=(udg_Hero_skill_lvl_6[4]+1)returnelse
endifif(Trig_Kniga_4_Func032Func005C())thenset udg_Hero_skill_lvl_6[5]=(udg_Hero_skill_lvl_6[5]+1)returnelse
endifelse
endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")endfunctionfunction InitTrig_Kniga_4 takes nothing returns nothingset gg_trg_Kniga_4=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kniga_4,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Kniga_4,Condition(function Trig_Kniga_4_Conditions))
call TriggerAddAction(gg_trg_Kniga_4,function Trig_Kniga_4_Actions)endfunctionfunction Trig_Ledinie_oskolky_active_Conditions takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped('A086',GetAttacker())>=1))then
return false
endifreturn trueendfunctionfunction Trig_Ledinie_oskolky_active_Func003C takes nothing returns booleanif(not(udg_Rabdom_Skill<=2))then
return false
endifreturn trueendfunctionfunction Trig_Ledinie_oskolky_active_Actions takes nothing returns nothingset udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Ledinie_oskolky_active_Func003C())thencall CreateNUnitsAtLoc(1,'u00A',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttacker()),bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A085',GetLastCreatedUnit(),GetUnitAbilityLevelSwapped('A086',GetAttacker()))call IssueImmediateOrder(GetLastCreatedUnit(),"fanofknives")
else
endifendfunctionfunction InitTrig_Ledinie_oskolky_active takes nothing returns nothingset gg_trg_Ledinie_oskolky_active=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ledinie_oskolky_active,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Ledinie_oskolky_active,Condition(function Trig_Ledinie_oskolky_active_Conditions))call TriggerAddAction(gg_trg_Ledinie_oskolky_active,function Trig_Ledinie_oskolky_active_Actions)endfunctionfunction Trig_Sila_bury_active_Conditions takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped('A087',GetAttacker())>=1))then
return false
endifreturn trueendfunctionfunction Trig_Sila_bury_active_Func003C takes nothing returns booleanif(not(udg_Rabdom_Skill<=1))then
return false
endifreturn trueendfunctionfunction Trig_Sila_bury_active_Actions takes nothing returns nothing
set udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Sila_bury_active_Func003C())then
call CreateNUnitsAtLoc(1,'u00C',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttacker()),bj_UNIT_FACING)
call UnitAddAbilityBJ('AOcl',GetLastCreatedUnit())call SetUnitAbilityLevelSwapped('AOcl',GetLastCreatedUnit(),GetUnitAbilityLevelSwapped('A087',GetAttacker()))call IssueTargetOrder(GetLastCreatedUnit(),"chainlightning",GetAttackedUnitBJ())
else
endifendfunctionfunction InitTrig_Sila_bury_active takes nothing returns nothing
set gg_trg_Sila_bury_active=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sila_bury_active,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sila_bury_active,Condition(function Trig_Sila_bury_active_Conditions))call TriggerAddAction(gg_trg_Sila_bury_active,function Trig_Sila_bury_active_Actions)endfunctionfunction Trig_Smertelniy_yad_active_Func001C takes nothing returns booleanif((UnitHasBuffBJ(GetAttackedUnitBJ(),'Bssd')==true))thenreturn trueendifif((UnitHasBuffBJ(GetAttackedUnitBJ(),'Bssd')==true))thenreturn trueendifif((UnitHasBuffBJ(GetAttackedUnitBJ(),'Bpsd')==true))thenreturn trueendifif((UnitHasBuffBJ(GetAttackedUnitBJ(),'Bpoi')==true))thenreturn trueendifif((UnitHasBuffBJ(GetAttackedUnitBJ(),'Bspo')==true))thenreturn trueendifif((UnitHasBuffBJ(GetAttackedUnitBJ(),'B019')==true))thenreturn trueendifif((UnitHasBuffBJ(GetAttackedUnitBJ(),'B006')==true))thenreturn trueendifif((UnitHasBuffBJ(GetAttackedUnitBJ(),'Bssi')==true))thenreturn trueendifif((UnitHasBuffBJ(GetAttackedUnitBJ(),'Bpsi')==true))thenreturn trueendifreturn false
endfunctionfunction Trig_Smertelniy_yad_active_Conditions takes nothing returns boolean
if(not Trig_Smertelniy_yad_active_Func001C())thenreturn false
endifif(not(GetUnitAbilityLevelSwapped('A088',GetAttacker())>=1))then
return false
endifreturn trueendfunctionfunction Trig_Smertelniy_yad_active_Func006C takes nothing returns booleanif(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())<=(12.00*I2R(GetUnitAbilityLevelSwapped('A088',GetAttacker())))))thenreturn false
endifreturn trueendfunctionfunction Trig_Smertelniy_yad_active_Actions takes nothing returns nothingcall TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Weapons\\ChimaeraAcidMissile\\ChimaeraAcidMissile.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(3.00*I2R(GetUnitAbilityLevelSwapped('A088',GetAttacker()))),ATTACK_TYPE_PIERCE,DAMAGE_TYPE_POISON)if(Trig_Smertelniy_yad_active_Func006C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),99999.00,ATTACK_TYPE_PIERCE,DAMAGE_TYPE_POISON)else
endifendfunctionfunction InitTrig_Smertelniy_yad_active takes nothing returns nothingset gg_trg_Smertelniy_yad_active=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Smertelniy_yad_active,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Smertelniy_yad_active,Condition(function Trig_Smertelniy_yad_active_Conditions))
call TriggerAddAction(gg_trg_Smertelniy_yad_active,function Trig_Smertelniy_yad_active_Actions)endfunctionfunction Trig_Lunnie_streli_active_Func006C takes nothing returns booleanif((GetTimeOfDay()>=18.00))thenreturn trueendifif((GetTimeOfDay()<=6.00))thenreturn trueendifreturn false
endfunctionfunction Trig_Lunnie_streli_active_Conditions takes nothing returns booleanif(not(IsUnitType(GetAttacker(),UNIT_TYPE_RANGED_ATTACKER)==true))thenreturn false
endifif(not(GetUnitAbilityLevelSwapped('A089',GetAttacker())>=1))then
return false
endifif(not Trig_Lunnie_streli_active_Func006C())then
return false
endifreturn trueendfunctionfunction Trig_Lunnie_streli_active_Actions takes nothing returns nothing
call TriggerRegisterUnitEvent(GetTriggeringTrigger(),GetAttackedUnitBJ(),EVENT_UNIT_DAMAGED)
call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetAttacker(),true))/ 25.00)*I2R(GetUnitAbilityLevelSwapped('A089',GetAttacker()))),ATTACK_TYPE_PIERCE,DAMAGE_TYPE_FORCE)endfunctionfunction InitTrig_Lunnie_streli_active takes nothing returns nothing
set gg_trg_Lunnie_streli_active=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Lunnie_streli_active,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Lunnie_streli_active,Condition(function Trig_Lunnie_streli_active_Conditions))call TriggerAddAction(gg_trg_Lunnie_streli_active,function Trig_Lunnie_streli_active_Actions)endfunctionfunction Trig_Osveshennoe_orugie_active_Conditions takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08A',GetAttacker())>=1))then
return false
endifreturn trueendfunctionfunction Trig_Osveshennoe_orugie_active_Func004C takes nothing returns booleanif(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_HERO)==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Osveshennoe_orugie_active_Actions takes nothing returns nothingcall TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Human\\HolyBolt\\HolyBoltSpecialArt.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_Osveshennoe_orugie_active_Func004C())thencall UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(10.00*I2R(GetUnitAbilityLevelSwapped('A08A',GetAttacker()))),ATTACK_TYPE_MAGIC,DAMAGE_TYPE_FIRE)else
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(2.50*I2R(GetUnitAbilityLevelSwapped('A08A',GetAttacker()))),ATTACK_TYPE_MAGIC,DAMAGE_TYPE_FIRE)endifendfunctionfunction InitTrig_Osveshennoe_orugie_active takes nothing returns nothingset gg_trg_Osveshennoe_orugie_active=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Osveshennoe_orugie_active,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Osveshennoe_orugie_active,Condition(function Trig_Osveshennoe_orugie_active_Conditions))
call TriggerAddAction(gg_trg_Osveshennoe_orugie_active,function Trig_Osveshennoe_orugie_active_Actions)endfunctionfunction Trig_Kniga_5_Func013C takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I061')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07A')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07B')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07D')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07E')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07F')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07G')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07H')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07I')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07J')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07K')==true))then
return trueendifreturn false
endfunctionfunction Trig_Kniga_5_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ncop'))then
return false
endifif(not Trig_Kniga_5_Func013C())thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I061')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func004C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func005C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07E')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func006C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07F')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func007C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07G')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func008C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07H')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func009C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07I')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func010C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07J')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func011C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07K')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func016Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func016Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_1[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func016Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func016Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func016Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func016C takes nothing returns boolean
if(not(udg_Hero_skill_1[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func017Func001C takes nothing returns booleanif(not(udg_Hero_skill_1[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func017Func002C takes nothing returns booleanif(not(udg_Hero_skill_1[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func017Func003C takes nothing returns booleanif(not(udg_Hero_skill_1[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func017Func004C takes nothing returns booleanif(not(udg_Hero_skill_1[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func017Func005C takes nothing returns booleanif(not(udg_Hero_skill_1[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func017C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func019Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func019Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_2[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func019Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func019Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func019Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func019C takes nothing returns boolean
if(not(udg_Hero_skill_2[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func020Func001C takes nothing returns booleanif(not(udg_Hero_skill_2[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func020Func002C takes nothing returns booleanif(not(udg_Hero_skill_2[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func020Func003C takes nothing returns booleanif(not(udg_Hero_skill_2[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func020Func004C takes nothing returns booleanif(not(udg_Hero_skill_2[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func020Func005C takes nothing returns booleanif(not(udg_Hero_skill_2[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func020C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func022Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func022Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_3[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func022Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func022Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func022Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func022C takes nothing returns boolean
if(not(udg_Hero_skill_3[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func023Func001C takes nothing returns booleanif(not(udg_Hero_skill_3[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func023Func002C takes nothing returns booleanif(not(udg_Hero_skill_3[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func023Func003C takes nothing returns booleanif(not(udg_Hero_skill_3[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func023Func004C takes nothing returns booleanif(not(udg_Hero_skill_3[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func023Func005C takes nothing returns booleanif(not(udg_Hero_skill_3[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func023C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func025Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func025Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_4[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func025Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func025Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func025Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func025C takes nothing returns boolean
if(not(udg_Hero_skill_4[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func026Func001C takes nothing returns booleanif(not(udg_Hero_skill_4[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func026Func002C takes nothing returns booleanif(not(udg_Hero_skill_4[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func026Func003C takes nothing returns booleanif(not(udg_Hero_skill_4[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func026Func004C takes nothing returns booleanif(not(udg_Hero_skill_4[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func026Func005C takes nothing returns booleanif(not(udg_Hero_skill_4[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func026C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func028Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func028Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_5[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func028Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func028Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func028Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func028C takes nothing returns boolean
if(not(udg_Hero_skill_5[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func029Func001C takes nothing returns booleanif(not(udg_Hero_skill_5[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func029Func002C takes nothing returns booleanif(not(udg_Hero_skill_5[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func029Func003C takes nothing returns booleanif(not(udg_Hero_skill_5[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func029Func004C takes nothing returns booleanif(not(udg_Hero_skill_5[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func029Func005C takes nothing returns booleanif(not(udg_Hero_skill_5[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func029C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func031Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func031Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_6[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func031Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func031Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func031Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func031C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifif(not(udg_Hero_skill_6[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[5]!=udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func032Func001C takes nothing returns booleanif(not(udg_Hero_skill_6[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func032Func002C takes nothing returns booleanif(not(udg_Hero_skill_6[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func032Func003C takes nothing returns booleanif(not(udg_Hero_skill_6[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func032Func004C takes nothing returns booleanif(not(udg_Hero_skill_6[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func032Func005C takes nothing returns booleanif(not(udg_Hero_skill_6[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_5_Func032C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_5_Actions takes nothing returns nothingif(Trig_Kniga_5_Func001C())thenset udg_Skill_poluchen='A06Y'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_5_Func002C())thenset udg_Skill_poluchen='AUts'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_5_Func003C())thenset udg_Skill_poluchen='A08B'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_5_Func004C())thenset udg_Skill_poluchen='A08C'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_5_Func005C())thenset udg_Skill_poluchen='A08D'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_5_Func006C())thenset udg_Skill_poluchen='A08F'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_5_Func007C())thenset udg_Skill_poluchen='ANdb'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_5_Func008C())thenset udg_Skill_poluchen='A08E'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_5_Func009C())thenset udg_Skill_poluchen='A08H'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_5_Func010C())thencall SetPlayerTechResearchedSwap('R00U',(GetPlayerTechCountSimple('R00U',GetOwningPlayer(GetTriggerUnit()))+1),GetOwningPlayer(GetTriggerUnit()))set udg_Skill_poluchen='A08I'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_5_Func011C())thenset udg_Skill_poluchen='A08J'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_5_Func016C())thenif(Trig_Kniga_5_Func016Func006C())thenset udg_Hero_skill_1[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_5_Func016Func006Func001C())thenset udg_Hero_skill_1[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_5_Func016Func006Func001Func001C())then
set udg_Hero_skill_1[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_5_Func016Func006Func001Func001Func001C())thenset udg_Hero_skill_1[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_5_Func016Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_1[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_5_Func017C())thenif(Trig_Kniga_5_Func017Func001C())thenset udg_Hero_skill_lvl_1[1]=(udg_Hero_skill_lvl_1[1]+1)returnelse
endifif(Trig_Kniga_5_Func017Func002C())thenset udg_Hero_skill_lvl_1[2]=(udg_Hero_skill_lvl_1[2]+1)returnelse
endifif(Trig_Kniga_5_Func017Func003C())thenset udg_Hero_skill_lvl_1[3]=(udg_Hero_skill_lvl_1[3]+1)returnelse
endifif(Trig_Kniga_5_Func017Func004C())thenset udg_Hero_skill_lvl_1[4]=(udg_Hero_skill_lvl_1[4]+1)returnelse
endifif(Trig_Kniga_5_Func017Func005C())thenset udg_Hero_skill_lvl_1[5]=(udg_Hero_skill_lvl_1[5]+1)returnelse
endifelse
endifif(Trig_Kniga_5_Func019C())thenif(Trig_Kniga_5_Func019Func001C())thenset udg_Hero_skill_2[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_5_Func019Func001Func001C())thenset udg_Hero_skill_2[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_5_Func019Func001Func001Func001C())then
set udg_Hero_skill_2[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_5_Func019Func001Func001Func001Func001C())thenset udg_Hero_skill_2[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_5_Func019Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_2[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_5_Func020C())thenif(Trig_Kniga_5_Func020Func001C())thenset udg_Hero_skill_lvl_2[1]=(udg_Hero_skill_lvl_2[1]+1)returnelse
endifif(Trig_Kniga_5_Func020Func002C())thenset udg_Hero_skill_lvl_2[2]=(udg_Hero_skill_lvl_2[2]+1)returnelse
endifif(Trig_Kniga_5_Func020Func003C())thenset udg_Hero_skill_lvl_2[3]=(udg_Hero_skill_lvl_2[3]+1)returnelse
endifif(Trig_Kniga_5_Func020Func004C())thenset udg_Hero_skill_lvl_2[4]=(udg_Hero_skill_lvl_2[4]+1)returnelse
endifif(Trig_Kniga_5_Func020Func005C())thenset udg_Hero_skill_lvl_2[5]=(udg_Hero_skill_lvl_2[5]+1)returnelse
endifelse
endifif(Trig_Kniga_5_Func022C())thenif(Trig_Kniga_5_Func022Func001C())thenset udg_Hero_skill_3[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_5_Func022Func001Func001C())thenset udg_Hero_skill_3[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_5_Func022Func001Func001Func001C())then
set udg_Hero_skill_3[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_5_Func022Func001Func001Func001Func001C())thenset udg_Hero_skill_3[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_5_Func022Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_3[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_5_Func023C())thenif(Trig_Kniga_5_Func023Func001C())thenset udg_Hero_skill_lvl_3[1]=(udg_Hero_skill_lvl_3[1]+1)returnelse
endifif(Trig_Kniga_5_Func023Func002C())thenset udg_Hero_skill_lvl_3[2]=(udg_Hero_skill_lvl_3[2]+1)returnelse
endifif(Trig_Kniga_5_Func023Func003C())thenset udg_Hero_skill_lvl_3[3]=(udg_Hero_skill_lvl_3[3]+1)returnelse
endifif(Trig_Kniga_5_Func023Func004C())thenset udg_Hero_skill_lvl_3[4]=(udg_Hero_skill_lvl_3[4]+1)returnelse
endifif(Trig_Kniga_5_Func023Func005C())thenset udg_Hero_skill_lvl_3[5]=(udg_Hero_skill_lvl_3[5]+1)returnelse
endifelse
endifif(Trig_Kniga_5_Func025C())thenif(Trig_Kniga_5_Func025Func006C())thenset udg_Hero_skill_4[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_5_Func025Func006Func001C())thenset udg_Hero_skill_4[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_5_Func025Func006Func001Func001C())then
set udg_Hero_skill_4[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_5_Func025Func006Func001Func001Func001C())thenset udg_Hero_skill_4[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_5_Func025Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_4[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_5_Func026C())thenif(Trig_Kniga_5_Func026Func001C())thenset udg_Hero_skill_lvl_4[1]=(udg_Hero_skill_lvl_4[1]+1)returnelse
endifif(Trig_Kniga_5_Func026Func002C())thenset udg_Hero_skill_lvl_4[2]=(udg_Hero_skill_lvl_4[2]+1)returnelse
endifif(Trig_Kniga_5_Func026Func003C())thenset udg_Hero_skill_lvl_4[3]=(udg_Hero_skill_lvl_4[3]+1)returnelse
endifif(Trig_Kniga_5_Func026Func004C())thenset udg_Hero_skill_lvl_4[4]=(udg_Hero_skill_lvl_4[4]+1)returnelse
endifif(Trig_Kniga_5_Func026Func005C())thenset udg_Hero_skill_lvl_4[5]=(udg_Hero_skill_lvl_4[5]+1)returnelse
endifelse
endifif(Trig_Kniga_5_Func028C())thenif(Trig_Kniga_5_Func028Func006C())thenset udg_Hero_skill_5[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_5_Func028Func006Func001C())thenset udg_Hero_skill_5[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_5_Func028Func006Func001Func001C())then
set udg_Hero_skill_5[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_5_Func028Func006Func001Func001Func001C())thenset udg_Hero_skill_5[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_5_Func028Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_5[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_5_Func029C())thenif(Trig_Kniga_5_Func029Func001C())thenset udg_Hero_skill_lvl_5[1]=(udg_Hero_skill_lvl_5[1]+1)returnelse
endifif(Trig_Kniga_5_Func029Func002C())thenset udg_Hero_skill_lvl_5[2]=(udg_Hero_skill_lvl_5[2]+1)returnelse
endifif(Trig_Kniga_5_Func029Func003C())thenset udg_Hero_skill_lvl_5[3]=(udg_Hero_skill_lvl_5[3]+1)returnelse
endifif(Trig_Kniga_5_Func029Func004C())thenset udg_Hero_skill_lvl_5[4]=(udg_Hero_skill_lvl_5[4]+1)returnelse
endifif(Trig_Kniga_5_Func029Func005C())thenset udg_Hero_skill_lvl_5[5]=(udg_Hero_skill_lvl_5[5]+1)returnelse
endifelse
endifif(Trig_Kniga_5_Func031C())thenif(Trig_Kniga_5_Func031Func001C())thenset udg_Hero_skill_6[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_5_Func031Func001Func001C())thenset udg_Hero_skill_6[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_5_Func031Func001Func001Func001C())then
set udg_Hero_skill_6[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_5_Func031Func001Func001Func001Func001C())thenset udg_Hero_skill_6[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_5_Func031Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_6[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_5_Func032C())thenif(Trig_Kniga_5_Func032Func001C())thenset udg_Hero_skill_lvl_6[1]=(udg_Hero_skill_lvl_6[1]+1)returnelse
endifif(Trig_Kniga_5_Func032Func002C())thenset udg_Hero_skill_lvl_6[2]=(udg_Hero_skill_lvl_6[2]+1)returnelse
endifif(Trig_Kniga_5_Func032Func003C())thenset udg_Hero_skill_lvl_6[3]=(udg_Hero_skill_lvl_6[3]+1)returnelse
endifif(Trig_Kniga_5_Func032Func004C())thenset udg_Hero_skill_lvl_6[4]=(udg_Hero_skill_lvl_6[4]+1)returnelse
endifif(Trig_Kniga_5_Func032Func005C())thenset udg_Hero_skill_lvl_6[5]=(udg_Hero_skill_lvl_6[5]+1)returnelse
endifelse
endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")endfunctionfunction InitTrig_Kniga_5 takes nothing returns nothingset gg_trg_Kniga_5=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kniga_5,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Kniga_5,Condition(function Trig_Kniga_5_Conditions))
call TriggerAddAction(gg_trg_Kniga_5,function Trig_Kniga_5_Actions)endfunctionfunction Trig_Mentalnoe_vospolnenie_Conditions takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08E',GetAttackedUnitBJ())>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_Mentalnoe_vospolnenie_Actions takes nothing returns nothingcall SetUnitManaBJ(GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_MANA,GetAttackedUnitBJ())+(I2R(GetUnitAbilityLevelSwapped('A08E',GetAttackedUnitBJ()))*0.16)))call AddSpecialEffectTargetUnitBJ("overhead",GetAttackedUnitBJ(),"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
endfunctionfunction InitTrig_Mentalnoe_vospolnenie takes nothing returns nothingset gg_trg_Mentalnoe_vospolnenie=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Mentalnoe_vospolnenie,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Mentalnoe_vospolnenie,Condition(function Trig_Mentalnoe_vospolnenie_Conditions))
call TriggerAddAction(gg_trg_Mentalnoe_vospolnenie,function Trig_Mentalnoe_vospolnenie_Actions)endfunctionfunction Trig_Regeneraciya_Conditions takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped('A08H',GetAttackedUnitBJ())>=1))thenreturn false
endifif(not(GetUnitLifePercent(GetAttackedUnitBJ())<=30.00))thenreturn false
endifif(not(UnitHasBuffBJ(GetAttackedUnitBJ(),'B021')==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Regeneraciya_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'u00J',GetOwningPlayer(GetAttackedUnitBJ()),GetUnitLoc(GetAttackedUnitBJ()),bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A08G',GetLastCreatedUnit(),GetUnitAbilityLevelSwapped('A08H',GetAttackedUnitBJ()))call IssueTargetOrder(GetLastCreatedUnit(),"rejuvination",GetAttackedUnitBJ())endfunctionfunction InitTrig_Regeneraciya takes nothing returns nothing
set gg_trg_Regeneraciya=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Regeneraciya,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Regeneraciya,Condition(function Trig_Regeneraciya_Conditions))call TriggerAddAction(gg_trg_Regeneraciya,function Trig_Regeneraciya_Actions)endfunctionfunction Trig_Edinenie_s_prirodoy_Conditions takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped('A08I',GetAttackedUnitBJ())>=1))thenreturn false
endifif(not(GetUnitStateSwap(UNIT_STATE_MANA,GetAttackedUnitBJ())>=(I2R(GetUnitAbilityLevelSwapped('A08I',GetAttackedUnitBJ()))*10.00)))thenreturn false
endifreturn trueendfunctionfunction Trig_Edinenie_s_prirodoy_Func002C takes nothing returns boolean
if(not(udg_Rabdom_Skill<=2))then
return false
endifreturn trueendfunctionfunction Trig_Edinenie_s_prirodoy_Actions takes nothing returns nothingset udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Edinenie_s_prirodoy_Func002C())thencall SetUnitManaBJ(GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_MANA,GetAttackedUnitBJ())-(I2R(GetUnitAbilityLevelSwapped('A08I',GetAttackedUnitBJ()))*10.00)))call CreateNUnitsAtLoc(1,'u00D',GetOwningPlayer(GetAttackedUnitBJ()),GetUnitLoc(GetAttackedUnitBJ()),bj_UNIT_FACING)
call UnitAddAbilityBJ('AEer',GetLastCreatedUnit())call SetUnitAbilityLevelSwapped('AEer',GetLastCreatedUnit(),GetUnitAbilityLevelSwapped('A08I',GetAttackedUnitBJ()))call IssueTargetOrder(GetLastCreatedUnit(),"entanglingroots",GetAttacker())call AddSpecialEffectTargetUnitBJ("Origin",GetAttackedUnitBJ(),"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
else
endifendfunctionfunction InitTrig_Edinenie_s_prirodoy takes nothing returns nothingset gg_trg_Edinenie_s_prirodoy=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Edinenie_s_prirodoy,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Edinenie_s_prirodoy,Condition(function Trig_Edinenie_s_prirodoy_Conditions))
call TriggerAddAction(gg_trg_Edinenie_s_prirodoy,function Trig_Edinenie_s_prirodoy_Actions)endfunctionfunction Trig_Shit_smerty_skill_Conditions takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08J',GetAttackedUnitBJ())>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_smerty_skill_Actions takes nothing returns nothingcall DestroyEffect(udg_Specefect[0])
call UnitDamageTargetBJ(GetAttackedUnitBJ(),GetAttacker(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetAttackedUnitBJ(),true))*(0.02*I2R(GetUnitAbilityLevelSwapped('A08J',GetAttackedUnitBJ())))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_DEATH)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttacker()),"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")set udg_Specefect[0]=GetLastCreatedEffectBJ()endfunctionfunction InitTrig_Shit_smerty_skill takes nothing returns nothingset gg_trg_Shit_smerty_skill=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Shit_smerty_skill,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Shit_smerty_skill,Condition(function Trig_Shit_smerty_skill_Conditions))
call TriggerAddAction(gg_trg_Shit_smerty_skill,function Trig_Shit_smerty_skill_Actions)endfunctionfunction Trig_Kniga_6_Func013C takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I068')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I069')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07L')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07M')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07N')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07O')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07P')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07Q')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07R')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07S')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07T')==true))then
return trueendifreturn false
endfunctionfunction Trig_Kniga_6_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ncop'))then
return false
endifif(not Trig_Kniga_6_Func013C())thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I068')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I069')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07L')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func004C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07M')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func005C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07N')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func006C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07O')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func007C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07P')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func008C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07Q')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func009C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07R')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func010C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07S')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func011C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07T')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func017Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func017Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_1[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func017Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func017Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func017Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func017C takes nothing returns boolean
if(not(udg_Hero_skill_1[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func018Func001C takes nothing returns booleanif(not(udg_Hero_skill_1[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func018Func002C takes nothing returns booleanif(not(udg_Hero_skill_1[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func018Func003C takes nothing returns booleanif(not(udg_Hero_skill_1[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func018Func004C takes nothing returns booleanif(not(udg_Hero_skill_1[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func018Func005C takes nothing returns booleanif(not(udg_Hero_skill_1[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func018C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func020Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func020Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_2[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func020Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func020Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func020Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func020C takes nothing returns boolean
if(not(udg_Hero_skill_2[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func021Func001C takes nothing returns booleanif(not(udg_Hero_skill_2[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func021Func002C takes nothing returns booleanif(not(udg_Hero_skill_2[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func021Func003C takes nothing returns booleanif(not(udg_Hero_skill_2[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func021Func004C takes nothing returns booleanif(not(udg_Hero_skill_2[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func021Func005C takes nothing returns booleanif(not(udg_Hero_skill_2[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func021C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func023Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func023Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_3[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func023Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func023Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func023Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func023C takes nothing returns boolean
if(not(udg_Hero_skill_3[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func024Func001C takes nothing returns booleanif(not(udg_Hero_skill_3[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func024Func002C takes nothing returns booleanif(not(udg_Hero_skill_3[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func024Func003C takes nothing returns booleanif(not(udg_Hero_skill_3[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func024Func004C takes nothing returns booleanif(not(udg_Hero_skill_3[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func024Func005C takes nothing returns booleanif(not(udg_Hero_skill_3[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func024C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func026Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func026Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_4[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func026Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func026Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func026Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func026C takes nothing returns boolean
if(not(udg_Hero_skill_4[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func027Func001C takes nothing returns booleanif(not(udg_Hero_skill_4[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func027Func002C takes nothing returns booleanif(not(udg_Hero_skill_4[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func027Func003C takes nothing returns booleanif(not(udg_Hero_skill_4[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func027Func004C takes nothing returns booleanif(not(udg_Hero_skill_4[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func027Func005C takes nothing returns booleanif(not(udg_Hero_skill_4[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func027C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func029Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func029Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_5[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func029Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func029Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func029Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func029C takes nothing returns boolean
if(not(udg_Hero_skill_5[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func030Func001C takes nothing returns booleanif(not(udg_Hero_skill_5[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func030Func002C takes nothing returns booleanif(not(udg_Hero_skill_5[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func030Func003C takes nothing returns booleanif(not(udg_Hero_skill_5[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func030Func004C takes nothing returns booleanif(not(udg_Hero_skill_5[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func030Func005C takes nothing returns booleanif(not(udg_Hero_skill_5[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func030C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func032Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func032Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_6[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func032Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func032Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func032Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func032C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifif(not(udg_Hero_skill_6[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[5]!=udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func033Func001C takes nothing returns booleanif(not(udg_Hero_skill_6[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func033Func002C takes nothing returns booleanif(not(udg_Hero_skill_6[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func033Func003C takes nothing returns booleanif(not(udg_Hero_skill_6[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func033Func004C takes nothing returns booleanif(not(udg_Hero_skill_6[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func033Func005C takes nothing returns booleanif(not(udg_Hero_skill_6[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_6_Func033C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_6_Actions takes nothing returns nothingif(Trig_Kniga_6_Func001C())thenset udg_Skill_poluchen='AUcb'else
endifif(Trig_Kniga_6_Func002C())thenset udg_Skill_poluchen='A07G'else
endifif(Trig_Kniga_6_Func003C())thenset udg_Skill_poluchen='A08K'else
endifif(Trig_Kniga_6_Func004C())thenset udg_Skill_poluchen='ANba'else
endifif(Trig_Kniga_6_Func005C())thenset udg_Skill_poluchen='A08L'else
endifif(Trig_Kniga_6_Func006C())thenset udg_Skill_poluchen='A08N'else
endifif(Trig_Kniga_6_Func007C())thenset udg_Skill_poluchen='ACs8'else
endifif(Trig_Kniga_6_Func008C())thenset udg_Skill_poluchen='A08Q'else
endifif(Trig_Kniga_6_Func009C())thenset udg_Skill_poluchen='ANdo'else
endifif(Trig_Kniga_6_Func010C())thenset udg_Skill_poluchen='A08T'call SetPlayerTechResearchedSwap('R00K',(GetPlayerTechCountSimple('R00K',GetOwningPlayer(GetTriggerUnit()))+1),GetOwningPlayer(GetTriggerUnit()))else
endifif(Trig_Kniga_6_Func011C())thenset udg_Skill_poluchen='A08V'call SetPlayerTechResearchedSwap('R00L',(GetPlayerTechCountSimple('R00L',GetOwningPlayer(GetTriggerUnit()))+1),GetOwningPlayer(GetTriggerUnit()))else
endifcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))if(Trig_Kniga_6_Func017C())thenif(Trig_Kniga_6_Func017Func006C())thenset udg_Hero_skill_1[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_6_Func017Func006Func001C())thenset udg_Hero_skill_1[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_6_Func017Func006Func001Func001C())then
set udg_Hero_skill_1[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_6_Func017Func006Func001Func001Func001C())thenset udg_Hero_skill_1[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_6_Func017Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_1[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_6_Func018C())thenif(Trig_Kniga_6_Func018Func001C())thenset udg_Hero_skill_lvl_1[1]=(udg_Hero_skill_lvl_1[1]+1)returnelse
endifif(Trig_Kniga_6_Func018Func002C())thenset udg_Hero_skill_lvl_1[2]=(udg_Hero_skill_lvl_1[2]+1)returnelse
endifif(Trig_Kniga_6_Func018Func003C())thenset udg_Hero_skill_lvl_1[3]=(udg_Hero_skill_lvl_1[3]+1)returnelse
endifif(Trig_Kniga_6_Func018Func004C())thenset udg_Hero_skill_lvl_1[4]=(udg_Hero_skill_lvl_1[4]+1)returnelse
endifif(Trig_Kniga_6_Func018Func005C())thenset udg_Hero_skill_lvl_1[5]=(udg_Hero_skill_lvl_1[5]+1)returnelse
endifelse
endifif(Trig_Kniga_6_Func020C())thenif(Trig_Kniga_6_Func020Func001C())thenset udg_Hero_skill_2[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_6_Func020Func001Func001C())thenset udg_Hero_skill_2[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_6_Func020Func001Func001Func001C())then
set udg_Hero_skill_2[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_6_Func020Func001Func001Func001Func001C())thenset udg_Hero_skill_2[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_6_Func020Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_2[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_6_Func021C())thenif(Trig_Kniga_6_Func021Func001C())thenset udg_Hero_skill_lvl_2[1]=(udg_Hero_skill_lvl_2[1]+1)returnelse
endifif(Trig_Kniga_6_Func021Func002C())thenset udg_Hero_skill_lvl_2[2]=(udg_Hero_skill_lvl_2[2]+1)returnelse
endifif(Trig_Kniga_6_Func021Func003C())thenset udg_Hero_skill_lvl_2[3]=(udg_Hero_skill_lvl_2[3]+1)returnelse
endifif(Trig_Kniga_6_Func021Func004C())thenset udg_Hero_skill_lvl_2[4]=(udg_Hero_skill_lvl_2[4]+1)returnelse
endifif(Trig_Kniga_6_Func021Func005C())thenset udg_Hero_skill_lvl_2[5]=(udg_Hero_skill_lvl_2[5]+1)returnelse
endifelse
endifif(Trig_Kniga_6_Func023C())thenif(Trig_Kniga_6_Func023Func001C())thenset udg_Hero_skill_3[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_6_Func023Func001Func001C())thenset udg_Hero_skill_3[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_6_Func023Func001Func001Func001C())then
set udg_Hero_skill_3[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_6_Func023Func001Func001Func001Func001C())thenset udg_Hero_skill_3[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_6_Func023Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_3[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_6_Func024C())thenif(Trig_Kniga_6_Func024Func001C())thenset udg_Hero_skill_lvl_3[1]=(udg_Hero_skill_lvl_3[1]+1)returnelse
endifif(Trig_Kniga_6_Func024Func002C())thenset udg_Hero_skill_lvl_3[2]=(udg_Hero_skill_lvl_3[2]+1)returnelse
endifif(Trig_Kniga_6_Func024Func003C())thenset udg_Hero_skill_lvl_3[3]=(udg_Hero_skill_lvl_3[3]+1)returnelse
endifif(Trig_Kniga_6_Func024Func004C())thenset udg_Hero_skill_lvl_3[4]=(udg_Hero_skill_lvl_3[4]+1)returnelse
endifif(Trig_Kniga_6_Func024Func005C())thenset udg_Hero_skill_lvl_3[5]=(udg_Hero_skill_lvl_3[5]+1)returnelse
endifelse
endifif(Trig_Kniga_6_Func026C())thenif(Trig_Kniga_6_Func026Func006C())thenset udg_Hero_skill_4[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_6_Func026Func006Func001C())thenset udg_Hero_skill_4[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_6_Func026Func006Func001Func001C())then
set udg_Hero_skill_4[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_6_Func026Func006Func001Func001Func001C())thenset udg_Hero_skill_4[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_6_Func026Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_4[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_6_Func027C())thenif(Trig_Kniga_6_Func027Func001C())thenset udg_Hero_skill_lvl_4[1]=(udg_Hero_skill_lvl_4[1]+1)returnelse
endifif(Trig_Kniga_6_Func027Func002C())thenset udg_Hero_skill_lvl_4[2]=(udg_Hero_skill_lvl_4[2]+1)returnelse
endifif(Trig_Kniga_6_Func027Func003C())thenset udg_Hero_skill_lvl_4[3]=(udg_Hero_skill_lvl_4[3]+1)returnelse
endifif(Trig_Kniga_6_Func027Func004C())thenset udg_Hero_skill_lvl_4[4]=(udg_Hero_skill_lvl_4[4]+1)returnelse
endifif(Trig_Kniga_6_Func027Func005C())thenset udg_Hero_skill_lvl_4[5]=(udg_Hero_skill_lvl_4[5]+1)returnelse
endifelse
endifif(Trig_Kniga_6_Func029C())thenif(Trig_Kniga_6_Func029Func006C())thenset udg_Hero_skill_5[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_6_Func029Func006Func001C())thenset udg_Hero_skill_5[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_6_Func029Func006Func001Func001C())then
set udg_Hero_skill_5[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_6_Func029Func006Func001Func001Func001C())thenset udg_Hero_skill_5[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_6_Func029Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_5[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_6_Func030C())thenif(Trig_Kniga_6_Func030Func001C())thenset udg_Hero_skill_lvl_5[1]=(udg_Hero_skill_lvl_5[1]+1)returnelse
endifif(Trig_Kniga_6_Func030Func002C())thenset udg_Hero_skill_lvl_5[2]=(udg_Hero_skill_lvl_5[2]+1)returnelse
endifif(Trig_Kniga_6_Func030Func003C())thenset udg_Hero_skill_lvl_5[3]=(udg_Hero_skill_lvl_5[3]+1)returnelse
endifif(Trig_Kniga_6_Func030Func004C())thenset udg_Hero_skill_lvl_5[4]=(udg_Hero_skill_lvl_5[4]+1)returnelse
endifif(Trig_Kniga_6_Func030Func005C())thenset udg_Hero_skill_lvl_5[5]=(udg_Hero_skill_lvl_5[5]+1)returnelse
endifelse
endifif(Trig_Kniga_6_Func032C())thenif(Trig_Kniga_6_Func032Func001C())thenset udg_Hero_skill_6[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_6_Func032Func001Func001C())thenset udg_Hero_skill_6[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_6_Func032Func001Func001Func001C())then
set udg_Hero_skill_6[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_6_Func032Func001Func001Func001Func001C())thenset udg_Hero_skill_6[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_6_Func032Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_6[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_6_Func033C())thenif(Trig_Kniga_6_Func033Func001C())thenset udg_Hero_skill_lvl_6[1]=(udg_Hero_skill_lvl_6[1]+1)returnelse
endifif(Trig_Kniga_6_Func033Func002C())thenset udg_Hero_skill_lvl_6[2]=(udg_Hero_skill_lvl_6[2]+1)returnelse
endifif(Trig_Kniga_6_Func033Func003C())thenset udg_Hero_skill_lvl_6[3]=(udg_Hero_skill_lvl_6[3]+1)returnelse
endifif(Trig_Kniga_6_Func033Func004C())thenset udg_Hero_skill_lvl_6[4]=(udg_Hero_skill_lvl_6[4]+1)returnelse
endifif(Trig_Kniga_6_Func033Func005C())thenset udg_Hero_skill_lvl_6[5]=(udg_Hero_skill_lvl_6[5]+1)returnelse
endifelse
endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")endfunctionfunction InitTrig_Kniga_6 takes nothing returns nothingset gg_trg_Kniga_6=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kniga_6,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Kniga_6,Condition(function Trig_Kniga_6_Conditions))
call TriggerAddAction(gg_trg_Kniga_6,function Trig_Kniga_6_Actions)endfunctionfunction Trig_Trupoedu_Lvl_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='AUcb'))then
return false
endifreturn trueendfunctionfunction Trig_Trupoedu_Lvl_Actions takes nothing returns nothing
call SetPlayerTechResearchedSwap('R007',GetUnitAbilityLevelSwapped('AUcb',GetSpellAbilityUnit()),GetOwningPlayer(GetSpellAbilityUnit()))
endfunctionfunction InitTrig_Trupoedu_Lvl takes nothing returns nothing
set gg_trg_Trupoedu_Lvl=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Trupoedu_Lvl,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Trupoedu_Lvl,Condition(function Trig_Trupoedu_Lvl_Conditions))call TriggerAddAction(gg_trg_Trupoedu_Lvl,function Trig_Trupoedu_Lvl_Actions)endfunctionfunction Trig_Ogivit_mertvih_Lvl_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A07G'))then
return false
endifreturn trueendfunctionfunction Trig_Ogivit_mertvih_Lvl_Actions takes nothing returns nothingcall SetPlayerTechResearchedSwap('R009',GetUnitAbilityLevelSwapped('A07G',GetSpellAbilityUnit()),GetOwningPlayer(GetSpellAbilityUnit()))
endfunctionfunction InitTrig_Ogivit_mertvih_Lvl takes nothing returns nothingset gg_trg_Ogivit_mertvih_Lvl=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ogivit_mertvih_Lvl,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Ogivit_mertvih_Lvl,Condition(function Trig_Ogivit_mertvih_Lvl_Conditions))call TriggerAddAction(gg_trg_Ogivit_mertvih_Lvl,function Trig_Ogivit_mertvih_Lvl_Actions)endfunctionfunction Trig_Parazit_Lvl_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A08K'))then
return false
endifreturn trueendfunctionfunction Trig_Parazit_Lvl_Actions takes nothing returns nothingcall SetPlayerTechResearchedSwap('R00E',GetUnitAbilityLevelSwapped('A08K',GetSpellAbilityUnit()),GetOwningPlayer(GetSpellAbilityUnit()))
endfunctionfunction InitTrig_Parazit_Lvl takes nothing returns nothingset gg_trg_Parazit_Lvl=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Parazit_Lvl,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Parazit_Lvl,Condition(function Trig_Parazit_Lvl_Conditions))
call TriggerAddAction(gg_trg_Parazit_Lvl,function Trig_Parazit_Lvl_Actions)endfunctionfunction Trig_Lik_tlena_Lvl_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='ANba'))then
return false
endifreturn trueendfunctionfunction Trig_Lik_tlena_Lvl_Actions takes nothing returns nothingcall SetPlayerTechResearchedSwap('R00A',GetUnitAbilityLevelSwapped('ANba',GetSpellAbilityUnit()),GetOwningPlayer(GetSpellAbilityUnit()))
endfunctionfunction InitTrig_Lik_tlena_Lvl takes nothing returns nothingset gg_trg_Lik_tlena_Lvl=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Lik_tlena_Lvl,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Lik_tlena_Lvl,Condition(function Trig_Lik_tlena_Lvl_Conditions))
call TriggerAddAction(gg_trg_Lik_tlena_Lvl,function Trig_Lik_tlena_Lvl_Actions)endfunctionfunction Trig_Zov_mertvih_Lvl_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A08L'))then
return false
endifreturn trueendfunctionfunction Trig_Zov_mertvih_Lvl_Actions takes nothing returns nothingcall SetPlayerTechResearchedSwap('R00F',GetUnitAbilityLevelSwapped('A08L',GetSpellAbilityUnit()),GetOwningPlayer(GetSpellAbilityUnit()))
endfunctionfunction InitTrig_Zov_mertvih_Lvl takes nothing returns nothingset gg_trg_Zov_mertvih_Lvl=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Zov_mertvih_Lvl,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Zov_mertvih_Lvl,Condition(function Trig_Zov_mertvih_Lvl_Conditions))
call TriggerAddAction(gg_trg_Zov_mertvih_Lvl,function Trig_Zov_mertvih_Lvl_Actions)endfunctionfunction Trig_Razritaya_mogila_Lvl_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A08N'))then
return false
endifreturn trueendfunctionfunction Trig_Razritaya_mogila_Lvl_Actions takes nothing returns nothing
call SetPlayerTechResearchedSwap('R00B',GetUnitAbilityLevelSwapped('A08N',GetSpellAbilityUnit()),GetOwningPlayer(GetSpellAbilityUnit()))
call SetPlayerTechResearchedSwap('R00G',GetUnitAbilityLevelSwapped('A08N',GetSpellAbilityUnit()),GetOwningPlayer(GetSpellAbilityUnit()))
endfunctionfunction InitTrig_Razritaya_mogila_Lvl takes nothing returns nothing
set gg_trg_Razritaya_mogila_Lvl=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Razritaya_mogila_Lvl,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Razritaya_mogila_Lvl,Condition(function Trig_Razritaya_mogila_Lvl_Conditions))call TriggerAddAction(gg_trg_Razritaya_mogila_Lvl,function Trig_Razritaya_mogila_Lvl_Actions)endfunctionfunction Trig_Adskaya_gonchaya_Lvl_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='ACs8'))then
return false
endifreturn trueendfunctionfunction Trig_Adskaya_gonchaya_Lvl_Actions takes nothing returns nothing
call SetPlayerTechResearchedSwap('R00H',GetUnitAbilityLevelSwapped('ACs8',GetSpellAbilityUnit()),GetOwningPlayer(GetSpellAbilityUnit()))
endfunctionfunction InitTrig_Adskaya_gonchaya_Lvl takes nothing returns nothing
set gg_trg_Adskaya_gonchaya_Lvl=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Adskaya_gonchaya_Lvl,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Adskaya_gonchaya_Lvl,Condition(function Trig_Adskaya_gonchaya_Lvl_Conditions))call TriggerAddAction(gg_trg_Adskaya_gonchaya_Lvl,function Trig_Adskaya_gonchaya_Lvl_Actions)endfunctionfunction Trig_Strag_preispodnii_Lvl_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08Q'))then
return false
endifreturn trueendfunctionfunction Trig_Strag_preispodnii_Lvl_Actions takes nothing returns nothingcall SetPlayerTechResearchedSwap('R00I',GetUnitAbilityLevelSwapped('A08Q',GetSpellAbilityUnit()),GetOwningPlayer(GetSpellAbilityUnit()))
endfunctionfunction InitTrig_Strag_preispodnii_Lvl takes nothing returns nothingset gg_trg_Strag_preispodnii_Lvl=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Strag_preispodnii_Lvl,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Strag_preispodnii_Lvl,Condition(function Trig_Strag_preispodnii_Lvl_Conditions))
call TriggerAddAction(gg_trg_Strag_preispodnii_Lvl,function Trig_Strag_preispodnii_Lvl_Actions)endfunctionfunction Trig_Pechat_preispodnii_Lvl_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='ANdo'))then
return false
endifreturn trueendfunctionfunction Trig_Pechat_preispodnii_Lvl_Actions takes nothing returns nothingcall SetPlayerTechResearchedSwap('R00J',GetUnitAbilityLevelSwapped('ANdo',GetSpellAbilityUnit()),GetOwningPlayer(GetSpellAbilityUnit()))
endfunctionfunction InitTrig_Pechat_preispodnii_Lvl takes nothing returns nothingset gg_trg_Pechat_preispodnii_Lvl=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Pechat_preispodnii_Lvl,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Pechat_preispodnii_Lvl,Condition(function Trig_Pechat_preispodnii_Lvl_Conditions))call TriggerAddAction(gg_trg_Pechat_preispodnii_Lvl,function Trig_Pechat_preispodnii_Lvl_Actions)endfunctionfunction Trig_Kniga_7_Func013C takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06E')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06F')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06G')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06O')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06H')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06J')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06I')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06K')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06L')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06M')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06N')==true))then
return trueendifreturn false
endfunctionfunction Trig_Kniga_7_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ncop'))then
return false
endifif(not Trig_Kniga_7_Func013C())thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06E')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06F')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06G')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func004C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06O')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func005C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06H')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func006C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06J')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func007C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06I')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func008C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06K')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func009C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06L')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func010C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06M')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func011C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06N')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func016Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func016Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_1[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func016Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func016Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func016Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func016C takes nothing returns boolean
if(not(udg_Hero_skill_1[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func017Func001C takes nothing returns booleanif(not(udg_Hero_skill_1[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func017Func002C takes nothing returns booleanif(not(udg_Hero_skill_1[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func017Func003C takes nothing returns booleanif(not(udg_Hero_skill_1[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func017Func004C takes nothing returns booleanif(not(udg_Hero_skill_1[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func017Func005C takes nothing returns booleanif(not(udg_Hero_skill_1[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func017C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func019Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func019Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_2[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func019Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func019Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func019Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func019C takes nothing returns boolean
if(not(udg_Hero_skill_2[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func020Func001C takes nothing returns booleanif(not(udg_Hero_skill_2[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func020Func002C takes nothing returns booleanif(not(udg_Hero_skill_2[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func020Func003C takes nothing returns booleanif(not(udg_Hero_skill_2[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func020Func004C takes nothing returns booleanif(not(udg_Hero_skill_2[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func020Func005C takes nothing returns booleanif(not(udg_Hero_skill_2[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func020C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func022Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func022Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_3[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func022Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func022Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func022Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func022C takes nothing returns boolean
if(not(udg_Hero_skill_3[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func023Func001C takes nothing returns booleanif(not(udg_Hero_skill_3[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func023Func002C takes nothing returns booleanif(not(udg_Hero_skill_3[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func023Func003C takes nothing returns booleanif(not(udg_Hero_skill_3[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func023Func004C takes nothing returns booleanif(not(udg_Hero_skill_3[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func023Func005C takes nothing returns booleanif(not(udg_Hero_skill_3[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func023C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func025Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func025Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_4[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func025Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func025Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func025Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func025C takes nothing returns boolean
if(not(udg_Hero_skill_4[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func026Func001C takes nothing returns booleanif(not(udg_Hero_skill_4[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func026Func002C takes nothing returns booleanif(not(udg_Hero_skill_4[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func026Func003C takes nothing returns booleanif(not(udg_Hero_skill_4[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func026Func004C takes nothing returns booleanif(not(udg_Hero_skill_4[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func026Func005C takes nothing returns booleanif(not(udg_Hero_skill_4[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func026C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func028Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func028Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_5[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func028Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func028Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func028Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func028C takes nothing returns boolean
if(not(udg_Hero_skill_5[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func029Func001C takes nothing returns booleanif(not(udg_Hero_skill_5[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func029Func002C takes nothing returns booleanif(not(udg_Hero_skill_5[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func029Func003C takes nothing returns booleanif(not(udg_Hero_skill_5[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func029Func004C takes nothing returns booleanif(not(udg_Hero_skill_5[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func029Func005C takes nothing returns booleanif(not(udg_Hero_skill_5[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func029C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func031Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func031Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_6[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func031Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func031Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func031Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func031C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifif(not(udg_Hero_skill_6[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[5]!=udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func032Func001C takes nothing returns booleanif(not(udg_Hero_skill_6[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func032Func002C takes nothing returns booleanif(not(udg_Hero_skill_6[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func032Func003C takes nothing returns booleanif(not(udg_Hero_skill_6[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func032Func004C takes nothing returns booleanif(not(udg_Hero_skill_6[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func032Func005C takes nothing returns booleanif(not(udg_Hero_skill_6[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_7_Func032C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_7_Actions takes nothing returns nothingif(Trig_Kniga_7_Func001C())thenset udg_Skill_poluchen='AOcl'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_7_Func002C())thenset udg_Skill_poluchen='ANmo'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_7_Func003C())thenset udg_Skill_poluchen='A02L'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_7_Func004C())thenset udg_Skill_poluchen='ANfl'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_7_Func005C())thenset udg_Skill_poluchen='AUdc'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_7_Func006C())thenset udg_Skill_poluchen='AUcs'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_7_Func007C())thenset udg_Skill_poluchen='AUim'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_7_Func008C())thenset udg_Skill_poluchen='A07Q'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_7_Func009C())thenset udg_Skill_poluchen='ANdr'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_7_Func010C())thenset udg_Skill_poluchen='AHdr'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_7_Func011C())thenset udg_Skill_poluchen='AHbn'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_7_Func016C())thenif(Trig_Kniga_7_Func016Func006C())thenset udg_Hero_skill_1[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_7_Func016Func006Func001C())thenset udg_Hero_skill_1[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_7_Func016Func006Func001Func001C())then
set udg_Hero_skill_1[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_7_Func016Func006Func001Func001Func001C())thenset udg_Hero_skill_1[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_7_Func016Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_1[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_7_Func017C())thenif(Trig_Kniga_7_Func017Func001C())thenset udg_Hero_skill_lvl_1[1]=(udg_Hero_skill_lvl_1[1]+1)returnelse
endifif(Trig_Kniga_7_Func017Func002C())thenset udg_Hero_skill_lvl_1[2]=(udg_Hero_skill_lvl_1[2]+1)returnelse
endifif(Trig_Kniga_7_Func017Func003C())thenset udg_Hero_skill_lvl_1[3]=(udg_Hero_skill_lvl_1[3]+1)returnelse
endifif(Trig_Kniga_7_Func017Func004C())thenset udg_Hero_skill_lvl_1[4]=(udg_Hero_skill_lvl_1[4]+1)returnelse
endifif(Trig_Kniga_7_Func017Func005C())thenset udg_Hero_skill_lvl_1[5]=(udg_Hero_skill_lvl_1[5]+1)returnelse
endifelse
endifif(Trig_Kniga_7_Func019C())thenif(Trig_Kniga_7_Func019Func001C())thenset udg_Hero_skill_2[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_7_Func019Func001Func001C())thenset udg_Hero_skill_2[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_7_Func019Func001Func001Func001C())then
set udg_Hero_skill_2[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_7_Func019Func001Func001Func001Func001C())thenset udg_Hero_skill_2[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_7_Func019Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_2[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_7_Func020C())thenif(Trig_Kniga_7_Func020Func001C())thenset udg_Hero_skill_lvl_2[1]=(udg_Hero_skill_lvl_2[1]+1)returnelse
endifif(Trig_Kniga_7_Func020Func002C())thenset udg_Hero_skill_lvl_2[2]=(udg_Hero_skill_lvl_2[2]+1)returnelse
endifif(Trig_Kniga_7_Func020Func003C())thenset udg_Hero_skill_lvl_2[3]=(udg_Hero_skill_lvl_2[3]+1)returnelse
endifif(Trig_Kniga_7_Func020Func004C())thenset udg_Hero_skill_lvl_2[4]=(udg_Hero_skill_lvl_2[4]+1)returnelse
endifif(Trig_Kniga_7_Func020Func005C())thenset udg_Hero_skill_lvl_2[5]=(udg_Hero_skill_lvl_2[5]+1)returnelse
endifelse
endifif(Trig_Kniga_7_Func022C())thenif(Trig_Kniga_7_Func022Func001C())thenset udg_Hero_skill_3[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_7_Func022Func001Func001C())thenset udg_Hero_skill_3[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_7_Func022Func001Func001Func001C())then
set udg_Hero_skill_3[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_7_Func022Func001Func001Func001Func001C())thenset udg_Hero_skill_3[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_7_Func022Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_3[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_7_Func023C())thenif(Trig_Kniga_7_Func023Func001C())thenset udg_Hero_skill_lvl_3[1]=(udg_Hero_skill_lvl_3[1]+1)returnelse
endifif(Trig_Kniga_7_Func023Func002C())thenset udg_Hero_skill_lvl_3[2]=(udg_Hero_skill_lvl_3[2]+1)returnelse
endifif(Trig_Kniga_7_Func023Func003C())thenset udg_Hero_skill_lvl_3[3]=(udg_Hero_skill_lvl_3[3]+1)returnelse
endifif(Trig_Kniga_7_Func023Func004C())thenset udg_Hero_skill_lvl_3[4]=(udg_Hero_skill_lvl_3[4]+1)returnelse
endifif(Trig_Kniga_7_Func023Func005C())thenset udg_Hero_skill_lvl_3[5]=(udg_Hero_skill_lvl_3[5]+1)returnelse
endifelse
endifif(Trig_Kniga_7_Func025C())thenif(Trig_Kniga_7_Func025Func006C())thenset udg_Hero_skill_4[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_7_Func025Func006Func001C())thenset udg_Hero_skill_4[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_7_Func025Func006Func001Func001C())then
set udg_Hero_skill_4[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_7_Func025Func006Func001Func001Func001C())thenset udg_Hero_skill_4[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_7_Func025Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_4[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_7_Func026C())thenif(Trig_Kniga_7_Func026Func001C())thenset udg_Hero_skill_lvl_4[1]=(udg_Hero_skill_lvl_4[1]+1)returnelse
endifif(Trig_Kniga_7_Func026Func002C())thenset udg_Hero_skill_lvl_4[2]=(udg_Hero_skill_lvl_4[2]+1)returnelse
endifif(Trig_Kniga_7_Func026Func003C())thenset udg_Hero_skill_lvl_4[3]=(udg_Hero_skill_lvl_4[3]+1)returnelse
endifif(Trig_Kniga_7_Func026Func004C())thenset udg_Hero_skill_lvl_4[4]=(udg_Hero_skill_lvl_4[4]+1)returnelse
endifif(Trig_Kniga_7_Func026Func005C())thenset udg_Hero_skill_lvl_4[5]=(udg_Hero_skill_lvl_4[5]+1)returnelse
endifelse
endifif(Trig_Kniga_7_Func028C())thenif(Trig_Kniga_7_Func028Func006C())thenset udg_Hero_skill_5[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_7_Func028Func006Func001C())thenset udg_Hero_skill_5[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_7_Func028Func006Func001Func001C())then
set udg_Hero_skill_5[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_7_Func028Func006Func001Func001Func001C())thenset udg_Hero_skill_5[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_7_Func028Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_5[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_7_Func029C())thenif(Trig_Kniga_7_Func029Func001C())thenset udg_Hero_skill_lvl_5[1]=(udg_Hero_skill_lvl_5[1]+1)returnelse
endifif(Trig_Kniga_7_Func029Func002C())thenset udg_Hero_skill_lvl_5[2]=(udg_Hero_skill_lvl_5[2]+1)returnelse
endifif(Trig_Kniga_7_Func029Func003C())thenset udg_Hero_skill_lvl_5[3]=(udg_Hero_skill_lvl_5[3]+1)returnelse
endifif(Trig_Kniga_7_Func029Func004C())thenset udg_Hero_skill_lvl_5[4]=(udg_Hero_skill_lvl_5[4]+1)returnelse
endifif(Trig_Kniga_7_Func029Func005C())thenset udg_Hero_skill_lvl_5[5]=(udg_Hero_skill_lvl_5[5]+1)returnelse
endifelse
endifif(Trig_Kniga_7_Func031C())thenif(Trig_Kniga_7_Func031Func001C())thenset udg_Hero_skill_6[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_7_Func031Func001Func001C())thenset udg_Hero_skill_6[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_7_Func031Func001Func001Func001C())then
set udg_Hero_skill_6[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_7_Func031Func001Func001Func001Func001C())thenset udg_Hero_skill_6[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_7_Func031Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_6[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_7_Func032C())thenif(Trig_Kniga_7_Func032Func001C())thenset udg_Hero_skill_lvl_6[1]=(udg_Hero_skill_lvl_6[1]+1)returnelse
endifif(Trig_Kniga_7_Func032Func002C())thenset udg_Hero_skill_lvl_6[2]=(udg_Hero_skill_lvl_6[2]+1)returnelse
endifif(Trig_Kniga_7_Func032Func003C())thenset udg_Hero_skill_lvl_6[3]=(udg_Hero_skill_lvl_6[3]+1)returnelse
endifif(Trig_Kniga_7_Func032Func004C())thenset udg_Hero_skill_lvl_6[4]=(udg_Hero_skill_lvl_6[4]+1)returnelse
endifif(Trig_Kniga_7_Func032Func005C())thenset udg_Hero_skill_lvl_6[5]=(udg_Hero_skill_lvl_6[5]+1)returnelse
endifelse
endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")endfunctionfunction InitTrig_Kniga_7 takes nothing returns nothingset gg_trg_Kniga_7=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kniga_7,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Kniga_7,Condition(function Trig_Kniga_7_Conditions))
call TriggerAddAction(gg_trg_Kniga_7,function Trig_Kniga_7_Actions)endfunctionfunction Trig_Gromovoy_molot_active_Conditions takes nothing returns boolean
if(not(IsUnitType(GetAttacker(),UNIT_TYPE_MELEE_ATTACKER)==true))thenreturn false
endifif(not(UnitHasBuffBJ(GetAttacker(),'B01R')==true))thenreturn false
endifif(not(UnitHasBuffBJ(GetAttackedUnitBJ(),'B01S')==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Gromovoy_molot_active_Actions takes nothing returns nothingcall CreateNUnitsAtLoc(1,'u00C',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttackedUnitBJ()),bj_UNIT_FACING)call SetUnitAbilityLevelSwapped('A02M',GetLastCreatedUnit(),GetUnitAbilityLevelSwapped('A02L',GetAttacker()))call IssueImmediateOrder(GetLastCreatedUnit(),"thunderclap")
endfunctionfunction InitTrig_Gromovoy_molot_active takes nothing returns nothingset gg_trg_Gromovoy_molot_active=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Gromovoy_molot_active,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Gromovoy_molot_active,Condition(function Trig_Gromovoy_molot_active_Conditions))
call TriggerAddAction(gg_trg_Gromovoy_molot_active,function Trig_Gromovoy_molot_active_Actions)endfunctionfunction Trig_Kniga_8_Func001C takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06P')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06Q')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06R')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06S')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06T')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06U')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06V')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06W')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06X')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06Y')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06Z')==true))then
return trueendifreturn false
endfunctionfunction Trig_Kniga_8_Conditions takes nothing returns booleanif(not Trig_Kniga_8_Func001C())thenreturn false
endifif(not(GetUnitTypeId(GetTriggerUnit())=='ncop'))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06P')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06Q')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func004C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06R')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func005C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06S')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func006C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06T')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func007C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06U')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func008C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06V')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func009C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06W')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func010C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06X')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func011C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06Y')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func012C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06Z')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func016Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func016Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_1[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func016Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func016Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func016Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func016C takes nothing returns boolean
if(not(udg_Hero_skill_1[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func017Func001C takes nothing returns booleanif(not(udg_Hero_skill_1[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func017Func002C takes nothing returns booleanif(not(udg_Hero_skill_1[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func017Func003C takes nothing returns booleanif(not(udg_Hero_skill_1[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func017Func004C takes nothing returns booleanif(not(udg_Hero_skill_1[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func017Func005C takes nothing returns booleanif(not(udg_Hero_skill_1[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func017C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func019Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func019Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_2[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func019Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func019Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func019Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func019C takes nothing returns boolean
if(not(udg_Hero_skill_2[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func020Func001C takes nothing returns booleanif(not(udg_Hero_skill_2[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func020Func002C takes nothing returns booleanif(not(udg_Hero_skill_2[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func020Func003C takes nothing returns booleanif(not(udg_Hero_skill_2[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func020Func004C takes nothing returns booleanif(not(udg_Hero_skill_2[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func020Func005C takes nothing returns booleanif(not(udg_Hero_skill_2[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func020C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func022Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func022Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_3[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func022Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func022Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func022Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func022C takes nothing returns boolean
if(not(udg_Hero_skill_3[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func023Func001C takes nothing returns booleanif(not(udg_Hero_skill_3[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func023Func002C takes nothing returns booleanif(not(udg_Hero_skill_3[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func023Func003C takes nothing returns booleanif(not(udg_Hero_skill_3[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func023Func004C takes nothing returns booleanif(not(udg_Hero_skill_3[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func023Func005C takes nothing returns booleanif(not(udg_Hero_skill_3[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func023C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func025Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func025Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_4[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func025Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func025Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func025Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func025C takes nothing returns boolean
if(not(udg_Hero_skill_4[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func026Func001C takes nothing returns booleanif(not(udg_Hero_skill_4[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func026Func002C takes nothing returns booleanif(not(udg_Hero_skill_4[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func026Func003C takes nothing returns booleanif(not(udg_Hero_skill_4[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func026Func004C takes nothing returns booleanif(not(udg_Hero_skill_4[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func026Func005C takes nothing returns booleanif(not(udg_Hero_skill_4[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func026C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func028Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func028Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_5[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func028Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func028Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func028Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func028C takes nothing returns boolean
if(not(udg_Hero_skill_5[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func029Func001C takes nothing returns booleanif(not(udg_Hero_skill_5[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func029Func002C takes nothing returns booleanif(not(udg_Hero_skill_5[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func029Func003C takes nothing returns booleanif(not(udg_Hero_skill_5[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func029Func004C takes nothing returns booleanif(not(udg_Hero_skill_5[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func029Func005C takes nothing returns booleanif(not(udg_Hero_skill_5[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func029C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func031Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func031Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_6[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func031Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func031Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func031Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func031C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifif(not(udg_Hero_skill_6[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[5]!=udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func032Func001C takes nothing returns booleanif(not(udg_Hero_skill_6[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func032Func002C takes nothing returns booleanif(not(udg_Hero_skill_6[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func032Func003C takes nothing returns booleanif(not(udg_Hero_skill_6[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func032Func004C takes nothing returns booleanif(not(udg_Hero_skill_6[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func032Func005C takes nothing returns booleanif(not(udg_Hero_skill_6[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_8_Func032C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_8_Actions takes nothing returns nothingif(Trig_Kniga_8_Func002C())thenset udg_Skill_poluchen='AOhw'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_8_Func003C())thenset udg_Skill_poluchen='AHhb'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_8_Func004C())thenset udg_Skill_poluchen='A07S'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_8_Func005C())thenset udg_Skill_poluchen='A07T'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_8_Func006C())thenset udg_Skill_poluchen='A07U'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_8_Func007C())thenset udg_Skill_poluchen='A07V'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_8_Func008C())thenset udg_Skill_poluchen='A07W'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_8_Func009C())thenset udg_Skill_poluchen='A07X'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_8_Func010C())thenset udg_Skill_poluchen='AEtq'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_8_Func011C())thenset udg_Skill_poluchen='A07Y'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_8_Func012C())thenset udg_Skill_poluchen='A07Z'call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Kniga_8_Func016C())thenif(Trig_Kniga_8_Func016Func006C())thenset udg_Hero_skill_1[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_8_Func016Func006Func001C())thenset udg_Hero_skill_1[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_8_Func016Func006Func001Func001C())then
set udg_Hero_skill_1[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_8_Func016Func006Func001Func001Func001C())thenset udg_Hero_skill_1[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_8_Func016Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_1[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_8_Func017C())thenif(Trig_Kniga_8_Func017Func001C())thenset udg_Hero_skill_lvl_1[1]=(udg_Hero_skill_lvl_1[1]+1)returnelse
endifif(Trig_Kniga_8_Func017Func002C())thenset udg_Hero_skill_lvl_1[2]=(udg_Hero_skill_lvl_1[2]+1)returnelse
endifif(Trig_Kniga_8_Func017Func003C())thenset udg_Hero_skill_lvl_1[3]=(udg_Hero_skill_lvl_1[3]+1)returnelse
endifif(Trig_Kniga_8_Func017Func004C())thenset udg_Hero_skill_lvl_1[4]=(udg_Hero_skill_lvl_1[4]+1)returnelse
endifif(Trig_Kniga_8_Func017Func005C())thenset udg_Hero_skill_lvl_1[5]=(udg_Hero_skill_lvl_1[5]+1)returnelse
endifelse
endifif(Trig_Kniga_8_Func019C())thenif(Trig_Kniga_8_Func019Func001C())thenset udg_Hero_skill_2[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_8_Func019Func001Func001C())thenset udg_Hero_skill_2[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_8_Func019Func001Func001Func001C())then
set udg_Hero_skill_2[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_8_Func019Func001Func001Func001Func001C())thenset udg_Hero_skill_2[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_8_Func019Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_2[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_8_Func020C())thenif(Trig_Kniga_8_Func020Func001C())thenset udg_Hero_skill_lvl_2[1]=(udg_Hero_skill_lvl_2[1]+1)returnelse
endifif(Trig_Kniga_8_Func020Func002C())thenset udg_Hero_skill_lvl_2[2]=(udg_Hero_skill_lvl_2[2]+1)returnelse
endifif(Trig_Kniga_8_Func020Func003C())thenset udg_Hero_skill_lvl_2[3]=(udg_Hero_skill_lvl_2[3]+1)returnelse
endifif(Trig_Kniga_8_Func020Func004C())thenset udg_Hero_skill_lvl_2[4]=(udg_Hero_skill_lvl_2[4]+1)returnelse
endifif(Trig_Kniga_8_Func020Func005C())thenset udg_Hero_skill_lvl_2[5]=(udg_Hero_skill_lvl_2[5]+1)returnelse
endifelse
endifif(Trig_Kniga_8_Func022C())thenif(Trig_Kniga_8_Func022Func001C())thenset udg_Hero_skill_3[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_8_Func022Func001Func001C())thenset udg_Hero_skill_3[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_8_Func022Func001Func001Func001C())then
set udg_Hero_skill_3[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_8_Func022Func001Func001Func001Func001C())thenset udg_Hero_skill_3[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_8_Func022Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_3[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_8_Func023C())thenif(Trig_Kniga_8_Func023Func001C())thenset udg_Hero_skill_lvl_3[1]=(udg_Hero_skill_lvl_3[1]+1)returnelse
endifif(Trig_Kniga_8_Func023Func002C())thenset udg_Hero_skill_lvl_3[2]=(udg_Hero_skill_lvl_3[2]+1)returnelse
endifif(Trig_Kniga_8_Func023Func003C())thenset udg_Hero_skill_lvl_3[3]=(udg_Hero_skill_lvl_3[3]+1)returnelse
endifif(Trig_Kniga_8_Func023Func004C())thenset udg_Hero_skill_lvl_3[4]=(udg_Hero_skill_lvl_3[4]+1)returnelse
endifif(Trig_Kniga_8_Func023Func005C())thenset udg_Hero_skill_lvl_3[5]=(udg_Hero_skill_lvl_3[5]+1)returnelse
endifelse
endifif(Trig_Kniga_8_Func025C())thenif(Trig_Kniga_8_Func025Func006C())thenset udg_Hero_skill_4[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_8_Func025Func006Func001C())thenset udg_Hero_skill_4[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_8_Func025Func006Func001Func001C())then
set udg_Hero_skill_4[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_8_Func025Func006Func001Func001Func001C())thenset udg_Hero_skill_4[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_8_Func025Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_4[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_8_Func026C())thenif(Trig_Kniga_8_Func026Func001C())thenset udg_Hero_skill_lvl_4[1]=(udg_Hero_skill_lvl_4[1]+1)returnelse
endifif(Trig_Kniga_8_Func026Func002C())thenset udg_Hero_skill_lvl_4[2]=(udg_Hero_skill_lvl_4[2]+1)returnelse
endifif(Trig_Kniga_8_Func026Func003C())thenset udg_Hero_skill_lvl_4[3]=(udg_Hero_skill_lvl_4[3]+1)returnelse
endifif(Trig_Kniga_8_Func026Func004C())thenset udg_Hero_skill_lvl_4[4]=(udg_Hero_skill_lvl_4[4]+1)returnelse
endifif(Trig_Kniga_8_Func026Func005C())thenset udg_Hero_skill_lvl_4[5]=(udg_Hero_skill_lvl_4[5]+1)returnelse
endifelse
endifif(Trig_Kniga_8_Func028C())thenif(Trig_Kniga_8_Func028Func006C())thenset udg_Hero_skill_5[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_8_Func028Func006Func001C())thenset udg_Hero_skill_5[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_8_Func028Func006Func001Func001C())then
set udg_Hero_skill_5[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_8_Func028Func006Func001Func001Func001C())thenset udg_Hero_skill_5[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_8_Func028Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_5[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_8_Func029C())thenif(Trig_Kniga_8_Func029Func001C())thenset udg_Hero_skill_lvl_5[1]=(udg_Hero_skill_lvl_5[1]+1)returnelse
endifif(Trig_Kniga_8_Func029Func002C())thenset udg_Hero_skill_lvl_5[2]=(udg_Hero_skill_lvl_5[2]+1)returnelse
endifif(Trig_Kniga_8_Func029Func003C())thenset udg_Hero_skill_lvl_5[3]=(udg_Hero_skill_lvl_5[3]+1)returnelse
endifif(Trig_Kniga_8_Func029Func004C())thenset udg_Hero_skill_lvl_5[4]=(udg_Hero_skill_lvl_5[4]+1)returnelse
endifif(Trig_Kniga_8_Func029Func005C())thenset udg_Hero_skill_lvl_5[5]=(udg_Hero_skill_lvl_5[5]+1)returnelse
endifelse
endifif(Trig_Kniga_8_Func031C())thenif(Trig_Kniga_8_Func031Func001C())thenset udg_Hero_skill_6[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_8_Func031Func001Func001C())thenset udg_Hero_skill_6[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_8_Func031Func001Func001Func001C())then
set udg_Hero_skill_6[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_8_Func031Func001Func001Func001Func001C())thenset udg_Hero_skill_6[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_8_Func031Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_6[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_8_Func032C())thenif(Trig_Kniga_8_Func032Func001C())thenset udg_Hero_skill_lvl_6[1]=(udg_Hero_skill_lvl_6[1]+1)returnelse
endifif(Trig_Kniga_8_Func032Func002C())thenset udg_Hero_skill_lvl_6[2]=(udg_Hero_skill_lvl_6[2]+1)returnelse
endifif(Trig_Kniga_8_Func032Func003C())thenset udg_Hero_skill_lvl_6[3]=(udg_Hero_skill_lvl_6[3]+1)returnelse
endifif(Trig_Kniga_8_Func032Func004C())thenset udg_Hero_skill_lvl_6[4]=(udg_Hero_skill_lvl_6[4]+1)returnelse
endifif(Trig_Kniga_8_Func032Func005C())thenset udg_Hero_skill_lvl_6[5]=(udg_Hero_skill_lvl_6[5]+1)returnelse
endifelse
endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")endfunctionfunction InitTrig_Kniga_8 takes nothing returns nothingset gg_trg_Kniga_8=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kniga_8,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Kniga_8,Condition(function Trig_Kniga_8_Conditions))
call TriggerAddAction(gg_trg_Kniga_8,function Trig_Kniga_8_Actions)endfunctionfunction Trig_Kniga_9_Func011C takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07U')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07W')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07X')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07Y')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07V')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07Z')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I080')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I081')==true))then
return trueendifif((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I082')==true))then
return trueendifreturn false
endfunctionfunction Trig_Kniga_9_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ncop'))then
return false
endifif(not Trig_Kniga_9_Func011C())thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07U')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07V')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07W')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func004C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07X')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func005C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07Y')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func006C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I07Z')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func007C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I080')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func008C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I081')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func009C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I082')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func015Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func015Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_1[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func015Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func015Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func015Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_1[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func015C takes nothing returns boolean
if(not(udg_Hero_skill_1[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_1[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func016Func001C takes nothing returns booleanif(not(udg_Hero_skill_1[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func016Func002C takes nothing returns booleanif(not(udg_Hero_skill_1[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func016Func003C takes nothing returns booleanif(not(udg_Hero_skill_1[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func016Func004C takes nothing returns booleanif(not(udg_Hero_skill_1[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func016Func005C takes nothing returns booleanif(not(udg_Hero_skill_1[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func016C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func018Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func018Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_2[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func018Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func018Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func018Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_2[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func018C takes nothing returns boolean
if(not(udg_Hero_skill_2[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_2[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func019Func001C takes nothing returns booleanif(not(udg_Hero_skill_2[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func019Func002C takes nothing returns booleanif(not(udg_Hero_skill_2[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func019Func003C takes nothing returns booleanif(not(udg_Hero_skill_2[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func019Func004C takes nothing returns booleanif(not(udg_Hero_skill_2[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func019Func005C takes nothing returns booleanif(not(udg_Hero_skill_2[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func019C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func021Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func021Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_3[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func021Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func021Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func021Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_3[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func021C takes nothing returns boolean
if(not(udg_Hero_skill_3[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_3[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func022Func001C takes nothing returns booleanif(not(udg_Hero_skill_3[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func022Func002C takes nothing returns booleanif(not(udg_Hero_skill_3[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func022Func003C takes nothing returns booleanif(not(udg_Hero_skill_3[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func022Func004C takes nothing returns booleanif(not(udg_Hero_skill_3[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func022Func005C takes nothing returns booleanif(not(udg_Hero_skill_3[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func022C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func024Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func024Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_4[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func024Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func024Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func024Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_4[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func024C takes nothing returns boolean
if(not(udg_Hero_skill_4[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_4[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func025Func001C takes nothing returns booleanif(not(udg_Hero_skill_4[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func025Func002C takes nothing returns booleanif(not(udg_Hero_skill_4[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func025Func003C takes nothing returns booleanif(not(udg_Hero_skill_4[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func025Func004C takes nothing returns booleanif(not(udg_Hero_skill_4[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func025Func005C takes nothing returns booleanif(not(udg_Hero_skill_4[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func025C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func027Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func027Func006Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_5[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func027Func006Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func027Func006Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func027Func006C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_5[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func027C takes nothing returns boolean
if(not(udg_Hero_skill_5[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_5[5]!=udg_Skill_poluchen))then
return false
endifif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func028Func001C takes nothing returns booleanif(not(udg_Hero_skill_5[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func028Func002C takes nothing returns booleanif(not(udg_Hero_skill_5[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func028Func003C takes nothing returns booleanif(not(udg_Hero_skill_5[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func028Func004C takes nothing returns booleanif(not(udg_Hero_skill_5[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func028Func005C takes nothing returns booleanif(not(udg_Hero_skill_5[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func028C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func030Func001Func001Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[5]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func030Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_Hero_skill_Boolean_6[4]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func030Func001Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[3]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func030Func001Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[2]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func030Func001C takes nothing returns booleanif(not(udg_Hero_skill_Boolean_6[1]==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func030C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifif(not(udg_Hero_skill_6[1]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[2]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[3]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[4]!=udg_Skill_poluchen))then
return false
endifif(not(udg_Hero_skill_6[5]!=udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func031Func001C takes nothing returns booleanif(not(udg_Hero_skill_6[1]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func031Func002C takes nothing returns booleanif(not(udg_Hero_skill_6[2]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func031Func003C takes nothing returns booleanif(not(udg_Hero_skill_6[3]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func031Func004C takes nothing returns booleanif(not(udg_Hero_skill_6[4]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func031Func005C takes nothing returns booleanif(not(udg_Hero_skill_6[5]==udg_Skill_poluchen))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_9_Func031C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_9_Actions takes nothing returns nothingif(Trig_Kniga_9_Func001C())thenset udg_Skill_poluchen='AOsf'call SetPlayerTechResearchedSwap('R00N',(GetPlayerTechCountSimple('R00N',GetOwningPlayer(GetTriggerUnit()))+1),GetOwningPlayer(GetTriggerUnit()))else
endifif(Trig_Kniga_9_Func002C())thenset udg_Skill_poluchen='AHwe'call SetPlayerTechResearchedSwap('R00O',(GetPlayerTechCountSimple('R00O',GetOwningPlayer(GetTriggerUnit()))+1),GetOwningPlayer(GetTriggerUnit()))else
endifif(Trig_Kniga_9_Func003C())thenset udg_Skill_poluchen='ANsg'call SetPlayerTechResearchedSwap('R00P',(GetPlayerTechCountSimple('R00P',GetOwningPlayer(GetTriggerUnit()))+1),GetOwningPlayer(GetTriggerUnit()))else
endifif(Trig_Kniga_9_Func004C())thenset udg_Skill_poluchen='ANsw'call SetPlayerTechResearchedSwap('R00Q',(GetPlayerTechCountSimple('R00Q',GetOwningPlayer(GetTriggerUnit()))+1),GetOwningPlayer(GetTriggerUnit()))else
endifif(Trig_Kniga_9_Func005C())thenset udg_Skill_poluchen='AOsw'call SetPlayerTechResearchedSwap('R00R',(GetPlayerTechCountSimple('R00R',GetOwningPlayer(GetTriggerUnit()))+1),GetOwningPlayer(GetTriggerUnit()))else
endifif(Trig_Kniga_9_Func006C())thenset udg_Skill_poluchen='ANlm'call SetPlayerTechResearchedSwap('R00S',(GetPlayerTechCountSimple('R00S',GetOwningPlayer(GetTriggerUnit()))+1),GetOwningPlayer(GetTriggerUnit()))else
endifif(Trig_Kniga_9_Func007C())thenset udg_Skill_poluchen='ANsq'call SetPlayerTechResearchedSwap('R00T',(GetPlayerTechCountSimple('R00T',GetOwningPlayer(GetTriggerUnit()))+1),GetOwningPlayer(GetTriggerUnit()))else
endifif(Trig_Kniga_9_Func008C())thenset udg_Skill_poluchen='A08Y'call SetPlayerTechResearchedSwap('R00V',(GetPlayerTechCountSimple('R00V',GetOwningPlayer(GetTriggerUnit()))+1),GetOwningPlayer(GetTriggerUnit()))else
endifif(Trig_Kniga_9_Func009C())thenset udg_Skill_poluchen='A08Z'call SetPlayerTechResearchedSwap('R00W',(GetPlayerTechCountSimple('R00W',GetOwningPlayer(GetTriggerUnit()))+1),GetOwningPlayer(GetTriggerUnit()))else
endifcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))if(Trig_Kniga_9_Func015C())thenif(Trig_Kniga_9_Func015Func006C())thenset udg_Hero_skill_1[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_9_Func015Func006Func001C())thenset udg_Hero_skill_1[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_9_Func015Func006Func001Func001C())then
set udg_Hero_skill_1[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_9_Func015Func006Func001Func001Func001C())thenset udg_Hero_skill_1[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
if(Trig_Kniga_9_Func015Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_1[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_1[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[1])returnelse
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_9_Func016C())thenif(Trig_Kniga_9_Func016Func001C())thenset udg_Hero_skill_lvl_1[1]=(udg_Hero_skill_lvl_1[1]+1)returnelse
endifif(Trig_Kniga_9_Func016Func002C())thenset udg_Hero_skill_lvl_1[2]=(udg_Hero_skill_lvl_1[2]+1)returnelse
endifif(Trig_Kniga_9_Func016Func003C())thenset udg_Hero_skill_lvl_1[3]=(udg_Hero_skill_lvl_1[3]+1)returnelse
endifif(Trig_Kniga_9_Func016Func004C())thenset udg_Hero_skill_lvl_1[4]=(udg_Hero_skill_lvl_1[4]+1)returnelse
endifif(Trig_Kniga_9_Func016Func005C())thenset udg_Hero_skill_lvl_1[5]=(udg_Hero_skill_lvl_1[5]+1)returnelse
endifelse
endifif(Trig_Kniga_9_Func018C())thenif(Trig_Kniga_9_Func018Func001C())thenset udg_Hero_skill_2[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_9_Func018Func001Func001C())thenset udg_Hero_skill_2[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_9_Func018Func001Func001Func001C())then
set udg_Hero_skill_2[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_9_Func018Func001Func001Func001Func001C())thenset udg_Hero_skill_2[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
if(Trig_Kniga_9_Func018Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_2[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_2[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[2])returnelse
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_9_Func019C())thenif(Trig_Kniga_9_Func019Func001C())thenset udg_Hero_skill_lvl_2[1]=(udg_Hero_skill_lvl_2[1]+1)returnelse
endifif(Trig_Kniga_9_Func019Func002C())thenset udg_Hero_skill_lvl_2[2]=(udg_Hero_skill_lvl_2[2]+1)returnelse
endifif(Trig_Kniga_9_Func019Func003C())thenset udg_Hero_skill_lvl_2[3]=(udg_Hero_skill_lvl_2[3]+1)returnelse
endifif(Trig_Kniga_9_Func019Func004C())thenset udg_Hero_skill_lvl_2[4]=(udg_Hero_skill_lvl_2[4]+1)returnelse
endifif(Trig_Kniga_9_Func019Func005C())thenset udg_Hero_skill_lvl_2[5]=(udg_Hero_skill_lvl_2[5]+1)returnelse
endifelse
endifif(Trig_Kniga_9_Func021C())thenif(Trig_Kniga_9_Func021Func001C())thenset udg_Hero_skill_3[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_9_Func021Func001Func001C())thenset udg_Hero_skill_3[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_9_Func021Func001Func001Func001C())then
set udg_Hero_skill_3[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_9_Func021Func001Func001Func001Func001C())thenset udg_Hero_skill_3[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
if(Trig_Kniga_9_Func021Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_3[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_3[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[3])returnelse
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_9_Func022C())thenif(Trig_Kniga_9_Func022Func001C())thenset udg_Hero_skill_lvl_3[1]=(udg_Hero_skill_lvl_3[1]+1)returnelse
endifif(Trig_Kniga_9_Func022Func002C())thenset udg_Hero_skill_lvl_3[2]=(udg_Hero_skill_lvl_3[2]+1)returnelse
endifif(Trig_Kniga_9_Func022Func003C())thenset udg_Hero_skill_lvl_3[3]=(udg_Hero_skill_lvl_3[3]+1)returnelse
endifif(Trig_Kniga_9_Func022Func004C())thenset udg_Hero_skill_lvl_3[4]=(udg_Hero_skill_lvl_3[4]+1)returnelse
endifif(Trig_Kniga_9_Func022Func005C())thenset udg_Hero_skill_lvl_3[5]=(udg_Hero_skill_lvl_3[5]+1)returnelse
endifelse
endifif(Trig_Kniga_9_Func024C())thenif(Trig_Kniga_9_Func024Func006C())thenset udg_Hero_skill_4[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_9_Func024Func006Func001C())thenset udg_Hero_skill_4[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_9_Func024Func006Func001Func001C())then
set udg_Hero_skill_4[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_9_Func024Func006Func001Func001Func001C())thenset udg_Hero_skill_4[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
if(Trig_Kniga_9_Func024Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_4[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_4[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[4])returnelse
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_9_Func025C())thenif(Trig_Kniga_9_Func025Func001C())thenset udg_Hero_skill_lvl_4[1]=(udg_Hero_skill_lvl_4[1]+1)returnelse
endifif(Trig_Kniga_9_Func025Func002C())thenset udg_Hero_skill_lvl_4[2]=(udg_Hero_skill_lvl_4[2]+1)returnelse
endifif(Trig_Kniga_9_Func025Func003C())thenset udg_Hero_skill_lvl_4[3]=(udg_Hero_skill_lvl_4[3]+1)returnelse
endifif(Trig_Kniga_9_Func025Func004C())thenset udg_Hero_skill_lvl_4[4]=(udg_Hero_skill_lvl_4[4]+1)returnelse
endifif(Trig_Kniga_9_Func025Func005C())thenset udg_Hero_skill_lvl_4[5]=(udg_Hero_skill_lvl_4[5]+1)returnelse
endifelse
endifif(Trig_Kniga_9_Func027C())thenif(Trig_Kniga_9_Func027Func006C())thenset udg_Hero_skill_5[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_9_Func027Func006Func001C())thenset udg_Hero_skill_5[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_9_Func027Func006Func001Func001C())then
set udg_Hero_skill_5[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_9_Func027Func006Func001Func001Func001C())thenset udg_Hero_skill_5[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
if(Trig_Kniga_9_Func027Func006Func001Func001Func001Func001C())thenset udg_Hero_skill_5[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_5[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[5])returnelse
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_9_Func028C())thenif(Trig_Kniga_9_Func028Func001C())thenset udg_Hero_skill_lvl_5[1]=(udg_Hero_skill_lvl_5[1]+1)returnelse
endifif(Trig_Kniga_9_Func028Func002C())thenset udg_Hero_skill_lvl_5[2]=(udg_Hero_skill_lvl_5[2]+1)returnelse
endifif(Trig_Kniga_9_Func028Func003C())thenset udg_Hero_skill_lvl_5[3]=(udg_Hero_skill_lvl_5[3]+1)returnelse
endifif(Trig_Kniga_9_Func028Func004C())thenset udg_Hero_skill_lvl_5[4]=(udg_Hero_skill_lvl_5[4]+1)returnelse
endifif(Trig_Kniga_9_Func028Func005C())thenset udg_Hero_skill_lvl_5[5]=(udg_Hero_skill_lvl_5[5]+1)returnelse
endifelse
endifif(Trig_Kniga_9_Func030C())thenif(Trig_Kniga_9_Func030Func001C())thenset udg_Hero_skill_6[1]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[1]=true
call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")returnelse
if(Trig_Kniga_9_Func030Func001Func001C())thenset udg_Hero_skill_6[2]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[2]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_9_Func030Func001Func001Func001C())then
set udg_Hero_skill_6[3]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[3]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_9_Func030Func001Func001Func001Func001C())thenset udg_Hero_skill_6[4]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[4]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
if(Trig_Kniga_9_Func030Func001Func001Func001Func001Func001C())thenset udg_Hero_skill_6[5]=udg_Skill_poluchenset udg_Hero_skill_Boolean_6[5]=true
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddAbilityBJ(udg_Skill_poluchen,udg_Hero[6])returnelse
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_LUMBER)+1))
returnendifendifendifendifendifelse
endifif(Trig_Kniga_9_Func031C())thenif(Trig_Kniga_9_Func031Func001C())thenset udg_Hero_skill_lvl_6[1]=(udg_Hero_skill_lvl_6[1]+1)returnelse
endifif(Trig_Kniga_9_Func031Func002C())thenset udg_Hero_skill_lvl_6[2]=(udg_Hero_skill_lvl_6[2]+1)returnelse
endifif(Trig_Kniga_9_Func031Func003C())thenset udg_Hero_skill_lvl_6[3]=(udg_Hero_skill_lvl_6[3]+1)returnelse
endifif(Trig_Kniga_9_Func031Func004C())thenset udg_Hero_skill_lvl_6[4]=(udg_Hero_skill_lvl_6[4]+1)returnelse
endifif(Trig_Kniga_9_Func031Func005C())thenset udg_Hero_skill_lvl_6[5]=(udg_Hero_skill_lvl_6[5]+1)returnelse
endifelse
endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")endfunctionfunction InitTrig_Kniga_9 takes nothing returns nothingset gg_trg_Kniga_9=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kniga_9,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Kniga_9,Condition(function Trig_Kniga_9_Conditions))
call TriggerAddAction(gg_trg_Kniga_9,function Trig_Kniga_9_Actions)endfunctionfunction Trig_Sklep_richag_1_Actions takes nothing returns nothingcall CreateNUnitsAtLoc(1,'n018',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n018',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n018',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n018',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n018',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n018',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n019',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n019',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n019',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n01A',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n01A',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n01A',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n01A',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n01A',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_1),bj_UNIT_FACING)call ModifyGateBJ(bj_GATEOPERATION_OPEN,gg_dest_DTg7_13549)endfunctionfunction InitTrig_Sklep_richag_1 takes nothing returns nothingset gg_trg_Sklep_richag_1=CreateTrigger()call TriggerRegisterDeathEvent(gg_trg_Sklep_richag_1,gg_dest_DTlv_13711)
call TriggerAddAction(gg_trg_Sklep_richag_1,function Trig_Sklep_richag_1_Actions)endfunctionfunction Trig_Sklep_richag_2_Actions takes nothing returns nothingcall CreateNUnitsAtLoc(1,'uabo',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'uabo',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'uabo',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'uabo',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'uabo',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'uabo',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_2),bj_UNIT_FACING)call ModifyGateBJ(bj_GATEOPERATION_OPEN,gg_dest_DTg7_13550)endfunctionfunction InitTrig_Sklep_richag_2 takes nothing returns nothingset gg_trg_Sklep_richag_2=CreateTrigger()call TriggerRegisterDeathEvent(gg_trg_Sklep_richag_2,gg_dest_DTlv_13712)
call TriggerAddAction(gg_trg_Sklep_richag_2,function Trig_Sklep_richag_2_Actions)endfunctionfunction Trig_Sklep_richag_3_Actions takes nothing returns nothingcall CreateNUnitsAtLoc(1,'u01B',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u01B',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u01B',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u01B',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nsat',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nsat',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nsat',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nsat',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_3),bj_UNIT_FACING)call ModifyGateBJ(bj_GATEOPERATION_OPEN,gg_dest_DTg5_13548)endfunctionfunction InitTrig_Sklep_richag_3 takes nothing returns nothingset gg_trg_Sklep_richag_3=CreateTrigger()call TriggerRegisterDeathEvent(gg_trg_Sklep_richag_3,gg_dest_DTlv_13713)
call TriggerAddAction(gg_trg_Sklep_richag_3,function Trig_Sklep_richag_3_Actions)endfunctionfunction Trig_Sklep_richag_4_Actions takes nothing returns nothingcall CreateNUnitsAtLoc(1,'nfgl',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_4),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgl',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_4),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgl',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_4),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgl',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_4),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'uban',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_4),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'uban',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_4),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'uban',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_4),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'uban',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_4),bj_UNIT_FACING)call ModifyGateBJ(bj_GATEOPERATION_OPEN,gg_dest_DTg5_13547)endfunctionfunction InitTrig_Sklep_richag_4 takes nothing returns nothingset gg_trg_Sklep_richag_4=CreateTrigger()call TriggerRegisterDeathEvent(gg_trg_Sklep_richag_4,gg_dest_DTlv_13714)
call TriggerAddAction(gg_trg_Sklep_richag_4,function Trig_Sklep_richag_4_Actions)endfunctionfunction Trig_Sklep_richag_5_Actions takes nothing returns nothingcall ModifyGateBJ(bj_GATEOPERATION_OPEN,gg_dest_DTg5_13715)endfunctionfunction InitTrig_Sklep_richag_5 takes nothing returns nothingset gg_trg_Sklep_richag_5=CreateTrigger()call TriggerRegisterDeathEvent(gg_trg_Sklep_richag_5,gg_dest_DTlv_13716)
call TriggerAddAction(gg_trg_Sklep_richag_5,function Trig_Sklep_richag_5_Actions)endfunctionfunction Trig_Sklep_richag_6_Actions takes nothing returns nothingcall ModifyGateBJ(bj_GATEOPERATION_OPEN,gg_dest_DTg5_13551)endfunctionfunction InitTrig_Sklep_richag_6 takes nothing returns nothingset gg_trg_Sklep_richag_6=CreateTrigger()call TriggerRegisterDeathEvent(gg_trg_Sklep_richag_6,gg_dest_DTlv_13717)
call TriggerAddAction(gg_trg_Sklep_richag_6,function Trig_Sklep_richag_6_Actions)endfunctionfunction Trig_Skelet_Golem_Conditions takes nothing returns booleanif(not(GetUnitLifePercent(GetAttackedUnitBJ())<=20.00))thenreturn false
endifif(not(GetUnitTypeId(GetAttackedUnitBJ())=='n017'))thenreturn false
endifreturn trueendfunctionfunction Trig_Skelet_Golem_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLocFacingLocBJ(1,'u01B',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_1),GetUnitLoc(GetTriggerUnit()))call CreateNUnitsAtLocFacingLocBJ(1,'u01B',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_1),GetUnitLoc(GetTriggerUnit()))call CreateNUnitsAtLocFacingLocBJ(1,'u01B',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_2),GetUnitLoc(GetTriggerUnit()))call CreateNUnitsAtLocFacingLocBJ(1,'u01B',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_2),GetUnitLoc(GetTriggerUnit()))call SetUnitLifeBJ(gg_unit_n017_0861,(GetUnitStateSwap(UNIT_STATE_LIFE,gg_unit_n017_0861)+1800.00))call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_n017_0861),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Sklep_Room_1,Player(11)),"attack",GetUnitLoc(gg_unit_n017_0861))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Sklep_Room_2,Player(11)),"attack",GetUnitLoc(gg_unit_n017_0861))call SetUnitLifeBJ(gg_unit_n017_0861,(GetUnitStateSwap(UNIT_STATE_LIFE,gg_unit_n017_0861)+1800.00))call UnitAddAbilityBJ('A0H9',gg_unit_n017_0861)call TriggerSleepAction(1.00)call SetUnitLifeBJ(gg_unit_n017_0861,(GetUnitStateSwap(UNIT_STATE_LIFE,gg_unit_n017_0861)+1800.00))call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_n017_0861),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(1.00)call SetUnitLifeBJ(gg_unit_n017_0861,(GetUnitStateSwap(UNIT_STATE_LIFE,gg_unit_n017_0861)+1800.00))call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_n017_0861),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(1.00)call SetUnitLifeBJ(gg_unit_n017_0861,(GetUnitStateSwap(UNIT_STATE_LIFE,gg_unit_n017_0861)+1800.00))call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_n017_0861),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(1.00)call SetUnitLifeBJ(gg_unit_n017_0861,(GetUnitStateSwap(UNIT_STATE_LIFE,gg_unit_n017_0861)+1800.00))call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_n017_0861),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(1.00)call SetUnitLifeBJ(gg_unit_n017_0861,(GetUnitStateSwap(UNIT_STATE_LIFE,gg_unit_n017_0861)+1800.00))call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_n017_0861),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(1.00)call SetUnitLifeBJ(gg_unit_n017_0861,(GetUnitStateSwap(UNIT_STATE_LIFE,gg_unit_n017_0861)+1800.00))call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_n017_0861),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(1.00)call SetUnitLifeBJ(gg_unit_n017_0861,(GetUnitStateSwap(UNIT_STATE_LIFE,gg_unit_n017_0861)+1800.00))call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_n017_0861),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(1.00)call SetUnitLifeBJ(gg_unit_n017_0861,(GetUnitStateSwap(UNIT_STATE_LIFE,gg_unit_n017_0861)+1800.00))call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_n017_0861),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(1.00)call CreateNUnitsAtLocFacingLocBJ(1,'u01B',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_3),GetUnitLoc(GetTriggerUnit()))call CreateNUnitsAtLocFacingLocBJ(1,'u01B',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_3),GetUnitLoc(GetTriggerUnit()))call CreateNUnitsAtLocFacingLocBJ(1,'u01B',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_4),GetUnitLoc(GetTriggerUnit()))call CreateNUnitsAtLocFacingLocBJ(1,'u01B',Player(11),GetRandomLocInRect(gg_rct_Sklep_Room_4),GetUnitLoc(GetTriggerUnit()))call TriggerSleepAction(2)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Sklep_Room_4,Player(11)),"attack",GetUnitLoc(gg_unit_n017_0861))call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Sklep_Room_3,Player(11)),"attack",GetUnitLoc(gg_unit_n017_0861))endfunctionfunction InitTrig_Skelet_Golem takes nothing returns nothing
set gg_trg_Skelet_Golem=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Skelet_Golem,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Skelet_Golem,Condition(function Trig_Skelet_Golem_Conditions))call TriggerAddAction(gg_trg_Skelet_Golem,function Trig_Skelet_Golem_Actions)endfunctionfunction Trig_Oskvernenniy_hranitel_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttackedUnitBJ())=='Nbrn'))thenreturn false
endifreturn trueendfunctionfunction Trig_Oskvernenniy_hranitel_Func002C takes nothing returns booleanif(not(GetUnitLifePercent(GetAttackedUnitBJ())<=95.00))thenreturn false
endifif(not(GetUnitLifePercent(GetAttackedUnitBJ())>=80.00))thenreturn false
endifreturn trueendfunctionfunction Trig_Oskvernenniy_hranitel_Func003C takes nothing returns booleanif(not(GetUnitLifePercent(GetAttackedUnitBJ())<=70.00))thenreturn false
endifif(not(GetUnitLifePercent(GetAttackedUnitBJ())>=60.00))thenreturn false
endifreturn trueendfunctionfunction Trig_Oskvernenniy_hranitel_Func004C takes nothing returns booleanif(not(GetUnitLifePercent(GetAttackedUnitBJ())<=30.00))thenreturn false
endifreturn trueendfunctionfunction Trig_Oskvernenniy_hranitel_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())if(Trig_Oskvernenniy_hranitel_Func002C())thencall IssueTargetOrder(GetAttackedUnitBJ(),"manaburn",GetAttacker())else
endifif(Trig_Oskvernenniy_hranitel_Func003C())thencall IssueTargetOrder(GetAttackedUnitBJ(),"hex",GetAttacker())else
endifif(Trig_Oskvernenniy_hranitel_Func004C())thencall SetUnitAnimation(gg_unit_Nbrn_0832,"spell")
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttacker()),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetAttackedUnitBJ(),GetAttacker(),2000.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)else
endifcall TriggerSleepAction(10.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Oskvernenniy_hranitel takes nothing returns nothingset gg_trg_Oskvernenniy_hranitel=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Oskvernenniy_hranitel,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Oskvernenniy_hranitel,Condition(function Trig_Oskvernenniy_hranitel_Conditions))
call TriggerAddAction(gg_trg_Oskvernenniy_hranitel,function Trig_Oskvernenniy_hranitel_Actions)endfunctionfunction Trig_Chernaya_strela_2_Conditions takes nothing returns boolean
if(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_STRUCTURE)==false))thenreturn false
endifif(not(GetUnitTypeId(GetAttacker())=='Usyl'))thenreturn false
endifreturn trueendfunctionfunction Trig_Chernaya_strela_2_Actions takes nothing returns nothingcall TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Undead\\CarrionSwarm\\CarrionSwarmDamage.mdl")call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetAttackedUnitBJ())*0.02),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_DEATH)
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Undead\\CarrionSwarm\\CarrionSwarmDamage.mdl")call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetAttackedUnitBJ())*0.02),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_DEATH)
endfunctionfunction InitTrig_Chernaya_strela_2 takes nothing returns nothingset gg_trg_Chernaya_strela_2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Chernaya_strela_2,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Chernaya_strela_2,Condition(function Trig_Chernaya_strela_2_Conditions))
call TriggerAddAction(gg_trg_Chernaya_strela_2,function Trig_Chernaya_strela_2_Actions)endfunctionfunction Trig_Smert_Korolia_Frostmorn_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='Hpal'))thenreturn false
endifif(not(GetUnitTypeId(GetAttacker())=='Harf'))thenreturn false
endifreturn trueendfunctionfunction Trig_Smert_Korolia_Frostmorn_Actions takes nothing returns nothingcall PlaySoundOnUnitBJ(gg_snd_EvilArthasYes2,100,gg_unit_Harf_0823)call DisableTrigger(GetTriggeringTrigger())call SetUnitOwner(gg_unit_Harf_0823,Player(11),false)call TriggerSleepAction(1.00)call CreateFogModifierRadiusLocBJ(true,Player(0),FOG_OF_WAR_VISIBLE,GetUnitLoc(gg_unit_Harf_0823),512)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Objects\\Spawnmodels\\Orc\\Orcblood\\BattrollBlood.mdl")
call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Objects\\Spawnmodels\\Other\\BeastmasterBlood\\BeastmasterBlood.mdl")call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),17500.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_DEATH)
call TriggerSleepAction(6.00)call AddSpecialEffectTargetUnitBJ("origin",gg_unit_Harf_0823,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl")call SetUnitAnimation(gg_unit_Harf_0823,"spell")
call TriggerSleepAction(2)call UnitAddAbilityBJ('A0BV',gg_unit_Harf_0823)call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(gg_unit_Harf_0823,GetRectCenter(gg_rct_Artas_Visadka))call TriggerSleepAction(2)call CreateFogModifierRadiusLocBJ(true,Player(0),FOG_OF_WAR_VISIBLE,GetUnitLoc(gg_unit_Harf_0823),512)call IssuePointOrderLoc(gg_unit_Harf_0823,"attack",GetRectCenter(gg_rct_Povelitel_tmy))endfunctionfunction InitTrig_Smert_Korolia_Frostmorn takes nothing returns nothingset gg_trg_Smert_Korolia_Frostmorn=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Smert_Korolia_Frostmorn,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Smert_Korolia_Frostmorn,Condition(function Trig_Smert_Korolia_Frostmorn_Conditions))
call TriggerAddAction(gg_trg_Smert_Korolia_Frostmorn,function Trig_Smert_Korolia_Frostmorn_Actions)endfunctionfunction Trig_Ingridienty_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='h01N'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='h01M'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func003C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='h01O'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func004C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='h01P'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func005C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='h01Q'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func006C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='h01R'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func007C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='h01S'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func008C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='h01T'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func009C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='h01U'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func010C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='h01V'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func011C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='h01W'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func012C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nfgo'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func013Func002C takes nothing returns booleanif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func013Func003C takes nothing returns booleanif(not(udg_Random_drop>11))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func013Func004C takes nothing returns booleanif(not(udg_Random_drop>21))thenreturn false
endifif(not(udg_Random_drop<=40))then
return false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func013Func005C takes nothing returns booleanif(not(udg_Random_drop>41))thenreturn false
endifif(not(udg_Random_drop<=60))then
return false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func013Func006C takes nothing returns booleanif(not(udg_Random_drop>61))thenreturn false
endifif(not(udg_Random_drop<=100))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func013C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nsln'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func014Func002C takes nothing returns booleanif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func014C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='ngir'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func015Func002C takes nothing returns booleanif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func015C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nplg'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func016Func002C takes nothing returns booleanif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func016C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='ndrw'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func017C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nlrv'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func018C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nkob'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func019C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='u017'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func020C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nfod'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Func021C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='n00U'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ingridienty_Actions takes nothing returns nothingif(Trig_Ingridienty_Func001C())thencall CreateItemLoc('I08Q',GetUnitLoc(GetDyingUnit()))call RemoveUnit(GetDyingUnit())else
endifif(Trig_Ingridienty_Func002C())thencall CreateItemLoc('I08T',GetUnitLoc(GetDyingUnit()))call RemoveUnit(GetDyingUnit())else
endifif(Trig_Ingridienty_Func003C())thencall CreateItemLoc('I08U',GetUnitLoc(GetDyingUnit()))call RemoveUnit(GetDyingUnit())else
endifif(Trig_Ingridienty_Func004C())thencall CreateItemLoc('I08W',GetUnitLoc(GetDyingUnit()))call RemoveUnit(GetDyingUnit())else
endifif(Trig_Ingridienty_Func005C())thencall CreateItemLoc('I08X',GetUnitLoc(GetDyingUnit()))call RemoveUnit(GetDyingUnit())else
endifif(Trig_Ingridienty_Func006C())thencall CreateItemLoc('I08Z',GetUnitLoc(GetDyingUnit()))call RemoveUnit(GetDyingUnit())else
endifif(Trig_Ingridienty_Func007C())thencall CreateItemLoc('pams',GetUnitLoc(GetDyingUnit()))call RemoveUnit(GetDyingUnit())else
endifif(Trig_Ingridienty_Func008C())thencall CreateItemLoc('dust',GetUnitLoc(GetDyingUnit()))call RemoveUnit(GetDyingUnit())else
endifif(Trig_Ingridienty_Func009C())thencall CreateItemLoc('rej2',GetUnitLoc(GetDyingUnit()))call RemoveUnit(GetDyingUnit())else
endifif(Trig_Ingridienty_Func010C())thencall CreateItemLoc('rej4',GetUnitLoc(GetDyingUnit()))call RemoveUnit(GetDyingUnit())else
endifif(Trig_Ingridienty_Func011C())thencall CreateItemLoc('shcw',GetUnitLoc(GetDyingUnit()))call RemoveUnit(GetDyingUnit())else
endifif(Trig_Ingridienty_Func012C())thencall CreateItemLoc('I09R',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ingridienty_Func013C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Ingridienty_Func013Func002C())thencall CreateItemLoc('sksh',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ingridienty_Func013Func003C())thencall CreateItemLoc('ram3',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ingridienty_Func013Func004C())thencall CreateItemLoc('soul',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ingridienty_Func013Func005C())thencall CreateItemLoc('gcel',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ingridienty_Func013Func006C())thencall CreateItemLoc('I02B',GetUnitLoc(GetDyingUnit()))else
endifelse
endifif(Trig_Ingridienty_Func014C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Ingridienty_Func014Func002C())thencall CreateItemLoc('glsk',GetUnitLoc(GetDyingUnit()))else
endifcall TriggerSleepAction(15.00)call CreateNUnitsAtLoc(1,'ngir',Player(11),GetUnitLoc(gg_unit_nfa2_0668),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"patrol",GetRandomLocInRect(gg_rct_Zona_2))
else
endifif(Trig_Ingridienty_Func015C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Ingridienty_Func015Func002C())thencall CreateItemLoc('I08Z',GetUnitLoc(GetDyingUnit()))else
endifelse
endifif(Trig_Ingridienty_Func016C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Ingridienty_Func016Func002C())thencall CreateItemLoc('I04E',GetUnitLoc(GetDyingUnit()))else
endifelse
endifif(Trig_Ingridienty_Func017C())thencall CreateItemLoc('I0A9',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ingridienty_Func018C())thencall CreateItemLoc('I05P',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ingridienty_Func019C())thencall CreateItemLoc('I0AW',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ingridienty_Func020C())thencall CreateItemLoc('envl',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ingridienty_Func021C())thencall CreateItemLoc('I09M',GetUnitLoc(GetDyingUnit()))else
endifendfunctionfunction InitTrig_Ingridienty takes nothing returns nothingset gg_trg_Ingridienty=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ingridienty,EVENT_PLAYER_UNIT_DEATH)call TriggerAddAction(gg_trg_Ingridienty,function Trig_Ingridienty_Actions)endfunctionfunction Trig_Elinnie_Moby_Actions takes nothing returns nothing
call DisableTrigger(gg_trg_Defense_active)call CreateNUnitsAtLoc(1,'nwwg',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-3900.00,-5800.00),bj_UNIT_FACING)
call TriggerSleepAction(360.00)call DisplayTextToForce(GetPlayersAll(),"|c0090ee90В волчьем лесу появился вождь Иглогривов|r 
Награда:|c00FFFF00 150 золота|r")
call CreateNUnitsAtLoc(1,'nrzg',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-4290.00,-4175.00),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nqbh',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-2187.00,-5622.00),bj_UNIT_FACING)
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_1))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_1))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_1))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_1))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_1))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_1))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_1))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_1))
call TriggerSleepAction(360.00)call KillDestructable(gg_dest_YTcx_9528)
call KillDestructable(gg_dest_YTce_9527)
call CreateNUnitsAtLoc(1,'nith',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-3890.00,-9885.00),bj_UNIT_FACING)
call TriggerSleepAction(360.00)call DisplayTextToForce(GetPlayersAll(),"|c0090ee90В лесу тролей появился Вендиго|r 
Награда:|c00FFFF00 300 золота|r")call CreateNUnitsAtLoc(1,'njgb',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-2100.00,-9715.00),bj_UNIT_FACING)
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_2))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_2))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_2))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_2))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_2))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_2))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_2))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_2))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_2))
call TriggerSleepAction(360.00)call DisplayTextToForce(GetPlayersAll(),"|c0090ee90В волчьем лесу появился Медведь людоед|r 
Награда:|c00FFFF00 500 золота|r")
call CreateNUnitsAtLoc(1,'ngz4',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-940.00,-4665.00),bj_UNIT_FACING)call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_1))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_1))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_1))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_1))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_1))
call TriggerSleepAction(360.00)call DisplayTextToForce(GetPlayersAll(),"|c0090ee90На болотах появилась Высшая гидра|r 
Награда:|c00FFFF00 600 золота|r")call CreateNUnitsAtLoc(1,'nahy',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-6985.00,1385.00),bj_UNIT_FACING)call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_6))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_6))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_6))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_6))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_6))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_6))
call TriggerSleepAction(360.00)call SetUnitInvulnerable(gg_unit_nbsm_0775,false)call DisplayTextToForce(GetPlayersAll(),"|c0090ee90В лесу тролей появился Вождь темных тролей|r 
Награда:|c00FFFF00 750 золота|r")call CreateNUnitsAtLoc(1,'ndtw',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-1050.00,-10690.00),bj_UNIT_FACING)call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_2))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_2))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_2))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_2))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_2))
call TriggerSleepAction(180.00)call CreateNUnitsAtLoc(1,'nbdw',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),3115.00,-9930.00),bj_UNIT_FACING)call TriggerSleepAction(180.00)call DisplayTextToForce(GetPlayersAll(),"|c0090ee90В пустошах появилась Королева гарпий|r 
Награда:|c00FFFF00 900 золота|r")call CreateNUnitsAtLoc(1,'nhrq',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),12883.00,1360.00),bj_UNIT_FACING)call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_5))
call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_5))
call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_5))
call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_5))
call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_5))
call TriggerSleepAction(360.00)call DisplayTextToForce(GetPlayersAll(),"|c0090ee90В пустошах появился Зеленый дракон|r 
Награда:|c00FFFF00 1000 золота|r")call CreateNUnitsAtLoc(1,'ngdk',Player(10),OffsetLocation(GetRectCenter(GetPlayableMapRect()),8586.00,-2200.00),bj_UNIT_FACING)call TriggerSleepAction(360.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hpb1_0681,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[25]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Poteriavshayasia_gruppa)call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hmgd_0057),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call DisplayTextToForce(GetPlayersAll(),"|c0090ee90В лесу гнолов появился Гигант|r 
Награда:|c00FFFF00 1500 золота|r")
call CreateNUnitsAtLoc(1,'nmgr',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-10045.00,-4300.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nkob',Player(11),GetRectCenter(gg_rct_Rohan),bj_UNIT_FACING)call GroupPointOrderLoc(GetUnitsInRectAll(gg_rct_Rohan),"attack",GetRectCenter(gg_rct_Zona_2))call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_7))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_7))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_7))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_7))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_7))
call CreateItemLoc('shcw',GetRandomLocInRect(gg_rct_Zona_7))
call TriggerSleepAction(180.00)call DisplayTextToForce(GetPlayersAll(),"|c0090ee90Возле логово воров появился Грозный совинный медведь|r 
Награда:|c00FFFF00 1800 золота|r")
call CreateNUnitsAtLoc(1,'nowk',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),4220.00,-9300.00),bj_UNIT_FACING)call TriggerSleepAction(180.00)call CreateNUnitsAtLoc(1,'nsth',Player(11),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ncnk',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),9930.00,-750.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nsqa',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
call TriggerSleepAction(180.00)call DisplayTextToForce(GetPlayersAll(),"|c0090ee90В пустоши появился Древний черный дракон|r 
Награда:|c00FFFF00 2500 золота|r")call CreateNUnitsAtLoc(1,'nbwm',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call TriggerSleepAction(180.00)call DisplayTextToForce(GetPlayersAll(),"|c0090ee90В Канализации появился Дух тления|r 
Награда:|c00FFFF00 Артефакт|r")call CreateNUnitsAtLoc(1,'nlrv',Player(6),GetRectCenter(gg_rct_Kanalizaciya),bj_UNIT_FACING)
call TriggerSleepAction(180.00)call DisplayTextToForce(GetPlayersAll(),"|c0090ee90В лесу эльфов появился Вождь драконидов|r 
Награда:|c00FFFF00 2500 золота|r")call CreateNUnitsAtLoc(1,'nbdo',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-12367.00,4800.00),bj_UNIT_FACING)
call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_8))
call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_8))
call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_8))
call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_8))
call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_8))
call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_8))
call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_8))
call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_8))
endfunctionfunction InitTrig_Elinnie_Moby takes nothing returns nothing
set gg_trg_Elinnie_Moby=CreateTrigger()call TriggerRegisterTimerEventSingle(gg_trg_Elinnie_Moby,540.00)
call TriggerAddAction(gg_trg_Elinnie_Moby,function Trig_Elinnie_Moby_Actions)endfunctionfunction Trig_Sunduk_kill_Func004C takes nothing returns boolean
if((GetUnitTypeId(GetDyingUnit())=='h00L'))thenreturn trueendifif((GetUnitTypeId(GetDyingUnit())=='h00M'))thenreturn trueendifif((GetUnitTypeId(GetDyingUnit())=='h00K'))thenreturn trueendifreturn false
endfunctionfunction Trig_Sunduk_kill_Conditions takes nothing returns booleanif(not Trig_Sunduk_kill_Func004C())thenreturn false
endifreturn trueendfunctionfunction Trig_Sunduk_kill_Func001Func002001 takes nothing returns booleanreturn(udg_Random==1)endfunctionfunction Trig_Sunduk_kill_Func001Func003001 takes nothing returns booleanreturn(udg_Random==2)endfunctionfunction Trig_Sunduk_kill_Func001Func004001 takes nothing returns booleanreturn(udg_Random==3)endfunctionfunction Trig_Sunduk_kill_Func001Func005001 takes nothing returns booleanreturn(udg_Random==4)endfunctionfunction Trig_Sunduk_kill_Func001Func006001 takes nothing returns booleanreturn(udg_Random==5)endfunctionfunction Trig_Sunduk_kill_Func001Func007001 takes nothing returns booleanreturn(udg_Random==6)endfunctionfunction Trig_Sunduk_kill_Func001Func008001 takes nothing returns booleanreturn(udg_Random==7)endfunctionfunction Trig_Sunduk_kill_Func001Func009001 takes nothing returns booleanreturn(udg_Random==8)endfunctionfunction Trig_Sunduk_kill_Func001Func010001 takes nothing returns booleanreturn(udg_Random==9)endfunctionfunction Trig_Sunduk_kill_Func001Func011001 takes nothing returns booleanreturn(udg_Random==10)endfunctionfunction Trig_Sunduk_kill_Func001Func012001 takes nothing returns booleanreturn(udg_Random==11)endfunctionfunction Trig_Sunduk_kill_Func001Func013001 takes nothing returns booleanreturn(udg_Random==12)endfunctionfunction Trig_Sunduk_kill_Func001Func014001 takes nothing returns booleanreturn(udg_Random==13)endfunctionfunction Trig_Sunduk_kill_Func001Func015001 takes nothing returns booleanreturn(udg_Random==14)endfunctionfunction Trig_Sunduk_kill_Func001Func016001 takes nothing returns booleanreturn(udg_Random==15)endfunctionfunction Trig_Sunduk_kill_Func001Func017001 takes nothing returns booleanreturn(udg_Random==16)endfunctionfunction Trig_Sunduk_kill_Func001Func018001 takes nothing returns booleanreturn(udg_Random==17)endfunctionfunction Trig_Sunduk_kill_Func001Func019001 takes nothing returns booleanreturn(udg_Random==18)endfunctionfunction Trig_Sunduk_kill_Func001Func020001 takes nothing returns booleanreturn(udg_Random==19)endfunctionfunction Trig_Sunduk_kill_Func001Func021001 takes nothing returns booleanreturn(udg_Random==20)endfunctionfunction Trig_Sunduk_kill_Func001Func022001 takes nothing returns booleanreturn(udg_Random==21)endfunctionfunction Trig_Sunduk_kill_Func001Func023001 takes nothing returns booleanreturn(udg_Random==22)endfunctionfunction Trig_Sunduk_kill_Func001Func024001 takes nothing returns booleanreturn(udg_Random==23)endfunctionfunction Trig_Sunduk_kill_Func001Func025001 takes nothing returns booleanreturn(udg_Random==24)endfunctionfunction Trig_Sunduk_kill_Func001Func026001 takes nothing returns booleanreturn(udg_Random==25)endfunctionfunction Trig_Sunduk_kill_Func001Func027001 takes nothing returns booleanreturn(udg_Random==26)endfunctionfunction Trig_Sunduk_kill_Func001Func028001 takes nothing returns booleanreturn(udg_Random==27)endfunctionfunction Trig_Sunduk_kill_Func001Func029001 takes nothing returns booleanreturn(udg_Random==28)endfunctionfunction Trig_Sunduk_kill_Func001Func030001 takes nothing returns booleanreturn(udg_Random==29)endfunctionfunction Trig_Sunduk_kill_Func001Func031001 takes nothing returns booleanreturn(udg_Random==30)endfunctionfunction Trig_Sunduk_kill_Func001Func032001 takes nothing returns booleanreturn(udg_Random==31)endfunctionfunction Trig_Sunduk_kill_Func001Func033001 takes nothing returns booleanreturn(udg_Random==32)endfunctionfunction Trig_Sunduk_kill_Func001Func034001 takes nothing returns booleanreturn(udg_Random==33)endfunctionfunction Trig_Sunduk_kill_Func001Func035001 takes nothing returns booleanreturn(udg_Random==34)endfunctionfunction Trig_Sunduk_kill_Func001Func036001 takes nothing returns booleanreturn(udg_Random==35)endfunctionfunction Trig_Sunduk_kill_Func001Func037001 takes nothing returns booleanreturn(udg_Random==36)endfunctionfunction Trig_Sunduk_kill_Func001Func038001 takes nothing returns booleanreturn(udg_Random==37)endfunctionfunction Trig_Sunduk_kill_Func001Func039001 takes nothing returns booleanreturn(udg_Random==38)endfunctionfunction Trig_Sunduk_kill_Func001Func040001 takes nothing returns booleanreturn(udg_Random==39)endfunctionfunction Trig_Sunduk_kill_Func001Func041001 takes nothing returns booleanreturn(udg_Random==40)endfunctionfunction Trig_Sunduk_kill_Func001Func042001 takes nothing returns booleanreturn(udg_Random==41)endfunctionfunction Trig_Sunduk_kill_Func001Func043001 takes nothing returns booleanreturn(udg_Random==42)endfunctionfunction Trig_Sunduk_kill_Func001Func044001 takes nothing returns booleanreturn(udg_Random==43)endfunctionfunction Trig_Sunduk_kill_Func001Func045001 takes nothing returns booleanreturn(udg_Random==44)endfunctionfunction Trig_Sunduk_kill_Func001Func046001 takes nothing returns booleanreturn(udg_Random==45)endfunctionfunction Trig_Sunduk_kill_Func001Func047001 takes nothing returns booleanreturn(udg_Random==46)endfunctionfunction Trig_Sunduk_kill_Func001Func048001 takes nothing returns booleanreturn(udg_Random==47)endfunctionfunction Trig_Sunduk_kill_Func001Func049001 takes nothing returns booleanreturn(udg_Random==48)endfunctionfunction Trig_Sunduk_kill_Func001Func050001 takes nothing returns booleanreturn(udg_Random==49)endfunctionfunction Trig_Sunduk_kill_Func001Func051001 takes nothing returns booleanreturn(udg_Random==50)endfunctionfunction Trig_Sunduk_kill_Func001Func054001 takes nothing returns booleanreturn(udg_Random==1)endfunctionfunction Trig_Sunduk_kill_Func001Func055001 takes nothing returns booleanreturn(udg_Random==2)endfunctionfunction Trig_Sunduk_kill_Func001Func056001 takes nothing returns booleanreturn(udg_Random==3)endfunctionfunction Trig_Sunduk_kill_Func001Func057001 takes nothing returns booleanreturn(udg_Random==4)endfunctionfunction Trig_Sunduk_kill_Func001Func058001 takes nothing returns booleanreturn(udg_Random==5)endfunctionfunction Trig_Sunduk_kill_Func001Func059001 takes nothing returns booleanreturn(udg_Random==6)endfunctionfunction Trig_Sunduk_kill_Func001Func060001 takes nothing returns booleanreturn(udg_Random==7)endfunctionfunction Trig_Sunduk_kill_Func001Func061001 takes nothing returns booleanreturn(udg_Random==8)endfunctionfunction Trig_Sunduk_kill_Func001Func062001 takes nothing returns booleanreturn(udg_Random==9)endfunctionfunction Trig_Sunduk_kill_Func001Func063001 takes nothing returns booleanreturn(udg_Random==10)endfunctionfunction Trig_Sunduk_kill_Func001Func064001 takes nothing returns booleanreturn(udg_Random==11)endfunctionfunction Trig_Sunduk_kill_Func001Func065001 takes nothing returns booleanreturn(udg_Random==12)endfunctionfunction Trig_Sunduk_kill_Func001Func066001 takes nothing returns booleanreturn(udg_Random==13)endfunctionfunction Trig_Sunduk_kill_Func001Func067001 takes nothing returns booleanreturn(udg_Random==14)endfunctionfunction Trig_Sunduk_kill_Func001Func068001 takes nothing returns booleanreturn(udg_Random==15)endfunctionfunction Trig_Sunduk_kill_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='h00L'))thenreturn false
endifreturn trueendfunctionfunction Trig_Sunduk_kill_Func002Func002001 takes nothing returns booleanreturn(udg_Random==1)endfunctionfunction Trig_Sunduk_kill_Func002Func003001 takes nothing returns booleanreturn(udg_Random==2)endfunctionfunction Trig_Sunduk_kill_Func002Func004001 takes nothing returns booleanreturn(udg_Random==3)endfunctionfunction Trig_Sunduk_kill_Func002Func005001 takes nothing returns booleanreturn(udg_Random==4)endfunctionfunction Trig_Sunduk_kill_Func002Func006001 takes nothing returns booleanreturn(udg_Random==5)endfunctionfunction Trig_Sunduk_kill_Func002Func007001 takes nothing returns booleanreturn(udg_Random==6)endfunctionfunction Trig_Sunduk_kill_Func002Func008001 takes nothing returns booleanreturn(udg_Random==7)endfunctionfunction Trig_Sunduk_kill_Func002Func009001 takes nothing returns booleanreturn(udg_Random==8)endfunctionfunction Trig_Sunduk_kill_Func002Func010001 takes nothing returns booleanreturn(udg_Random==9)endfunctionfunction Trig_Sunduk_kill_Func002Func011001 takes nothing returns booleanreturn(udg_Random==10)endfunctionfunction Trig_Sunduk_kill_Func002Func012001 takes nothing returns booleanreturn(udg_Random==11)endfunctionfunction Trig_Sunduk_kill_Func002Func013001 takes nothing returns booleanreturn(udg_Random==12)endfunctionfunction Trig_Sunduk_kill_Func002Func014001 takes nothing returns booleanreturn(udg_Random==13)endfunctionfunction Trig_Sunduk_kill_Func002Func015001 takes nothing returns booleanreturn(udg_Random==14)endfunctionfunction Trig_Sunduk_kill_Func002Func016001 takes nothing returns booleanreturn(udg_Random==15)endfunctionfunction Trig_Sunduk_kill_Func002Func017001 takes nothing returns booleanreturn(udg_Random==16)endfunctionfunction Trig_Sunduk_kill_Func002Func018001 takes nothing returns booleanreturn(udg_Random==17)endfunctionfunction Trig_Sunduk_kill_Func002Func019001 takes nothing returns booleanreturn(udg_Random==18)endfunctionfunction Trig_Sunduk_kill_Func002Func020001 takes nothing returns booleanreturn(udg_Random==19)endfunctionfunction Trig_Sunduk_kill_Func002Func021001 takes nothing returns booleanreturn(udg_Random==20)endfunctionfunction Trig_Sunduk_kill_Func002Func022001 takes nothing returns booleanreturn(udg_Random==21)endfunctionfunction Trig_Sunduk_kill_Func002Func023001 takes nothing returns booleanreturn(udg_Random==22)endfunctionfunction Trig_Sunduk_kill_Func002Func024001 takes nothing returns booleanreturn(udg_Random==23)endfunctionfunction Trig_Sunduk_kill_Func002Func025001 takes nothing returns booleanreturn(udg_Random==24)endfunctionfunction Trig_Sunduk_kill_Func002Func026001 takes nothing returns booleanreturn(udg_Random==25)endfunctionfunction Trig_Sunduk_kill_Func002Func027001 takes nothing returns booleanreturn(udg_Random==26)endfunctionfunction Trig_Sunduk_kill_Func002Func028001 takes nothing returns booleanreturn(udg_Random==27)endfunctionfunction Trig_Sunduk_kill_Func002Func029001 takes nothing returns booleanreturn(udg_Random==28)endfunctionfunction Trig_Sunduk_kill_Func002Func030001 takes nothing returns booleanreturn(udg_Random==29)endfunctionfunction Trig_Sunduk_kill_Func002Func031001 takes nothing returns booleanreturn(udg_Random==30)endfunctionfunction Trig_Sunduk_kill_Func002Func032001 takes nothing returns booleanreturn(udg_Random==31)endfunctionfunction Trig_Sunduk_kill_Func002Func033001 takes nothing returns booleanreturn(udg_Random==32)endfunctionfunction Trig_Sunduk_kill_Func002Func034001 takes nothing returns booleanreturn(udg_Random==33)endfunctionfunction Trig_Sunduk_kill_Func002Func035001 takes nothing returns booleanreturn(udg_Random==34)endfunctionfunction Trig_Sunduk_kill_Func002Func036001 takes nothing returns booleanreturn(udg_Random==35)endfunctionfunction Trig_Sunduk_kill_Func002Func037001 takes nothing returns booleanreturn(udg_Random==36)endfunctionfunction Trig_Sunduk_kill_Func002Func038001 takes nothing returns booleanreturn(udg_Random==37)endfunctionfunction Trig_Sunduk_kill_Func002Func039001 takes nothing returns booleanreturn(udg_Random==38)endfunctionfunction Trig_Sunduk_kill_Func002Func040001 takes nothing returns booleanreturn(udg_Random==39)endfunctionfunction Trig_Sunduk_kill_Func002Func041001 takes nothing returns booleanreturn(udg_Random==40)endfunctionfunction Trig_Sunduk_kill_Func002Func042001 takes nothing returns booleanreturn(udg_Random==41)endfunctionfunction Trig_Sunduk_kill_Func002Func043001 takes nothing returns booleanreturn(udg_Random==42)endfunctionfunction Trig_Sunduk_kill_Func002Func044001 takes nothing returns booleanreturn(udg_Random==43)endfunctionfunction Trig_Sunduk_kill_Func002Func045001 takes nothing returns booleanreturn(udg_Random==44)endfunctionfunction Trig_Sunduk_kill_Func002Func046001 takes nothing returns booleanreturn(udg_Random==45)endfunctionfunction Trig_Sunduk_kill_Func002Func047001 takes nothing returns booleanreturn(udg_Random==46)endfunctionfunction Trig_Sunduk_kill_Func002Func048001 takes nothing returns booleanreturn(udg_Random==47)endfunctionfunction Trig_Sunduk_kill_Func002Func049001 takes nothing returns booleanreturn(udg_Random==48)endfunctionfunction Trig_Sunduk_kill_Func002Func050001 takes nothing returns booleanreturn(udg_Random==49)endfunctionfunction Trig_Sunduk_kill_Func002Func051001 takes nothing returns booleanreturn(udg_Random==50)endfunctionfunction Trig_Sunduk_kill_Func002Func054001 takes nothing returns booleanreturn(udg_Random==1)endfunctionfunction Trig_Sunduk_kill_Func002Func055001 takes nothing returns booleanreturn(udg_Random==2)endfunctionfunction Trig_Sunduk_kill_Func002Func056001 takes nothing returns booleanreturn(udg_Random==3)endfunctionfunction Trig_Sunduk_kill_Func002Func057001 takes nothing returns booleanreturn(udg_Random==4)endfunctionfunction Trig_Sunduk_kill_Func002Func058001 takes nothing returns booleanreturn(udg_Random==5)endfunctionfunction Trig_Sunduk_kill_Func002Func059001 takes nothing returns booleanreturn(udg_Random==6)endfunctionfunction Trig_Sunduk_kill_Func002Func060001 takes nothing returns booleanreturn(udg_Random==7)endfunctionfunction Trig_Sunduk_kill_Func002Func061001 takes nothing returns booleanreturn(udg_Random==8)endfunctionfunction Trig_Sunduk_kill_Func002Func062001 takes nothing returns booleanreturn(udg_Random==9)endfunctionfunction Trig_Sunduk_kill_Func002Func063001 takes nothing returns booleanreturn(udg_Random==10)endfunctionfunction Trig_Sunduk_kill_Func002Func064001 takes nothing returns booleanreturn(udg_Random==11)endfunctionfunction Trig_Sunduk_kill_Func002Func065001 takes nothing returns booleanreturn(udg_Random==12)endfunctionfunction Trig_Sunduk_kill_Func002Func066001 takes nothing returns booleanreturn(udg_Random==13)endfunctionfunction Trig_Sunduk_kill_Func002Func067001 takes nothing returns booleanreturn(udg_Random==14)endfunctionfunction Trig_Sunduk_kill_Func002Func068001 takes nothing returns booleanreturn(udg_Random==15)endfunctionfunction Trig_Sunduk_kill_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='h00M'))thenreturn false
endifreturn trueendfunctionfunction Trig_Sunduk_kill_Func003Func002001 takes nothing returns booleanreturn(udg_Random==1)endfunctionfunction Trig_Sunduk_kill_Func003Func003001 takes nothing returns booleanreturn(udg_Random==2)endfunctionfunction Trig_Sunduk_kill_Func003Func004001 takes nothing returns booleanreturn(udg_Random==3)endfunctionfunction Trig_Sunduk_kill_Func003Func005001 takes nothing returns booleanreturn(udg_Random==4)endfunctionfunction Trig_Sunduk_kill_Func003Func006001 takes nothing returns booleanreturn(udg_Random==5)endfunctionfunction Trig_Sunduk_kill_Func003Func007001 takes nothing returns booleanreturn(udg_Random==6)endfunctionfunction Trig_Sunduk_kill_Func003Func008001 takes nothing returns booleanreturn(udg_Random==7)endfunctionfunction Trig_Sunduk_kill_Func003Func009001 takes nothing returns booleanreturn(udg_Random==8)endfunctionfunction Trig_Sunduk_kill_Func003Func010001 takes nothing returns booleanreturn(udg_Random==9)endfunctionfunction Trig_Sunduk_kill_Func003Func011001 takes nothing returns booleanreturn(udg_Random==10)endfunctionfunction Trig_Sunduk_kill_Func003Func012001 takes nothing returns booleanreturn(udg_Random==11)endfunctionfunction Trig_Sunduk_kill_Func003Func013001 takes nothing returns booleanreturn(udg_Random==12)endfunctionfunction Trig_Sunduk_kill_Func003Func014001 takes nothing returns booleanreturn(udg_Random==13)endfunctionfunction Trig_Sunduk_kill_Func003Func015001 takes nothing returns booleanreturn(udg_Random==14)endfunctionfunction Trig_Sunduk_kill_Func003Func016001 takes nothing returns booleanreturn(udg_Random==15)endfunctionfunction Trig_Sunduk_kill_Func003Func017001 takes nothing returns booleanreturn(udg_Random==16)endfunctionfunction Trig_Sunduk_kill_Func003Func018001 takes nothing returns booleanreturn(udg_Random==17)endfunctionfunction Trig_Sunduk_kill_Func003Func019001 takes nothing returns booleanreturn(udg_Random==18)endfunctionfunction Trig_Sunduk_kill_Func003Func020001 takes nothing returns booleanreturn(udg_Random==19)endfunctionfunction Trig_Sunduk_kill_Func003Func021001 takes nothing returns booleanreturn(udg_Random==20)endfunctionfunction Trig_Sunduk_kill_Func003Func022001 takes nothing returns booleanreturn(udg_Random==21)endfunctionfunction Trig_Sunduk_kill_Func003Func023001 takes nothing returns booleanreturn(udg_Random==22)endfunctionfunction Trig_Sunduk_kill_Func003Func024001 takes nothing returns booleanreturn(udg_Random==23)endfunctionfunction Trig_Sunduk_kill_Func003Func025001 takes nothing returns booleanreturn(udg_Random==24)endfunctionfunction Trig_Sunduk_kill_Func003Func026001 takes nothing returns booleanreturn(udg_Random==25)endfunctionfunction Trig_Sunduk_kill_Func003Func027001 takes nothing returns booleanreturn(udg_Random==26)endfunctionfunction Trig_Sunduk_kill_Func003Func028001 takes nothing returns booleanreturn(udg_Random==27)endfunctionfunction Trig_Sunduk_kill_Func003Func029001 takes nothing returns booleanreturn(udg_Random==28)endfunctionfunction Trig_Sunduk_kill_Func003Func030001 takes nothing returns booleanreturn(udg_Random==29)endfunctionfunction Trig_Sunduk_kill_Func003Func031001 takes nothing returns booleanreturn(udg_Random==30)endfunctionfunction Trig_Sunduk_kill_Func003Func032001 takes nothing returns booleanreturn(udg_Random==31)endfunctionfunction Trig_Sunduk_kill_Func003Func033001 takes nothing returns booleanreturn(udg_Random==32)endfunctionfunction Trig_Sunduk_kill_Func003Func034001 takes nothing returns booleanreturn(udg_Random==33)endfunctionfunction Trig_Sunduk_kill_Func003Func035001 takes nothing returns booleanreturn(udg_Random==34)endfunctionfunction Trig_Sunduk_kill_Func003Func036001 takes nothing returns booleanreturn(udg_Random==35)endfunctionfunction Trig_Sunduk_kill_Func003Func037001 takes nothing returns booleanreturn(udg_Random==36)endfunctionfunction Trig_Sunduk_kill_Func003Func038001 takes nothing returns booleanreturn(udg_Random==37)endfunctionfunction Trig_Sunduk_kill_Func003Func039001 takes nothing returns booleanreturn(udg_Random==38)endfunctionfunction Trig_Sunduk_kill_Func003Func040001 takes nothing returns booleanreturn(udg_Random==39)endfunctionfunction Trig_Sunduk_kill_Func003Func041001 takes nothing returns booleanreturn(udg_Random==40)endfunctionfunction Trig_Sunduk_kill_Func003Func042001 takes nothing returns booleanreturn(udg_Random==41)endfunctionfunction Trig_Sunduk_kill_Func003Func043001 takes nothing returns booleanreturn(udg_Random==42)endfunctionfunction Trig_Sunduk_kill_Func003Func044001 takes nothing returns booleanreturn(udg_Random==43)endfunctionfunction Trig_Sunduk_kill_Func003Func045001 takes nothing returns booleanreturn(udg_Random==44)endfunctionfunction Trig_Sunduk_kill_Func003Func046001 takes nothing returns booleanreturn(udg_Random==45)endfunctionfunction Trig_Sunduk_kill_Func003Func047001 takes nothing returns booleanreturn(udg_Random==46)endfunctionfunction Trig_Sunduk_kill_Func003Func048001 takes nothing returns booleanreturn(udg_Random==47)endfunctionfunction Trig_Sunduk_kill_Func003Func049001 takes nothing returns booleanreturn(udg_Random==48)endfunctionfunction Trig_Sunduk_kill_Func003Func050001 takes nothing returns booleanreturn(udg_Random==49)endfunctionfunction Trig_Sunduk_kill_Func003Func051001 takes nothing returns booleanreturn(udg_Random==50)endfunctionfunction Trig_Sunduk_kill_Func003Func054001 takes nothing returns booleanreturn(udg_Random==1)endfunctionfunction Trig_Sunduk_kill_Func003Func055001 takes nothing returns booleanreturn(udg_Random==2)endfunctionfunction Trig_Sunduk_kill_Func003Func056001 takes nothing returns booleanreturn(udg_Random==3)endfunctionfunction Trig_Sunduk_kill_Func003Func057001 takes nothing returns booleanreturn(udg_Random==4)endfunctionfunction Trig_Sunduk_kill_Func003Func058001 takes nothing returns booleanreturn(udg_Random==5)endfunctionfunction Trig_Sunduk_kill_Func003Func059001 takes nothing returns booleanreturn(udg_Random==6)endfunctionfunction Trig_Sunduk_kill_Func003Func060001 takes nothing returns booleanreturn(udg_Random==7)endfunctionfunction Trig_Sunduk_kill_Func003Func061001 takes nothing returns booleanreturn(udg_Random==8)endfunctionfunction Trig_Sunduk_kill_Func003Func062001 takes nothing returns booleanreturn(udg_Random==9)endfunctionfunction Trig_Sunduk_kill_Func003Func063001 takes nothing returns booleanreturn(udg_Random==10)endfunctionfunction Trig_Sunduk_kill_Func003Func064001 takes nothing returns booleanreturn(udg_Random==11)endfunctionfunction Trig_Sunduk_kill_Func003Func065001 takes nothing returns booleanreturn(udg_Random==12)endfunctionfunction Trig_Sunduk_kill_Func003Func066001 takes nothing returns booleanreturn(udg_Random==13)endfunctionfunction Trig_Sunduk_kill_Func003Func067001 takes nothing returns booleanreturn(udg_Random==14)endfunctionfunction Trig_Sunduk_kill_Func003Func068001 takes nothing returns booleanreturn(udg_Random==15)endfunctionfunction Trig_Sunduk_kill_Func003C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='h00K'))thenreturn false
endifreturn trueendfunctionfunction Trig_Sunduk_kill_Actions takes nothing returns nothingif(Trig_Sunduk_kill_Func001C())thenset udg_Random=GetRandomInt(1,50)if(Trig_Sunduk_kill_Func001Func002001())then
call CreateItemLoc('rat9',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func003001())then
call CreateItemLoc('stwa',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func004001())then
call CreateItemLoc('sor1',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func005001())then
call CreateItemLoc('sor6',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func006001())then
call CreateItemLoc('mlst',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func007001())then
call CreateItemLoc('rugt',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func008001())then
call CreateItemLoc('lure',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func009001())then
call CreateItemLoc('sor9',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func010001())then
call CreateItemLoc('rat6',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func011001())then
call CreateItemLoc('srbd',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func012001())then
call CreateItemLoc('sor2',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func013001())then
call CreateItemLoc('sor7',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func014001())then
call CreateItemLoc('dsum',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func015001())then
call CreateItemLoc('frhg',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func016001())then
call CreateItemLoc('shrs',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func017001())then
call CreateItemLoc('afac',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func018001())then
call CreateItemLoc('cnob',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func019001())then
call CreateItemLoc('tfar',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func020001())then
call CreateItemLoc('sksh',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func021001())then
call CreateItemLoc('fwss',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func022001())then
call CreateItemLoc('ram3',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func023001())then
call CreateItemLoc('brag',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func024001())then
call CreateItemLoc('gcel',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func025001())then
call CreateItemLoc('stre',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func026001())then
call CreateItemLoc('rde0',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func027001())then
call CreateItemLoc('rde1',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func028001())then
call CreateItemLoc('blba',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func029001())then
call CreateItemLoc('crdt',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func030001())then
call CreateItemLoc('silk',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func031001())then
call CreateItemLoc('bspd',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func032001())then
call CreateItemLoc('amrc',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func033001())then
call CreateItemLoc('evtl',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func034001())then
call CreateItemLoc('wlsd',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func035001())then
call CreateItemLoc('wshs',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func036001())then
call CreateItemLoc('jdrn',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func037001())then
call CreateItemLoc('sprn',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func038001())then
call CreateItemLoc('soul',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func039001())then
call CreateItemLoc('clfm',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func040001())then
call CreateItemLoc('spsh',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func041001())then
call CreateItemLoc('penr',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func042001())then
call CreateItemLoc('gldo',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func043001())then
call CreateItemLoc('gemt',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func044001())then
call CreateItemLoc('sbch',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func045001())then
call CreateItemLoc('ocor',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func046001())then
call CreateItemLoc('pnvl',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func047001())then
call CreateItemLoc('ofir',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func048001())then
call CreateItemLoc('oslo',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func049001())then
call CreateItemLoc('ward',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func050001())then
call CreateItemLoc('pmna',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func051001())then
call CreateItemLoc('phea',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifcall TriggerSleepAction(0.10)set udg_Random=GetRandomInt(1,15)if(Trig_Sunduk_kill_Func001Func054001())then
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Elfy),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func055001())then
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Prokliatie_Elfy),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func056001())then
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func057001())then
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func058001())then
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func059001())then
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func060001())then
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func061001())then
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func062001())then
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func063001())then
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func064001())then
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func065001())then
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Podzemelie_neruba_2),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func066001())then
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_9),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func067001())then
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func001Func068001())then
call CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Orda),bj_UNIT_FACING)else
call DoNothing()
endifelse
endifif(Trig_Sunduk_kill_Func002C())thenset udg_Random=GetRandomInt(1,50)if(Trig_Sunduk_kill_Func002Func002001())then
call CreateItemLoc('ratc',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func003001())then
call CreateItemLoc('srtl',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func004001())then
call CreateItemLoc('sor3',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func005001())then
call CreateItemLoc('odef',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func006001())then
call CreateItemLoc('rump',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func007001())then
call CreateItemLoc('iwbr',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func008001())then
call CreateItemLoc('stpg',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func009001())then
call CreateItemLoc('rag1',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func010001())then
call CreateItemLoc('rat6',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func011001())then
call CreateItemLoc('srbd',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func012001())then
call CreateItemLoc('sor2',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func013001())then
call CreateItemLoc('sor7',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func014001())then
call CreateItemLoc('dsum',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func015001())then
call CreateItemLoc('frhg',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func016001())then
call CreateItemLoc('shrs',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func017001())then
call CreateItemLoc('afac',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func018001())then
call CreateItemLoc('anfg',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func019001())then
call CreateItemLoc('tfar',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func020001())then
call CreateItemLoc('arsh',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func021001())then
call CreateItemLoc('fwss',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func022001())then
call CreateItemLoc('rlif',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func023001())then
call CreateItemLoc('brag',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func024001())then
call CreateItemLoc('rst1',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func025001())then
call CreateItemLoc('stre',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func026001())then
call CreateItemLoc('rde2',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func027001())then
call CreateItemLoc('rde1',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func028001())then
call CreateItemLoc('hbth',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func029001())then
call CreateItemLoc('crdt',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func030001())then
call CreateItemLoc('belv',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func031001())then
call CreateItemLoc('bspd',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func032001())then
call CreateItemLoc('bfhr',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func033001())then
call CreateItemLoc('evtl',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func034001())then
call CreateItemLoc('fgfh',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func035001())then
call CreateItemLoc('wshs',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func036001())then
call CreateItemLoc('rnsp',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func037001())then
call CreateItemLoc('sprn',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func038001())then
call CreateItemLoc('rin1',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func039001())then
call CreateItemLoc('clfm',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func040001())then
call CreateItemLoc('rat3',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func041001())then
call CreateItemLoc('tmmt',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func042001())then
call CreateItemLoc('sor4',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func043001())then
call CreateItemLoc('lgdh',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func044001())then
call CreateItemLoc('lhst',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func045001())then
call CreateItemLoc('spre',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func046001())then
call CreateItemLoc('tbsm',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func047001())then
call CreateItemLoc('crys',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func048001())then
call CreateItemLoc('fgfh',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func049001())then
call CreateItemLoc('bfhr',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func050001())then
call CreateItemLoc('rin1',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func051001())then
call CreateItemLoc('rnsp',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifcall TriggerSleepAction(0.10)set udg_Random=GetRandomInt(1,15)if(Trig_Sunduk_kill_Func002Func054001())then
call CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Elfy),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func055001())then
call CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Prokliatie_Elfy),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func056001())then
call CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func057001())then
call CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func058001())then
call CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func059001())then
call CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func060001())then
call CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func061001())then
call CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func062001())then
call CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func063001())then
call CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func064001())then
call CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func065001())then
call CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Podzemelie_neruba_2),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func066001())then
call CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_9),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func067001())then
call CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func002Func068001())then
call CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Orda),bj_UNIT_FACING)else
call DoNothing()
endifelse
endifif(Trig_Sunduk_kill_Func003C())thenset udg_Random=GetRandomInt(1,50)if(Trig_Sunduk_kill_Func003Func002001())then
call CreateItemLoc('ratc',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func003001())then
call CreateItemLoc('srtl',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func004001())then
call CreateItemLoc('sor3',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func005001())then
call CreateItemLoc('odef',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func006001())then
call CreateItemLoc('rump',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func007001())then
call CreateItemLoc('iwbr',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func008001())then
call CreateItemLoc('stpg',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func009001())then
call CreateItemLoc('rag1',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func010001())then
call CreateItemLoc('frgd',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func011001())then
call CreateItemLoc('hval',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func012001())then
call CreateItemLoc('sor5',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func013001())then
call CreateItemLoc('sor8',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func014001())then
call CreateItemLoc('ssil',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func015001())then
call CreateItemLoc('gsou',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func016001())then
call CreateItemLoc('tlum',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func017001())then
call CreateItemLoc('kpin',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func018001())then
call CreateItemLoc('shen',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func019001())then
call CreateItemLoc('anfg',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func020001())then
call CreateItemLoc('rwiz',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func021001())then
call CreateItemLoc('stel',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func022001())then
call CreateItemLoc('ram4',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func023001())then
call CreateItemLoc('ram1',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func024001())then
call CreateItemLoc('bgst',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func025001())then
call CreateItemLoc('brac',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func026001())then
call CreateItemLoc('sfog',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func027001())then
call CreateItemLoc('rde3',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func028001())then
call CreateItemLoc('hcun',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func029001())then
call CreateItemLoc('ckng',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func030001())then
call CreateItemLoc('wild',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func031001())then
call CreateItemLoc('ratf',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func032001())then
call CreateItemLoc('wneg',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func033001())then
call CreateItemLoc('rots',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func034001())then
call CreateItemLoc('fgdg',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func035001())then
call CreateItemLoc('fgrd',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func036001())then
call CreateItemLoc('fgun',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func037001())then
call CreateItemLoc('lnrn',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func038001())then
call CreateItemLoc('mcou',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func039001())then
call CreateItemLoc('ciri',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func040001())then
call CreateItemLoc('rat3',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func041001())then
call CreateItemLoc('tmmt',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func042001())then
call CreateItemLoc('sor4',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func043001())then
call CreateItemLoc('lgdh',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func044001())then
call CreateItemLoc('lhst',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func045001())then
call CreateItemLoc('spre',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func046001())then
call CreateItemLoc('tbsm',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func047001())then
call CreateItemLoc('crys',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func048001())then
call CreateItemLoc('fgfh',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func049001())then
call CreateItemLoc('bfhr',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func050001())then
call CreateItemLoc('rin1',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func051001())then
call CreateItemLoc('rnsp',GetUnitLoc(GetDyingUnit()))else
call DoNothing()
endifcall TriggerSleepAction(0.10)set udg_Random=GetRandomInt(1,15)if(Trig_Sunduk_kill_Func003Func054001())then
call CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Elfy),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func055001())then
call CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Prokliatie_Elfy),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func056001())then
call CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func057001())then
call CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func058001())then
call CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func059001())then
call CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func060001())then
call CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func061001())then
call CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func062001())then
call CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func063001())then
call CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func064001())then
call CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func065001())then
call CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Podzemelie_neruba_2),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func066001())then
call CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_9),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func067001())then
call CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Sunduk_kill_Func003Func068001())then
call CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Orda),bj_UNIT_FACING)else
call DoNothing()
endifelse
endifendfunctionfunction InitTrig_Sunduk_kill takes nothing returns nothingset gg_trg_Sunduk_kill=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sunduk_kill,EVENT_PLAYER_UNIT_DEATH)call TriggerAddCondition(gg_trg_Sunduk_kill,Condition(function Trig_Sunduk_kill_Conditions))
call TriggerAddAction(gg_trg_Sunduk_kill,function Trig_Sunduk_kill_Actions)endfunctionfunction Trig_Derevianniy_sunduk_Func006C takes nothing returns booleanif((UnitHasItemOfTypeBJ(GetAttacker(),'kybl')==true))thenreturn trueendifif((UnitHasItemOfTypeBJ(GetAttacker(),'kymn')==true))thenreturn trueendifif((UnitHasItemOfTypeBJ(GetAttacker(),'kygh')==true))thenreturn trueendifreturn false
endfunctionfunction Trig_Derevianniy_sunduk_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='h00L'))thenreturn false
endifif(not Trig_Derevianniy_sunduk_Func006C())thenreturn false
endifreturn trueendfunctionfunction Trig_Derevianniy_sunduk_Func003C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttacker(),'kybl')==true))then
return false
endifreturn trueendfunctionfunction Trig_Derevianniy_sunduk_Func004C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttacker(),'kymn')==true))then
return false
endifreturn trueendfunctionfunction Trig_Derevianniy_sunduk_Func005C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttacker(),'kygh')==true))then
return false
endifreturn trueendfunctionfunction Trig_Derevianniy_sunduk_Actions takes nothing returns nothingif(Trig_Derevianniy_sunduk_Func003C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetAttacker(),'kybl'))call KillUnit(GetAttackedUnitBJ())returnelse
endifif(Trig_Derevianniy_sunduk_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetAttacker(),'kymn'))call KillUnit(GetAttackedUnitBJ())returnelse
endifif(Trig_Derevianniy_sunduk_Func005C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetAttacker(),'kygh'))call KillUnit(GetAttackedUnitBJ())else
endifendfunctionfunction InitTrig_Derevianniy_sunduk takes nothing returns nothingset gg_trg_Derevianniy_sunduk=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Derevianniy_sunduk,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Derevianniy_sunduk,Condition(function Trig_Derevianniy_sunduk_Conditions))call TriggerAddAction(gg_trg_Derevianniy_sunduk,function Trig_Derevianniy_sunduk_Actions)endfunctionfunction Trig_Gelezniy_sunduk_Func005C takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetAttacker(),'kymn')==true))thenreturn trueendifif((UnitHasItemOfTypeBJ(GetAttacker(),'kygh')==true))thenreturn trueendifreturn false
endfunctionfunction Trig_Gelezniy_sunduk_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='h00M'))thenreturn false
endifif(not Trig_Gelezniy_sunduk_Func005C())thenreturn false
endifreturn trueendfunctionfunction Trig_Gelezniy_sunduk_Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetAttacker(),'kymn')==true))then
return false
endifreturn trueendfunctionfunction Trig_Gelezniy_sunduk_Func004C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetAttacker(),'kygh')==true))then
return false
endifreturn trueendfunctionfunction Trig_Gelezniy_sunduk_Actions takes nothing returns nothingif(Trig_Gelezniy_sunduk_Func003C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetAttacker(),'kymn'))call KillUnit(GetAttackedUnitBJ())returnelse
endifif(Trig_Gelezniy_sunduk_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetAttacker(),'kygh'))call KillUnit(GetAttackedUnitBJ())else
endifendfunctionfunction InitTrig_Gelezniy_sunduk takes nothing returns nothingset gg_trg_Gelezniy_sunduk=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Gelezniy_sunduk,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Gelezniy_sunduk,Condition(function Trig_Gelezniy_sunduk_Conditions))
call TriggerAddAction(gg_trg_Gelezniy_sunduk,function Trig_Gelezniy_sunduk_Actions)endfunctionfunction Trig_Magiheskiy_sunduk_Func004C takes nothing returns booleanif((UnitHasItemOfTypeBJ(GetAttacker(),'kygh')==true))thenreturn trueendifreturn false
endfunctionfunction Trig_Magiheskiy_sunduk_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttackedUnitBJ())=='h00K'))thenreturn false
endifif(not Trig_Magiheskiy_sunduk_Func004C())thenreturn false
endifreturn trueendfunctionfunction Trig_Magiheskiy_sunduk_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttacker(),'kygh')==true))then
return false
endifreturn trueendfunctionfunction Trig_Magiheskiy_sunduk_Actions takes nothing returns nothingif(Trig_Magiheskiy_sunduk_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetAttacker(),'kygh'))else
endifcall KillUnit(GetAttackedUnitBJ())endfunctionfunction InitTrig_Magiheskiy_sunduk takes nothing returns nothingset gg_trg_Magiheskiy_sunduk=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Magiheskiy_sunduk,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Magiheskiy_sunduk,Condition(function Trig_Magiheskiy_sunduk_Conditions))
call TriggerAddAction(gg_trg_Magiheskiy_sunduk,function Trig_Magiheskiy_sunduk_Actions)endfunctionfunction Trig_Zacharovanniy_sunduk_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zacharovanniy_sunduk_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'k3m3')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zacharovanniy_sunduk_Actions takes nothing returns nothing
if(Trig_Zacharovanniy_sunduk_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'k3m3'))call DisableTrigger(GetTriggeringTrigger())call KillUnit(gg_unit_h01K_0757)
else
call DisplayTextToForce(GetPlayersAll(),"|c0090ee90На сундуке есть изоброжение трех лун.|r")endifendfunctionfunction InitTrig_Zacharovanniy_sunduk takes nothing returns nothing
set gg_trg_Zacharovanniy_sunduk=CreateTrigger()call TriggerRegisterUnitInRangeSimple(gg_trg_Zacharovanniy_sunduk,256,gg_unit_h01K_0757)
call TriggerAddCondition(gg_trg_Zacharovanniy_sunduk,Condition(function Trig_Zacharovanniy_sunduk_Conditions))call TriggerAddAction(gg_trg_Zacharovanniy_sunduk,function Trig_Zacharovanniy_sunduk_Actions)endfunctionfunction Trig_Serdce_azuny_1_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'azhr')==true))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Serdce_azuny_1_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'azhr'))call SetDoodadAnimationRectBJ("Stand Alternate",'AOks',gg_rct_Serdce_azuny_1)call SetPlayerTechResearchedSwap('Resw',(GetPlayerTechCountSimple('Resw',Player(0))+1),Player(0))call SetPlayerTechResearchedSwap('Resw',(GetPlayerTechCountSimple('Resw',Player(1))+1),Player(1))call SetPlayerTechResearchedSwap('Resw',(GetPlayerTechCountSimple('Resw',Player(2))+1),Player(2))call SetPlayerTechResearchedSwap('Resw',(GetPlayerTechCountSimple('Resw',Player(3))+1),Player(3))call SetPlayerTechResearchedSwap('Resw',(GetPlayerTechCountSimple('Resw',Player(4))+1),Player(4))call SetPlayerTechResearchedSwap('Resw',(GetPlayerTechCountSimple('Resw',Player(5))+1),Player(5))call SetPlayerTechResearchedSwap('Resw',(GetPlayerTechCountSimple('Resw',Player(7))+1),Player(7))endfunctionfunction InitTrig_Serdce_azuny_1 takes nothing returns nothingset gg_trg_Serdce_azuny_1=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Serdce_azuny_1,gg_rct_Serdce_azuny_1)
call TriggerAddCondition(gg_trg_Serdce_azuny_1,Condition(function Trig_Serdce_azuny_1_Conditions))call TriggerAddAction(gg_trg_Serdce_azuny_1,function Trig_Serdce_azuny_1_Actions)endfunctionfunction Trig_Serdce_azuny_2_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'azhr')==true))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Serdce_azuny_2_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'azhr'))call SetDoodadAnimationRectBJ("Stand Alternate",'AOgs',gg_rct_Serdce_azuny_2)call SetPlayerTechResearchedSwap('Resm',(GetPlayerTechCountSimple('Resm',Player(0))+1),Player(0))call SetPlayerTechResearchedSwap('Resm',(GetPlayerTechCountSimple('Resm',Player(1))+1),Player(1))call SetPlayerTechResearchedSwap('Resm',(GetPlayerTechCountSimple('Resm',Player(2))+1),Player(2))call SetPlayerTechResearchedSwap('Resm',(GetPlayerTechCountSimple('Resm',Player(3))+1),Player(3))call SetPlayerTechResearchedSwap('Resm',(GetPlayerTechCountSimple('Resm',Player(4))+1),Player(4))call SetPlayerTechResearchedSwap('Resm',(GetPlayerTechCountSimple('Resm',Player(5))+1),Player(5))call SetPlayerTechResearchedSwap('Resm',(GetPlayerTechCountSimple('Resm',Player(7))+1),Player(7))endfunctionfunction InitTrig_Serdce_azuny_2 takes nothing returns nothingset gg_trg_Serdce_azuny_2=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Serdce_azuny_2,gg_rct_Serdce_azuny_2)
call TriggerAddCondition(gg_trg_Serdce_azuny_2,Condition(function Trig_Serdce_azuny_2_Conditions))call TriggerAddAction(gg_trg_Serdce_azuny_2,function Trig_Serdce_azuny_2_Actions)endfunctionfunction Trig_Serdce_azuny_3_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'azhr')==true))thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Serdce_azuny_3_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'azhr'))call SetDoodadAnimationRectBJ("Stand Alternate",'AOgs',gg_rct_Serdce_azuny_3)call SetPlayerTechResearchedSwap('Resm',(GetPlayerTechCountSimple('Resm',Player(0))+1),Player(0))call SetPlayerTechResearchedSwap('Resm',(GetPlayerTechCountSimple('Resm',Player(1))+1),Player(1))call SetPlayerTechResearchedSwap('Resm',(GetPlayerTechCountSimple('Resm',Player(2))+1),Player(2))call SetPlayerTechResearchedSwap('Resm',(GetPlayerTechCountSimple('Resm',Player(3))+1),Player(3))call SetPlayerTechResearchedSwap('Resm',(GetPlayerTechCountSimple('Resm',Player(4))+1),Player(4))call SetPlayerTechResearchedSwap('Resm',(GetPlayerTechCountSimple('Resm',Player(5))+1),Player(5))call SetPlayerTechResearchedSwap('Resm',(GetPlayerTechCountSimple('Resm',Player(7))+1),Player(7))endfunctionfunction InitTrig_Serdce_azuny_3 takes nothing returns nothingset gg_trg_Serdce_azuny_3=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Serdce_azuny_3,gg_rct_Serdce_azuny_3)
call TriggerAddCondition(gg_trg_Serdce_azuny_3,Condition(function Trig_Serdce_azuny_3_Conditions))call TriggerAddAction(gg_trg_Serdce_azuny_3,function Trig_Serdce_azuny_3_Actions)endfunctionfunction Trig_Richag_1_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call PingMinimapLocForForceEx(GetPlayersAll(),GetDestructableLoc(gg_dest_YT00_3274),5.00,bj_MINIMAPPINGSTYLE_ATTACK,0.00,100.00,0.00)call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Мост востановлен.|r")call DestructableRestoreLife(gg_dest_YT00_3274,GetDestructableMaxLife(GetLastCreatedDestructable()),true)endfunctionfunction InitTrig_Richag_1 takes nothing returns nothing
set gg_trg_Richag_1=CreateTrigger()call TriggerRegisterDeathEvent(gg_trg_Richag_1,gg_dest_DTlv_6200)call TriggerAddAction(gg_trg_Richag_1,function Trig_Richag_1_Actions)endfunctionfunction Trig_Richag_2_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call RemoveDestructable(gg_dest_BTrs_9523)endfunctionfunction InitTrig_Richag_2 takes nothing returns nothing
set gg_trg_Richag_2=CreateTrigger()call TriggerRegisterDeathEvent(gg_trg_Richag_2,gg_dest_DTlv_9493)call TriggerAddAction(gg_trg_Richag_2,function Trig_Richag_2_Actions)endfunctionfunction Trig_Richag_3_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call ModifyGateBJ(bj_GATEOPERATION_OPEN,gg_dest_ZTd4_10660)endfunctionfunction InitTrig_Richag_3 takes nothing returns nothing
set gg_trg_Richag_3=CreateTrigger()call TriggerRegisterDeathEvent(gg_trg_Richag_3,gg_dest_DTlv_10675)call TriggerAddAction(gg_trg_Richag_3,function Trig_Richag_3_Actions)endfunctionfunction Trig_Richag_4_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call ModifyGateBJ(bj_GATEOPERATION_OPEN,gg_dest_LTg3_11006)endfunctionfunction InitTrig_Richag_4 takes nothing returns nothing
set gg_trg_Richag_4=CreateTrigger()call TriggerRegisterDeathEvent(gg_trg_Richag_4,gg_dest_DTlv_11009)call TriggerAddAction(gg_trg_Richag_4,function Trig_Richag_4_Actions)endfunctionfunction Trig_Pauk_go_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Pauk_go_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspr',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspb',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspb',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspb',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspb',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspb',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspb',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nspb',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ucry',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00A',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00A',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00A',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00A',Player(10),GetRandomLocInRect(gg_rct_Podzemelie_neruba_3),bj_UNIT_FACING)endfunctionfunction InitTrig_Pauk_go takes nothing returns nothingset gg_trg_Pauk_go=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Pauk_go,gg_rct_Podzemelie_neruba_1)call TriggerAddCondition(gg_trg_Pauk_go,Condition(function Trig_Pauk_go_Conditions))
call TriggerAddAction(gg_trg_Pauk_go,function Trig_Pauk_go_Actions)endfunctionfunction Trig_Satir_gp_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Satir_gp_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'nstl',Player(11),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nstl',Player(11),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nstl',Player(11),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nstl',Player(11),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nstl',Player(11),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nstl',Player(11),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nstl',Player(11),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nstl',Player(11),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nsts',Player(11),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nsts',Player(11),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nsts',Player(11),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nsts',Player(11),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
endfunctionfunction InitTrig_Satir_gp takes nothing returns nothing
set gg_trg_Satir_gp=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Satir_gp,gg_rct_Zona_8)call TriggerAddCondition(gg_trg_Satir_gp,Condition(function Trig_Satir_gp_Conditions))call TriggerAddAction(gg_trg_Satir_gp,function Trig_Satir_gp_Actions)endfunctionfunction Trig_Satiry_Func001Func002Func003C takes nothing returns booleanif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Satiry_Func001Func002Func004C takes nothing returns booleanif(not(udg_Random_drop>10))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Satiry_Func001Func002Func005C takes nothing returns booleanif(not(udg_Random_drop>16))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Satiry_Func001Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nstl'))thenreturn false
endifreturn trueendfunctionfunction Trig_Satiry_Func001Func003Func003C takes nothing returns booleanif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Satiry_Func001Func003Func004C takes nothing returns booleanif(not(udg_Random_drop>10))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Satiry_Func001Func003Func005C takes nothing returns booleanif(not(udg_Random_drop>16))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Satiry_Func001Func003C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nsts'))thenreturn false
endifreturn trueendfunctionfunction Trig_Satiry_Func001Func004Func003C takes nothing returns booleanif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Satiry_Func001Func004Func004C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Satiry_Func001Func004C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nsth'))thenreturn false
endifreturn trueendfunctionfunction Trig_Satiry_Func001Func005Func002C takes nothing returns booleanif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Satiry_Func001Func005Func003C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Satiry_Func001Func005Func004C takes nothing returns booleanif(not(udg_Random_drop>30))thenreturn false
endifif(not(udg_Random_drop<=50))then
return false
endifreturn trueendfunctionfunction Trig_Satiry_Func001Func005C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nbdo'))thenreturn false
endifreturn trueendfunctionfunction Trig_Satiry_Func001C takes nothing returns booleanif(not(udg_MoobS[5]>=300))thenreturn false
endifreturn trueendfunctionfunction Trig_Satiry_Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nmcf'))thenreturn false
endifreturn trueendfunctionfunction Trig_Satiry_Actions takes nothing returns nothingif(Trig_Satiry_Func001C())thencall DisplayTextToForce(GetPlayersAll(),"|c0000FF00Эльфийский лес очищен.|r
|c00FFFF00Награда: 10000 золота|r")call DisableTrigger(GetTriggeringTrigger())call AdjustPlayerStateBJ(10000,Player(0),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(10000,Player(1),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(10000,Player(2),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(10000,Player(3),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(10000,Player(4),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(10000,Player(5),PLAYER_STATE_RESOURCE_GOLD)
else
if(Trig_Satiry_Func001Func002C())thenset udg_MoobS[5]=(udg_MoobS[5]+1)set udg_Random_drop=GetRandomInt(1,100)if(Trig_Satiry_Func001Func002Func003C())then
call CreateItemLoc(ChooseRandomItemBJ(4),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Satiry_Func001Func002Func004C())then
call CreateItemLoc('I090',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Satiry_Func001Func002Func005C())then
call CreateItemLoc('I0CS',GetUnitLoc(GetDyingUnit()))else
endifcall CreateNUnitsAtLoc(1,'nstl',Player(11),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
else
endifif(Trig_Satiry_Func001Func003C())thenset udg_MoobS[5]=(udg_MoobS[5]+1)set udg_Random_drop=GetRandomInt(1,100)if(Trig_Satiry_Func001Func003Func003C())then
call CreateItemLoc(ChooseRandomItemBJ(4),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Satiry_Func001Func003Func004C())then
call CreateItemLoc('I090',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Satiry_Func001Func003Func005C())then
call CreateItemLoc('I0CS',GetUnitLoc(GetDyingUnit()))else
endifcall CreateNUnitsAtLoc(1,'nsts',Player(11),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
else
endifif(Trig_Satiry_Func001Func004C())thenset udg_MoobS[5]=(udg_MoobS[5]+1)set udg_Random_drop=GetRandomInt(1,100)if(Trig_Satiry_Func001Func004Func003C())then
call CreateItemLoc('fgsk',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Satiry_Func001Func004Func004C())then
call CreateItemLoc('I090',GetUnitLoc(GetDyingUnit()))else
endifcall TriggerSleepAction(120.00)call CreateNUnitsAtLoc(1,'nsth',Player(11),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
else
endifif(Trig_Satiry_Func001Func005C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Satiry_Func001Func005Func002C())then
call CreateItemLoc('sfog',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Satiry_Func001Func005Func003C())then
call CreateItemLoc('I02U',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Satiry_Func001Func005Func004C())then
call CreateItemLoc('bgst',GetUnitLoc(GetDyingUnit()))else
endifelse
endifendifif(Trig_Satiry_Func002C())thencall CreateItemLoc('I09L',GetUnitLoc(GetDyingUnit()))else
endifendfunctionfunction InitTrig_Satiry takes nothing returns nothingset gg_trg_Satiry=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Satiry,EVENT_PLAYER_UNIT_DEATH)call TriggerAddAction(gg_trg_Satiry,function Trig_Satiry_Actions)endfunctionfunction Trig_Satir_Ogon_Func007C takes nothing returns booleanif((GetUnitTypeId(GetAttackedUnitBJ())=='nsts'))then
return trueendifif((GetUnitTypeId(GetAttackedUnitBJ())=='nwzg'))then
return trueendifreturn false
endfunctionfunction Trig_Satir_Ogon_Conditions takes nothing returns booleanif(not Trig_Satir_Ogon_Func007C())thenreturn false
endifreturn trueendfunctionfunction Trig_Satir_Ogon_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call IssueTargetOrder(GetAttackedUnitBJ(),"manaburn",GetAttacker())call TriggerSleepAction(5.00)call IssueTargetOrder(GetAttackedUnitBJ(),"rejuvination",GetAttackedUnitBJ())call TriggerSleepAction(20.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Satir_Ogon takes nothing returns nothingset gg_trg_Satir_Ogon=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Satir_Ogon,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Satir_Ogon,Condition(function Trig_Satir_Ogon_Conditions))call TriggerAddAction(gg_trg_Satir_Ogon,function Trig_Satir_Ogon_Actions)endfunctionfunction Trig_Gnoll_go_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gnoll_go_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'ngno',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngno',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngno',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngno',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngno',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngno',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngno',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngno',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngno',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngna',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngna',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngna',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngna',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngna',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngnw',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
endfunctionfunction InitTrig_Gnoll_go takes nothing returns nothing
set gg_trg_Gnoll_go=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Gnoll_go,gg_rct_Zona_7)call TriggerAddCondition(gg_trg_Gnoll_go,Condition(function Trig_Gnoll_go_Conditions))call TriggerAddAction(gg_trg_Gnoll_go,function Trig_Gnoll_go_Actions)endfunctionfunction Trig_Gnolly_Func001Func002Func003C takes nothing returns booleanif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Gnolly_Func001Func002Func004C takes nothing returns booleanif(not(udg_Random_drop>10))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Gnolly_Func001Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='ngna'))thenreturn false
endifreturn trueendfunctionfunction Trig_Gnolly_Func001Func003Func003C takes nothing returns booleanif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Gnolly_Func001Func003Func004C takes nothing returns booleanif(not(udg_Random_drop>10))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Gnolly_Func001Func003C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='ngno'))thenreturn false
endifreturn trueendfunctionfunction Trig_Gnolly_Func001Func004Func003C takes nothing returns booleanif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Gnolly_Func001Func004Func004C takes nothing returns booleanif(not(udg_Random_drop>20))thenreturn false
endifif(not(udg_Random_drop<=40))then
return false
endifreturn trueendfunctionfunction Trig_Gnolly_Func001Func004C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='ngnw'))thenreturn false
endifreturn trueendfunctionfunction Trig_Gnolly_Func001Func005Func003C takes nothing returns booleanif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Gnolly_Func001Func005C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nsqa'))thenreturn false
endifreturn trueendfunctionfunction Trig_Gnolly_Func001Func006Func002C takes nothing returns booleanif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Gnolly_Func001Func006Func003C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Gnolly_Func001Func006Func004C takes nothing returns booleanif(not(udg_Random_drop>30))thenreturn false
endifif(not(udg_Random_drop<=50))then
return false
endifreturn trueendfunctionfunction Trig_Gnolly_Func001Func006C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nmgr'))thenreturn false
endifreturn trueendfunctionfunction Trig_Gnolly_Func001C takes nothing returns booleanif(not(udg_MoobS[4]>=200))thenreturn false
endifreturn trueendfunctionfunction Trig_Gnolly_Actions takes nothing returns nothingif(Trig_Gnolly_Func001C())thencall DisplayTextToForce(GetPlayersAll(),"|c0000FF00Лес гноллов очищен.|r
|c00FFFF00Награда: 8000 золота|r")
call DisableTrigger(GetTriggeringTrigger())call AdjustPlayerStateBJ(8000,Player(0),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(8000,Player(1),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(8000,Player(2),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(8000,Player(3),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(8000,Player(4),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(8000,Player(5),PLAYER_STATE_RESOURCE_GOLD)else
if(Trig_Gnolly_Func001Func002C())thenset udg_MoobS[4]=(udg_MoobS[4]+1)set udg_Random_drop=GetRandomInt(1,100)if(Trig_Gnolly_Func001Func002Func003C())then
call CreateItemLoc(ChooseRandomItemBJ(3),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Gnolly_Func001Func002Func004C())then
call CreateItemLoc('I08Z',GetUnitLoc(GetDyingUnit()))else
endifcall CreateNUnitsAtLoc(1,'ngna',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
else
endifif(Trig_Gnolly_Func001Func003C())thenset udg_MoobS[4]=(udg_MoobS[4]+1)set udg_Random_drop=GetRandomInt(1,100)if(Trig_Gnolly_Func001Func003Func003C())then
call CreateItemLoc(ChooseRandomItemBJ(3),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Gnolly_Func001Func003Func004C())then
call CreateItemLoc('I08Z',GetUnitLoc(GetDyingUnit()))else
endifcall CreateNUnitsAtLoc(1,'ngno',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
else
endifif(Trig_Gnolly_Func001Func004C())thenset udg_MoobS[4]=(udg_MoobS[4]+1)set udg_Random_drop=GetRandomInt(1,100)if(Trig_Gnolly_Func001Func004Func003C())then
call CreateItemLoc(ChooseRandomItemBJ(3),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Gnolly_Func001Func004Func004C())then
call CreateItemLoc('I08Z',GetUnitLoc(GetDyingUnit()))else
endifcall CreateNUnitsAtLoc(1,'ngnw',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
else
endifif(Trig_Gnolly_Func001Func005C())thenset udg_MoobS[4]=(udg_MoobS[4]+1)set udg_Random_drop=GetRandomInt(1,100)if(Trig_Gnolly_Func001Func005Func003C())then
call CreateItemLoc('vddl',GetUnitLoc(GetDyingUnit()))else
endifcall TriggerSleepAction(120.00)call CreateNUnitsAtLoc(1,'nsqa',Player(11),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
else
endifif(Trig_Gnolly_Func001Func006C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Gnolly_Func001Func006Func002C())then
call CreateItemLoc('I02G',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Gnolly_Func001Func006Func003C())then
call CreateItemLoc('drph',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Gnolly_Func001Func006Func004C())then
call CreateItemLoc('bgst',GetUnitLoc(GetDyingUnit()))else
endifelse
endifendifendfunctionfunction InitTrig_Gnolly takes nothing returns nothingset gg_trg_Gnolly=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Gnolly,EVENT_PLAYER_UNIT_DEATH)call TriggerAddAction(gg_trg_Gnolly,function Trig_Gnolly_Actions)endfunctionfunction Trig_Wolf_go_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Wolf_go_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nqb1',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nqb1',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nqb1',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nqb1',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nqb1',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nqb1',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nqb1',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nqb1',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlg',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlg',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlg',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlg',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlg',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlg',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlg',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwlg',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
endfunctionfunction InitTrig_Wolf_go takes nothing returns nothingset gg_trg_Wolf_go=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Wolf_go,gg_rct_Zona_1)call TriggerAddCondition(gg_trg_Wolf_go,Condition(function Trig_Wolf_go_Conditions))
call TriggerAddAction(gg_trg_Wolf_go,function Trig_Wolf_go_Actions)endfunctionfunction Trig_Wolf_Func001Func008Func003C takes nothing returns booleanif(not(udg_Random_drop<=12))then
return false
endifreturn trueendfunctionfunction Trig_Wolf_Func001Func008C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nwlt'))thenreturn false
endifreturn trueendfunctionfunction Trig_Wolf_Func001Func009Func003C takes nothing returns booleanif(not(udg_Random_drop<=24))then
return false
endifreturn trueendfunctionfunction Trig_Wolf_Func001Func009C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nwlg'))thenreturn false
endifreturn trueendfunctionfunction Trig_Wolf_Func001Func010C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nqb1'))thenreturn false
endifreturn trueendfunctionfunction Trig_Wolf_Func001Func011Func003C takes nothing returns booleanif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Wolf_Func001Func011Func004C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=25))then
return false
endifreturn trueendfunctionfunction Trig_Wolf_Func001Func011Func005C takes nothing returns booleanif(not(udg_Random_drop>25))thenreturn false
endifif(not(udg_Random_drop<=35))then
return false
endifreturn trueendfunctionfunction Trig_Wolf_Func001Func011Func006C takes nothing returns booleanif(not(udg_Random_drop>35))thenreturn false
endifif(not(udg_Random_drop<=40))then
return false
endifreturn trueendfunctionfunction Trig_Wolf_Func001Func011C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nwwg'))thenreturn false
endifreturn trueendfunctionfunction Trig_Wolf_Func001Func012Func003C takes nothing returns booleanif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Wolf_Func001Func012Func004C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Wolf_Func001Func012C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nqbh'))thenreturn false
endifreturn trueendfunctionfunction Trig_Wolf_Func001Func013Func003C takes nothing returns booleanif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Wolf_Func001Func013Func004C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Wolf_Func001Func013Func005C takes nothing returns booleanif(not(udg_Random_drop>30))thenreturn false
endifif(not(udg_Random_drop<=50))then
return false
endifreturn trueendfunctionfunction Trig_Wolf_Func001Func013C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nrzg'))thenreturn false
endifreturn trueendfunctionfunction Trig_Wolf_Func001Func014Func002C takes nothing returns booleanif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Wolf_Func001Func014Func003C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Wolf_Func001Func014Func004C takes nothing returns booleanif(not(udg_Random_drop>30))thenreturn false
endifif(not(udg_Random_drop<=50))then
return false
endifreturn trueendfunctionfunction Trig_Wolf_Func001Func014C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='ngz4'))thenreturn false
endifreturn trueendfunctionfunction Trig_Wolf_Func001C takes nothing returns booleanif(not(udg_Wolf>=300))thenreturn false
endifreturn trueendfunctionfunction Trig_Wolf_Actions takes nothing returns nothing
if(Trig_Wolf_Func001C())then
call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Волчий лес очищен.|r
|c00FFFF00Награда: 1000 золота|r")call AdjustPlayerStateBJ(1000,Player(0),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1000,Player(1),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1000,Player(2),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1000,Player(3),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1000,Player(4),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1000,Player(5),PLAYER_STATE_RESOURCE_GOLD)call DisableTrigger(GetTriggeringTrigger())else
if(Trig_Wolf_Func001Func008C())thenset udg_Wolf=(udg_Wolf+1)set udg_Random_drop=GetRandomInt(1,100)if(Trig_Wolf_Func001Func008Func003C())thencall CreateItemLoc('I08Q',GetUnitLoc(GetDyingUnit()))else
endifcall CreateNUnitsAtLoc(1,'nwlt',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
else
endifif(Trig_Wolf_Func001Func009C())thenset udg_Wolf=(udg_Wolf+1)set udg_Random_drop=GetRandomInt(1,100)if(Trig_Wolf_Func001Func009Func003C())thencall CreateItemLoc('I08Q',GetUnitLoc(GetDyingUnit()))else
endifcall CreateNUnitsAtLoc(1,'nwlg',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
else
endifif(Trig_Wolf_Func001Func010C())thenset udg_Wolf=(udg_Wolf+1)call CreateNUnitsAtLoc(1,'nqb1',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
else
endifif(Trig_Wolf_Func001Func011C())thenset udg_Wolf=(udg_Wolf+1)set udg_Random_drop=GetRandomInt(1,100)if(Trig_Wolf_Func001Func011Func003C())thencall CreateItemLoc('will',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Wolf_Func001Func011Func004C())thencall CreateItemLoc('sror',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Wolf_Func001Func011Func005C())thencall CreateItemLoc('sman',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Wolf_Func001Func011Func006C())thencall CreateItemLoc('scul',GetUnitLoc(GetDyingUnit()))else
endifcall TriggerSleepAction(60.00)call CreateNUnitsAtLoc(1,'nwwg',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
else
endifif(Trig_Wolf_Func001Func012C())thenset udg_Wolf=(udg_Wolf+1)set udg_Random_drop=GetRandomInt(1,100)if(Trig_Wolf_Func001Func012Func003C())thencall CreateItemLoc('flag',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Wolf_Func001Func012Func004C())thencall CreateItemLoc('nflg',GetUnitLoc(GetDyingUnit()))else
endifcall TriggerSleepAction(150.00)call CreateNUnitsAtLoc(1,'nqbh',Player(11),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
else
endifif(Trig_Wolf_Func001Func013C())thenset udg_Wolf=(udg_Wolf+1)set udg_Random_drop=GetRandomInt(1,100)if(Trig_Wolf_Func001Func013Func003C())thencall CreateItemLoc('flag',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Wolf_Func001Func013Func004C())thencall CreateItemLoc('nflg',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Wolf_Func001Func013Func005C())thencall CreateItemLoc(ChooseRandomItemBJ(2),GetUnitLoc(GetDyingUnit()))
else
endifelse
endifif(Trig_Wolf_Func001Func014C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Wolf_Func001Func014Func002C())thencall CreateItemLoc('pghe',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Wolf_Func001Func014Func003C())thencall CreateItemLoc('I08Z',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Wolf_Func001Func014Func004C())thencall CreateItemLoc('kybl',GetUnitLoc(GetDyingUnit()))else
endifelse
endifendifendfunctionfunction InitTrig_Wolf takes nothing returns nothing
set gg_trg_Wolf=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Wolf,EVENT_PLAYER_UNIT_DEATH)call TriggerAddAction(gg_trg_Wolf,function Trig_Wolf_Actions)endfunctionfunction Trig_Ungoro_Func001C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nstw'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ungoro_Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nlkl'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ungoro_Func003C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='ntrd'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ungoro_Func004C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='njga'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ungoro_Func005C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nthl'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ungoro_Func006C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nlsn'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ungoro_Func007C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='n00Y'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ungoro_Func008C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='n00Z'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ungoro_Actions takes nothing returns nothingif(Trig_Ungoro_Func001C())thencall CreateItemLoc('I0D7',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ungoro_Func002C())thencall CreateItemLoc('I0D8',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ungoro_Func003C())thencall CreateItemLoc('I0D9',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ungoro_Func004C())thencall CreateItemLoc('I0DA',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ungoro_Func005C())thencall CreateItemLoc('I097',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ungoro_Func006C())thencall CreateItemLoc('I097',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ungoro_Func007C())thencall CreateItemLoc('whwd',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ungoro_Func008C())thencall CreateItemLoc('wtlg',GetUnitLoc(GetDyingUnit()))else
endifendfunctionfunction InitTrig_Ungoro takes nothing returns nothingset gg_trg_Ungoro=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ungoro,EVENT_PLAYER_UNIT_DEATH)call TriggerAddAction(gg_trg_Ungoro,function Trig_Ungoro_Actions)endfunctionfunction Trig_Morlock_go_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Morlock_go_Actions takes nothing returns nothingcall CreateItemLoc('rej4',GetRandomLocInRect(gg_rct_Zona_6))
call CreateItemLoc('rej4',GetRandomLocInRect(gg_rct_Zona_6))
call CreateItemLoc('rej4',GetRandomLocInRect(gg_rct_Zona_6))
call CreateItemLoc('rej4',GetRandomLocInRect(gg_rct_Zona_6))
call CreateItemLoc('rej4',GetRandomLocInRect(gg_rct_Zona_6))
call CreateItemLoc('rej4',GetRandomLocInRect(gg_rct_Zona_6))
call DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'nmpg',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nmpg',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nmpg',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nmpg',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nmpg',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nmpg',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nmrl',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nmrl',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nmrl',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nmrr',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
endfunctionfunction InitTrig_Morlock_go takes nothing returns nothingset gg_trg_Morlock_go=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Morlock_go,gg_rct_Zona_6)
call TriggerAddCondition(gg_trg_Morlock_go,Condition(function Trig_Morlock_go_Conditions))call TriggerAddAction(gg_trg_Morlock_go,function Trig_Morlock_go_Actions)endfunctionfunction Trig_Morlock_Func001Func002Func002C takes nothing returns booleanif(not(udg_Random_drop<=8))thenreturn false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func002Func003C takes nothing returns booleanif(not(udg_Random_drop>8))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nmpg'))thenreturn false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func003Func002C takes nothing returns booleanif(not(udg_Random_drop<=8))thenreturn false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func003Func003C takes nothing returns booleanif(not(udg_Random_drop>8))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func003C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nmrl'))thenreturn false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func004Func002C takes nothing returns booleanif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func004Func003C takes nothing returns booleanif(not(udg_Random_drop>10))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func004C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nmrr'))thenreturn false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func005Func002C takes nothing returns booleanif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func005Func003C takes nothing returns booleanif(not(udg_Random_drop>10))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func005C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nmrv'))thenreturn false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func006Func002C takes nothing returns booleanif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func006Func003C takes nothing returns booleanif(not(udg_Random_drop>10))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func006C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nmsc'))thenreturn false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func007C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nmh0'))thenreturn false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func008C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nmh1'))thenreturn false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func009C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nntg'))thenreturn false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func010Func002C takes nothing returns booleanif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func010C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nsnp'))thenreturn false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func011Func002C takes nothing returns booleanif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func011C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nwgs'))thenreturn false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func012Func002C takes nothing returns booleanif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func012C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nnrg'))thenreturn false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func013Func002C takes nothing returns booleanif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func013Func003C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func013Func004C takes nothing returns booleanif(not(udg_Random_drop>30))thenreturn false
endifif(not(udg_Random_drop<=50))then
return false
endifreturn trueendfunctionfunction Trig_Morlock_Func001Func013C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nahy'))thenreturn false
endifreturn trueendfunctionfunction Trig_Morlock_Func001C takes nothing returns boolean
if(not(udg_MoobS[3]>=250))thenreturn false
endifreturn trueendfunctionfunction Trig_Morlock_Actions takes nothing returns nothingif(Trig_Morlock_Func001C())thencall DisplayTextToForce(GetPlayersAll(),"|c0000FF00Болото очищено.|r
|c00FFFF00Награда: 4000 золота|r")call DisableTrigger(GetTriggeringTrigger())call AdjustPlayerStateBJ(4000,Player(0),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(4000,Player(1),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(4000,Player(2),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(4000,Player(3),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(4000,Player(4),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(4000,Player(5),PLAYER_STATE_RESOURCE_GOLD)else
if(Trig_Morlock_Func001Func002C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Morlock_Func001Func002Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(1),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Morlock_Func001Func002Func003C())thencall CreateItemLoc('I08U',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[3]=(udg_MoobS[3]+1)call CreateNUnitsAtLoc(1,'nmpg',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
else
endifif(Trig_Morlock_Func001Func003C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Morlock_Func001Func003Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(1),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Morlock_Func001Func003Func003C())thencall CreateItemLoc('I08U',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[3]=(udg_MoobS[3]+1)call CreateNUnitsAtLoc(1,'nmrl',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
else
endifif(Trig_Morlock_Func001Func004C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Morlock_Func001Func004Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(1),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Morlock_Func001Func004Func003C())thencall CreateItemLoc('I08U',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[3]=(udg_MoobS[3]+1)call CreateNUnitsAtLoc(1,'nmrr',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
else
endifif(Trig_Morlock_Func001Func005C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Morlock_Func001Func005Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(2),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Morlock_Func001Func005Func003C())thencall CreateItemLoc('I08U',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[3]=(udg_MoobS[3]+1)call CreateNUnitsAtLoc(1,'nmrv',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
else
endifif(Trig_Morlock_Func001Func006C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Morlock_Func001Func006Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(2),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Morlock_Func001Func006Func003C())thencall CreateItemLoc('I08U',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[3]=(udg_MoobS[3]+1)call CreateNUnitsAtLoc(1,'nmsc',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
else
endifif(Trig_Morlock_Func001Func007C())thencall GroupPointOrderLoc(GetRandomSubGroup(3,GetUnitsInRectOfPlayer(gg_rct_Zona_6,Player(11))),"attack",GetUnitLoc(GetKillingUnitBJ()))call CreateItemLoc('I08U',GetUnitLoc(GetDyingUnit()))call CreateItemLoc(ChooseRandomItemBJ(1),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Morlock_Func001Func008C())thencall GroupPointOrderLoc(GetRandomSubGroup(3,GetUnitsInRectOfPlayer(gg_rct_Zona_6,Player(11))),"attack",GetUnitLoc(GetKillingUnitBJ()))call CreateItemLoc('I08U',GetUnitLoc(GetDyingUnit()))call CreateItemLoc(ChooseRandomItemBJ(1),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Morlock_Func001Func009C())thencall GroupPointOrderLoc(GetRandomSubGroup(3,GetUnitsInRectOfPlayer(gg_rct_Zona_6,Player(11))),"attack",GetUnitLoc(GetKillingUnitBJ()))call CreateItemLoc('I08U',GetUnitLoc(GetDyingUnit()))call CreateItemLoc(ChooseRandomItemBJ(2),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Morlock_Func001Func010C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Morlock_Func001Func010Func002C())thencall CreateItemLoc('I08U',GetUnitLoc(GetDyingUnit()))call CreateItemLoc(ChooseRandomItemBJ(1),GetUnitLoc(GetDyingUnit()))
else
endifset udg_MoobS[3]=(udg_MoobS[3]+1)call CreateNUnitsAtLoc(1,'nsnp',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
else
endifif(Trig_Morlock_Func001Func011C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Morlock_Func001Func011Func002C())thencall CreateItemLoc('I08U',GetUnitLoc(GetDyingUnit()))call CreateItemLoc(ChooseRandomItemBJ(1),GetUnitLoc(GetDyingUnit()))
else
endifset udg_MoobS[3]=(udg_MoobS[3]+1)call CreateNUnitsAtLoc(1,'nwgs',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
else
endifif(Trig_Morlock_Func001Func012C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Morlock_Func001Func012Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(3),GetUnitLoc(GetDyingUnit()))
else
endifset udg_MoobS[3]=(udg_MoobS[3]+1)call TriggerSleepAction(60.00)call CreateNUnitsAtLoc(1,'nnrg',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
else
endifif(Trig_Morlock_Func001Func013C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Morlock_Func001Func013Func002C())thencall CreateItemLoc('pgma',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Morlock_Func001Func013Func003C())thencall CreateItemLoc('ccmd',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Morlock_Func001Func013Func004C())thencall CreateItemLoc('lnrn',GetUnitLoc(GetDyingUnit()))else
endifelse
endifendifendfunctionfunction InitTrig_Morlock takes nothing returns nothingset gg_trg_Morlock=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Morlock,EVENT_PLAYER_UNIT_DEATH)call TriggerAddAction(gg_trg_Morlock,function Trig_Morlock_Actions)endfunctionfunction Trig_Morlock_lovusjka_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Morlock_lovusjka_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call CreateDestructableLoc('LTrc',OffsetLocation(GetRectCenter(gg_rct_Morlok_lovushka),100.00,-300.00),GetRandomDirectionDeg(),1,4)call AddSpecialEffectLocBJ(GetDestructableLoc(GetLastCreatedDestructable()),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call CreateDestructableLoc('LTrc',OffsetLocation(GetRectCenter(gg_rct_Morlok_lovushka),-100.00,-300.00),GetRandomDirectionDeg(),1,3)
call AddSpecialEffectLocBJ(GetDestructableLoc(GetLastCreatedDestructable()),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,'nmtw',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(GetTriggerUnit()))call CreateNUnitsAtLoc(1,'nmtw',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(GetTriggerUnit()))call CreateNUnitsAtLoc(1,'nmtw',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(GetTriggerUnit()))call CreateNUnitsAtLoc(1,'nmtw',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(GetTriggerUnit()))call CreateNUnitsAtLoc(1,'nmtw',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(GetTriggerUnit()))call CreateNUnitsAtLoc(1,'nmtw',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(GetTriggerUnit()))call TriggerSleepAction(6.00)call CreateNUnitsAtLoc(1,'nmtw',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(GetTriggerUnit()))call CreateNUnitsAtLoc(1,'nmtw',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(GetTriggerUnit()))call CreateNUnitsAtLoc(1,'nmtw',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(GetTriggerUnit()))call CreateNUnitsAtLoc(1,'nmtw',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(GetTriggerUnit()))call CreateNUnitsAtLoc(1,'nmtw',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(GetTriggerUnit()))call CreateNUnitsAtLoc(1,'nmtw',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(GetTriggerUnit()))endfunctionfunction InitTrig_Morlock_lovusjka takes nothing returns nothing
set gg_trg_Morlock_lovusjka=CreateTrigger()call DisableTrigger(gg_trg_Morlock_lovusjka)
call TriggerRegisterEnterRectSimple(gg_trg_Morlock_lovusjka,gg_rct_Morlok_lovushka)call TriggerAddCondition(gg_trg_Morlock_lovusjka,Condition(function Trig_Morlock_lovusjka_Conditions))call TriggerAddAction(gg_trg_Morlock_lovusjka,function Trig_Morlock_lovusjka_Actions)endfunctionfunction Trig_Troll_go_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_go_Actions takes nothing returns nothing
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_2))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_2))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_2))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_2))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_2))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_2))
call DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'nftr',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nftr',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nftr',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nftr',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nftr',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nftr',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nftr',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nftr',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nftr',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nftr',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nftr',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nftr',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nftr',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfsp',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfsp',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfsp',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfsp',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfsp',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfsp',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfsp',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nftt',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nftt',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nftt',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nftt',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nftt',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nftk',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-2545.00,-8800.00),bj_UNIT_FACING)
endfunctionfunction InitTrig_Troll_go takes nothing returns nothing
set gg_trg_Troll_go=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Troll_go,gg_rct_Zona_2)call TriggerAddCondition(gg_trg_Troll_go,Condition(function Trig_Troll_go_Conditions))call TriggerAddAction(gg_trg_Troll_go,function Trig_Troll_go_Actions)endfunctionfunction Trig_Tuskarci_go_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Tuskarci_go_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'ntkf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntkf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntkf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntkf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntkf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntkf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntkf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntkf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntkf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntkf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntkt',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntkt',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntkt',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntkt',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntkt',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntkt',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntkt',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntkt',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntks',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntks',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntks',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntks',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntks',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'o00C',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'o00C',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'o00C',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'o00C',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ntkc',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-2545.00,-8800.00),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'o00D',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'o00D',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'o00D',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'o00D',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call TriggerSleepAction(720.00)call CreateNUnitsAtLoc(1,'nplg',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
endfunctionfunction InitTrig_Tuskarci_go takes nothing returns nothingset gg_trg_Tuskarci_go=CreateTrigger()call DisableTrigger(gg_trg_Tuskarci_go)call TriggerRegisterEnterRectSimple(gg_trg_Tuskarci_go,gg_rct_Zona_2)call TriggerAddCondition(gg_trg_Tuskarci_go,Condition(function Trig_Tuskarci_go_Conditions))
call TriggerAddAction(gg_trg_Tuskarci_go,function Trig_Tuskarci_go_Actions)endfunctionfunction Trig_Drenei_go_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Drenei_go_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'ndrf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrm',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrm',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrm',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrm',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrm',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrm',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrp',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrp',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrp',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrp',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrp',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrp',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ndrs',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-2545.00,-8800.00),bj_UNIT_FACING)
call TriggerSleepAction(720.00)call CreateNUnitsAtLoc(1,'ndrw',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
endfunctionfunction InitTrig_Drenei_go takes nothing returns nothingset gg_trg_Drenei_go=CreateTrigger()
call DisableTrigger(gg_trg_Drenei_go)call TriggerRegisterEnterRectSimple(gg_trg_Drenei_go,gg_rct_Zona_2)call TriggerAddCondition(gg_trg_Drenei_go,Condition(function Trig_Drenei_go_Conditions))
call TriggerAddAction(gg_trg_Drenei_go,function Trig_Drenei_go_Actions)endfunctionfunction Trig_Troll_Func001Func002Func002C takes nothing returns boolean
if(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func002Func003C takes nothing returns boolean
if(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nftr'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func003Func002C takes nothing returns boolean
if(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func003Func003C takes nothing returns boolean
if(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func003C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nfsp'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func004Func002C takes nothing returns boolean
if(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func004Func003C takes nothing returns boolean
if(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func004C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nftt'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func005Func002C takes nothing returns boolean
if(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func005Func003C takes nothing returns boolean
if(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=35))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func005C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nftk'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func006Func002C takes nothing returns boolean
if(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func006Func003C takes nothing returns boolean
if(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=35))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func006Func004C takes nothing returns boolean
if(not(udg_Random_drop>35))thenreturn false
endifif(not(udg_Random_drop<=40))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func006C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nith'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func007Func002C takes nothing returns boolean
if(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func007Func003C takes nothing returns boolean
if(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func007Func004C takes nothing returns boolean
if(not(udg_Random_drop>30))thenreturn false
endifif(not(udg_Random_drop<=50))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func007C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='njgb'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func008Func002C takes nothing returns boolean
if(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func008Func003C takes nothing returns boolean
if(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func008C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='ntkf'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func009Func002C takes nothing returns boolean
if(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func009Func003C takes nothing returns boolean
if(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func009C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='ntkt'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func010Func002C takes nothing returns boolean
if(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func010Func003C takes nothing returns boolean
if(not(udg_Random_drop>10))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func010C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='ntks'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func011C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='o00C'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func012Func002C takes nothing returns boolean
if(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func012Func003C takes nothing returns boolean
if(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func012Func004C takes nothing returns boolean
if(not(udg_Random_drop>30))thenreturn false
endifif(not(udg_Random_drop<=35))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func012C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='ntkc'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func013Func002C takes nothing returns boolean
if(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func013Func003C takes nothing returns boolean
if(not(udg_Random_drop>10))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func013C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='ndrf'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func014Func002C takes nothing returns boolean
if(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func014Func003C takes nothing returns boolean
if(not(udg_Random_drop>10))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func014C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='ndrm'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func015Func002C takes nothing returns boolean
if(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func015Func003C takes nothing returns boolean
if(not(udg_Random_drop>10))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func015C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='ndrp'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func016Func002C takes nothing returns boolean
if(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func016Func003C takes nothing returns boolean
if(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func016Func004C takes nothing returns boolean
if(not(udg_Random_drop>30))thenreturn false
endifif(not(udg_Random_drop<=35))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func001Func016C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='ndrs'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Func001C takes nothing returns booleanif(not(udg_Troll>=300))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Func002Func002C takes nothing returns booleanif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func002Func003C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func002Func004C takes nothing returns booleanif(not(udg_Random_drop>30))thenreturn false
endifif(not(udg_Random_drop<=50))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='ndtw'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Actions takes nothing returns nothingif(Trig_Troll_Func001C())thencall DisplayTextToForce(GetPlayersAll(),"|c0000FF00Лес троллей очищен.|r
|c00FFFF00Награда: 2500 золота|r
|c00CA2C92Открыто каменное ущелье.|r")call DisableTrigger(GetTriggeringTrigger())call AdjustPlayerStateBJ(2500,Player(0),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(2500,Player(1),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(2500,Player(2),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(2500,Player(3),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(2500,Player(4),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(2500,Player(5),PLAYER_STATE_RESOURCE_GOLD)call RemoveDestructable(gg_dest_Dofv_10674)else
if(Trig_Troll_Func001Func002C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Troll_Func001Func002Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(1),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Troll_Func001Func002Func003C())thencall CreateItemLoc('I08T',GetUnitLoc(GetDyingUnit()))else
endifset udg_Troll=(udg_Troll+1)call CreateNUnitsAtLoc(1,'nftr',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
else
endifif(Trig_Troll_Func001Func003C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Troll_Func001Func003Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(1),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Troll_Func001Func003Func003C())thencall CreateItemLoc('I08T',GetUnitLoc(GetDyingUnit()))else
endifset udg_Troll=(udg_Troll+1)call CreateNUnitsAtLoc(1,'nfsp',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
else
endifif(Trig_Troll_Func001Func004C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Troll_Func001Func004Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(1),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Troll_Func001Func004Func003C())thencall CreateItemLoc('I08T',GetUnitLoc(GetDyingUnit()))else
endifset udg_Troll=(udg_Troll+1)call CreateNUnitsAtLoc(1,'nftt',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
else
endifif(Trig_Troll_Func001Func005C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Troll_Func001Func005Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(2),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Troll_Func001Func005Func003C())thencall CreateItemLoc('I08T',GetUnitLoc(GetDyingUnit()))else
endifset udg_Troll=(udg_Troll+1)call TriggerSleepAction(90.00)call CreateNUnitsAtLoc(1,'nftk',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-2545.00,-8800.00),bj_UNIT_FACING)
else
endifif(Trig_Troll_Func001Func006C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Troll_Func001Func006Func002C())thencall CreateItemLoc('mnst',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Troll_Func001Func006Func003C())thencall CreateItemLoc('infs',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Troll_Func001Func006Func004C())thencall CreateItemLoc('rej5',GetUnitLoc(GetDyingUnit()))else
endifset udg_Troll=(udg_Troll+1)call TriggerSleepAction(90.00)call CreateNUnitsAtLoc(1,'nith',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
else
endifif(Trig_Troll_Func001Func007C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Troll_Func001Func007Func002C())thencall CreateItemLoc('hlst',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Troll_Func001Func007Func003C())thencall CreateItemLoc('totw',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Troll_Func001Func007Func004C())thencall CreateItemLoc('hslv',GetUnitLoc(GetDyingUnit()))else
endifelse
endifif(Trig_Troll_Func001Func008C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Troll_Func001Func008Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(1),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Troll_Func001Func008Func003C())thencall CreateItemLoc('I08T',GetUnitLoc(GetDyingUnit()))else
endifset udg_Troll=(udg_Troll+1)call CreateNUnitsAtLoc(1,'ntkf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
else
endifif(Trig_Troll_Func001Func009C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Troll_Func001Func009Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(1),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Troll_Func001Func009Func003C())thencall CreateItemLoc('I08T',GetUnitLoc(GetDyingUnit()))else
endifset udg_Troll=(udg_Troll+1)call CreateNUnitsAtLoc(1,'ntkt',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
else
endifif(Trig_Troll_Func001Func010C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Troll_Func001Func010Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(1),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Troll_Func001Func010Func003C())thencall CreateItemLoc('I08T',GetUnitLoc(GetDyingUnit()))else
endifset udg_Troll=(udg_Troll+1)call CreateNUnitsAtLoc(1,'ntks',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
else
endifif(Trig_Troll_Func001Func011C())then
call CreateItemLoc(ChooseRandomItemBJ(1),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Troll_Func001Func012C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Troll_Func001Func012Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(2),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Troll_Func001Func012Func003C())thencall CreateItemLoc('I08T',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Troll_Func001Func012Func004C())thencall CreateItemLoc('I08Z',GetUnitLoc(GetDyingUnit()))else
endifset udg_Troll=(udg_Troll+1)call TriggerSleepAction(90.00)call CreateNUnitsAtLoc(1,'ntkc',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-2545.00,-8800.00),bj_UNIT_FACING)
else
endifif(Trig_Troll_Func001Func013C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Troll_Func001Func013Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(1),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Troll_Func001Func013Func003C())thencall CreateItemLoc('I08T',GetUnitLoc(GetDyingUnit()))else
endifset udg_Troll=(udg_Troll+1)call CreateNUnitsAtLoc(1,'ndrf',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
else
endifif(Trig_Troll_Func001Func014C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Troll_Func001Func014Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(1),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Troll_Func001Func014Func003C())thencall CreateItemLoc('I08T',GetUnitLoc(GetDyingUnit()))else
endifset udg_Troll=(udg_Troll+1)call CreateNUnitsAtLoc(1,'ndrm',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
else
endifif(Trig_Troll_Func001Func015C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Troll_Func001Func015Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(1),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Troll_Func001Func015Func003C())thencall CreateItemLoc('I08T',GetUnitLoc(GetDyingUnit()))else
endifset udg_Troll=(udg_Troll+1)call CreateNUnitsAtLoc(1,'ndrp',Player(11),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
else
endifif(Trig_Troll_Func001Func016C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Troll_Func001Func016Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(2),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Troll_Func001Func016Func003C())thencall CreateItemLoc('I08T',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Troll_Func001Func016Func004C())thencall CreateItemLoc('I08Z',GetUnitLoc(GetDyingUnit()))else
endifset udg_Troll=(udg_Troll+1)call TriggerSleepAction(90.00)call CreateNUnitsAtLoc(1,'ndrs',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-2545.00,-8800.00),bj_UNIT_FACING)
else
endifendifif(Trig_Troll_Func002C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Troll_Func002Func002C())then
call CreateItemLoc('infs',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Troll_Func002Func003C())then
call CreateItemLoc('totw',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Troll_Func002Func004C())then
call CreateItemLoc('srbd',GetUnitLoc(GetDyingUnit()))else
endifelse
endifendfunctionfunction InitTrig_Troll takes nothing returns nothingset gg_trg_Troll=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Troll,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(gg_trg_Troll,function Trig_Troll_Actions)endfunctionfunction Trig_Troll_Set_Func001C takes nothing returns booleanif((GetUnitTypeId(GetAttackedUnitBJ())=='nftt'))then
return trueendifif((GetUnitTypeId(GetAttackedUnitBJ())=='nith'))then
return trueendifif((GetUnitTypeId(GetAttackedUnitBJ())=='nwwg'))then
return trueendifif((GetUnitTypeId(GetAttackedUnitBJ())=='nfot'))then
return trueendifif((GetUnitTypeId(GetAttackedUnitBJ())=='h026'))then
return trueendifif((GetUnitTypeId(GetAttackedUnitBJ())=='u019'))then
return trueendifif((GetUnitTypeId(GetAttackedUnitBJ())=='nwzd'))then
return trueendifif((GetUnitTypeId(GetAttackedUnitBJ())=='nsgn'))then
return trueendifreturn false
endfunctionfunction Trig_Troll_Set_Conditions takes nothing returns boolean
if(not Trig_Troll_Set_Func001C())thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Set_Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='nftt'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Set_Func003C takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='nith'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Set_Func004C takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='nwwg'))thenreturn false
endifif(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())<=150.00))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Set_Func005C takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='nfot'))thenreturn false
endifif(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())<=12000.00))then
return false
endifreturn trueendfunctionfunction Trig_Troll_Set_Func006C takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='h026'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Set_Func007C takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='u019'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Set_Func008C takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='nwzd'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Set_Func009C takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='nsgn'))thenreturn false
endifreturn trueendfunctionfunction Trig_Troll_Set_Actions takes nothing returns nothingif(Trig_Troll_Set_Func002C())thencall DisableTrigger(GetTriggeringTrigger())call IssueTargetOrder(GetAttackedUnitBJ(),"ensnare",GetAttacker())call TriggerSleepAction(5.00)call EnableTrigger(GetTriggeringTrigger())else
endifif(Trig_Troll_Set_Func003C())thencall DisableTrigger(GetTriggeringTrigger())call IssueTargetOrder(GetAttackedUnitBJ(),"frostnova",GetAttacker())
call TriggerSleepAction(15.00)call EnableTrigger(GetTriggeringTrigger())else
endifif(Trig_Troll_Set_Func004C())thencall DisableTrigger(GetTriggeringTrigger())call IssueImmediateOrder(GetAttackedUnitBJ(),"windwalk")
call IssuePointOrderLoc(GetAttackedUnitBJ(),"move",GetRandomLocInRect(gg_rct_Zona_1))call TriggerSleepAction(30.00)call EnableTrigger(GetTriggeringTrigger())else
endifif(Trig_Troll_Set_Func005C())thencall DisableTrigger(GetTriggeringTrigger())call IssuePointOrderLoc(GetAttackedUnitBJ(),"blink",GetUnitLoc(GetAttacker()))call TriggerSleepAction(60.00)call EnableTrigger(GetTriggeringTrigger())else
endifif(Trig_Troll_Set_Func006C())thencall DisableTrigger(GetTriggeringTrigger())call IssueTargetOrder(GetAttackedUnitBJ(),"acidbomb",GetAttacker())call TriggerSleepAction(15.00)call EnableTrigger(GetTriggeringTrigger())else
endifif(Trig_Troll_Set_Func007C())thencall DisableTrigger(GetTriggeringTrigger())call IssueTargetOrder(GetAttackedUnitBJ(),"forkedlightning",GetAttacker())call TriggerSleepAction(15.00)call EnableTrigger(GetTriggeringTrigger())else
endifif(Trig_Troll_Set_Func008C())thencall DisableTrigger(GetTriggeringTrigger())call IssueTargetOrder(GetAttackedUnitBJ(),"entanglingroots",GetAttacker())call TriggerSleepAction(3.00)call IssuePointOrderLoc(GetAttackedUnitBJ(),"rainoffire",GetUnitLoc(GetAttacker()))call TriggerSleepAction(2.00)call EnableTrigger(GetTriggeringTrigger())else
endifif(Trig_Troll_Set_Func009C())thencall DisableTrigger(GetTriggeringTrigger())call IssuePointOrderLoc(GetAttackedUnitBJ(),"carrionswarm",GetUnitLoc(GetAttacker()))call TriggerSleepAction(2.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_Troll_Set takes nothing returns nothingset gg_trg_Troll_Set=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Troll_Set,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Troll_Set,Condition(function Trig_Troll_Set_Conditions))
call TriggerAddAction(gg_trg_Troll_Set,function Trig_Troll_Set_Actions)endfunctionfunction Trig_Kammennoe_ushelie_Go_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kammennoe_ushelie_Go_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'n011',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n011',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n011',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n011',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n011',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n011',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n011',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n011',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n012',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n012',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n012',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n012',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n012',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n012',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n010',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n010',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n010',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n010',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nggr',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),6836.00,-16003.00),bj_UNIT_FACING)
endfunctionfunction InitTrig_Kammennoe_ushelie_Go takes nothing returns nothing
set gg_trg_Kammennoe_ushelie_Go=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Kammennoe_ushelie_Go,gg_rct_Kamennoe_ushelie)
call TriggerAddCondition(gg_trg_Kammennoe_ushelie_Go,Condition(function Trig_Kammennoe_ushelie_Go_Conditions))call TriggerAddAction(gg_trg_Kammennoe_ushelie_Go,function Trig_Kammennoe_ushelie_Go_Actions)endfunctionfunction Trig_Kammennoe_ushelie_Func001Func002Func002C takes nothing returns boolean
if(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Kammennoe_ushelie_Func001Func002Func003C takes nothing returns boolean
if(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Kammennoe_ushelie_Func001Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='n011'))thenreturn false
endifreturn trueendfunctionfunction Trig_Kammennoe_ushelie_Func001Func003Func002C takes nothing returns boolean
if(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Kammennoe_ushelie_Func001Func003Func003C takes nothing returns boolean
if(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Kammennoe_ushelie_Func001Func003C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='n012'))thenreturn false
endifreturn trueendfunctionfunction Trig_Kammennoe_ushelie_Func001Func004Func002C takes nothing returns boolean
if(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Kammennoe_ushelie_Func001Func004Func003C takes nothing returns boolean
if(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Kammennoe_ushelie_Func001Func004C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='n010'))thenreturn false
endifreturn trueendfunctionfunction Trig_Kammennoe_ushelie_Func001C takes nothing returns booleanif(not(udg_MoobS[8]>=200))thenreturn false
endifreturn trueendfunctionfunction Trig_Kammennoe_ushelie_Func002Func002C takes nothing returns booleanif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Kammennoe_ushelie_Func002Func003C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Kammennoe_ushelie_Func002Func004C takes nothing returns booleanif(not(udg_Random_drop>30))thenreturn false
endifif(not(udg_Random_drop<=50))then
return false
endifreturn trueendfunctionfunction Trig_Kammennoe_ushelie_Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nggr'))thenreturn false
endifreturn trueendfunctionfunction Trig_Kammennoe_ushelie_Actions takes nothing returns nothingif(Trig_Kammennoe_ushelie_Func001C())thencall DisplayTextToForce(GetPlayersAll(),"|c0000FF00Каменное ущелье очищено!.|r
|c00FFFF00Награда: 5000 золота|r")call DisableTrigger(GetTriggeringTrigger())call AdjustPlayerStateBJ(5000,Player(0),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(5000,Player(1),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(5000,Player(2),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(5000,Player(3),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(5000,Player(4),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(5000,Player(5),PLAYER_STATE_RESOURCE_GOLD)else
if(Trig_Kammennoe_ushelie_Func001Func002C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Kammennoe_ushelie_Func001Func002Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(2),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Kammennoe_ushelie_Func001Func002Func003C())thencall CreateItemLoc('rhe3',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[8]=(udg_MoobS[8]+1)call CreateNUnitsAtLoc(1,'n011',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)else
endifif(Trig_Kammennoe_ushelie_Func001Func003C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Kammennoe_ushelie_Func001Func003Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(2),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Kammennoe_ushelie_Func001Func003Func003C())thencall CreateItemLoc('rhe3',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[8]=(udg_MoobS[8]+1)call CreateNUnitsAtLoc(1,'n012',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)else
endifif(Trig_Kammennoe_ushelie_Func001Func004C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Kammennoe_ushelie_Func001Func004Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(2),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Kammennoe_ushelie_Func001Func004Func003C())thencall CreateItemLoc('I01B',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[8]=(udg_MoobS[8]+1)call CreateNUnitsAtLoc(1,'n012',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)else
endifendifif(Trig_Kammennoe_ushelie_Func002C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Kammennoe_ushelie_Func002Func002C())then
call CreateItemLoc('I01D',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Kammennoe_ushelie_Func002Func003C())then
call CreateItemLoc('rre2',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Kammennoe_ushelie_Func002Func004C())then
call CreateItemLoc('stwp',GetUnitLoc(GetDyingUnit()))else
endifcall TriggerSleepAction(120.00)call CreateNUnitsAtLoc(1,'nggr',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),6836.00,-16003.00),bj_UNIT_FACING)
else
endifendfunctionfunction InitTrig_Kammennoe_ushelie takes nothing returns nothingset gg_trg_Kammennoe_ushelie=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Kammennoe_ushelie,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(gg_trg_Kammennoe_ushelie,function Trig_Kammennoe_ushelie_Actions)endfunctionfunction Trig_Kammenniy_utes_Go_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kammenniy_utes_Go_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'nfpt',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfpt',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfpt',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfpt',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfpt',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfpt',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h025',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h025',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h025',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h025',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h025',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h025',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h025',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h025',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h025',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h025',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h025',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h025',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nbzk',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nbzk',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nbzk',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nbzk',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nbzk',Player(11),GetRandomLocInRect(gg_rct_Kamennoe_ushelie),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nbzd',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),7620.00,-23000.00),bj_UNIT_FACING)
endfunctionfunction InitTrig_Kammenniy_utes_Go takes nothing returns nothingset gg_trg_Kammenniy_utes_Go=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Kammenniy_utes_Go,gg_rct_Kamenniy_utes)call TriggerAddCondition(gg_trg_Kammenniy_utes_Go,Condition(function Trig_Kammenniy_utes_Go_Conditions))
call TriggerAddAction(gg_trg_Kammenniy_utes_Go,function Trig_Kammenniy_utes_Go_Actions)endfunctionfunction Trig_Peshera_Dreneyev_Go_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Peshera_Dreneyev_Go_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'nfpt',Player(11),GetRandomLocInRect(gg_rct_Peshera_Dreneyev_Krip),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfpt',Player(11),GetRandomLocInRect(gg_rct_Peshera_Dreneyev_Krip),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfpt',Player(11),GetRandomLocInRect(gg_rct_Peshera_Dreneyev_Krip),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfpl',Player(11),GetRandomLocInRect(gg_rct_Peshera_Dreneyev_Krip),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfpl',Player(11),GetRandomLocInRect(gg_rct_Peshera_Dreneyev_Krip),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfpl',Player(11),GetRandomLocInRect(gg_rct_Peshera_Dreneyev_Krip),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfpl',Player(11),GetRandomLocInRect(gg_rct_Peshera_Dreneyev_Krip),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfpl',Player(11),GetRandomLocInRect(gg_rct_Peshera_Dreneyev_Krip),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfpl',Player(11),GetRandomLocInRect(gg_rct_Peshera_Dreneyev_Krip),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfpl',Player(11),GetRandomLocInRect(gg_rct_Peshera_Dreneyev_Krip),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfpl',Player(11),GetRandomLocInRect(gg_rct_Peshera_Dreneyev_Krip),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n010',Player(11),GetRandomLocInRect(gg_rct_Peshera_Dreneyev_Krip),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n010',Player(11),GetRandomLocInRect(gg_rct_Peshera_Dreneyev_Krip),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n010',Player(11),GetRandomLocInRect(gg_rct_Peshera_Dreneyev_Krip),bj_UNIT_FACING)endfunctionfunction InitTrig_Peshera_Dreneyev_Go takes nothing returns nothingset gg_trg_Peshera_Dreneyev_Go=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Peshera_Dreneyev_Go,gg_rct_Peshera_Dreneyev_Krip)
call TriggerAddCondition(gg_trg_Peshera_Dreneyev_Go,Condition(function Trig_Peshera_Dreneyev_Go_Conditions))
call TriggerAddAction(gg_trg_Peshera_Dreneyev_Go,function Trig_Peshera_Dreneyev_Go_Actions)endfunctionfunction Trig_Garpii_Go_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Garpii_Go_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'nhrr',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nhrr',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nhrr',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nhrr',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nhrr',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nhrr',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nhrr',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nhrr',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nhrr',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nhrr',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nhrr',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nhrr',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nhrr',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nhrr',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nhrr',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nogm',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nogm',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nogm',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nogm',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nogm',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nomg',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nomg',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nomg',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nomg',Player(11),GetRandomLocInRect(gg_rct_Garpii),bj_UNIT_FACING)
endfunctionfunction InitTrig_Garpii_Go takes nothing returns nothingset gg_trg_Garpii_Go=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Garpii_Go,gg_rct_Garpii)call TriggerAddCondition(gg_trg_Garpii_Go,Condition(function Trig_Garpii_Go_Conditions))
call TriggerAddAction(gg_trg_Garpii_Go,function Trig_Garpii_Go_Actions)endfunctionfunction Trig_Kammenniy_utes_Func001Func001Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Kammenniy_utes_Func001Func001Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Kammenniy_utes_Func001Func001C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nfpt'))thenreturn false
endifreturn trueendfunctionfunction Trig_Kammenniy_utes_Func001Func003Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Kammenniy_utes_Func001Func003Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Kammenniy_utes_Func001Func003C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nbzw'))thenreturn false
endifreturn trueendfunctionfunction Trig_Kammenniy_utes_Func001Func004Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Kammenniy_utes_Func001Func004Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Kammenniy_utes_Func001Func004C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nbzk'))thenreturn false
endifreturn trueendfunctionfunction Trig_Kammenniy_utes_Func001C takes nothing returns booleanif(not(udg_MoobS[9]>=250))thenreturn false
endifreturn trueendfunctionfunction Trig_Kammenniy_utes_Func002Func002C takes nothing returns booleanif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Kammenniy_utes_Func002Func003C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Kammenniy_utes_Func002Func004C takes nothing returns booleanif(not(udg_Random_drop>30))thenreturn false
endifif(not(udg_Random_drop<=50))then
return false
endifreturn trueendfunctionfunction Trig_Kammenniy_utes_Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nbzd'))thenreturn false
endifreturn trueendfunctionfunction Trig_Kammenniy_utes_Actions takes nothing returns nothingif(Trig_Kammenniy_utes_Func001C())thencall DisplayTextToForce(GetPlayersAll(),"|c0000FF00Каменный утес очищен!|r
|c00FFFF00Награда: 15000 золота|r")call DisableTrigger(GetTriggeringTrigger())call AdjustPlayerStateBJ(15000,Player(0),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(15000,Player(1),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(15000,Player(2),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(15000,Player(3),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(15000,Player(4),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(15000,Player(5),PLAYER_STATE_RESOURCE_GOLD)
else
if(Trig_Kammenniy_utes_Func001Func001C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Kammenniy_utes_Func001Func001Func002C())then
call CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Kammenniy_utes_Func001Func001Func003C())then
call CreateItemLoc('I0CS',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[9]=(udg_MoobS[9]+1)call CreateNUnitsAtLoc(1,'nfpt',Player(11),GetRandomLocInRect(gg_rct_Kamenniy_utes),bj_UNIT_FACING)else
endifif(Trig_Kammenniy_utes_Func001Func003C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Kammenniy_utes_Func001Func003Func002C())then
call CreateItemLoc(ChooseRandomItemBJ(3),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Kammenniy_utes_Func001Func003Func003C())then
call CreateItemLoc('rhe3',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[9]=(udg_MoobS[9]+1)call CreateNUnitsAtLoc(1,'h025',Player(11),GetRandomLocInRect(gg_rct_Kamenniy_utes),bj_UNIT_FACING)else
endifif(Trig_Kammenniy_utes_Func001Func004C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Kammenniy_utes_Func001Func004Func002C())then
call CreateItemLoc('I0B2',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Kammenniy_utes_Func001Func004Func003C())then
call CreateItemLoc('wtlg',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[9]=(udg_MoobS[9]+1)call CreateNUnitsAtLoc(1,'nbzk',Player(11),GetRandomLocInRect(gg_rct_Kamenniy_utes),bj_UNIT_FACING)else
endifendifif(Trig_Kammenniy_utes_Func002C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Kammenniy_utes_Func002Func002C())thencall CreateItemLoc('sfog',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Kammenniy_utes_Func002Func003C())thencall CreateItemLoc('rre2',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Kammenniy_utes_Func002Func004C())thencall CreateItemLoc('I0B2',GetUnitLoc(GetDyingUnit()))else
endifcall TriggerSleepAction(120.00)call CreateNUnitsAtLoc(1,'nbzd',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),7600.00,-23000.00),bj_UNIT_FACING)
else
endifendfunctionfunction InitTrig_Kammenniy_utes takes nothing returns nothingset gg_trg_Kammenniy_utes=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kammenniy_utes,EVENT_PLAYER_UNIT_DEATH)call TriggerAddAction(gg_trg_Kammenniy_utes,function Trig_Kammenniy_utes_Actions)endfunctionfunction Trig_Bezlikie_ozera_Go_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Bezlikie_ozera_Go_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'u01A',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'u01A',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'u01A',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'u01A',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'u01A',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'u01A',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nubw',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nubw',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nubw',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nubw',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nubr',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nubr',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nubr',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nubr',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nubr',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nubr',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zhyd',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zhyd',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zhyd',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zhyd',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zhyd',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfot',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
endfunctionfunction InitTrig_Bezlikie_ozera_Go takes nothing returns nothingset gg_trg_Bezlikie_ozera_Go=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Bezlikie_ozera_Go,gg_rct_Bezlikie_Ozera)call TriggerAddCondition(gg_trg_Bezlikie_ozera_Go,Condition(function Trig_Bezlikie_ozera_Go_Conditions))
call TriggerAddAction(gg_trg_Bezlikie_ozera_Go,function Trig_Bezlikie_ozera_Go_Actions)endfunctionfunction Trig_Bezlikie_ozera_Func001Func001Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Bezlikie_ozera_Func001Func001Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Bezlikie_ozera_Func001Func001C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='u01A'))thenreturn false
endifreturn trueendfunctionfunction Trig_Bezlikie_ozera_Func001Func003Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Bezlikie_ozera_Func001Func003Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Bezlikie_ozera_Func001Func003C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='zzrg'))thenreturn false
endifreturn trueendfunctionfunction Trig_Bezlikie_ozera_Func001Func004Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Bezlikie_ozera_Func001Func004Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Bezlikie_ozera_Func001Func004C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nubw'))thenreturn false
endifreturn trueendfunctionfunction Trig_Bezlikie_ozera_Func001Func005Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Bezlikie_ozera_Func001Func005Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Bezlikie_ozera_Func001Func005C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nubr'))thenreturn false
endifreturn trueendfunctionfunction Trig_Bezlikie_ozera_Func001Func006Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Bezlikie_ozera_Func001Func006Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Bezlikie_ozera_Func001Func006C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='zhyd'))thenreturn false
endifreturn trueendfunctionfunction Trig_Bezlikie_ozera_Func001C takes nothing returns booleanif(not(udg_MoobS[10]>=350))thenreturn false
endifreturn trueendfunctionfunction Trig_Bezlikie_ozera_Func002Func002C takes nothing returns booleanif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Bezlikie_ozera_Func002Func003C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Bezlikie_ozera_Func002Func004C takes nothing returns booleanif(not(udg_Random_drop>30))thenreturn false
endifif(not(udg_Random_drop<=50))then
return false
endifreturn trueendfunctionfunction Trig_Bezlikie_ozera_Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nfot'))thenreturn false
endifreturn trueendfunctionfunction Trig_Bezlikie_ozera_Actions takes nothing returns nothingif(Trig_Bezlikie_ozera_Func001C())thencall DisplayTextToForce(GetPlayersAll(),"|c0000FF00Безликие озера очищены!|r
|c00FFFF00Награда: 20000 золота|r")call DisableTrigger(GetTriggeringTrigger())call AdjustPlayerStateBJ(20000,Player(0),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(20000,Player(1),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(20000,Player(2),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(20000,Player(3),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(20000,Player(4),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(20000,Player(5),PLAYER_STATE_RESOURCE_GOLD)
else
if(Trig_Bezlikie_ozera_Func001Func001C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Bezlikie_ozera_Func001Func001Func002C())then
call CreateItemLoc(ChooseRandomItemBJ(3),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Bezlikie_ozera_Func001Func001Func003C())then
call CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[10]=(udg_MoobS[10]+1)call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
else
endifif(Trig_Bezlikie_ozera_Func001Func003C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Bezlikie_ozera_Func001Func003Func002C())then
call CreateItemLoc(ChooseRandomItemBJ(3),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Bezlikie_ozera_Func001Func003Func003C())then
call CreateItemLoc('rej2',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[10]=(udg_MoobS[10]+1)call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
else
endifif(Trig_Bezlikie_ozera_Func001Func004C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Bezlikie_ozera_Func001Func004Func002C())then
call CreateItemLoc('I0B7',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Bezlikie_ozera_Func001Func004Func003C())then
call CreateItemLoc(ChooseRandomItemBJ(4),GetUnitLoc(GetDyingUnit()))
else
endifset udg_MoobS[10]=(udg_MoobS[10]+1)call CreateNUnitsAtLoc(1,'nubw',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
else
endifif(Trig_Bezlikie_ozera_Func001Func005C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Bezlikie_ozera_Func001Func005Func002C())then
call CreateItemLoc('I0B7',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Bezlikie_ozera_Func001Func005Func003C())then
call CreateItemLoc('rej3',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[10]=(udg_MoobS[10]+1)call CreateNUnitsAtLoc(1,'nubr',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
else
endifif(Trig_Bezlikie_ozera_Func001Func006C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Bezlikie_ozera_Func001Func006Func002C())then
call CreateItemLoc('hlst',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Bezlikie_ozera_Func001Func006Func003C())then
call CreateItemLoc('I0B8',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[10]=(udg_MoobS[10]+1)call CreateNUnitsAtLoc(1,'zhyd',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
else
endifendifif(Trig_Bezlikie_ozera_Func002C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Bezlikie_ozera_Func002Func002C())thencall CreateItemLoc('I05X',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Bezlikie_ozera_Func002Func003C())thencall CreateItemLoc('I0B7',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Bezlikie_ozera_Func002Func004C())thencall CreateItemLoc('spro',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('spro',GetUnitLoc(GetDyingUnit()))else
endifcall TriggerSleepAction(120.00)call CreateNUnitsAtLoc(1,'nfot',Player(11),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)
else
endifendfunctionfunction InitTrig_Bezlikie_ozera takes nothing returns nothingset gg_trg_Bezlikie_ozera=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Bezlikie_ozera,EVENT_PLAYER_UNIT_DEATH)call TriggerAddAction(gg_trg_Bezlikie_ozera,function Trig_Bezlikie_ozera_Actions)endfunctionfunction Trig_Dalaran_Go_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_Go_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h026',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h026',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h026',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h026',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h026',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h026',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h026',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h026',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h026',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nwzg',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nwzg',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nwzg',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nwzg',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nwzd',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nwzd',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nwzd',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nwzd',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n014',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n014',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n014',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n014',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n014',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n014',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n014',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nnht',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nnht',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nnht',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nnht',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nnht',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nnht',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nnht',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nnht',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nnht',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nnht',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nnht',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nnht',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nndk',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nndk',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nndk',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nndk',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nndk',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nndk',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nndr',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-24000.00,-16000.00),bj_UNIT_FACING)endfunctionfunction InitTrig_Dalaran_Go takes nothing returns nothingset gg_trg_Dalaran_Go=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_Go,gg_rct_Dalaran)call TriggerAddCondition(gg_trg_Dalaran_Go,Condition(function Trig_Dalaran_Go_Conditions))call TriggerAddAction(gg_trg_Dalaran_Go,function Trig_Dalaran_Go_Actions)endfunctionfunction Trig_More_Go_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_More_Go_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'n00Y',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Y',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Y',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Y',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Y',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Y',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Y',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Y',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Y',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Y',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Y',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Y',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Z',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Z',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Z',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Z',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Z',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Z',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Z',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Z',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Z',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Z',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Z',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Z',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n00Z',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ocat',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ocat',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_1),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ocat',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ocat',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_3),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ocat',Player(11),GetRandomLocInRect(gg_rct_Ostrov_piratov_2),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nstw',Player(11),GetRandomLocInRect(gg_rct_Ungoro),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nstw',Player(11),GetRandomLocInRect(gg_rct_Ungoro),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nstw',Player(11),GetRandomLocInRect(gg_rct_Ungoro),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nstw',Player(11),GetRandomLocInRect(gg_rct_Ungoro),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nstw',Player(11),GetRandomLocInRect(gg_rct_Ungoro),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nstw',Player(11),GetRandomLocInRect(gg_rct_Ungoro),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nlsn',Player(11),GetRandomLocInRect(gg_rct_Ungoro),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nlsn',Player(11),GetRandomLocInRect(gg_rct_Ungoro),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nlsn',Player(11),GetRandomLocInRect(gg_rct_Ungoro),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nlsn',Player(11),GetRandomLocInRect(gg_rct_Ungoro),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nlsn',Player(11),GetRandomLocInRect(gg_rct_Ungoro),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nlsn',Player(11),GetRandomLocInRect(gg_rct_Ungoro),bj_UNIT_FACING)
endfunctionfunction InitTrig_More_Go takes nothing returns nothingset gg_trg_More_Go=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_More_Go,gg_rct_More)call TriggerAddCondition(gg_trg_More_Go,Condition(function Trig_More_Go_Conditions))
call TriggerAddAction(gg_trg_More_Go,function Trig_More_Go_Actions)endfunctionfunction Trig_Dalaran_podzemeliya_Go_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_podzemeliya_Go_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'u006',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u006',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u006',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u006',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ugho',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'uabo',Player(11),GetRandomLocInRect(gg_rct_Podzemelie_Dalarana),bj_UNIT_FACING)endfunctionfunction InitTrig_Dalaran_podzemeliya_Go takes nothing returns nothingset gg_trg_Dalaran_podzemeliya_Go=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_podzemeliya_Go,gg_rct_Podzemelie_Dalarana)call TriggerAddCondition(gg_trg_Dalaran_podzemeliya_Go,Condition(function Trig_Dalaran_podzemeliya_Go_Conditions))call TriggerAddAction(gg_trg_Dalaran_podzemeliya_Go,function Trig_Dalaran_podzemeliya_Go_Actions)endfunctionfunction Trig_Dalaran_biblioteka_Go_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_biblioteka_Go_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'u006',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u006',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u006',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u006',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u006',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u006',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u006',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u006',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhrw',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhrw',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhrw',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhrw',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhrw',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhrw',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h026',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'h026',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nwzd',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nwzd',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n014',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'n014',Player(11),GetRandomLocInRect(gg_rct_Biblioteka_Dalarana),bj_UNIT_FACING)endfunctionfunction InitTrig_Dalaran_biblioteka_Go takes nothing returns nothingset gg_trg_Dalaran_biblioteka_Go=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_Go,gg_rct_Biblioteka_Dalarana)
call TriggerAddCondition(gg_trg_Dalaran_biblioteka_Go,Condition(function Trig_Dalaran_biblioteka_Go_Conditions))
call TriggerAddAction(gg_trg_Dalaran_biblioteka_Go,function Trig_Dalaran_biblioteka_Go_Actions)endfunctionfunction Trig_Dalaran_biblioteka_lovushky_Actions takes nothing returns nothingcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Undead\\Impale\\ImpaleMissTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Undead\\Impale\\ImpaleHitTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(gg_unit_Nbrn_0832,GetTriggerUnit(),4000.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endfunctionfunction InitTrig_Dalaran_biblioteka_lovushky takes nothing returns nothingset gg_trg_Dalaran_biblioteka_lovushky=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_lovushky,gg_rct_Lovushka_Dalaran_1)call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_lovushky,gg_rct_Lovushka_Dalaran_2)call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_lovushky,gg_rct_Lovushka_Dalaran_3)call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_lovushky,gg_rct_Lovushka_Dalaran_4)call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_lovushky,gg_rct_Lovushka_Dalaran_5)call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_lovushky,gg_rct_Lovushka_Dalaran_6)call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_lovushky,gg_rct_Lovushka_Dalaran_7)call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_lovushky,gg_rct_Lovushka_Dalaran_8)call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_lovushky,gg_rct_Lovushka_Dalaran_9)call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_lovushky,gg_rct_Lovushka_Dalaran_10)call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_lovushky,gg_rct_Lovushka_Dalaran_11)call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_lovushky,gg_rct_Lovushka_Dalaran_12)call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_lovushky,gg_rct_Lovushka_Dalaran_13)call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_lovushky,gg_rct_Lovushka_Dalaran_14)call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_lovushky,gg_rct_Lovushka_Dalaran_15)call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_lovushky,gg_rct_Lovushka_Dalaran_16)call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_lovushky,gg_rct_Lovushka_Dalaran_17)call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_lovushky,gg_rct_Lovushka_Dalaran_18)call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_lovushky,gg_rct_Lovushka_Dalaran_19)call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_lovushky,gg_rct_Lovushka_Dalaran_20)call TriggerRegisterEnterRectSimple(gg_trg_Dalaran_biblioteka_lovushky,gg_rct_Lovushka_Dalaran_21)call TriggerAddAction(gg_trg_Dalaran_biblioteka_lovushky,function Trig_Dalaran_biblioteka_lovushky_Actions)endfunctionfunction Trig_Zatoplennaya_peshera_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zatoplennaya_peshera_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Zatoplennoe_podzemelie),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Zatoplennoe_podzemelie),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Zatoplennoe_podzemelie),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Zatoplennoe_podzemelie),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Zatoplennoe_podzemelie),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zzrg',Player(11),GetRandomLocInRect(gg_rct_Zatoplennoe_podzemelie),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nubw',Player(11),GetRandomLocInRect(gg_rct_Zatoplennoe_podzemelie),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nubw',Player(11),GetRandomLocInRect(gg_rct_Zatoplennoe_podzemelie),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nubw',Player(11),GetRandomLocInRect(gg_rct_Zatoplennoe_podzemelie),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nubr',Player(11),GetRandomLocInRect(gg_rct_Zatoplennoe_podzemelie),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nubr',Player(11),GetRandomLocInRect(gg_rct_Zatoplennoe_podzemelie),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nubr',Player(11),GetRandomLocInRect(gg_rct_Zatoplennoe_podzemelie),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nubr',Player(11),GetRandomLocInRect(gg_rct_Zatoplennoe_podzemelie),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zhyd',Player(11),GetRandomLocInRect(gg_rct_Zatoplennoe_podzemelie),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zhyd',Player(11),GetRandomLocInRect(gg_rct_Zatoplennoe_podzemelie),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zhyd',Player(11),GetRandomLocInRect(gg_rct_Zatoplennoe_podzemelie),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zhyd',Player(11),GetRandomLocInRect(gg_rct_Zatoplennoe_podzemelie),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'zhyd',Player(11),GetRandomLocInRect(gg_rct_Zatoplennoe_podzemelie),bj_UNIT_FACING)
endfunctionfunction InitTrig_Zatoplennaya_peshera takes nothing returns nothing
set gg_trg_Zatoplennaya_peshera=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Zatoplennaya_peshera,gg_rct_Zatoplennoe_podzemelie)call TriggerAddCondition(gg_trg_Zatoplennaya_peshera,Condition(function Trig_Zatoplennaya_peshera_Conditions))call TriggerAddAction(gg_trg_Zatoplennaya_peshera,function Trig_Zatoplennaya_peshera_Actions)endfunctionfunction Trig_Dalaran_Func001Func002Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_Func001Func002Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Dalaran_Func001Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='h026'))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_Func001Func003Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_Func001Func003Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Dalaran_Func001Func003C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nwzd'))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_Func001Func004Func002C takes nothing returns booleanif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Dalaran_Func001Func004Func003C takes nothing returns booleanif(not(udg_Random_drop>10))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Dalaran_Func001Func004C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='n014'))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_Func001Func005Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_Func001Func005Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Dalaran_Func001Func005C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nwzg'))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_Func001Func006Func002C takes nothing returns booleanif(not(udg_Random_drop<=3))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_Func001Func006Func003C takes nothing returns booleanif(not(udg_Random_drop>3))thenreturn false
endifif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Dalaran_Func001Func006C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='u019'))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_Func001Func007Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_Func001Func007C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nnht'))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_Func001Func008Func002C takes nothing returns booleanif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Dalaran_Func001Func008Func003C takes nothing returns booleanif(not(udg_Random_drop>11))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Dalaran_Func001Func008C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nndk'))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_Func001C takes nothing returns boolean
if(not(udg_MoobS[11]>=400))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_Func002Func002C takes nothing returns booleanif(not(udg_Random_drop<=35))then
return false
endifreturn trueendfunctionfunction Trig_Dalaran_Func002Func003C takes nothing returns booleanif(not(udg_Random_drop>35))thenreturn false
endifif(not(udg_Random_drop<=60))then
return false
endifreturn trueendfunctionfunction Trig_Dalaran_Func002Func004C takes nothing returns booleanif(not(udg_Random_drop>60))thenreturn false
endifif(not(udg_Random_drop<=90))then
return false
endifreturn trueendfunctionfunction Trig_Dalaran_Func002Func005C takes nothing returns booleanif(not(udg_Random_drop>91))thenreturn false
endifif(not(udg_Random_drop<=99))then
return false
endifreturn trueendfunctionfunction Trig_Dalaran_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nndr'))thenreturn false
endifreturn trueendfunctionfunction Trig_Dalaran_Actions takes nothing returns nothingif(Trig_Dalaran_Func001C())thencall DisplayTextToForce(GetPlayersAll(),"|c0000FF00Даларан очищен!|r
|c00FFFF00Награда: 25000 золота|r")call DisableTrigger(GetTriggeringTrigger())call AdjustPlayerStateBJ(25000,Player(0),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(25000,Player(1),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(25000,Player(2),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(25000,Player(3),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(25000,Player(4),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(25000,Player(5),PLAYER_STATE_RESOURCE_GOLD)
else
if(Trig_Dalaran_Func001Func002C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Dalaran_Func001Func002Func002C())thencall CreateItemLoc('I0BI',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Dalaran_Func001Func002Func003C())thencall CreateItemLoc('rspl',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[11]=(udg_MoobS[11]+1)call CreateNUnitsAtLoc(1,'h026',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)else
endifif(Trig_Dalaran_Func001Func003C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Dalaran_Func001Func003Func002C())thencall CreateItemLoc('I0CS',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Dalaran_Func001Func003Func003C())thencall CreateItemLoc('rspl',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[11]=(udg_MoobS[11]+1)call CreateNUnitsAtLoc(1,'nwzd',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)else
endifif(Trig_Dalaran_Func001Func004C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Dalaran_Func001Func004Func002C())thencall CreateItemLoc('I0BI',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Dalaran_Func001Func004Func003C())thencall CreateItemLoc('rspl',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[11]=(udg_MoobS[11]+1)call CreateNUnitsAtLoc(1,'n014',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)else
endifif(Trig_Dalaran_Func001Func005C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Dalaran_Func001Func005Func002C())thencall CreateItemLoc('I0BK',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Dalaran_Func001Func005Func003C())thencall CreateItemLoc('rspl',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[11]=(udg_MoobS[11]+1)call CreateNUnitsAtLoc(1,'nwzg',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)else
endifif(Trig_Dalaran_Func001Func006C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Dalaran_Func001Func006Func002C())thencall CreateItemLoc('I0AX',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Dalaran_Func001Func006Func003C())thencall CreateItemLoc('I03F',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[11]=(udg_MoobS[11]+1)call CreateNUnitsAtLoc(1,'u019',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)else
endifif(Trig_Dalaran_Func001Func007C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Dalaran_Func001Func007Func002C())thencall CreateItemLoc('I0BH',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[11]=(udg_MoobS[11]+1)call CreateNUnitsAtLoc(1,'nnht',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)else
endifif(Trig_Dalaran_Func001Func008C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Dalaran_Func001Func008Func002C())thencall CreateItemLoc('I0BH',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Dalaran_Func001Func008Func003C())thencall CreateItemLoc('rspl',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[11]=(udg_MoobS[11]+1)call CreateNUnitsAtLoc(1,'nndk',Player(11),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)else
endifendifif(Trig_Dalaran_Func002C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Dalaran_Func002Func002C())thencall CreateItemLoc('I0BH',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Dalaran_Func002Func003C())thencall CreateItemLoc('I02Y',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Dalaran_Func002Func004C())thencall CreateItemLoc('rre2',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rre2',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rre2',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Dalaran_Func002Func005C())thencall CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))else
endifcall TriggerSleepAction(120.00)call CreateNUnitsAtLoc(1,'nndr',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-24000.00,-16000.00),bj_UNIT_FACING)else
endifendfunctionfunction InitTrig_Dalaran takes nothing returns nothingset gg_trg_Dalaran=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Dalaran,EVENT_PLAYER_UNIT_DEATH)call TriggerAddAction(gg_trg_Dalaran,function Trig_Dalaran_Actions)endfunctionfunction Trig_Mertvie_zemli_Go_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mertvie_zemli_Go_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'nfgl',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgl',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgl',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgl',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgl',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgl',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgl',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgl',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nenp',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nenp',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nenp',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nenp',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nenp',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nenp',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nenp',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nenp',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nenp',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nenp',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nenp',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nenp',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nenp',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nenp',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nenp',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nenp',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhdc',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhdc',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhdc',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhdc',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhdc',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhdc',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhdc',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhdc',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhdc',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhdc',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhdc',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhdc',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhdc',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhdc',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhrw',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhrw',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhrw',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhrw',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhrw',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhrw',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhrw',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhrw',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhrw',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhrw',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhrw',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhrw',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nsat',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nsat',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nsat',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nsat',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nsat',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nsat',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nsat',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nsat',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ndth',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ndth',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ndth',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ndth',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ndth',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ndth',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nhar',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),22700.00,-21400.00),bj_UNIT_FACING)endfunctionfunction InitTrig_Mertvie_zemli_Go takes nothing returns nothing
set gg_trg_Mertvie_zemli_Go=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Mertvie_zemli_Go,gg_rct_Dead_Forest)call TriggerAddCondition(gg_trg_Mertvie_zemli_Go,Condition(function Trig_Mertvie_zemli_Go_Conditions))call TriggerAddAction(gg_trg_Mertvie_zemli_Go,function Trig_Mertvie_zemli_Go_Actions)endfunctionfunction Trig_Mertvie_Zemli_Func001Func002Func002C takes nothing returns boolean
if(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func001Func002Func003C takes nothing returns boolean
if(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func001Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nenp'))thenreturn false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func001Func003Func002C takes nothing returns boolean
if(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func001Func003Func003C takes nothing returns boolean
if(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func001Func003C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nfgl'))thenreturn false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func001Func004Func002C takes nothing returns boolean
if(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func001Func004Func003C takes nothing returns boolean
if(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func001Func004Func004C takes nothing returns boolean
if(not(udg_Random_drop>10))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func001Func004Func005C takes nothing returns boolean
if(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func001Func004Func006C takes nothing returns boolean
if(not(udg_Random_drop>20))thenreturn false
endifif(not(udg_Random_drop<=25))then
return false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func001Func004C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nsat'))thenreturn false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func001Func005Func002C takes nothing returns boolean
if(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func001Func005Func003C takes nothing returns boolean
if(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func001Func005C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nhdc'))thenreturn false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func001Func006Func002C takes nothing returns boolean
if(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func001Func006Func003C takes nothing returns boolean
if(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func001Func006C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nhrw'))thenreturn false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func001Func007Func002C takes nothing returns boolean
if(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func001Func007Func003C takes nothing returns boolean
if(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func001Func007C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='ndth'))thenreturn false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func001C takes nothing returns booleanif(not(udg_MoobS[12]>=200))thenreturn false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func002Func002C takes nothing returns booleanif(not(udg_Random_drop<=35))then
return false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func002Func003C takes nothing returns booleanif(not(udg_Random_drop>35))thenreturn false
endifif(not(udg_Random_drop<=60))then
return false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func002Func004C takes nothing returns booleanif(not(udg_Random_drop>60))thenreturn false
endifif(not(udg_Random_drop<=90))then
return false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nhar'))thenreturn false
endifreturn trueendfunctionfunction Trig_Mertvie_Zemli_Actions takes nothing returns nothingif(Trig_Mertvie_Zemli_Func001C())thencall DisplayTextToForce(GetPlayersAll(),"|c0000FF00Мертвые зкмли очищены!|r
|c00FFFF00Награда: 40000 золота|r")call DisableTrigger(GetTriggeringTrigger())call AdjustPlayerStateBJ(40000,Player(0),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(40000,Player(1),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(40000,Player(2),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(40000,Player(3),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(40000,Player(4),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(40000,Player(5),PLAYER_STATE_RESOURCE_GOLD)
else
if(Trig_Mertvie_Zemli_Func001Func002C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Mertvie_Zemli_Func001Func002Func002C())thencall CreateItemLoc('whwd',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Mertvie_Zemli_Func001Func002Func003C())thencall CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[12]=(udg_MoobS[12]+1)call CreateNUnitsAtLoc(1,'nenp',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)else
endifif(Trig_Mertvie_Zemli_Func001Func003C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Mertvie_Zemli_Func001Func003Func002C())thencall CreateItemLoc('stwp',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Mertvie_Zemli_Func001Func003Func003C())thencall CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[12]=(udg_MoobS[12]+1)call CreateNUnitsAtLoc(1,'nfgl',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)else
endifif(Trig_Mertvie_Zemli_Func001Func004C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Mertvie_Zemli_Func001Func004Func002C())thencall CreateItemLoc('I08O',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Mertvie_Zemli_Func001Func004Func003C())thencall CreateItemLoc('I05V',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Mertvie_Zemli_Func001Func004Func004C())thencall CreateItemLoc('I0BH',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Mertvie_Zemli_Func001Func004Func005C())thencall CreateItemLoc('I0BK',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Mertvie_Zemli_Func001Func004Func006C())thencall CreateItemLoc('rspl',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[12]=(udg_MoobS[12]+1)call CreateNUnitsAtLoc(1,'nsat',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)else
endifif(Trig_Mertvie_Zemli_Func001Func005C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Mertvie_Zemli_Func001Func005Func002C())thencall CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Mertvie_Zemli_Func001Func005Func003C())thencall CreateItemLoc('I0BK',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[12]=(udg_MoobS[12]+1)call CreateNUnitsAtLoc(1,'nhdc',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)else
endifif(Trig_Mertvie_Zemli_Func001Func006C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Mertvie_Zemli_Func001Func006Func002C())thencall CreateItemLoc('I0BK',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Mertvie_Zemli_Func001Func006Func003C())thencall CreateItemLoc('I0BH',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[12]=(udg_MoobS[12]+1)call CreateNUnitsAtLoc(1,'nhrw',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)else
endifif(Trig_Mertvie_Zemli_Func001Func007C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Mertvie_Zemli_Func001Func007Func002C())thencall CreateItemLoc('I0BH',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Mertvie_Zemli_Func001Func007Func003C())thencall CreateItemLoc('I0BK',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[12]=(udg_MoobS[12]+1)call CreateNUnitsAtLoc(1,'ndth',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)else
endifendifif(Trig_Mertvie_Zemli_Func002C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Mertvie_Zemli_Func002Func002C())then
call CreateItemLoc('I0A2',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Mertvie_Zemli_Func002Func003C())then
call CreateItemLoc('I0A6',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Mertvie_Zemli_Func002Func004C())then
call CreateItemLoc('rspl',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rspl',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rre2',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rre2',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rre2',GetUnitLoc(GetDyingUnit()))else
endifcall TriggerSleepAction(120.00)call CreateNUnitsAtLoc(1,'nhar',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),22700.00,-21400.00),bj_UNIT_FACING)else
endifendfunctionfunction InitTrig_Mertvie_Zemli takes nothing returns nothingset gg_trg_Mertvie_Zemli=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Mertvie_Zemli,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(gg_trg_Mertvie_Zemli,function Trig_Mertvie_Zemli_Actions)endfunctionfunction Trig_Viggenaya_zemlia_Go_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Viggenaya_zemlia_Go_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'nfgb',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgb',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgb',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgb',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgb',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgb',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgb',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgb',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgb',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgb',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgb',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfgb',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfov',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfov',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfov',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfov',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfov',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfov',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'npfm',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'npfm',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'npfm',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'npfm',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'npfm',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'npfm',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nerd',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nerd',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nerd',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nerd',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nvde',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nvde',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nvde',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nvde',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ndqt',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ndqt',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ndqt',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ndqt',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ndqt',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nvdl',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nvdl',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nvdl',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nvdl',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nvdl',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nsrw',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nsrw',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nsrw',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nbdm',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),26600.00,3500.00),bj_UNIT_FACING)endfunctionfunction InitTrig_Viggenaya_zemlia_Go takes nothing returns nothingset gg_trg_Viggenaya_zemlia_Go=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Viggenaya_zemlia_Go,gg_rct_Viggenaya_Zemlia)call TriggerAddCondition(gg_trg_Viggenaya_zemlia_Go,Condition(function Trig_Viggenaya_zemlia_Go_Conditions))
call TriggerAddAction(gg_trg_Viggenaya_zemlia_Go,function Trig_Viggenaya_zemlia_Go_Actions)endfunctionfunction Trig_Viggenaya_Zemlia_Func001Func002Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func002Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nfgb'))thenreturn false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func003Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func003Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func003C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nfov'))thenreturn false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func004Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func004Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func004C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='npfm'))thenreturn false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func005Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func005Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func005C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nvde'))thenreturn false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func006Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func006Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func006Func004C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func006Func005C takes nothing returns booleanif(not(udg_Random_drop>20))thenreturn false
endifif(not(udg_Random_drop<=25))then
return false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func006C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nvdl'))thenreturn false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func007Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func007Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func007Func004C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func007Func005C takes nothing returns booleanif(not(udg_Random_drop>20))thenreturn false
endifif(not(udg_Random_drop<=25))then
return false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func007Func006C takes nothing returns booleanif(not(udg_Random_drop>25))thenreturn false
endifif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func007C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nsrw'))thenreturn false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func008Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func008Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func008Func004C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=25))then
return false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func008C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nerd'))thenreturn false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func009Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func009Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001Func009C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='ndqt'))thenreturn false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func001C takes nothing returns booleanif(not(udg_MoobS[13]>=200))thenreturn false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func002Func002C takes nothing returns boolean
if(not(udg_Random_drop<=35))then
return false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func002Func003C takes nothing returns boolean
if(not(udg_Random_drop>35))thenreturn false
endifif(not(udg_Random_drop<=60))then
return false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func002Func004C takes nothing returns boolean
if(not(udg_Random_drop>60))thenreturn false
endifif(not(udg_Random_drop<=90))then
return false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nbdm'))thenreturn false
endifreturn trueendfunctionfunction Trig_Viggenaya_Zemlia_Actions takes nothing returns nothing
if(Trig_Viggenaya_Zemlia_Func001C())then
call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Выжженая земля очищена!|r
|c00FFFF00Награда: 50000 золота|r")call DisableTrigger(GetTriggeringTrigger())call AdjustPlayerStateBJ(50000,Player(0),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(50000,Player(1),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(50000,Player(2),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(50000,Player(3),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(50000,Player(4),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(50000,Player(5),PLAYER_STATE_RESOURCE_GOLD)
else
if(Trig_Viggenaya_Zemlia_Func001Func002C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Viggenaya_Zemlia_Func001Func002Func002C())thencall CreateItemLoc('tgrh',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Viggenaya_Zemlia_Func001Func002Func003C())thencall CreateItemLoc('stwp',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[13]=(udg_MoobS[13]+1)call CreateNUnitsAtLoc(1,'nfgb',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)else
endifif(Trig_Viggenaya_Zemlia_Func001Func003C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Viggenaya_Zemlia_Func001Func003Func002C())thencall CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Viggenaya_Zemlia_Func001Func003Func003C())thencall CreateItemLoc('drph',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[13]=(udg_MoobS[13]+1)call CreateNUnitsAtLoc(1,'nfov',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)else
endifif(Trig_Viggenaya_Zemlia_Func001Func004C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Viggenaya_Zemlia_Func001Func004Func002C())thencall CreateItemLoc('rspl',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Viggenaya_Zemlia_Func001Func004Func003C())thencall CreateItemLoc('I0BH',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[13]=(udg_MoobS[13]+1)call CreateNUnitsAtLoc(1,'npfm',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)else
endifif(Trig_Viggenaya_Zemlia_Func001Func005C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Viggenaya_Zemlia_Func001Func005Func002C())thencall CreateItemLoc('I0BK',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Viggenaya_Zemlia_Func001Func005Func003C())thencall CreateItemLoc('I0BH',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[13]=(udg_MoobS[13]+1)call CreateNUnitsAtLoc(1,'nvde',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)else
endifif(Trig_Viggenaya_Zemlia_Func001Func006C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Viggenaya_Zemlia_Func001Func006Func002C())thencall CreateItemLoc('I0BI',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Viggenaya_Zemlia_Func001Func006Func003C())thencall CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Viggenaya_Zemlia_Func001Func006Func004C())thencall CreateItemLoc('rspl',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Viggenaya_Zemlia_Func001Func006Func005C())thencall CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[13]=(udg_MoobS[13]+1)call CreateNUnitsAtLoc(1,'nvdl',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)else
endifif(Trig_Viggenaya_Zemlia_Func001Func007C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Viggenaya_Zemlia_Func001Func007Func002C())thencall CreateItemLoc('I0BI',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Viggenaya_Zemlia_Func001Func007Func003C())thencall CreateItemLoc('I0BK',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Viggenaya_Zemlia_Func001Func007Func004C())thencall CreateItemLoc('rspl',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Viggenaya_Zemlia_Func001Func007Func005C())thencall CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Viggenaya_Zemlia_Func001Func007Func006C())thencall CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[13]=(udg_MoobS[13]+1)call CreateNUnitsAtLoc(1,'nvdl',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)else
endifif(Trig_Viggenaya_Zemlia_Func001Func008C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Viggenaya_Zemlia_Func001Func008Func002C())thencall CreateItemLoc('I0BI',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Viggenaya_Zemlia_Func001Func008Func003C())thencall CreateItemLoc('I0BK',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Viggenaya_Zemlia_Func001Func008Func004C())thencall CreateItemLoc('rspl',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[13]=(udg_MoobS[13]+1)call CreateNUnitsAtLoc(1,'nerd',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)else
endifif(Trig_Viggenaya_Zemlia_Func001Func009C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Viggenaya_Zemlia_Func001Func009Func002C())thencall CreateItemLoc('rre2',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Viggenaya_Zemlia_Func001Func009Func003C())thencall CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[13]=(udg_MoobS[13]+1)call CreateNUnitsAtLoc(1,'ndqt',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)else
endifendifif(Trig_Viggenaya_Zemlia_Func002C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Viggenaya_Zemlia_Func002Func002C())thencall CreateItemLoc('I059',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Viggenaya_Zemlia_Func002Func003C())thencall CreateItemLoc('cosl',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Viggenaya_Zemlia_Func002Func004C())thencall CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))else
endifcall TriggerSleepAction(120.00)call CreateNUnitsAtLoc(1,'nbdm',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),26750.00,3500.00),bj_UNIT_FACING)else
endifendfunctionfunction InitTrig_Viggenaya_Zemlia takes nothing returns nothing
set gg_trg_Viggenaya_Zemlia=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Viggenaya_Zemlia,EVENT_PLAYER_UNIT_DEATH)call TriggerAddAction(gg_trg_Viggenaya_Zemlia,function Trig_Viggenaya_Zemlia_Actions)endfunctionfunction Trig_Ledinoy_tron_Go_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Go_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'nadk',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nadk',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nadk',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nadk',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nadk',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nadk',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nadk',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nadk',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nadk',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nadk',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nadk',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nadk',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ufro',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ufro',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ufro',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ufro',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ufro',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ufro',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ufro',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ufro',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ufro',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ufro',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ufro',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ufro',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ufro',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ufro',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u005',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u005',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u005',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u005',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u005',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u005',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u005',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'u005',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nmgd',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nmgd',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nmgd',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nmgd',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nmgd',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nmgd',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nmgd',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nmgd',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nmgd',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nmgd',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nmgd',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nadr',Player(11),GetRandomLocInRect(gg_rct_Viggenaya_Zemlia),bj_UNIT_FACING)endfunctionfunction InitTrig_Ledinoy_tron_Go takes nothing returns nothingset gg_trg_Ledinoy_tron_Go=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Ledinoy_tron_Go,gg_rct_Ledianoy_tron)
call TriggerAddCondition(gg_trg_Ledinoy_tron_Go,Condition(function Trig_Ledinoy_tron_Go_Conditions))
call TriggerAddAction(gg_trg_Ledinoy_tron_Go,function Trig_Ledinoy_tron_Go_Actions)endfunctionfunction Trig_Ledinoy_tron_Func001Func002Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func001Func002Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func001Func002Func004C takes nothing returns booleanif(not(udg_Random_drop>10))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func001Func002Func005C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func001Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nadk'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func001Func003Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func001Func003Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func001Func003Func004C takes nothing returns booleanif(not(udg_Random_drop>10))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func001Func003Func005C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func001Func003C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='ufro'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func001Func004Func002C takes nothing returns booleanif(not(udg_Random_drop<=4))thenreturn false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func001Func004Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func001Func004Func004C takes nothing returns booleanif(not(udg_Random_drop>10))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func001Func004Func005C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func001Func004C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='u005'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func001Func005Func002C takes nothing returns booleanif(not(udg_Random_drop<=4))thenreturn false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func001Func005Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func001Func005Func004C takes nothing returns booleanif(not(udg_Random_drop>10))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func001Func005Func005C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func001Func005C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nmgd'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func001C takes nothing returns booleanif(not(udg_MoobS[14]>=200))thenreturn false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func002Func002C takes nothing returns boolean
if(not(udg_Random_drop<=35))then
return false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func002Func003C takes nothing returns boolean
if(not(udg_Random_drop>35))thenreturn false
endifif(not(udg_Random_drop<=60))then
return false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func002Func004C takes nothing returns boolean
if(not(udg_Random_drop>60))thenreturn false
endifif(not(udg_Random_drop<=90))then
return false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nadr'))thenreturn false
endifreturn trueendfunctionfunction Trig_Ledinoy_tron_Actions takes nothing returns nothing
if(Trig_Ledinoy_tron_Func001C())then
call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Ледяной трон очищен!|r
|c00FFFF00Награда: 60000 золота|r")call DisableTrigger(GetTriggeringTrigger())call AdjustPlayerStateBJ(60000,Player(0),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(60000,Player(1),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(60000,Player(2),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(60000,Player(3),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(60000,Player(4),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(60000,Player(5),PLAYER_STATE_RESOURCE_GOLD)
else
if(Trig_Ledinoy_tron_Func001Func002C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Ledinoy_tron_Func001Func002Func002C())thencall CreateItemLoc('I093',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ledinoy_tron_Func001Func002Func003C())thencall CreateItemLoc('rspl',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ledinoy_tron_Func001Func002Func004C())thencall CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ledinoy_tron_Func001Func002Func005C())thencall CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[14]=(udg_MoobS[14]+1)call CreateNUnitsAtLoc(1,'nadk',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)else
endifif(Trig_Ledinoy_tron_Func001Func003C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Ledinoy_tron_Func001Func003Func002C())thencall CreateItemLoc('I093',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ledinoy_tron_Func001Func003Func003C())thencall CreateItemLoc('rspl',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ledinoy_tron_Func001Func003Func004C())thencall CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ledinoy_tron_Func001Func003Func005C())thencall CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[14]=(udg_MoobS[14]+1)call CreateNUnitsAtLoc(1,'ufro',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)else
endifif(Trig_Ledinoy_tron_Func001Func004C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Ledinoy_tron_Func001Func004Func002C())thencall CreateItemLoc('rspl',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ledinoy_tron_Func001Func004Func003C())thencall CreateItemLoc('rspl',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ledinoy_tron_Func001Func004Func004C())thencall CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ledinoy_tron_Func001Func004Func005C())thencall CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[14]=(udg_MoobS[14]+1)call CreateNUnitsAtLoc(1,'u005',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)else
endifif(Trig_Ledinoy_tron_Func001Func005C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Ledinoy_tron_Func001Func005Func002C())thencall CreateItemLoc('rspl',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ledinoy_tron_Func001Func005Func003C())thencall CreateItemLoc('rspl',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ledinoy_tron_Func001Func005Func004C())thencall CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ledinoy_tron_Func001Func005Func005C())thencall CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[14]=(udg_MoobS[14]+1)call CreateNUnitsAtLoc(1,'nmgd',Player(11),GetRandomLocInRect(gg_rct_Dead_Forest),bj_UNIT_FACING)else
endifendifif(Trig_Ledinoy_tron_Func002C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Ledinoy_tron_Func002Func002C())thencall CreateItemLoc('I093',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rre2',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rre2',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rre2',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ledinoy_tron_Func002Func003C())thencall CreateItemLoc('pres',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Ledinoy_tron_Func002Func004C())thencall CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rre1',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rhe1',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rspl',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rspl',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('rspl',GetUnitLoc(GetDyingUnit()))else
endifcall TriggerSleepAction(120.00)call CreateNUnitsAtLoc(1,'nadr',Player(11),GetRandomLocInRect(gg_rct_Ledianoy_tron),bj_UNIT_FACING)else
endifendfunctionfunction InitTrig_Ledinoy_tron takes nothing returns nothing
set gg_trg_Ledinoy_tron=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ledinoy_tron,EVENT_PLAYER_UNIT_DEATH)call TriggerAddAction(gg_trg_Ledinoy_tron,function Trig_Ledinoy_tron_Actions)endfunctionfunction Trig_Black_vdova_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='nssp'))thenreturn false
endifreturn trueendfunctionfunction Trig_Black_vdova_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call IssueTargetOrder(GetAttackedUnitBJ(),"ensnare",GetAttacker())call TriggerSleepAction(5.00)call IssueTargetOrder(GetAttackedUnitBJ(),"hex",GetAttacker())call TriggerSleepAction(10.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Black_vdova takes nothing returns nothingset gg_trg_Black_vdova=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Black_vdova,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Black_vdova,Condition(function Trig_Black_vdova_Conditions))
call TriggerAddAction(gg_trg_Black_vdova,function Trig_Black_vdova_Actions)endfunctionfunction Trig_Kobolt_creep_Func001Func002Func002C takes nothing returns booleanif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Kobolt_creep_Func001Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='nkot'))thenreturn false
endifreturn trueendfunctionfunction Trig_Kobolt_creep_Func001C takes nothing returns booleanif(not(udg_MoobS[1]>=150))thenreturn false
endifreturn trueendfunctionfunction Trig_Kobolt_creep_Actions takes nothing returns nothing
if(Trig_Kobolt_creep_Func001C())then
call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Верхний уровень подземелья очищен.|r
|c00FFFF00Награда: 1500 золота|r")call DisableTrigger(GetTriggeringTrigger())call AdjustPlayerStateBJ(1500,Player(0),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1500,Player(1),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1500,Player(2),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1500,Player(3),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1500,Player(4),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1500,Player(5),PLAYER_STATE_RESOURCE_GOLD)else
if(Trig_Kobolt_creep_Func001Func002C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Kobolt_creep_Func001Func002Func002C())thencall CreateItemLoc('rhe3',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[1]=(udg_MoobS[1]+1)call CreateNUnitsAtLoc(1,'nkot',Player(11),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
else
endifendifendfunctionfunction InitTrig_Kobolt_creep takes nothing returns nothing
set gg_trg_Kobolt_creep=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kobolt_creep,EVENT_PLAYER_UNIT_DEATH)call TriggerAddAction(gg_trg_Kobolt_creep,function Trig_Kobolt_creep_Actions)endfunctionfunction Trig_Bandit_go_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Bandit_go_Actions takes nothing returns nothingcall CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_4))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_4))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_4))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_4))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_4))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_4))
call CreateNUnitsAtLoc(1,'osp2',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp2',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp2',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp2',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp2',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp2',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp2',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp2',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp2',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'nass',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nass',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nass',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nass',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nass',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nass',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nass',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nass',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nass',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nass',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nass',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nass',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nass',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nass',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nass',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nenf',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nenf',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nenf',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nenf',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nenf',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nenf',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nenf',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nenf',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nenf',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nenf',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nenf',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nenf',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nenf',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nenf',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nenf',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
endfunctionfunction InitTrig_Bandit_go takes nothing returns nothingset gg_trg_Bandit_go=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Bandit_go,gg_rct_Zona_4)call TriggerAddCondition(gg_trg_Bandit_go,Condition(function Trig_Bandit_go_Conditions))
call TriggerAddAction(gg_trg_Bandit_go,function Trig_Bandit_go_Actions)endfunctionfunction Trig_Lovushka_bandit_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetAttacker())=='osp2'))thenreturn false
endifreturn trueendfunctionfunction Trig_Lovushka_bandit_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(0.20)call IssueTargetOrder(GetAttacker(),"ensnare",GetAttackedUnitBJ())call GroupPointOrderLoc(GetRandomSubGroup(3,GetUnitsInRectOfPlayer(gg_rct_Zona_4,Player(11))),"attack",GetUnitLoc(GetAttackedUnitBJ()))call TriggerSleepAction(0.50)call RemoveUnit(GetAttacker())call TriggerSleepAction(5.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Lovushka_bandit takes nothing returns nothingset gg_trg_Lovushka_bandit=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Lovushka_bandit,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Lovushka_bandit,Condition(function Trig_Lovushka_bandit_Conditions))
call TriggerAddAction(gg_trg_Lovushka_bandit,function Trig_Lovushka_bandit_Actions)endfunctionfunction Trig_Lovushka_Scelet_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetAttacker())=='osp3'))thenreturn false
endifreturn trueendfunctionfunction Trig_Lovushka_Scelet_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(0.20)call IssueTargetOrder(GetAttacker(),"cripple",GetAttackedUnitBJ())call GroupPointOrderLoc(GetRandomSubGroup(3,GetUnitsInRectOfPlayer(gg_rct_Zona_4,Player(11))),"attack",GetUnitLoc(GetAttackedUnitBJ()))call TriggerSleepAction(0.50)call CreateNUnitsAtLoc(1,'u004',Player(11),GetUnitLoc(GetAttacker()),bj_UNIT_FACING)
call RemoveUnit(GetAttacker())call TriggerSleepAction(5.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Lovushka_Scelet takes nothing returns nothingset gg_trg_Lovushka_Scelet=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Lovushka_Scelet,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Lovushka_Scelet,Condition(function Trig_Lovushka_Scelet_Conditions))
call TriggerAddAction(gg_trg_Lovushka_Scelet,function Trig_Lovushka_Scelet_Actions)endfunctionfunction Trig_Lovushka_tuscarncev_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetAttacker())=='o00D'))thenreturn false
endifreturn trueendfunctionfunction Trig_Lovushka_tuscarncev_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(2.00)call RemoveUnit(GetAttacker())call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Lovushka_tuscarncev takes nothing returns nothingset gg_trg_Lovushka_tuscarncev=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Lovushka_tuscarncev,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Lovushka_tuscarncev,Condition(function Trig_Lovushka_tuscarncev_Conditions))
call TriggerAddAction(gg_trg_Lovushka_tuscarncev,function Trig_Lovushka_tuscarncev_Actions)endfunctionfunction Trig_Bandit_Func001Func002Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func002Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nass'))thenreturn false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func003Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func003Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func003C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nenf'))thenreturn false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func004C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='ocbw'))thenreturn false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func005C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nwc1'))thenreturn false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func006Func002C takes nothing returns booleanif(not(udg_Random_drop<=75))then
return false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func006C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='njks'))thenreturn false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func007Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func007Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func007C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nwiz'))thenreturn false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func008Func002C takes nothing returns booleanif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func008Func003C takes nothing returns booleanif(not(udg_Random_drop>10))thenreturn false
endifif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func008C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nwzr'))thenreturn false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func009Func002C takes nothing returns booleanif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func009C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nzom'))thenreturn false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func010Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func010Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func010C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nhfp'))thenreturn false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func011Func002C takes nothing returns booleanif(not(udg_Random_drop<=6))thenreturn false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func011Func003C takes nothing returns booleanif(not(udg_Random_drop>6))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func011C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='ngh1'))thenreturn false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func012Func002C takes nothing returns booleanif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func012Func003C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func012Func004C takes nothing returns booleanif(not(udg_Random_drop>30))thenreturn false
endifif(not(udg_Random_drop<=35))then
return false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func012C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nbdw'))thenreturn false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func013Func002C takes nothing returns booleanif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func013Func003C takes nothing returns booleanif(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func013Func004C takes nothing returns booleanif(not(udg_Random_drop>30))thenreturn false
endifif(not(udg_Random_drop<=50))then
return false
endifreturn trueendfunctionfunction Trig_Bandit_Func001Func013C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nowk'))thenreturn false
endifreturn trueendfunctionfunction Trig_Bandit_Func001C takes nothing returns booleanif(not(udg_MoobS[2]>=300))thenreturn false
endifreturn trueendfunctionfunction Trig_Bandit_Actions takes nothing returns nothingif(Trig_Bandit_Func001C())thencall DisplayTextToForce(GetPlayersAll(),"|c0000FF00Лагерь бандитов/Ведьмин лес очищен.|r
|c00FFFF00Награда: 6000 золота|r")call DisableTrigger(GetTriggeringTrigger())call AdjustPlayerStateBJ(6000,Player(0),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(6000,Player(1),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(6000,Player(2),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(6000,Player(3),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(6000,Player(4),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(6000,Player(5),PLAYER_STATE_RESOURCE_GOLD)else
if(Trig_Bandit_Func001Func002C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Bandit_Func001Func002Func002C())then
call CreateItemLoc(ChooseRandomItemBJ(2),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Bandit_Func001Func002Func003C())then
call CreateItemLoc('I08W',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[2]=(udg_MoobS[2]+1)call CreateNUnitsAtLoc(1,'nass',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
else
endifif(Trig_Bandit_Func001Func003C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Bandit_Func001Func003Func002C())then
call CreateItemLoc(ChooseRandomItemBJ(2),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Bandit_Func001Func003Func003C())then
call CreateItemLoc('I08W',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[2]=(udg_MoobS[2]+1)call CreateNUnitsAtLoc(1,'nenf',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
else
endifif(Trig_Bandit_Func001Func004C())thencall CreateItemLoc(ChooseRandomItemBJ(2),GetUnitLoc(GetDyingUnit()))
call GroupPointOrderLoc(GetRandomSubGroup(3,GetUnitsInRectOfPlayer(gg_rct_Zona_4,Player(11))),"attack",GetUnitLoc(GetKillingUnitBJ()))else
endifif(Trig_Bandit_Func001Func005C())thencall CreateItemLoc('hslv',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('I08W',GetUnitLoc(GetDyingUnit()))call GroupPointOrderLoc(GetRandomSubGroup(3,GetUnitsInRectOfPlayer(gg_rct_Zona_4,Player(11))),"attack",GetUnitLoc(GetKillingUnitBJ()))else
endifif(Trig_Bandit_Func001Func006C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Bandit_Func001Func006Func002C())then
call CreateItemLoc(ChooseRandomItemBJ(3),GetUnitLoc(GetDyingUnit()))
else
endifelse
endifif(Trig_Bandit_Func001Func007C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Bandit_Func001Func007Func002C())then
call CreateItemLoc(ChooseRandomItemBJ(2),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Bandit_Func001Func007Func003C())then
call CreateItemLoc('I08W',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[2]=(udg_MoobS[2]+1)call CreateNUnitsAtLoc(1,'nwiz',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
else
endifif(Trig_Bandit_Func001Func008C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Bandit_Func001Func008Func002C())then
call CreateItemLoc(ChooseRandomItemBJ(2),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Bandit_Func001Func008Func003C())then
call CreateItemLoc('I08W',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[2]=(udg_MoobS[2]+1)call CreateNUnitsAtLoc(1,'nwzr',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
else
endifif(Trig_Bandit_Func001Func009C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Bandit_Func001Func009Func002C())then
call CreateItemLoc(ChooseRandomItemBJ(1),GetUnitLoc(GetDyingUnit()))
else
endifset udg_MoobS[2]=(udg_MoobS[2]+1)call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
else
endifif(Trig_Bandit_Func001Func010C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Bandit_Func001Func010Func002C())then
call CreateItemLoc(ChooseRandomItemBJ(2),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Bandit_Func001Func010Func003C())then
call CreateItemLoc('I08W',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[2]=(udg_MoobS[2]+1)call CreateNUnitsAtLoc(1,'nhfp',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
else
endifif(Trig_Bandit_Func001Func011C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Bandit_Func001Func011Func002C())then
call CreateItemLoc(ChooseRandomItemBJ(2),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Bandit_Func001Func011Func003C())then
call CreateItemLoc('I08W',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[2]=(udg_MoobS[2]+1)call CreateNUnitsAtLoc(1,'ngh1',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
else
endifif(Trig_Bandit_Func001Func012C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Bandit_Func001Func012Func002C())then
call CreateItemLoc('shtm',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Bandit_Func001Func012Func003C())then
call CreateItemLoc('tmsc',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Bandit_Func001Func012Func004C())then
call CreateItemLoc('grsl',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[2]=(udg_MoobS[2]+1)call TriggerSleepAction(90.00)call CreateNUnitsAtLoc(1,'nbdw',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
else
endifif(Trig_Bandit_Func001Func013C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Bandit_Func001Func013Func002C())then
call CreateItemLoc('shwd',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Bandit_Func001Func013Func003C())then
call CreateItemLoc('oflg',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Bandit_Func001Func013Func004C())then
call CreateItemLoc('spro',GetUnitLoc(GetDyingUnit()))else
endifelse
endifendifendfunctionfunction InitTrig_Bandit takes nothing returns nothingset gg_trg_Bandit=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Bandit,EVENT_PLAYER_UNIT_DEATH)call TriggerAddAction(gg_trg_Bandit,function Trig_Bandit_Actions)endfunctionfunction Trig_Bandit_shit_Func001001 takes nothing returns booleanreturn(GetUnitTypeId(GetAttackedUnitBJ())=='nass')endfunctionfunction Trig_Bandit_shit_Func001002 takes nothing returns booleanreturn(GetUnitTypeId(GetAttackedUnitBJ())=='nenf')endfunctionfunction Trig_Bandit_shit_Conditions takes nothing returns booleanif(not GetBooleanOr(Trig_Bandit_shit_Func001001(),Trig_Bandit_shit_Func001002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Bandit_shit_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call IssueImmediateOrder(GetAttackedUnitBJ(),"defend")call TriggerSleepAction(5.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Bandit_shit takes nothing returns nothingset gg_trg_Bandit_shit=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Bandit_shit,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Bandit_shit,Condition(function Trig_Bandit_shit_Conditions))
call TriggerAddAction(gg_trg_Bandit_shit,function Trig_Bandit_shit_Actions)endfunctionfunction Trig_Duh_vody_Func001C takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='nsel'))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_vody_Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='nfod'))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_vody_Actions takes nothing returns nothing
if(Trig_Duh_vody_Func001C())then
call DisableTrigger(GetTriggeringTrigger())call IssueTargetOrder(GetAttackedUnitBJ(),"impale",GetAttacker())call TriggerSleepAction(6.00)call IssuePointOrderLoc(GetAttackedUnitBJ(),"shockwave",GetUnitLoc(GetAttacker()))call TriggerSleepAction(20.00)call EnableTrigger(GetTriggeringTrigger())else
endifif(Trig_Duh_vody_Func002C())then
call DisableTrigger(GetTriggeringTrigger())call IssuePointOrderLoc(GetAttackedUnitBJ(),"stampede",GetUnitLoc(GetAttacker()))call TriggerSleepAction(180.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_Duh_vody takes nothing returns nothing
set gg_trg_Duh_vody=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Duh_vody,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddAction(gg_trg_Duh_vody,function Trig_Duh_vody_Actions)endfunctionfunction Trig_Duh_groma_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttackedUnitBJ())=='nrvl'))thenreturn false
endifreturn trueendfunctionfunction Trig_Duh_groma_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call IssueTargetOrder(GetAttackedUnitBJ(),"forkedlightning",GetAttacker())call TriggerSleepAction(5.00)call IssueTargetOrder(GetAttackedUnitBJ(),"purge",GetAttacker())
call TriggerSleepAction(5.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Duh_groma takes nothing returns nothingset gg_trg_Duh_groma=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Duh_groma,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Duh_groma,Condition(function Trig_Duh_groma_Conditions))
call TriggerAddAction(gg_trg_Duh_groma,function Trig_Duh_groma_Actions)endfunctionfunction Trig_Krab_go_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Krab_go_Func006C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gmfr')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Krab_go_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'nsc2',Player(11),GetRandomLocInRect(gg_rct_Zona_9),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nsc2',Player(11),GetRandomLocInRect(gg_rct_Zona_9),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nsc2',Player(11),GetRandomLocInRect(gg_rct_Zona_9),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nsc3',Player(11),GetRandomLocInRect(gg_rct_Zona_9),bj_UNIT_FACING)
if(Trig_Krab_go_Func006C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gmfr'))call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Корабль с сокровищами уже рядом!|r")call CreateItemLoc('gold',GetRectCenter(gg_rct_Zona_9))call CreateItemLoc('gold',GetRectCenter(gg_rct_Zona_9))call CreateItemLoc('gold',GetRectCenter(gg_rct_Zona_9))call CreateItemLoc('gold',GetRectCenter(gg_rct_Zona_9))call CreateItemLoc('wtlg',GetRectCenter(gg_rct_Zona_9))call CreateItemLoc('wtlg',GetRectCenter(gg_rct_Zona_9))call CreateItemLoc('wtlg',GetRectCenter(gg_rct_Zona_9))call CreateItemLoc('wtlg',GetRectCenter(gg_rct_Zona_9))call CreateItemLoc('rhe3',GetRectCenter(gg_rct_Zona_9))call CreateItemLoc('rhe3',GetRectCenter(gg_rct_Zona_9))call CreateItemLoc('rhe3',GetRectCenter(gg_rct_Zona_9))call CreateItemLoc('rhe3',GetRectCenter(gg_rct_Zona_9))call CreateItemLoc('rhe3',GetRectCenter(gg_rct_Zona_9))else
endifcall TriggerSleepAction(60.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Krab_go takes nothing returns nothingset gg_trg_Krab_go=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Krab_go,gg_rct_Zona_9)call TriggerAddCondition(gg_trg_Krab_go,Condition(function Trig_Krab_go_Conditions))
call TriggerAddAction(gg_trg_Krab_go,function Trig_Krab_go_Actions)endfunctionfunction Trig_Kentavry_go_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kentavry_go_Actions takes nothing returns nothingcall CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_5))
call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_5))
call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_5))
call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_5))
call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_5))
call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_5))
call DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'ncer',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ncer',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ncer',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ncer',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ncer',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ncer',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ncer',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ncer',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ncea',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ncea',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ncea',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ncea',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ncea',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ncea',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ncks',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ncks',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
endfunctionfunction InitTrig_Kentavry_go takes nothing returns nothingset gg_trg_Kentavry_go=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Kentavry_go,gg_rct_Zona_5)call TriggerAddCondition(gg_trg_Kentavry_go,Condition(function Trig_Kentavry_go_Conditions))
call TriggerAddAction(gg_trg_Kentavry_go,function Trig_Kentavry_go_Actions)endfunctionfunction Trig_Kentavry_Func001Func009Func002C takes nothing returns booleanif(not(udg_Random_drop<=25))then
return false
endifreturn trueendfunctionfunction Trig_Kentavry_Func001Func009Func003C takes nothing returns booleanif(not(udg_Random_drop>25))thenreturn false
endifif(not(udg_Random_drop<=75))then
return false
endifreturn trueendfunctionfunction Trig_Kentavry_Func001Func009C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='ncnk'))thenreturn false
endifreturn trueendfunctionfunction Trig_Kentavry_Func001Func010Func002C takes nothing returns booleanif(not(udg_Random_drop<=8))thenreturn false
endifreturn trueendfunctionfunction Trig_Kentavry_Func001Func010Func003C takes nothing returns booleanif(not(udg_Random_drop>8))thenreturn false
endifif(not(udg_Random_drop<=35))then
return false
endifreturn trueendfunctionfunction Trig_Kentavry_Func001Func010C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='ncks'))thenreturn false
endifreturn trueendfunctionfunction Trig_Kentavry_Func001Func011Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Kentavry_Func001Func011Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=25))then
return false
endifreturn trueendfunctionfunction Trig_Kentavry_Func001Func011C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='ncea'))thenreturn false
endifreturn trueendfunctionfunction Trig_Kentavry_Func001Func012Func002C takes nothing returns booleanif(not(udg_Random_drop<=5))thenreturn false
endifreturn trueendfunctionfunction Trig_Kentavry_Func001Func012Func003C takes nothing returns booleanif(not(udg_Random_drop>5))thenreturn false
endifif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Kentavry_Func001Func012C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='ncer'))thenreturn false
endifreturn trueendfunctionfunction Trig_Kentavry_Func001C takes nothing returns booleanif(not(udg_MoobS[6]>=250))thenreturn false
endifreturn trueendfunctionfunction Trig_Kentavry_Func002Func002C takes nothing returns boolean
if(not(udg_Random_drop<=75))then
return false
endifreturn trueendfunctionfunction Trig_Kentavry_Func002Func003C takes nothing returns boolean
if(not(udg_Random_drop>75))thenreturn false
endifreturn trueendfunctionfunction Trig_Kentavry_Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='ngdk'))thenreturn false
endifreturn trueendfunctionfunction Trig_Kentavry_Func003C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nbwm'))thenreturn false
endifreturn trueendfunctionfunction Trig_Kentavry_Func004Func002C takes nothing returns boolean
if(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Kentavry_Func004Func003C takes nothing returns boolean
if(not(udg_Random_drop>15))thenreturn false
endifif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Kentavry_Func004Func004C takes nothing returns boolean
if(not(udg_Random_drop>30))thenreturn false
endifif(not(udg_Random_drop<=50))then
return false
endifreturn trueendfunctionfunction Trig_Kentavry_Func004C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nhrq'))thenreturn false
endifreturn trueendfunctionfunction Trig_Kentavry_Func005C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nrwm'))thenreturn false
endifreturn trueendfunctionfunction Trig_Kentavry_Actions takes nothing returns nothing
if(Trig_Kentavry_Func001C())then
call DisableTrigger(GetTriggeringTrigger())call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Пустоши очищены от кентавров.|r
|c00FFFF00Награда: 7500 золота|r")call AdjustPlayerStateBJ(7500,Player(0),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(7500,Player(1),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(7500,Player(2),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(7500,Player(3),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(7500,Player(4),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(7500,Player(5),PLAYER_STATE_RESOURCE_GOLD)else
if(Trig_Kentavry_Func001Func009C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Kentavry_Func001Func009Func002C())thencall CreateItemLoc('kgal',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Kentavry_Func001Func009Func003C())thencall CreateItemLoc('I08X',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[6]=(udg_MoobS[6]+1)call TriggerSleepAction(120.00)call CreateNUnitsAtLoc(1,'ncnk',Player(11),GetRandomLocInRect(gg_rct_Ogry),bj_UNIT_FACING)else
endifif(Trig_Kentavry_Func001Func010C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Kentavry_Func001Func010Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(3),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Kentavry_Func001Func010Func003C())thencall CreateItemLoc('I08X',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[6]=(udg_MoobS[6]+1)call CreateNUnitsAtLoc(1,'ncks',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
else
endifif(Trig_Kentavry_Func001Func011C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Kentavry_Func001Func011Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(3),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Kentavry_Func001Func011Func003C())thencall CreateItemLoc('I08X',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[6]=(udg_MoobS[6]+1)call CreateNUnitsAtLoc(1,'ncea',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
else
endifif(Trig_Kentavry_Func001Func012C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Kentavry_Func001Func012Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(3),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Kentavry_Func001Func012Func003C())thencall CreateItemLoc('I08X',GetUnitLoc(GetDyingUnit()))else
endifset udg_MoobS[6]=(udg_MoobS[6]+1)call CreateNUnitsAtLoc(1,'ncer',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
else
endifendifif(Trig_Kentavry_Func002C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Kentavry_Func002Func002C())thencall CreateItemLoc('I093',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Kentavry_Func002Func003C())thencall CreateItemLoc(ChooseRandomItemBJ(4),GetUnitLoc(GetDyingUnit()))
else
endifelse
endifif(Trig_Kentavry_Func003C())then
call CreateItemLoc('I093',GetUnitLoc(GetDyingUnit()))call TriggerSleepAction(240.00)call CreateNUnitsAtLoc(1,'nbwm',Player(11),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
else
endifif(Trig_Kentavry_Func004C())then
set udg_Random_drop=GetRandomInt(1,100)if(Trig_Kentavry_Func004Func002C())thencall CreateItemLoc('sor3',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Kentavry_Func004Func003C())thencall CreateItemLoc('stwp',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Kentavry_Func004Func004C())thencall CreateItemLoc('rots',GetUnitLoc(GetDyingUnit()))else
endifelse
endifif(Trig_Kentavry_Func005C())then
call CreateItemLoc('I09G',GetUnitLoc(GetDyingUnit()))call CreateItemLoc('I093',GetUnitLoc(GetDyingUnit()))else
endifendfunctionfunction InitTrig_Kentavry takes nothing returns nothing
set gg_trg_Kentavry=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kentavry,EVENT_PLAYER_UNIT_DEATH)call TriggerAddAction(gg_trg_Kentavry,function Trig_Kentavry_Actions)endfunctionfunction Trig_Salamandry_go_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Salamandry_go_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_10))call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_10))call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_10))call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_10))call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_10))call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_10))call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_10))call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_10))call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_10))call CreateNUnitsAtLoc(1,'nslr',Player(11),GetRandomLocInRect(gg_rct_Zona_10),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nslr',Player(11),GetRandomLocInRect(gg_rct_Zona_10),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nslr',Player(11),GetRandomLocInRect(gg_rct_Zona_10),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nslr',Player(11),GetRandomLocInRect(gg_rct_Zona_10),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nslr',Player(11),GetRandomLocInRect(gg_rct_Zona_10),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nslv',Player(11),GetRandomLocInRect(gg_rct_Zona_10),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nslv',Player(11),GetRandomLocInRect(gg_rct_Zona_10),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nslv',Player(11),GetRandomLocInRect(gg_rct_Zona_10),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nsll',Player(11),GetRandomLocInRect(gg_rct_Zona_10),bj_UNIT_FACING)endfunctionfunction InitTrig_Salamandry_go takes nothing returns nothingset gg_trg_Salamandry_go=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Salamandry_go,gg_rct_Zona_10)
call TriggerAddCondition(gg_trg_Salamandry_go,Condition(function Trig_Salamandry_go_Conditions))
call TriggerAddAction(gg_trg_Salamandry_go,function Trig_Salamandry_go_Actions)endfunctionfunction Trig_Salamandry_Func001Func002C takes nothing returns booleanif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Salamandry_Func001Func003C takes nothing returns booleanif(not(udg_Random_drop>=10))then
return false
endifif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Salamandry_Func001C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nslr'))thenreturn false
endifreturn trueendfunctionfunction Trig_Salamandry_Func002Func002C takes nothing returns booleanif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Salamandry_Func002Func003C takes nothing returns booleanif(not(udg_Random_drop>=20))then
return false
endifif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Salamandry_Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nslv'))thenreturn false
endifreturn trueendfunctionfunction Trig_Salamandry_Func003Func002C takes nothing returns booleanif(not(udg_Random_drop<=25))then
return false
endifreturn trueendfunctionfunction Trig_Salamandry_Func003Func003C takes nothing returns booleanif(not(udg_Random_drop>=25))then
return false
endifif(not(udg_Random_drop<=40))then
return false
endifreturn trueendfunctionfunction Trig_Salamandry_Func003C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nsll'))thenreturn false
endifreturn trueendfunctionfunction Trig_Salamandry_Actions takes nothing returns nothingif(Trig_Salamandry_Func001C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Salamandry_Func001Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(3),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Salamandry_Func001Func003C())thencall CreateItemLoc('I097',GetUnitLoc(GetDyingUnit()))else
endifcall CreateNUnitsAtLoc(1,'nslr',Player(11),GetRandomLocInRect(gg_rct_Zona_10),bj_UNIT_FACING)else
endifif(Trig_Salamandry_Func002C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Salamandry_Func002Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(3),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Salamandry_Func002Func003C())thencall CreateItemLoc('I097',GetUnitLoc(GetDyingUnit()))else
endifcall CreateNUnitsAtLoc(1,'nslv',Player(11),GetRandomLocInRect(gg_rct_Zona_10),bj_UNIT_FACING)else
endifif(Trig_Salamandry_Func003C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Salamandry_Func003Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(4),GetUnitLoc(GetDyingUnit()))
else
endifif(Trig_Salamandry_Func003Func003C())thencall CreateItemLoc('I097',GetUnitLoc(GetDyingUnit()))else
endifcall CreateNUnitsAtLoc(1,'nsll',Player(11),GetRandomLocInRect(gg_rct_Zona_10),bj_UNIT_FACING)else
endifendfunctionfunction InitTrig_Salamandry takes nothing returns nothingset gg_trg_Salamandry=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Salamandry,EVENT_PLAYER_UNIT_DEATH)call TriggerAddAction(gg_trg_Salamandry,function Trig_Salamandry_Actions)endfunctionfunction Trig_Beorny_Go_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Beorny_Go_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_11))call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_11))call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_11))call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_11))call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_11))call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_11))call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_11))call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_11))call CreateNUnitsAtLoc(1,'nfrb',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrb',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrb',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrb',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrb',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrb',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrb',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrs',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrs',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrs',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrs',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrb',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrb',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrb',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrb',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrb',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrb',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrb',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrs',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrs',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrs',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrs',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfre',Player(11),GetRandomLocInRect(gg_rct_Zona_11),bj_UNIT_FACING)endfunctionfunction InitTrig_Beorny_Go takes nothing returns nothingset gg_trg_Beorny_Go=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Beorny_Go,gg_rct_Zona_11)
call TriggerAddCondition(gg_trg_Beorny_Go,Condition(function Trig_Beorny_Go_Conditions))
call TriggerAddAction(gg_trg_Beorny_Go,function Trig_Beorny_Go_Actions)endfunctionfunction Trig_Beorny_Func001Func002C takes nothing returns booleanif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Beorny_Func001C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nfrb'))thenreturn false
endifreturn trueendfunctionfunction Trig_Beorny_Func002Func002C takes nothing returns booleanif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Beorny_Func002C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nfrs'))thenreturn false
endifreturn trueendfunctionfunction Trig_Beorny_Func003Func002C takes nothing returns booleanif(not(udg_Random_drop<=20))then
return false
endifreturn trueendfunctionfunction Trig_Beorny_Func003C takes nothing returns booleanif(not(GetUnitTypeId(GetDyingUnit())=='nfre'))thenreturn false
endifreturn trueendfunctionfunction Trig_Beorny_Actions takes nothing returns nothingif(Trig_Beorny_Func001C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Beorny_Func001Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(4),GetUnitLoc(GetDyingUnit()))
else
endifelse
endifif(Trig_Beorny_Func002C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Beorny_Func002Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(4),GetUnitLoc(GetDyingUnit()))
else
endifelse
endifif(Trig_Beorny_Func003C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Beorny_Func003Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(4),GetUnitLoc(GetDyingUnit()))
else
endifelse
endifendfunctionfunction InitTrig_Beorny takes nothing returns nothingset gg_trg_Beorny=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Beorny,EVENT_PLAYER_UNIT_DEATH)call TriggerAddAction(gg_trg_Beorny,function Trig_Beorny_Actions)endfunctionfunction Trig_Boynia_Go_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Boynia_Go_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateItemLoc('rej4',GetRandomLocInRect(gg_rct_Boqnia))
call CreateItemLoc('rej4',GetRandomLocInRect(gg_rct_Boqnia))
call CreateItemLoc('rej4',GetRandomLocInRect(gg_rct_Boqnia))
call CreateItemLoc('rej4',GetRandomLocInRect(gg_rct_Boqnia))
call CreateItemLoc('rej4',GetRandomLocInRect(gg_rct_Boqnia))
call CreateNUnitsAtLoc(1,'u012',Player(11),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call TriggerSleepAction(10.00)call CreateNUnitsAtLoc(1,'u012',Player(11),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
call TriggerSleepAction(30.00)call CreateNUnitsAtLoc(1,'uabc',Player(11),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
endfunctionfunction InitTrig_Boynia_Go takes nothing returns nothingset gg_trg_Boynia_Go=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Boynia_Go,gg_rct_Boqnia)call TriggerAddCondition(gg_trg_Boynia_Go,Condition(function Trig_Boynia_Go_Conditions))
call TriggerAddAction(gg_trg_Boynia_Go,function Trig_Boynia_Go_Actions)endfunctionfunction Trig_Boynia_krip_Func001Func002C takes nothing returns booleanif(not(udg_Random_drop<=10))then
return false
endifreturn trueendfunctionfunction Trig_Boynia_krip_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='u012'))thenreturn false
endifreturn trueendfunctionfunction Trig_Boynia_krip_Func002Func002C takes nothing returns booleanif(not(udg_Random_drop<=15))then
return false
endifreturn trueendfunctionfunction Trig_Boynia_krip_Func002Func003C takes nothing returns booleanif(not(udg_Random_drop>=15))then
return false
endifif(not(udg_Random_drop<=30))then
return false
endifreturn trueendfunctionfunction Trig_Boynia_krip_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='uabc'))thenreturn false
endifreturn trueendfunctionfunction Trig_Boynia_krip_Actions takes nothing returns nothingif(Trig_Boynia_krip_Func001C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Boynia_krip_Func001Func002C())thencall CreateItemLoc(ChooseRandomItemBJ(4),GetUnitLoc(GetDyingUnit()))
else
endifcall TriggerSleepAction(30.00)call CreateNUnitsAtLoc(1,'u012',Player(11),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
else
endifif(Trig_Boynia_krip_Func002C())thenset udg_Random_drop=GetRandomInt(1,100)if(Trig_Boynia_krip_Func002Func002C())thencall CreateItemLoc('dtsb',GetUnitLoc(GetDyingUnit()))else
endifif(Trig_Boynia_krip_Func002Func003C())thencall CreateItemLoc('tgxp',GetUnitLoc(GetDyingUnit()))else
endifcall TriggerSleepAction(180.00)call CreateNUnitsAtLoc(1,'uabc',Player(11),GetRandomLocInRect(gg_rct_Boqnia),bj_UNIT_FACING)
else
endifendfunctionfunction InitTrig_Boynia_krip takes nothing returns nothingset gg_trg_Boynia_krip=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Boynia_krip,EVENT_PLAYER_UNIT_DEATH)call TriggerAddAction(gg_trg_Boynia_krip,function Trig_Boynia_krip_Actions)endfunctionfunction Trig_Gold_scorpion_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttackedUnitBJ())=='nanc'))thenreturn false
endifreturn trueendfunctionfunction Trig_Gold_scorpion_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call IssueTargetOrder(GetAttackedUnitBJ(),"drunkenhaze",GetAttacker())call TriggerSleepAction(15.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Gold_scorpion takes nothing returns nothingset gg_trg_Gold_scorpion=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Gold_scorpion,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Gold_scorpion,Condition(function Trig_Gold_scorpion_Conditions))
call TriggerAddAction(gg_trg_Gold_scorpion,function Trig_Gold_scorpion_Actions)endfunctionfunction Trig_Nefritovaya_cherepaha_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttackedUnitBJ())=='ntrh'))thenreturn false
endifreturn trueendfunctionfunction Trig_Nefritovaya_cherepaha_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call IssueImmediateOrder(GetAttackedUnitBJ(),"creepthunderclap")
call TriggerSleepAction(20.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Nefritovaya_cherepaha takes nothing returns nothingset gg_trg_Nefritovaya_cherepaha=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Nefritovaya_cherepaha,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Nefritovaya_cherepaha,Condition(function Trig_Nefritovaya_cherepaha_Conditions))
call TriggerAddAction(gg_trg_Nefritovaya_cherepaha,function Trig_Nefritovaya_cherepaha_Actions)endfunctionfunction Trig_Eretik_Conditions takes nothing returns booleanif(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())<=400.00))thenreturn false
endifif(not(GetUnitTypeId(GetAttackedUnitBJ())=='nhhr'))thenreturn false
endifreturn trueendfunctionfunction Trig_Eretik_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call IssueTargetOrder(GetAttackedUnitBJ(),"drain",GetAttacker())
call TriggerSleepAction(10.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Eretik takes nothing returns nothingset gg_trg_Eretik=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Eretik,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Eretik,Condition(function Trig_Eretik_Conditions))call TriggerAddAction(gg_trg_Eretik,function Trig_Eretik_Actions)endfunctionfunction Trig_Zerkalo_vremeny_Actions takes nothing returns nothingcall SetUnitPositionLoc(gg_unit_e002_0626,GetUnitLoc(GetDyingUnit()))call TriggerSleepAction(2)call IssuePointOrderLoc(gg_unit_e002_0626,"attack",GetUnitLoc(GetKillingUnitBJ()))call TriggerSleepAction(40.00)call IssuePointOrderLoc(gg_unit_e002_0626,"attack",GetUnitLoc(GetKillingUnitBJ()))call TriggerSleepAction(80.00)call IssuePointOrderLoc(gg_unit_e002_0626,"attack",GetUnitLoc(GetKillingUnitBJ()))call TriggerSleepAction(80.00)call IssuePointOrderLoc(gg_unit_e002_0626,"attack",GetUnitLoc(GetKillingUnitBJ()))endfunctionfunction InitTrig_Zerkalo_vremeny takes nothing returns nothingset gg_trg_Zerkalo_vremeny=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Zerkalo_vremeny,gg_unit_ncta_0627,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_Zerkalo_vremeny,function Trig_Zerkalo_vremeny_Actions)endfunctionfunction Trig_Sklep_dreca_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'u017',Player(6),GetRectCenter(gg_rct_Sklep),bj_UNIT_FACING)endfunctionfunction InitTrig_Sklep_dreca takes nothing returns nothingset gg_trg_Sklep_dreca=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Sklep_dreca,gg_unit_nbsm_0775,EVENT_UNIT_DEATH)
call TriggerAddAction(gg_trg_Sklep_dreca,function Trig_Sklep_dreca_Actions)endfunctionfunction Trig_Zatochennaya_realnost_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'wswd')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I089')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zatochennaya_realnost_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I089'))call TriggerSleepAction(2)call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_nmoo_0271),"Abilities\\Spells\\Other\\HowlOfTerror\\HowlCaster.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_nmoo_0271),"Abilities\\Spells\\Other\\HowlOfTerror\\HowlCaster.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_nmoo_0271),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(1.00)call SetUnitInvulnerable(gg_unit_nmoo_0271,false)call KillUnit(gg_unit_nmoo_0271)
endfunctionfunction InitTrig_Zatochennaya_realnost takes nothing returns nothingset gg_trg_Zatochennaya_realnost=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(gg_trg_Zatochennaya_realnost,400.00,gg_unit_nmoo_0271)
call TriggerAddCondition(gg_trg_Zatochennaya_realnost,Condition(function Trig_Zatochennaya_realnost_Conditions))
call TriggerAddAction(gg_trg_Zatochennaya_realnost,function Trig_Zatochennaya_realnost_Actions)endfunctionfunction Trig_Neptulon_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'skrt')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Neptulon_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'skrt'))call TriggerSleepAction(4.00)call DisplayTextToForce(GetPlayersAll(),"|c0000FFFFНептулон:|r Узрите силу чистой воды...")call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Neptulon),"Abilities\\Spells\\Items\\AIre\\AIreTarget.mdl")call TriggerSleepAction(2)call CreateNUnitsAtLoc(1,'nfod',Player(10),GetRectCenter(gg_rct_Neptulon),bj_UNIT_FACING)call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Mediv_oborona))call TriggerSleepAction(30.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Zona_6,Player(11)),"attack",GetRectCenter(gg_rct_Mediv_oborona))call TriggerSleepAction(30.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Zona_6,Player(11)),"attack",GetRectCenter(gg_rct_Mediv_oborona))call TriggerSleepAction(30.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Zona_6,Player(11)),"attack",GetRectCenter(gg_rct_Mediv_oborona))call TriggerSleepAction(30.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Zona_6,Player(11)),"attack",GetRectCenter(gg_rct_Mediv_oborona))call TriggerSleepAction(30.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Zona_6,Player(11)),"attack",GetRectCenter(gg_rct_Mediv_oborona))call TriggerSleepAction(30.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Zona_6,Player(11)),"attack",GetRectCenter(gg_rct_Mediv_oborona))call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRandomLocInRect(gg_rct_Mediv_oborona))endfunctionfunction InitTrig_Neptulon takes nothing returns nothing
set gg_trg_Neptulon=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Neptulon,gg_rct_Neptulon)
call TriggerAddCondition(gg_trg_Neptulon,Condition(function Trig_Neptulon_Conditions))call TriggerAddAction(gg_trg_Neptulon,function Trig_Neptulon_Actions)endfunctionfunction Trig_Frostmorn_chary_Conditions takes nothing returns booleanif(not(IsUnitDeadBJ(gg_unit_nfrm_0631)==true))thenreturn false
endifif(not(IsUnitDeadBJ(gg_unit_nfrm_0632)==true))thenreturn false
endifif(not(IsUnitDeadBJ(gg_unit_nfrm_0633)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Frostmorn_chary_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call CreateItemLoc('oli2',GetRectCenter(gg_rct_Frostmorn))endfunctionfunction InitTrig_Frostmorn_chary takes nothing returns nothingset gg_trg_Frostmorn_chary=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Frostmorn_chary,gg_unit_nfrm_0631,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(gg_trg_Frostmorn_chary,gg_unit_nfrm_0632,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(gg_trg_Frostmorn_chary,gg_unit_nfrm_0633,EVENT_UNIT_DEATH)
call TriggerAddCondition(gg_trg_Frostmorn_chary,Condition(function Trig_Frostmorn_chary_Conditions))
call TriggerAddAction(gg_trg_Frostmorn_chary,function Trig_Frostmorn_chary_Actions)endfunctionfunction Trig_Zapusk_crosher_Func003C takes nothing returns booleanif(not(udg_Random_drop<=70))then
return false
endifreturn trueendfunctionfunction Trig_Zapusk_crosher_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())set udg_Random_drop=GetRandomInt(1,100)if(Trig_Zapusk_crosher_Func003C())thencall TriggerSleepAction(2)call SetUnitOwner(gg_unit_ngbl_0768,Player(0),true)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Крошшер:|r Активирован протокол очистки.")call TriggerSleepAction(90.00)call KillUnit(gg_unit_ngbl_0768)
else
call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00Крошшер:|r Активирован прото#$%%^#@!.")call TriggerSleepAction(3.00)call CreateItemLoc('glsk',GetUnitLoc(gg_unit_ngbl_0768))
call CreateNUnitsAtLoc(1,'nslf',Player(6),GetUnitLoc(gg_unit_ngbl_0768),bj_UNIT_FACING)call KillUnit(gg_unit_ngbl_0768)
call TriggerSleepAction(3.00)call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+": Черт слизники разьели крошшера изнутри."))endifendfunctionfunction InitTrig_Zapusk_crosher takes nothing returns nothingset gg_trg_Zapusk_crosher=CreateTrigger()call TriggerRegisterDeathEvent(gg_trg_Zapusk_crosher,gg_dest_DTlv_9274)call TriggerAddAction(gg_trg_Zapusk_crosher,function Trig_Zapusk_crosher_Actions)endfunctionfunction Trig_Otpravka_predmetov_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A0BW'))then
return false
endifreturn trueendfunctionfunction Trig_Otpravka_predmetov_Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetSpellAbilityUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Otpravka_predmetov_Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetSpellAbilityUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Otpravka_predmetov_Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetSpellAbilityUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Otpravka_predmetov_Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetSpellAbilityUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Otpravka_predmetov_Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetSpellAbilityUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Otpravka_predmetov_Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetSpellAbilityUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Otpravka_predmetov_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())if(Trig_Otpravka_predmetov_Func002C())thencall UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0276,1),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0276,2),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0276,3),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0276,4),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0276,5),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0276,6),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0592,1),gg_unit_h009_0276)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0592,2),gg_unit_h009_0276)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0592,3),gg_unit_h009_0276)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0592,4),gg_unit_h009_0276)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0592,5),gg_unit_h009_0276)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0592,6),gg_unit_h009_0276)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,1),gg_unit_H00S_0592)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,2),gg_unit_H00S_0592)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,3),gg_unit_H00S_0592)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,4),gg_unit_H00S_0592)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,5),gg_unit_H00S_0592)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,6),gg_unit_H00S_0592)
else
endifif(Trig_Otpravka_predmetov_Func003C())thencall UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0277,1),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0277,2),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0277,3),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0277,4),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0277,5),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0277,6),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0595,1),gg_unit_h009_0277)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0595,2),gg_unit_h009_0277)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0595,3),gg_unit_h009_0277)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0595,4),gg_unit_h009_0277)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0595,5),gg_unit_h009_0277)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0595,6),gg_unit_h009_0277)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,1),gg_unit_H00S_0595)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,2),gg_unit_H00S_0595)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,3),gg_unit_H00S_0595)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,4),gg_unit_H00S_0595)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,5),gg_unit_H00S_0595)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,6),gg_unit_H00S_0595)
else
endifif(Trig_Otpravka_predmetov_Func004C())thencall UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0278,1),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0278,2),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0278,3),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0278,4),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0278,5),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0278,6),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0596,1),gg_unit_h009_0278)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0596,2),gg_unit_h009_0278)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0596,3),gg_unit_h009_0278)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0596,4),gg_unit_h009_0278)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0596,5),gg_unit_h009_0278)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0596,6),gg_unit_h009_0278)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,1),gg_unit_H00S_0596)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,2),gg_unit_H00S_0596)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,3),gg_unit_H00S_0596)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,4),gg_unit_H00S_0596)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,5),gg_unit_H00S_0596)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,6),gg_unit_H00S_0596)
else
endifif(Trig_Otpravka_predmetov_Func005C())thencall UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0279,1),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0279,2),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0279,3),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0279,4),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0279,5),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0279,6),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0597,1),gg_unit_h009_0279)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0597,2),gg_unit_h009_0279)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0597,3),gg_unit_h009_0279)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0597,4),gg_unit_h009_0279)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0597,5),gg_unit_h009_0279)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0597,6),gg_unit_h009_0279)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,1),gg_unit_H00S_0597)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,2),gg_unit_H00S_0597)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,3),gg_unit_H00S_0597)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,4),gg_unit_H00S_0597)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,5),gg_unit_H00S_0597)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,6),gg_unit_H00S_0597)
else
endifif(Trig_Otpravka_predmetov_Func006C())thencall UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0281,1),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0281,2),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0281,3),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0281,4),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0281,5),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0281,6),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0598,1),gg_unit_h009_0281)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0598,2),gg_unit_h009_0281)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0598,3),gg_unit_h009_0281)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0598,4),gg_unit_h009_0281)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0598,5),gg_unit_h009_0281)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0598,6),gg_unit_h009_0281)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,1),gg_unit_H00S_0598)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,2),gg_unit_H00S_0598)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,3),gg_unit_H00S_0598)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,4),gg_unit_H00S_0598)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,5),gg_unit_H00S_0598)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,6),gg_unit_H00S_0598)
else
endifif(Trig_Otpravka_predmetov_Func007C())thencall UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0280,1),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0280,2),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0280,3),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0280,4),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0280,5),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0280,6),gg_unit_h009_0718)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0599,1),gg_unit_h009_0280)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0599,2),gg_unit_h009_0280)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0599,3),gg_unit_h009_0280)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0599,4),gg_unit_h009_0280)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0599,5),gg_unit_h009_0280)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_H00S_0599,6),gg_unit_h009_0280)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,1),gg_unit_H00S_0599)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,2),gg_unit_H00S_0599)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,3),gg_unit_H00S_0599)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,4),gg_unit_H00S_0599)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,5),gg_unit_H00S_0599)
call UnitAddItemSwapped(UnitItemInSlotBJ(gg_unit_h009_0718,6),gg_unit_H00S_0599)
else
endifcall TriggerSleepAction(1.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Otpravka_predmetov takes nothing returns nothingset gg_trg_Otpravka_predmetov=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Otpravka_predmetov,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Otpravka_predmetov,Condition(function Trig_Otpravka_predmetov_Conditions))call TriggerAddAction(gg_trg_Otpravka_predmetov,function Trig_Otpravka_predmetov_Actions)endfunctionfunction Trig_Topor_demona_____________________u_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetAttacker())=='Udth'))thenreturn false
endifif(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Topor_demona_____________________u_Actions takes nothing returns nothingcall UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),100.00,ATTACK_TYPE_HERO,DAMAGE_TYPE_FORCE)
endfunctionfunction InitTrig_Topor_demona_____________________u takes nothing returns nothingset gg_trg_Topor_demona_____________________u=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Topor_demona_____________________u,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Topor_demona_____________________u,Condition(function Trig_Topor_demona_____________________u_Conditions))call TriggerAddAction(gg_trg_Topor_demona_____________________u,function Trig_Topor_demona_____________________u_Actions)endfunctionfunction Trig_Bogestveniy_svet_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A000'))then
return false
endifreturn trueendfunctionfunction Trig_Bogestveniy_svet_Actions takes nothing returns nothing
call SetUnitLifeBJ(GetSpellAbilityUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellAbilityUnit())+(I2R(GetUnitLevel(GetSpellAbilityUnit()))*50.00)))
endfunctionfunction InitTrig_Bogestveniy_svet takes nothing returns nothing
set gg_trg_Bogestveniy_svet=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Bogestveniy_svet,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Bogestveniy_svet,Condition(function Trig_Bogestveniy_svet_Conditions))call TriggerAddAction(gg_trg_Bogestveniy_svet,function Trig_Bogestveniy_svet_Actions)endfunctionfunction Trig_Frostmorn_Func001C takes nothing returns booleanif((GetUnitTypeId(GetKillingUnitBJ())=='H000'))thenreturn trueendifif((GetUnitTypeId(GetKillingUnitBJ())=='U00K'))thenreturn trueendifreturn false
endfunctionfunction Trig_Frostmorn_Conditions takes nothing returns boolean
if(not Trig_Frostmorn_Func001C())thenreturn false
endifif(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_UNDEAD)==false))thenreturn false
endifif(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_STRUCTURE)==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Frostmorn_Actions takes nothing returns nothingcall AddSpecialEffectLocBJ(GetUnitLoc(GetKillingUnitBJ()),"Abilities\\Spells\\Undead\\VampiricAura\\VampiricAuraTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitLifeBJ(GetKillingUnitBJ(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetKillingUnitBJ())+(GetUnitStateSwap(UNIT_STATE_LIFE,GetKillingUnitBJ())/ 100.00)))
endfunctionfunction InitTrig_Frostmorn takes nothing returns nothingset gg_trg_Frostmorn=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Frostmorn,Player(10),EVENT_PLAYER_UNIT_DEATH)call TriggerRegisterPlayerUnitEventSimple(gg_trg_Frostmorn,Player(11),EVENT_PLAYER_UNIT_DEATH)call TriggerAddCondition(gg_trg_Frostmorn,Condition(function Trig_Frostmorn_Conditions))
call TriggerAddAction(gg_trg_Frostmorn,function Trig_Frostmorn_Actions)endfunctionfunction Trig_Bogestveniy_Molot_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='AHds'))then
return false
endifreturn trueendfunctionfunction Trig_Bogestveniy_Molot_Actions takes nothing returns nothingcall ModifyHeroStat(bj_HEROSTAT_STR,GetSpellAbilityUnit(),bj_MODIFYMETHOD_ADD,1)
endfunctionfunction InitTrig_Bogestveniy_Molot takes nothing returns nothingset gg_trg_Bogestveniy_Molot=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Bogestveniy_Molot,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Bogestveniy_Molot,Condition(function Trig_Bogestveniy_Molot_Conditions))
call TriggerAddAction(gg_trg_Bogestveniy_Molot,function Trig_Bogestveniy_Molot_Actions)endfunctionfunction Trig_Krugka_roma_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A03P'))then
return false
endifreturn trueendfunctionfunction Trig_Krugka_roma_Actions takes nothing returns nothingcall SetUnitLifeBJ(GetSpellAbilityUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellAbilityUnit())+(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit())/ 20.00)))call TriggerSleepAction(1.00)call SetUnitLifeBJ(GetSpellAbilityUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellAbilityUnit())+(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit())/ 20.00)))call TriggerSleepAction(1.00)call SetUnitLifeBJ(GetSpellAbilityUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellAbilityUnit())+(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit())/ 20.00)))call TriggerSleepAction(1.00)call SetUnitLifeBJ(GetSpellAbilityUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellAbilityUnit())+(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit())/ 20.00)))call TriggerSleepAction(1.00)call SetUnitLifeBJ(GetSpellAbilityUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellAbilityUnit())+(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit())/ 20.00)))call TriggerSleepAction(1.00)call SetUnitLifeBJ(GetSpellAbilityUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellAbilityUnit())+(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit())/ 20.00)))call TriggerSleepAction(1.00)call SetUnitLifeBJ(GetSpellAbilityUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellAbilityUnit())+(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit())/ 20.00)))call TriggerSleepAction(1.00)call SetUnitLifeBJ(GetSpellAbilityUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellAbilityUnit())+(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit())/ 20.00)))call TriggerSleepAction(1.00)call SetUnitLifeBJ(GetSpellAbilityUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellAbilityUnit())+(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit())/ 20.00)))call TriggerSleepAction(1.00)call SetUnitLifeBJ(GetSpellAbilityUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellAbilityUnit())+(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit())/ 20.00)))endfunctionfunction InitTrig_Krugka_roma takes nothing returns nothingset gg_trg_Krugka_roma=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Krugka_roma,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Krugka_roma,Condition(function Trig_Krugka_roma_Conditions))
call TriggerAddAction(gg_trg_Krugka_roma,function Trig_Krugka_roma_Actions)endfunctionfunction Trig_Grabeg_Func001C takes nothing returns booleanif((GetUnitTypeId(GetKillingUnitBJ())=='Hapm'))thenreturn trueendifif((GetUnitTypeId(GetKillingUnitBJ())=='H00E'))thenreturn trueendifif((GetUnitTypeId(GetKillingUnitBJ())=='O001'))thenreturn trueendifreturn false
endfunctionfunction Trig_Grabeg_Conditions takes nothing returns booleanif(not Trig_Grabeg_Func001C())thenreturn false
endifif(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_STRUCTURE)==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Grabeg_Actions takes nothing returns nothingcall AddSpecialEffectLocBJ(GetUnitLoc(GetKillingUnitBJ()),"Abilities\\Spells\\Items\\ResourceItems\\ResourceEffectTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call SetPlayerStateBJ(GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)+GetUnitLevel(GetDyingUnit())))call SetPlayerStateBJ(GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)+GetUnitLevel(GetDyingUnit())))endfunctionfunction InitTrig_Grabeg takes nothing returns nothingset gg_trg_Grabeg=CreateTrigger()call TriggerRegisterPlayerUnitEventSimple(gg_trg_Grabeg,Player(10),EVENT_PLAYER_UNIT_DEATH)call TriggerRegisterPlayerUnitEventSimple(gg_trg_Grabeg,Player(11),EVENT_PLAYER_UNIT_DEATH)call TriggerAddCondition(gg_trg_Grabeg,Condition(function Trig_Grabeg_Conditions))call TriggerAddAction(gg_trg_Grabeg,function Trig_Grabeg_Actions)endfunctionfunction Trig_Mudrost_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetSpellAbilityUnit())=='Hamg'))thenreturn false
endifreturn trueendfunctionfunction Trig_Mudrost_Actions takes nothing returns nothingcall AddSpecialEffectLocBJ(GetUnitLoc(GetSpellAbilityUnit()),"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")call SetUnitManaBJ(GetSpellAbilityUnit(),(GetUnitStateSwap(UNIT_STATE_MANA,GetSpellAbilityUnit())+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetSpellAbilityUnit()))*4.00)))endfunctionfunction InitTrig_Mudrost takes nothing returns nothingset gg_trg_Mudrost=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mudrost,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Mudrost,Condition(function Trig_Mudrost_Conditions))
call TriggerAddAction(gg_trg_Mudrost,function Trig_Mudrost_Actions)endfunctionfunction Trig_Sfery_energii_Conditions takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03S',gg_unit_Hblm_0273)<GetUnitLevel(gg_unit_Hblm_0273)))thenreturn false
endifreturn trueendfunctionfunction Trig_Sfery_energii_Actions takes nothing returns nothingcall SetUnitAbilityLevelSwapped('A03S',gg_unit_Hblm_0273,(GetUnitAbilityLevelSwapped('A03S',gg_unit_Hblm_0273)+1))call SetUnitAbilityLevelSwapped('A03R',gg_unit_Hblm_0273,(GetUnitAbilityLevelSwapped('A03R',gg_unit_Hblm_0273)+1))endfunctionfunction InitTrig_Sfery_energii takes nothing returns nothingset gg_trg_Sfery_energii=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(gg_trg_Sfery_energii,5.00)call TriggerAddCondition(gg_trg_Sfery_energii,Condition(function Trig_Sfery_energii_Conditions))
call TriggerAddAction(gg_trg_Sfery_energii,function Trig_Sfery_energii_Actions)endfunctionfunction Trig_Visvobogdenie_sfer_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A03R'))then
return false
endifreturn trueendfunctionfunction Trig_Visvobogdenie_sfer_Actions takes nothing returns nothingcall TriggerSleepAction(0.50)call SetUnitAbilityLevelSwapped('A03S',gg_unit_Hblm_0273,1)call SetUnitAbilityLevelSwapped('A03R',gg_unit_Hblm_0273,1)endfunctionfunction InitTrig_Visvobogdenie_sfer takes nothing returns nothingset gg_trg_Visvobogdenie_sfer=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Visvobogdenie_sfer,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Visvobogdenie_sfer,Condition(function Trig_Visvobogdenie_sfer_Conditions))call TriggerAddAction(gg_trg_Visvobogdenie_sfer,function Trig_Visvobogdenie_sfer_Actions)endfunctionfunction Trig_Okutivayushiy_holod_Conditions takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped('A03U',GetAttackedUnitBJ())>=1))thenreturn false
endifif(not(UnitHasBuffBJ(GetAttackedUnitBJ(),'BUfa')==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Okutivayushiy_holod_Func003Func003C takes nothing returns booleanif(not(GetUnitLevel(GetAttackedUnitBJ())>=50))thenreturn false
endifreturn trueendfunctionfunction Trig_Okutivayushiy_holod_Func003C takes nothing returns boolean
if(not(udg_Rabdom_Skill<=6))then
return false
endifreturn trueendfunctionfunction Trig_Okutivayushiy_holod_Actions takes nothing returns nothingset udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Okutivayushiy_holod_Func003C())thencall CreateNUnitsAtLoc(1,'u00A',GetOwningPlayer(GetAttackedUnitBJ()),GetUnitLoc(GetAttackedUnitBJ()),bj_UNIT_FACING)
if(Trig_Okutivayushiy_holod_Func003Func003C())thencall SetUnitAbilityLevelSwapped('A03V',GetLastCreatedUnit(),50)else
call SetUnitAbilityLevelSwapped('A03V',GetLastCreatedUnit(),GetUnitLevel(GetAttackedUnitBJ()))endifcall IssueTargetOrder(GetLastCreatedUnit(),"frostarmor",GetAttackedUnitBJ())
else
endifendfunctionfunction InitTrig_Okutivayushiy_holod takes nothing returns nothingset gg_trg_Okutivayushiy_holod=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Okutivayushiy_holod,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Okutivayushiy_holod,Condition(function Trig_Okutivayushiy_holod_Conditions))
call TriggerAddAction(gg_trg_Okutivayushiy_holod,function Trig_Okutivayushiy_holod_Actions)endfunctionfunction Trig_Ledinaya_volna_Conditions takes nothing returns booleanif(not(GetUnitLevel(gg_unit_H00C_0338)<=100))thenreturn false
endifreturn trueendfunctionfunction Trig_Ledinaya_volna_Actions takes nothing returns nothingcall SetUnitAbilityLevelSwapped('A03T',gg_unit_H00C_0338,(GetUnitAbilityLevelSwapped('A03T',gg_unit_H00C_0338)+1))endfunctionfunction InitTrig_Ledinaya_volna takes nothing returns nothingset gg_trg_Ledinaya_volna=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Ledinaya_volna,gg_unit_H00C_0338,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(gg_trg_Ledinaya_volna,Condition(function Trig_Ledinaya_volna_Conditions))call TriggerAddAction(gg_trg_Ledinaya_volna,function Trig_Ledinaya_volna_Actions)endfunctionfunction Trig_Zacharovannaya_strela_Conditions takes nothing returns boolean
if(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_STRUCTURE)==false))thenreturn false
endifif(not(UnitHasBuffBJ(GetAttacker(),'B03G')==true))thenreturn false
endifif(not(GetUnitStateSwap(UNIT_STATE_MANA,GetAttacker())>=(GetUnitStateSwap(UNIT_STATE_MAX_MANA,GetAttacker())*0.06)))then
return false
endifreturn trueendfunctionfunction Trig_Zacharovannaya_strela_Actions takes nothing returns nothingcall TriggerSleepAction(0.60)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Undead\\AbsorbMana\\AbsorbManaBirthMissile.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitManaBJ(GetAttacker(),(GetUnitStateSwap(UNIT_STATE_MANA,GetAttacker())-(GetUnitStateSwap(UNIT_STATE_MAX_MANA,GetAttacker())*0.06)))call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_MAX_MANA,GetAttacker())*0.06),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)endfunctionfunction InitTrig_Zacharovannaya_strela takes nothing returns nothingset gg_trg_Zacharovannaya_strela=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Zacharovannaya_strela,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Zacharovannaya_strela,Condition(function Trig_Zacharovannaya_strela_Conditions))
call TriggerAddAction(gg_trg_Zacharovannaya_strela,function Trig_Zacharovannaya_strela_Actions)endfunctionfunction Trig_Issuhenie_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A075'))then
return false
endifreturn trueendfunctionfunction Trig_Issuhenie_Func002C takes nothing returns booleanif(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEventTargetUnit())<=(I2R(GetUnitLevel(GetSpellAbilityUnit()))*50.00)))thenreturn false
endifreturn trueendfunctionfunction Trig_Issuhenie_Actions takes nothing returns nothingcall SetUnitLifeBJ(GetSpellAbilityUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellAbilityUnit())+(I2R(GetUnitLevel(GetSpellAbilityUnit()))*50.00)))
if(Trig_Issuhenie_Func002C())thencall SetUnitLifeBJ(GetSpellTargetUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())-(I2R(GetUnitLevel(GetSpellAbilityUnit()))*50.00)))else
call SetUnitLifeBJ(GetSpellTargetUnit(),1.00)endifendfunctionfunction InitTrig_Issuhenie takes nothing returns nothingset gg_trg_Issuhenie=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Issuhenie,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Issuhenie,Condition(function Trig_Issuhenie_Conditions))
call TriggerAddAction(gg_trg_Issuhenie,function Trig_Issuhenie_Actions)endfunctionfunction Trig_Mogilshik_Conditions takes nothing returns boolean
if(not(GetUnitLevel(gg_unit_Ucrl_0442)<=100))thenreturn false
endifreturn trueendfunctionfunction Trig_Mogilshik_Actions takes nothing returns nothingcall SetPlayerTechResearchedSwap('R008',(GetPlayerTechCountSimple('R008',GetOwningPlayer(GetLevelingUnit()))+1),GetOwningPlayer(GetLevelingUnit()))endfunctionfunction InitTrig_Mogilshik takes nothing returns nothingset gg_trg_Mogilshik=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_Mogilshik,gg_unit_Ucrl_0442,EVENT_UNIT_HERO_LEVEL)call TriggerAddCondition(gg_trg_Mogilshik,Condition(function Trig_Mogilshik_Conditions))
call TriggerAddAction(gg_trg_Mogilshik,function Trig_Mogilshik_Actions)endfunctionfunction Trig_Povelitel_mogil_Conditions takes nothing returns booleanif(not(UnitHasBuffBJ(GetKillingUnitBJ(),'B00X')==true))thenreturn false
endifif(not(GetUnitTypeId(GetKillingUnitBJ())=='Ucrl'))thenreturn false
endifreturn trueendfunctionfunction Trig_Povelitel_mogil_Func002C takes nothing returns boolean
if(not(udg_Random<=4))thenreturn false
endifreturn trueendfunctionfunction Trig_Povelitel_mogil_Actions takes nothing returns nothingset udg_Random=GetRandomInt(1,100)if(Trig_Povelitel_mogil_Func002C())thencall CreateNUnitsAtLoc(1,'ucs1',GetOwningPlayer(GetKillingUnitBJ()),GetUnitLoc(GetKillingUnitBJ()),bj_UNIT_FACING)call IssueTargetOrder(GetLastCreatedUnit(),"smart",GetKillingUnitBJ())else
endifendfunctionfunction InitTrig_Povelitel_mogil takes nothing returns nothingset gg_trg_Povelitel_mogil=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Povelitel_mogil,EVENT_PLAYER_UNIT_DEATH)call TriggerAddCondition(gg_trg_Povelitel_mogil,Condition(function Trig_Povelitel_mogil_Conditions))
call TriggerAddAction(gg_trg_Povelitel_mogil,function Trig_Povelitel_mogil_Actions)endfunctionfunction Trig_Ledinaya_smert_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A079'))then
return false
endifreturn trueendfunctionfunction Trig_Ledinaya_smert_Func003C takes nothing returns booleanif(not(UnitHasBuffBJ(GetSpellAbilityUnit(),'BUfa')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ledinaya_smert_Actions takes nothing returns nothingcall SetUnitManaBJ(GetSpellAbilityUnit(),(GetUnitStateSwap(UNIT_STATE_MANA,GetSpellAbilityUnit())-(GetUnitStateSwap(UNIT_STATE_MAX_MANA,GetSpellAbilityUnit())*0.32)))call UnitDamageTargetBJ(GetSpellAbilityUnit(),GetSpellTargetUnit(),(GetUnitStateSwap(UNIT_STATE_MAX_MANA,GetSpellAbilityUnit())*0.16),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)if(Trig_Ledinaya_smert_Func003C())thencall UnitDamageTargetBJ(GetSpellAbilityUnit(),GetSpellTargetUnit(),(I2R(GetUnitLevel(GetSpellAbilityUnit()))*40.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellTargetUnit()),"Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl")
else
endifendfunctionfunction InitTrig_Ledinaya_smert takes nothing returns nothingset gg_trg_Ledinaya_smert=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ledinaya_smert,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Ledinaya_smert,Condition(function Trig_Ledinaya_smert_Conditions))call TriggerAddAction(gg_trg_Ledinaya_smert,function Trig_Ledinaya_smert_Actions)endfunctionfunction Trig_Necromant_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A07F'))then
return false
endifreturn trueendfunctionfunction Trig_Necromant_Func002C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Necromant_Func003C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Necromant_Func004C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Necromant_Func007C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Necromant_Func008C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Necromant_Func009C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Necromant_Func012C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Necromant_Func013C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Necromant_Func014C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Necromant_Actions takes nothing returns nothingset udg_Random=GetRandomInt(1,3)
if(Trig_Necromant_Func002C())thencall CreateNUnitsAtLoc(1,'uske',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),bj_UNIT_FACING)
else
endifif(Trig_Necromant_Func003C())thencall CreateNUnitsAtLoc(1,'nskm',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),bj_UNIT_FACING)
else
endifif(Trig_Necromant_Func004C())thencall CreateNUnitsAtLoc(1,'uskm',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),bj_UNIT_FACING)
else
endifcall UnitApplyTimedLifeBJ(360.00,'BTLF',GetLastCreatedUnit())set udg_Random=GetRandomInt(1,3)
if(Trig_Necromant_Func007C())thencall CreateNUnitsAtLoc(1,'uske',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),bj_UNIT_FACING)
else
endifif(Trig_Necromant_Func008C())thencall CreateNUnitsAtLoc(1,'nskm',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),bj_UNIT_FACING)
else
endifif(Trig_Necromant_Func009C())thencall CreateNUnitsAtLoc(1,'uskm',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),bj_UNIT_FACING)
else
endifcall UnitApplyTimedLifeBJ(360.00,'BTLF',GetLastCreatedUnit())set udg_Random=GetRandomInt(1,3)
if(Trig_Necromant_Func012C())thencall CreateNUnitsAtLoc(1,'uske',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),bj_UNIT_FACING)
else
endifif(Trig_Necromant_Func013C())thencall CreateNUnitsAtLoc(1,'nskm',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),bj_UNIT_FACING)
else
endifif(Trig_Necromant_Func014C())thencall CreateNUnitsAtLoc(1,'uskm',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),bj_UNIT_FACING)
else
endifcall UnitApplyTimedLifeBJ(360.00,'BTLF',GetLastCreatedUnit())endfunctionfunction InitTrig_Necromant takes nothing returns nothingset gg_trg_Necromant=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Necromant,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Necromant,Condition(function Trig_Necromant_Conditions))
call TriggerAddAction(gg_trg_Necromant,function Trig_Necromant_Actions)endfunctionfunction Trig_Prokliatie_Conditions takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped('A07H',GetAttackedUnitBJ())>=1))thenreturn false
endifif(not(UnitHasBuffBJ(GetAttacker(),'Bcrs')==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Prokliatie_Func003C takes nothing returns booleanif(not(udg_Rabdom_Skill<=8))then
return false
endifreturn trueendfunctionfunction Trig_Prokliatie_Actions takes nothing returns nothingset udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Prokliatie_Func003C())thencall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'u00F',GetOwningPlayer(GetAttackedUnitBJ()),GetUnitLoc(GetAttackedUnitBJ()),bj_UNIT_FACING)
call IssueTargetOrder(GetLastCreatedUnit(),"curse",GetAttacker())call TriggerSleepAction(4.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_Prokliatie takes nothing returns nothingset gg_trg_Prokliatie=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Prokliatie,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Prokliatie,Condition(function Trig_Prokliatie_Conditions))call TriggerAddAction(gg_trg_Prokliatie,function Trig_Prokliatie_Actions)endfunctionfunction Trig_Chernaya_strela_Conditions takes nothing returns booleanif(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_HERO)==false))thenreturn false
endifif(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_STRUCTURE)==false))thenreturn false
endifif(not(GetUnitAbilityLevelSwapped('A07I',GetAttacker())>=1))then
return false
endifreturn trueendfunctionfunction Trig_Chernaya_strela_Actions takes nothing returns nothingcall TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Undead\\CarrionSwarm\\CarrionSwarmDamage.mdl")call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetAttackedUnitBJ())*0.02),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_DEATH)
endfunctionfunction InitTrig_Chernaya_strela takes nothing returns nothingset gg_trg_Chernaya_strela=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Chernaya_strela,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Chernaya_strela,Condition(function Trig_Chernaya_strela_Conditions))
call TriggerAddAction(gg_trg_Chernaya_strela,function Trig_Chernaya_strela_Actions)endfunctionfunction Trig_Prokliataya_strela_Conditions takes nothing returns booleanif(not(UnitHasBuffBJ(GetAttacker(),'B01L')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Prokliataya_strela_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(0.80)call UnitRemoveBuffBJ('B01L',GetAttacker())call CreateNUnitsAtLoc(1,'u00F',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttackedUnitBJ()),bj_UNIT_FACING)call IssueTargetOrder(GetLastCreatedUnit(),"innerfire",GetAttackedUnitBJ())call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Prokliataya_strela takes nothing returns nothingset gg_trg_Prokliataya_strela=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Prokliataya_strela,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Prokliataya_strela,Condition(function Trig_Prokliataya_strela_Conditions))call TriggerAddAction(gg_trg_Prokliataya_strela,function Trig_Prokliataya_strela_Actions)endfunctionfunction Trig_Adskiy_ogon_Conditions takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped('A07M',GetAttacker())>=1))then
return false
endifreturn trueendfunctionfunction Trig_Adskiy_ogon_Func003C takes nothing returns boolean
if(not(udg_Rabdom_Skill<=5))then
return false
endifreturn trueendfunctionfunction Trig_Adskiy_ogon_Actions takes nothing returns nothingset udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Adskiy_ogon_Func003C())thencall CreateNUnitsAtLoc(1,'u00O',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttackedUnitBJ()),bj_UNIT_FACING)else
endifendfunctionfunction InitTrig_Adskiy_ogon takes nothing returns nothingset gg_trg_Adskiy_ogon=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Adskiy_ogon,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Adskiy_ogon,Condition(function Trig_Adskiy_ogon_Conditions))
call TriggerAddAction(gg_trg_Adskiy_ogon,function Trig_Adskiy_ogon_Actions)endfunctionfunction Trig_Adskiy_ogon_Lvl_Func001C takes nothing returns boolean
if((GetUnitLevel(gg_unit_N00I_0449)<=100))thenreturn trueendifreturn false
endfunctionfunction Trig_Adskiy_ogon_Lvl_Conditions takes nothing returns booleanif(not Trig_Adskiy_ogon_Lvl_Func001C())thenreturn false
endifreturn trueendfunctionfunction Trig_Adskiy_ogon_Lvl_Actions takes nothing returns nothingcall SetPlayerTechResearchedSwap('R00D',(GetUnitLevel(GetLevelingUnit())/ 5),GetOwningPlayer(GetLevelingUnit()))
endfunctionfunction InitTrig_Adskiy_ogon_Lvl takes nothing returns nothingset gg_trg_Adskiy_ogon_Lvl=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Adskiy_ogon_Lvl,gg_unit_N00I_0449,EVENT_UNIT_HERO_LEVEL)call TriggerAddCondition(gg_trg_Adskiy_ogon_Lvl,Condition(function Trig_Adskiy_ogon_Lvl_Conditions))
call TriggerAddAction(gg_trg_Adskiy_ogon_Lvl,function Trig_Adskiy_ogon_Lvl_Actions)endfunctionfunction Trig_Agskaya_sekira_Conditions takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped('AIfw',GetAttacker())>=1))then
return false
endifreturn trueendfunctionfunction Trig_Agskaya_sekira_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(0.50)call UnitRemoveAbilityBJ('AIfw',GetAttacker())call TriggerSleepAction(25.00)call UnitAddAbilityBJ('AIfw',GetAttacker())call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Agskaya_sekira takes nothing returns nothingset gg_trg_Agskaya_sekira=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Agskaya_sekira,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Agskaya_sekira,Condition(function Trig_Agskaya_sekira_Conditions))call TriggerAddAction(gg_trg_Agskaya_sekira,function Trig_Agskaya_sekira_Actions)endfunctionfunction Trig_Vmestilishe_duh_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A0DD'))then
return false
endifreturn trueendfunctionfunction Trig_Vmestilishe_duh_Func001Func003C takes nothing returns booleanif(not(GetUnitLevel(gg_unit_U00X_0667)<=50))then
return false
endifreturn trueendfunctionfunction Trig_Vmestilishe_duh_Actions takes nothing returns nothingset bj_forLoopAIndex=1set bj_forLoopAIndexEnd=20loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEndcall TriggerSleepAction(3.00)call CreateNUnitsAtLoc(1,'u016',GetOwningPlayer(gg_unit_U00X_0667),GetUnitLoc(gg_unit_U00X_0667),bj_UNIT_FACING)
if(Trig_Vmestilishe_duh_Func001Func003C())thencall SetUnitAbilityLevelSwapped('A0DE',GetLastCreatedUnit(),(GetUnitLevel(gg_unit_U00X_0667)/ 10))else
call SetUnitAbilityLevelSwapped('A0DE',GetLastCreatedUnit(),5)endifcall IssueImmediateOrder(GetLastCreatedUnit(),"fanofknives")
set bj_forLoopAIndex=bj_forLoopAIndex+1endloopendfunctionfunction InitTrig_Vmestilishe_duh takes nothing returns nothingset gg_trg_Vmestilishe_duh=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Vmestilishe_duh,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Vmestilishe_duh,Condition(function Trig_Vmestilishe_duh_Conditions))
call TriggerAddAction(gg_trg_Vmestilishe_duh,function Trig_Vmestilishe_duh_Actions)endfunctionfunction Trig_Pogloshayushiy_gizn_Conditions takes nothing returns booleanif(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_HERO)==false))thenreturn false
endifif(not(GetUnitAbilityLevelSwapped('A0DC',GetAttacker())>=1))then
return false
endifreturn trueendfunctionfunction Trig_Pogloshayushiy_gizn_Actions takes nothing returns nothingcall TriggerSleepAction(0.60)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\NightElf\\ManaBurn\\ManaBurnTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitLifeBJ(GetAttacker(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttacker())+I2R(GetUnitLevel(GetAttacker()))))
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetUnitLevel(GetAttacker()))*1.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)endfunctionfunction InitTrig_Pogloshayushiy_gizn takes nothing returns nothingset gg_trg_Pogloshayushiy_gizn=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Pogloshayushiy_gizn,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Pogloshayushiy_gizn,Condition(function Trig_Pogloshayushiy_gizn_Conditions))
call TriggerAddAction(gg_trg_Pogloshayushiy_gizn,function Trig_Pogloshayushiy_gizn_Actions)endfunctionfunction Trig_Pogloshenie__many_Func001C takes nothing returns booleanif((GetUnitTypeId(GetKillingUnitBJ())=='H00O'))thenreturn trueendifreturn false
endfunctionfunction Trig_Pogloshenie__many_Conditions takes nothing returns boolean
if(not Trig_Pogloshenie__many_Func001C())thenreturn false
endifif(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_STRUCTURE)==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Pogloshenie__many_Func005C takes nothing returns booleanif(not(GetUnitManaPercent(GetKillingUnitBJ())<=40.00))thenreturn false
endifreturn trueendfunctionfunction Trig_Pogloshenie__many_Actions takes nothing returns nothingcall AddSpecialEffectLocBJ(GetUnitLoc(GetKillingUnitBJ()),"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitManaBJ(GetKillingUnitBJ(),(GetUnitStateSwap(UNIT_STATE_MANA,GetKillingUnitBJ())+(GetUnitStateSwap(UNIT_STATE_MAX_MANA,GetKillingUnitBJ())/ 25.00)))if(Trig_Pogloshenie__many_Func005C())thencall SetUnitLifeBJ(GetKillingUnitBJ(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetKillingUnitBJ())+(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetKillingUnitBJ())/ 25.00)))else
endifendfunctionfunction InitTrig_Pogloshenie__many takes nothing returns nothingset gg_trg_Pogloshenie__many=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Pogloshenie__many,Player(10),EVENT_PLAYER_UNIT_DEATH)call TriggerRegisterPlayerUnitEventSimple(gg_trg_Pogloshenie__many,Player(11),EVENT_PLAYER_UNIT_DEATH)call TriggerAddCondition(gg_trg_Pogloshenie__many,Condition(function Trig_Pogloshenie__many_Conditions))
call TriggerAddAction(gg_trg_Pogloshenie__many,function Trig_Pogloshenie__many_Actions)endfunctionfunction Trig_Temniy_smerty_skill_Conditions takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped('A092',GetAttackedUnitBJ())>=1))thenreturn false
endifif(not(UnitHasBuffBJ(GetAttackedUnitBJ(),'B029')==true))then
return false
endifreturn trueendfunctionfunction Trig_Temniy_smerty_skill_Actions takes nothing returns nothingcall DestroyEffect(udg_Specefect[0])
call UnitDamageTargetBJ(GetAttackedUnitBJ(),GetAttacker(),(I2R(GetUnitLevel(GetAttackedUnitBJ()))*2.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_DEATH)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttacker()),"Abilities\\Spells\\NightElf\\ManaBurn\\ManaBurnTarget.mdl")set udg_Specefect[0]=GetLastCreatedEffectBJ()endfunctionfunction InitTrig_Temniy_smerty_skill takes nothing returns nothingset gg_trg_Temniy_smerty_skill=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Temniy_smerty_skill,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Temniy_smerty_skill,Condition(function Trig_Temniy_smerty_skill_Conditions))
call TriggerAddAction(gg_trg_Temniy_smerty_skill,function Trig_Temniy_smerty_skill_Actions)endfunctionfunction Trig_Zacharovannie_streli_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A094'))then
return false
endifreturn trueendfunctionfunction Trig_Zacharovannie_streli_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call SetUnitAbilityLevelSwapped('A093',GetSpellAbilityUnit(),2)call TriggerSleepAction(15.00)call SetUnitAbilityLevelSwapped('A093',GetSpellAbilityUnit(),1)call TriggerSleepAction(2.00)call SetUnitAbilityLevelSwapped('A093',GetSpellAbilityUnit(),1)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Zacharovannie_streli takes nothing returns nothing
set gg_trg_Zacharovannie_streli=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Zacharovannie_streli,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Zacharovannie_streli,Condition(function Trig_Zacharovannie_streli_Conditions))call TriggerAddAction(gg_trg_Zacharovannie_streli,function Trig_Zacharovannie_streli_Actions)endfunctionfunction Trig_Udar_hvostom_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A0DU'))then
return false
endifreturn trueendfunctionfunction Trig_Udar_hvostom_Func001Func001001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(11))endfunctionfunction Trig_Udar_hvostom_Func001Func002001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(10))endfunctionfunction Trig_Udar_hvostom_Func001Func003001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(6))endfunctionfunction Trig_Udar_hvostom_Func001A takes nothing returns nothingif(Trig_Udar_hvostom_Func001Func001001())thencall UnitDamageTargetBJ(GetSpellAbilityUnit(),GetEnumUnit(),(0.30*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetSpellAbilityUnit())),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endifif(Trig_Udar_hvostom_Func001Func002001())thencall UnitDamageTargetBJ(GetSpellAbilityUnit(),GetEnumUnit(),(0.30*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetSpellAbilityUnit())),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endifif(Trig_Udar_hvostom_Func001Func003001())thencall UnitDamageTargetBJ(GetSpellAbilityUnit(),GetEnumUnit(),(0.30*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetSpellAbilityUnit())),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endifendfunctionfunction Trig_Udar_hvostom_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocAll(300.00,GetUnitLoc(GetSpellAbilityUnit())),function Trig_Udar_hvostom_Func001A)call GroupClear(GetLastCreatedGroup())endfunctionfunction InitTrig_Udar_hvostom takes nothing returns nothing
set gg_trg_Udar_hvostom=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Udar_hvostom,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Udar_hvostom,Condition(function Trig_Udar_hvostom_Conditions))call TriggerAddAction(gg_trg_Udar_hvostom,function Trig_Udar_hvostom_Actions)endfunctionfunction Trig_Koralovaya_bronia_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttackedUnitBJ())=='H00Q'))thenreturn false
endifreturn trueendfunctionfunction Trig_Koralovaya_bronia_Func001C takes nothing returns booleanif(not(GetUnitLifePercent(GetAttackedUnitBJ())<=60.00))thenreturn false
endifif(not(GetUnitLifePercent(GetAttackedUnitBJ())>=30.00))thenreturn false
endifreturn trueendfunctionfunction Trig_Koralovaya_bronia_Func002C takes nothing returns booleanif(not(GetUnitLifePercent(GetAttackedUnitBJ())<=30.00))thenreturn false
endifreturn trueendfunctionfunction Trig_Koralovaya_bronia_Func003C takes nothing returns booleanif(not(GetUnitLifePercent(GetAttackedUnitBJ())>60.00))thenreturn false
endifreturn trueendfunctionfunction Trig_Koralovaya_bronia_Actions takes nothing returns nothingif(Trig_Koralovaya_bronia_Func001C())thencall SetUnitAbilityLevelSwapped('A096',GetAttackedUnitBJ(),2)else
endifif(Trig_Koralovaya_bronia_Func002C())thencall SetUnitAbilityLevelSwapped('A096',GetAttackedUnitBJ(),3)else
endifif(Trig_Koralovaya_bronia_Func003C())thencall SetUnitAbilityLevelSwapped('A096',GetAttackedUnitBJ(),1)else
endifendfunctionfunction InitTrig_Koralovaya_bronia takes nothing returns nothingset gg_trg_Koralovaya_bronia=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Koralovaya_bronia,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Koralovaya_bronia,Condition(function Trig_Koralovaya_bronia_Conditions))
call TriggerAddAction(gg_trg_Koralovaya_bronia,function Trig_Koralovaya_bronia_Actions)endfunctionfunction Trig_Udar_sokrusheniya_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0DV'))then
return false
endifreturn trueendfunctionfunction Trig_Udar_sokrusheniya_Func001Func001001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(11))endfunctionfunction Trig_Udar_sokrusheniya_Func001Func002001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(10))endfunctionfunction Trig_Udar_sokrusheniya_Func001Func003001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(6))endfunctionfunction Trig_Udar_sokrusheniya_Func001A takes nothing returns nothingif(Trig_Udar_sokrusheniya_Func001Func001001())thencall UnitDamageTargetBJ(GetSpellAbilityUnit(),GetEnumUnit(),(60.00*I2R(GetUnitLevel(GetSpellAbilityUnit()))),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)else
call DoNothing()
endifif(Trig_Udar_sokrusheniya_Func001Func002001())thencall UnitDamageTargetBJ(GetSpellAbilityUnit(),GetEnumUnit(),(60.00*I2R(GetUnitLevel(GetSpellAbilityUnit()))),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)else
call DoNothing()
endifif(Trig_Udar_sokrusheniya_Func001Func003001())thencall UnitDamageTargetBJ(GetSpellAbilityUnit(),GetEnumUnit(),(60.00*I2R(GetUnitLevel(GetSpellAbilityUnit()))),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)else
call DoNothing()
endifendfunctionfunction Trig_Udar_sokrusheniya_Actions takes nothing returns nothingcall ForGroupBJ(GetUnitsInRangeOfLocAll(350.00,GetUnitLoc(GetSpellAbilityUnit())),function Trig_Udar_sokrusheniya_Func001A)call GroupClear(GetLastCreatedGroup())endfunctionfunction InitTrig_Udar_sokrusheniya takes nothing returns nothingset gg_trg_Udar_sokrusheniya=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Udar_sokrusheniya,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Udar_sokrusheniya,Condition(function Trig_Udar_sokrusheniya_Conditions))
call TriggerAddAction(gg_trg_Udar_sokrusheniya,function Trig_Udar_sokrusheniya_Actions)endfunctionfunction Trig_Ohotnichiya_sova_Func001C takes nothing returns booleanif((GetUnitTypeId(GetLevelingUnit())=='Emoo'))thenreturn trueendifif((GetUnitTypeId(GetLevelingUnit())=='E003'))thenreturn trueendifreturn false
endfunctionfunction Trig_Ohotnichiya_sova_Conditions takes nothing returns booleanif(not Trig_Ohotnichiya_sova_Func001C())then
return false
endifif(not(GetUnitLevel(gg_unit_H00F_0346)<=50))then
return false
endifreturn trueendfunctionfunction Trig_Ohotnichiya_sova_Actions takes nothing returns nothing
call SetUnitAbilityLevelSwapped('A04X',gg_unit_Emoo_0604,(GetUnitAbilityLevelSwapped('A04X',gg_unit_Emoo_0604)+1))call SetUnitAbilityLevelSwapped('A04X',gg_unit_E003_0656,(GetUnitAbilityLevelSwapped('A04X',gg_unit_E003_0656)+1))endfunctionfunction InitTrig_Ohotnichiya_sova takes nothing returns nothing
set gg_trg_Ohotnichiya_sova=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Ohotnichiya_sova,gg_unit_E003_0656,EVENT_UNIT_HERO_LEVEL)call TriggerRegisterUnitEvent(gg_trg_Ohotnichiya_sova,gg_unit_Emoo_0604,EVENT_UNIT_HERO_LEVEL)call TriggerAddCondition(gg_trg_Ohotnichiya_sova,Condition(function Trig_Ohotnichiya_sova_Conditions))call TriggerAddAction(gg_trg_Ohotnichiya_sova,function Trig_Ohotnichiya_sova_Actions)endfunctionfunction Trig_Sila_eluny_Actions takes nothing returns nothingcall SetUnitAbilityLevelSwapped('A09A',gg_unit_Emoo_0604,2)endfunctionfunction InitTrig_Sila_eluny takes nothing returns nothingset gg_trg_Sila_eluny=CreateTrigger()call TriggerRegisterGameStateEventTimeOfDay(gg_trg_Sila_eluny,GREATER_THAN,18.00)call TriggerAddAction(gg_trg_Sila_eluny,function Trig_Sila_eluny_Actions)endfunctionfunction Trig_Sila_eluny_Off_Conditions takes nothing returns booleanif(not(GetTimeOfDay()<=18.00))thenreturn false
endifreturn trueendfunctionfunction Trig_Sila_eluny_Off_Actions takes nothing returns nothingcall SetUnitAbilityLevelSwapped('A09A',gg_unit_Emoo_0604,1)endfunctionfunction InitTrig_Sila_eluny_Off takes nothing returns nothingset gg_trg_Sila_eluny_Off=CreateTrigger()call TriggerRegisterGameStateEventTimeOfDay(gg_trg_Sila_eluny_Off,GREATER_THAN,6.00)
call TriggerAddCondition(gg_trg_Sila_eluny_Off,Condition(function Trig_Sila_eluny_Off_Conditions))call TriggerAddAction(gg_trg_Sila_eluny_Off,function Trig_Sila_eluny_Off_Actions)endfunctionfunction Trig_Milost_duhov_Func001C takes nothing returns booleanif((GetUnitTypeId(GetSpellAbilityUnit())=='Emns'))thenreturn trueendifif((GetUnitTypeId(GetSpellAbilityUnit())=='H00T'))thenreturn trueendifreturn false
endfunctionfunction Trig_Milost_duhov_Conditions takes nothing returns booleanif(not Trig_Milost_duhov_Func001C())then
return false
endifif(not(UnitHasBuffBJ(GetSpellAbilityUnit(),'Brej')==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Milost_duhov_Func006C takes nothing returns booleanif(not(GetUnitLevel(GetSpellAbilityUnit())>=50))then
return false
endifreturn trueendfunctionfunction Trig_Milost_duhov_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'u00R',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A07Y',GetLastCreatedUnit())if(Trig_Milost_duhov_Func006C())then
call SetUnitAbilityLevelSwapped('A07Y',GetLastCreatedUnit(),50)else
call SetUnitAbilityLevelSwapped('A07Y',GetLastCreatedUnit(),(GetUnitLevel(GetSpellAbilityUnit())/ 5))endifcall IssueTargetOrder(GetLastCreatedUnit(),"rejuvination",GetSpellAbilityUnit())
call TriggerSleepAction(45.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Milost_duhov takes nothing returns nothing
set gg_trg_Milost_duhov=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Milost_duhov,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Milost_duhov,Condition(function Trig_Milost_duhov_Conditions))call TriggerAddAction(gg_trg_Milost_duhov,function Trig_Milost_duhov_Actions)endfunctionfunction Trig_Kontrattacka_Conditions takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped('A09J',GetAttackedUnitBJ())>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_Kontrattacka_Func004Func001Func002Func001001 takes nothing returns boolean
return(GetOwningPlayer(GetEnumUnit())==Player(11))endfunctionfunction Trig_Kontrattacka_Func004Func001Func002Func002001 takes nothing returns boolean
return(GetOwningPlayer(GetEnumUnit())==Player(10))endfunctionfunction Trig_Kontrattacka_Func004Func001Func002Func003001 takes nothing returns boolean
return(GetOwningPlayer(GetEnumUnit())==Player(6))endfunctionfunction Trig_Kontrattacka_Func004Func001Func002A takes nothing returns nothingif(Trig_Kontrattacka_Func004Func001Func002Func001001())thencall UnitDamageTargetBJ(GetAttackedUnitBJ(),GetEnumUnit(),(14.00*I2R(GetUnitLevel(GetAttackedUnitBJ()))),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)else
call DoNothing()
endifif(Trig_Kontrattacka_Func004Func001Func002Func002001())thencall UnitDamageTargetBJ(GetAttackedUnitBJ(),GetEnumUnit(),(14.00*I2R(GetUnitLevel(GetAttackedUnitBJ()))),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)else
call DoNothing()
endifif(Trig_Kontrattacka_Func004Func001Func002Func003001())thencall UnitDamageTargetBJ(GetAttackedUnitBJ(),GetEnumUnit(),(14.00*I2R(GetUnitLevel(GetAttackedUnitBJ()))),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)else
call DoNothing()
endifendfunctionfunction Trig_Kontrattacka_Func004Func001C takes nothing returns boolean
return trueendfunctionfunction Trig_Kontrattacka_Func004C takes nothing returns booleanif(not(udg_Chanse<=16))thenreturn false
endifreturn trueendfunctionfunction Trig_Kontrattacka_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())set udg_Chanse=GetRandomInt(1,100)if(Trig_Kontrattacka_Func004C())then
if(Trig_Kontrattacka_Func004Func001C())thencall SetUnitAnimation(GetAttackedUnitBJ(),"Attack Walk Stand Spin")call ForGroupBJ(GetUnitsInRangeOfLocAll(300.00,GetUnitLoc(GetAttackedUnitBJ())),function Trig_Kontrattacka_Func004Func001Func002A)call GroupClear(GetLastCreatedGroup())else
call DoNothing()
endifelse
endifcall TriggerSleepAction(0.50)call SetUnitAnimation(GetAttackedUnitBJ(),"stand")call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Kontrattacka takes nothing returns nothing
set gg_trg_Kontrattacka=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kontrattacka,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Kontrattacka,Condition(function Trig_Kontrattacka_Conditions))call TriggerAddAction(gg_trg_Kontrattacka,function Trig_Kontrattacka_Actions)endfunctionfunction Trig_Isscustvo_klinka_Conditions takes nothing returns booleanif(not(UnitHasBuffBJ(GetAttacker(),'B02E')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Isscustvo_klinka_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(0.40)call UnitRemoveBuffBJ('B02E',GetAttacker())call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Isscustvo_klinka takes nothing returns nothing
set gg_trg_Isscustvo_klinka=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Isscustvo_klinka,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Isscustvo_klinka,Condition(function Trig_Isscustvo_klinka_Conditions))call TriggerAddAction(gg_trg_Isscustvo_klinka,function Trig_Isscustvo_klinka_Actions)endfunctionfunction Trig_Sokrushenie_Conditions takes nothing returns booleanif(not(GetUnitLevel(gg_unit_O005_0621)<=50))then
return false
endifreturn trueendfunctionfunction Trig_Sokrushenie_Actions takes nothing returns nothingcall SetUnitAbilityLevelSwapped('A09Q',gg_unit_O005_0621,(GetUnitLevel(gg_unit_O005_0621)/ 5))endfunctionfunction InitTrig_Sokrushenie takes nothing returns nothingset gg_trg_Sokrushenie=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Sokrushenie,gg_unit_O005_0621,EVENT_UNIT_HERO_LEVEL)call TriggerAddCondition(gg_trg_Sokrushenie,Condition(function Trig_Sokrushenie_Conditions))
call TriggerAddAction(gg_trg_Sokrushenie,function Trig_Sokrushenie_Actions)endfunctionfunction Trig_Miaso_kabana_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A09S'))then
return false
endifreturn trueendfunctionfunction Trig_Miaso_kabana_Func001C takes nothing returns booleanif(not(GetUnitStateSwap(UNIT_STATE_MANA,GetSpellAbilityUnit())>=(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetSpellAbilityUnit())-GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellAbilityUnit()))))thenreturn false
endifreturn trueendfunctionfunction Trig_Miaso_kabana_Actions takes nothing returns nothing
if(Trig_Miaso_kabana_Func001C())then
set udg_Rabdom_Skill=(R2I((GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetSpellAbilityUnit())-GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellAbilityUnit())))+0)call SetUnitManaBJ(GetSpellAbilityUnit(),(GetUnitStateSwap(UNIT_STATE_MANA,GetSpellAbilityUnit())-I2R(udg_Rabdom_Skill)))call SetUnitLifeBJ(GetSpellAbilityUnit(),GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetSpellAbilityUnit()))else
call SetUnitLifeBJ(GetSpellAbilityUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellAbilityUnit())+GetUnitStateSwap(UNIT_STATE_MANA,GetSpellAbilityUnit())))call SetUnitManaBJ(GetSpellAbilityUnit(),0.00)endifendfunctionfunction InitTrig_Miaso_kabana takes nothing returns nothing
set gg_trg_Miaso_kabana=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Miaso_kabana,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Miaso_kabana,Condition(function Trig_Miaso_kabana_Conditions))call TriggerAddAction(gg_trg_Miaso_kabana,function Trig_Miaso_kabana_Actions)endfunctionfunction Trig_Udar_molota_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A0DO'))then
return false
endifreturn trueendfunctionfunction Trig_Udar_molota_Func001Func001001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(11))endfunctionfunction Trig_Udar_molota_Func001Func002001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(10))endfunctionfunction Trig_Udar_molota_Func001Func003001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(6))endfunctionfunction Trig_Udar_molota_Func001A takes nothing returns nothing
if(Trig_Udar_molota_Func001Func001001())then
call UnitDamageTargetBJ(GetSpellAbilityUnit(),GetEnumUnit(),(3.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetSpellAbilityUnit(),true))),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)else
call DoNothing()
endifif(Trig_Udar_molota_Func001Func002001())then
call UnitDamageTargetBJ(GetSpellAbilityUnit(),GetEnumUnit(),(3.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetSpellAbilityUnit(),true))),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)else
call DoNothing()
endifif(Trig_Udar_molota_Func001Func003001())then
call UnitDamageTargetBJ(GetSpellAbilityUnit(),GetEnumUnit(),(3.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetSpellAbilityUnit(),true))),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)else
call DoNothing()
endifendfunctionfunction Trig_Udar_molota_Actions takes nothing returns nothingcall ForGroupBJ(GetUnitsInRangeOfLocAll(250.00,GetUnitLoc(GetSpellAbilityUnit())),function Trig_Udar_molota_Func001A)call GroupClear(GetLastCreatedGroup())endfunctionfunction InitTrig_Udar_molota takes nothing returns nothingset gg_trg_Udar_molota=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Udar_molota,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Udar_molota,Condition(function Trig_Udar_molota_Conditions))
call TriggerAddAction(gg_trg_Udar_molota,function Trig_Udar_molota_Actions)endfunctionfunction Trig_Sotresaushou_udar_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A09X'))then
return false
endifreturn trueendfunctionfunction Trig_Sotresaushou_udar_Func001Func001001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(11))endfunctionfunction Trig_Sotresaushou_udar_Func001Func002001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(10))endfunctionfunction Trig_Sotresaushou_udar_Func001Func003001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(6))endfunctionfunction Trig_Sotresaushou_udar_Func001A takes nothing returns nothingif(Trig_Sotresaushou_udar_Func001Func001001())thencall UnitDamageTargetBJ(GetSpellAbilityUnit(),GetEnumUnit(),(4.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetSpellAbilityUnit(),true))),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)else
call DoNothing()
endifif(Trig_Sotresaushou_udar_Func001Func002001())thencall UnitDamageTargetBJ(GetSpellAbilityUnit(),GetEnumUnit(),(4.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetSpellAbilityUnit(),true))),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)else
call DoNothing()
endifif(Trig_Sotresaushou_udar_Func001Func003001())thencall UnitDamageTargetBJ(GetSpellAbilityUnit(),GetEnumUnit(),(4.00*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetSpellAbilityUnit(),true))),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)else
call DoNothing()
endifendfunctionfunction Trig_Sotresaushou_udar_Actions takes nothing returns nothingcall ForGroupBJ(GetUnitsInRangeOfLocAll(250.00,GetUnitLoc(GetSpellAbilityUnit())),function Trig_Sotresaushou_udar_Func001A)call GroupClear(GetLastCreatedGroup())endfunctionfunction InitTrig_Sotresaushou_udar takes nothing returns nothingset gg_trg_Sotresaushou_udar=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Sotresaushou_udar,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Sotresaushou_udar,Condition(function Trig_Sotresaushou_udar_Conditions))
call TriggerAddAction(gg_trg_Sotresaushou_udar,function Trig_Sotresaushou_udar_Actions)endfunctionfunction Trig_Iscelenie_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetSpellAbilityUnit())=='H00X'))thenreturn false
endifreturn trueendfunctionfunction Trig_Iscelenie_Actions takes nothing returns nothingcall SetUnitLifeBJ(GetSpellAbilityUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellAbilityUnit())+(I2R(GetUnitLevel(GetSpellAbilityUnit()))*5.00)))call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellAbilityUnit()),"Abilities\\Spells\\Undead\\VampiricAura\\VampiricAuraTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
endfunctionfunction InitTrig_Iscelenie takes nothing returns nothingset gg_trg_Iscelenie=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Iscelenie,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Iscelenie,Condition(function Trig_Iscelenie_Conditions))
call TriggerAddAction(gg_trg_Iscelenie,function Trig_Iscelenie_Actions)endfunctionfunction Trig_Zalp_kartechu_Conditions takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A0AL',GetAttacker())>=1))then
return false
endifreturn trueendfunctionfunction Trig_Zalp_kartechu_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(0.50)call UnitRemoveAbilityBJ('A0AL',GetAttacker())call UnitRemoveAbilityBJ('A0A5',GetAttacker())call TriggerSleepAction(45.00)call UnitAddAbilityBJ('A0AL',GetAttacker())call UnitAddAbilityBJ('A0A5',GetAttacker())call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Zalp_kartechu takes nothing returns nothingset gg_trg_Zalp_kartechu=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Zalp_kartechu,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Zalp_kartechu,Condition(function Trig_Zalp_kartechu_Conditions))
call TriggerAddAction(gg_trg_Zalp_kartechu,function Trig_Zalp_kartechu_Actions)endfunctionfunction Trig_Raketniy_zalp_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AM'))then
return false
endifreturn trueendfunctionfunction Trig_Raketniy_zalp_Actions takes nothing returns nothingcall UnitDamagePointLoc(GetSpellAbilityUnit(),0,175.00,GetUnitLoc(GetSpellTargetUnit()),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetSpellAbilityUnit(),true))*10.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_FIRE)endfunctionfunction InitTrig_Raketniy_zalp takes nothing returns nothingset gg_trg_Raketniy_zalp=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Raketniy_zalp,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Raketniy_zalp,Condition(function Trig_Raketniy_zalp_Conditions))
call TriggerAddAction(gg_trg_Raketniy_zalp,function Trig_Raketniy_zalp_Actions)endfunctionfunction Trig_Yadovitoe_oblako_Func001Func003001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(11))endfunctionfunction Trig_Yadovitoe_oblako_Func001Func004001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(10))endfunctionfunction Trig_Yadovitoe_oblako_Func001Func005001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(6))endfunctionfunction Trig_Yadovitoe_oblako_Func001A takes nothing returns nothingcall AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Weapons\\ChimaeraAcidMissile\\ChimaeraAcidMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_Yadovitoe_oblako_Func001Func003001())thencall UnitDamageTargetBJ(gg_unit_U00T_0637,GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,gg_unit_U00T_0637)*0.06),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_DISEASE)else
call DoNothing()
endifif(Trig_Yadovitoe_oblako_Func001Func004001())thencall UnitDamageTargetBJ(gg_unit_U00T_0637,GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,gg_unit_U00T_0637)*0.06),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_DISEASE)else
call DoNothing()
endifif(Trig_Yadovitoe_oblako_Func001Func005001())thencall UnitDamageTargetBJ(gg_unit_U00T_0637,GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,gg_unit_U00T_0637)*0.06),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_DISEASE)else
call DoNothing()
endifendfunctionfunction Trig_Yadovitoe_oblako_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocAll(200.00,GetUnitLoc(gg_unit_U00T_0637)),function Trig_Yadovitoe_oblako_Func001A)call GroupClear(GetLastCreatedGroup())endfunctionfunction InitTrig_Yadovitoe_oblako takes nothing returns nothing
set gg_trg_Yadovitoe_oblako=CreateTrigger()call DisableTrigger(gg_trg_Yadovitoe_oblako)
call TriggerRegisterTimerEventPeriodic(gg_trg_Yadovitoe_oblako,3.00)
call TriggerAddAction(gg_trg_Yadovitoe_oblako,function Trig_Yadovitoe_oblako_Actions)endfunctionfunction Trig_Znak_demona_Conditions takes nothing returns booleanif(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_STRUCTURE)==false))thenreturn false
endifif(not(UnitHasBuffBJ(GetAttacker(),'B03I')==true))thenreturn false
endifif(not(GetUnitStateSwap(UNIT_STATE_MANA,GetAttacker())>=(GetUnitStateSwap(UNIT_STATE_MAX_MANA,GetAttacker())*0.06)))then
return false
endifreturn trueendfunctionfunction Trig_Znak_demona_Func003C takes nothing returns boolean
if(not(udg_Chanse<=15))thenreturn false
endifreturn trueendfunctionfunction Trig_Znak_demona_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())set udg_Chanse=GetRandomInt(1,100)if(Trig_Znak_demona_Func003C())thencall TriggerSleepAction(0.60)call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetAttacker(),true))*2.50),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_DEMOLITION)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
endifcall TriggerSleepAction(0.50)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Znak_demona takes nothing returns nothingset gg_trg_Znak_demona=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Znak_demona,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Znak_demona,Condition(function Trig_Znak_demona_Conditions))
call TriggerAddAction(gg_trg_Znak_demona,function Trig_Znak_demona_Actions)endfunctionfunction Trig_Perst_boly_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='ACf3'))then
return false
endifreturn trueendfunctionfunction Trig_Perst_boly_Func001C takes nothing returns booleanif(not(IsUnitType(GetSpellTargetUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Perst_boly_Actions takes nothing returns nothingif(Trig_Perst_boly_Func001C())thencall UnitDamageTargetBJ(GetSpellAbilityUnit(),GetSpellTargetUnit(),(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetSpellTargetUnit())*0.02),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_DEMOLITION)else
call UnitDamageTargetBJ(GetSpellAbilityUnit(),GetSpellTargetUnit(),(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetSpellTargetUnit())*0.08),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_DEMOLITION)endifendfunctionfunction InitTrig_Perst_boly takes nothing returns nothingset gg_trg_Perst_boly=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Perst_boly,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Perst_boly,Condition(function Trig_Perst_boly_Conditions))call TriggerAddAction(gg_trg_Perst_boly,function Trig_Perst_boly_Actions)endfunctionfunction Trig_Perst_boly_LVL_Conditions takes nothing returns booleanif(not(GetUnitLevel(gg_unit_N00Q_0641)<=50))then
return false
endifreturn trueendfunctionfunction Trig_Perst_boly_LVL_Actions takes nothing returns nothingcall SetUnitAbilityLevelSwapped('ACf3',gg_unit_N00Q_0641,(GetUnitLevel(gg_unit_N00Q_0641)/ 5))endfunctionfunction InitTrig_Perst_boly_LVL takes nothing returns nothingset gg_trg_Perst_boly_LVL=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Perst_boly_LVL,gg_unit_N00Q_0641,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(gg_trg_Perst_boly_LVL,Condition(function Trig_Perst_boly_LVL_Conditions))call TriggerAddAction(gg_trg_Perst_boly_LVL,function Trig_Perst_boly_LVL_Actions)endfunctionfunction Trig_Glaz_razuma_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A0AZ'))then
return false
endifreturn trueendfunctionfunction Trig_Glaz_razuma_Actions takes nothing returns nothingcall IssueTargetOrder(gg_unit_e005_0658,"smart",gg_unit_E004_0657)call ModifyHeroStat(bj_HEROSTAT_INT,GetSpellTargetUnit(),bj_MODIFYMETHOD_ADD,1)call AddHeroXPSwapped((20+(GetUnitLevel(GetSpellAbilityUnit())*25)),GetTriggerUnit(),true)endfunctionfunction InitTrig_Glaz_razuma takes nothing returns nothingset gg_trg_Glaz_razuma=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Glaz_razuma,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Glaz_razuma,Condition(function Trig_Glaz_razuma_Conditions))
call TriggerAddAction(gg_trg_Glaz_razuma,function Trig_Glaz_razuma_Actions)endfunctionfunction Trig_Udar_copiem_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A0B2'))then
return false
endifreturn trueendfunctionfunction Trig_Udar_copiem_Actions takes nothing returns nothingcall UnitDamageTargetBJ(GetSpellAbilityUnit(),GetSpellTargetUnit(),(I2R(GetUnitLevel(GetSpellAbilityUnit()))*60.00),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)endfunctionfunction InitTrig_Udar_copiem takes nothing returns nothingset gg_trg_Udar_copiem=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Udar_copiem,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Udar_copiem,Condition(function Trig_Udar_copiem_Conditions))
call TriggerAddAction(gg_trg_Udar_copiem,function Trig_Udar_copiem_Actions)endfunctionfunction Trig_Bezumie_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='H011'))thenreturn false
endifreturn trueendfunctionfunction Trig_Bezumie_Func001C takes nothing returns boolean
if(not(GetUnitLifePercent(GetAttackedUnitBJ())<=50.00))thenreturn false
endifreturn trueendfunctionfunction Trig_Bezumie_Actions takes nothing returns nothingif(Trig_Bezumie_Func001C())thencall SetUnitAbilityLevelSwapped('S004',GetAttackedUnitBJ(),2)else
call SetUnitAbilityLevelSwapped('S004',GetAttackedUnitBJ(),1)endifendfunctionfunction InitTrig_Bezumie takes nothing returns nothingset gg_trg_Bezumie=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Bezumie,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Bezumie,Condition(function Trig_Bezumie_Conditions))
call TriggerAddAction(gg_trg_Bezumie,function Trig_Bezumie_Actions)endfunctionfunction Trig_Kniga_zaklinaniy_Func001C takes nothing returns booleanif((GetOwningPlayer(GetSpellTargetUnit())==Player(11)))thenreturn trueendifif((GetOwningPlayer(GetSpellTargetUnit())==Player(10)))thenreturn trueendifif((GetOwningPlayer(GetSpellTargetUnit())==Player(6)))thenreturn trueendifreturn false
endfunctionfunction Trig_Kniga_zaklinaniy_Conditions takes nothing returns booleanif(not Trig_Kniga_zaklinaniy_Func001C())then
return false
endifif(not(GetUnitAbilityLevelSwapped('A0B6',GetSpellAbilityUnit())>=1))then
return false
endifreturn trueendfunctionfunction Trig_Kniga_zaklinaniy_Func003Func003C takes nothing returns boolean
if(not(udg_Chanse==1))thenreturn false
endifif(not(IsUnitType(GetSpellTargetUnit(),UNIT_TYPE_HERO)==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_zaklinaniy_Func003Func004C takes nothing returns boolean
if(not(udg_Chanse==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_zaklinaniy_Func003Func005C takes nothing returns boolean
if(not(udg_Chanse==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_zaklinaniy_Func003Func006C takes nothing returns boolean
if(not(udg_Chanse==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_zaklinaniy_Func003Func007C takes nothing returns boolean
if(not(udg_Chanse==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_zaklinaniy_Func003C takes nothing returns booleanif(not(udg_Chanse>25))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_zaklinaniy_Actions takes nothing returns nothing
set udg_Chanse=GetRandomInt(1,100)if(Trig_Kniga_zaklinaniy_Func003C())then
returnelse
call DisableTrigger(GetTriggeringTrigger())set udg_Chanse=GetRandomInt(1,5)
if(Trig_Kniga_zaklinaniy_Func003Func003C())thencall CreateNUnitsAtLoc(1,'u00V',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellTargetUnit()),bj_UNIT_FACING)call IssueTargetOrder(GetLastCreatedUnit(),"polymorph",GetSpellTargetUnit())
else
endifif(Trig_Kniga_zaklinaniy_Func003Func004C())thencall CreateNUnitsAtLoc(1,'u00V',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellTargetUnit()),bj_UNIT_FACING)call UnitAddAbilityBJ('A002',GetLastCreatedUnit())call SetUnitAbilityLevelSwapped('A002',GetLastCreatedUnit(),GetRandomInt(1,25))call IssueTargetOrder(GetLastCreatedUnit(),"shadowstrike",GetSpellTargetUnit())else
endifif(Trig_Kniga_zaklinaniy_Func003Func005C())thencall CreateNUnitsAtLoc(1,'u00V',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),bj_UNIT_FACING)
call UnitAddAbilityBJ('ANfl',GetLastCreatedUnit())call SetUnitAbilityLevelSwapped('ANfl',GetLastCreatedUnit(),GetRandomInt(1,25))call IssueTargetOrder(GetLastCreatedUnit(),"forkedlightning",GetSpellTargetUnit())else
endifif(Trig_Kniga_zaklinaniy_Func003Func006C())thencall CreateNUnitsAtLoc(1,'u00V',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellTargetUnit()),bj_UNIT_FACING)call UnitAddAbilityBJ('AUfn',GetLastCreatedUnit())call SetUnitAbilityLevelSwapped('AUfn',GetLastCreatedUnit(),GetRandomInt(1,25))call IssueTargetOrder(GetLastCreatedUnit(),"frostnova",GetSpellTargetUnit())
else
endifif(Trig_Kniga_zaklinaniy_Func003Func007C())thencall CreateNUnitsAtLoc(1,'u00V',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A07N',GetLastCreatedUnit())call SetUnitAbilityLevelSwapped('A07N',GetLastCreatedUnit(),GetRandomInt(1,25))call IssueTargetOrder(GetLastCreatedUnit(),"impale",GetSpellTargetUnit())else
endifcall TriggerSleepAction(15.00)call EnableTrigger(GetTriggeringTrigger())endifendfunctionfunction InitTrig_Kniga_zaklinaniy takes nothing returns nothing
set gg_trg_Kniga_zaklinaniy=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kniga_zaklinaniy,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Kniga_zaklinaniy,Condition(function Trig_Kniga_zaklinaniy_Conditions))call TriggerAddAction(gg_trg_Kniga_zaklinaniy,function Trig_Kniga_zaklinaniy_Actions)endfunctionfunction Trig_Prisutstvie_smerty_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A0DB'))then
return false
endifreturn trueendfunctionfunction Trig_Prisutstvie_smerty_Func002Func003001 takes nothing returns boolean
return(GetOwningPlayer(GetEnumUnit())==Player(11))endfunctionfunction Trig_Prisutstvie_smerty_Func002Func004001 takes nothing returns boolean
return(GetOwningPlayer(GetEnumUnit())==Player(10))endfunctionfunction Trig_Prisutstvie_smerty_Func002Func005001 takes nothing returns boolean
return(GetOwningPlayer(GetEnumUnit())==Player(6))endfunctionfunction Trig_Prisutstvie_smerty_Func002A takes nothing returns nothingcall AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_Prisutstvie_smerty_Func002Func003001())thencall UnitDamageTargetBJ(gg_unit_U00Y_0669,GetEnumUnit(),(30.00*I2R(GetUnitLevel(gg_unit_U00Y_0669))),ATTACK_TYPE_MAGIC,DAMAGE_TYPE_DEATH)else
call DoNothing()
endifif(Trig_Prisutstvie_smerty_Func002Func004001())thencall UnitDamageTargetBJ(gg_unit_U00Y_0669,GetEnumUnit(),(30.00*I2R(GetUnitLevel(gg_unit_U00Y_0669))),ATTACK_TYPE_MAGIC,DAMAGE_TYPE_DEATH)else
call DoNothing()
endifif(Trig_Prisutstvie_smerty_Func002Func005001())thencall UnitDamageTargetBJ(gg_unit_U00Y_0669,GetEnumUnit(),(30.00*I2R(GetUnitLevel(gg_unit_U00Y_0669))),ATTACK_TYPE_MAGIC,DAMAGE_TYPE_DEATH)else
call DoNothing()
endifendfunctionfunction Trig_Prisutstvie_smerty_Actions takes nothing returns nothingcall TriggerSleepAction(0.90)call ForGroupBJ(GetUnitsInRangeOfLocAll(300.00,GetUnitLoc(gg_unit_U00Y_0669)),function Trig_Prisutstvie_smerty_Func002A)
call GroupClear(GetLastCreatedGroup())endfunctionfunction InitTrig_Prisutstvie_smerty takes nothing returns nothingset gg_trg_Prisutstvie_smerty=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Prisutstvie_smerty,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_Prisutstvie_smerty,Condition(function Trig_Prisutstvie_smerty_Conditions))call TriggerAddAction(gg_trg_Prisutstvie_smerty,function Trig_Prisutstvie_smerty_Actions)endfunctionfunction Trig_Sobiratel_duh_Conditions takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A0BA',GetKillingUnitBJ())>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_Sobiratel_duh_Func004C takes nothing returns booleanif(not(udg_Chanse<=9))thenreturn false
endifreturn trueendfunctionfunction Trig_Sobiratel_duh_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())set udg_Chanse=GetRandomInt(1,100)if(Trig_Sobiratel_duh_Func004C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetDyingUnit()),"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call AddHeroXPSwapped(((GetUnitLevel(GetDyingUnit())*10)+(GetUnitLevel(GetKillingUnitBJ())*5)),GetKillingUnitBJ(),true)else
endifcall TriggerSleepAction(4.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Sobiratel_duh takes nothing returns nothingset gg_trg_Sobiratel_duh=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Sobiratel_duh,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_Sobiratel_duh,Condition(function Trig_Sobiratel_duh_Conditions))
call TriggerAddAction(gg_trg_Sobiratel_duh,function Trig_Sobiratel_duh_Actions)endfunctionfunction Trig_Povelitel_ada_Conditions takes nothing returns boolean
if(not(GetUnitLifePercent(GetAttacker())<=25.00))thenreturn false
endifif(not(GetUnitAbilityLevelSwapped('A0DI',GetAttacker())>=1))then
return false
endifreturn trueendfunctionfunction Trig_Povelitel_ada_Func004Func003001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(11))endfunctionfunction Trig_Povelitel_ada_Func004Func004001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(10))endfunctionfunction Trig_Povelitel_ada_Func004Func005001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(6))endfunctionfunction Trig_Povelitel_ada_Func004A takes nothing returns nothingcall AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile_mini.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_Povelitel_ada_Func004Func003001())thencall UnitDamageTargetBJ(GetAttacker(),GetEnumUnit(),(1.50*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetAttacker(),true))),ATTACK_TYPE_MAGIC,DAMAGE_TYPE_FIRE)else
call DoNothing()
endifif(Trig_Povelitel_ada_Func004Func004001())thencall UnitDamageTargetBJ(GetAttacker(),GetEnumUnit(),(1.50*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetAttacker(),true))),ATTACK_TYPE_MAGIC,DAMAGE_TYPE_FIRE)else
call DoNothing()
endifif(Trig_Povelitel_ada_Func004Func005001())thencall UnitDamageTargetBJ(GetAttacker(),GetEnumUnit(),(1.50*I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetAttacker(),true))),ATTACK_TYPE_MAGIC,DAMAGE_TYPE_FIRE)else
call DoNothing()
endifendfunctionfunction Trig_Povelitel_ada_Actions takes nothing returns nothingcall TriggerSleepAction(0.10)call ForGroupBJ(GetUnitsInRangeOfLocAll(250.00,GetUnitLoc(GetAttackedUnitBJ())),function Trig_Povelitel_ada_Func004A)call GroupClear(GetLastCreatedGroup())endfunctionfunction InitTrig_Povelitel_ada takes nothing returns nothingset gg_trg_Povelitel_ada=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Povelitel_ada,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Povelitel_ada,Condition(function Trig_Povelitel_ada_Conditions))
call TriggerAddAction(gg_trg_Povelitel_ada,function Trig_Povelitel_ada_Actions)endfunctionfunction Trig_Diyavolskaya_sila_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0DH'))then
return false
endifreturn trueendfunctionfunction Trig_Diyavolskaya_sila_Func001C takes nothing returns booleanif(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())<=(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetSpellAbilityUnit(),true))*5.00)))thenreturn false
endifreturn trueendfunctionfunction Trig_Diyavolskaya_sila_Actions takes nothing returns nothingif(Trig_Diyavolskaya_sila_Func001C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetSpellTargetUnit()),"Objects\\Spawnmodels\\Undead\\UndeadLargeDeathExplode\\UndeadLargeDeathExplode.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitLifeBJ(GetSpellAbilityUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellAbilityUnit())+(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())*1.00)))call KillUnit(GetSpellTargetUnit())call ModifyHeroStat(bj_HEROSTAT_STR,GetSpellAbilityUnit(),bj_MODIFYMETHOD_ADD,2)
else
call UnitDamageTargetBJ(GetSpellAbilityUnit(),GetSpellTargetUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetSpellAbilityUnit(),true))*5.00),ATTACK_TYPE_HERO,DAMAGE_TYPE_DEMOLITION)endifendfunctionfunction InitTrig_Diyavolskaya_sila takes nothing returns nothingset gg_trg_Diyavolskaya_sila=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Diyavolskaya_sila,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Diyavolskaya_sila,Condition(function Trig_Diyavolskaya_sila_Conditions))
call TriggerAddAction(gg_trg_Diyavolskaya_sila,function Trig_Diyavolskaya_sila_Actions)endfunctionfunction Trig_Ogon_preispodnii_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A0BL'))then
return false
endifreturn trueendfunctionfunction Trig_Ogon_preispodnii_Func001Func003001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(11))endfunctionfunction Trig_Ogon_preispodnii_Func001Func004001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(10))endfunctionfunction Trig_Ogon_preispodnii_Func001Func005001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(6))endfunctionfunction Trig_Ogon_preispodnii_Func001A takes nothing returns nothingcall AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Items\\AIfb\\AIfbSpecialArt.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_Ogon_preispodnii_Func001Func003001())thencall UnitDamageTargetBJ(GetSpellAbilityUnit(),GetEnumUnit(),(5.00*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetSpellAbilityUnit(),true))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_FIRE)else
call DoNothing()
endifif(Trig_Ogon_preispodnii_Func001Func004001())thencall UnitDamageTargetBJ(GetSpellAbilityUnit(),GetEnumUnit(),(5.00*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetSpellAbilityUnit(),true))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_FIRE)else
call DoNothing()
endifif(Trig_Ogon_preispodnii_Func001Func005001())thencall UnitDamageTargetBJ(GetSpellAbilityUnit(),GetEnumUnit(),(5.00*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetSpellAbilityUnit(),true))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_FIRE)else
call DoNothing()
endifendfunctionfunction Trig_Ogon_preispodnii_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocAll(250.00,GetUnitLoc(GetSpellTargetUnit())),function Trig_Ogon_preispodnii_Func001A)call GroupClear(GetLastCreatedGroup())endfunctionfunction InitTrig_Ogon_preispodnii takes nothing returns nothing
set gg_trg_Ogon_preispodnii=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ogon_preispodnii,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Ogon_preispodnii,Condition(function Trig_Ogon_preispodnii_Conditions))call TriggerAddAction(gg_trg_Ogon_preispodnii,function Trig_Ogon_preispodnii_Actions)endfunctionfunction Trig_Vihrevoy_udar_Conditions takes nothing returns boolean
if(not(GetUnitLevel(gg_unit_H019_0711)<=50))then
return false
endifreturn trueendfunctionfunction Trig_Vihrevoy_udar_Actions takes nothing returns nothingcall SetUnitAbilityLevelSwapped('A0BM',gg_unit_H019_0711,(GetUnitLevel(gg_unit_H019_0711)/ 5))endfunctionfunction InitTrig_Vihrevoy_udar takes nothing returns nothingset gg_trg_Vihrevoy_udar=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_Vihrevoy_udar,gg_unit_H019_0711,EVENT_UNIT_HERO_LEVEL)call TriggerAddCondition(gg_trg_Vihrevoy_udar,Condition(function Trig_Vihrevoy_udar_Conditions))
call TriggerAddAction(gg_trg_Vihrevoy_udar,function Trig_Vihrevoy_udar_Actions)endfunctionfunction Trig_Maskirovka_Conditions takes nothing returns booleanif(not(GetUnitAbilityLevelSwapped('A0BN',GetAttacker())>=1))then
return false
endifif(not(UnitHasBuffBJ(GetAttacker(),'B030')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Maskirovka_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetAttacker(),true))*4.00),ATTACK_TYPE_HERO,DAMAGE_TYPE_UNIVERSAL)call TriggerSleepAction(2.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Maskirovka takes nothing returns nothingset gg_trg_Maskirovka=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Maskirovka,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Maskirovka,Condition(function Trig_Maskirovka_Conditions))call TriggerAddAction(gg_trg_Maskirovka,function Trig_Maskirovka_Actions)endfunctionfunction Trig_Zacharovanniy_kopie_Conditions takes nothing returns booleanif(not(GetUnitLevel(gg_unit_E006_0713)<=50))then
return false
endifreturn trueendfunctionfunction Trig_Zacharovanniy_kopie_Actions takes nothing returns nothingcall SetUnitAbilityLevelSwapped('AEpa',gg_unit_H019_0711,(GetUnitLevel(gg_unit_E006_0713)/ 5))endfunctionfunction InitTrig_Zacharovanniy_kopie takes nothing returns nothingset gg_trg_Zacharovanniy_kopie=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Zacharovanniy_kopie,gg_unit_E006_0713,EVENT_UNIT_HERO_LEVEL)call TriggerAddCondition(gg_trg_Zacharovanniy_kopie,Condition(function Trig_Zacharovanniy_kopie_Conditions))
call TriggerAddAction(gg_trg_Zacharovanniy_kopie,function Trig_Zacharovanniy_kopie_Actions)endfunctionfunction Trig_Mogilshuk_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='N00P'))thenreturn false
endifif(not(UnitHasBuffBJ(GetAttackedUnitBJ(),'B03L')==true))then
return false
endifreturn trueendfunctionfunction Trig_Mogilshuk_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(0.20)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Undead\\Impale\\ImpaleHitTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetUnitLevel(GetAttacker()))*20.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
call TriggerSleepAction(1.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Mogilshuk takes nothing returns nothingset gg_trg_Mogilshuk=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Mogilshuk,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Mogilshuk,Condition(function Trig_Mogilshuk_Conditions))
call TriggerAddAction(gg_trg_Mogilshuk,function Trig_Mogilshuk_Actions)endfunctionfunction Trig_Ledinaya_volna_2_Conditions takes nothing returns booleanif(not(GetUnitLevel(gg_unit_H01D_0732)<=100))thenreturn false
endifreturn trueendfunctionfunction Trig_Ledinaya_volna_2_Actions takes nothing returns nothing
call SetUnitAbilityLevelSwapped('A03T',gg_unit_H01D_0732,(GetUnitAbilityLevelSwapped('A03T',gg_unit_H01D_0732)+1))endfunctionfunction InitTrig_Ledinaya_volna_2 takes nothing returns nothing
set gg_trg_Ledinaya_volna_2=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Ledinaya_volna_2,gg_unit_H01D_0732,EVENT_UNIT_HERO_LEVEL)call TriggerAddCondition(gg_trg_Ledinaya_volna_2,Condition(function Trig_Ledinaya_volna_2_Conditions))call TriggerAddAction(gg_trg_Ledinaya_volna_2,function Trig_Ledinaya_volna_2_Actions)endfunctionfunction Trig_Vlast_mertvih_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0DG'))then
return false
endifreturn trueendfunctionfunction Trig_Vlast_mertvih_Func001Func003001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(11))endfunctionfunction Trig_Vlast_mertvih_Func001Func004001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(10))endfunctionfunction Trig_Vlast_mertvih_Func001Func005001 takes nothing returns booleanreturn(GetOwningPlayer(GetEnumUnit())==Player(6))endfunctionfunction Trig_Vlast_mertvih_Func001Func006Func002C takes nothing returns boolean
if((GetOwningPlayer(GetEnumUnit())==Player(11)))then
return trueendifif((GetOwningPlayer(GetEnumUnit())==Player(10)))then
return trueendifif((GetOwningPlayer(GetEnumUnit())==Player(6)))thenreturn trueendifreturn false
endfunctionfunction Trig_Vlast_mertvih_Func001Func006C takes nothing returns booleanif(not Trig_Vlast_mertvih_Func001Func006Func002C())thenreturn false
endifreturn trueendfunctionfunction Trig_Vlast_mertvih_Func001A takes nothing returns nothingcall AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_Vlast_mertvih_Func001Func003001())thencall UnitDamageTargetBJ(gg_unit_U013_0733,GetEnumUnit(),(15.00*I2R(GetUnitLevel(gg_unit_U013_0733))),ATTACK_TYPE_MAGIC,DAMAGE_TYPE_DEATH)else
call DoNothing()
endifif(Trig_Vlast_mertvih_Func001Func004001())thencall UnitDamageTargetBJ(gg_unit_U013_0733,GetEnumUnit(),(15.00*I2R(GetUnitLevel(gg_unit_U013_0733))),ATTACK_TYPE_MAGIC,DAMAGE_TYPE_DEATH)else
call DoNothing()
endifif(Trig_Vlast_mertvih_Func001Func005001())thencall UnitDamageTargetBJ(gg_unit_U013_0733,GetEnumUnit(),(15.00*I2R(GetUnitLevel(gg_unit_U013_0733))),ATTACK_TYPE_MAGIC,DAMAGE_TYPE_DEATH)else
call DoNothing()
endifif(Trig_Vlast_mertvih_Func001Func006C())then
call SetUnitLifeBJ(gg_unit_U013_0733,(GetUnitStateSwap(UNIT_STATE_LIFE,gg_unit_U013_0733)+(I2R(GetUnitLevel(gg_unit_U013_0733))*15.00)))
else
endifendfunctionfunction Trig_Vlast_mertvih_Actions takes nothing returns nothingcall ForGroupBJ(GetUnitsInRangeOfLocAll(600.00,GetUnitLoc(gg_unit_U013_0733)),function Trig_Vlast_mertvih_Func001A)call GroupClear(GetLastCreatedGroup())endfunctionfunction InitTrig_Vlast_mertvih takes nothing returns nothingset gg_trg_Vlast_mertvih=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Vlast_mertvih,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Vlast_mertvih,Condition(function Trig_Vlast_mertvih_Conditions))
call TriggerAddAction(gg_trg_Vlast_mertvih,function Trig_Vlast_mertvih_Actions)endfunctionfunction Trig_Neupokoenniy_Func005Func001C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(gg_unit_U013_0733),PLAYER_STATE_RESOURCE_FOOD_USED)==0))thenreturn false
endifreturn trueendfunctionfunction Trig_Neupokoenniy_Func005C takes nothing returns booleanif(not(udg_Chanse<=40))thenreturn false
endifreturn trueendfunctionfunction Trig_Neupokoenniy_Actions takes nothing returns nothing
call ModifyHeroStat(bj_HEROSTAT_STR,gg_unit_U013_0733,bj_MODIFYMETHOD_ADD,10)call ModifyHeroStat(bj_HEROSTAT_AGI,gg_unit_U013_0733,bj_MODIFYMETHOD_ADD,10)call ModifyHeroStat(bj_HEROSTAT_INT,gg_unit_U013_0733,bj_MODIFYMETHOD_ADD,10)set udg_Chanse=GetRandomInt(1,100)if(Trig_Neupokoenniy_Func005C())then
if(Trig_Neupokoenniy_Func005Func001C())thencall TriggerSleepAction(5.00)call ReviveHeroLoc(gg_unit_U013_0733,GetUnitLoc(gg_unit_ncp3_0330),true)
call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
else
call TriggerSleepAction(5.00)call SetPlayerStateBJ(GetOwningPlayer(gg_unit_U013_0733),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(GetOwningPlayer(gg_unit_U013_0733),PLAYER_STATE_RESOURCE_FOOD_USED)+1))
endifelse
endifendfunctionfunction InitTrig_Neupokoenniy takes nothing returns nothing
set gg_trg_Neupokoenniy=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Neupokoenniy,gg_unit_U013_0733,EVENT_UNIT_DEATH)call TriggerAddAction(gg_trg_Neupokoenniy,function Trig_Neupokoenniy_Actions)endfunctionfunction Trig_Neupokoenniy_2_Func005Func001C takes nothing returns booleanif(not(GetPlayerState(GetOwningPlayer(gg_unit_U014_0734),PLAYER_STATE_RESOURCE_FOOD_USED)==0))thenreturn false
endifreturn trueendfunctionfunction Trig_Neupokoenniy_2_Func005C takes nothing returns booleanif(not(udg_Chanse<=40))thenreturn false
endifreturn trueendfunctionfunction Trig_Neupokoenniy_2_Actions takes nothing returns nothingcall ModifyHeroStat(bj_HEROSTAT_STR,gg_unit_U014_0734,bj_MODIFYMETHOD_ADD,10)call ModifyHeroStat(bj_HEROSTAT_AGI,gg_unit_U014_0734,bj_MODIFYMETHOD_ADD,10)call ModifyHeroStat(bj_HEROSTAT_INT,gg_unit_U014_0734,bj_MODIFYMETHOD_ADD,10)set udg_Chanse=GetRandomInt(1,100)if(Trig_Neupokoenniy_2_Func005C())thenif(Trig_Neupokoenniy_2_Func005Func001C())thencall TriggerSleepAction(5.00)call ReviveHeroLoc(gg_unit_U014_0734,GetUnitLoc(gg_unit_ncp3_0330),true)
call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
else
call TriggerSleepAction(5.00)call SetPlayerStateBJ(GetOwningPlayer(gg_unit_U014_0734),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(GetOwningPlayer(gg_unit_U014_0734),PLAYER_STATE_RESOURCE_FOOD_USED)+1))
endifelse
endifendfunctionfunction InitTrig_Neupokoenniy_2 takes nothing returns nothingset gg_trg_Neupokoenniy_2=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Neupokoenniy_2,gg_unit_U014_0734,EVENT_UNIT_DEATH)call TriggerAddAction(gg_trg_Neupokoenniy_2,function Trig_Neupokoenniy_2_Actions)endfunctionfunction Trig_Ten_ilidana_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A0CA'))then
return false
endifreturn trueendfunctionfunction Trig_Ten_ilidana_Actions takes nothing returns nothingcall KillUnit(udg_Ten_illidana)call CreateNUnitsAtLoc(1,'h01G',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),bj_UNIT_FACING)
set udg_Ten_illidana=GetLastCreatedUnit()endfunctionfunction InitTrig_Ten_ilidana takes nothing returns nothingset gg_trg_Ten_ilidana=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ten_ilidana,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Ten_ilidana,Condition(function Trig_Ten_ilidana_Conditions))
call TriggerAddAction(gg_trg_Ten_ilidana,function Trig_Ten_ilidana_Actions)endfunctionfunction Trig_Neveroyatnaya_metkost_Conditions takes nothing returns boolean
if(not(GetUnitLevel(gg_unit_H01H_0746)<=100))thenreturn false
endifreturn trueendfunctionfunction Trig_Neveroyatnaya_metkost_Actions takes nothing returns nothingcall SetPlayerTechResearchedSwap('Remk',(GetUnitLevel(gg_unit_H01H_0746)/ 10),GetOwningPlayer(gg_unit_H01H_0746))endfunctionfunction InitTrig_Neveroyatnaya_metkost takes nothing returns nothingset gg_trg_Neveroyatnaya_metkost=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_Neveroyatnaya_metkost,gg_unit_H01H_0746,EVENT_UNIT_HERO_LEVEL)call TriggerAddCondition(gg_trg_Neveroyatnaya_metkost,Condition(function Trig_Neveroyatnaya_metkost_Conditions))
call TriggerAddAction(gg_trg_Neveroyatnaya_metkost,function Trig_Neveroyatnaya_metkost_Actions)endfunctionfunction Trig_Mertvoe_telo_Conditions takes nothing returns booleanif(not(GetUnitLevel(gg_unit_U00W_0666)<=100))thenreturn false
endifreturn trueendfunctionfunction Trig_Mertvoe_telo_Actions takes nothing returns nothing
call SetUnitAbilityLevelSwapped('A0DM',gg_unit_U00W_0666,(GetUnitLevel(gg_unit_U00W_0666)/ 10))endfunctionfunction InitTrig_Mertvoe_telo takes nothing returns nothing
set gg_trg_Mertvoe_telo=CreateTrigger()call TriggerRegisterUnitEvent(gg_trg_Mertvoe_telo,gg_unit_U00W_0666,EVENT_UNIT_HERO_LEVEL)call TriggerAddCondition(gg_trg_Mertvoe_telo,Condition(function Trig_Mertvoe_telo_Conditions))call TriggerAddAction(gg_trg_Mertvoe_telo,function Trig_Mertvoe_telo_Actions)endfunctionfunction Trig_Boevoe_postroenie_Conditions takes nothing returns boolean
if(not(GetUnitLevel(gg_unit_Hpb1_0663)<=50))then
return false
endifreturn trueendfunctionfunction Trig_Boevoe_postroenie_Actions takes nothing returns nothingcall SetUnitAbilityLevelSwapped('A0B5',gg_unit_U00W_0666,(GetUnitLevel(gg_unit_Hpb1_0663)/ 5))endfunctionfunction InitTrig_Boevoe_postroenie takes nothing returns nothingset gg_trg_Boevoe_postroenie=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_Boevoe_postroenie,gg_unit_Hpb1_0663,EVENT_UNIT_HERO_LEVEL)call TriggerAddCondition(gg_trg_Boevoe_postroenie,Condition(function Trig_Boevoe_postroenie_Conditions))
call TriggerAddAction(gg_trg_Boevoe_postroenie,function Trig_Boevoe_postroenie_Actions)endfunctionfunction Trig_Geroicheskaya_hrabrost_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='Hdgo'))thenreturn false
endifif(not(GetUnitLifePercent(GetAttackedUnitBJ())<=5.00))thenreturn false
endifreturn trueendfunctionfunction Trig_Geroicheskaya_hrabrost_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")call SetUnitInvulnerable(gg_unit_Hdgo_0729,true)
call TriggerSleepAction(15.00)call SetUnitInvulnerable(gg_unit_Hdgo_0729,false)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Undead\\ReplenishHealth\\ReplenishHealthCaster.mdl")call TriggerSleepAction(150.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Geroicheskaya_hrabrost takes nothing returns nothingset gg_trg_Geroicheskaya_hrabrost=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Geroicheskaya_hrabrost,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Geroicheskaya_hrabrost,Condition(function Trig_Geroicheskaya_hrabrost_Conditions))call TriggerAddAction(gg_trg_Geroicheskaya_hrabrost,function Trig_Geroicheskaya_hrabrost_Actions)endfunctionfunction Trig_Raziashaya_kopie_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A0DP'))then
return false
endifreturn trueendfunctionfunction Trig_Raziashaya_kopie_Actions takes nothing returns nothing
call TriggerSleepAction(0.50)call UnitDamageTargetBJ(GetSpellAbilityUnit(),GetSpellTargetUnit(),(I2R(GetUnitLevel(GetSpellAbilityUnit()))*50.00),ATTACK_TYPE_HERO,DAMAGE_TYPE_DEMOLITION)
call CreateNUnitsAtLoc(1,'u015',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellTargetUnit()),bj_UNIT_FACING)call SetUnitAbilityLevelSwapped('A0DP',GetSpellAbilityUnit(),(GetUnitLevel(GetSpellAbilityUnit())/ 5))call IssueTargetOrder(GetLastCreatedUnit(),"faeriefire",GetSpellTargetUnit())endfunctionfunction InitTrig_Raziashaya_kopie takes nothing returns nothing
set gg_trg_Raziashaya_kopie=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Raziashaya_kopie,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Raziashaya_kopie,Condition(function Trig_Raziashaya_kopie_Conditions))call TriggerAddAction(gg_trg_Raziashaya_kopie,function Trig_Raziashaya_kopie_Actions)endfunctionfunction Trig_Gustoy_tuman_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetAttackedUnitBJ())=='H00D'))thenreturn false
endifreturn trueendfunctionfunction Trig_Gustoy_tuman_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'u015',GetOwningPlayer(GetAttackedUnitBJ()),GetUnitLoc(GetAttackedUnitBJ()),bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"cloudoffog",GetUnitLoc(GetAttackedUnitBJ()))call TriggerSleepAction(150.00)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Gustoy_tuman takes nothing returns nothing
set gg_trg_Gustoy_tuman=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Gustoy_tuman,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Gustoy_tuman,Condition(function Trig_Gustoy_tuman_Conditions))call TriggerAddAction(gg_trg_Gustoy_tuman,function Trig_Gustoy_tuman_Actions)endfunctionfunction Trig_Udar_molnii_Conditions takes nothing returns booleanif(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_HERO)==false))thenreturn false
endifif(not(GetUnitAbilityLevelSwapped('A09O',GetAttacker())>=1))then
return false
endifreturn trueendfunctionfunction Trig_Udar_molnii_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(0.60)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Weapons\\ChimaeraLightningMissile\\ChimaeraLightningMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetUnitLevel(GetAttacker()))*16.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
call TriggerSleepAction(3.40)call EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Udar_molnii takes nothing returns nothingset gg_trg_Udar_molnii=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Udar_molnii,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Udar_molnii,Condition(function Trig_Udar_molnii_Conditions))
call TriggerAddAction(gg_trg_Udar_molnii,function Trig_Udar_molnii_Actions)endfunctionfunction Trig_Bezumie_2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttackedUnitBJ())=='O00E'))thenreturn false
endifreturn trueendfunctionfunction Trig_Bezumie_2_Func001C takes nothing returns booleanif(not(GetUnitLifePercent(GetAttackedUnitBJ())<=50.00))thenreturn false
endifreturn trueendfunctionfunction Trig_Bezumie_2_Actions takes nothing returns nothingif(Trig_Bezumie_2_Func001C())thencall SetUnitAbilityLevelSwapped('S004',GetAttackedUnitBJ(),2)else
call SetUnitAbilityLevelSwapped('S004',GetAttackedUnitBJ(),1)endifendfunctionfunction InitTrig_Bezumie_2 takes nothing returns nothingset gg_trg_Bezumie_2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Bezumie_2,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Bezumie_2,Condition(function Trig_Bezumie_2_Conditions))
call TriggerAddAction(gg_trg_Bezumie_2,function Trig_Bezumie_2_Actions)endfunctionfunction Trig_Magik_Shit_1_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I0DG')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Magik_Shit_1_Func006C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetAttackedUnitBJ(),'I0DG'))==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Magik_Shit_1_Actions takes nothing returns nothing
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Items\\SpellShieldAmulet\\SpellShieldCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitLifeBJ(GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())+10.00))call SetUnitLifeBJ(GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())+(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetAttackedUnitBJ(),true))*0.10)))if(Trig_Magik_Shit_1_Func006C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetAttackedUnitBJ(),'I0DG'))
else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetAttackedUnitBJ(),'I0DG'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetAttackedUnitBJ(),'I0DG'))-1))
endifendfunctionfunction InitTrig_Magik_Shit_1 takes nothing returns nothing
set gg_trg_Magik_Shit_1=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Magik_Shit_1,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Magik_Shit_1,Condition(function Trig_Magik_Shit_1_Conditions))call TriggerAddAction(gg_trg_Magik_Shit_1,function Trig_Magik_Shit_1_Actions)endfunctionfunction Trig_Magik_Shit_2_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I0DH')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Magik_Shit_2_Func006C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetAttackedUnitBJ(),'I0DH'))==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Magik_Shit_2_Actions takes nothing returns nothing
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Items\\SpellShieldAmulet\\SpellShieldCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitLifeBJ(GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())+30.00))call SetUnitLifeBJ(GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())+(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetAttackedUnitBJ(),true))*0.20)))if(Trig_Magik_Shit_2_Func006C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetAttackedUnitBJ(),'I0DH'))
else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetAttackedUnitBJ(),'I0DH'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetAttackedUnitBJ(),'I0DH'))-1))
endifendfunctionfunction InitTrig_Magik_Shit_2 takes nothing returns nothing
set gg_trg_Magik_Shit_2=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Magik_Shit_2,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Magik_Shit_2,Condition(function Trig_Magik_Shit_2_Conditions))call TriggerAddAction(gg_trg_Magik_Shit_2,function Trig_Magik_Shit_2_Actions)endfunctionfunction Trig_Magik_Shit_3_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I0DI')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Magik_Shit_3_Func006C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetAttackedUnitBJ(),'I0DI'))==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Magik_Shit_3_Actions takes nothing returns nothing
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Items\\SpellShieldAmulet\\SpellShieldCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitLifeBJ(GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())+60.00))call SetUnitLifeBJ(GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())+(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetAttackedUnitBJ(),true))*0.40)))if(Trig_Magik_Shit_3_Func006C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetAttackedUnitBJ(),'I0DI'))
else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetAttackedUnitBJ(),'I0DI'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetAttackedUnitBJ(),'I0DI'))-1))
endifendfunctionfunction InitTrig_Magik_Shit_3 takes nothing returns nothing
set gg_trg_Magik_Shit_3=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Magik_Shit_3,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Magik_Shit_3,Condition(function Trig_Magik_Shit_3_Conditions))call TriggerAddAction(gg_trg_Magik_Shit_3,function Trig_Magik_Shit_3_Actions)endfunctionfunction Trig_Magik_Shit_4_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I0DJ')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Magik_Shit_4_Func006C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetAttackedUnitBJ(),'I0DJ'))==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Magik_Shit_4_Actions takes nothing returns nothing
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Items\\SpellShieldAmulet\\SpellShieldCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitLifeBJ(GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())+120.00))call SetUnitLifeBJ(GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())+(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetAttackedUnitBJ(),true))*1.00)))if(Trig_Magik_Shit_4_Func006C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetAttackedUnitBJ(),'I0DJ'))
else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetAttackedUnitBJ(),'I0DJ'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetAttackedUnitBJ(),'I0DJ'))-1))
endifendfunctionfunction InitTrig_Magik_Shit_4 takes nothing returns nothing
set gg_trg_Magik_Shit_4=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Magik_Shit_4,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Magik_Shit_4,Condition(function Trig_Magik_Shit_4_Conditions))call TriggerAddAction(gg_trg_Magik_Shit_4,function Trig_Magik_Shit_4_Actions)endfunctionfunction Trig_Strely_1_Conditions takes nothing returns booleanif(not(IsUnitType(GetAttacker(),UNIT_TYPE_RANGED_ATTACKER)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetAttacker(),'I0DC')==true))then
return false
endifreturn trueendfunctionfunction Trig_Strely_1_Func007C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetAttacker(),'I0DC'))==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Strely_1_Actions takes nothing returns nothing
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Objects\\Spawnmodels\\Orc\\Orcblood\\BattrollBlood.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),20.00,ATTACK_TYPE_PIERCE,DAMAGE_TYPE_NORMAL)call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetAttacker(),true))*0.10),ATTACK_TYPE_PIERCE,DAMAGE_TYPE_NORMAL)if(Trig_Strely_1_Func007C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetAttacker(),'I0DC'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetAttacker(),'I0DC'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetAttacker(),'I0DC'))-1))
endifendfunctionfunction InitTrig_Strely_1 takes nothing returns nothing
set gg_trg_Strely_1=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Strely_1,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Strely_1,Condition(function Trig_Strely_1_Conditions))call TriggerAddAction(gg_trg_Strely_1,function Trig_Strely_1_Actions)endfunctionfunction Trig_Strely_2_Conditions takes nothing returns booleanif(not(IsUnitType(GetAttacker(),UNIT_TYPE_RANGED_ATTACKER)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetAttacker(),'I0DD')==true))then
return false
endifreturn trueendfunctionfunction Trig_Strely_2_Func007C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetAttacker(),'I0DD'))==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Strely_2_Actions takes nothing returns nothing
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),40.00,ATTACK_TYPE_PIERCE,DAMAGE_TYPE_NORMAL)call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetAttacker(),true))*0.20),ATTACK_TYPE_PIERCE,DAMAGE_TYPE_NORMAL)if(Trig_Strely_2_Func007C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetAttacker(),'I0DD'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetAttacker(),'I0DD'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetAttacker(),'I0DD'))-1))
endifendfunctionfunction InitTrig_Strely_2 takes nothing returns nothing
set gg_trg_Strely_2=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Strely_2,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Strely_2,Condition(function Trig_Strely_2_Conditions))call TriggerAddAction(gg_trg_Strely_2,function Trig_Strely_2_Actions)endfunctionfunction Trig_Strely_3_Conditions takes nothing returns booleanif(not(IsUnitType(GetAttacker(),UNIT_TYPE_RANGED_ATTACKER)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetAttacker(),'I0DE')==true))then
return false
endifreturn trueendfunctionfunction Trig_Strely_3_Func007C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetAttacker(),'I0DE'))==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Strely_3_Actions takes nothing returns nothing
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),80.00,ATTACK_TYPE_PIERCE,DAMAGE_TYPE_NORMAL)call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetAttacker(),true))*0.40),ATTACK_TYPE_PIERCE,DAMAGE_TYPE_NORMAL)if(Trig_Strely_3_Func007C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetAttacker(),'I0DE'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetAttacker(),'I0DE'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetAttacker(),'I0DE'))-1))
endifendfunctionfunction InitTrig_Strely_3 takes nothing returns nothing
set gg_trg_Strely_3=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Strely_3,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Strely_3,Condition(function Trig_Strely_3_Conditions))call TriggerAddAction(gg_trg_Strely_3,function Trig_Strely_3_Actions)endfunctionfunction Trig_Strely_4_Conditions takes nothing returns booleanif(not(IsUnitType(GetAttacker(),UNIT_TYPE_RANGED_ATTACKER)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetAttacker(),'I0DF')==true))then
return false
endifreturn trueendfunctionfunction Trig_Strely_4_Func007C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetAttacker(),'I0DF'))==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Strely_4_Actions takes nothing returns nothing
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),150.00,ATTACK_TYPE_PIERCE,DAMAGE_TYPE_NORMAL)call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetAttacker(),true))*1.00),ATTACK_TYPE_PIERCE,DAMAGE_TYPE_NORMAL)if(Trig_Strely_4_Func007C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetAttacker(),'I0DF'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetAttacker(),'I0DF'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetAttacker(),'I0DF'))-1))
endifendfunctionfunction InitTrig_Strely_4 takes nothing returns nothing
set gg_trg_Strely_4=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Strely_4,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Strely_4,Condition(function Trig_Strely_4_Conditions))call TriggerAddAction(gg_trg_Strely_4,function Trig_Strely_4_Actions)endfunctionfunction Trig_Razum_basic_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0B0')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Razum_basic_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B0'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call ModifyHeroStat(bj_HEROSTAT_INT,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,2)endfunctionfunction InitTrig_Razum_basic takes nothing returns nothingset gg_trg_Razum_basic=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Razum_basic,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Razum_basic,Condition(function Trig_Razum_basic_Conditions))
call TriggerAddAction(gg_trg_Razum_basic,function Trig_Razum_basic_Actions)endfunctionfunction Trig_Sila_basic_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0AY')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sila_basic_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AY'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call ModifyHeroStat(bj_HEROSTAT_STR,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,2)endfunctionfunction InitTrig_Sila_basic takes nothing returns nothingset gg_trg_Sila_basic=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sila_basic,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Sila_basic,Condition(function Trig_Sila_basic_Conditions))call TriggerAddAction(gg_trg_Sila_basic,function Trig_Sila_basic_Actions)endfunctionfunction Trig_Lovcost_basic_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0AZ')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Lovcost_basic_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AZ'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call ModifyHeroStat(bj_HEROSTAT_AGI,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,2)endfunctionfunction InitTrig_Lovcost_basic takes nothing returns nothingset gg_trg_Lovcost_basic=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Lovcost_basic,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Lovcost_basic,Condition(function Trig_Lovcost_basic_Conditions))
call TriggerAddAction(gg_trg_Lovcost_basic,function Trig_Lovcost_basic_Actions)endfunctionfunction Trig_Topor_demona_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttacker(),'I0CD')==true))then
return false
endifif(not(GetUnitLifePercent(GetAttacker())<=25.00))thenreturn false
endifreturn trueendfunctionfunction Trig_Topor_demona_Actions takes nothing returns nothing
set udg_Rabdom_Skill=GetRandomInt(1,100)
call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Demon\\DemonBoltImpact\\DemonBoltImpact.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),150.00,ATTACK_TYPE_HERO,DAMAGE_TYPE_FORCE)
endfunctionfunction InitTrig_Topor_demona takes nothing returns nothing
set gg_trg_Topor_demona=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Topor_demona,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Topor_demona,Condition(function Trig_Topor_demona_Conditions))call TriggerAddAction(gg_trg_Topor_demona,function Trig_Topor_demona_Actions)endfunctionfunction Trig_Kamen_razuma_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rspl')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kamen_razuma_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rspl'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call ModifyHeroStat(bj_HEROSTAT_INT,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,1)endfunctionfunction InitTrig_Kamen_razuma takes nothing returns nothing
set gg_trg_Kamen_razuma=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kamen_razuma,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Kamen_razuma,Condition(function Trig_Kamen_razuma_Conditions))call TriggerAddAction(gg_trg_Kamen_razuma,function Trig_Kamen_razuma_Actions)endfunctionfunction Trig_Kamen_lovkosty_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rhe1')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kamen_lovkosty_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rhe1'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call ModifyHeroStat(bj_HEROSTAT_AGI,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,1)endfunctionfunction InitTrig_Kamen_lovkosty takes nothing returns nothingset gg_trg_Kamen_lovkosty=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kamen_lovkosty,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Kamen_lovkosty,Condition(function Trig_Kamen_lovkosty_Conditions))call TriggerAddAction(gg_trg_Kamen_lovkosty,function Trig_Kamen_lovkosty_Actions)endfunctionfunction Trig_Kamen_sily_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rre1')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kamen_sily_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rre1'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call ModifyHeroStat(bj_HEROSTAT_STR,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,1)endfunctionfunction InitTrig_Kamen_sily takes nothing returns nothingset gg_trg_Kamen_sily=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kamen_sily,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Kamen_sily,Condition(function Trig_Kamen_sily_Conditions))call TriggerAddAction(gg_trg_Kamen_sily,function Trig_Kamen_sily_Actions)endfunctionfunction Trig_Osveshenniy_sword_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())!='Utic'))then
return false
endifif(not(GetUnitTypeId(GetTriggerUnit())!='Nkjx'))then
return false
endifif(not(UnitHasItemOfTypeBJ(GetAttacker(),'I0C2')==true))then
return false
endifif(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_UNDEAD)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Osveshenniy_sword_Actions takes nothing returns nothingcall TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Human\\Heal\\HealTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(1*I2R(GetUnitLevel(GetAttackedUnitBJ()))),ATTACK_TYPE_MELEE,DAMAGE_TYPE_DIVINE)endfunctionfunction InitTrig_Osveshenniy_sword takes nothing returns nothingset gg_trg_Osveshenniy_sword=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Osveshenniy_sword,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Osveshenniy_sword,Condition(function Trig_Osveshenniy_sword_Conditions))
call TriggerAddAction(gg_trg_Osveshenniy_sword,function Trig_Osveshenniy_sword_Actions)endfunctionfunction Trig_Osveshenniy_sword_2_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())!='Utic'))then
return false
endifif(not(GetUnitTypeId(GetTriggerUnit())!='Nkjx'))then
return false
endifif(not(UnitHasItemOfTypeBJ(GetAttacker(),'I0C9')==true))then
return false
endifif(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_UNDEAD)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Osveshenniy_sword_2_Actions takes nothing returns nothingcall TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Human\\Heal\\HealTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(2.00*I2R(GetUnitLevel(GetAttackedUnitBJ()))),ATTACK_TYPE_MELEE,DAMAGE_TYPE_DIVINE)endfunctionfunction InitTrig_Osveshenniy_sword_2 takes nothing returns nothingset gg_trg_Osveshenniy_sword_2=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Osveshenniy_sword_2,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Osveshenniy_sword_2,Condition(function Trig_Osveshenniy_sword_2_Conditions))
call TriggerAddAction(gg_trg_Osveshenniy_sword_2,function Trig_Osveshenniy_sword_2_Actions)endfunctionfunction Trig_Oscvernitel_Skill_Func002C takes nothing returns booleanif((UnitHasBuffBJ(GetAttackedUnitBJ(),'Bssd')==true))thenreturn trueendifif((UnitHasBuffBJ(GetAttackedUnitBJ(),'Bssd')==true))thenreturn trueendifif((UnitHasBuffBJ(GetAttackedUnitBJ(),'Bpsd')==true))thenreturn trueendifif((UnitHasBuffBJ(GetAttackedUnitBJ(),'Bpoi')==true))thenreturn trueendifif((UnitHasBuffBJ(GetAttackedUnitBJ(),'Bspo')==true))thenreturn trueendifif((UnitHasBuffBJ(GetAttackedUnitBJ(),'B019')==true))thenreturn trueendifif((UnitHasBuffBJ(GetAttackedUnitBJ(),'B006')==true))thenreturn trueendifif((UnitHasBuffBJ(GetAttackedUnitBJ(),'Bssi')==true))thenreturn trueendifif((UnitHasBuffBJ(GetAttackedUnitBJ(),'Bpsi')==true))thenreturn trueendifreturn false
endfunctionfunction Trig_Oscvernitel_Skill_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetAttacker(),'I055')==true))then
return false
endifif(not Trig_Oscvernitel_Skill_Func002C())thenreturn false
endifreturn trueendfunctionfunction Trig_Oscvernitel_Skill_Func004C takes nothing returns booleanif(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())<=800.00))thenreturn false
endifreturn trueendfunctionfunction Trig_Oscvernitel_Skill_Actions takes nothing returns nothingcall TriggerSleepAction(1.00)if(Trig_Oscvernitel_Skill_Func004C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Objects\\Spawnmodels\\Human\\HumanLargeDeathExplode\\HumanLargeDeathExplode.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),99999.00,ATTACK_TYPE_PIERCE,DAMAGE_TYPE_POISON)else
endifendfunctionfunction InitTrig_Oscvernitel_Skill takes nothing returns nothingset gg_trg_Oscvernitel_Skill=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Oscvernitel_Skill,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Oscvernitel_Skill,Condition(function Trig_Oscvernitel_Skill_Conditions))
call TriggerAddAction(gg_trg_Oscvernitel_Skill,function Trig_Oscvernitel_Skill_Actions)endfunctionfunction Trig_Stavka_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'lmbr')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func007C takes nothing returns booleanif(not(udg_Stavka[1]==udg_Stavka[2]))thenreturn false
endifif(not(udg_Stavka[2]==udg_Stavka[3]))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func008Func003C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func008Func004C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func008Func005C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func008Func006C takes nothing returns booleanif(not(udg_Random==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func008Func007C takes nothing returns booleanif(not(udg_Random==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func008Func008C takes nothing returns booleanif(not(udg_Random==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func008C takes nothing returns booleanif(not(udg_Stavka[1]==0))thenreturn false
endifif(not(udg_Stavka[2]==0))thenreturn false
endifif(not(udg_Stavka[3]==0))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func009Func003C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func009Func004C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func009Func005C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func009Func006C takes nothing returns booleanif(not(udg_Random==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func009Func007C takes nothing returns booleanif(not(udg_Random==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func009Func008C takes nothing returns booleanif(not(udg_Random==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func009Func009C takes nothing returns booleanif(not(udg_Random==7))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func009Func010C takes nothing returns booleanif(not(udg_Random==8))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func009C takes nothing returns booleanif(not(udg_Stavka[1]==1))thenreturn false
endifif(not(udg_Stavka[2]==1))thenreturn false
endifif(not(udg_Stavka[3]==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func010Func003C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func010Func004C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func010Func005C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func010Func006C takes nothing returns booleanif(not(udg_Random==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func010Func007C takes nothing returns booleanif(not(udg_Random==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func010Func008C takes nothing returns booleanif(not(udg_Random==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func010Func009C takes nothing returns booleanif(not(udg_Random==7))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func010Func010C takes nothing returns booleanif(not(udg_Random==8))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func010C takes nothing returns booleanif(not(udg_Stavka[1]==2))thenreturn false
endifif(not(udg_Stavka[2]==2))thenreturn false
endifif(not(udg_Stavka[3]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func011Func003C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func011Func004C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func011Func005C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func011Func006C takes nothing returns booleanif(not(udg_Random==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func011Func007C takes nothing returns booleanif(not(udg_Random==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func011Func008C takes nothing returns booleanif(not(udg_Random==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func011Func009C takes nothing returns booleanif(not(udg_Random==7))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func011Func010C takes nothing returns booleanif(not(udg_Random==8))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func011C takes nothing returns booleanif(not(udg_Stavka[1]==3))thenreturn false
endifif(not(udg_Stavka[2]==3))thenreturn false
endifif(not(udg_Stavka[3]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func012Func003C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func012Func004C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func012Func005C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func012Func006C takes nothing returns booleanif(not(udg_Random==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func012Func007C takes nothing returns booleanif(not(udg_Random==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func012Func008C takes nothing returns booleanif(not(udg_Random==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func012Func009C takes nothing returns booleanif(not(udg_Random==7))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func012Func010C takes nothing returns booleanif(not(udg_Random==8))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func012C takes nothing returns booleanif(not(udg_Stavka[1]==4))thenreturn false
endifif(not(udg_Stavka[2]==4))thenreturn false
endifif(not(udg_Stavka[3]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func013Func003C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func013Func004C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func013Func005C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func013Func006C takes nothing returns booleanif(not(udg_Random==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func013Func007C takes nothing returns booleanif(not(udg_Random==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func013Func008C takes nothing returns booleanif(not(udg_Random==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func013Func009C takes nothing returns booleanif(not(udg_Random==7))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func013Func010C takes nothing returns booleanif(not(udg_Random==8))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func013C takes nothing returns booleanif(not(udg_Stavka[1]==5))thenreturn false
endifif(not(udg_Stavka[2]==5))thenreturn false
endifif(not(udg_Stavka[3]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func014Func003C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func014Func004C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func014Func005C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func014Func006C takes nothing returns booleanif(not(udg_Random==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func014Func007C takes nothing returns booleanif(not(udg_Random==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func014Func008C takes nothing returns booleanif(not(udg_Random==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func014Func009C takes nothing returns booleanif(not(udg_Random==7))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func014Func010C takes nothing returns booleanif(not(udg_Random==8))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func014C takes nothing returns booleanif(not(udg_Stavka[1]==6))thenreturn false
endifif(not(udg_Stavka[2]==6))thenreturn false
endifif(not(udg_Stavka[3]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func015Func003C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func015Func004C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func015Func005C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func015Func006C takes nothing returns booleanif(not(udg_Random==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func015Func007C takes nothing returns booleanif(not(udg_Random==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func015Func008C takes nothing returns booleanif(not(udg_Random==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func015Func009C takes nothing returns booleanif(not(udg_Random==7))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func015Func010C takes nothing returns booleanif(not(udg_Random==8))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func015C takes nothing returns booleanif(not(udg_Stavka[1]==7))thenreturn false
endifif(not(udg_Stavka[2]==7))thenreturn false
endifif(not(udg_Stavka[3]==7))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func016Func003C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func016Func004C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func016Func005C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func016Func006C takes nothing returns booleanif(not(udg_Random==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func016Func007C takes nothing returns booleanif(not(udg_Random==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func016Func008C takes nothing returns booleanif(not(udg_Random==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func016Func009C takes nothing returns booleanif(not(udg_Random==7))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func016Func010C takes nothing returns booleanif(not(udg_Random==8))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func016C takes nothing returns booleanif(not(udg_Stavka[1]==8))thenreturn false
endifif(not(udg_Stavka[2]==8))thenreturn false
endifif(not(udg_Stavka[3]==8))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Func017C takes nothing returns booleanif(not(udg_Stavka[1]==9))thenreturn false
endifif(not(udg_Stavka[2]==9))thenreturn false
endifif(not(udg_Stavka[3]==9))thenreturn false
endifreturn trueendfunctionfunction Trig_Stavka_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'lmbr'))set udg_Stavka[1]=GetRandomInt(0,9)set udg_Stavka[2]=GetRandomInt(0,9)set udg_Stavka[3]=GetRandomInt(0,9)call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Выпадает:|r"+(I2S(udg_Stavka[1])+(I2S(udg_Stavka[2])+I2S(udg_Stavka[3])))))if(Trig_Stavka_Func007C())thenelse
call DisplayTextToForce(GetPlayersAll(),"|c00FF0000Вы проиграли.|r")returnendifif(Trig_Stavka_Func008C())thencall DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Поздравляю вы выйграли:|r"+"|c0090ee90  Эликсир|r"))set udg_Random=GetRandomInt(1,6)
if(Trig_Stavka_Func008Func003C())thencall UnitAddItemByIdSwapped('pghe',GetTriggerUnit())
else
endifif(Trig_Stavka_Func008Func004C())thencall UnitAddItemByIdSwapped('hslv',GetTriggerUnit())
else
endifif(Trig_Stavka_Func008Func005C())thencall UnitAddItemByIdSwapped('pclr',GetTriggerUnit())
else
endifif(Trig_Stavka_Func008Func006C())thencall UnitAddItemByIdSwapped('pman',GetTriggerUnit())
else
endifif(Trig_Stavka_Func008Func007C())thencall UnitAddItemByIdSwapped('tgrh',GetTriggerUnit())
else
endifif(Trig_Stavka_Func008Func008C())thencall UnitAddItemByIdSwapped('spro',GetTriggerUnit())
else
endifelse
endifif(Trig_Stavka_Func009C())thencall DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Поздравляю вы выйграли:|r"+"|c0090ee90  Улучшение|r"))set udg_Random=GetRandomInt(1,8)
if(Trig_Stavka_Func009Func003C())thencall UnitAddItemByIdSwapped('gomn',GetTriggerUnit())
else
endifif(Trig_Stavka_Func009Func004C())thencall UnitAddItemByIdSwapped('gfor',GetTriggerUnit())
else
endifif(Trig_Stavka_Func009Func005C())thencall UnitAddItemByIdSwapped('guvi',GetTriggerUnit())
else
endifif(Trig_Stavka_Func009Func006C())thencall UnitAddItemByIdSwapped('tpow',GetTriggerUnit())
else
endifif(Trig_Stavka_Func009Func007C())thencall UnitAddItemByIdSwapped('I01A',GetTriggerUnit())
else
endifif(Trig_Stavka_Func009Func008C())thencall UnitAddItemByIdSwapped('I01B',GetTriggerUnit())
else
endifif(Trig_Stavka_Func009Func009C())thencall UnitAddItemByIdSwapped('I01C',GetTriggerUnit())
else
endifif(Trig_Stavka_Func009Func010C())thencall UnitAddItemByIdSwapped('I01D',GetTriggerUnit())
else
endifelse
endifif(Trig_Stavka_Func010C())thencall DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Поздравляю вы выйграли:|r"+"|c0090ee90  Обычный предмет|r"))set udg_Random=GetRandomInt(1,8)
if(Trig_Stavka_Func010Func003C())thencall UnitAddItemByIdSwapped('rat9',GetTriggerUnit())
else
endifif(Trig_Stavka_Func010Func004C())thencall UnitAddItemByIdSwapped('cnob',GetTriggerUnit())
else
endifif(Trig_Stavka_Func010Func005C())thencall UnitAddItemByIdSwapped('gcel',GetTriggerUnit())
else
endifif(Trig_Stavka_Func010Func006C())thencall UnitAddItemByIdSwapped('rde0',GetTriggerUnit())
else
endifif(Trig_Stavka_Func010Func007C())thencall UnitAddItemByIdSwapped('stwa',GetTriggerUnit())
else
endifif(Trig_Stavka_Func010Func008C())thencall UnitAddItemByIdSwapped('ram3',GetTriggerUnit())
else
endifif(Trig_Stavka_Func010Func009C())thencall UnitAddItemByIdSwapped('silk',GetTriggerUnit())
else
endifif(Trig_Stavka_Func010Func010C())thencall UnitAddItemByIdSwapped('rugt',GetTriggerUnit())
else
endifelse
endifif(Trig_Stavka_Func011C())thencall DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Поздравляю вы выйграли:|r"+"|c0090ee90  Улучшенный предмет|r"))
set udg_Random=GetRandomInt(1,8)
if(Trig_Stavka_Func011Func003C())thencall UnitAddItemByIdSwapped('rat6',GetTriggerUnit())
else
endifif(Trig_Stavka_Func011Func004C())thencall UnitAddItemByIdSwapped('tfar',GetTriggerUnit())
else
endifif(Trig_Stavka_Func011Func005C())thencall UnitAddItemByIdSwapped('I02H',GetTriggerUnit())
else
endifif(Trig_Stavka_Func011Func006C())thencall UnitAddItemByIdSwapped('rde1',GetTriggerUnit())
else
endifif(Trig_Stavka_Func011Func007C())thencall UnitAddItemByIdSwapped('I02R',GetTriggerUnit())
else
endifif(Trig_Stavka_Func011Func008C())thencall UnitAddItemByIdSwapped('sprn',GetTriggerUnit())
else
endifif(Trig_Stavka_Func011Func009C())thencall UnitAddItemByIdSwapped('I02C',GetTriggerUnit())
else
endifif(Trig_Stavka_Func011Func010C())thencall UnitAddItemByIdSwapped('I027',GetTriggerUnit())
else
endifelse
endifif(Trig_Stavka_Func012C())thencall DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Поздравляю вы выйграли:|r"+"|c0090ee90  Улучшенный предмет|r"))
set udg_Random=GetRandomInt(1,8)
if(Trig_Stavka_Func012Func003C())thencall UnitAddItemByIdSwapped('rag1',GetTriggerUnit())
else
endifif(Trig_Stavka_Func012Func004C())thencall UnitAddItemByIdSwapped('arsh',GetTriggerUnit())
else
endifif(Trig_Stavka_Func012Func005C())thencall UnitAddItemByIdSwapped('rump',GetTriggerUnit())
else
endifif(Trig_Stavka_Func012Func006C())thencall UnitAddItemByIdSwapped('I02N',GetTriggerUnit())
else
endifif(Trig_Stavka_Func012Func007C())thencall UnitAddItemByIdSwapped('rin1',GetTriggerUnit())
else
endifif(Trig_Stavka_Func012Func008C())thencall UnitAddItemByIdSwapped('bfhr',GetTriggerUnit())
else
endifif(Trig_Stavka_Func012Func009C())thencall UnitAddItemByIdSwapped('I01K',GetTriggerUnit())
else
endifif(Trig_Stavka_Func012Func010C())thencall UnitAddItemByIdSwapped('I02X',GetTriggerUnit())
else
endifelse
endifif(Trig_Stavka_Func013C())thencall DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Поздравляю вы выйграли:|r"+"|c0090ee90  Улучшенный предмет|r"))
set udg_Random=GetRandomInt(1,8)
if(Trig_Stavka_Func013Func003C())thencall UnitAddItemByIdSwapped('ram4',GetTriggerUnit())
else
endifif(Trig_Stavka_Func013Func004C())thencall UnitAddItemByIdSwapped('fgrd',GetTriggerUnit())
else
endifif(Trig_Stavka_Func013Func005C())thencall UnitAddItemByIdSwapped('sor4',GetTriggerUnit())
else
endifif(Trig_Stavka_Func013Func006C())thencall UnitAddItemByIdSwapped('I038',GetTriggerUnit())
else
endifif(Trig_Stavka_Func013Func007C())thencall UnitAddItemByIdSwapped('ckng',GetTriggerUnit())
else
endifif(Trig_Stavka_Func013Func008C())thencall UnitAddItemByIdSwapped('shhn',GetTriggerUnit())
else
endifif(Trig_Stavka_Func013Func009C())thencall UnitAddItemByIdSwapped('spre',GetTriggerUnit())
else
endifif(Trig_Stavka_Func013Func010C())thencall UnitAddItemByIdSwapped('I01F',GetTriggerUnit())
else
endifelse
endifif(Trig_Stavka_Func014C())thencall DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Поздравляю вы выйграли:|r"+"|c0090ee90  Улучшенный предмет|r"))
set udg_Random=GetRandomInt(1,8)
if(Trig_Stavka_Func014Func003C())thencall UnitAddItemByIdSwapped('gsou',GetTriggerUnit())
else
endifif(Trig_Stavka_Func014Func004C())thencall UnitAddItemByIdSwapped('wneg',GetTriggerUnit())
else
endifif(Trig_Stavka_Func014Func005C())thencall UnitAddItemByIdSwapped('bgst',GetTriggerUnit())
else
endifif(Trig_Stavka_Func014Func006C())thencall UnitAddItemByIdSwapped('sfog',GetTriggerUnit())
else
endifif(Trig_Stavka_Func014Func007C())thencall UnitAddItemByIdSwapped('ssil',GetTriggerUnit())
else
endifif(Trig_Stavka_Func014Func008C())thencall UnitAddItemByIdSwapped('hcun',GetTriggerUnit())
else
endifif(Trig_Stavka_Func014Func009C())thencall UnitAddItemByIdSwapped('frgd',GetTriggerUnit())
else
endifif(Trig_Stavka_Func014Func010C())thencall UnitAddItemByIdSwapped('kpin',GetTriggerUnit())
else
endifelse
endifif(Trig_Stavka_Func015C())thencall DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Поздравляю вы выйграли:|r"+"|c0090ee90  Уникальный предмет|r"))
set udg_Random=GetRandomInt(1,8)
if(Trig_Stavka_Func015Func003C())thencall UnitAddItemByIdSwapped('I04A',GetTriggerUnit())
else
endifif(Trig_Stavka_Func015Func004C())thencall UnitAddItemByIdSwapped('I05Z',GetTriggerUnit())
else
endifif(Trig_Stavka_Func015Func005C())thencall UnitAddItemByIdSwapped('I04E',GetTriggerUnit())
else
endifif(Trig_Stavka_Func015Func006C())thencall UnitAddItemByIdSwapped('I05T',GetTriggerUnit())
else
endifif(Trig_Stavka_Func015Func007C())thencall UnitAddItemByIdSwapped('I05V',GetTriggerUnit())
else
endifif(Trig_Stavka_Func015Func008C())thencall UnitAddItemByIdSwapped('I05X',GetTriggerUnit())
else
endifif(Trig_Stavka_Func015Func009C())thencall UnitAddItemByIdSwapped('I05R',GetTriggerUnit())
else
endifif(Trig_Stavka_Func015Func010C())thencall UnitAddItemByIdSwapped('I04C',GetTriggerUnit())
else
endifelse
endifif(Trig_Stavka_Func016C())thencall DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Поздравляю вы выйграли:|r"+"|c0090ee90  Легендарный предмет|r"))set udg_Random=GetRandomInt(1,8)
if(Trig_Stavka_Func016Func003C())thencall UnitAddItemByIdSwapped('I01V',GetTriggerUnit())
else
endifif(Trig_Stavka_Func016Func004C())thencall UnitAddItemByIdSwapped('I00G',GetTriggerUnit())
else
endifif(Trig_Stavka_Func016Func005C())thencall UnitAddItemByIdSwapped('I00B',GetTriggerUnit())
else
endifif(Trig_Stavka_Func016Func006C())thencall UnitAddItemByIdSwapped('I00O',GetTriggerUnit())
else
endifif(Trig_Stavka_Func016Func007C())thencall UnitAddItemByIdSwapped('I05D',GetTriggerUnit())
else
endifif(Trig_Stavka_Func016Func008C())thencall UnitAddItemByIdSwapped('I05F',GetTriggerUnit())
else
endifif(Trig_Stavka_Func016Func009C())thencall UnitAddItemByIdSwapped('I04Q',GetTriggerUnit())
else
endifif(Trig_Stavka_Func016Func010C())thencall UnitAddItemByIdSwapped('I04Z',GetTriggerUnit())
else
endifelse
endifif(Trig_Stavka_Func017C())thencall DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Поздравляю вы выйграли:|r"+"|c0090ee90  Джек Пот|r"))
call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Вы получаете:|r"+"|c0090ee90  100 000 Золота|r"))call AdjustPlayerStateBJ(100000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)else
endifendfunctionfunction InitTrig_Stavka takes nothing returns nothingset gg_trg_Stavka=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Stavka,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stavka,Condition(function Trig_Stavka_Conditions))call TriggerAddAction(gg_trg_Stavka,function Trig_Stavka_Actions)endfunctionfunction Trig_Otravlennie_kingaly_2_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetAttacker(),'I010')==true))then
return false
endifreturn trueendfunctionfunction Trig_Otravlennie_kingaly_2_Func002Func003C takes nothing returns booleanif(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Otravlennie_kingaly_2_Func002C takes nothing returns booleanif(not(udg_Rabdom_Skill<=6))then
return false
endifreturn trueendfunctionfunction Trig_Otravlennie_kingaly_2_Actions takes nothing returns nothingset udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Otravlennie_kingaly_2_Func002C())thencall DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")if(Trig_Otravlennie_kingaly_2_Func002Func003C())then
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),300.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_POISON)else
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetAttackedUnitBJ())*0.03),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_POISON)
endifcall TriggerSleepAction(3.00)call EnableTrigger(GetTriggeringTrigger())else
endifcall TriggerSleepAction(1.00)endfunctionfunction InitTrig_Otravlennie_kingaly_2 takes nothing returns nothingset gg_trg_Otravlennie_kingaly_2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Otravlennie_kingaly_2,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Otravlennie_kingaly_2,Condition(function Trig_Otravlennie_kingaly_2_Conditions))
call TriggerAddAction(gg_trg_Otravlennie_kingaly_2,function Trig_Otravlennie_kingaly_2_Actions)endfunctionfunction Trig_Kingaly_vozmezdiya_skill_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttacker(),'mcri')==true))then
return false
endifreturn trueendfunctionfunction Trig_Kingaly_vozmezdiya_skill_Func002Func003C takes nothing returns boolean
if(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kingaly_vozmezdiya_skill_Func002C takes nothing returns booleanif(not(udg_Rabdom_Skill<=6))then
return false
endifreturn trueendfunctionfunction Trig_Kingaly_vozmezdiya_skill_Actions takes nothing returns nothing
set udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Kingaly_vozmezdiya_skill_Func002C())then
call DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")if(Trig_Kingaly_vozmezdiya_skill_Func002Func003C())thencall UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),450.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_POISON)else
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetAttackedUnitBJ())*0.04),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_POISON)
endifcall TriggerSleepAction(3.00)call EnableTrigger(GetTriggeringTrigger())else
endifcall TriggerSleepAction(1.00)endfunctionfunction InitTrig_Kingaly_vozmezdiya_skill takes nothing returns nothing
set gg_trg_Kingaly_vozmezdiya_skill=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kingaly_vozmezdiya_skill,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Kingaly_vozmezdiya_skill,Condition(function Trig_Kingaly_vozmezdiya_skill_Conditions))call TriggerAddAction(gg_trg_Kingaly_vozmezdiya_skill,function Trig_Kingaly_vozmezdiya_skill_Actions)endfunctionfunction Trig_Kolco_lda_active_Conditions takes nothing returns booleanif(not(GetSpellAbilityId()=='A06C'))then
return false
endifreturn trueendfunctionfunction Trig_Kolco_lda_active_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'u00A',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),bj_UNIT_FACING)
call IssueImmediateOrder(GetLastCreatedUnit(),"thunderclap")
endfunctionfunction InitTrig_Kolco_lda_active takes nothing returns nothing
set gg_trg_Kolco_lda_active=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kolco_lda_active,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddCondition(gg_trg_Kolco_lda_active,Condition(function Trig_Kolco_lda_active_Conditions))call TriggerAddAction(gg_trg_Kolco_lda_active,function Trig_Kolco_lda_active_Actions)endfunctionfunction Trig_Sfera_molnii_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttacker(),'I00N')==true))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_molnii_Func003C takes nothing returns booleanif(not(udg_Rabdom_Skill<=3))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_molnii_Actions takes nothing returns nothing
set udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Sfera_molnii_Func003C())then
call DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'u00C',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttacker()),bj_UNIT_FACING)
call IssueTargetOrder(GetLastCreatedUnit(),"forkedlightning",GetAttackedUnitBJ())call TriggerSleepAction(4.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_Sfera_molnii takes nothing returns nothing
set gg_trg_Sfera_molnii=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sfera_molnii,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sfera_molnii,Condition(function Trig_Sfera_molnii_Conditions))call TriggerAddAction(gg_trg_Sfera_molnii,function Trig_Sfera_molnii_Actions)endfunctionfunction Trig_Sfera_molot_groma_Func001C takes nothing returns booleanif((UnitHasItemOfTypeBJ(GetAttacker(),'wneu')==true))thenreturn trueendifif((UnitHasItemOfTypeBJ(GetAttacker(),'I009')==true))thenreturn trueendifreturn false
endfunctionfunction Trig_Sfera_molot_groma_Conditions takes nothing returns boolean
if(not Trig_Sfera_molot_groma_Func001C())thenreturn false
endifreturn trueendfunctionfunction Trig_Sfera_molot_groma_Func003C takes nothing returns booleanif(not(udg_Rabdom_Skill<=4))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_molot_groma_Actions takes nothing returns nothingset udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Sfera_molot_groma_Func003C())thencall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'u00H',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttacker()),bj_UNIT_FACING)
call IssueTargetOrder(GetLastCreatedUnit(),"forkedlightning",GetAttackedUnitBJ())call TriggerSleepAction(4.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_Sfera_molot_groma takes nothing returns nothingset gg_trg_Sfera_molot_groma=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Sfera_molot_groma,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sfera_molot_groma,Condition(function Trig_Sfera_molot_groma_Conditions))
call TriggerAddAction(gg_trg_Sfera_molot_groma,function Trig_Sfera_molot_groma_Actions)endfunctionfunction Trig_Shit_groma_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I007')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_groma_Func003C takes nothing returns booleanif(not(udg_Rabdom_Skill<=2))then
return false
endifreturn trueendfunctionfunction Trig_Shit_groma_Actions takes nothing returns nothingset udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Shit_groma_Func003C())thencall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'u00H',GetOwningPlayer(GetAttackedUnitBJ()),GetUnitLoc(GetAttackedUnitBJ()),bj_UNIT_FACING)
call IssueTargetOrder(GetLastCreatedUnit(),"chainlightning",GetAttacker())call TriggerSleepAction(8.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_Shit_groma takes nothing returns nothingset gg_trg_Shit_groma=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Shit_groma,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Shit_groma,Condition(function Trig_Shit_groma_Conditions))call TriggerAddAction(gg_trg_Shit_groma,function Trig_Shit_groma_Actions)endfunctionfunction Trig_dospeh_serafima_Skill_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I0BG')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_dospeh_serafima_Skill_Func003C takes nothing returns booleanif(not(udg_Rabdom_Skill<=6))then
return false
endifreturn trueendfunctionfunction Trig_dospeh_serafima_Skill_Actions takes nothing returns nothingset udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_dospeh_serafima_Skill_Func003C())thencall DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Items\\AIre\\AIreTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitLifeBJ(GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())+400.00))call CreateNUnitsAtLoc(1,'u00H',GetOwningPlayer(GetAttackedUnitBJ()),GetUnitLoc(GetAttackedUnitBJ()),bj_UNIT_FACING)
call IssueTargetOrder(GetLastCreatedUnit(),"chainlightning",GetAttacker())call TriggerSleepAction(3.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_dospeh_serafima_Skill takes nothing returns nothingset gg_trg_dospeh_serafima_Skill=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_dospeh_serafima_Skill,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_dospeh_serafima_Skill,Condition(function Trig_dospeh_serafima_Skill_Conditions))
call TriggerAddAction(gg_trg_dospeh_serafima_Skill,function Trig_dospeh_serafima_Skill_Actions)endfunctionfunction Trig_Sfera_Yada_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttacker(),'I004')==true))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_Yada_Func003C takes nothing returns booleanif(not(udg_Rabdom_Skill<=9))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_Yada_Actions takes nothing returns nothingset udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Sfera_Yada_Func003C())thencall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'u00D',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttacker()),bj_UNIT_FACING)
call IssueTargetOrder(GetLastCreatedUnit(),"shadowstrike",GetAttackedUnitBJ())call TriggerSleepAction(6.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_Sfera_Yada takes nothing returns nothingset gg_trg_Sfera_Yada=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sfera_Yada,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Sfera_Yada,Condition(function Trig_Sfera_Yada_Conditions))call TriggerAddAction(gg_trg_Sfera_Yada,function Trig_Sfera_Yada_Actions)endfunctionfunction Trig_Trezubec_smerty_sfera_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetAttacker(),'I00V')==true))then
return false
endifreturn trueendfunctionfunction Trig_Trezubec_smerty_sfera_Func003C takes nothing returns booleanif(not(udg_Rabdom_Skill<=8))then
return false
endifreturn trueendfunctionfunction Trig_Trezubec_smerty_sfera_Actions takes nothing returns nothingset udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Trezubec_smerty_sfera_Func003C())thencall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'u00I',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttacker()),bj_UNIT_FACING)
call IssueTargetOrder(GetLastCreatedUnit(),"shadowstrike",GetAttackedUnitBJ())call TriggerSleepAction(6.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_Trezubec_smerty_sfera takes nothing returns nothingset gg_trg_Trezubec_smerty_sfera=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Trezubec_smerty_sfera,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Trezubec_smerty_sfera,Condition(function Trig_Trezubec_smerty_sfera_Conditions))
call TriggerAddAction(gg_trg_Trezubec_smerty_sfera,function Trig_Trezubec_smerty_sfera_Actions)endfunctionfunction Trig_Sfera_Zamedleniya_Func001C takes nothing returns booleanif((UnitHasItemOfTypeBJ(GetAttacker(),'I00T')==true))thenreturn trueendifif((UnitHasItemOfTypeBJ(GetAttacker(),'I08K')==true))thenreturn trueendifreturn false
endfunctionfunction Trig_Sfera_Zamedleniya_Conditions takes nothing returns boolean
if(not Trig_Sfera_Zamedleniya_Func001C())thenreturn false
endifreturn trueendfunctionfunction Trig_Sfera_Zamedleniya_Func003C takes nothing returns booleanif(not(udg_Rabdom_Skill<=5))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_Zamedleniya_Actions takes nothing returns nothingset udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Sfera_Zamedleniya_Func003C())thencall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'u00E',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttacker()),bj_UNIT_FACING)
call IssueTargetOrder(GetLastCreatedUnit(),"slow",GetAttackedUnitBJ())call TriggerSleepAction(5.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_Sfera_Zamedleniya takes nothing returns nothingset gg_trg_Sfera_Zamedleniya=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Sfera_Zamedleniya,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sfera_Zamedleniya,Condition(function Trig_Sfera_Zamedleniya_Conditions))
call TriggerAddAction(gg_trg_Sfera_Zamedleniya,function Trig_Sfera_Zamedleniya_Actions)endfunctionfunction Trig_Sfera_tmy_Func002C takes nothing returns booleanif((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I00Y')==true))thenreturn trueendifif((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I014')==true))thenreturn trueendifreturn false
endfunctionfunction Trig_Sfera_tmy_Conditions takes nothing returns boolean
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_MECHANICAL)==false))thenreturn false
endifif(not Trig_Sfera_tmy_Func002C())thenreturn false
endifreturn trueendfunctionfunction Trig_Sfera_tmy_Func004Func005C takes nothing returns booleanif(not(udg_Rabdom_Skill==1))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_tmy_Func004Func006C takes nothing returns booleanif(not(udg_Rabdom_Skill==2))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_tmy_Func004Func007C takes nothing returns booleanif(not(udg_Rabdom_Skill==3))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_tmy_Func004C takes nothing returns booleanif(not(udg_Rabdom_Skill<=2))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_tmy_Actions takes nothing returns nothingset udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Sfera_tmy_Func004C())thencall DisableTrigger(GetTriggeringTrigger())set udg_Rabdom_Skill=GetRandomInt(1,3)call AddSpecialEffectLocBJ(GetUnitLoc(GetDyingUnit()),"Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl")if(Trig_Sfera_tmy_Func004Func005C())then
call CreateNUnitsAtLoc(1,'uske',GetOwningPlayer(GetKillingUnitBJ()),GetUnitLoc(GetDyingUnit()),bj_UNIT_FACING)else
endifif(Trig_Sfera_tmy_Func004Func006C())then
call CreateNUnitsAtLoc(1,'uskm',GetOwningPlayer(GetKillingUnitBJ()),GetUnitLoc(GetDyingUnit()),bj_UNIT_FACING)else
endifif(Trig_Sfera_tmy_Func004Func007C())then
call CreateNUnitsAtLoc(1,'nskm',GetOwningPlayer(GetKillingUnitBJ()),GetUnitLoc(GetDyingUnit()),bj_UNIT_FACING)else
endifcall TriggerSleepAction(4.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_Sfera_tmy takes nothing returns nothingset gg_trg_Sfera_tmy=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Sfera_tmy,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_Sfera_tmy,Condition(function Trig_Sfera_tmy_Conditions))
call TriggerAddAction(gg_trg_Sfera_tmy,function Trig_Sfera_tmy_Actions)endfunctionfunction Trig_Sfera_Prokliatiya_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetAttacker(),'I00C')==true))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_Prokliatiya_Func003C takes nothing returns booleanif(not(udg_Rabdom_Skill<=4))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_Prokliatiya_Actions takes nothing returns nothingset udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Sfera_Prokliatiya_Func003C())thencall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'u00F',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttacker()),bj_UNIT_FACING)
call IssueTargetOrder(GetLastCreatedUnit(),"cripple",GetAttackedUnitBJ())call TriggerSleepAction(8.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_Sfera_Prokliatiya takes nothing returns nothingset gg_trg_Sfera_Prokliatiya=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Sfera_Prokliatiya,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sfera_Prokliatiya,Condition(function Trig_Sfera_Prokliatiya_Conditions))
call TriggerAddAction(gg_trg_Sfera_Prokliatiya,function Trig_Sfera_Prokliatiya_Actions)endfunctionfunction Trig_Sfera_Prokliatiya_Shit_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I04X')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sfera_Prokliatiya_Shit_Func003C takes nothing returns booleanif(not(udg_Rabdom_Skill<=8))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_Prokliatiya_Shit_Actions takes nothing returns nothingset udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Sfera_Prokliatiya_Shit_Func003C())thencall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'u00F',GetOwningPlayer(GetAttackedUnitBJ()),GetUnitLoc(GetAttackedUnitBJ()),bj_UNIT_FACING)
call IssueTargetOrder(GetLastCreatedUnit(),"cripple",GetAttacker())call TriggerSleepAction(8.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_Sfera_Prokliatiya_Shit takes nothing returns nothingset gg_trg_Sfera_Prokliatiya_Shit=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sfera_Prokliatiya_Shit,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Sfera_Prokliatiya_Shit,Condition(function Trig_Sfera_Prokliatiya_Shit_Conditions))call TriggerAddAction(gg_trg_Sfera_Prokliatiya_Shit,function Trig_Sfera_Prokliatiya_Shit_Actions)endfunctionfunction Trig_Sfera_prokliatiya_sekira_Func001C takes nothing returns booleanif((UnitHasItemOfTypeBJ(GetAttacker(),'engs')==true))thenreturn trueendifif((UnitHasItemOfTypeBJ(GetAttacker(),'I0BC')==true))thenreturn trueendifreturn false
endfunctionfunction Trig_Sfera_prokliatiya_sekira_Conditions takes nothing returns booleanif(not Trig_Sfera_prokliatiya_sekira_Func001C())then
return false
endifreturn trueendfunctionfunction Trig_Sfera_prokliatiya_sekira_Func003C takes nothing returns booleanif(not(udg_Rabdom_Skill<=5))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_prokliatiya_sekira_Actions takes nothing returns nothing
set udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Sfera_prokliatiya_sekira_Func003C())then
call DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'u00F',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttacker()),bj_UNIT_FACING)
call IssueTargetOrder(GetLastCreatedUnit(),"faeriefire",GetAttackedUnitBJ())
call TriggerSleepAction(8.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_Sfera_prokliatiya_sekira takes nothing returns nothing
set gg_trg_Sfera_prokliatiya_sekira=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sfera_prokliatiya_sekira,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sfera_prokliatiya_sekira,Condition(function Trig_Sfera_prokliatiya_sekira_Conditions))call TriggerAddAction(gg_trg_Sfera_prokliatiya_sekira,function Trig_Sfera_prokliatiya_sekira_Actions)endfunctionfunction Trig_Sfera_sveta_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttacker(),'I000')==true))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_sveta_Func003Func002C takes nothing returns booleanif(not(IsUnitType(GetAttacker(),UNIT_TYPE_UNDEAD)==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Sfera_sveta_Func003C takes nothing returns boolean
if(not(udg_Rabdom_Skill<=5))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_sveta_Actions takes nothing returns nothingset udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Sfera_sveta_Func003C())thencall DisableTrigger(GetTriggeringTrigger())if(Trig_Sfera_sveta_Func003Func002C())thencall CreateNUnitsAtLoc(1,'u00G',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttacker()),bj_UNIT_FACING)
call IssueTargetOrder(GetLastCreatedUnit(),"holybolt",GetAttacker())
else
call CreateNUnitsAtLoc(1,'u00G',GetOwningPlayer(GetAttackedUnitBJ()),GetUnitLoc(GetAttacker()),bj_UNIT_FACING)call IssueTargetOrder(GetLastCreatedUnit(),"holybolt",GetAttacker())
endifcall TriggerSleepAction(5.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_Sfera_sveta takes nothing returns nothingset gg_trg_Sfera_sveta=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sfera_sveta,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sfera_sveta,Condition(function Trig_Sfera_sveta_Conditions))
call TriggerAddAction(gg_trg_Sfera_sveta,function Trig_Sfera_sveta_Actions)endfunctionfunction Trig_Sfera_sveta_Dospeh_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'gopr')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sfera_sveta_Dospeh_Func003Func002C takes nothing returns booleanif(not(IsUnitType(GetAttacker(),UNIT_TYPE_UNDEAD)==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Sfera_sveta_Dospeh_Func003C takes nothing returns booleanif(not(udg_Rabdom_Skill<=5))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_sveta_Dospeh_Actions takes nothing returns nothingset udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Sfera_sveta_Dospeh_Func003C())thencall DisableTrigger(GetTriggeringTrigger())if(Trig_Sfera_sveta_Dospeh_Func003Func002C())thencall CreateNUnitsAtLoc(1,'u00G',GetOwningPlayer(GetAttackedUnitBJ()),GetUnitLoc(GetAttackedUnitBJ()),bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A05F',GetLastCreatedUnit(),2)call IssueTargetOrder(GetLastCreatedUnit(),"holybolt",GetAttackedUnitBJ())else
call CreateNUnitsAtLoc(1,'u00G',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttacker()),bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A05F',GetLastCreatedUnit(),2)call IssueTargetOrder(GetLastCreatedUnit(),"holybolt",GetAttackedUnitBJ())endifcall TriggerSleepAction(5.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_Sfera_sveta_Dospeh takes nothing returns nothingset gg_trg_Sfera_sveta_Dospeh=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sfera_sveta_Dospeh,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Sfera_sveta_Dospeh,Condition(function Trig_Sfera_sveta_Dospeh_Conditions))call TriggerAddAction(gg_trg_Sfera_sveta_Dospeh,function Trig_Sfera_sveta_Dospeh_Actions)endfunctionfunction Trig_Sfera_dospeh_bessmertnogo_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I04J')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sfera_dospeh_bessmertnogo_Func003C takes nothing returns booleanif(not(udg_Rabdom_Skill<=5))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_dospeh_bessmertnogo_Actions takes nothing returns nothingset udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Sfera_dospeh_bessmertnogo_Func003C())thencall DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Items\\AIre\\AIreTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitLifeBJ(GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())+400.00))call TriggerSleepAction(5.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_Sfera_dospeh_bessmertnogo takes nothing returns nothingset gg_trg_Sfera_dospeh_bessmertnogo=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Sfera_dospeh_bessmertnogo,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sfera_dospeh_bessmertnogo,Condition(function Trig_Sfera_dospeh_bessmertnogo_Conditions))
call TriggerAddAction(gg_trg_Sfera_dospeh_bessmertnogo,function Trig_Sfera_dospeh_bessmertnogo_Actions)endfunctionfunction Trig_Sfera_dospeh_Krovy_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I0BQ')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sfera_dospeh_Krovy_Func003C takes nothing returns booleanif(not(udg_Rabdom_Skill<=5))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_dospeh_Krovy_Actions takes nothing returns nothingset udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Sfera_dospeh_Krovy_Func003C())thencall DisableTrigger(GetTriggeringTrigger())call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Items\\AIre\\AIreTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitLifeBJ(GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())+500.00))call TriggerSleepAction(5.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_Sfera_dospeh_Krovy takes nothing returns nothingset gg_trg_Sfera_dospeh_Krovy=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sfera_dospeh_Krovy,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Sfera_dospeh_Krovy,Condition(function Trig_Sfera_dospeh_Krovy_Conditions))call TriggerAddAction(gg_trg_Sfera_dospeh_Krovy,function Trig_Sfera_dospeh_Krovy_Actions)endfunctionfunction Trig_Sfera_angela_Conditions takes nothing returns booleanif(not(UnitHasBuffBJ(GetAttacker(),'B01C')==false))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetAttacker(),'I01V')==true))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_angela_Func004C takes nothing returns booleanif(not(udg_Rabdom_Skill<=5))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_angela_Actions takes nothing returns nothing
set udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Sfera_angela_Func004C())then
call DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'u00G',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttacker()),bj_UNIT_FACING)
call IssueTargetOrder(GetLastCreatedUnit(),"innerfire",GetAttacker())call TriggerSleepAction(15.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_Sfera_angela takes nothing returns nothing
set gg_trg_Sfera_angela=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sfera_angela,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sfera_angela,Condition(function Trig_Sfera_angela_Conditions))call TriggerAddAction(gg_trg_Sfera_angela,function Trig_Sfera_angela_Actions)endfunctionfunction Trig_Lunniy_mech_sfera_Conditions takes nothing returns boolean
if(not(UnitHasBuffBJ(GetAttacker(),'B02P')==false))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetAttacker(),'desc')==true))then
return false
endifreturn trueendfunctionfunction Trig_Lunniy_mech_sfera_Func004C takes nothing returns booleanif(not(udg_Rabdom_Skill<=5))then
return false
endifreturn trueendfunctionfunction Trig_Lunniy_mech_sfera_Actions takes nothing returns nothingset udg_Rabdom_Skill=GetRandomInt(1,100)
if(Trig_Lunniy_mech_sfera_Func004C())thencall DisableTrigger(GetTriggeringTrigger())call CreateNUnitsAtLoc(1,'u00G',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttacker()),bj_UNIT_FACING)
call IssueTargetOrder(GetLastCreatedUnit(),"innerfire",GetAttacker())call TriggerSleepAction(15.00)call EnableTrigger(GetTriggeringTrigger())else
endifendfunctionfunction InitTrig_Lunniy_mech_sfera takes nothing returns nothingset gg_trg_Lunniy_mech_sfera=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Lunniy_mech_sfera,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Lunniy_mech_sfera,Condition(function Trig_Lunniy_mech_sfera_Conditions))
call TriggerAddAction(gg_trg_Lunniy_mech_sfera,function Trig_Lunniy_mech_sfera_Actions)endfunctionfunction Trig_Sfera_krovy_Func001C takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I01P')==true))thenreturn trueendifif((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I01H')==true))thenreturn trueendifreturn false
endfunctionfunction Trig_Sfera_krovy_Conditions takes nothing returns booleanif(not Trig_Sfera_krovy_Func001C())thenreturn false
endifif(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_UNDEAD)==false))thenreturn false
endifif(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_STRUCTURE)==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Sfera_krovy_Actions takes nothing returns nothingcall AddSpecialEffectLocBJ(GetUnitLoc(GetKillingUnitBJ()),"Abilities\\Spells\\Undead\\VampiricAura\\VampiricAuraTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitLifeBJ(GetKillingUnitBJ(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetKillingUnitBJ())+(GetUnitStateSwap(UNIT_STATE_LIFE,GetDyingUnit())/ 100.00)))
endfunctionfunction InitTrig_Sfera_krovy takes nothing returns nothingset gg_trg_Sfera_krovy=CreateTrigger()call TriggerRegisterPlayerUnitEventSimple(gg_trg_Sfera_krovy,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Sfera_krovy,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_Sfera_krovy,Condition(function Trig_Sfera_krovy_Conditions))
call TriggerAddAction(gg_trg_Sfera_krovy,function Trig_Sfera_krovy_Actions)endfunctionfunction Trig_Mech_vampira_Func001C takes nothing returns booleanif((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I08A')==true))thenreturn trueendifreturn false
endfunctionfunction Trig_Mech_vampira_Conditions takes nothing returns booleanif(not Trig_Mech_vampira_Func001C())then
return false
endifif(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_UNDEAD)==false))thenreturn false
endifif(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_STRUCTURE)==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_vampira_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetKillingUnitBJ()),"Abilities\\Spells\\Undead\\VampiricAura\\VampiricAuraTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitLifeBJ(GetKillingUnitBJ(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetKillingUnitBJ())+(GetUnitStateSwap(UNIT_STATE_LIFE,GetDyingUnit())/ 50.00)))endfunctionfunction InitTrig_Mech_vampira takes nothing returns nothing
set gg_trg_Mech_vampira=CreateTrigger()call TriggerRegisterPlayerUnitEventSimple(gg_trg_Mech_vampira,Player(10),EVENT_PLAYER_UNIT_DEATH)call TriggerRegisterPlayerUnitEventSimple(gg_trg_Mech_vampira,Player(11),EVENT_PLAYER_UNIT_DEATH)call TriggerAddCondition(gg_trg_Mech_vampira,Condition(function Trig_Mech_vampira_Conditions))call TriggerAddAction(gg_trg_Mech_vampira,function Trig_Mech_vampira_Actions)endfunctionfunction Trig_Demonicheskaya_maska_sfera_Func001C takes nothing returns booleanif((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I01Q')==true))thenreturn trueendifreturn false
endfunctionfunction Trig_Demonicheskaya_maska_sfera_Conditions takes nothing returns booleanif(not Trig_Demonicheskaya_maska_sfera_Func001C())thenreturn false
endifif(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_STRUCTURE)==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Demonicheskaya_maska_sfera_Actions takes nothing returns nothingcall AddSpecialEffectLocBJ(GetUnitLoc(GetKillingUnitBJ()),"Abilities\\Spells\\Undead\\VampiricAura\\VampiricAuraTarget.mdl")
call SetUnitLifeBJ(GetKillingUnitBJ(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetKillingUnitBJ())+(GetUnitStateSwap(UNIT_STATE_LIFE,GetDyingUnit())/ 50.00)))endfunctionfunction InitTrig_Demonicheskaya_maska_sfera takes nothing returns nothingset gg_trg_Demonicheskaya_maska_sfera=CreateTrigger()call TriggerRegisterPlayerUnitEventSimple(gg_trg_Demonicheskaya_maska_sfera,Player(10),EVENT_PLAYER_UNIT_DEATH)call TriggerRegisterPlayerUnitEventSimple(gg_trg_Demonicheskaya_maska_sfera,Player(11),EVENT_PLAYER_UNIT_DEATH)call TriggerAddCondition(gg_trg_Demonicheskaya_maska_sfera,Condition(function Trig_Demonicheskaya_maska_sfera_Conditions))call TriggerAddAction(gg_trg_Demonicheskaya_maska_sfera,function Trig_Demonicheskaya_maska_sfera_Actions)endfunctionfunction Trig_Maska_izery_sfera_Func001C takes nothing returns booleanif((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I08E')==true))thenreturn trueendifreturn false
endfunctionfunction Trig_Maska_izery_sfera_Conditions takes nothing returns boolean
if(not Trig_Maska_izery_sfera_Func001C())thenreturn false
endifif(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_STRUCTURE)==false))thenreturn false
endifreturn trueendfunctionfunction Trig_Maska_izery_sfera_Actions takes nothing returns nothingcall AddSpecialEffectLocBJ(GetUnitLoc(GetKillingUnitBJ()),"Abilities\\Spells\\Undead\\VampiricAura\\VampiricAuraTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitLifeBJ(GetKillingUnitBJ(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetKillingUnitBJ())+(GetUnitStateSwap(UNIT_STATE_LIFE,GetDyingUnit())/ 33.00)))endfunctionfunction InitTrig_Maska_izery_sfera takes nothing returns nothingset gg_trg_Maska_izery_sfera=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Maska_izery_sfera,Player(10),EVENT_PLAYER_UNIT_DEATH)call TriggerRegisterPlayerUnitEventSimple(gg_trg_Maska_izery_sfera,Player(11),EVENT_PLAYER_UNIT_DEATH)call TriggerAddCondition(gg_trg_Maska_izery_sfera,Condition(function Trig_Maska_izery_sfera_Conditions))
call TriggerAddAction(gg_trg_Maska_izery_sfera,function Trig_Maska_izery_sfera_Actions)endfunctionfunction Trig_Dospeh_serafima_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gopr')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I007')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0BF')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Dospeh_serafima_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gopr'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I007'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BF'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0BG',GetTriggerUnit())
endfunctionfunction InitTrig_Dospeh_serafima takes nothing returns nothingset gg_trg_Dospeh_serafima=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Dospeh_serafima,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Dospeh_serafima,Condition(function Trig_Dospeh_serafima_Conditions))
call TriggerAddAction(gg_trg_Dospeh_serafima,function Trig_Dospeh_serafima_Actions)endfunctionfunction Trig_Zacharovanniy_venec_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'hcun')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02P')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I085')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zacharovanniy_venec_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'hcun'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02P'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I085'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('sneg',GetTriggerUnit())
endfunctionfunction InitTrig_Zacharovanniy_venec takes nothing returns nothingset gg_trg_Zacharovanniy_venec=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Zacharovanniy_venec,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Zacharovanniy_venec,Condition(function Trig_Zacharovanniy_venec_Conditions))
call TriggerAddAction(gg_trg_Zacharovanniy_venec,function Trig_Zacharovanniy_venec_Actions)endfunctionfunction Trig_Lunniy_plash_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'clsd')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sfog')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'pomn')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Lunniy_plash_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'clsd'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sfog'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pomn'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05C'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I05D',GetTriggerUnit())
endfunctionfunction InitTrig_Lunniy_plash takes nothing returns nothing
set gg_trg_Lunniy_plash=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Lunniy_plash,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Lunniy_plash,Condition(function Trig_Lunniy_plash_Conditions))call TriggerAddAction(gg_trg_Lunniy_plash,function Trig_Lunniy_plash_Actions)endfunctionfunction Trig_Luk_nefelima_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05T')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'pomn')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I053')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0CA')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Luk_nefelima_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05T'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I053'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pomn'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0CA'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0CB',GetTriggerUnit())
endfunctionfunction InitTrig_Luk_nefelima takes nothing returns nothing
set gg_trg_Luk_nefelima=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Luk_nefelima,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Luk_nefelima,Condition(function Trig_Luk_nefelima_Conditions))call TriggerAddAction(gg_trg_Luk_nefelima,function Trig_Luk_nefelima_Actions)endfunctionfunction Trig_Kniga_Haosa_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0CU')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BI'))>=10))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_Haosa_Func002C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BI'))==10))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_Haosa_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0CU'))if(Trig_Kniga_Haosa_Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BI'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BI'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BI'))-10))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0CT',GetTriggerUnit())
endfunctionfunction InitTrig_Kniga_Haosa takes nothing returns nothingset gg_trg_Kniga_Haosa=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kniga_Haosa,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Kniga_Haosa,Condition(function Trig_Kniga_Haosa_Conditions))
call TriggerAddAction(gg_trg_Kniga_Haosa,function Trig_Kniga_Haosa_Actions)endfunctionfunction Trig_Kniga_prirody_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0CV')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0CS'))>=10))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_prirody_Func002C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0CS'))==10))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_prirody_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0CV'))if(Trig_Kniga_prirody_Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0CS'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0CS'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0CS'))-10))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0CW',GetTriggerUnit())
endfunctionfunction InitTrig_Kniga_prirody takes nothing returns nothingset gg_trg_Kniga_prirody=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Kniga_prirody,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Kniga_prirody,Condition(function Trig_Kniga_prirody_Conditions))
call TriggerAddAction(gg_trg_Kniga_prirody,function Trig_Kniga_prirody_Actions)endfunctionfunction Trig_Kniga_tmy_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0CX')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BK'))>=10))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_tmy_Func002C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BK'))==10))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_tmy_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0CX'))if(Trig_Kniga_tmy_Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BK'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BK'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BK'))-10))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0CY',GetTriggerUnit())
endfunctionfunction InitTrig_Kniga_tmy takes nothing returns nothingset gg_trg_Kniga_tmy=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Kniga_tmy,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Kniga_tmy,Condition(function Trig_Kniga_tmy_Conditions))
call TriggerAddAction(gg_trg_Kniga_tmy,function Trig_Kniga_tmy_Actions)endfunctionfunction Trig_Kniga_Zaclinaniy_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0CW')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0CY')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0CT')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02Z')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0CZ')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kniga_Zaclinaniy_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0CW'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0CY'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0CT'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02Z'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0CZ'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0D0',GetTriggerUnit())
endfunctionfunction InitTrig_Kniga_Zaclinaniy takes nothing returns nothing
set gg_trg_Kniga_Zaclinaniy=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kniga_Zaclinaniy,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Kniga_Zaclinaniy,Condition(function Trig_Kniga_Zaclinaniy_Conditions))call TriggerAddAction(gg_trg_Kniga_Zaclinaniy,function Trig_Kniga_Zaclinaniy_Actions)endfunctionfunction Trig_Dospeh_Taurisana_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I057')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09F')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0B5')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B2'))>=5))then
return false
endifreturn trueendfunctionfunction Trig_Dospeh_Taurisana_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B2'))==5))then
return false
endifreturn trueendfunctionfunction Trig_Dospeh_Taurisana_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I057'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09F'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B5'))if(Trig_Dospeh_Taurisana_Func004C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B2'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B2'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B2'))-5))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0B6',GetTriggerUnit())
endfunctionfunction InitTrig_Dospeh_Taurisana takes nothing returns nothing
set gg_trg_Dospeh_Taurisana=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Dospeh_Taurisana,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Dospeh_Taurisana,Condition(function Trig_Dospeh_Taurisana_Conditions))call TriggerAddAction(gg_trg_Dospeh_Taurisana,function Trig_Dospeh_Taurisana_Actions)endfunctionfunction Trig_Ohotnichiy_mushket_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rsps')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0BV')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0D1')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I097'))>=5))then
return false
endifreturn trueendfunctionfunction Trig_Ohotnichiy_mushket_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I097'))==5))then
return false
endifreturn trueendfunctionfunction Trig_Ohotnichiy_mushket_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rsps'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BV'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0D1'))if(Trig_Ohotnichiy_mushket_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I097'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I097'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I097'))-5))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0D2',GetTriggerUnit())
endfunctionfunction InitTrig_Ohotnichiy_mushket takes nothing returns nothingset gg_trg_Ohotnichiy_mushket=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ohotnichiy_mushket,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Ohotnichiy_mushket,Condition(function Trig_Ohotnichiy_mushket_Conditions))call TriggerAddAction(gg_trg_Ohotnichiy_mushket,function Trig_Ohotnichiy_mushket_Actions)endfunctionfunction Trig_Ohotnichiy_mushket_s_pricelom_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0D2')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'asbl')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0D4')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B7'))>=4))then
return false
endifreturn trueendfunctionfunction Trig_Ohotnichiy_mushket_s_pricelom_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B7'))==4))then
return false
endifreturn trueendfunctionfunction Trig_Ohotnichiy_mushket_s_pricelom_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0D2'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'asbl'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0D4'))if(Trig_Ohotnichiy_mushket_s_pricelom_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B7'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B7'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B7'))-4))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0D3',GetTriggerUnit())
endfunctionfunction InitTrig_Ohotnichiy_mushket_s_pricelom takes nothing returns nothingset gg_trg_Ohotnichiy_mushket_s_pricelom=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Ohotnichiy_mushket_s_pricelom,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Ohotnichiy_mushket_s_pricelom,Condition(function Trig_Ohotnichiy_mushket_s_pricelom_Conditions))
call TriggerAddAction(gg_trg_Ohotnichiy_mushket_s_pricelom,function Trig_Ohotnichiy_mushket_s_pricelom_Actions)endfunctionfunction Trig_Avtomaticheskiy_mushket_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0D3')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0C4')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0D5')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'glsk'))>=1))then
return false
endifreturn trueendfunctionfunction Trig_Avtomaticheskiy_mushket_Func004C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'glsk'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Avtomaticheskiy_mushket_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0D3'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0C4'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0D5'))if(Trig_Avtomaticheskiy_mushket_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'glsk'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'glsk'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'glsk'))-1))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0D6',GetTriggerUnit())
endfunctionfunction InitTrig_Avtomaticheskiy_mushket takes nothing returns nothingset gg_trg_Avtomaticheskiy_mushket=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Avtomaticheskiy_mushket,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Avtomaticheskiy_mushket,Condition(function Trig_Avtomaticheskiy_mushket_Conditions))
call TriggerAddAction(gg_trg_Avtomaticheskiy_mushket,function Trig_Avtomaticheskiy_mushket_Actions)endfunctionfunction Trig_Mech_paladina_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I025')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0C2')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0C8')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B2'))>=4))then
return false
endifreturn trueendfunctionfunction Trig_Mech_paladina_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B2'))==4))then
return false
endifreturn trueendfunctionfunction Trig_Mech_paladina_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I025'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0C2'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0C8'))if(Trig_Mech_paladina_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B2'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B2'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B2'))-4))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0C9',GetTriggerUnit())
endfunctionfunction InitTrig_Mech_paladina takes nothing returns nothingset gg_trg_Mech_paladina=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Mech_paladina,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mech_paladina,Condition(function Trig_Mech_paladina_Conditions))
call TriggerAddAction(gg_trg_Mech_paladina,function Trig_Mech_paladina_Actions)endfunctionfunction Trig_Kolco_minotavra_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0BW')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02K')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0C6')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))>=5))then
return false
endifreturn trueendfunctionfunction Trig_Kolco_minotavra_Func004C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))==5))then
return false
endifreturn trueendfunctionfunction Trig_Kolco_minotavra_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BW'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02K'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0C6'))if(Trig_Kolco_minotavra_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))-5))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0C7',GetTriggerUnit())
endfunctionfunction InitTrig_Kolco_minotavra takes nothing returns nothingset gg_trg_Kolco_minotavra=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kolco_minotavra,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Kolco_minotavra,Condition(function Trig_Kolco_minotavra_Conditions))
call TriggerAddAction(gg_trg_Kolco_minotavra,function Trig_Kolco_minotavra_Actions)endfunctionfunction Trig_Kogty_Poveliteli_Ugasa_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05F')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'pnvu')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0BT')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BK'))>=8))then
return false
endifreturn trueendfunctionfunction Trig_Kogty_Poveliteli_Ugasa_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BK'))==8))then
return false
endifreturn trueendfunctionfunction Trig_Kogty_Poveliteli_Ugasa_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05F'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pnvu'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BT'))if(Trig_Kogty_Poveliteli_Ugasa_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BK'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BK'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BK'))-8))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0BU',GetTriggerUnit())
endfunctionfunction InitTrig_Kogty_Poveliteli_Ugasa takes nothing returns nothingset gg_trg_Kogty_Poveliteli_Ugasa=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kogty_Poveliteli_Ugasa,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Kogty_Poveliteli_Ugasa,Condition(function Trig_Kogty_Poveliteli_Ugasa_Conditions))call TriggerAddAction(gg_trg_Kogty_Poveliteli_Ugasa,function Trig_Kogty_Poveliteli_Ugasa_Actions)endfunctionfunction Trig_Nefritoviy_kingal_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I053')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04E')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0BR')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B2'))>=2))then
return false
endifreturn trueendfunctionfunction Trig_Nefritoviy_kingal_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B2'))==2))then
return false
endifreturn trueendfunctionfunction Trig_Nefritoviy_kingal_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I053'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04E'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BR'))if(Trig_Nefritoviy_kingal_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B2'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B2'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B2'))-2))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0BS',GetTriggerUnit())
endfunctionfunction InitTrig_Nefritoviy_kingal takes nothing returns nothingset gg_trg_Nefritoviy_kingal=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Nefritoviy_kingal,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Nefritoviy_kingal,Condition(function Trig_Nefritoviy_kingal_Conditions))
call TriggerAddAction(gg_trg_Nefritoviy_kingal,function Trig_Nefritoviy_kingal_Actions)endfunctionfunction Trig_Dospeh_Krovy_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04V')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04J')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0BP')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Dospeh_Krovy_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04J'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04V'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BP'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0BQ',GetTriggerUnit())
endfunctionfunction InitTrig_Dospeh_Krovy takes nothing returns nothing
set gg_trg_Dospeh_Krovy=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Dospeh_Krovy,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Dospeh_Krovy,Condition(function Trig_Dospeh_Krovy_Conditions))call TriggerAddAction(gg_trg_Dospeh_Krovy,function Trig_Dospeh_Krovy_Actions)endfunctionfunction Trig_Dospeh_tampliera_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sbok')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0C0')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rhth')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0CG')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Dospeh_tampliera_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sbok'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0C0'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rhth'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0CG'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0CH',GetTriggerUnit())
endfunctionfunction InitTrig_Dospeh_tampliera takes nothing returns nothing
set gg_trg_Dospeh_tampliera=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Dospeh_tampliera,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Dospeh_tampliera,Condition(function Trig_Dospeh_tampliera_Conditions))call TriggerAddAction(gg_trg_Dospeh_tampliera,function Trig_Dospeh_tampliera_Actions)endfunctionfunction Trig_Dospeh_championa_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03D')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0BY')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09D')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0CI')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Dospeh_championa_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I03D'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BY'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09D'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0CI'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0CJ',GetTriggerUnit())
endfunctionfunction InitTrig_Dospeh_championa takes nothing returns nothing
set gg_trg_Dospeh_championa=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Dospeh_championa,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Dospeh_championa,Condition(function Trig_Dospeh_championa_Conditions))call TriggerAddAction(gg_trg_Dospeh_championa,function Trig_Dospeh_championa_Actions)endfunctionfunction Trig_Dospeh_mraka_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'scul')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0BZ')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0BJ')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0CK')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Dospeh_mraka_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'scul'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BZ'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BJ'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0CK'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0CL',GetTriggerUnit())
endfunctionfunction InitTrig_Dospeh_mraka takes nothing returns nothing
set gg_trg_Dospeh_mraka=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Dospeh_mraka,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Dospeh_mraka,Condition(function Trig_Dospeh_mraka_Conditions))call TriggerAddAction(gg_trg_Dospeh_mraka,function Trig_Dospeh_mraka_Actions)endfunctionfunction Trig_Dospeh_bezdny_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0C1')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09R')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'thdm')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0CM')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Dospeh_bezdny_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'thdm'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09R'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0C1'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0CM'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0CN',GetTriggerUnit())
endfunctionfunction InitTrig_Dospeh_bezdny takes nothing returns nothingset gg_trg_Dospeh_bezdny=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Dospeh_bezdny,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Dospeh_bezdny,Condition(function Trig_Dospeh_bezdny_Conditions))
call TriggerAddAction(gg_trg_Dospeh_bezdny,function Trig_Dospeh_bezdny_Actions)endfunctionfunction Trig_Kolco_muradina_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0BX')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'azhr')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'pomn')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0CQ')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kolco_muradina_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BX'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pomn'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'azhr'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0CQ'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0CR',GetTriggerUnit())
endfunctionfunction InitTrig_Kolco_muradina takes nothing returns nothingset gg_trg_Kolco_muradina=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kolco_muradina,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Kolco_muradina,Condition(function Trig_Kolco_muradina_Conditions))call TriggerAddAction(gg_trg_Kolco_muradina,function Trig_Kolco_muradina_Actions)endfunctionfunction Trig_Kolco_eonory_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'k3m3')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ches')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0CO')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BH'))>=6))then
return false
endifreturn trueendfunctionfunction Trig_Kolco_eonory_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BH'))==6))then
return false
endifreturn trueendfunctionfunction Trig_Kolco_eonory_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'k3m3'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ches'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0CO'))if(Trig_Kolco_eonory_Func004C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BH'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BH'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BH'))-6))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0CP',GetTriggerUnit())
endfunctionfunction InitTrig_Kolco_eonory takes nothing returns nothing
set gg_trg_Kolco_eonory=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kolco_eonory,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Kolco_eonory,Condition(function Trig_Kolco_eonory_Conditions))call TriggerAddAction(gg_trg_Kolco_eonory,function Trig_Kolco_eonory_Actions)endfunctionfunction Trig_Demonicheskiy_topor_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'hval')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05R')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0C3')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0CC')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Demonicheskiy_topor_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'hval'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05R'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0C3'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0CC'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0CD',GetTriggerUnit())
endfunctionfunction InitTrig_Demonicheskiy_topor takes nothing returns nothingset gg_trg_Demonicheskiy_topor=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Demonicheskiy_topor,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Demonicheskiy_topor,Condition(function Trig_Demonicheskiy_topor_Conditions))
call TriggerAddAction(gg_trg_Demonicheskiy_topor,function Trig_Demonicheskiy_topor_Actions)endfunctionfunction Trig_Plashenica_zabitogo_korolia_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rde4')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0BN')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B2'))>=3))then
return false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BH'))>=3))then
return false
endifreturn trueendfunctionfunction Trig_Plashenica_zabitogo_korolia_Func003C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B2'))==3))then
return false
endifreturn trueendfunctionfunction Trig_Plashenica_zabitogo_korolia_Func004C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BH'))==3))then
return false
endifreturn trueendfunctionfunction Trig_Plashenica_zabitogo_korolia_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rde4'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BN'))if(Trig_Plashenica_zabitogo_korolia_Func003C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B2'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B2'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B2'))-3))endifif(Trig_Plashenica_zabitogo_korolia_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BH'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BH'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BH'))-3))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0BO',GetTriggerUnit())
endfunctionfunction InitTrig_Plashenica_zabitogo_korolia takes nothing returns nothingset gg_trg_Plashenica_zabitogo_korolia=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Plashenica_zabitogo_korolia,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Plashenica_zabitogo_korolia,Condition(function Trig_Plashenica_zabitogo_korolia_Conditions))
call TriggerAddAction(gg_trg_Plashenica_zabitogo_korolia,function Trig_Plashenica_zabitogo_korolia_Actions)endfunctionfunction Trig_Laty_korolia_mertvih_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04T')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0BJ')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0BL')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BH'))>=3))then
return false
endifreturn trueendfunctionfunction Trig_Laty_korolia_mertvih_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BH'))==3))then
return false
endifreturn trueendfunctionfunction Trig_Laty_korolia_mertvih_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04T'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BJ'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BL'))if(Trig_Laty_korolia_mertvih_Func004C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BH'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BH'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BH'))-3))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0BM',GetTriggerUnit())
endfunctionfunction InitTrig_Laty_korolia_mertvih takes nothing returns nothing
set gg_trg_Laty_korolia_mertvih=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Laty_korolia_mertvih,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Laty_korolia_mertvih,Condition(function Trig_Laty_korolia_mertvih_Conditions))call TriggerAddAction(gg_trg_Laty_korolia_mertvih,function Trig_Laty_korolia_mertvih_Actions)endfunctionfunction Trig_Mantiya_bezlikih_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05D')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0A9')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0B9')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B7'))>=6))then
return false
endifreturn trueendfunctionfunction Trig_Mantiya_bezlikih_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B7'))==6))then
return false
endifreturn trueendfunctionfunction Trig_Mantiya_bezlikih_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05D'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0A9'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B9'))if(Trig_Mantiya_bezlikih_Func004C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B7'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B7'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B7'))-6))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0BA',GetTriggerUnit())
endfunctionfunction InitTrig_Mantiya_bezlikih takes nothing returns nothing
set gg_trg_Mantiya_bezlikih=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mantiya_bezlikih,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mantiya_bezlikih,Condition(function Trig_Mantiya_bezlikih_Conditions))call TriggerAddAction(gg_trg_Mantiya_bezlikih,function Trig_Mantiya_bezlikih_Actions)endfunctionfunction Trig_Gezl_faraonov_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ledg')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0C5')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ward')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0CE')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gezl_faraonov_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ledg'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0C5'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ward'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0CE'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0CF',GetTriggerUnit())
endfunctionfunction InitTrig_Gezl_faraonov takes nothing returns nothingset gg_trg_Gezl_faraonov=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Gezl_faraonov,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Gezl_faraonov,Condition(function Trig_Gezl_faraonov_Conditions))
call TriggerAddAction(gg_trg_Gezl_faraonov,function Trig_Gezl_faraonov_Actions)endfunctionfunction Trig_Razrushitel_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09I')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0A6')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I058')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Razrushitel_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0A6'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I058'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09I'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I059',GetTriggerUnit())
endfunctionfunction InitTrig_Razrushitel takes nothing returns nothingset gg_trg_Razrushitel=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Razrushitel,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Razrushitel,Condition(function Trig_Razrushitel_Conditions))
call TriggerAddAction(gg_trg_Razrushitel,function Trig_Razrushitel_Actions)endfunctionfunction Trig_Shlem_otstupnika_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'hcun')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ram1')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0AX')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09J')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0B3')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_otstupnika_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'hcun'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ram1'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AX'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09J'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B3'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I0B4',GetTriggerUnit())
endfunctionfunction InitTrig_Shlem_otstupnika takes nothing returns nothing
set gg_trg_Shlem_otstupnika=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Shlem_otstupnika,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Shlem_otstupnika,Condition(function Trig_Shlem_otstupnika_Conditions))call TriggerAddAction(gg_trg_Shlem_otstupnika,function Trig_Shlem_otstupnika_Actions)endfunctionfunction Trig_Skipitr_haosa_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00B')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I034')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I050')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Skipitr_haosa_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00B'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I034'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I050'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I051',GetTriggerUnit())
endfunctionfunction InitTrig_Skipitr_haosa takes nothing returns nothingset gg_trg_Skipitr_haosa=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Skipitr_haosa,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Skipitr_haosa,Condition(function Trig_Skipitr_haosa_Conditions))
call TriggerAddAction(gg_trg_Skipitr_haosa,function Trig_Skipitr_haosa_Actions)endfunctionfunction Trig_Shit_Krovi_Func002C takes nothing returns booleanif((UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I04V')==true))thenreturn trueendifif((UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I0BQ')==true))thenreturn trueendifreturn false
endfunctionfunction Trig_Shit_Krovi_Conditions takes nothing returns booleanif(not(IsUnitType(GetAttacker(),UNIT_TYPE_MELEE_ATTACKER)==true))thenreturn false
endifif(not Trig_Shit_Krovi_Func002C())thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_Krovi_Func003C takes nothing returns booleanif(not(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)==false))then
return false
endifreturn trueendfunctionfunction Trig_Shit_Krovi_Actions takes nothing returns nothingif(Trig_Shit_Krovi_Func003C())thencall UnitDamageTargetBJ(GetAttackedUnitBJ(),GetAttacker(),(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetAttacker())/ 100.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_DEATH)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttacker()),"Abilities\\Spells\\Orc\\HealingWave\\HealingWaveTarget.mdl")call SetUnitLifeBJ(GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())+(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetAttacker())/ 100.00)))call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Orc\\HealingWave\\HealingWaveTarget.mdl")
else
call UnitDamageTargetBJ(GetAttackedUnitBJ(),GetAttacker(),(I2R(GetUnitLevel(GetAttacker()))/ 2.50),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_DEATH)
call AddSpecialEffectLocBJ(GetUnitLoc(GetAttacker()),"Abilities\\Spells\\Orc\\HealingWave\\HealingWaveTarget.mdl")call SetUnitLifeBJ(GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())+(I2R(GetUnitLevel(GetAttacker()))/ 2.50)))
call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Orc\\HealingWave\\HealingWaveTarget.mdl")
endifendfunctionfunction InitTrig_Shit_Krovi takes nothing returns nothingset gg_trg_Shit_Krovi=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Shit_Krovi,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Shit_Krovi,Condition(function Trig_Shit_Krovi_Conditions))call TriggerAddAction(gg_trg_Shit_Krovi,function Trig_Shit_Krovi_Actions)endfunctionfunction Trig_Amulet_poglosheniya_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01S')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sbch')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'oli2')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'dthb')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_poglosheniya_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01S'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sbch'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'oli2'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'dthb'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('nspi',GetTriggerUnit())
endfunctionfunction InitTrig_Amulet_poglosheniya takes nothing returns nothingset gg_trg_Amulet_poglosheniya=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Amulet_poglosheniya,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Amulet_poglosheniya,Condition(function Trig_Amulet_poglosheniya_Conditions))
call TriggerAddAction(gg_trg_Amulet_poglosheniya,function Trig_Amulet_poglosheniya_Actions)endfunctionfunction Trig_Lunniy_skipitr_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I034')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gsou')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09N')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Lunniy_skipitr_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gsou'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I034'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09N'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I09O',GetTriggerUnit())
endfunctionfunction InitTrig_Lunniy_skipitr takes nothing returns nothingset gg_trg_Lunniy_skipitr=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Lunniy_skipitr,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Lunniy_skipitr,Condition(function Trig_Lunniy_skipitr_Conditions))call TriggerAddAction(gg_trg_Lunniy_skipitr,function Trig_Lunniy_skipitr_Actions)endfunctionfunction Trig_Mech_zatochennoy_realnosty_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'fgdg')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I025')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ktrm')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04L')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_zatochennoy_realnosty_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'fgdg'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I025'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ktrm'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04L'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I04K',GetTriggerUnit())
endfunctionfunction InitTrig_Mech_zatochennoy_realnosty takes nothing returns nothingset gg_trg_Mech_zatochennoy_realnosty=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mech_zatochennoy_realnosty,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mech_zatochennoy_realnosty,Condition(function Trig_Mech_zatochennoy_realnosty_Conditions))call TriggerAddAction(gg_trg_Mech_zatochennoy_realnosty,function Trig_Mech_zatochennoy_realnosty_Actions)endfunctionfunction Trig_Dospehi_bessmernogo_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gopr')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03F')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ktrm')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04I')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Dospehi_bessmernogo_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gopr'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I03F'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ktrm'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04I'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I04J',GetTriggerUnit())
endfunctionfunction InitTrig_Dospehi_bessmernogo takes nothing returns nothingset gg_trg_Dospehi_bessmernogo=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Dospehi_bessmernogo,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Dospehi_bessmernogo,Condition(function Trig_Dospehi_bessmernogo_Conditions))
call TriggerAddAction(gg_trg_Dospehi_bessmernogo,function Trig_Dospehi_bessmernogo_Actions)endfunctionfunction Trig_Gezl_morey_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I034')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'skrt')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04P')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gezl_morey_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I034'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'skrt'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04P'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I04O',GetTriggerUnit())
endfunctionfunction InitTrig_Gezl_morey takes nothing returns nothingset gg_trg_Gezl_morey=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Gezl_morey,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Gezl_morey,Condition(function Trig_Gezl_morey_Conditions))call TriggerAddAction(gg_trg_Gezl_morey,function Trig_Gezl_morey_Actions)endfunctionfunction Trig_Elfiyskiy_Arbalet_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04A')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'glsk')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01G')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04R')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Elfiyskiy_Arbalet_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04A'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'glsk'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01G'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04R'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped('I04Q',GetTriggerUnit())
endfunctionfunction InitTrig_Elfiyskiy_Arbalet takes nothing returns nothingset gg_trg_Elfiyskiy_Arbalet=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Elfiyskiy_Arbalet,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Elfiyskiy_Arbalet,Condition(function Trig_Elfiyskiy_Arbalet_Conditions))
call TriggerAddAction(gg_trg_Elfiyskiy_Arbalet,function Trig_Elfiyskiy_Arbalet_Actions)endfunctionfunction Trig_Mehanicheskaya_perchatka_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'bgst')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'glsk')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tlum')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mehanicheskaya_perchatka_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'bgst'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'glsk'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tlum'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05A'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped('I05B',GetTriggerUnit())
endfunctionfunction InitTrig_Mehanicheskaya_perchatka takes nothing returns nothing
set gg_trg_Mehanicheskaya_perchatka=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mehanicheskaya_perchatka,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mehanicheskaya_perchatka,Condition(function Trig_Mehanicheskaya_perchatka_Conditions))call TriggerAddAction(gg_trg_Mehanicheskaya_perchatka,function Trig_Mehanicheskaya_perchatka_Actions)endfunctionfunction Trig_Mehanicheskaya_Bronia_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03F')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'glsk')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02K')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I08I')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mehanicheskaya_Bronia_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I03F'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'glsk'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02K'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08I'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped('I08J',GetTriggerUnit())
endfunctionfunction InitTrig_Mehanicheskaya_Bronia takes nothing returns nothingset gg_trg_Mehanicheskaya_Bronia=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Mehanicheskaya_Bronia,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mehanicheskaya_Bronia,Condition(function Trig_Mehanicheskaya_Bronia_Conditions))
call TriggerAddAction(gg_trg_Mehanicheskaya_Bronia,function Trig_Mehanicheskaya_Bronia_Actions)endfunctionfunction Trig_Goblinskaya_truba_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'oslo')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'glsk')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gemt')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'jpnt')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Goblinskaya_truba_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'oslo'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'glsk'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gemt'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'jpnt'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call DestroyEffect(GetLastCreatedEffectBJ())
call UnitAddItemByIdSwapped('asbl',GetTriggerUnit())
endfunctionfunction InitTrig_Goblinskaya_truba takes nothing returns nothingset gg_trg_Goblinskaya_truba=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Goblinskaya_truba,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Goblinskaya_truba,Condition(function Trig_Goblinskaya_truba_Conditions))
call TriggerAddAction(gg_trg_Goblinskaya_truba,function Trig_Goblinskaya_truba_Actions)endfunctionfunction Trig_Kolco_lva_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ram1')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I000')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04Y')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kolco_lva_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ram1'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I000'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04Y'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I04Z',GetTriggerUnit())
endfunctionfunction InitTrig_Kolco_lva takes nothing returns nothingset gg_trg_Kolco_lva=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Kolco_lva,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Kolco_lva,Condition(function Trig_Kolco_lva_Conditions))
call TriggerAddAction(gg_trg_Kolco_lva,function Trig_Kolco_lva_Actions)endfunctionfunction Trig_Molot_sveta_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ssil')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I000')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04N')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Molot_sveta_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ssil'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I000'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04N'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I04M',GetTriggerUnit())
endfunctionfunction InitTrig_Molot_sveta takes nothing returns nothingset gg_trg_Molot_sveta=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Molot_sveta,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Molot_sveta,Condition(function Trig_Molot_sveta_Conditions))
call TriggerAddAction(gg_trg_Molot_sveta,function Trig_Molot_sveta_Actions)endfunctionfunction Trig_Kamen_zatmeniya_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'fgun')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02Z')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I083')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kamen_zatmeniya_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'fgun'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02Z'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I083'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('moon',GetTriggerUnit())
endfunctionfunction InitTrig_Kamen_zatmeniya takes nothing returns nothingset gg_trg_Kamen_zatmeniya=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kamen_zatmeniya,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Kamen_zatmeniya,Condition(function Trig_Kamen_zatmeniya_Conditions))
call TriggerAddAction(gg_trg_Kamen_zatmeniya,function Trig_Kamen_zatmeniya_Actions)endfunctionfunction Trig_Plash_neney_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'wneg')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02F')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I084')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Plash_neney_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'wneg'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02F'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I084'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('clsd',GetTriggerUnit())
endfunctionfunction InitTrig_Plash_neney takes nothing returns nothingset gg_trg_Plash_neney=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Plash_neney,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Plash_neney,Condition(function Trig_Plash_neney_Conditions))
call TriggerAddAction(gg_trg_Plash_neney,function Trig_Plash_neney_Actions)endfunctionfunction Trig_Shit_neupakoennih_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'shen')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00C')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04W')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_neupakoennih_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shen'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00C'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04W'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I04X',GetTriggerUnit())
endfunctionfunction InitTrig_Shit_neupakoennih takes nothing returns nothingset gg_trg_Shit_neupakoennih=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Shit_neupakoennih,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Shit_neupakoennih,Condition(function Trig_Shit_neupakoennih_Conditions))
call TriggerAddAction(gg_trg_Shit_neupakoennih,function Trig_Shit_neupakoennih_Actions)endfunctionfunction Trig_Shit_Angela_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'shen')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I020')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01N')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_Angela_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shen'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I020'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01N'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('I01T',GetTriggerUnit())
endfunctionfunction InitTrig_Shit_Angela takes nothing returns nothingset gg_trg_Shit_Angela=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Shit_Angela,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Shit_Angela,Condition(function Trig_Shit_Angela_Conditions))
call TriggerAddAction(gg_trg_Shit_Angela,function Trig_Shit_Angela_Actions)endfunctionfunction Trig_Astralniy_shit_sfera_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I00E')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Astralniy_shit_sfera_Actions takes nothing returns nothing
call TriggerSleepAction(0.50)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttacker()),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspirittarget.mdl")call UnitDamageTargetBJ(GetAttackedUnitBJ(),GetAttacker(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetAttackedUnitBJ(),true))*0.05),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)endfunctionfunction InitTrig_Astralniy_shit_sfera takes nothing returns nothing
set gg_trg_Astralniy_shit_sfera=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Astralniy_shit_sfera,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Astralniy_shit_sfera,Condition(function Trig_Astralniy_shit_sfera_Conditions))call TriggerAddAction(gg_trg_Astralniy_shit_sfera,function Trig_Astralniy_shit_sfera_Actions)endfunctionfunction Trig_Astralniy_molot_sfera_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetAttacker(),'I00G')==true))then
return false
endifreturn trueendfunctionfunction Trig_Astralniy_molot_sfera_Actions takes nothing returns nothingcall TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspirittarget.mdl")
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetAttacker(),true))*0.50),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)endfunctionfunction InitTrig_Astralniy_molot_sfera takes nothing returns nothingset gg_trg_Astralniy_molot_sfera=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Astralniy_molot_sfera,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Astralniy_molot_sfera,Condition(function Trig_Astralniy_molot_sfera_Conditions))
call TriggerAddAction(gg_trg_Astralniy_molot_sfera,function Trig_Astralniy_molot_sfera_Actions)endfunctionfunction Trig_Misticheskiy_gezl_1_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttacker(),'wlsd')==true))then
return false
endifreturn trueendfunctionfunction Trig_Misticheskiy_gezl_1_Actions takes nothing returns nothingcall DestroyEffect(udg_Specefect[0])
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspirittarget.mdl")
set udg_Specefect[0]=GetLastCreatedEffectBJ()call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetAttacker(),true))*0.10),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)endfunctionfunction InitTrig_Misticheskiy_gezl_1 takes nothing returns nothingset gg_trg_Misticheskiy_gezl_1=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Misticheskiy_gezl_1,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Misticheskiy_gezl_1,Condition(function Trig_Misticheskiy_gezl_1_Conditions))
call TriggerAddAction(gg_trg_Misticheskiy_gezl_1,function Trig_Misticheskiy_gezl_1_Actions)endfunctionfunction Trig_Misticheskiy_gezl_2_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttacker(),'wshs')==true))then
return false
endifreturn trueendfunctionfunction Trig_Misticheskiy_gezl_2_Actions takes nothing returns nothingcall DestroyEffect(udg_Specefect[0])
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspirittarget.mdl")
set udg_Specefect[0]=GetLastCreatedEffectBJ()call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetAttacker(),true))*0.20),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)endfunctionfunction InitTrig_Misticheskiy_gezl_2 takes nothing returns nothingset gg_trg_Misticheskiy_gezl_2=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Misticheskiy_gezl_2,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Misticheskiy_gezl_2,Condition(function Trig_Misticheskiy_gezl_2_Conditions))
call TriggerAddAction(gg_trg_Misticheskiy_gezl_2,function Trig_Misticheskiy_gezl_2_Actions)endfunctionfunction Trig_Misticheskiy_gezl_3_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttacker(),'fgfh')==true))then
return false
endifreturn trueendfunctionfunction Trig_Misticheskiy_gezl_3_Actions takes nothing returns nothingcall DestroyEffect(udg_Specefect[0])
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspirittarget.mdl")
set udg_Specefect[0]=GetLastCreatedEffectBJ()call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetAttacker(),true))*0.30),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)endfunctionfunction InitTrig_Misticheskiy_gezl_3 takes nothing returns nothingset gg_trg_Misticheskiy_gezl_3=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Misticheskiy_gezl_3,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Misticheskiy_gezl_3,Condition(function Trig_Misticheskiy_gezl_3_Conditions))
call TriggerAddAction(gg_trg_Misticheskiy_gezl_3,function Trig_Misticheskiy_gezl_3_Actions)endfunctionfunction Trig_Misticheskiy_gezl_4_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttacker(),'fgrd')==true))then
return false
endifreturn trueendfunctionfunction Trig_Misticheskiy_gezl_4_Actions takes nothing returns nothingcall DestroyEffect(udg_Specefect[0])
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspirittarget.mdl")
set udg_Specefect[0]=GetLastCreatedEffectBJ()call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetAttacker(),true))*0.40),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)endfunctionfunction InitTrig_Misticheskiy_gezl_4 takes nothing returns nothingset gg_trg_Misticheskiy_gezl_4=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Misticheskiy_gezl_4,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Misticheskiy_gezl_4,Condition(function Trig_Misticheskiy_gezl_4_Conditions))
call TriggerAddAction(gg_trg_Misticheskiy_gezl_4,function Trig_Misticheskiy_gezl_4_Actions)endfunctionfunction Trig_Misticheskiy_gezl_5_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttacker(),'fgdg')==true))then
return false
endifreturn trueendfunctionfunction Trig_Misticheskiy_gezl_5_Actions takes nothing returns nothingcall DestroyEffect(udg_Specefect[0])
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspirittarget.mdl")
set udg_Specefect[0]=GetLastCreatedEffectBJ()call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetAttacker(),true))*0.50),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)endfunctionfunction InitTrig_Misticheskiy_gezl_5 takes nothing returns nothingset gg_trg_Misticheskiy_gezl_5=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Misticheskiy_gezl_5,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Misticheskiy_gezl_5,Condition(function Trig_Misticheskiy_gezl_5_Conditions))
call TriggerAddAction(gg_trg_Misticheskiy_gezl_5,function Trig_Misticheskiy_gezl_5_Actions)endfunctionfunction Trig_Misticheskiy_gezl_6_Func001C takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetAttacker(),'I00B')==true))thenreturn trueendifif((UnitHasItemOfTypeBJ(GetAttacker(),'I051')==true))thenreturn trueendifreturn false
endfunctionfunction Trig_Misticheskiy_gezl_6_Conditions takes nothing returns booleanif(not Trig_Misticheskiy_gezl_6_Func001C())thenreturn false
endifreturn trueendfunctionfunction Trig_Misticheskiy_gezl_6_Actions takes nothing returns nothingcall DestroyEffect(udg_Specefect[0])
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspirittarget.mdl")
set udg_Specefect[0]=GetLastCreatedEffectBJ()call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetAttacker(),true))*1.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)endfunctionfunction InitTrig_Misticheskiy_gezl_6 takes nothing returns nothingset gg_trg_Misticheskiy_gezl_6=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Misticheskiy_gezl_6,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Misticheskiy_gezl_6,Condition(function Trig_Misticheskiy_gezl_6_Conditions))
call TriggerAddAction(gg_trg_Misticheskiy_gezl_6,function Trig_Misticheskiy_gezl_6_Actions)endfunctionfunction Trig_Misticheskiy_gezl_7_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttacker(),'I09L')==true))then
return false
endifreturn trueendfunctionfunction Trig_Misticheskiy_gezl_7_Actions takes nothing returns nothingcall DestroyEffect(udg_Specefect[0])
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspirittarget.mdl")
set udg_Specefect[0]=GetLastCreatedEffectBJ()call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetAttacker(),true))*2.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)endfunctionfunction InitTrig_Misticheskiy_gezl_7 takes nothing returns nothingset gg_trg_Misticheskiy_gezl_7=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Misticheskiy_gezl_7,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Misticheskiy_gezl_7,Condition(function Trig_Misticheskiy_gezl_7_Conditions))
call TriggerAddAction(gg_trg_Misticheskiy_gezl_7,function Trig_Misticheskiy_gezl_7_Actions)endfunctionfunction Trig_Luk_Silvany_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttacker(),'rwat')==true))then
return false
endifreturn trueendfunctionfunction Trig_Luk_Silvany_Actions takes nothing returns nothingcall DestroyEffect(udg_Specefect[0])
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayTarget.mdl")set udg_Specefect[0]=GetLastCreatedEffectBJ()call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetAttacker(),true))*0.50),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)endfunctionfunction InitTrig_Luk_Silvany takes nothing returns nothingset gg_trg_Luk_Silvany=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Luk_Silvany,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Luk_Silvany,Condition(function Trig_Luk_Silvany_Conditions))
call TriggerAddAction(gg_trg_Luk_Silvany,function Trig_Luk_Silvany_Actions)endfunctionfunction Trig_Mech_realnosty_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetAttacker(),'I04K')==true))then
return false
endifreturn trueendfunctionfunction Trig_Mech_realnosty_Actions takes nothing returns nothingcall DestroyEffect(udg_Specefect[0])
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")set udg_Specefect[0]=GetLastCreatedEffectBJ()call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetAttacker(),true))*1.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)endfunctionfunction InitTrig_Mech_realnosty takes nothing returns nothingset gg_trg_Mech_realnosty=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mech_realnosty,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Mech_realnosty,Condition(function Trig_Mech_realnosty_Conditions))call TriggerAddAction(gg_trg_Mech_realnosty,function Trig_Mech_realnosty_Actions)endfunctionfunction Trig_molot_sveta_sfera_Conditions takes nothing returns boolean
if(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_UNDEAD)==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetAttacker(),'I04M')==true))then
return false
endifreturn trueendfunctionfunction Trig_molot_sveta_sfera_Actions takes nothing returns nothingcall DestroyEffect(udg_Specefect[0])
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Human\\HolyBolt\\HolyBoltSpecialArt.mdl")
set udg_Specefect[0]=GetLastCreatedEffectBJ()call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),150.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)endfunctionfunction InitTrig_molot_sveta_sfera takes nothing returns nothingset gg_trg_molot_sveta_sfera=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_molot_sveta_sfera,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_molot_sveta_sfera,Condition(function Trig_molot_sveta_sfera_Conditions))
call TriggerAddAction(gg_trg_molot_sveta_sfera,function Trig_molot_sveta_sfera_Actions)endfunctionfunction Trig_Sfera_astrala_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetAttacker(),'I03C')==true))then
return false
endifreturn trueendfunctionfunction Trig_Sfera_astrala_Actions takes nothing returns nothingcall DestroyEffect(udg_Specefect[0])
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspirittarget.mdl")
set udg_Specefect[0]=GetLastCreatedEffectBJ()call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetAttacker(),true))/ 0.50),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)endfunctionfunction InitTrig_Sfera_astrala takes nothing returns nothingset gg_trg_Sfera_astrala=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Sfera_astrala,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Sfera_astrala,Condition(function Trig_Sfera_astrala_Conditions))
call TriggerAddAction(gg_trg_Sfera_astrala,function Trig_Sfera_astrala_Actions)endfunctionfunction Trig_Gromovoy_gezl_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetAttacker(),'I009')==true))then
return false
endifreturn trueendfunctionfunction Trig_Gromovoy_gezl_Actions takes nothing returns nothingcall DestroyEffect(udg_Specefect[0])
call TriggerSleepAction(1.00)call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")set udg_Specefect[0]=GetLastCreatedEffectBJ()call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetAttacker(),true))*0.60),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)endfunctionfunction InitTrig_Gromovoy_gezl takes nothing returns nothingset gg_trg_Gromovoy_gezl=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Gromovoy_gezl,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Gromovoy_gezl,Condition(function Trig_Gromovoy_gezl_Conditions))
call TriggerAddAction(gg_trg_Gromovoy_gezl,function Trig_Gromovoy_gezl_Actions)endfunctionfunction Trig_Stalnoy_mech_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rat9')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gomn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stalnoy_mech_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rat9'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gomn'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('rat6',GetTriggerUnit())
endfunctionfunction InitTrig_Stalnoy_mech takes nothing returns nothing
set gg_trg_Stalnoy_mech=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Stalnoy_mech,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stalnoy_mech,Condition(function Trig_Stalnoy_mech_Conditions))call TriggerAddAction(gg_trg_Stalnoy_mech,function Trig_Stalnoy_mech_Actions)endfunctionfunction Trig_Stalnoy_topor_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'stwa')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gomn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stalnoy_topor_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'stwa'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gomn'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('srbd',GetTriggerUnit())
endfunctionfunction InitTrig_Stalnoy_topor takes nothing returns nothingset gg_trg_Stalnoy_topor=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Stalnoy_topor,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stalnoy_topor,Condition(function Trig_Stalnoy_topor_Conditions))
call TriggerAddAction(gg_trg_Stalnoy_topor,function Trig_Stalnoy_topor_Actions)endfunctionfunction Trig_Stalnoy_Molot_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'mlst')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gomn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stalnoy_Molot_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'mlst'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gomn'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('dsum',GetTriggerUnit())
endfunctionfunction InitTrig_Stalnoy_Molot takes nothing returns nothingset gg_trg_Stalnoy_Molot=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Stalnoy_Molot,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stalnoy_Molot,Condition(function Trig_Stalnoy_Molot_Conditions))
call TriggerAddAction(gg_trg_Stalnoy_Molot,function Trig_Stalnoy_Molot_Actions)endfunctionfunction Trig_Stalnoy_kogty_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sor1')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gomn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stalnoy_kogty_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sor1'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gomn'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('sor2',GetTriggerUnit())
endfunctionfunction InitTrig_Stalnoy_kogty takes nothing returns nothingset gg_trg_Stalnoy_kogty=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Stalnoy_kogty,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stalnoy_kogty,Condition(function Trig_Stalnoy_kogty_Conditions))
call TriggerAddAction(gg_trg_Stalnoy_kogty,function Trig_Stalnoy_kogty_Actions)endfunctionfunction Trig_Stalnoy_perchatky_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sor6')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gomn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stalnoy_perchatky_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sor6'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gomn'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('sor7',GetTriggerUnit())
endfunctionfunction InitTrig_Stalnoy_perchatky takes nothing returns nothingset gg_trg_Stalnoy_perchatky=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Stalnoy_perchatky,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stalnoy_perchatky,Condition(function Trig_Stalnoy_perchatky_Conditions))
call TriggerAddAction(gg_trg_Stalnoy_perchatky,function Trig_Stalnoy_perchatky_Actions)endfunctionfunction Trig_Stalnoy_luk_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sor9')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gomn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stalnoy_luk_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sor9'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gomn'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('afac',GetTriggerUnit())
endfunctionfunction InitTrig_Stalnoy_luk takes nothing returns nothingset gg_trg_Stalnoy_luk=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Stalnoy_luk,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Stalnoy_luk,Condition(function Trig_Stalnoy_luk_Conditions))
call TriggerAddAction(gg_trg_Stalnoy_luk,function Trig_Stalnoy_luk_Actions)endfunctionfunction Trig_Stalnoy_Kingaly_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rugt')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gomn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stalnoy_Kingaly_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rugt'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gomn'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('frhg',GetTriggerUnit())
endfunctionfunction InitTrig_Stalnoy_Kingaly takes nothing returns nothingset gg_trg_Stalnoy_Kingaly=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Stalnoy_Kingaly,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Stalnoy_Kingaly,Condition(function Trig_Stalnoy_Kingaly_Conditions))
call TriggerAddAction(gg_trg_Stalnoy_Kingaly,function Trig_Stalnoy_Kingaly_Actions)endfunctionfunction Trig_Runicheskiy_dospeh_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03D')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gldo')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I08M')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Runicheskiy_dospeh_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I03D'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gldo'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08M'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I08N',GetTriggerUnit())
endfunctionfunction InitTrig_Runicheskiy_dospeh takes nothing returns nothingset gg_trg_Runicheskiy_dospeh=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Runicheskiy_dospeh,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Runicheskiy_dospeh,Condition(function Trig_Runicheskiy_dospeh_Conditions))call TriggerAddAction(gg_trg_Runicheskiy_dospeh,function Trig_Runicheskiy_dospeh_Actions)endfunctionfunction Trig_Stalnoy_gezl_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'wlsd')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gomn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stalnoy_gezl_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'wlsd'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gomn'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('wshs',GetTriggerUnit())
endfunctionfunction InitTrig_Stalnoy_gezl takes nothing returns nothing
set gg_trg_Stalnoy_gezl=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Stalnoy_gezl,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stalnoy_gezl,Condition(function Trig_Stalnoy_gezl_Conditions))call TriggerAddAction(gg_trg_Stalnoy_gezl,function Trig_Stalnoy_gezl_Actions)endfunctionfunction Trig_Stalnoy_trezubec_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'lure')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gomn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stalnoy_trezubec_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'lure'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gomn'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('shrs',GetTriggerUnit())
endfunctionfunction InitTrig_Stalnoy_trezubec takes nothing returns nothing
set gg_trg_Stalnoy_trezubec=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Stalnoy_trezubec,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stalnoy_trezubec,Condition(function Trig_Stalnoy_trezubec_Conditions))call TriggerAddAction(gg_trg_Stalnoy_trezubec,function Trig_Stalnoy_trezubec_Actions)endfunctionfunction Trig_Stalnoy_Kolchuga_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rde0')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gomn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stalnoy_Kolchuga_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rde0'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gomn'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('rde1',GetTriggerUnit())
endfunctionfunction InitTrig_Stalnoy_Kolchuga takes nothing returns nothing
set gg_trg_Stalnoy_Kolchuga=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Stalnoy_Kolchuga,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stalnoy_Kolchuga,Condition(function Trig_Stalnoy_Kolchuga_Conditions))call TriggerAddAction(gg_trg_Stalnoy_Kolchuga,function Trig_Stalnoy_Kolchuga_Actions)endfunctionfunction Trig_Stalnoy_Kolco_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ram3')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gomn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stalnoy_Kolco_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ram3'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gomn'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('brag',GetTriggerUnit())
endfunctionfunction InitTrig_Stalnoy_Kolco takes nothing returns nothingset gg_trg_Stalnoy_Kolco=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Stalnoy_Kolco,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stalnoy_Kolco,Condition(function Trig_Stalnoy_Kolco_Conditions))
call TriggerAddAction(gg_trg_Stalnoy_Kolco,function Trig_Stalnoy_Kolco_Actions)endfunctionfunction Trig_Stalnoy_Shit_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sksh')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gomn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stalnoy_Shit_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sksh'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gomn'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('fwss',GetTriggerUnit())
endfunctionfunction InitTrig_Stalnoy_Shit takes nothing returns nothing
set gg_trg_Stalnoy_Shit=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Stalnoy_Shit,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stalnoy_Shit,Condition(function Trig_Stalnoy_Shit_Conditions))call TriggerAddAction(gg_trg_Stalnoy_Shit,function Trig_Stalnoy_Shit_Actions)endfunctionfunction Trig_Stalnoy_Shit_2_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'cnob')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gomn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stalnoy_Shit_2_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'cnob'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gomn'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('tfar',GetTriggerUnit())
endfunctionfunction InitTrig_Stalnoy_Shit_2 takes nothing returns nothingset gg_trg_Stalnoy_Shit_2=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Stalnoy_Shit_2,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stalnoy_Shit_2,Condition(function Trig_Stalnoy_Shit_2_Conditions))call TriggerAddAction(gg_trg_Stalnoy_Shit_2,function Trig_Stalnoy_Shit_2_Actions)endfunctionfunction Trig_Stalnoy_Amulet_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'amrc')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gomn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stalnoy_Amulet_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'amrc'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gomn'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('evtl',GetTriggerUnit())
endfunctionfunction InitTrig_Stalnoy_Amulet takes nothing returns nothingset gg_trg_Stalnoy_Amulet=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Stalnoy_Amulet,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stalnoy_Amulet,Condition(function Trig_Stalnoy_Amulet_Conditions))call TriggerAddAction(gg_trg_Stalnoy_Amulet,function Trig_Stalnoy_Amulet_Actions)endfunctionfunction Trig_Stalnoy_Shlem_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'blba')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gomn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stalnoy_Shlem_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'blba'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gomn'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('crdt',GetTriggerUnit())
endfunctionfunction InitTrig_Stalnoy_Shlem takes nothing returns nothingset gg_trg_Stalnoy_Shlem=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Stalnoy_Shlem,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stalnoy_Shlem,Condition(function Trig_Stalnoy_Shlem_Conditions))
call TriggerAddAction(gg_trg_Stalnoy_Shlem,function Trig_Stalnoy_Shlem_Actions)endfunctionfunction Trig_Stalnoy_Sapogy_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'silk')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gomn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stalnoy_Sapogy_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'silk'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gomn'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('bspd',GetTriggerUnit())
endfunctionfunction InitTrig_Stalnoy_Sapogy takes nothing returns nothingset gg_trg_Stalnoy_Sapogy=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Stalnoy_Sapogy,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stalnoy_Sapogy,Condition(function Trig_Stalnoy_Sapogy_Conditions))call TriggerAddAction(gg_trg_Stalnoy_Sapogy,function Trig_Stalnoy_Sapogy_Actions)endfunctionfunction Trig_Stalnoy_MColco_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'jdrn')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gomn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stalnoy_MColco_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'jdrn'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gomn'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('sprn',GetTriggerUnit())
endfunctionfunction InitTrig_Stalnoy_MColco takes nothing returns nothingset gg_trg_Stalnoy_MColco=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Stalnoy_MColco,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stalnoy_MColco,Condition(function Trig_Stalnoy_MColco_Conditions))call TriggerAddAction(gg_trg_Stalnoy_MColco,function Trig_Stalnoy_MColco_Actions)endfunctionfunction Trig_Stalnoy_Plash_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'soul')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gomn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stalnoy_Plash_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'soul'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gomn'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('clfm',GetTriggerUnit())
endfunctionfunction InitTrig_Stalnoy_Plash takes nothing returns nothingset gg_trg_Stalnoy_Plash=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Stalnoy_Plash,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stalnoy_Plash,Condition(function Trig_Stalnoy_Plash_Conditions))
call TriggerAddAction(gg_trg_Stalnoy_Plash,function Trig_Stalnoy_Plash_Actions)endfunctionfunction Trig_Stalnoy_SPerchatky_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gcel')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gomn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stalnoy_SPerchatky_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gcel'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gomn'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('stre',GetTriggerUnit())
endfunctionfunction InitTrig_Stalnoy_SPerchatky takes nothing returns nothingset gg_trg_Stalnoy_SPerchatky=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Stalnoy_SPerchatky,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stalnoy_SPerchatky,Condition(function Trig_Stalnoy_SPerchatky_Conditions))call TriggerAddAction(gg_trg_Stalnoy_SPerchatky,function Trig_Stalnoy_SPerchatky_Actions)endfunctionfunction Trig_Mifriloviy_mech_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rat6')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gfor')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mifriloviy_mech_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rat6'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gfor'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('ratc',GetTriggerUnit())
endfunctionfunction InitTrig_Mifriloviy_mech takes nothing returns nothingset gg_trg_Mifriloviy_mech=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mifriloviy_mech,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Mifriloviy_mech,Condition(function Trig_Mifriloviy_mech_Conditions))
call TriggerAddAction(gg_trg_Mifriloviy_mech,function Trig_Mifriloviy_mech_Actions)endfunctionfunction Trig_Mifriloviy_topor_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'srbd')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gfor')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mifriloviy_topor_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'srbd'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gfor'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('srtl',GetTriggerUnit())
endfunctionfunction InitTrig_Mifriloviy_topor takes nothing returns nothing
set gg_trg_Mifriloviy_topor=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mifriloviy_topor,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mifriloviy_topor,Condition(function Trig_Mifriloviy_topor_Conditions))call TriggerAddAction(gg_trg_Mifriloviy_topor,function Trig_Mifriloviy_topor_Actions)endfunctionfunction Trig_Mifriloviy_molot_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'dsum')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gfor')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mifriloviy_molot_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'dsum'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gfor'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('rump',GetTriggerUnit())
endfunctionfunction InitTrig_Mifriloviy_molot takes nothing returns nothing
set gg_trg_Mifriloviy_molot=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mifriloviy_molot,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mifriloviy_molot,Condition(function Trig_Mifriloviy_molot_Conditions))call TriggerAddAction(gg_trg_Mifriloviy_molot,function Trig_Mifriloviy_molot_Actions)endfunctionfunction Trig_Mifriloviy_kogty_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sor2')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gfor')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mifriloviy_kogty_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sor2'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gfor'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('sor3',GetTriggerUnit())
endfunctionfunction InitTrig_Mifriloviy_kogty takes nothing returns nothing
set gg_trg_Mifriloviy_kogty=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mifriloviy_kogty,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mifriloviy_kogty,Condition(function Trig_Mifriloviy_kogty_Conditions))call TriggerAddAction(gg_trg_Mifriloviy_kogty,function Trig_Mifriloviy_kogty_Actions)endfunctionfunction Trig_Mifriloviy_perchatky_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sor7')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gfor')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mifriloviy_perchatky_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sor7'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gfor'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('odef',GetTriggerUnit())
endfunctionfunction InitTrig_Mifriloviy_perchatky takes nothing returns nothing
set gg_trg_Mifriloviy_perchatky=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mifriloviy_perchatky,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mifriloviy_perchatky,Condition(function Trig_Mifriloviy_perchatky_Conditions))call TriggerAddAction(gg_trg_Mifriloviy_perchatky,function Trig_Mifriloviy_perchatky_Actions)endfunctionfunction Trig_Mifriloviy_luk_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'afac')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gfor')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mifriloviy_luk_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'afac'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gfor'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('rag1',GetTriggerUnit())
endfunctionfunction InitTrig_Mifriloviy_luk takes nothing returns nothingset gg_trg_Mifriloviy_luk=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mifriloviy_luk,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mifriloviy_luk,Condition(function Trig_Mifriloviy_luk_Conditions))call TriggerAddAction(gg_trg_Mifriloviy_luk,function Trig_Mifriloviy_luk_Actions)endfunctionfunction Trig_Mifriloviy_Kingaly_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'frhg')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gfor')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mifriloviy_Kingaly_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'frhg'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gfor'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('iwbr',GetTriggerUnit())
endfunctionfunction InitTrig_Mifriloviy_Kingaly takes nothing returns nothingset gg_trg_Mifriloviy_Kingaly=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mifriloviy_Kingaly,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mifriloviy_Kingaly,Condition(function Trig_Mifriloviy_Kingaly_Conditions))call TriggerAddAction(gg_trg_Mifriloviy_Kingaly,function Trig_Mifriloviy_Kingaly_Actions)endfunctionfunction Trig_Orochiya_colchuga_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'kgal')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I08J')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I08N')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I056')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Orochiya_colchuga_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'kgal'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08J'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08N'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I056'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I057',GetTriggerUnit())
endfunctionfunction InitTrig_Orochiya_colchuga takes nothing returns nothingset gg_trg_Orochiya_colchuga=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Orochiya_colchuga,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Orochiya_colchuga,Condition(function Trig_Orochiya_colchuga_Conditions))
call TriggerAddAction(gg_trg_Orochiya_colchuga,function Trig_Orochiya_colchuga_Actions)endfunctionfunction Trig_Mifriloviy_gezl_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'wshs')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gfor')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mifriloviy_gezl_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'wshs'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gfor'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('fgfh',GetTriggerUnit())
endfunctionfunction InitTrig_Mifriloviy_gezl takes nothing returns nothingset gg_trg_Mifriloviy_gezl=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mifriloviy_gezl,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Mifriloviy_gezl,Condition(function Trig_Mifriloviy_gezl_Conditions))
call TriggerAddAction(gg_trg_Mifriloviy_gezl,function Trig_Mifriloviy_gezl_Actions)endfunctionfunction Trig_Mifriloviy_trezubec_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'shrs')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gfor')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mifriloviy_trezubec_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shrs'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gfor'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('stpg',GetTriggerUnit())
endfunctionfunction InitTrig_Mifriloviy_trezubec takes nothing returns nothingset gg_trg_Mifriloviy_trezubec=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mifriloviy_trezubec,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Mifriloviy_trezubec,Condition(function Trig_Mifriloviy_trezubec_Conditions))
call TriggerAddAction(gg_trg_Mifriloviy_trezubec,function Trig_Mifriloviy_trezubec_Actions)endfunctionfunction Trig_Mifriloviy_kolchuga_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rde1')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gfor')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mifriloviy_kolchuga_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rde1'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gfor'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('rde2',GetTriggerUnit())
endfunctionfunction InitTrig_Mifriloviy_kolchuga takes nothing returns nothingset gg_trg_Mifriloviy_kolchuga=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mifriloviy_kolchuga,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Mifriloviy_kolchuga,Condition(function Trig_Mifriloviy_kolchuga_Conditions))
call TriggerAddAction(gg_trg_Mifriloviy_kolchuga,function Trig_Mifriloviy_kolchuga_Actions)endfunctionfunction Trig_Mifriloviy_kolco_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'brag')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gfor')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mifriloviy_kolco_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'brag'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gfor'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('rlif',GetTriggerUnit())
endfunctionfunction InitTrig_Mifriloviy_kolco takes nothing returns nothing
set gg_trg_Mifriloviy_kolco=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mifriloviy_kolco,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mifriloviy_kolco,Condition(function Trig_Mifriloviy_kolco_Conditions))call TriggerAddAction(gg_trg_Mifriloviy_kolco,function Trig_Mifriloviy_kolco_Actions)endfunctionfunction Trig_Mifriloviy_Shit_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'fwss')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gfor')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mifriloviy_Shit_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'fwss'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gfor'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('arsh',GetTriggerUnit())
endfunctionfunction InitTrig_Mifriloviy_Shit takes nothing returns nothingset gg_trg_Mifriloviy_Shit=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mifriloviy_Shit,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Mifriloviy_Shit,Condition(function Trig_Mifriloviy_Shit_Conditions))
call TriggerAddAction(gg_trg_Mifriloviy_Shit,function Trig_Mifriloviy_Shit_Actions)endfunctionfunction Trig_Mifriloviy_Shit_2_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tfar')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gfor')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mifriloviy_Shit_2_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tfar'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gfor'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('anfg',GetTriggerUnit())
endfunctionfunction InitTrig_Mifriloviy_Shit_2 takes nothing returns nothingset gg_trg_Mifriloviy_Shit_2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Mifriloviy_Shit_2,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mifriloviy_Shit_2,Condition(function Trig_Mifriloviy_Shit_2_Conditions))
call TriggerAddAction(gg_trg_Mifriloviy_Shit_2,function Trig_Mifriloviy_Shit_2_Actions)endfunctionfunction Trig_Mifriloviy_Amulet_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'evtl')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gfor')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mifriloviy_Amulet_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'evtl'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gfor'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('bfhr',GetTriggerUnit())
endfunctionfunction InitTrig_Mifriloviy_Amulet takes nothing returns nothingset gg_trg_Mifriloviy_Amulet=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Mifriloviy_Amulet,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mifriloviy_Amulet,Condition(function Trig_Mifriloviy_Amulet_Conditions))
call TriggerAddAction(gg_trg_Mifriloviy_Amulet,function Trig_Mifriloviy_Amulet_Actions)endfunctionfunction Trig_Mifriloviy_Shlem_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'crdt')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gfor')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mifriloviy_Shlem_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'crdt'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gfor'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('hbth',GetTriggerUnit())
endfunctionfunction InitTrig_Mifriloviy_Shlem takes nothing returns nothing
set gg_trg_Mifriloviy_Shlem=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mifriloviy_Shlem,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mifriloviy_Shlem,Condition(function Trig_Mifriloviy_Shlem_Conditions))call TriggerAddAction(gg_trg_Mifriloviy_Shlem,function Trig_Mifriloviy_Shlem_Actions)endfunctionfunction Trig_Mifriloviy_Sapogy_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'bspd')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gfor')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mifriloviy_Sapogy_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'bspd'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gfor'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('belv',GetTriggerUnit())
endfunctionfunction InitTrig_Mifriloviy_Sapogy takes nothing returns nothingset gg_trg_Mifriloviy_Sapogy=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Mifriloviy_Sapogy,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mifriloviy_Sapogy,Condition(function Trig_Mifriloviy_Sapogy_Conditions))
call TriggerAddAction(gg_trg_Mifriloviy_Sapogy,function Trig_Mifriloviy_Sapogy_Actions)endfunctionfunction Trig_Mifriloviy_MColco_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sprn')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gfor')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mifriloviy_MColco_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sprn'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gfor'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('rnsp',GetTriggerUnit())
endfunctionfunction InitTrig_Mifriloviy_MColco takes nothing returns nothingset gg_trg_Mifriloviy_MColco=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Mifriloviy_MColco,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mifriloviy_MColco,Condition(function Trig_Mifriloviy_MColco_Conditions))
call TriggerAddAction(gg_trg_Mifriloviy_MColco,function Trig_Mifriloviy_MColco_Actions)endfunctionfunction Trig_Mifriloviy_Mogilnic_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tbak')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gfor')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mifriloviy_Mogilnic_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tbak'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gfor'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('tbar',GetTriggerUnit())
endfunctionfunction InitTrig_Mifriloviy_Mogilnic takes nothing returns nothingset gg_trg_Mifriloviy_Mogilnic=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mifriloviy_Mogilnic,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Mifriloviy_Mogilnic,Condition(function Trig_Mifriloviy_Mogilnic_Conditions))
call TriggerAddAction(gg_trg_Mifriloviy_Mogilnic,function Trig_Mifriloviy_Mogilnic_Actions)endfunctionfunction Trig_Mifriloviy_Plash_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'clfm')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gfor')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mifriloviy_Plash_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'clfm'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gfor'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('rin1',GetTriggerUnit())
endfunctionfunction InitTrig_Mifriloviy_Plash takes nothing returns nothing
set gg_trg_Mifriloviy_Plash=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mifriloviy_Plash,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mifriloviy_Plash,Condition(function Trig_Mifriloviy_Plash_Conditions))call TriggerAddAction(gg_trg_Mifriloviy_Plash,function Trig_Mifriloviy_Plash_Actions)endfunctionfunction Trig_Mifriloviy_SPerchatky_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'stre')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gfor')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mifriloviy_SPerchatky_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'stre'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gfor'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('rst1',GetTriggerUnit())
endfunctionfunction InitTrig_Mifriloviy_SPerchatky takes nothing returns nothingset gg_trg_Mifriloviy_SPerchatky=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Mifriloviy_SPerchatky,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mifriloviy_SPerchatky,Condition(function Trig_Mifriloviy_SPerchatky_Conditions))
call TriggerAddAction(gg_trg_Mifriloviy_SPerchatky,function Trig_Mifriloviy_SPerchatky_Actions)endfunctionfunction Trig_Adamantoviy_mech_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ratc')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'guvi')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Adamantoviy_mech_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ratc'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'guvi'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('rat3',GetTriggerUnit())
endfunctionfunction InitTrig_Adamantoviy_mech takes nothing returns nothing
set gg_trg_Adamantoviy_mech=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Adamantoviy_mech,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Adamantoviy_mech,Condition(function Trig_Adamantoviy_mech_Conditions))call TriggerAddAction(gg_trg_Adamantoviy_mech,function Trig_Adamantoviy_mech_Actions)endfunctionfunction Trig_Adamantoviy_topor_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'srtl')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'guvi')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Adamantoviy_topor_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'srtl'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'guvi'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('tmmt',GetTriggerUnit())
endfunctionfunction InitTrig_Adamantoviy_topor takes nothing returns nothingset gg_trg_Adamantoviy_topor=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Adamantoviy_topor,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Adamantoviy_topor,Condition(function Trig_Adamantoviy_topor_Conditions))
call TriggerAddAction(gg_trg_Adamantoviy_topor,function Trig_Adamantoviy_topor_Actions)endfunctionfunction Trig_Adamantoviy_molot_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rump')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'guvi')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Adamantoviy_molot_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rump'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'guvi'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('lhst',GetTriggerUnit())
endfunctionfunction InitTrig_Adamantoviy_molot takes nothing returns nothingset gg_trg_Adamantoviy_molot=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Adamantoviy_molot,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Adamantoviy_molot,Condition(function Trig_Adamantoviy_molot_Conditions))
call TriggerAddAction(gg_trg_Adamantoviy_molot,function Trig_Adamantoviy_molot_Actions)endfunctionfunction Trig_Adamantoviy_kogty_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sor3')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'guvi')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Adamantoviy_kogty_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sor3'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'guvi'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('sor4',GetTriggerUnit())
endfunctionfunction InitTrig_Adamantoviy_kogty takes nothing returns nothingset gg_trg_Adamantoviy_kogty=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Adamantoviy_kogty,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Adamantoviy_kogty,Condition(function Trig_Adamantoviy_kogty_Conditions))
call TriggerAddAction(gg_trg_Adamantoviy_kogty,function Trig_Adamantoviy_kogty_Actions)endfunctionfunction Trig_Adamantoviy_perchatky_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'odef')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'guvi')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Adamantoviy_perchatky_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'odef'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'guvi'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('lgdh',GetTriggerUnit())
endfunctionfunction InitTrig_Adamantoviy_perchatky takes nothing returns nothingset gg_trg_Adamantoviy_perchatky=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Adamantoviy_perchatky,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Adamantoviy_perchatky,Condition(function Trig_Adamantoviy_perchatky_Conditions))
call TriggerAddAction(gg_trg_Adamantoviy_perchatky,function Trig_Adamantoviy_perchatky_Actions)endfunctionfunction Trig_Adamantoviy_luk_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rag1')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'guvi')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Adamantoviy_luk_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rag1'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'guvi'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('crys',GetTriggerUnit())
endfunctionfunction InitTrig_Adamantoviy_luk takes nothing returns nothingset gg_trg_Adamantoviy_luk=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Adamantoviy_luk,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Adamantoviy_luk,Condition(function Trig_Adamantoviy_luk_Conditions))
call TriggerAddAction(gg_trg_Adamantoviy_luk,function Trig_Adamantoviy_luk_Actions)endfunctionfunction Trig_Adamantoviy_Kingaly_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'iwbr')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'guvi')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Adamantoviy_Kingaly_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'iwbr'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'guvi'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('spre',GetTriggerUnit())
endfunctionfunction InitTrig_Adamantoviy_Kingaly takes nothing returns nothingset gg_trg_Adamantoviy_Kingaly=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Adamantoviy_Kingaly,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Adamantoviy_Kingaly,Condition(function Trig_Adamantoviy_Kingaly_Conditions))
call TriggerAddAction(gg_trg_Adamantoviy_Kingaly,function Trig_Adamantoviy_Kingaly_Actions)endfunctionfunction Trig_Gertvenniy_kingal_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04E')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'vddl')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I08P')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gertvenniy_kingal_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'vddl'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04E'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08P'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I08O',GetTriggerUnit())
endfunctionfunction InitTrig_Gertvenniy_kingal takes nothing returns nothingset gg_trg_Gertvenniy_kingal=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Gertvenniy_kingal,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Gertvenniy_kingal,Condition(function Trig_Gertvenniy_kingal_Conditions))
call TriggerAddAction(gg_trg_Gertvenniy_kingal,function Trig_Gertvenniy_kingal_Actions)endfunctionfunction Trig_Adamantoviy_gezl_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'fgfh')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'guvi')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Adamantoviy_gezl_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'fgfh'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'guvi'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('fgrd',GetTriggerUnit())
endfunctionfunction InitTrig_Adamantoviy_gezl takes nothing returns nothing
set gg_trg_Adamantoviy_gezl=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Adamantoviy_gezl,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Adamantoviy_gezl,Condition(function Trig_Adamantoviy_gezl_Conditions))call TriggerAddAction(gg_trg_Adamantoviy_gezl,function Trig_Adamantoviy_gezl_Actions)endfunctionfunction Trig_Adamantoviy_trezubec_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'stpg')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'guvi')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Adamantoviy_trezubec_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'stpg'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'guvi'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('tbsm',GetTriggerUnit())
endfunctionfunction InitTrig_Adamantoviy_trezubec takes nothing returns nothing
set gg_trg_Adamantoviy_trezubec=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Adamantoviy_trezubec,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Adamantoviy_trezubec,Condition(function Trig_Adamantoviy_trezubec_Conditions))call TriggerAddAction(gg_trg_Adamantoviy_trezubec,function Trig_Adamantoviy_trezubec_Actions)endfunctionfunction Trig_Adamantoviy_Kolchuga_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rde2')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'guvi')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Adamantoviy_Kolchuga_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rde2'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'guvi'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('rde3',GetTriggerUnit())
endfunctionfunction InitTrig_Adamantoviy_Kolchuga takes nothing returns nothing
set gg_trg_Adamantoviy_Kolchuga=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Adamantoviy_Kolchuga,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Adamantoviy_Kolchuga,Condition(function Trig_Adamantoviy_Kolchuga_Conditions))call TriggerAddAction(gg_trg_Adamantoviy_Kolchuga,function Trig_Adamantoviy_Kolchuga_Actions)endfunctionfunction Trig_Adamantoviy_Kolco_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rlif')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'guvi')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Adamantoviy_Kolco_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rlif'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'guvi'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('ram4',GetTriggerUnit())
endfunctionfunction InitTrig_Adamantoviy_Kolco takes nothing returns nothingset gg_trg_Adamantoviy_Kolco=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Adamantoviy_Kolco,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Adamantoviy_Kolco,Condition(function Trig_Adamantoviy_Kolco_Conditions))
call TriggerAddAction(gg_trg_Adamantoviy_Kolco,function Trig_Adamantoviy_Kolco_Actions)endfunctionfunction Trig_Adamantoviy_Shit_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'arsh')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'guvi')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Adamantoviy_Shit_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'arsh'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'guvi'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('stel',GetTriggerUnit())
endfunctionfunction InitTrig_Adamantoviy_Shit takes nothing returns nothing
set gg_trg_Adamantoviy_Shit=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Adamantoviy_Shit,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Adamantoviy_Shit,Condition(function Trig_Adamantoviy_Shit_Conditions))call TriggerAddAction(gg_trg_Adamantoviy_Shit,function Trig_Adamantoviy_Shit_Actions)endfunctionfunction Trig_Adamantoviy_Shit_2_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'anfg')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'guvi')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Adamantoviy_Shit_2_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'anfg'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'guvi'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('shhn',GetTriggerUnit())
endfunctionfunction InitTrig_Adamantoviy_Shit_2 takes nothing returns nothingset gg_trg_Adamantoviy_Shit_2=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Adamantoviy_Shit_2,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Adamantoviy_Shit_2,Condition(function Trig_Adamantoviy_Shit_2_Conditions))call TriggerAddAction(gg_trg_Adamantoviy_Shit_2,function Trig_Adamantoviy_Shit_2_Actions)endfunctionfunction Trig_Adamantoviy_Amulet_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'bfhr')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'guvi')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Adamantoviy_Amulet_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'bfhr'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'guvi'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('rots',GetTriggerUnit())
endfunctionfunction InitTrig_Adamantoviy_Amulet takes nothing returns nothingset gg_trg_Adamantoviy_Amulet=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Adamantoviy_Amulet,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Adamantoviy_Amulet,Condition(function Trig_Adamantoviy_Amulet_Conditions))call TriggerAddAction(gg_trg_Adamantoviy_Amulet,function Trig_Adamantoviy_Amulet_Actions)endfunctionfunction Trig_Adamantoviy_Shlem_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'hbth')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'guvi')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Adamantoviy_Shlem_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'hbth'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'guvi'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('ckng',GetTriggerUnit())
endfunctionfunction InitTrig_Adamantoviy_Shlem takes nothing returns nothingset gg_trg_Adamantoviy_Shlem=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Adamantoviy_Shlem,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Adamantoviy_Shlem,Condition(function Trig_Adamantoviy_Shlem_Conditions))
call TriggerAddAction(gg_trg_Adamantoviy_Shlem,function Trig_Adamantoviy_Shlem_Actions)endfunctionfunction Trig_Adamantoviy_Sapogy_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'belv')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'guvi')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Adamantoviy_Sapogy_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'belv'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'guvi'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('wild',GetTriggerUnit())
endfunctionfunction InitTrig_Adamantoviy_Sapogy takes nothing returns nothingset gg_trg_Adamantoviy_Sapogy=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Adamantoviy_Sapogy,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Adamantoviy_Sapogy,Condition(function Trig_Adamantoviy_Sapogy_Conditions))call TriggerAddAction(gg_trg_Adamantoviy_Sapogy,function Trig_Adamantoviy_Sapogy_Actions)endfunctionfunction Trig_Adamantoviy_MColco_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rnsp')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'guvi')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Adamantoviy_MColco_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rnsp'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'guvi'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('lnrn',GetTriggerUnit())
endfunctionfunction InitTrig_Adamantoviy_MColco takes nothing returns nothingset gg_trg_Adamantoviy_MColco=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Adamantoviy_MColco,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Adamantoviy_MColco,Condition(function Trig_Adamantoviy_MColco_Conditions))call TriggerAddAction(gg_trg_Adamantoviy_MColco,function Trig_Adamantoviy_MColco_Actions)endfunctionfunction Trig_Adamantoviy_Plash_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rin1')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'guvi')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Adamantoviy_Plash_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rin1'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'guvi'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('mcou',GetTriggerUnit())
endfunctionfunction InitTrig_Adamantoviy_Plash takes nothing returns nothingset gg_trg_Adamantoviy_Plash=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Adamantoviy_Plash,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Adamantoviy_Plash,Condition(function Trig_Adamantoviy_Plash_Conditions))
call TriggerAddAction(gg_trg_Adamantoviy_Plash,function Trig_Adamantoviy_Plash_Actions)endfunctionfunction Trig_Adamantoviy_SPerchatky_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rst1')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'guvi')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Adamantoviy_SPerchatky_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rst1'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'guvi'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('brac',GetTriggerUnit())
endfunctionfunction InitTrig_Adamantoviy_SPerchatky takes nothing returns nothingset gg_trg_Adamantoviy_SPerchatky=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Adamantoviy_SPerchatky,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Adamantoviy_SPerchatky,Condition(function Trig_Adamantoviy_SPerchatky_Conditions))call TriggerAddAction(gg_trg_Adamantoviy_SPerchatky,function Trig_Adamantoviy_SPerchatky_Actions)endfunctionfunction Trig_Krovaviy_mech_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rat3')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tpow')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Krovaviy_mech_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rat3'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tpow'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('frgd',GetTriggerUnit())
endfunctionfunction InitTrig_Krovaviy_mech takes nothing returns nothingset gg_trg_Krovaviy_mech=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Krovaviy_mech,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Krovaviy_mech,Condition(function Trig_Krovaviy_mech_Conditions))
call TriggerAddAction(gg_trg_Krovaviy_mech,function Trig_Krovaviy_mech_Actions)endfunctionfunction Trig_Krovaviy_topor_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tmmt')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tpow')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Krovaviy_topor_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tmmt'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tpow'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('hval',GetTriggerUnit())
endfunctionfunction InitTrig_Krovaviy_topor takes nothing returns nothingset gg_trg_Krovaviy_topor=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Krovaviy_topor,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Krovaviy_topor,Condition(function Trig_Krovaviy_topor_Conditions))call TriggerAddAction(gg_trg_Krovaviy_topor,function Trig_Krovaviy_topor_Actions)endfunctionfunction Trig_Krovaviy_molot_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'lhst')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tpow')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Krovaviy_molot_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'lhst'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tpow'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('ssil',GetTriggerUnit())
endfunctionfunction InitTrig_Krovaviy_molot takes nothing returns nothingset gg_trg_Krovaviy_molot=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Krovaviy_molot,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Krovaviy_molot,Condition(function Trig_Krovaviy_molot_Conditions))call TriggerAddAction(gg_trg_Krovaviy_molot,function Trig_Krovaviy_molot_Actions)endfunctionfunction Trig_Krovaviy_kogty_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sor4')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tpow')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Krovaviy_kogty_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sor4'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tpow'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('sor5',GetTriggerUnit())
endfunctionfunction InitTrig_Krovaviy_kogty takes nothing returns nothingset gg_trg_Krovaviy_kogty=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Krovaviy_kogty,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Krovaviy_kogty,Condition(function Trig_Krovaviy_kogty_Conditions))call TriggerAddAction(gg_trg_Krovaviy_kogty,function Trig_Krovaviy_kogty_Actions)endfunctionfunction Trig_Krovaviy_perchatky_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'lgdh')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tpow')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Krovaviy_perchatky_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'lgdh'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tpow'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('sor8',GetTriggerUnit())
endfunctionfunction InitTrig_Krovaviy_perchatky takes nothing returns nothingset gg_trg_Krovaviy_perchatky=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Krovaviy_perchatky,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Krovaviy_perchatky,Condition(function Trig_Krovaviy_perchatky_Conditions))call TriggerAddAction(gg_trg_Krovaviy_perchatky,function Trig_Krovaviy_perchatky_Actions)endfunctionfunction Trig_Krovaviy_luk_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'crys')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tpow')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Krovaviy_luk_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'crys'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tpow'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('kpin',GetTriggerUnit())
endfunctionfunction InitTrig_Krovaviy_luk takes nothing returns nothing
set gg_trg_Krovaviy_luk=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Krovaviy_luk,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Krovaviy_luk,Condition(function Trig_Krovaviy_luk_Conditions))call TriggerAddAction(gg_trg_Krovaviy_luk,function Trig_Krovaviy_luk_Actions)endfunctionfunction Trig_Krovaviy_Kingaly_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'spre')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tpow')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Krovaviy_Kingaly_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'spre'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tpow'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('gsou',GetTriggerUnit())
endfunctionfunction InitTrig_Krovaviy_Kingaly takes nothing returns nothing
set gg_trg_Krovaviy_Kingaly=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Krovaviy_Kingaly,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Krovaviy_Kingaly,Condition(function Trig_Krovaviy_Kingaly_Conditions))call TriggerAddAction(gg_trg_Krovaviy_Kingaly,function Trig_Krovaviy_Kingaly_Actions)endfunctionfunction Trig_Oskvernitel_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'fgsk')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I08O')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'azhr')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I054')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Oskvernitel_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'fgsk'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'azhr'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08O'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I054'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I055',GetTriggerUnit())
endfunctionfunction InitTrig_Oskvernitel takes nothing returns nothingset gg_trg_Oskvernitel=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Oskvernitel,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Oskvernitel,Condition(function Trig_Oskvernitel_Conditions))
call TriggerAddAction(gg_trg_Oskvernitel,function Trig_Oskvernitel_Actions)endfunctionfunction Trig_Krovaviy_gezl_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'fgrd')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tpow')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Krovaviy_gezl_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'fgrd'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tpow'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('fgdg',GetTriggerUnit())
endfunctionfunction InitTrig_Krovaviy_gezl takes nothing returns nothingset gg_trg_Krovaviy_gezl=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Krovaviy_gezl,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Krovaviy_gezl,Condition(function Trig_Krovaviy_gezl_Conditions))
call TriggerAddAction(gg_trg_Krovaviy_gezl,function Trig_Krovaviy_gezl_Actions)endfunctionfunction Trig_Krovaviy_trezubec_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tbsm')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tpow')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Krovaviy_trezubec_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tbsm'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tpow'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('tlum',GetTriggerUnit())
endfunctionfunction InitTrig_Krovaviy_trezubec takes nothing returns nothingset gg_trg_Krovaviy_trezubec=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Krovaviy_trezubec,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Krovaviy_trezubec,Condition(function Trig_Krovaviy_trezubec_Conditions))
call TriggerAddAction(gg_trg_Krovaviy_trezubec,function Trig_Krovaviy_trezubec_Actions)endfunctionfunction Trig_Krovaviy_Kolchuga_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rde3')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tpow')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Krovaviy_Kolchuga_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rde3'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tpow'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('sfog',GetTriggerUnit())
endfunctionfunction InitTrig_Krovaviy_Kolchuga takes nothing returns nothingset gg_trg_Krovaviy_Kolchuga=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Krovaviy_Kolchuga,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Krovaviy_Kolchuga,Condition(function Trig_Krovaviy_Kolchuga_Conditions))
call TriggerAddAction(gg_trg_Krovaviy_Kolchuga,function Trig_Krovaviy_Kolchuga_Actions)endfunctionfunction Trig_Krovaviy_Kolco_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ram4')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tpow')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Krovaviy_Kolco_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ram4'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tpow'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('ram1',GetTriggerUnit())
endfunctionfunction InitTrig_Krovaviy_Kolco takes nothing returns nothingset gg_trg_Krovaviy_Kolco=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Krovaviy_Kolco,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Krovaviy_Kolco,Condition(function Trig_Krovaviy_Kolco_Conditions))call TriggerAddAction(gg_trg_Krovaviy_Kolco,function Trig_Krovaviy_Kolco_Actions)endfunctionfunction Trig_Krovaviy_Shit_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'stel')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tpow')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Krovaviy_Shit_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'stel'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tpow'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('rwiz',GetTriggerUnit())
endfunctionfunction InitTrig_Krovaviy_Shit takes nothing returns nothingset gg_trg_Krovaviy_Shit=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Krovaviy_Shit,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Krovaviy_Shit,Condition(function Trig_Krovaviy_Shit_Conditions))
call TriggerAddAction(gg_trg_Krovaviy_Shit,function Trig_Krovaviy_Shit_Actions)endfunctionfunction Trig_Krovaviy_Shit_2_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'shhn')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tpow')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Krovaviy_Shit_2_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shhn'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tpow'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('shen',GetTriggerUnit())
endfunctionfunction InitTrig_Krovaviy_Shit_2 takes nothing returns nothingset gg_trg_Krovaviy_Shit_2=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Krovaviy_Shit_2,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Krovaviy_Shit_2,Condition(function Trig_Krovaviy_Shit_2_Conditions))
call TriggerAddAction(gg_trg_Krovaviy_Shit_2,function Trig_Krovaviy_Shit_2_Actions)endfunctionfunction Trig_Krovaviy_Amulet_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rots')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tpow')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Krovaviy_Amulet_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rots'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tpow'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('wneg',GetTriggerUnit())
endfunctionfunction InitTrig_Krovaviy_Amulet takes nothing returns nothingset gg_trg_Krovaviy_Amulet=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Krovaviy_Amulet,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Krovaviy_Amulet,Condition(function Trig_Krovaviy_Amulet_Conditions))
call TriggerAddAction(gg_trg_Krovaviy_Amulet,function Trig_Krovaviy_Amulet_Actions)endfunctionfunction Trig_Krovaviy_Shlem_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ckng')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tpow')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Krovaviy_Shlem_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ckng'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tpow'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('hcun',GetTriggerUnit())
endfunctionfunction InitTrig_Krovaviy_Shlem takes nothing returns nothingset gg_trg_Krovaviy_Shlem=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Krovaviy_Shlem,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Krovaviy_Shlem,Condition(function Trig_Krovaviy_Shlem_Conditions))call TriggerAddAction(gg_trg_Krovaviy_Shlem,function Trig_Krovaviy_Shlem_Actions)endfunctionfunction Trig_Krovaviy_Sapogy_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'wild')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tpow')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Krovaviy_Sapogy_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'wild'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tpow'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('ratf',GetTriggerUnit())
endfunctionfunction InitTrig_Krovaviy_Sapogy takes nothing returns nothingset gg_trg_Krovaviy_Sapogy=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Krovaviy_Sapogy,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Krovaviy_Sapogy,Condition(function Trig_Krovaviy_Sapogy_Conditions))
call TriggerAddAction(gg_trg_Krovaviy_Sapogy,function Trig_Krovaviy_Sapogy_Actions)endfunctionfunction Trig_Krovaviy_MColco_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'lnrn')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tpow')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Krovaviy_MColco_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'lnrn'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tpow'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('fgun',GetTriggerUnit())
endfunctionfunction InitTrig_Krovaviy_MColco takes nothing returns nothingset gg_trg_Krovaviy_MColco=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Krovaviy_MColco,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Krovaviy_MColco,Condition(function Trig_Krovaviy_MColco_Conditions))
call TriggerAddAction(gg_trg_Krovaviy_MColco,function Trig_Krovaviy_MColco_Actions)endfunctionfunction Trig_Shlem_mev_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'hcun')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02A')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09K')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_mev_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'hcun'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02A'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09K'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I09J',GetTriggerUnit())
endfunctionfunction InitTrig_Shlem_mev takes nothing returns nothingset gg_trg_Shlem_mev=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Shlem_mev,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Shlem_mev,Condition(function Trig_Shlem_mev_Conditions))
call TriggerAddAction(gg_trg_Shlem_mev,function Trig_Shlem_mev_Actions)endfunctionfunction Trig_Krovaviy_Plash_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'mcou')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tpow')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Krovaviy_Plash_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'mcou'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tpow'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('ciri',GetTriggerUnit())
endfunctionfunction InitTrig_Krovaviy_Plash takes nothing returns nothingset gg_trg_Krovaviy_Plash=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Krovaviy_Plash,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Krovaviy_Plash,Condition(function Trig_Krovaviy_Plash_Conditions))call TriggerAddAction(gg_trg_Krovaviy_Plash,function Trig_Krovaviy_Plash_Actions)endfunctionfunction Trig_Krovaviy_SPerchatky_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'brac')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tpow')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Krovaviy_SPerchatky_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'brac'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tpow'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('bgst',GetTriggerUnit())
endfunctionfunction InitTrig_Krovaviy_SPerchatky takes nothing returns nothingset gg_trg_Krovaviy_SPerchatky=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Krovaviy_SPerchatky,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Krovaviy_SPerchatky,Condition(function Trig_Krovaviy_SPerchatky_Conditions))
call TriggerAddAction(gg_trg_Krovaviy_SPerchatky,function Trig_Krovaviy_SPerchatky_Actions)endfunctionfunction Trig_Luck_slez_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05T')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04E')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ktrm')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tkno')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Luck_slez_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05T'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04E'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ktrm'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tkno'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('modt',GetTriggerUnit())
endfunctionfunction InitTrig_Luck_slez takes nothing returns nothingset gg_trg_Luck_slez=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Luck_slez,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Luck_slez,Condition(function Trig_Luck_slez_Conditions))
call TriggerAddAction(gg_trg_Luck_slez,function Trig_Luck_slez_Actions)endfunctionfunction Trig_Zvezdnaya_korona_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ledg')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'k3m1')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'k3m2')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zvezdnaya_korona_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ledg'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'k3m1'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'k3m2'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('k3m3',GetTriggerUnit())
endfunctionfunction InitTrig_Zvezdnaya_korona takes nothing returns nothing
set gg_trg_Zvezdnaya_korona=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Zvezdnaya_korona,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Zvezdnaya_korona,Condition(function Trig_Zvezdnaya_korona_Conditions))call TriggerAddAction(gg_trg_Zvezdnaya_korona,function Trig_Zvezdnaya_korona_Actions)endfunctionfunction Trig_Plash_drevnih_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02F')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'pmna')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09G')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09E')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Plash_drevnih_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02F'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pmna'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09G'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09E'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I09F',GetTriggerUnit())
endfunctionfunction InitTrig_Plash_drevnih takes nothing returns nothingset gg_trg_Plash_drevnih=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Plash_drevnih,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Plash_drevnih,Condition(function Trig_Plash_drevnih_Conditions))
call TriggerAddAction(gg_trg_Plash_drevnih,function Trig_Plash_drevnih_Actions)endfunctionfunction Trig_Braslet_Azuny_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02K')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'azhr')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09H')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Braslet_Azuny_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02K'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'azhr'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09H'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I09I',GetTriggerUnit())
endfunctionfunction InitTrig_Braslet_Azuny takes nothing returns nothingset gg_trg_Braslet_Azuny=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Braslet_Azuny,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Braslet_Azuny,Condition(function Trig_Braslet_Azuny_Conditions))
call TriggerAddAction(gg_trg_Braslet_Azuny,function Trig_Braslet_Azuny_Actions)endfunctionfunction Trig_Grom_molot_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ssil')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00N')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ssan')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Grom_molot_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ssil'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00N'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ssan'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('wneu',GetTriggerUnit())
endfunctionfunction InitTrig_Grom_molot takes nothing returns nothingset gg_trg_Grom_molot=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Grom_molot,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Grom_molot,Condition(function Trig_Grom_molot_Conditions))call TriggerAddAction(gg_trg_Grom_molot,function Trig_Grom_molot_Actions)endfunctionfunction Trig_Trezubec_smerty_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tlum')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I004')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00U')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Trezubec_smerty_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tlum'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I004'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00U'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I00V',GetTriggerUnit())
endfunctionfunction InitTrig_Trezubec_smerty takes nothing returns nothingset gg_trg_Trezubec_smerty=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Trezubec_smerty,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Trezubec_smerty,Condition(function Trig_Trezubec_smerty_Conditions))
call TriggerAddAction(gg_trg_Trezubec_smerty,function Trig_Trezubec_smerty_Actions)endfunctionfunction Trig_Kopie_tmy_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tlum')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00Y')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I011')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kopie_tmy_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tlum'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00Y'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I011'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I012',GetTriggerUnit())
endfunctionfunction InitTrig_Kopie_tmy takes nothing returns nothingset gg_trg_Kopie_tmy=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Kopie_tmy,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Kopie_tmy,Condition(function Trig_Kopie_tmy_Conditions))
call TriggerAddAction(gg_trg_Kopie_tmy,function Trig_Kopie_tmy_Actions)endfunctionfunction Trig_Kolco_tmy_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'fgun')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00Y')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I015')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kolco_tmy_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'fgun'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00Y'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I015'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I016',GetTriggerUnit())
endfunctionfunction InitTrig_Kolco_tmy takes nothing returns nothingset gg_trg_Kolco_tmy=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Kolco_tmy,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Kolco_tmy,Condition(function Trig_Kolco_tmy_Conditions))
call TriggerAddAction(gg_trg_Kolco_tmy,function Trig_Kolco_tmy_Actions)endfunctionfunction Trig_Shit_necromanta_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rwiz')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00Y')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I013')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_necromanta_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rwiz'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00Y'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I013'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I014',GetTriggerUnit())
endfunctionfunction InitTrig_Shit_necromanta takes nothing returns nothingset gg_trg_Shit_necromanta=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Shit_necromanta,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Shit_necromanta,Condition(function Trig_Shit_necromanta_Conditions))
call TriggerAddAction(gg_trg_Shit_necromanta,function Trig_Shit_necromanta_Actions)endfunctionfunction Trig_Mech_adskogo_plameny_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'frgd')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'shar')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00H')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_adskogo_plameny_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'frgd'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00H'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shar'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I00I',GetTriggerUnit())
endfunctionfunction InitTrig_Mech_adskogo_plameny takes nothing returns nothing
set gg_trg_Mech_adskogo_plameny=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mech_adskogo_plameny,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mech_adskogo_plameny,Condition(function Trig_Mech_adskogo_plameny_Conditions))call TriggerAddAction(gg_trg_Mech_adskogo_plameny,function Trig_Mech_adskogo_plameny_Actions)endfunctionfunction Trig_Mech_poglosheniya_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'frgd')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01P')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I017')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_poglosheniya_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'frgd'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01P'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I017'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I01H',GetTriggerUnit())
endfunctionfunction InitTrig_Mech_poglosheniya takes nothing returns nothingset gg_trg_Mech_poglosheniya=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Mech_poglosheniya,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mech_poglosheniya,Condition(function Trig_Mech_poglosheniya_Conditions))
call TriggerAddAction(gg_trg_Mech_poglosheniya,function Trig_Mech_poglosheniya_Actions)endfunctionfunction Trig_Mech_vishego_vampira_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01H')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05Z')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'oli2')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I08B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_vishego_vampira_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05Z'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01H'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'oli2'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08B'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I08A',GetTriggerUnit())
endfunctionfunction InitTrig_Mech_vishego_vampira takes nothing returns nothing
set gg_trg_Mech_vishego_vampira=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mech_vishego_vampira,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mech_vishego_vampira,Condition(function Trig_Mech_vishego_vampira_Conditions))call TriggerAddAction(gg_trg_Mech_vishego_vampira,function Trig_Mech_vishego_vampira_Actions)endfunctionfunction Trig_Mech_angela_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'frgd')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I020')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01U')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_angela_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'frgd'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I020'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01U'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I01V',GetTriggerUnit())
endfunctionfunction InitTrig_Mech_angela takes nothing returns nothingset gg_trg_Mech_angela=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mech_angela,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Mech_angela,Condition(function Trig_Mech_angela_Conditions))
call TriggerAddAction(gg_trg_Mech_angela,function Trig_Mech_angela_Actions)endfunctionfunction Trig_Nit_vremeny_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'pnvu')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00T')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I08L')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Nit_vremeny_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pnvu'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00T'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08L'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I08K',GetTriggerUnit())
endfunctionfunction InitTrig_Nit_vremeny takes nothing returns nothingset gg_trg_Nit_vremeny=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Nit_vremeny,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Nit_vremeny,Condition(function Trig_Nit_vremeny_Conditions))
call TriggerAddAction(gg_trg_Nit_vremeny,function Trig_Nit_vremeny_Actions)endfunctionfunction Trig_Demonicheskaya_maska_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'hcun')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01P')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01O')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Demonicheskaya_maska_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'hcun'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01P'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01O'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I01Q',GetTriggerUnit())
endfunctionfunction InitTrig_Demonicheskaya_maska takes nothing returns nothing
set gg_trg_Demonicheskaya_maska=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Demonicheskaya_maska,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Demonicheskaya_maska,Condition(function Trig_Demonicheskaya_maska_Conditions))call TriggerAddAction(gg_trg_Demonicheskaya_maska,function Trig_Demonicheskaya_maska_Actions)endfunctionfunction Trig_Ritualnaya_perchatky_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sor8')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01P')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01R')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ritualnaya_perchatky_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01R'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01P'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sor8'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I01S',GetTriggerUnit())
endfunctionfunction InitTrig_Ritualnaya_perchatky takes nothing returns nothing
set gg_trg_Ritualnaya_perchatky=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ritualnaya_perchatky,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Ritualnaya_perchatky,Condition(function Trig_Ritualnaya_perchatky_Conditions))call TriggerAddAction(gg_trg_Ritualnaya_perchatky,function Trig_Ritualnaya_perchatky_Actions)endfunctionfunction Trig_Proklitaya_sekira_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'hval')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00C')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'pspd')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Proklitaya_sekira_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'hval'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00C'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pspd'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('engs',GetTriggerUnit())
endfunctionfunction InitTrig_Proklitaya_sekira takes nothing returns nothingset gg_trg_Proklitaya_sekira=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Proklitaya_sekira,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Proklitaya_sekira,Condition(function Trig_Proklitaya_sekira_Conditions))
call TriggerAddAction(gg_trg_Proklitaya_sekira,function Trig_Proklitaya_sekira_Actions)endfunctionfunction Trig_Astralniy_molot_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ssil')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03C')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00F')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Astralniy_molot_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ssil'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I03C'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00F'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I00G',GetTriggerUnit())
endfunctionfunction InitTrig_Astralniy_molot takes nothing returns nothingset gg_trg_Astralniy_molot=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Astralniy_molot,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Astralniy_molot,Condition(function Trig_Astralniy_molot_Conditions))
call TriggerAddAction(gg_trg_Astralniy_molot,function Trig_Astralniy_molot_Actions)endfunctionfunction Trig_Shit_molnii_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'shen')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00N')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I006')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_molnii_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shen'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00N'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I006'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I007',GetTriggerUnit())
endfunctionfunction InitTrig_Shit_molnii takes nothing returns nothingset gg_trg_Shit_molnii=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Shit_molnii,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Shit_molnii,Condition(function Trig_Shit_molnii_Conditions))
call TriggerAddAction(gg_trg_Shit_molnii,function Trig_Shit_molnii_Actions)endfunctionfunction Trig_Shit_yada_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'shen')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I004')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00W')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_yada_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shen'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I004'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00W'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I00X',GetTriggerUnit())
endfunctionfunction InitTrig_Shit_yada takes nothing returns nothingset gg_trg_Shit_yada=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Shit_yada,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Shit_yada,Condition(function Trig_Shit_yada_Conditions))
call TriggerAddAction(gg_trg_Shit_yada,function Trig_Shit_yada_Actions)endfunctionfunction Trig_Starinniy_krest_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'fgun')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I020')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01W')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Starinniy_krest_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'fgun'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I020'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01W'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I01X',GetTriggerUnit())
endfunctionfunction InitTrig_Starinniy_krest takes nothing returns nothingset gg_trg_Starinniy_krest=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Starinniy_krest,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Starinniy_krest,Condition(function Trig_Starinniy_krest_Conditions))
call TriggerAddAction(gg_trg_Starinniy_krest,function Trig_Starinniy_krest_Actions)endfunctionfunction Trig_Otravlennie_kingaly_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gsou')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I004')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00Z')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Otravlennie_kingaly_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gsou'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I004'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00Z'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I010',GetTriggerUnit())
endfunctionfunction InitTrig_Otravlennie_kingaly takes nothing returns nothingset gg_trg_Otravlennie_kingaly=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Otravlennie_kingaly,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Otravlennie_kingaly,Condition(function Trig_Otravlennie_kingaly_Conditions))
call TriggerAddAction(gg_trg_Otravlennie_kingaly,function Trig_Otravlennie_kingaly_Actions)endfunctionfunction Trig_Ognenniy_shit_sfera_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'shen')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'shar')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00K')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ognenniy_shit_sfera_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shen'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shar'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00K'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I00L',GetTriggerUnit())
endfunctionfunction InitTrig_Ognenniy_shit_sfera takes nothing returns nothingset gg_trg_Ognenniy_shit_sfera=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ognenniy_shit_sfera,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Ognenniy_shit_sfera,Condition(function Trig_Ognenniy_shit_sfera_Conditions))
call TriggerAddAction(gg_trg_Ognenniy_shit_sfera,function Trig_Ognenniy_shit_sfera_Actions)endfunctionfunction Trig_Povelitel_ognia_plash_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ciri')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'shar')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00M')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Povelitel_ognia_plash_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ciri'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shar'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00M'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I00O',GetTriggerUnit())
endfunctionfunction InitTrig_Povelitel_ognia_plash takes nothing returns nothingset gg_trg_Povelitel_ognia_plash=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Povelitel_ognia_plash,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Povelitel_ognia_plash,Condition(function Trig_Povelitel_ognia_plash_Conditions))
call TriggerAddAction(gg_trg_Povelitel_ognia_plash,function Trig_Povelitel_ognia_plash_Actions)endfunctionfunction Trig_Astralniy_shit_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'shen')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00D')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Astralniy_shit_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shen'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I03C'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00D'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I00E',GetTriggerUnit())
endfunctionfunction InitTrig_Astralniy_shit takes nothing returns nothingset gg_trg_Astralniy_shit=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Astralniy_shit,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Astralniy_shit,Condition(function Trig_Astralniy_shit_Conditions))call TriggerAddAction(gg_trg_Astralniy_shit,function Trig_Astralniy_shit_Actions)endfunctionfunction Trig_Shid_lda_sfera_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'shen')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00P')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00J')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shid_lda_sfera_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shen'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00P'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00J'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I00Q',GetTriggerUnit())
endfunctionfunction InitTrig_Shid_lda_sfera takes nothing returns nothingset gg_trg_Shid_lda_sfera=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Shid_lda_sfera,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Shid_lda_sfera,Condition(function Trig_Shid_lda_sfera_Conditions))call TriggerAddAction(gg_trg_Shid_lda_sfera,function Trig_Shid_lda_sfera_Actions)endfunctionfunction Trig_Kolco_lda_sfera_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ram1')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00R')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00J')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kolco_lda_sfera_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ram1'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00R'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00J'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I00S',GetTriggerUnit())
endfunctionfunction InitTrig_Kolco_lda_sfera takes nothing returns nothingset gg_trg_Kolco_lda_sfera=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kolco_lda_sfera,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Kolco_lda_sfera,Condition(function Trig_Kolco_lda_sfera_Conditions))
call TriggerAddAction(gg_trg_Kolco_lda_sfera,function Trig_Kolco_lda_sfera_Actions)endfunctionfunction Trig_Gezl_molnii_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'fgdg')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00N')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I008')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gezl_molnii_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'fgdg'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00N'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I008'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I009',GetTriggerUnit())
endfunctionfunction InitTrig_Gezl_molnii takes nothing returns nothingset gg_trg_Gezl_molnii=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Gezl_molnii,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Gezl_molnii,Condition(function Trig_Gezl_molnii_Conditions))
call TriggerAddAction(gg_trg_Gezl_molnii,function Trig_Gezl_molnii_Actions)endfunctionfunction Trig_Gezl_Astrala_sfera_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'fgdg')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03C')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gezl_Astrala_sfera_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'fgdg'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00A'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I03C'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I00B',GetTriggerUnit())
endfunctionfunction InitTrig_Gezl_Astrala_sfera takes nothing returns nothingset gg_trg_Gezl_Astrala_sfera=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Gezl_Astrala_sfera,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Gezl_Astrala_sfera,Condition(function Trig_Gezl_Astrala_sfera_Conditions))call TriggerAddAction(gg_trg_Gezl_Astrala_sfera,function Trig_Gezl_Astrala_sfera_Actions)endfunctionfunction Trig_Kingaly_vozmezdiya_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I010')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01M')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ktrm')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rnec')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kingaly_vozmezdiya_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I010'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01M'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ktrm'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rnec'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('mcri',GetTriggerUnit())
endfunctionfunction InitTrig_Kingaly_vozmezdiya takes nothing returns nothingset gg_trg_Kingaly_vozmezdiya=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kingaly_vozmezdiya,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Kingaly_vozmezdiya,Condition(function Trig_Kingaly_vozmezdiya_Conditions))call TriggerAddAction(gg_trg_Kingaly_vozmezdiya,function Trig_Kingaly_vozmezdiya_Actions)endfunctionfunction Trig_Dospehi_Titana_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03F')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02K')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'bgst')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I039')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'phlt')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Dospehi_Titana_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I03F'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'bgst'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02K'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I039'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'phlt'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('pinv',GetTriggerUnit())
endfunctionfunction InitTrig_Dospehi_Titana takes nothing returns nothingset gg_trg_Dospehi_Titana=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Dospehi_Titana,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Dospehi_Titana,Condition(function Trig_Dospehi_Titana_Conditions))call TriggerAddAction(gg_trg_Dospehi_Titana,function Trig_Dospehi_Titana_Actions)endfunctionfunction Trig_Laty_novoluniya_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I08N')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'moon')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04S')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Laty_novoluniya_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08N'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'moon'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04S'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I04T',GetTriggerUnit())
endfunctionfunction InitTrig_Laty_novoluniya takes nothing returns nothingset gg_trg_Laty_novoluniya=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Laty_novoluniya,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Laty_novoluniya,Condition(function Trig_Laty_novoluniya_Conditions))
call TriggerAddAction(gg_trg_Laty_novoluniya,function Trig_Laty_novoluniya_Actions)endfunctionfunction Trig_Shit_Kenariusa_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rwiz')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04Z')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'schl')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_Kenariusa_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rwiz'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04Z'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'schl'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('dkfw',GetTriggerUnit())
endfunctionfunction InitTrig_Shit_Kenariusa takes nothing returns nothingset gg_trg_Shit_Kenariusa=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Shit_Kenariusa,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Shit_Kenariusa,Condition(function Trig_Shit_Kenariusa_Conditions))call TriggerAddAction(gg_trg_Shit_Kenariusa,function Trig_Shit_Kenariusa_Actions)endfunctionfunction Trig_Plash_Chistoy_Enerdii_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09P')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02P')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02F')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ofro')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Plash_Chistoy_Enerdii_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09P'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02F'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02P'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ofro'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('rde4',GetTriggerUnit())
endfunctionfunction InitTrig_Plash_Chistoy_Enerdii takes nothing returns nothingset gg_trg_Plash_Chistoy_Enerdii=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Plash_Chistoy_Enerdii,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Plash_Chistoy_Enerdii,Condition(function Trig_Plash_Chistoy_Enerdii_Conditions))
call TriggerAddAction(gg_trg_Plash_Chistoy_Enerdii,function Trig_Plash_Chistoy_Enerdii_Actions)endfunctionfunction Trig_Dospehi_paladina_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sfog')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I000')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'dphe')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Dospehi_paladina_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sfog'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I000'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'dphe'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('gopr',GetTriggerUnit())
endfunctionfunction InitTrig_Dospehi_paladina takes nothing returns nothing
set gg_trg_Dospehi_paladina=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Dospehi_paladina,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Dospehi_paladina,Condition(function Trig_Dospehi_paladina_Conditions))call TriggerAddAction(gg_trg_Dospehi_paladina,function Trig_Dospehi_paladina_Actions)endfunctionfunction Trig_Zmeinnoe_kolco_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'wneg')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'fgun')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'axas')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zmeinnoe_kolco_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'wneg'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'fgun'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'axas'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('ches',GetTriggerUnit())
endfunctionfunction InitTrig_Zmeinnoe_kolco takes nothing returns nothingset gg_trg_Zmeinnoe_kolco=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Zmeinnoe_kolco,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Zmeinnoe_kolco,Condition(function Trig_Zmeinnoe_kolco_Conditions))call TriggerAddAction(gg_trg_Zmeinnoe_kolco,function Trig_Zmeinnoe_kolco_Actions)endfunctionfunction Trig_Sapogy_Fenicsa_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09I')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04C')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'prvt')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sapogy_Fenicsa_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04C'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09I'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'prvt'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('horl',GetTriggerUnit())
endfunctionfunction InitTrig_Sapogy_Fenicsa takes nothing returns nothingset gg_trg_Sapogy_Fenicsa=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sapogy_Fenicsa,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Sapogy_Fenicsa,Condition(function Trig_Sapogy_Fenicsa_Conditions))call TriggerAddAction(gg_trg_Sapogy_Fenicsa,function Trig_Sapogy_Fenicsa_Actions)endfunctionfunction Trig_Maska_izery_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01Q')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02A')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'oli2')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I08F')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Maska_izery_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01Q'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02A'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'oli2'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08F'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I08E',GetTriggerUnit())
endfunctionfunction InitTrig_Maska_izery takes nothing returns nothingset gg_trg_Maska_izery=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Maska_izery,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Maska_izery,Condition(function Trig_Maska_izery_Conditions))
call TriggerAddAction(gg_trg_Maska_izery,function Trig_Maska_izery_Actions)endfunctionfunction Trig_Lunnie_kogty_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04A')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02K')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'pomn')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05E')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Lunnie_kogty_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04A'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02K'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pomn'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05E'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I05F',GetTriggerUnit())
endfunctionfunction InitTrig_Lunnie_kogty takes nothing returns nothing
set gg_trg_Lunnie_kogty=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Lunnie_kogty,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Lunnie_kogty,Condition(function Trig_Lunnie_kogty_Conditions))call TriggerAddAction(gg_trg_Lunnie_kogty,function Trig_Lunnie_kogty_Actions)endfunctionfunction Trig_Raschlenitel_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05Z')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'dtsb')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0A5')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Raschlenitel_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'dtsb'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05Z'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0A5'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0A6',GetTriggerUnit())
endfunctionfunction InitTrig_Raschlenitel takes nothing returns nothing
set gg_trg_Raschlenitel=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Raschlenitel,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Raschlenitel,Condition(function Trig_Raschlenitel_Conditions))call TriggerAddAction(gg_trg_Raschlenitel,function Trig_Raschlenitel_Actions)endfunctionfunction Trig_Sword_padshih_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0A6')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I012')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0BD')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B7'))>=4))then
return false
endifreturn trueendfunctionfunction Trig_Sword_padshih_Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B7'))==4))then
return false
endifreturn trueendfunctionfunction Trig_Sword_padshih_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0A6'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I012'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BD'))if(Trig_Sword_padshih_Func005C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B7'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B7'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0B7'))-4))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0BE',GetTriggerUnit())
endfunctionfunction InitTrig_Sword_padshih takes nothing returns nothingset gg_trg_Sword_padshih=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Sword_padshih,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Sword_padshih,Condition(function Trig_Sword_padshih_Conditions))
call TriggerAddAction(gg_trg_Sword_padshih,function Trig_Sword_padshih_Actions)endfunctionfunction Trig_Gubitel_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I059')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'engs')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0BB')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gubitel_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I059'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'engs'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0BB'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0BC',GetTriggerUnit())
endfunctionfunction InitTrig_Gubitel takes nothing returns nothingset gg_trg_Gubitel=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Gubitel,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Gubitel,Condition(function Trig_Gubitel_Conditions))
call TriggerAddAction(gg_trg_Gubitel,function Trig_Gubitel_Actions)endfunctionfunction Trig_Lunniy_mech_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01V')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'pomn')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01M')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I08H')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Lunniy_mech_Actions takes nothing returns nothingcall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01V'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pomn'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01M'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call UnitAddItemByIdSwapped('desc',GetTriggerUnit())
endfunctionfunction InitTrig_Lunniy_mech takes nothing returns nothingset gg_trg_Lunniy_mech=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Lunniy_mech,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Lunniy_mech,Condition(function Trig_Lunniy_mech_Conditions))
call TriggerAddAction(gg_trg_Lunniy_mech,function Trig_Lunniy_mech_Actions)endfunctionfunction Trig_Shit_krovy_predmet_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rwiz')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'shen')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'oli2')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04U')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_krovy_predmet_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rwiz'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shen'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'oli2'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04U'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I04V',GetTriggerUnit())
endfunctionfunction InitTrig_Shit_krovy_predmet takes nothing returns nothingset gg_trg_Shit_krovy_predmet=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Shit_krovy_predmet,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Shit_krovy_predmet,Condition(function Trig_Shit_krovy_predmet_Conditions))call TriggerAddAction(gg_trg_Shit_krovy_predmet,function Trig_Shit_krovy_predmet_Actions)endfunctionfunction Trig_Serebrenniy_dospeh_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sfog')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rwiz')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03E')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Serebrenniy_dospeh_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sfog'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rwiz'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I03E'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I03D',GetTriggerUnit())
endfunctionfunction InitTrig_Serebrenniy_dospeh takes nothing returns nothingset gg_trg_Serebrenniy_dospeh=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Serebrenniy_dospeh,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Serebrenniy_dospeh,Condition(function Trig_Serebrenniy_dospeh_Conditions))call TriggerAddAction(gg_trg_Serebrenniy_dospeh,function Trig_Serebrenniy_dospeh_Actions)endfunctionfunction Trig_Titanoviy_dospeh_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sfog')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'shen')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03G')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Titanoviy_dospeh_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sfog'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shen'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I03G'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I03F',GetTriggerUnit())
endfunctionfunction InitTrig_Titanoviy_dospeh takes nothing returns nothing
set gg_trg_Titanoviy_dospeh=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Titanoviy_dospeh,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Titanoviy_dospeh,Condition(function Trig_Titanoviy_dospeh_Conditions))call TriggerAddAction(gg_trg_Titanoviy_dospeh,function Trig_Titanoviy_dospeh_Actions)endfunctionfunction Trig_Boevie_kogty_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sor5')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sor8')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Boevie_kogty_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sor5'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sor8'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04B'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I04A',GetTriggerUnit())
endfunctionfunction InitTrig_Boevie_kogty takes nothing returns nothing
set gg_trg_Boevie_kogty=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Boevie_kogty,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Boevie_kogty,Condition(function Trig_Boevie_kogty_Conditions))call TriggerAddAction(gg_trg_Boevie_kogty,function Trig_Boevie_kogty_Actions)endfunctionfunction Trig_Demonicheskiy_mech_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'frgd')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sor8')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I060')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Demonicheskiy_mech_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'frgd'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sor8'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I060'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I05Z',GetTriggerUnit())
endfunctionfunction InitTrig_Demonicheskiy_mech takes nothing returns nothingset gg_trg_Demonicheskiy_mech=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Demonicheskiy_mech,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Demonicheskiy_mech,Condition(function Trig_Demonicheskiy_mech_Conditions))call TriggerAddAction(gg_trg_Demonicheskiy_mech,function Trig_Demonicheskiy_mech_Actions)endfunctionfunction Trig_Izognutiy_kingal_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sor5')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gsou')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04F')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Izognutiy_kingal_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sor5'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gsou'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04F'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I04E',GetTriggerUnit())
endfunctionfunction InitTrig_Izognutiy_kingal takes nothing returns nothing
set gg_trg_Izognutiy_kingal=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Izognutiy_kingal,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Izognutiy_kingal,Condition(function Trig_Izognutiy_kingal_Conditions))call TriggerAddAction(gg_trg_Izognutiy_kingal,function Trig_Izognutiy_kingal_Actions)endfunctionfunction Trig_Sapogy_titana_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ratf')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'bgst')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sapogy_titana_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ratf'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'bgst'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04D'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I04C',GetTriggerUnit())
endfunctionfunction InitTrig_Sapogy_titana takes nothing returns nothingset gg_trg_Sapogy_titana=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Sapogy_titana,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Sapogy_titana,Condition(function Trig_Sapogy_titana_Conditions))
call TriggerAddAction(gg_trg_Sapogy_titana,function Trig_Sapogy_titana_Actions)endfunctionfunction Trig_Sapogy_druida_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ratf')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'fgun')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04H')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sapogy_druida_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ratf'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'fgun'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04H'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I04G',GetTriggerUnit())
endfunctionfunction InitTrig_Sapogy_druida takes nothing returns nothingset gg_trg_Sapogy_druida=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Sapogy_druida,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Sapogy_druida,Condition(function Trig_Sapogy_druida_Conditions))
call TriggerAddAction(gg_trg_Sapogy_druida,function Trig_Sapogy_druida_Actions)endfunctionfunction Trig_Ricarskiy_topor_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'hval')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02K')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05S')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ricarskiy_topor_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'hval'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02K'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05S'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I05R',GetTriggerUnit())
endfunctionfunction InitTrig_Ricarskiy_topor takes nothing returns nothingset gg_trg_Ricarskiy_topor=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ricarskiy_topor,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Ricarskiy_topor,Condition(function Trig_Ricarskiy_topor_Conditions))
call TriggerAddAction(gg_trg_Ricarskiy_topor,function Trig_Ricarskiy_topor_Actions)endfunctionfunction Trig_Ricarskiy_molot_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ssil')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02K')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05Y')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ricarskiy_molot_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ssil'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02K'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05Y'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I05X',GetTriggerUnit())
endfunctionfunction InitTrig_Ricarskiy_molot takes nothing returns nothingset gg_trg_Ricarskiy_molot=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ricarskiy_molot,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Ricarskiy_molot,Condition(function Trig_Ricarskiy_molot_Conditions))
call TriggerAddAction(gg_trg_Ricarskiy_molot,function Trig_Ricarskiy_molot_Actions)endfunctionfunction Trig_Luk_lunny_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'kpin')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gsou')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05U')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Luk_lunny_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'kpin'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gsou'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05U'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I05T',GetTriggerUnit())
endfunctionfunction InitTrig_Luk_lunny takes nothing returns nothingset gg_trg_Luk_lunny=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Luk_lunny,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Luk_lunny,Condition(function Trig_Luk_lunny_Conditions))
call TriggerAddAction(gg_trg_Luk_lunny,function Trig_Luk_lunny_Actions)endfunctionfunction Trig_Amulet_chistoty_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rhth')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'spsh')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09Q')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_chistoty_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rhth'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'spsh'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09Q'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I09P',GetTriggerUnit())
endfunctionfunction InitTrig_Amulet_chistoty takes nothing returns nothingset gg_trg_Amulet_chistoty=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Amulet_chistoty,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Amulet_chistoty,Condition(function Trig_Amulet_chistoty_Conditions))
call TriggerAddAction(gg_trg_Amulet_chistoty,function Trig_Amulet_chistoty_Actions)endfunctionfunction Trig_Nefritovoe_kopie_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tlum')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'oflg')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I052')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Nefritovoe_kopie_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tlum'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'oflg'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I052'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I053',GetTriggerUnit())
endfunctionfunction InitTrig_Nefritovoe_kopie takes nothing returns nothing
set gg_trg_Nefritovoe_kopie=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Nefritovoe_kopie,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Nefritovoe_kopie,Condition(function Trig_Nefritovoe_kopie_Conditions))call TriggerAddAction(gg_trg_Nefritovoe_kopie,function Trig_Nefritovoe_kopie_Actions)endfunctionfunction Trig_Poyas_necromanta_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02U')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02Z')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05W')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_necromanta_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02U'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02Z'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05W'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I05V',GetTriggerUnit())
endfunctionfunction InitTrig_Poyas_necromanta takes nothing returns nothing
set gg_trg_Poyas_necromanta=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Poyas_necromanta,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Poyas_necromanta,Condition(function Trig_Poyas_necromanta_Conditions))call TriggerAddAction(gg_trg_Poyas_necromanta,function Trig_Poyas_necromanta_Actions)endfunctionfunction Trig_Topor_nora_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'shtm')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05R')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'klmm')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))>=15))thenreturn false
endifreturn trueendfunctionfunction Trig_Topor_nora_Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))==15))thenreturn false
endifreturn trueendfunctionfunction Trig_Topor_nora_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shtm'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05R'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'klmm'))if(Trig_Topor_nora_Func005C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))-15))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('cosl',GetTriggerUnit())
endfunctionfunction InitTrig_Topor_nora takes nothing returns nothingset gg_trg_Topor_nora=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Topor_nora,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Topor_nora,Condition(function Trig_Topor_nora_Conditions))call TriggerAddAction(gg_trg_Topor_nora,function Trig_Topor_nora_Actions)endfunctionfunction Trig_Plash_ohotnika_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'will')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'))>=6))then
return false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))>=3))then
return false
endifreturn trueendfunctionfunction Trig_Plash_ohotnika_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'))==6))then
return false
endifreturn trueendfunctionfunction Trig_Plash_ohotnika_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))==3))then
return false
endifreturn trueendfunctionfunction Trig_Plash_ohotnika_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'will'))if(Trig_Plash_ohotnika_Func003C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'))-6))endifif(Trig_Plash_ohotnika_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))-3))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('tbak',GetTriggerUnit())
endfunctionfunction InitTrig_Plash_ohotnika takes nothing returns nothingset gg_trg_Plash_ohotnika=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Plash_ohotnika,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Plash_ohotnika,Condition(function Trig_Plash_ohotnika_Conditions))call TriggerAddAction(gg_trg_Plash_ohotnika,function Trig_Plash_ohotnika_Actions)endfunctionfunction Trig_Armirovanniy_plash_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tbak')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))>=5))then
return false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))>=4))then
return false
endifreturn trueendfunctionfunction Trig_Armirovanniy_plash_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))==5))then
return false
endifreturn trueendfunctionfunction Trig_Armirovanniy_plash_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))==4))then
return false
endifreturn trueendfunctionfunction Trig_Armirovanniy_plash_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tbak'))if(Trig_Armirovanniy_plash_Func003C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))-5))endifif(Trig_Armirovanniy_plash_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))-4))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('tels',GetTriggerUnit())
endfunctionfunction InitTrig_Armirovanniy_plash takes nothing returns nothingset gg_trg_Armirovanniy_plash=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Armirovanniy_plash,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Armirovanniy_plash,Condition(function Trig_Armirovanniy_plash_Conditions))call TriggerAddAction(gg_trg_Armirovanniy_plash,function Trig_Armirovanniy_plash_Actions)endfunctionfunction Trig_Plashenica_drakona_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tels')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'kgal')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))>=5))then
return false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I093'))>=1))then
return false
endifreturn trueendfunctionfunction Trig_Plashenica_drakona_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))==5))then
return false
endifreturn trueendfunctionfunction Trig_Plashenica_drakona_Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I093'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Plashenica_drakona_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tels'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'kgal'))if(Trig_Plashenica_drakona_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))-5))endifif(Trig_Plashenica_drakona_Func005C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I093'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I093'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I093'))-1))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('thdm',GetTriggerUnit())
endfunctionfunction InitTrig_Plashenica_drakona takes nothing returns nothingset gg_trg_Plashenica_drakona=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Plashenica_drakona,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Plashenica_drakona,Condition(function Trig_Plashenica_drakona_Conditions))call TriggerAddAction(gg_trg_Plashenica_drakona,function Trig_Plashenica_drakona_Actions)endfunctionfunction Trig_Botinky_ohotnika_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sror')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'))>=8))then
return false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))>=2))then
return false
endifreturn trueendfunctionfunction Trig_Botinky_ohotnika_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'))==8))then
return false
endifreturn trueendfunctionfunction Trig_Botinky_ohotnika_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))==2))then
return false
endifreturn trueendfunctionfunction Trig_Botinky_ohotnika_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sror'))if(Trig_Botinky_ohotnika_Func003C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'))-8))endifif(Trig_Botinky_ohotnika_Func004C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))-2))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('arsc',GetTriggerUnit())
endfunctionfunction InitTrig_Botinky_ohotnika takes nothing returns nothing
set gg_trg_Botinky_ohotnika=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Botinky_ohotnika,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Botinky_ohotnika,Condition(function Trig_Botinky_ohotnika_Conditions))call TriggerAddAction(gg_trg_Botinky_ohotnika,function Trig_Botinky_ohotnika_Actions)endfunctionfunction Trig_Bolotnie_botinky_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'arsc')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej4'))>=3))then
return false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))>=3))then
return false
endifreturn trueendfunctionfunction Trig_Bolotnie_botinky_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej4'))==3))then
return false
endifreturn trueendfunctionfunction Trig_Bolotnie_botinky_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))==3))then
return false
endifreturn trueendfunctionfunction Trig_Bolotnie_botinky_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'arsc'))if(Trig_Bolotnie_botinky_Func003C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej4'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej4'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej4'))-3))endifif(Trig_Bolotnie_botinky_Func004C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))-3))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('sand',GetTriggerUnit())
endfunctionfunction InitTrig_Bolotnie_botinky takes nothing returns nothing
set gg_trg_Bolotnie_botinky=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Bolotnie_botinky,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Bolotnie_botinky,Condition(function Trig_Bolotnie_botinky_Conditions))call TriggerAddAction(gg_trg_Bolotnie_botinky,function Trig_Bolotnie_botinky_Actions)endfunctionfunction Trig_Sapogy_mertveca_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sand')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ofir')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))>=4))then
return false
endifreturn trueendfunctionfunction Trig_Sapogy_mertveca_Func004C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))==4))then
return false
endifreturn trueendfunctionfunction Trig_Sapogy_mertveca_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sand'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ofir'))if(Trig_Sapogy_mertveca_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))-4))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('sreg',GetTriggerUnit())
endfunctionfunction InitTrig_Sapogy_mertveca takes nothing returns nothingset gg_trg_Sapogy_mertveca=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Sapogy_mertveca,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Sapogy_mertveca,Condition(function Trig_Sapogy_mertveca_Conditions))
call TriggerAddAction(gg_trg_Sapogy_mertveca,function Trig_Sapogy_mertveca_Actions)endfunctionfunction Trig_Perchatky_ohotnika_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sman')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'))>=4))then
return false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))>=2))then
return false
endifreturn trueendfunctionfunction Trig_Perchatky_ohotnika_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'))==4))then
return false
endifreturn trueendfunctionfunction Trig_Perchatky_ohotnika_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))==2))then
return false
endifreturn trueendfunctionfunction Trig_Perchatky_ohotnika_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sman'))if(Trig_Perchatky_ohotnika_Func003C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'))-4))endifif(Trig_Perchatky_ohotnika_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))-2))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('srrc',GetTriggerUnit())
endfunctionfunction InitTrig_Perchatky_ohotnika takes nothing returns nothingset gg_trg_Perchatky_ohotnika=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Perchatky_ohotnika,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Perchatky_ohotnika,Condition(function Trig_Perchatky_ohotnika_Conditions))call TriggerAddAction(gg_trg_Perchatky_ohotnika,function Trig_Perchatky_ohotnika_Actions)endfunctionfunction Trig_Armirovannie_perchatky_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'srrc')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'pnvl')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))>=3))then
return false
endifreturn trueendfunctionfunction Trig_Armirovannie_perchatky_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))==3))then
return false
endifreturn trueendfunctionfunction Trig_Armirovannie_perchatky_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'srrc'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pnvl'))if(Trig_Armirovannie_perchatky_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))-3))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('sres',GetTriggerUnit())
endfunctionfunction InitTrig_Armirovannie_perchatky takes nothing returns nothingset gg_trg_Armirovannie_perchatky=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Armirovannie_perchatky,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Armirovannie_perchatky,Condition(function Trig_Armirovannie_perchatky_Conditions))call TriggerAddAction(gg_trg_Armirovannie_perchatky,function Trig_Armirovannie_perchatky_Actions)endfunctionfunction Trig_Perchatky_drakona_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sres')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02U')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I093'))>=1))then
return false
endifreturn trueendfunctionfunction Trig_Perchatky_drakona_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I093'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Perchatky_drakona_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sres'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02U'))if(Trig_Perchatky_drakona_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I093'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I093'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I093'))-1))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('shas',GetTriggerUnit())
endfunctionfunction InitTrig_Perchatky_drakona takes nothing returns nothingset gg_trg_Perchatky_drakona=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Perchatky_drakona,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Perchatky_drakona,Condition(function Trig_Perchatky_drakona_Conditions))
call TriggerAddAction(gg_trg_Perchatky_drakona,function Trig_Perchatky_drakona_Actions)endfunctionfunction Trig_Maska_trollia_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'infs')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'mnst')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))>=5))then
return false
endifreturn trueendfunctionfunction Trig_Maska_trollia_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))==5))then
return false
endifreturn trueendfunctionfunction Trig_Maska_trollia_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'infs'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'mnst'))if(Trig_Maska_trollia_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))-5))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('rej6',GetTriggerUnit())
endfunctionfunction InitTrig_Maska_trollia takes nothing returns nothingset gg_trg_Maska_trollia=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Maska_trollia,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Maska_trollia,Condition(function Trig_Maska_trollia_Conditions))
call TriggerAddAction(gg_trg_Maska_trollia,function Trig_Maska_trollia_Actions)endfunctionfunction Trig_Bronia_Okultista_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tmsc')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I039')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I097'))>=5))then
return false
endifreturn trueendfunctionfunction Trig_Bronia_Okultista_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I097'))==5))then
return false
endifreturn trueendfunctionfunction Trig_Bronia_Okultista_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'tmsc'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I039'))if(Trig_Bronia_Okultista_Func004C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I097'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I097'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I097'))-5))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('sbok',GetTriggerUnit())
endfunctionfunction InitTrig_Bronia_Okultista takes nothing returns nothing
set gg_trg_Bronia_Okultista=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Bronia_Okultista,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Bronia_Okultista,Condition(function Trig_Bronia_Okultista_Conditions))call TriggerAddAction(gg_trg_Bronia_Okultista,function Trig_Bronia_Okultista_Actions)endfunctionfunction Trig_Plash_izgoya_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'flag')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'tmsc')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))>=6))then
return false
endifreturn trueendfunctionfunction Trig_Plash_izgoya_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))==6))then
return false
endifreturn trueendfunctionfunction Trig_Plash_izgoya_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'flag'))if(Trig_Plash_izgoya_Func003C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))-6))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('uflg',GetTriggerUnit())
endfunctionfunction InitTrig_Plash_izgoya takes nothing returns nothing
set gg_trg_Plash_izgoya=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Plash_izgoya,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Plash_izgoya,Condition(function Trig_Plash_izgoya_Conditions))call TriggerAddAction(gg_trg_Plash_izgoya,function Trig_Plash_izgoya_Actions)endfunctionfunction Trig_Kogty_s_shipamy_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'nflg')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08U'))>=6))then
return false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej2'))>=1))then
return false
endifreturn trueendfunctionfunction Trig_Kogty_s_shipamy_Func003C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08U'))==6))then
return false
endifreturn trueendfunctionfunction Trig_Kogty_s_shipamy_Func004C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej2'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Kogty_s_shipamy_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'nflg'))if(Trig_Kogty_s_shipamy_Func003C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08U'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08U'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08U'))-6))endifif(Trig_Kogty_s_shipamy_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej2'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej2'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej2'))-1))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('oflg',GetTriggerUnit())
endfunctionfunction InitTrig_Kogty_s_shipamy takes nothing returns nothingset gg_trg_Kogty_s_shipamy=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kogty_s_shipamy,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Kogty_s_shipamy,Condition(function Trig_Kogty_s_shipamy_Conditions))
call TriggerAddAction(gg_trg_Kogty_s_shipamy,function Trig_Kogty_s_shipamy_Actions)endfunctionfunction Trig_Misticheskie_kogty_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'oflg')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'vddl')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'pomn')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Misticheskie_kogty_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'oflg'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'vddl'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pomn'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('btst',GetTriggerUnit())
endfunctionfunction InitTrig_Misticheskie_kogty takes nothing returns nothingset gg_trg_Misticheskie_kogty=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Misticheskie_kogty,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Misticheskie_kogty,Condition(function Trig_Misticheskie_kogty_Conditions))call TriggerAddAction(gg_trg_Misticheskie_kogty,function Trig_Misticheskie_kogty_Actions)endfunctionfunction Trig_Ogerelie_ohotnika_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0AA')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ogerelie_ohotnika_Func003Func001C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'))==12))thenreturn false
endifreturn trueendfunctionfunction Trig_Ogerelie_ohotnika_Func003Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Ogerelie_ohotnika_Func003Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Ogerelie_ohotnika_Func003Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Ogerelie_ohotnika_Func003Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Ogerelie_ohotnika_Func003Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Ogerelie_ohotnika_Func003Func008C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Ogerelie_ohotnika_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'))>=12))thenreturn false
endifreturn trueendfunctionfunction Trig_Ogerelie_ohotnika_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AA'))if(Trig_Ogerelie_ohotnika_Func003C())thenif(Trig_Ogerelie_ohotnika_Func003Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0AB',GetTriggerUnit())
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AB'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AB'))+GetRandomInt(0,74)))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'))-12))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0AB',GetTriggerUnit())
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AB'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AB'))+GetRandomInt(0,74)))endifset udg_Uvelir_predmet='I0AB'if(Trig_Ogerelie_ohotnika_Func003Func003C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])+1))
else
endifif(Trig_Ogerelie_ohotnika_Func003Func004C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])+1))
else
endifif(Trig_Ogerelie_ohotnika_Func003Func005C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])+1))
else
endifif(Trig_Ogerelie_ohotnika_Func003Func006C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])+1))
else
endifif(Trig_Ogerelie_ohotnika_Func003Func007C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])+1))
else
endifif(Trig_Ogerelie_ohotnika_Func003Func008C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])+1))
else
endifelse
endifendfunctionfunction InitTrig_Ogerelie_ohotnika takes nothing returns nothingset gg_trg_Ogerelie_ohotnika=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Ogerelie_ohotnika,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Ogerelie_ohotnika,Condition(function Trig_Ogerelie_ohotnika_Conditions))
call TriggerAddAction(gg_trg_Ogerelie_ohotnika,function Trig_Ogerelie_ohotnika_Actions)endfunctionfunction Trig_Trofeyniy_amulet_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0AC')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Trofeyniy_amulet_Func003Func001C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))==6))then
return false
endifreturn trueendfunctionfunction Trig_Trofeyniy_amulet_Func003Func003C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Trofeyniy_amulet_Func003Func004C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Trofeyniy_amulet_Func003Func005C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Trofeyniy_amulet_Func003Func006C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Trofeyniy_amulet_Func003Func007C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Trofeyniy_amulet_Func003Func008C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Trofeyniy_amulet_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))>=6))then
return false
endifreturn trueendfunctionfunction Trig_Trofeyniy_amulet_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AC'))if(Trig_Trofeyniy_amulet_Func003C())then
if(Trig_Trofeyniy_amulet_Func003Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0AD',GetTriggerUnit())
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AD'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AD'))+GetRandomInt(0,74)))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))-6))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0AD',GetTriggerUnit())
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AD'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AD'))+GetRandomInt(0,74)))endifset udg_Uvelir_predmet='I0AD'if(Trig_Trofeyniy_amulet_Func003Func003C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])+1))
else
endifif(Trig_Trofeyniy_amulet_Func003Func004C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])+1))
else
endifif(Trig_Trofeyniy_amulet_Func003Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])+1))
else
endifif(Trig_Trofeyniy_amulet_Func003Func006C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])+1))
else
endifif(Trig_Trofeyniy_amulet_Func003Func007C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])+1))
else
endifif(Trig_Trofeyniy_amulet_Func003Func008C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])+1))
else
endifelse
endifendfunctionfunction InitTrig_Trofeyniy_amulet takes nothing returns nothing
set gg_trg_Trofeyniy_amulet=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Trofeyniy_amulet,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Trofeyniy_amulet,Condition(function Trig_Trofeyniy_amulet_Conditions))call TriggerAddAction(gg_trg_Trofeyniy_amulet,function Trig_Trofeyniy_amulet_Actions)endfunctionfunction Trig_Korall_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0AE')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Korall_Func003Func001C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08U'))==6))then
return false
endifreturn trueendfunctionfunction Trig_Korall_Func003Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Korall_Func003Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Korall_Func003Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Korall_Func003Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Korall_Func003Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Korall_Func003Func008C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Korall_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08U'))>=6))then
return false
endifreturn trueendfunctionfunction Trig_Korall_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AE'))if(Trig_Korall_Func003C())thenif(Trig_Korall_Func003Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08U'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0AF',GetTriggerUnit())
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AF'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AF'))+GetRandomInt(0,74)))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08U'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08U'))-6))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0AF',GetTriggerUnit())
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AF'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AF'))+GetRandomInt(0,74)))endifset udg_Uvelir_predmet='I0AF'if(Trig_Korall_Func003Func003C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])+1))
else
endifif(Trig_Korall_Func003Func004C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])+1))
else
endifif(Trig_Korall_Func003Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])+1))
else
endifif(Trig_Korall_Func003Func006C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])+1))
else
endifif(Trig_Korall_Func003Func007C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])+1))
else
endifif(Trig_Korall_Func003Func008C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])+1))
else
endifelse
endifendfunctionfunction InitTrig_Korall takes nothing returns nothingset gg_trg_Korall=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Korall,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Korall,Condition(function Trig_Korall_Conditions))call TriggerAddAction(gg_trg_Korall,function Trig_Korall_Actions)endfunctionfunction Trig_Meshochek_d_priannostiamy_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0AG')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Meshochek_d_priannostiamy_Func003Func001C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))==6))then
return false
endifreturn trueendfunctionfunction Trig_Meshochek_d_priannostiamy_Func003Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Meshochek_d_priannostiamy_Func003Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Meshochek_d_priannostiamy_Func003Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Meshochek_d_priannostiamy_Func003Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Meshochek_d_priannostiamy_Func003Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Meshochek_d_priannostiamy_Func003Func008C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Meshochek_d_priannostiamy_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))>=6))then
return false
endifreturn trueendfunctionfunction Trig_Meshochek_d_priannostiamy_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AG'))if(Trig_Meshochek_d_priannostiamy_Func003C())thenif(Trig_Meshochek_d_priannostiamy_Func003Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0AH',GetTriggerUnit())
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AH'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AH'))+GetRandomInt(0,74)))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))-6))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0AH',GetTriggerUnit())
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AH'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AH'))+GetRandomInt(0,74)))endifset udg_Uvelir_predmet='I0AH'if(Trig_Meshochek_d_priannostiamy_Func003Func003C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])+1))
else
endifif(Trig_Meshochek_d_priannostiamy_Func003Func004C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])+1))
else
endifif(Trig_Meshochek_d_priannostiamy_Func003Func005C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])+1))
else
endifif(Trig_Meshochek_d_priannostiamy_Func003Func006C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])+1))
else
endifif(Trig_Meshochek_d_priannostiamy_Func003Func007C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])+1))
else
endifif(Trig_Meshochek_d_priannostiamy_Func003Func008C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])+1))
else
endifelse
endifendfunctionfunction InitTrig_Meshochek_d_priannostiamy takes nothing returns nothingset gg_trg_Meshochek_d_priannostiamy=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Meshochek_d_priannostiamy,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Meshochek_d_priannostiamy,Condition(function Trig_Meshochek_d_priannostiamy_Conditions))
call TriggerAddAction(gg_trg_Meshochek_d_priannostiamy,function Trig_Meshochek_d_priannostiamy_Actions)endfunctionfunction Trig_Kupecheskoe_odeyanie_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0AI')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kupecheskoe_odeyanie_Func003Func002C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'dust'))==4))then
return false
endifreturn trueendfunctionfunction Trig_Kupecheskoe_odeyanie_Func003Func004C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kupecheskoe_odeyanie_Func003Func005C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kupecheskoe_odeyanie_Func003Func006C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kupecheskoe_odeyanie_Func003Func007C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kupecheskoe_odeyanie_Func003Func008C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kupecheskoe_odeyanie_Func003Func009C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kupecheskoe_odeyanie_Func003C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'flag')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'dust'))>=4))then
return false
endifreturn trueendfunctionfunction Trig_Kupecheskoe_odeyanie_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AI'))if(Trig_Kupecheskoe_odeyanie_Func003C())then
if(Trig_Kupecheskoe_odeyanie_Func003Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'flag'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'dust'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0AJ',GetTriggerUnit())
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AJ'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AJ'))+GetRandomInt(0,74)))else
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'flag'))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'dust'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'dust'))-4))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0AJ',GetTriggerUnit())
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AJ'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AJ'))+GetRandomInt(0,74)))endifset udg_Uvelir_predmet='I0AJ'if(Trig_Kupecheskoe_odeyanie_Func003Func004C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])+1))
else
endifif(Trig_Kupecheskoe_odeyanie_Func003Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])+1))
else
endifif(Trig_Kupecheskoe_odeyanie_Func003Func006C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])+1))
else
endifif(Trig_Kupecheskoe_odeyanie_Func003Func007C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])+1))
else
endifif(Trig_Kupecheskoe_odeyanie_Func003Func008C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])+1))
else
endifif(Trig_Kupecheskoe_odeyanie_Func003Func009C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])+1))
else
endifelse
endifendfunctionfunction InitTrig_Kupecheskoe_odeyanie takes nothing returns nothing
set gg_trg_Kupecheskoe_odeyanie=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kupecheskoe_odeyanie,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Kupecheskoe_odeyanie,Condition(function Trig_Kupecheskoe_odeyanie_Conditions))call TriggerAddAction(gg_trg_Kupecheskoe_odeyanie,function Trig_Kupecheskoe_odeyanie_Actions)endfunctionfunction Trig_Karnavalnaya_maska_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0AL')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Karnavalnaya_maska_Func003Func002C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I090'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Karnavalnaya_maska_Func003Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Karnavalnaya_maska_Func003Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Karnavalnaya_maska_Func003Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Karnavalnaya_maska_Func003Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Karnavalnaya_maska_Func003Func008C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Karnavalnaya_maska_Func003Func009C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Karnavalnaya_maska_Func003C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'infs')==true))thenreturn false
endifif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I090'))>=1))then
return false
endifreturn trueendfunctionfunction Trig_Karnavalnaya_maska_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AL'))if(Trig_Karnavalnaya_maska_Func003C())thenif(Trig_Karnavalnaya_maska_Func003Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'infs'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I090'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0AK',GetTriggerUnit())
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AK'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AK'))+GetRandomInt(0,74)))else
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'infs'))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I090'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I090'))-1))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0AK',GetTriggerUnit())
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AK'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AK'))+GetRandomInt(0,74)))endifset udg_Uvelir_predmet='I0AK'if(Trig_Karnavalnaya_maska_Func003Func004C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])+1))
else
endifif(Trig_Karnavalnaya_maska_Func003Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])+1))
else
endifif(Trig_Karnavalnaya_maska_Func003Func006C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])+1))
else
endifif(Trig_Karnavalnaya_maska_Func003Func007C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])+1))
else
endifif(Trig_Karnavalnaya_maska_Func003Func008C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])+1))
else
endifif(Trig_Karnavalnaya_maska_Func003Func009C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])+1))
else
endifelse
endifendfunctionfunction InitTrig_Karnavalnaya_maska takes nothing returns nothingset gg_trg_Karnavalnaya_maska=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Karnavalnaya_maska,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Karnavalnaya_maska,Condition(function Trig_Karnavalnaya_maska_Conditions))call TriggerAddAction(gg_trg_Karnavalnaya_maska,function Trig_Karnavalnaya_maska_Actions)endfunctionfunction Trig_Perchatki_dvorinina_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0AN')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Perchatki_dvorinina_Func003Func011C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Perchatki_dvorinina_Func003Func012C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Perchatki_dvorinina_Func003Func013C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Perchatki_dvorinina_Func003Func014C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Perchatki_dvorinina_Func003Func015C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Perchatki_dvorinina_Func003Func016C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Perchatki_dvorinina_Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sman')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05P')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Perchatki_dvorinina_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AN'))if(Trig_Perchatki_dvorinina_Func003C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sman'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05P'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0AM',GetTriggerUnit())
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AM'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AM'))+GetRandomInt(0,74)))set udg_Uvelir_predmet='I0AM'if(Trig_Perchatki_dvorinina_Func003Func011C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])+1))
else
endifif(Trig_Perchatki_dvorinina_Func003Func012C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])+1))
else
endifif(Trig_Perchatki_dvorinina_Func003Func013C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])+1))
else
endifif(Trig_Perchatki_dvorinina_Func003Func014C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])+1))
else
endifif(Trig_Perchatki_dvorinina_Func003Func015C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])+1))
else
endifif(Trig_Perchatki_dvorinina_Func003Func016C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])+1))
else
endifelse
endifendfunctionfunction InitTrig_Perchatki_dvorinina takes nothing returns nothingset gg_trg_Perchatki_dvorinina=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Perchatki_dvorinina,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Perchatki_dvorinina,Condition(function Trig_Perchatki_dvorinina_Conditions))
call TriggerAddAction(gg_trg_Perchatki_dvorinina,function Trig_Perchatki_dvorinina_Actions)endfunctionfunction Trig_Zolotoe_kolco_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0AO')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zolotoe_kolco_Func003Func011C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Zolotoe_kolco_Func003Func012C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Zolotoe_kolco_Func003Func013C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Zolotoe_kolco_Func003Func014C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Zolotoe_kolco_Func003Func015C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Zolotoe_kolco_Func003Func016C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Zolotoe_kolco_Func003C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rej5')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05P')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zolotoe_kolco_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AO'))if(Trig_Zolotoe_kolco_Func003C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej5'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05P'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0AP',GetTriggerUnit())
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AP'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AP'))+GetRandomInt(0,74)))set udg_Uvelir_predmet='I0AP'if(Trig_Zolotoe_kolco_Func003Func011C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])+1))
else
endifif(Trig_Zolotoe_kolco_Func003Func012C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])+1))
else
endifif(Trig_Zolotoe_kolco_Func003Func013C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])+1))
else
endifif(Trig_Zolotoe_kolco_Func003Func014C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])+1))
else
endifif(Trig_Zolotoe_kolco_Func003Func015C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])+1))
else
endifif(Trig_Zolotoe_kolco_Func003Func016C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])+1))
else
endifelse
endifendfunctionfunction InitTrig_Zolotoe_kolco takes nothing returns nothingset gg_trg_Zolotoe_kolco=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Zolotoe_kolco,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Zolotoe_kolco,Condition(function Trig_Zolotoe_kolco_Conditions))
call TriggerAddAction(gg_trg_Zolotoe_kolco,function Trig_Zolotoe_kolco_Actions)endfunctionfunction Trig_Kristalnaya_statuetka_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0AS')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kristalnaya_statuetka_Func003Func011C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kristalnaya_statuetka_Func003Func012C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kristalnaya_statuetka_Func003Func013C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kristalnaya_statuetka_Func003Func014C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kristalnaya_statuetka_Func003Func015C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kristalnaya_statuetka_Func003Func016C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Kristalnaya_statuetka_Func003C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'pomn')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'gemt')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Kristalnaya_statuetka_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AS'))if(Trig_Kristalnaya_statuetka_Func003C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pomn'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gemt'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0AT',GetTriggerUnit())
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AT'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AT'))+GetRandomInt(0,74)))set udg_Uvelir_predmet='I0AT'if(Trig_Kristalnaya_statuetka_Func003Func011C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])+1))
else
endifif(Trig_Kristalnaya_statuetka_Func003Func012C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])+1))
else
endifif(Trig_Kristalnaya_statuetka_Func003Func013C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])+1))
else
endifif(Trig_Kristalnaya_statuetka_Func003Func014C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])+1))
else
endifif(Trig_Kristalnaya_statuetka_Func003Func015C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])+1))
else
endifif(Trig_Kristalnaya_statuetka_Func003Func016C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])+1))
else
endifelse
endifendfunctionfunction InitTrig_Kristalnaya_statuetka takes nothing returns nothingset gg_trg_Kristalnaya_statuetka=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Kristalnaya_statuetka,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Kristalnaya_statuetka,Condition(function Trig_Kristalnaya_statuetka_Conditions))
call TriggerAddAction(gg_trg_Kristalnaya_statuetka,function Trig_Kristalnaya_statuetka_Actions)endfunctionfunction Trig_Sokrovisha_uvelir_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0AV')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sokrovisha_uvelir_Func003Func011C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Sokrovisha_uvelir_Func003Func012C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Sokrovisha_uvelir_Func003Func013C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Sokrovisha_uvelir_Func003Func014C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Sokrovisha_uvelir_Func003Func015C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Sokrovisha_uvelir_Func003Func016C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Sokrovisha_uvelir_Func003C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09I')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05P')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Sokrovisha_uvelir_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AV'))if(Trig_Sokrovisha_uvelir_Func003C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09I'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05P'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0AU',GetTriggerUnit())
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AU'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AU'))+GetRandomInt(0,74)))set udg_Uvelir_predmet='I0AU'if(Trig_Sokrovisha_uvelir_Func003Func011C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])+1))
else
endifif(Trig_Sokrovisha_uvelir_Func003Func012C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])+1))
else
endifif(Trig_Sokrovisha_uvelir_Func003Func013C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])+1))
else
endifif(Trig_Sokrovisha_uvelir_Func003Func014C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])+1))
else
endifif(Trig_Sokrovisha_uvelir_Func003Func015C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])+1))
else
endifif(Trig_Sokrovisha_uvelir_Func003Func016C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])+1))
else
endifelse
endifendfunctionfunction InitTrig_Sokrovisha_uvelir takes nothing returns nothingset gg_trg_Sokrovisha_uvelir=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Sokrovisha_uvelir,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Sokrovisha_uvelir,Condition(function Trig_Sokrovisha_uvelir_Conditions))
call TriggerAddAction(gg_trg_Sokrovisha_uvelir,function Trig_Sokrovisha_uvelir_Actions)endfunctionfunction Trig_Izumrudnaua_shkatulka_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0AR')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Func003Func011C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Func003Func012C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Func003Func013C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Func003Func014C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Func003Func015C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Func003Func016C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Func003C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ledg')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'kygh')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Func004Func011C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Func004Func012C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Func004Func013C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Func004Func014C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Func004Func015C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Func004Func016C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Func004C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'k3m1')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'kygh')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Func005Func011C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Func005Func012C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Func005Func013C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Func005Func014C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Func005Func015C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Func005Func016C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Func005C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'k3m2')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'kygh')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Izumrudnaua_shkatulka_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AR'))if(Trig_Izumrudnaua_shkatulka_Func003C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ledg'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'kygh'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0AQ',GetTriggerUnit())
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AQ'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AQ'))+GetRandomInt(0,74)))set udg_Uvelir_predmet='I0AQ'if(Trig_Izumrudnaua_shkatulka_Func003Func011C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])+1))
else
endifif(Trig_Izumrudnaua_shkatulka_Func003Func012C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])+1))
else
endifif(Trig_Izumrudnaua_shkatulka_Func003Func013C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])+1))
else
endifif(Trig_Izumrudnaua_shkatulka_Func003Func014C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])+1))
else
endifif(Trig_Izumrudnaua_shkatulka_Func003Func015C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])+1))
else
endifif(Trig_Izumrudnaua_shkatulka_Func003Func016C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])+1))
else
endifreturnelse
endifif(Trig_Izumrudnaua_shkatulka_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'k3m1'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'kygh'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0AQ',GetTriggerUnit())
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AQ'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AQ'))+GetRandomInt(0,74)))set udg_Uvelir_predmet='I0AQ'if(Trig_Izumrudnaua_shkatulka_Func004Func011C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])+1))
else
endifif(Trig_Izumrudnaua_shkatulka_Func004Func012C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])+1))
else
endifif(Trig_Izumrudnaua_shkatulka_Func004Func013C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])+1))
else
endifif(Trig_Izumrudnaua_shkatulka_Func004Func014C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])+1))
else
endifif(Trig_Izumrudnaua_shkatulka_Func004Func015C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])+1))
else
endifif(Trig_Izumrudnaua_shkatulka_Func004Func016C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])+1))
else
endifreturnelse
endifif(Trig_Izumrudnaua_shkatulka_Func005C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'k3m2'))call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'kygh'))call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('I0AQ',GetTriggerUnit())
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AQ'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0AQ'))+GetRandomInt(0,74)))set udg_Uvelir_predmet='I0AQ'if(Trig_Izumrudnaua_shkatulka_Func005Func011C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[1])+1))
else
endifif(Trig_Izumrudnaua_shkatulka_Func005Func012C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[2])+1))
else
endifif(Trig_Izumrudnaua_shkatulka_Func005Func013C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[3])+1))
else
endifif(Trig_Izumrudnaua_shkatulka_Func005Func014C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[4])+1))
else
endifif(Trig_Izumrudnaua_shkatulka_Func005Func015C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[5])+1))
else
endifif(Trig_Izumrudnaua_shkatulka_Func005Func016C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_Uvelir_predmet))+GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])))
call SetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6],(GetUnitAbilityLevelSwapped('A0EI',udg_Sumka[6])+1))
else
endifreturnelse
endifendfunctionfunction InitTrig_Izumrudnaua_shkatulka takes nothing returns nothingset gg_trg_Izumrudnaua_shkatulka=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Izumrudnaua_shkatulka,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Izumrudnaua_shkatulka,Condition(function Trig_Izumrudnaua_shkatulka_Conditions))
call TriggerAddAction(gg_trg_Izumrudnaua_shkatulka,function Trig_Izumrudnaua_shkatulka_Actions)endfunctionfunction Trig_Shit_1_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Shit_1_Func005002001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Shit_1_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Shit_1_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Shit_1_Func005002002 takes nothing returns boolean
return GetBooleanOr(Trig_Shit_1_Func005002002001(),Trig_Shit_1_Func005002002002())endfunctionfunction Trig_Shit_1_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Shit_1_Func005002001(),Trig_Shit_1_Func005002002())
endfunctionfunction Trig_Shit_1_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I035')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Shit_1_Func005001(),Trig_Shit_1_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_1_Func001Func002Func002Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_1_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_1_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_1_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_1_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I035'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_1_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_1_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I035'))>=200))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_1_Actions takes nothing returns nothingif(Trig_Shit_1_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Shit_1_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Shit_1_Func001Func002Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Shit_1_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Shit_1_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Shit_1_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I035'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I035'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I035'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I035'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I035'))+udg_Zatochka))endifif(Trig_Shit_1_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I035'))call UnitAddItemByIdSwapped('I036',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Shit_1 takes nothing returns nothingset gg_trg_Shit_1=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Shit_1,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Shit_1,Condition(function Trig_Shit_1_Conditions))call TriggerAddAction(gg_trg_Shit_1,function Trig_Shit_1_Actions)endfunctionfunction Trig_Shit_2_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Shit_2_Func005002001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Shit_2_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Shit_2_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Shit_2_Func005002002 takes nothing returns boolean
return GetBooleanOr(Trig_Shit_2_Func005002002001(),Trig_Shit_2_Func005002002002())endfunctionfunction Trig_Shit_2_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Shit_2_Func005002001(),Trig_Shit_2_Func005002002())
endfunctionfunction Trig_Shit_2_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I036')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Shit_2_Func005001(),Trig_Shit_2_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_2_Func001Func002Func002Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_2_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_2_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_2_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_2_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I036'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_2_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_2_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I036'))>=200))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_2_Actions takes nothing returns nothingif(Trig_Shit_2_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Shit_2_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Shit_2_Func001Func002Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Shit_2_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Shit_2_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Shit_2_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I036'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I036'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I036'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I036'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I036'))+udg_Zatochka))endifif(Trig_Shit_2_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I036'))call UnitAddItemByIdSwapped('I037',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Shit_2 takes nothing returns nothingset gg_trg_Shit_2=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Shit_2,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Shit_2,Condition(function Trig_Shit_2_Conditions))call TriggerAddAction(gg_trg_Shit_2,function Trig_Shit_2_Actions)endfunctionfunction Trig_Shit_3_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Shit_3_Func005002001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Shit_3_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Shit_3_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Shit_3_Func005002002 takes nothing returns boolean
return GetBooleanOr(Trig_Shit_3_Func005002002001(),Trig_Shit_3_Func005002002002())endfunctionfunction Trig_Shit_3_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Shit_3_Func005002001(),Trig_Shit_3_Func005002002())
endfunctionfunction Trig_Shit_3_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I037')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Shit_3_Func005001(),Trig_Shit_3_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_3_Func001Func002Func002Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_3_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_3_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_3_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_3_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I037'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_3_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_3_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I037'))>=200))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_3_Actions takes nothing returns nothingif(Trig_Shit_3_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Shit_3_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Shit_3_Func001Func002Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Shit_3_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Shit_3_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Shit_3_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I037'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I037'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I037'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I037'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I037'))+udg_Zatochka))endifif(Trig_Shit_3_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I037'))call UnitAddItemByIdSwapped('I038',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Shit_3 takes nothing returns nothingset gg_trg_Shit_3=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Shit_3,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Shit_3,Condition(function Trig_Shit_3_Conditions))call TriggerAddAction(gg_trg_Shit_3,function Trig_Shit_3_Actions)endfunctionfunction Trig_Shit_4_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Shit_4_Func005002001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Shit_4_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Shit_4_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Shit_4_Func005002002 takes nothing returns boolean
return GetBooleanOr(Trig_Shit_4_Func005002002001(),Trig_Shit_4_Func005002002002())endfunctionfunction Trig_Shit_4_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Shit_4_Func005002001(),Trig_Shit_4_Func005002002())
endfunctionfunction Trig_Shit_4_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I038')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Shit_4_Func005001(),Trig_Shit_4_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_4_Func001Func002Func002Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_4_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_4_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_4_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_4_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I038'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_4_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_4_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I038'))>=200))thenreturn false
endifreturn trueendfunctionfunction Trig_Shit_4_Actions takes nothing returns nothingif(Trig_Shit_4_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Shit_4_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Shit_4_Func001Func002Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Shit_4_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Shit_4_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Shit_4_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I038'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I038'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I038'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I038'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I038'))+udg_Zatochka))endifif(Trig_Shit_4_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I038'))call UnitAddItemByIdSwapped('I039',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Shit_4 takes nothing returns nothingset gg_trg_Shit_4=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Shit_4,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Shit_4,Condition(function Trig_Shit_4_Conditions))call TriggerAddAction(gg_trg_Shit_4,function Trig_Shit_4_Actions)endfunctionfunction Trig_Stariy_posoh_1_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Stariy_posoh_1_Func005002001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Stariy_posoh_1_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Stariy_posoh_1_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Stariy_posoh_1_Func005002002 takes nothing returns boolean
return GetBooleanOr(Trig_Stariy_posoh_1_Func005002002001(),Trig_Stariy_posoh_1_Func005002002002())endfunctionfunction Trig_Stariy_posoh_1_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Stariy_posoh_1_Func005002001(),Trig_Stariy_posoh_1_Func005002002())
endfunctionfunction Trig_Stariy_posoh_1_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I030')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Stariy_posoh_1_Func005001(),Trig_Stariy_posoh_1_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_1_Func001Func002Func002Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_1_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_1_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_1_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_1_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I030'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_1_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_1_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I030'))>=100))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_1_Actions takes nothing returns nothingif(Trig_Stariy_posoh_1_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Stariy_posoh_1_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Stariy_posoh_1_Func001Func002Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Stariy_posoh_1_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Stariy_posoh_1_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Stariy_posoh_1_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I030'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I030'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I030'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I030'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I030'))+udg_Zatochka))endifif(Trig_Stariy_posoh_1_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I030'))call UnitAddItemByIdSwapped('I031',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Stariy_posoh_1 takes nothing returns nothingset gg_trg_Stariy_posoh_1=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Stariy_posoh_1,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stariy_posoh_1,Condition(function Trig_Stariy_posoh_1_Conditions))call TriggerAddAction(gg_trg_Stariy_posoh_1,function Trig_Stariy_posoh_1_Actions)endfunctionfunction Trig_Stariy_posoh_2_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Stariy_posoh_2_Func005002001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Stariy_posoh_2_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Stariy_posoh_2_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Stariy_posoh_2_Func005002002 takes nothing returns boolean
return GetBooleanOr(Trig_Stariy_posoh_2_Func005002002001(),Trig_Stariy_posoh_2_Func005002002002())endfunctionfunction Trig_Stariy_posoh_2_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Stariy_posoh_2_Func005002001(),Trig_Stariy_posoh_2_Func005002002())
endfunctionfunction Trig_Stariy_posoh_2_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I031')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Stariy_posoh_2_Func005001(),Trig_Stariy_posoh_2_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_2_Func001Func002Func002Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_2_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_2_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_2_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_2_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I031'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_2_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_2_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I031'))>=100))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_2_Actions takes nothing returns nothingif(Trig_Stariy_posoh_2_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Stariy_posoh_2_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Stariy_posoh_2_Func001Func002Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Stariy_posoh_2_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Stariy_posoh_2_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Stariy_posoh_2_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I031'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I031'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I031'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I031'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I031'))+udg_Zatochka))endifif(Trig_Stariy_posoh_2_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I031'))call UnitAddItemByIdSwapped('I032',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Stariy_posoh_2 takes nothing returns nothingset gg_trg_Stariy_posoh_2=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Stariy_posoh_2,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stariy_posoh_2,Condition(function Trig_Stariy_posoh_2_Conditions))call TriggerAddAction(gg_trg_Stariy_posoh_2,function Trig_Stariy_posoh_2_Actions)endfunctionfunction Trig_Stariy_posoh_3_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Stariy_posoh_3_Func005002001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Stariy_posoh_3_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Stariy_posoh_3_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Stariy_posoh_3_Func005002002 takes nothing returns boolean
return GetBooleanOr(Trig_Stariy_posoh_3_Func005002002001(),Trig_Stariy_posoh_3_Func005002002002())endfunctionfunction Trig_Stariy_posoh_3_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Stariy_posoh_3_Func005002001(),Trig_Stariy_posoh_3_Func005002002())
endfunctionfunction Trig_Stariy_posoh_3_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I032')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Stariy_posoh_3_Func005001(),Trig_Stariy_posoh_3_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_3_Func001Func002Func002Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_3_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_3_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_3_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_3_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I032'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_3_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_3_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I032'))>=100))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_3_Actions takes nothing returns nothingif(Trig_Stariy_posoh_3_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Stariy_posoh_3_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Stariy_posoh_3_Func001Func002Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Stariy_posoh_3_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Stariy_posoh_3_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Stariy_posoh_3_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I032'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I032'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I032'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I032'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I032'))+udg_Zatochka))endifif(Trig_Stariy_posoh_3_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I032'))call UnitAddItemByIdSwapped('I033',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Stariy_posoh_3 takes nothing returns nothingset gg_trg_Stariy_posoh_3=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Stariy_posoh_3,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stariy_posoh_3,Condition(function Trig_Stariy_posoh_3_Conditions))call TriggerAddAction(gg_trg_Stariy_posoh_3,function Trig_Stariy_posoh_3_Actions)endfunctionfunction Trig_Stariy_posoh_4_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Stariy_posoh_4_Func005002001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Stariy_posoh_4_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Stariy_posoh_4_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Stariy_posoh_4_Func005002002 takes nothing returns boolean
return GetBooleanOr(Trig_Stariy_posoh_4_Func005002002001(),Trig_Stariy_posoh_4_Func005002002002())endfunctionfunction Trig_Stariy_posoh_4_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Stariy_posoh_4_Func005002001(),Trig_Stariy_posoh_4_Func005002002())
endfunctionfunction Trig_Stariy_posoh_4_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I033')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Stariy_posoh_4_Func005001(),Trig_Stariy_posoh_4_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_4_Func001Func002Func002Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_4_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_4_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_4_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_4_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I033'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_4_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_4_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I033'))>=100))thenreturn false
endifreturn trueendfunctionfunction Trig_Stariy_posoh_4_Actions takes nothing returns nothingif(Trig_Stariy_posoh_4_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Stariy_posoh_4_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Stariy_posoh_4_Func001Func002Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Stariy_posoh_4_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Stariy_posoh_4_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Stariy_posoh_4_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I033'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I033'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I031'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I033'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I033'))+udg_Zatochka))endifif(Trig_Stariy_posoh_4_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I033'))call UnitAddItemByIdSwapped('I034',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Stariy_posoh_4 takes nothing returns nothingset gg_trg_Stariy_posoh_4=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Stariy_posoh_4,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Stariy_posoh_4,Condition(function Trig_Stariy_posoh_4_Conditions))call TriggerAddAction(gg_trg_Stariy_posoh_4,function Trig_Stariy_posoh_4_Actions)endfunctionfunction Trig_Amulet_1_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Amulet_1_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Amulet_1_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Amulet_1_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Amulet_1_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Amulet_1_Func005002002001(),Trig_Amulet_1_Func005002002002())endfunctionfunction Trig_Amulet_1_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Amulet_1_Func005002001(),Trig_Amulet_1_Func005002002())
endfunctionfunction Trig_Amulet_1_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02V')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Amulet_1_Func005001(),Trig_Amulet_1_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_1_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_1_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_1_Func001Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_1_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_1_Func002Func005C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02V'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_1_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_1_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02V'))>=50))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_1_Actions takes nothing returns nothing
if(Trig_Amulet_1_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Amulet_1_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Amulet_1_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Amulet_1_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Amulet_1_Func002C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Amulet_1_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02V'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02V'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02V'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02V'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02V'))+udg_Zatochka))endifif(Trig_Amulet_1_Func003C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02V'))call UnitAddItemByIdSwapped('I02W',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Amulet_1 takes nothing returns nothing
set gg_trg_Amulet_1=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Amulet_1,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Amulet_1,Condition(function Trig_Amulet_1_Conditions))call TriggerAddAction(gg_trg_Amulet_1,function Trig_Amulet_1_Actions)endfunctionfunction Trig_Amulet_2_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Amulet_2_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Amulet_2_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Amulet_2_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Amulet_2_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Amulet_2_Func005002002001(),Trig_Amulet_2_Func005002002002())endfunctionfunction Trig_Amulet_2_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Amulet_2_Func005002001(),Trig_Amulet_2_Func005002002())
endfunctionfunction Trig_Amulet_2_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02W')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Amulet_2_Func005001(),Trig_Amulet_2_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_2_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_2_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_2_Func001Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_2_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_2_Func002Func005C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02W'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_2_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_2_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02W'))>=50))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_2_Actions takes nothing returns nothing
if(Trig_Amulet_2_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Amulet_2_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Amulet_2_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Amulet_2_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Amulet_2_Func002C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Amulet_2_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02W'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02W'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02W'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02W'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02W'))+udg_Zatochka))endifif(Trig_Amulet_2_Func003C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02W'))call UnitAddItemByIdSwapped('I02X',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Amulet_2 takes nothing returns nothing
set gg_trg_Amulet_2=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Amulet_2,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Amulet_2,Condition(function Trig_Amulet_2_Conditions))call TriggerAddAction(gg_trg_Amulet_2,function Trig_Amulet_2_Actions)endfunctionfunction Trig_Amulet_3_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Amulet_3_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Amulet_3_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Amulet_3_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Amulet_3_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Amulet_3_Func005002002001(),Trig_Amulet_3_Func005002002002())endfunctionfunction Trig_Amulet_3_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Amulet_3_Func005002001(),Trig_Amulet_3_Func005002002())
endfunctionfunction Trig_Amulet_3_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02X')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Amulet_3_Func005001(),Trig_Amulet_3_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_3_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_3_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_3_Func001Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_3_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_3_Func002Func005C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02X'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_3_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_3_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02X'))>=50))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_3_Actions takes nothing returns nothing
if(Trig_Amulet_3_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Amulet_3_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Amulet_3_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Amulet_3_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Amulet_3_Func002C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Amulet_3_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02X'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02X'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02X'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02X'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02X'))+udg_Zatochka))endifif(Trig_Amulet_3_Func003C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02X'))call UnitAddItemByIdSwapped('I02Y',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Amulet_3 takes nothing returns nothing
set gg_trg_Amulet_3=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Amulet_3,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Amulet_3,Condition(function Trig_Amulet_3_Conditions))call TriggerAddAction(gg_trg_Amulet_3,function Trig_Amulet_3_Actions)endfunctionfunction Trig_Amulet_4_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Amulet_4_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Amulet_4_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Amulet_4_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Amulet_4_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Amulet_4_Func005002002001(),Trig_Amulet_4_Func005002002002())endfunctionfunction Trig_Amulet_4_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Amulet_4_Func005002001(),Trig_Amulet_4_Func005002002())
endfunctionfunction Trig_Amulet_4_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02Y')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Amulet_4_Func005001(),Trig_Amulet_4_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_4_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_4_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_4_Func001Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_4_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_4_Func002Func005C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02Y'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_4_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_4_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02Y'))>=50))thenreturn false
endifreturn trueendfunctionfunction Trig_Amulet_4_Actions takes nothing returns nothing
if(Trig_Amulet_4_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Amulet_4_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Amulet_4_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Amulet_4_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Amulet_4_Func002C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Amulet_4_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02Y'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02Y'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02Y'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02Y'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02Y'))+udg_Zatochka))endifif(Trig_Amulet_4_Func003C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02Y'))call UnitAddItemByIdSwapped('I02Z',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Amulet_4 takes nothing returns nothing
set gg_trg_Amulet_4=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Amulet_4,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Amulet_4,Condition(function Trig_Amulet_4_Conditions))call TriggerAddAction(gg_trg_Amulet_4,function Trig_Amulet_4_Actions)endfunctionfunction Trig_Poyas_1_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Poyas_1_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Poyas_1_Func005002002001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Poyas_1_Func005002002002 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Poyas_1_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Poyas_1_Func005002002001(),Trig_Poyas_1_Func005002002002())
endfunctionfunction Trig_Poyas_1_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Poyas_1_Func005002001(),Trig_Poyas_1_Func005002002())endfunctionfunction Trig_Poyas_1_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02Q')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Poyas_1_Func005001(),Trig_Poyas_1_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_1_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_1_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_1_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_1_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_1_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02Q'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_1_Func002C takes nothing returns boolean
if(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_1_Func003C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02Q'))>=50))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_1_Actions takes nothing returns nothingif(Trig_Poyas_1_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Poyas_1_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Poyas_1_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Poyas_1_Func001Func002Func002Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Poyas_1_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Poyas_1_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02Q'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02Q'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02Q'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02Q'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02Q'))+udg_Zatochka))endifif(Trig_Poyas_1_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02Q'))call UnitAddItemByIdSwapped('I02R',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Poyas_1 takes nothing returns nothingset gg_trg_Poyas_1=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Poyas_1,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Poyas_1,Condition(function Trig_Poyas_1_Conditions))
call TriggerAddAction(gg_trg_Poyas_1,function Trig_Poyas_1_Actions)endfunctionfunction Trig_Poyas_2_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Poyas_2_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Poyas_2_Func005002002001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Poyas_2_Func005002002002 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Poyas_2_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Poyas_2_Func005002002001(),Trig_Poyas_2_Func005002002002())
endfunctionfunction Trig_Poyas_2_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Poyas_2_Func005002001(),Trig_Poyas_2_Func005002002())endfunctionfunction Trig_Poyas_2_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02R')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Poyas_2_Func005001(),Trig_Poyas_2_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_2_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_2_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_2_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_2_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_2_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02R'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_2_Func002C takes nothing returns boolean
if(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_2_Func003C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02R'))>=50))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_2_Actions takes nothing returns nothingif(Trig_Poyas_2_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Poyas_2_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Poyas_2_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Poyas_2_Func001Func002Func002Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Poyas_2_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Poyas_2_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02R'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02R'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02R'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02R'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02R'))+udg_Zatochka))endifif(Trig_Poyas_2_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02R'))call UnitAddItemByIdSwapped('I02S',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Poyas_2 takes nothing returns nothingset gg_trg_Poyas_2=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Poyas_2,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Poyas_2,Condition(function Trig_Poyas_2_Conditions))
call TriggerAddAction(gg_trg_Poyas_2,function Trig_Poyas_2_Actions)endfunctionfunction Trig_Poyas_3_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Poyas_3_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Poyas_3_Func005002002001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Poyas_3_Func005002002002 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Poyas_3_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Poyas_3_Func005002002001(),Trig_Poyas_3_Func005002002002())
endfunctionfunction Trig_Poyas_3_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Poyas_3_Func005002001(),Trig_Poyas_3_Func005002002())endfunctionfunction Trig_Poyas_3_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02S')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Poyas_3_Func005001(),Trig_Poyas_3_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_3_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_3_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_3_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_3_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_3_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02S'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_3_Func002C takes nothing returns boolean
if(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_3_Func003C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02S'))>=50))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_3_Actions takes nothing returns nothingif(Trig_Poyas_3_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Poyas_3_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Poyas_3_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Poyas_3_Func001Func002Func002Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Poyas_3_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Poyas_3_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02S'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02S'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02S'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02S'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02S'))+udg_Zatochka))endifif(Trig_Poyas_3_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02S'))call UnitAddItemByIdSwapped('I02T',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Poyas_3 takes nothing returns nothingset gg_trg_Poyas_3=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Poyas_3,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Poyas_3,Condition(function Trig_Poyas_3_Conditions))
call TriggerAddAction(gg_trg_Poyas_3,function Trig_Poyas_3_Actions)endfunctionfunction Trig_Poyas_4_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Poyas_4_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Poyas_4_Func005002002001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Poyas_4_Func005002002002 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Poyas_4_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Poyas_4_Func005002002001(),Trig_Poyas_4_Func005002002002())
endfunctionfunction Trig_Poyas_4_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Poyas_4_Func005002001(),Trig_Poyas_4_Func005002002())endfunctionfunction Trig_Poyas_4_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02T')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Poyas_4_Func005001(),Trig_Poyas_4_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_4_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_4_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_4_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_4_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_4_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02T'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_4_Func002C takes nothing returns boolean
if(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_4_Func003C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02T'))>=50))thenreturn false
endifreturn trueendfunctionfunction Trig_Poyas_4_Actions takes nothing returns nothingif(Trig_Poyas_4_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Poyas_4_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Poyas_4_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Poyas_4_Func001Func002Func002Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Poyas_4_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Poyas_4_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02T'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02T'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02T'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02T'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02T'))+udg_Zatochka))endifif(Trig_Poyas_4_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02T'))call UnitAddItemByIdSwapped('I02U',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Poyas_4 takes nothing returns nothingset gg_trg_Poyas_4=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Poyas_4,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Poyas_4,Condition(function Trig_Poyas_4_Conditions))
call TriggerAddAction(gg_trg_Poyas_4,function Trig_Poyas_4_Actions)endfunctionfunction Trig_Mantiya_1_Func005001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Mantiya_1_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Mantiya_1_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Mantiya_1_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Mantiya_1_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Mantiya_1_Func005002002001(),Trig_Mantiya_1_Func005002002002())
endfunctionfunction Trig_Mantiya_1_Func005002 takes nothing returns boolean
return GetBooleanOr(Trig_Mantiya_1_Func005002001(),Trig_Mantiya_1_Func005002002())endfunctionfunction Trig_Mantiya_1_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02L')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Mantiya_1_Func005001(),Trig_Mantiya_1_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_1_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_1_Func001Func002Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_1_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_1_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_1_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02L'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_1_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_1_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02L'))>=50))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_1_Actions takes nothing returns nothingif(Trig_Mantiya_1_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Mantiya_1_Func001Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Mantiya_1_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Mantiya_1_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Mantiya_1_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Mantiya_1_Func002Func005C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02L'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02L'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02L'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02L'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02L'))+udg_Zatochka))endifif(Trig_Mantiya_1_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02L'))call UnitAddItemByIdSwapped('I02M',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Mantiya_1 takes nothing returns nothingset gg_trg_Mantiya_1=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Mantiya_1,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mantiya_1,Condition(function Trig_Mantiya_1_Conditions))
call TriggerAddAction(gg_trg_Mantiya_1,function Trig_Mantiya_1_Actions)endfunctionfunction Trig_Mantiya_2_Func005001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Mantiya_2_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Mantiya_2_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Mantiya_2_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Mantiya_2_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Mantiya_2_Func005002002001(),Trig_Mantiya_2_Func005002002002())
endfunctionfunction Trig_Mantiya_2_Func005002 takes nothing returns boolean
return GetBooleanOr(Trig_Mantiya_2_Func005002001(),Trig_Mantiya_2_Func005002002())endfunctionfunction Trig_Mantiya_2_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02M')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Mantiya_2_Func005001(),Trig_Mantiya_2_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_2_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_2_Func001Func002Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_2_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_2_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_2_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02M'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_2_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_2_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02M'))>=50))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_2_Actions takes nothing returns nothingif(Trig_Mantiya_2_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Mantiya_2_Func001Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Mantiya_2_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Mantiya_2_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Mantiya_2_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Mantiya_2_Func002Func005C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02M'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02M'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02M'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02M'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02M'))+udg_Zatochka))endifif(Trig_Mantiya_2_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02M'))call UnitAddItemByIdSwapped('I02N',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Mantiya_2 takes nothing returns nothingset gg_trg_Mantiya_2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Mantiya_2,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mantiya_2,Condition(function Trig_Mantiya_2_Conditions))
call TriggerAddAction(gg_trg_Mantiya_2,function Trig_Mantiya_2_Actions)endfunctionfunction Trig_Mantiya_3_Func005001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Mantiya_3_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Mantiya_3_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Mantiya_3_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Mantiya_3_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Mantiya_3_Func005002002001(),Trig_Mantiya_3_Func005002002002())
endfunctionfunction Trig_Mantiya_3_Func005002 takes nothing returns boolean
return GetBooleanOr(Trig_Mantiya_3_Func005002001(),Trig_Mantiya_3_Func005002002())endfunctionfunction Trig_Mantiya_3_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02N')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Mantiya_3_Func005001(),Trig_Mantiya_3_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_3_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_3_Func001Func002Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_3_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_3_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_3_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02N'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_3_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_3_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02N'))>=50))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_3_Actions takes nothing returns nothingif(Trig_Mantiya_3_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Mantiya_3_Func001Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Mantiya_3_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Mantiya_3_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Mantiya_3_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Mantiya_3_Func002Func005C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02N'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02N'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02N'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02N'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02N'))+udg_Zatochka))endifif(Trig_Mantiya_3_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02N'))call UnitAddItemByIdSwapped('I02O',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Mantiya_3 takes nothing returns nothingset gg_trg_Mantiya_3=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Mantiya_3,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mantiya_3,Condition(function Trig_Mantiya_3_Conditions))
call TriggerAddAction(gg_trg_Mantiya_3,function Trig_Mantiya_3_Actions)endfunctionfunction Trig_Mantiya_4_Func005001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Mantiya_4_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Mantiya_4_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Mantiya_4_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Mantiya_4_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Mantiya_4_Func005002002001(),Trig_Mantiya_4_Func005002002002())
endfunctionfunction Trig_Mantiya_4_Func005002 takes nothing returns boolean
return GetBooleanOr(Trig_Mantiya_4_Func005002001(),Trig_Mantiya_4_Func005002002())endfunctionfunction Trig_Mantiya_4_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02O')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Mantiya_4_Func005001(),Trig_Mantiya_4_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_4_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_4_Func001Func002Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_4_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_4_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_4_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02O'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_4_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_4_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02O'))>=50))thenreturn false
endifreturn trueendfunctionfunction Trig_Mantiya_4_Actions takes nothing returns nothingif(Trig_Mantiya_4_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Mantiya_4_Func001Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Mantiya_4_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Mantiya_4_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Mantiya_4_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Mantiya_4_Func002Func005C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02O'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02O'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02O'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02O'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02O'))+udg_Zatochka))endifif(Trig_Mantiya_4_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02O'))call UnitAddItemByIdSwapped('I02P',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Mantiya_4 takes nothing returns nothingset gg_trg_Mantiya_4=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Mantiya_4,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mantiya_4,Condition(function Trig_Mantiya_4_Conditions))
call TriggerAddAction(gg_trg_Mantiya_4,function Trig_Mantiya_4_Actions)endfunctionfunction Trig_Braclet_1_Func005001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Braclet_1_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Braclet_1_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Braclet_1_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Braclet_1_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Braclet_1_Func005002002001(),Trig_Braclet_1_Func005002002002())
endfunctionfunction Trig_Braclet_1_Func005002 takes nothing returns boolean
return GetBooleanOr(Trig_Braclet_1_Func005002001(),Trig_Braclet_1_Func005002002())endfunctionfunction Trig_Braclet_1_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02G')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Braclet_1_Func005001(),Trig_Braclet_1_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_1_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_1_Func001Func002Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_1_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_1_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_1_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02G'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_1_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_1_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02G'))>=100))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_1_Actions takes nothing returns nothingif(Trig_Braclet_1_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Braclet_1_Func001Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Braclet_1_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Braclet_1_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Braclet_1_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Braclet_1_Func002Func005C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02G'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02G'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02G'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02G'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02G'))+udg_Zatochka))endifif(Trig_Braclet_1_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02G'))call UnitAddItemByIdSwapped('I02H',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Braclet_1 takes nothing returns nothingset gg_trg_Braclet_1=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Braclet_1,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Braclet_1,Condition(function Trig_Braclet_1_Conditions))
call TriggerAddAction(gg_trg_Braclet_1,function Trig_Braclet_1_Actions)endfunctionfunction Trig_Braclet_2_Func005001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Braclet_2_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Braclet_2_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Braclet_2_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Braclet_2_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Braclet_2_Func005002002001(),Trig_Braclet_2_Func005002002002())
endfunctionfunction Trig_Braclet_2_Func005002 takes nothing returns boolean
return GetBooleanOr(Trig_Braclet_2_Func005002001(),Trig_Braclet_2_Func005002002())endfunctionfunction Trig_Braclet_2_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02H')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Braclet_2_Func005001(),Trig_Braclet_2_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_2_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_2_Func001Func002Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_2_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_2_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_2_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02H'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_2_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_2_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02H'))>=100))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_2_Actions takes nothing returns nothingif(Trig_Braclet_2_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Braclet_2_Func001Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Braclet_2_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Braclet_2_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Braclet_2_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Braclet_2_Func002Func005C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02H'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02H'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02H'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02H'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02H'))+udg_Zatochka))endifif(Trig_Braclet_2_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02H'))call UnitAddItemByIdSwapped('I02I',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Braclet_2 takes nothing returns nothingset gg_trg_Braclet_2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Braclet_2,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Braclet_2,Condition(function Trig_Braclet_2_Conditions))
call TriggerAddAction(gg_trg_Braclet_2,function Trig_Braclet_2_Actions)endfunctionfunction Trig_Braclet_3_Func005001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Braclet_3_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Braclet_3_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Braclet_3_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Braclet_3_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Braclet_3_Func005002002001(),Trig_Braclet_3_Func005002002002())
endfunctionfunction Trig_Braclet_3_Func005002 takes nothing returns boolean
return GetBooleanOr(Trig_Braclet_3_Func005002001(),Trig_Braclet_3_Func005002002())endfunctionfunction Trig_Braclet_3_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02I')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Braclet_3_Func005001(),Trig_Braclet_3_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_3_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_3_Func001Func002Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_3_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_3_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_3_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02I'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_3_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_3_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02I'))>=100))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_3_Actions takes nothing returns nothingif(Trig_Braclet_3_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Braclet_3_Func001Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Braclet_3_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Braclet_3_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Braclet_3_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Braclet_3_Func002Func005C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02I'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02I'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02I'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02I'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02I'))+udg_Zatochka))endifif(Trig_Braclet_3_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02I'))call UnitAddItemByIdSwapped('I02J',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Braclet_3 takes nothing returns nothingset gg_trg_Braclet_3=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Braclet_3,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Braclet_3,Condition(function Trig_Braclet_3_Conditions))
call TriggerAddAction(gg_trg_Braclet_3,function Trig_Braclet_3_Actions)endfunctionfunction Trig_Braclet_4_Func005001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Braclet_4_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Braclet_4_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Braclet_4_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Braclet_4_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Braclet_4_Func005002002001(),Trig_Braclet_4_Func005002002002())
endfunctionfunction Trig_Braclet_4_Func005002 takes nothing returns boolean
return GetBooleanOr(Trig_Braclet_4_Func005002001(),Trig_Braclet_4_Func005002002())endfunctionfunction Trig_Braclet_4_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02J')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Braclet_4_Func005001(),Trig_Braclet_4_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_4_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_4_Func001Func002Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_4_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_4_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_4_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02J'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_4_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_4_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02J'))>=100))thenreturn false
endifreturn trueendfunctionfunction Trig_Braclet_4_Actions takes nothing returns nothingif(Trig_Braclet_4_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Braclet_4_Func001Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Braclet_4_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Braclet_4_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Braclet_4_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Braclet_4_Func002Func005C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02J'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02J'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02J'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02J'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02J'))+udg_Zatochka))endifif(Trig_Braclet_4_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02J'))call UnitAddItemByIdSwapped('I02K',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Braclet_4 takes nothing returns nothingset gg_trg_Braclet_4=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Braclet_4,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Braclet_4,Condition(function Trig_Braclet_4_Conditions))
call TriggerAddAction(gg_trg_Braclet_4,function Trig_Braclet_4_Actions)endfunctionfunction Trig_Gilet_1_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Gilet_1_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Gilet_1_Func005002002001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Gilet_1_Func005002002002 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Gilet_1_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Gilet_1_Func005002002001(),Trig_Gilet_1_Func005002002002())
endfunctionfunction Trig_Gilet_1_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Gilet_1_Func005002001(),Trig_Gilet_1_Func005002002())endfunctionfunction Trig_Gilet_1_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02B')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Gilet_1_Func005001(),Trig_Gilet_1_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_1_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_1_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_1_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_1_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_1_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02B'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_1_Func002C takes nothing returns boolean
if(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_1_Func003C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02B'))>=50))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_1_Actions takes nothing returns nothingif(Trig_Gilet_1_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Gilet_1_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Gilet_1_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Gilet_1_Func001Func002Func002Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Gilet_1_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Gilet_1_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02B'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02B'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02B'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02B'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02B'))+udg_Zatochka))endifif(Trig_Gilet_1_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02B'))call UnitAddItemByIdSwapped('I02C',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Gilet_1 takes nothing returns nothingset gg_trg_Gilet_1=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Gilet_1,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Gilet_1,Condition(function Trig_Gilet_1_Conditions))
call TriggerAddAction(gg_trg_Gilet_1,function Trig_Gilet_1_Actions)endfunctionfunction Trig_Gilet_2_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Gilet_2_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Gilet_2_Func005002002001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Gilet_2_Func005002002002 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Gilet_2_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Gilet_2_Func005002002001(),Trig_Gilet_2_Func005002002002())
endfunctionfunction Trig_Gilet_2_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Gilet_2_Func005002001(),Trig_Gilet_2_Func005002002())endfunctionfunction Trig_Gilet_2_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02C')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Gilet_2_Func005001(),Trig_Gilet_2_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_2_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_2_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_2_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_2_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_2_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02C'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_2_Func002C takes nothing returns boolean
if(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_2_Func003C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02C'))>=50))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_2_Actions takes nothing returns nothingif(Trig_Gilet_2_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Gilet_2_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Gilet_2_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Gilet_2_Func001Func002Func002Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Gilet_2_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Gilet_2_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02C'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02C'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02C'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02C'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02C'))+udg_Zatochka))endifif(Trig_Gilet_2_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02C'))call UnitAddItemByIdSwapped('I02D',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Gilet_2 takes nothing returns nothingset gg_trg_Gilet_2=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Gilet_2,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Gilet_2,Condition(function Trig_Gilet_2_Conditions))
call TriggerAddAction(gg_trg_Gilet_2,function Trig_Gilet_2_Actions)endfunctionfunction Trig_Gilet_3_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Gilet_3_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Gilet_3_Func005002002001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Gilet_3_Func005002002002 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Gilet_3_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Gilet_3_Func005002002001(),Trig_Gilet_3_Func005002002002())
endfunctionfunction Trig_Gilet_3_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Gilet_3_Func005002001(),Trig_Gilet_3_Func005002002())endfunctionfunction Trig_Gilet_3_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02D')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Gilet_3_Func005001(),Trig_Gilet_3_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_3_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_3_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_3_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_3_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_3_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02D'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_3_Func002C takes nothing returns boolean
if(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_3_Func003C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02D'))>=50))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_3_Actions takes nothing returns nothingif(Trig_Gilet_3_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Gilet_3_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Gilet_3_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Gilet_3_Func001Func002Func002Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Gilet_3_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Gilet_3_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02D'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02D'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02D'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02D'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02D'))+udg_Zatochka))endifif(Trig_Gilet_3_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02D'))call UnitAddItemByIdSwapped('I02E',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Gilet_3 takes nothing returns nothingset gg_trg_Gilet_3=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Gilet_3,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Gilet_3,Condition(function Trig_Gilet_3_Conditions))
call TriggerAddAction(gg_trg_Gilet_3,function Trig_Gilet_3_Actions)endfunctionfunction Trig_Gilet_4_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Gilet_4_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Gilet_4_Func005002002001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Gilet_4_Func005002002002 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Gilet_4_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Gilet_4_Func005002002001(),Trig_Gilet_4_Func005002002002())
endfunctionfunction Trig_Gilet_4_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Gilet_4_Func005002001(),Trig_Gilet_4_Func005002002())endfunctionfunction Trig_Gilet_4_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02E')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Gilet_4_Func005001(),Trig_Gilet_4_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_4_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_4_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_4_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_4_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_4_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02E'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_4_Func002C takes nothing returns boolean
if(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_4_Func003C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02E'))>=50))thenreturn false
endifreturn trueendfunctionfunction Trig_Gilet_4_Actions takes nothing returns nothingif(Trig_Gilet_4_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Gilet_4_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Gilet_4_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Gilet_4_Func001Func002Func002Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Gilet_4_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Gilet_4_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02E'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02E'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02E'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02E'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02E'))+udg_Zatochka))endifif(Trig_Gilet_4_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02E'))call UnitAddItemByIdSwapped('I02F',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Gilet_4 takes nothing returns nothingset gg_trg_Gilet_4=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Gilet_4,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Gilet_4,Condition(function Trig_Gilet_4_Conditions))
call TriggerAddAction(gg_trg_Gilet_4,function Trig_Gilet_4_Actions)endfunctionfunction Trig_Shlem_Samutaya_1_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Shlem_Samutaya_1_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Shlem_Samutaya_1_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Shlem_Samutaya_1_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Shlem_Samutaya_1_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Shlem_Samutaya_1_Func005002002001(),Trig_Shlem_Samutaya_1_Func005002002002())endfunctionfunction Trig_Shlem_Samutaya_1_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Shlem_Samutaya_1_Func005002001(),Trig_Shlem_Samutaya_1_Func005002002())
endfunctionfunction Trig_Shlem_Samutaya_1_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I026')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Shlem_Samutaya_1_Func005001(),Trig_Shlem_Samutaya_1_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_1_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_1_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_1_Func001Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_1_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_1_Func002Func005C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I026'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_1_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_1_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I026'))>=50))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_1_Actions takes nothing returns nothing
if(Trig_Shlem_Samutaya_1_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Shlem_Samutaya_1_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Shlem_Samutaya_1_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Shlem_Samutaya_1_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Shlem_Samutaya_1_Func002C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Shlem_Samutaya_1_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I026'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I026'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I026'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I026'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I026'))+udg_Zatochka))endifif(Trig_Shlem_Samutaya_1_Func003C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I026'))call UnitAddItemByIdSwapped('I027',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Shlem_Samutaya_1 takes nothing returns nothing
set gg_trg_Shlem_Samutaya_1=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Shlem_Samutaya_1,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Shlem_Samutaya_1,Condition(function Trig_Shlem_Samutaya_1_Conditions))call TriggerAddAction(gg_trg_Shlem_Samutaya_1,function Trig_Shlem_Samutaya_1_Actions)endfunctionfunction Trig_Shlem_Samutaya_2_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Shlem_Samutaya_2_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Shlem_Samutaya_2_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Shlem_Samutaya_2_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Shlem_Samutaya_2_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Shlem_Samutaya_2_Func005002002001(),Trig_Shlem_Samutaya_2_Func005002002002())endfunctionfunction Trig_Shlem_Samutaya_2_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Shlem_Samutaya_2_Func005002001(),Trig_Shlem_Samutaya_2_Func005002002())
endfunctionfunction Trig_Shlem_Samutaya_2_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I027')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Shlem_Samutaya_2_Func005001(),Trig_Shlem_Samutaya_2_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_2_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_2_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_2_Func001Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_2_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_2_Func002Func005C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I027'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_2_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_2_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I027'))>=50))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_2_Actions takes nothing returns nothing
if(Trig_Shlem_Samutaya_2_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Shlem_Samutaya_2_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Shlem_Samutaya_2_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Shlem_Samutaya_2_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Shlem_Samutaya_2_Func002C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Shlem_Samutaya_2_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I027'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I027'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I027'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I027'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I027'))+udg_Zatochka))endifif(Trig_Shlem_Samutaya_2_Func003C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I027'))call UnitAddItemByIdSwapped('I028',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Shlem_Samutaya_2 takes nothing returns nothing
set gg_trg_Shlem_Samutaya_2=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Shlem_Samutaya_2,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Shlem_Samutaya_2,Condition(function Trig_Shlem_Samutaya_2_Conditions))call TriggerAddAction(gg_trg_Shlem_Samutaya_2,function Trig_Shlem_Samutaya_2_Actions)endfunctionfunction Trig_Shlem_Samutaya_3_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Shlem_Samutaya_3_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Shlem_Samutaya_3_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Shlem_Samutaya_3_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Shlem_Samutaya_3_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Shlem_Samutaya_3_Func005002002001(),Trig_Shlem_Samutaya_3_Func005002002002())endfunctionfunction Trig_Shlem_Samutaya_3_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Shlem_Samutaya_3_Func005002001(),Trig_Shlem_Samutaya_3_Func005002002())
endfunctionfunction Trig_Shlem_Samutaya_3_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I028')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Shlem_Samutaya_3_Func005001(),Trig_Shlem_Samutaya_3_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_3_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_3_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_3_Func001Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_3_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_3_Func002Func005C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I028'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_3_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_3_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I028'))>=50))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_3_Actions takes nothing returns nothing
if(Trig_Shlem_Samutaya_3_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Shlem_Samutaya_3_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Shlem_Samutaya_3_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Shlem_Samutaya_3_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Shlem_Samutaya_3_Func002C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Shlem_Samutaya_3_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I028'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I028'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I028'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I028'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I028'))+udg_Zatochka))endifif(Trig_Shlem_Samutaya_3_Func003C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I028'))call UnitAddItemByIdSwapped('I029',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Shlem_Samutaya_3 takes nothing returns nothing
set gg_trg_Shlem_Samutaya_3=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Shlem_Samutaya_3,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Shlem_Samutaya_3,Condition(function Trig_Shlem_Samutaya_3_Conditions))call TriggerAddAction(gg_trg_Shlem_Samutaya_3,function Trig_Shlem_Samutaya_3_Actions)endfunctionfunction Trig_Shlem_Samutaya_4_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Shlem_Samutaya_4_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Shlem_Samutaya_4_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Shlem_Samutaya_4_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Shlem_Samutaya_4_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Shlem_Samutaya_4_Func005002002001(),Trig_Shlem_Samutaya_4_Func005002002002())endfunctionfunction Trig_Shlem_Samutaya_4_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Shlem_Samutaya_4_Func005002001(),Trig_Shlem_Samutaya_4_Func005002002())
endfunctionfunction Trig_Shlem_Samutaya_4_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I029')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Shlem_Samutaya_4_Func005001(),Trig_Shlem_Samutaya_4_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_4_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_4_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_4_Func001Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_4_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_4_Func002Func005C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I029'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_4_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_4_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I029'))>=50))thenreturn false
endifreturn trueendfunctionfunction Trig_Shlem_Samutaya_4_Actions takes nothing returns nothing
if(Trig_Shlem_Samutaya_4_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Shlem_Samutaya_4_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Shlem_Samutaya_4_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Shlem_Samutaya_4_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Shlem_Samutaya_4_Func002C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Shlem_Samutaya_4_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I028'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I029'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I029'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I029'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I029'))+udg_Zatochka))endifif(Trig_Shlem_Samutaya_4_Func003C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I029'))call UnitAddItemByIdSwapped('I02A',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Shlem_Samutaya_4 takes nothing returns nothing
set gg_trg_Shlem_Samutaya_4=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Shlem_Samutaya_4,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Shlem_Samutaya_4,Condition(function Trig_Shlem_Samutaya_4_Conditions))call TriggerAddAction(gg_trg_Shlem_Samutaya_4,function Trig_Shlem_Samutaya_4_Actions)endfunctionfunction Trig_Mech_1_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Mech_1_Func005002001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Mech_1_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Mech_1_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Mech_1_Func005002002 takes nothing returns boolean
return GetBooleanOr(Trig_Mech_1_Func005002002001(),Trig_Mech_1_Func005002002002())endfunctionfunction Trig_Mech_1_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Mech_1_Func005002001(),Trig_Mech_1_Func005002002())
endfunctionfunction Trig_Mech_1_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I021')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Mech_1_Func005001(),Trig_Mech_1_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_1_Func001Func002Func002Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_1_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_1_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_1_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_1_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I021'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_1_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_1_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I021'))>=300))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_1_Actions takes nothing returns nothingif(Trig_Mech_1_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Mech_1_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Mech_1_Func001Func002Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Mech_1_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Mech_1_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Mech_1_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I021'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I021'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I021'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I021'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I021'))+udg_Zatochka))endifif(Trig_Mech_1_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I021'))call UnitAddItemByIdSwapped('I022',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Mech_1 takes nothing returns nothingset gg_trg_Mech_1=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mech_1,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mech_1,Condition(function Trig_Mech_1_Conditions))call TriggerAddAction(gg_trg_Mech_1,function Trig_Mech_1_Actions)endfunctionfunction Trig_Mech_2_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Mech_2_Func005002001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Mech_2_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Mech_2_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Mech_2_Func005002002 takes nothing returns boolean
return GetBooleanOr(Trig_Mech_2_Func005002002001(),Trig_Mech_2_Func005002002002())endfunctionfunction Trig_Mech_2_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Mech_2_Func005002001(),Trig_Mech_2_Func005002002())
endfunctionfunction Trig_Mech_2_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I022')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Mech_2_Func005001(),Trig_Mech_2_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_2_Func001Func002Func002Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_2_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_2_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_2_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_2_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I022'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_2_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_2_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I022'))>=300))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_2_Actions takes nothing returns nothingif(Trig_Mech_2_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Mech_2_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Mech_2_Func001Func002Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Mech_2_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Mech_2_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Mech_2_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I022'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I022'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I022'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I022'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I022'))+udg_Zatochka))endifif(Trig_Mech_2_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I022'))call UnitAddItemByIdSwapped('I023',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Mech_2 takes nothing returns nothingset gg_trg_Mech_2=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mech_2,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mech_2,Condition(function Trig_Mech_2_Conditions))call TriggerAddAction(gg_trg_Mech_2,function Trig_Mech_2_Actions)endfunctionfunction Trig_Mech_3_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Mech_3_Func005002001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Mech_3_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Mech_3_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Mech_3_Func005002002 takes nothing returns boolean
return GetBooleanOr(Trig_Mech_3_Func005002002001(),Trig_Mech_3_Func005002002002())endfunctionfunction Trig_Mech_3_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Mech_3_Func005002001(),Trig_Mech_3_Func005002002())
endfunctionfunction Trig_Mech_3_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I023')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Mech_3_Func005001(),Trig_Mech_3_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_3_Func001Func002Func002Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_3_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_3_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_3_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_3_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I023'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_3_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_3_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I023'))>=300))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_3_Actions takes nothing returns nothingif(Trig_Mech_3_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Mech_3_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Mech_3_Func001Func002Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Mech_3_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Mech_3_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Mech_3_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I023'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I023'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I023'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I023'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I023'))+udg_Zatochka))endifif(Trig_Mech_3_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I023'))call UnitAddItemByIdSwapped('I024',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Mech_3 takes nothing returns nothingset gg_trg_Mech_3=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mech_3,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mech_3,Condition(function Trig_Mech_3_Conditions))call TriggerAddAction(gg_trg_Mech_3,function Trig_Mech_3_Actions)endfunctionfunction Trig_Mech_4_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Mech_4_Func005002001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Mech_4_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Mech_4_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Mech_4_Func005002002 takes nothing returns boolean
return GetBooleanOr(Trig_Mech_4_Func005002002001(),Trig_Mech_4_Func005002002002())endfunctionfunction Trig_Mech_4_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Mech_4_Func005002001(),Trig_Mech_4_Func005002002())
endfunctionfunction Trig_Mech_4_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I024')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Mech_4_Func005001(),Trig_Mech_4_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_4_Func001Func002Func002Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_4_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_4_Func001Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_4_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_4_Func002Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I024'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_4_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_4_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I024'))>=300))thenreturn false
endifreturn trueendfunctionfunction Trig_Mech_4_Actions takes nothing returns nothingif(Trig_Mech_4_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Mech_4_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Mech_4_Func001Func002Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Mech_4_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Mech_4_Func002C())thencall DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Mech_4_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I024'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I024'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I024'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I024'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I024'))+udg_Zatochka))endifif(Trig_Mech_4_Func003C())thencall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I024'))call UnitAddItemByIdSwapped('I025',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Mech_4 takes nothing returns nothingset gg_trg_Mech_4=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mech_4,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Mech_4,Condition(function Trig_Mech_4_Conditions))call TriggerAddAction(gg_trg_Mech_4,function Trig_Mech_4_Actions)endfunctionfunction Trig_Katana_1_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Katana_1_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Katana_1_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Katana_1_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Katana_1_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Katana_1_Func005002002001(),Trig_Katana_1_Func005002002002())endfunctionfunction Trig_Katana_1_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Katana_1_Func005002001(),Trig_Katana_1_Func005002002())
endfunctionfunction Trig_Katana_1_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01I')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Katana_1_Func005001(),Trig_Katana_1_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_1_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_1_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_1_Func001Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_1_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_1_Func002Func005C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01I'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_1_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_1_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01I'))>=200))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_1_Actions takes nothing returns nothing
if(Trig_Katana_1_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Katana_1_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Katana_1_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Katana_1_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Katana_1_Func002C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Katana_1_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01I'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01I'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01I'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01I'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01I'))+udg_Zatochka))endifif(Trig_Katana_1_Func003C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01I'))call UnitAddItemByIdSwapped('I01J',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Katana_1 takes nothing returns nothing
set gg_trg_Katana_1=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Katana_1,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Katana_1,Condition(function Trig_Katana_1_Conditions))call TriggerAddAction(gg_trg_Katana_1,function Trig_Katana_1_Actions)endfunctionfunction Trig_Katana_2_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Katana_2_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Katana_2_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Katana_2_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Katana_2_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Katana_2_Func005002002001(),Trig_Katana_2_Func005002002002())endfunctionfunction Trig_Katana_2_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Katana_2_Func005002001(),Trig_Katana_2_Func005002002())
endfunctionfunction Trig_Katana_2_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01J')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Katana_2_Func005001(),Trig_Katana_2_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_2_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_2_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_2_Func001Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_2_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_2_Func002Func005C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01J'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_2_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_2_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01J'))>=200))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_2_Actions takes nothing returns nothing
if(Trig_Katana_2_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Katana_2_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Katana_2_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Katana_2_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Katana_2_Func002C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Katana_2_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01J'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01J'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01J'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01J'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01J'))+udg_Zatochka))endifif(Trig_Katana_2_Func003C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01J'))call UnitAddItemByIdSwapped('I01K',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Katana_2 takes nothing returns nothing
set gg_trg_Katana_2=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Katana_2,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Katana_2,Condition(function Trig_Katana_2_Conditions))call TriggerAddAction(gg_trg_Katana_2,function Trig_Katana_2_Actions)endfunctionfunction Trig_Katana_3_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Katana_3_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Katana_3_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Katana_3_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Katana_3_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Katana_3_Func005002002001(),Trig_Katana_3_Func005002002002())endfunctionfunction Trig_Katana_3_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Katana_3_Func005002001(),Trig_Katana_3_Func005002002())
endfunctionfunction Trig_Katana_3_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01K')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Katana_3_Func005001(),Trig_Katana_3_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_3_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_3_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_3_Func001Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_3_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_3_Func002Func005C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01K'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_3_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_3_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01K'))>=200))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_3_Actions takes nothing returns nothing
if(Trig_Katana_3_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Katana_3_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Katana_3_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Katana_3_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Katana_3_Func002C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Katana_3_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01K'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01K'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01K'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01K'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01K'))+udg_Zatochka))endifif(Trig_Katana_3_Func003C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01K'))call UnitAddItemByIdSwapped('I01L',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Katana_3 takes nothing returns nothing
set gg_trg_Katana_3=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Katana_3,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Katana_3,Condition(function Trig_Katana_3_Conditions))call TriggerAddAction(gg_trg_Katana_3,function Trig_Katana_3_Actions)endfunctionfunction Trig_Katana_4_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Katana_4_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Katana_4_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Katana_4_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Katana_4_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Katana_4_Func005002002001(),Trig_Katana_4_Func005002002002())endfunctionfunction Trig_Katana_4_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Katana_4_Func005002001(),Trig_Katana_4_Func005002002())
endfunctionfunction Trig_Katana_4_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01L')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Katana_4_Func005001(),Trig_Katana_4_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_4_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_4_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_4_Func001Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_4_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_4_Func002Func005C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01L'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_4_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_4_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01L'))>=200))thenreturn false
endifreturn trueendfunctionfunction Trig_Katana_4_Actions takes nothing returns nothing
if(Trig_Katana_4_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Katana_4_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Katana_4_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Katana_4_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Katana_4_Func002C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Katana_4_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01L'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01L'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01L'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01L'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01L'))+udg_Zatochka))endifif(Trig_Katana_4_Func003C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01L'))call UnitAddItemByIdSwapped('I01M',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Katana_4 takes nothing returns nothing
set gg_trg_Katana_4=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Katana_4,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Katana_4,Condition(function Trig_Katana_4_Conditions))call TriggerAddAction(gg_trg_Katana_4,function Trig_Katana_4_Actions)endfunctionfunction Trig_Ivoviy_Arbalet_1_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Ivoviy_Arbalet_1_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Ivoviy_Arbalet_1_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Ivoviy_Arbalet_1_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Ivoviy_Arbalet_1_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Ivoviy_Arbalet_1_Func005002002001(),Trig_Ivoviy_Arbalet_1_Func005002002002())endfunctionfunction Trig_Ivoviy_Arbalet_1_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Ivoviy_Arbalet_1_Func005002001(),Trig_Ivoviy_Arbalet_1_Func005002002())
endfunctionfunction Trig_Ivoviy_Arbalet_1_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I018')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Ivoviy_Arbalet_1_Func005001(),Trig_Ivoviy_Arbalet_1_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_1_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_1_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_1_Func001Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_1_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_1_Func002Func005C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I018'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_1_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_1_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I018'))>=100))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_1_Actions takes nothing returns nothing
if(Trig_Ivoviy_Arbalet_1_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Ivoviy_Arbalet_1_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Ivoviy_Arbalet_1_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Ivoviy_Arbalet_1_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Ivoviy_Arbalet_1_Func002C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Ivoviy_Arbalet_1_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I018'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I018'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I018'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I018'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I018'))+udg_Zatochka))endifif(Trig_Ivoviy_Arbalet_1_Func003C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I018'))call UnitAddItemByIdSwapped('I019',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Ivoviy_Arbalet_1 takes nothing returns nothing
set gg_trg_Ivoviy_Arbalet_1=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ivoviy_Arbalet_1,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Ivoviy_Arbalet_1,Condition(function Trig_Ivoviy_Arbalet_1_Conditions))call TriggerAddAction(gg_trg_Ivoviy_Arbalet_1,function Trig_Ivoviy_Arbalet_1_Actions)endfunctionfunction Trig_Ivoviy_Arbalet_2_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Ivoviy_Arbalet_2_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Ivoviy_Arbalet_2_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Ivoviy_Arbalet_2_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Ivoviy_Arbalet_2_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Ivoviy_Arbalet_2_Func005002002001(),Trig_Ivoviy_Arbalet_2_Func005002002002())endfunctionfunction Trig_Ivoviy_Arbalet_2_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Ivoviy_Arbalet_2_Func005002001(),Trig_Ivoviy_Arbalet_2_Func005002002())
endfunctionfunction Trig_Ivoviy_Arbalet_2_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I019')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Ivoviy_Arbalet_2_Func005001(),Trig_Ivoviy_Arbalet_2_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_2_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_2_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_2_Func001Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_2_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_2_Func002Func005C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I019'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_2_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_2_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I019'))>=100))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_2_Actions takes nothing returns nothing
if(Trig_Ivoviy_Arbalet_2_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Ivoviy_Arbalet_2_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Ivoviy_Arbalet_2_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Ivoviy_Arbalet_2_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Ivoviy_Arbalet_2_Func002C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Ivoviy_Arbalet_2_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I019'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I019'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I019'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I019'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I019'))+udg_Zatochka))endifif(Trig_Ivoviy_Arbalet_2_Func003C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I019'))call UnitAddItemByIdSwapped('I01E',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Ivoviy_Arbalet_2 takes nothing returns nothing
set gg_trg_Ivoviy_Arbalet_2=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ivoviy_Arbalet_2,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Ivoviy_Arbalet_2,Condition(function Trig_Ivoviy_Arbalet_2_Conditions))call TriggerAddAction(gg_trg_Ivoviy_Arbalet_2,function Trig_Ivoviy_Arbalet_2_Actions)endfunctionfunction Trig_Ivoviy_Arbalet_3_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Ivoviy_Arbalet_3_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Ivoviy_Arbalet_3_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Ivoviy_Arbalet_3_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Ivoviy_Arbalet_3_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Ivoviy_Arbalet_3_Func005002002001(),Trig_Ivoviy_Arbalet_3_Func005002002002())endfunctionfunction Trig_Ivoviy_Arbalet_3_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Ivoviy_Arbalet_3_Func005002001(),Trig_Ivoviy_Arbalet_3_Func005002002())
endfunctionfunction Trig_Ivoviy_Arbalet_3_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01E')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Ivoviy_Arbalet_3_Func005001(),Trig_Ivoviy_Arbalet_3_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_3_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_3_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_3_Func001Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_3_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_3_Func002Func005C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01E'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_3_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_3_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01E'))>=100))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_3_Actions takes nothing returns nothing
if(Trig_Ivoviy_Arbalet_3_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Ivoviy_Arbalet_3_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Ivoviy_Arbalet_3_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Ivoviy_Arbalet_3_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Ivoviy_Arbalet_3_Func002C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Ivoviy_Arbalet_3_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01E'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01E'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01E'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01E'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01E'))+udg_Zatochka))endifif(Trig_Ivoviy_Arbalet_3_Func003C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01E'))call UnitAddItemByIdSwapped('I01F',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Ivoviy_Arbalet_3 takes nothing returns nothing
set gg_trg_Ivoviy_Arbalet_3=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ivoviy_Arbalet_3,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Ivoviy_Arbalet_3,Condition(function Trig_Ivoviy_Arbalet_3_Conditions))call TriggerAddAction(gg_trg_Ivoviy_Arbalet_3,function Trig_Ivoviy_Arbalet_3_Actions)endfunctionfunction Trig_Ivoviy_Arbalet_4_Func005001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true)endfunctionfunction Trig_Ivoviy_Arbalet_4_Func005002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true)endfunctionfunction Trig_Ivoviy_Arbalet_4_Func005002002001 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true)endfunctionfunction Trig_Ivoviy_Arbalet_4_Func005002002002 takes nothing returns booleanreturn(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true)endfunctionfunction Trig_Ivoviy_Arbalet_4_Func005002002 takes nothing returns booleanreturn GetBooleanOr(Trig_Ivoviy_Arbalet_4_Func005002002001(),Trig_Ivoviy_Arbalet_4_Func005002002002())endfunctionfunction Trig_Ivoviy_Arbalet_4_Func005002 takes nothing returns booleanreturn GetBooleanOr(Trig_Ivoviy_Arbalet_4_Func005002001(),Trig_Ivoviy_Arbalet_4_Func005002002())
endfunctionfunction Trig_Ivoviy_Arbalet_4_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01F')==true))thenreturn false
endifif(not GetBooleanOr(Trig_Ivoviy_Arbalet_4_Func005001(),Trig_Ivoviy_Arbalet_4_Func005002()))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_4_Func001Func002Func002Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_4_Func001Func002Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_4_Func001Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_4_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_4_Func002Func005C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01F'))<(udg_Zatochka*-1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_4_Func002C takes nothing returns booleanif(not(udg_Zatochka<0))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_4_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01F'))>=100))thenreturn false
endifreturn trueendfunctionfunction Trig_Ivoviy_Arbalet_4_Actions takes nothing returns nothing
if(Trig_Ivoviy_Arbalet_4_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))set udg_Zatochka=GetRandomInt(-10,10)else
if(Trig_Ivoviy_Arbalet_4_Func001Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))set udg_Zatochka=GetRandomInt(-5,15)
else
if(Trig_Ivoviy_Arbalet_4_Func001Func002Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))set udg_Zatochka=GetRandomInt(0,20)else
if(Trig_Ivoviy_Arbalet_4_Func001Func002Func002Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))set udg_Zatochka=GetRandomInt(5,25)else
endifendifendifendifif(Trig_Ivoviy_Arbalet_4_Func002C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c00FF0000"+I2S(udg_Zatochka)))))if(Trig_Ivoviy_Arbalet_4_Func002Func005C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01F'),1)else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01F'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01F'))+udg_Zatochka))endifelse
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+(" заточка "+("|c0000FF00"+I2S(udg_Zatochka)))))call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01F'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01F'))+udg_Zatochka))endifif(Trig_Ivoviy_Arbalet_4_Func003C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01F'))call UnitAddItemByIdSwapped('I01G',GetTriggerUnit())
else
endifendfunctionfunction InitTrig_Ivoviy_Arbalet_4 takes nothing returns nothing
set gg_trg_Ivoviy_Arbalet_4=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ivoviy_Arbalet_4,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Ivoviy_Arbalet_4,Condition(function Trig_Ivoviy_Arbalet_4_Conditions))call TriggerAddAction(gg_trg_Ivoviy_Arbalet_4,function Trig_Ivoviy_Arbalet_4_Actions)endfunctionfunction GDD_RecycleRate takes nothing returns realreturn 0.03endfunctionfunction GDD_Filter takes unit u returns boolean
return GetUnitAbilityLevel(u,'Aloc')==0endfunctionfunction GDD_Event takes nothing returns boolean
local unit damagedcache=udg_GDD_DamagedUnitlocal unit damagingcache=udg_GDD_DamageSourcelocal real damagecache=udg_GDD_Damageset udg_GDD_DamagedUnit=GetTriggerUnit()
set udg_GDD_DamageSource=GetEventDamageSource()set udg_GDD_Damage=GetEventDamage()set udg_GDD_Event=1.
set udg_GDD_Event=0.
set udg_GDD_DamagedUnit=damagedcache
set udg_GDD_DamageSource=damagingcacheset udg_GDD_Damage=damagecacheset damagedcache=nullset damagingcache=nullreturn false
endfunctionfunction GDD_AddDetection takes nothing returns booleanif(IsUnitInGroup(GetFilterUnit(),udg_GDD__LeftMapGroup))then
call GroupRemoveUnit(udg_GDD__LeftMapGroup,GetFilterUnit())elseif(GDD_Filter(GetFilterUnit()))thenset udg_GDD__Integers[0]=udg_GDD__Integers[0]+1set udg_GDD__UnitArray[udg_GDD__Integers[0]]=GetFilterUnit()
set udg_GDD__TriggerArray[udg_GDD__Integers[0]]=CreateTrigger()call TriggerRegisterUnitEvent(udg_GDD__TriggerArray[udg_GDD__Integers[0]],udg_GDD__UnitArray[udg_GDD__Integers[0]],EVENT_UNIT_DAMAGED)call TriggerAddCondition(udg_GDD__TriggerArray[udg_GDD__Integers[0]],Condition(function GDD_Event))endifreturn false
endfunctionfunction GDD_PreplacedDetection takes nothing returns nothinglocal group g=CreateGroup()local integer i=0loop
call GroupEnumUnitsOfPlayer(g,Player(i),Condition(function GDD_AddDetection))set i=i+1exitwhen i==bj_MAX_PLAYER_SLOTSendloopcall DestroyGroup(g)
set g=nullendfunctionfunction GDD_GroupRefresh takes nothing returns nothingif(bj_slotControlUsed[5063]==true)thencall GroupClear(udg_GDD__LeftMapGroup)set bj_slotControlUsed[5063]=falseendifcall GroupAddUnit(udg_GDD__LeftMapGroup,GetEnumUnit())endfunctionfunction GDD_Recycle takes nothing returns nothingif(udg_GDD__Integers[0]<=0)thenreturnelseif(udg_GDD__Integers[1]<=0)thenset udg_GDD__Integers[1]=udg_GDD__Integers[0]endifif(GetUnitTypeId(udg_GDD__UnitArray[udg_GDD__Integers[1]])==0)thencall DestroyTrigger(udg_GDD__TriggerArray[udg_GDD__Integers[1]])
set udg_GDD__TriggerArray[udg_GDD__Integers[1]]=null
set udg_GDD__TriggerArray[udg_GDD__Integers[1]]=udg_GDD__TriggerArray[udg_GDD__Integers[0]]set udg_GDD__UnitArray[udg_GDD__Integers[1]]=udg_GDD__UnitArray[udg_GDD__Integers[0]]set udg_GDD__UnitArray[udg_GDD__Integers[0]]=nullset udg_GDD__Integers[0]=udg_GDD__Integers[0]-1endifset udg_GDD__Integers[1]=udg_GDD__Integers[1]-1endfunctionfunction GDD_LeaveMap takes nothing returns booleanlocal boolean cached=bj_slotControlUsed[5063]if(udg_GDD__Integers[2]<64)thenset udg_GDD__Integers[2]=udg_GDD__Integers[2]+1else
set bj_slotControlUsed[5063]=truecall ForGroup(udg_GDD__LeftMapGroup,function GDD_GroupRefresh)set udg_GDD__Integers[2]=0endifcall GroupAddUnit(udg_GDD__LeftMapGroup,GetFilterUnit())
set bj_slotControlUsed[5063]=cachedreturn false
endfunctionfunction InitTrig_GUI_Friendly_Damage_Detection takes nothing returns nothinglocal region r=CreateRegion()call RegionAddRect(r,GetWorldBounds())call TriggerRegisterEnterRegion(CreateTrigger(),r,Condition(function GDD_AddDetection))call TriggerRegisterLeaveRegion(CreateTrigger(),r,Condition(function GDD_LeaveMap))call GDD_PreplacedDetection()call TimerStart(CreateTimer(),GDD_RecycleRate(),true,function GDD_Recycle)set r=nullendfunctionfunction Trig_Configuration_Func002002 takes nothing returns nothing
call TriggerRegisterUnitEvent(gg_trg_Floating_Spell_Name,GetEnumUnit(),EVENT_UNIT_SPELL_EFFECT)endfunctionfunction Trig_Configuration_Actions takes nothing returns nothingset udg_tempGroup=GetUnitsInRectAll(GetPlayableMapRect())call ForGroupBJ(udg_tempGroup,function Trig_Configuration_Func002002)call DestroyGroup(udg_tempGroup)
set udg_Text_Duration=2.00set udg_TextSize_dmg=7.50set udg_TextSize_spells=10.00set udg_PlayerColors[1]="|c00FF0303"
set udg_PlayerColors[2]="|c000042FF"
set udg_PlayerColors[3]="|c001CE6B9"
set udg_PlayerColors[4]="|c00540081"
set udg_PlayerColors[5]="|c00FFFC01"
set udg_PlayerColors[6]="|c00fEBA0E"
set udg_PlayerColors[7]="|c0020C000"
set udg_PlayerColors[8]="|c00E55BB0"
set udg_PlayerColors[9]="|c00959697"
set udg_PlayerColors[10]="|c007EBFF1"set udg_PlayerColors[11]="|c00106246"set udg_PlayerColors[12]="|c004E2A04"endfunctionfunction InitTrig_Configuration takes nothing returns nothingset gg_trg_Configuration=CreateTrigger()
call TriggerAddAction(gg_trg_Configuration,function Trig_Configuration_Actions)endfunctionfunction Trig_Configuration2_Actions takes nothing returns nothingcall TriggerRegisterUnitEvent(gg_trg_Floating_Spell_Name,GetTriggerUnit(),EVENT_UNIT_SPELL_EFFECT)endfunctionfunction InitTrig_Configuration2 takes nothing returns nothingset gg_trg_Configuration2=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Configuration2,GetPlayableMapRect())call TriggerAddAction(gg_trg_Configuration2,function Trig_Configuration2_Actions)endfunctionfunction Trig_Floating_Spell_Name_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())!='hpea'))then
return false
endifreturn trueendfunctionfunction Trig_Floating_Spell_Name_Actions takes nothing returns nothingcall CreateTextTagUnitBJ((udg_PlayerColors[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+GetAbilityName(GetSpellAbilityId())),GetTriggerUnit(),0.00,udg_TextSize_spells,100.00,100.00,100.00,0)call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90.00)call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)call SetTextTagLifespanBJ(GetLastCreatedTextTag(),udg_Text_Duration)
call SetTextTagFadepointBJ(GetLastCreatedTextTag(),0.65)
endfunctionfunction InitTrig_Floating_Spell_Name takes nothing returns nothingset gg_trg_Floating_Spell_Name=CreateTrigger()call TriggerAddCondition(gg_trg_Floating_Spell_Name,Condition(function Trig_Floating_Spell_Name_Conditions))
call TriggerAddAction(gg_trg_Floating_Spell_Name,function Trig_Floating_Spell_Name_Actions)endfunctionfunction Trig_Floating_Damage_Taken_Conditions takes nothing returns boolean
if(not(udg_GDD_Damage>1.00))then
return false
endifreturn trueendfunctionfunction Trig_Floating_Damage_Taken_Actions takes nothing returns nothingcall CreateTextTagUnitBJ((udg_PlayerColors[GetConvertedPlayerId(GetOwningPlayer(udg_GDD_DamageSource))]+I2S(R2I(udg_GDD_Damage))),udg_GDD_DamagedUnit,0.00,udg_TextSize_dmg,100.00,100.00,100.00,0)call SetTextTagVelocityBJ(GetLastCreatedTextTag(),100.00,90.00)call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)call SetTextTagLifespanBJ(GetLastCreatedTextTag(),udg_Text_Duration)
call SetTextTagFadepointBJ(GetLastCreatedTextTag(),0.65)
endfunctionfunction InitTrig_Floating_Damage_Taken takes nothing returns nothingset gg_trg_Floating_Damage_Taken=CreateTrigger()
call TriggerRegisterVariableEvent(gg_trg_Floating_Damage_Taken,"udg_GDD_Event",EQUAL,0)call TriggerAddCondition(gg_trg_Floating_Damage_Taken,Condition(function Trig_Floating_Damage_Taken_Conditions))
call TriggerAddAction(gg_trg_Floating_Damage_Taken,function Trig_Floating_Damage_Taken_Actions)endfunctionfunction Trig_Ferianskoe_zelie_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I08Q')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'pams')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'phea')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sora')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Ferianskoe_zelie_Func002C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'phea'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Ferianskoe_zelie_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Ferianskoe_zelie_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pams'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Ferianskoe_zelie_Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Ferianskoe_zelie_Func011C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Ferianskoe_zelie_Func012C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Ferianskoe_zelie_Func013C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Ferianskoe_zelie_Func014C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Ferianskoe_zelie_Func015C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Ferianskoe_zelie_Func016C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Ferianskoe_zelie_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])if(Trig_Ferianskoe_zelie_Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'phea'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'phea'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'phea'))-1))endifif(Trig_Ferianskoe_zelie_Func003C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))-1))endifif(Trig_Ferianskoe_zelie_Func004C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pams'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pams'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pams'))-1))endifif(Trig_Ferianskoe_zelie_Func005C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Q'))-1))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('pgin',GetTriggerUnit())
set udg_Chanse=GetRandomInt(1,100)if(Trig_Ferianskoe_zelie_Func011C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pgin'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pgin'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1])+1))
else
endifif(Trig_Ferianskoe_zelie_Func012C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pgin'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pgin'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2])+1))
else
endifif(Trig_Ferianskoe_zelie_Func013C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pgin'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pgin'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3])+1))
else
endifif(Trig_Ferianskoe_zelie_Func014C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pgin'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pgin'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4])+1))
else
endifif(Trig_Ferianskoe_zelie_Func015C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pgin'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pgin'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5])+1))
else
endifif(Trig_Ferianskoe_zelie_Func016C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pgin'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pgin'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6])+1))
else
endifendfunctionfunction InitTrig_Ferianskoe_zelie takes nothing returns nothing
set gg_trg_Ferianskoe_zelie=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ferianskoe_zelie,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Ferianskoe_zelie,Condition(function Trig_Ferianskoe_zelie_Conditions))call TriggerAddAction(gg_trg_Ferianskoe_zelie,function Trig_Ferianskoe_zelie_Actions)endfunctionfunction Trig_Zelie_trolley_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I08T')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'pams')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'hslv')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sora')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zelie_trolley_Func002C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'hslv'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_trolley_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_trolley_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pams'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_trolley_Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_trolley_Func011C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_trolley_Func012C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_trolley_Func013C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_trolley_Func014C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_trolley_Func015C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_trolley_Func016C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_trolley_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])if(Trig_Zelie_trolley_Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'hslv'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'hslv'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'hslv'))-1))endifif(Trig_Zelie_trolley_Func003C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))-1))endifif(Trig_Zelie_trolley_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pams'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pams'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pams'))-1))endifif(Trig_Zelie_trolley_Func005C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08T'))-1))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('totw',GetTriggerUnit())
set udg_Chanse=GetRandomInt(1,100)if(Trig_Zelie_trolley_Func011C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'totw'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'totw'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1])+1))
else
endifif(Trig_Zelie_trolley_Func012C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'totw'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'totw'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2])+1))
else
endifif(Trig_Zelie_trolley_Func013C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'totw'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'totw'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3])+1))
else
endifif(Trig_Zelie_trolley_Func014C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'totw'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'totw'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4])+1))
else
endifif(Trig_Zelie_trolley_Func015C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'totw'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'totw'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5])+1))
else
endifif(Trig_Zelie_trolley_Func016C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'totw'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'totw'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6])+1))
else
endifendfunctionfunction InitTrig_Zelie_trolley takes nothing returns nothingset gg_trg_Zelie_trolley=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Zelie_trolley,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Zelie_trolley,Condition(function Trig_Zelie_trolley_Conditions))
call TriggerAddAction(gg_trg_Zelie_trolley,function Trig_Zelie_trolley_Actions)endfunctionfunction Trig_Mercayushiy_eliksir_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I08U')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'pams')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'plcl')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sora')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Mercayushiy_eliksir_Func002C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'plcl'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Mercayushiy_eliksir_Func003C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Mercayushiy_eliksir_Func004C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pams'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Mercayushiy_eliksir_Func005C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08U'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Mercayushiy_eliksir_Func011C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Mercayushiy_eliksir_Func012C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Mercayushiy_eliksir_Func013C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Mercayushiy_eliksir_Func014C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Mercayushiy_eliksir_Func015C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Mercayushiy_eliksir_Func016C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Mercayushiy_eliksir_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])if(Trig_Mercayushiy_eliksir_Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'plcl'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'plcl'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'plcl'))-1))endifif(Trig_Mercayushiy_eliksir_Func003C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))-1))endifif(Trig_Mercayushiy_eliksir_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pams'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pams'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pams'))-1))endifif(Trig_Mercayushiy_eliksir_Func005C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08U'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08U'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08U'))-1))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('ccmd',GetTriggerUnit())
set udg_Chanse=GetRandomInt(1,100)if(Trig_Mercayushiy_eliksir_Func011C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ccmd'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ccmd'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1])+1))
else
endifif(Trig_Mercayushiy_eliksir_Func012C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ccmd'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ccmd'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2])+1))
else
endifif(Trig_Mercayushiy_eliksir_Func013C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ccmd'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ccmd'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3])+1))
else
endifif(Trig_Mercayushiy_eliksir_Func014C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ccmd'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ccmd'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4])+1))
else
endifif(Trig_Mercayushiy_eliksir_Func015C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ccmd'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ccmd'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5])+1))
else
endifif(Trig_Mercayushiy_eliksir_Func016C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ccmd'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ccmd'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6])+1))
else
endifendfunctionfunction InitTrig_Mercayushiy_eliksir takes nothing returns nothingset gg_trg_Mercayushiy_eliksir=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Mercayushiy_eliksir,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Mercayushiy_eliksir,Condition(function Trig_Mercayushiy_eliksir_Conditions))
call TriggerAddAction(gg_trg_Mercayushiy_eliksir,function Trig_Mercayushiy_eliksir_Actions)endfunctionfunction Trig_Zelie_stoykosty_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I08W')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'dust')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'pghe')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sora')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zelie_stoykosty_Func002C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pghe'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_stoykosty_Func003C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_stoykosty_Func004C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'dust'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_stoykosty_Func005C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_stoykosty_Func011C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_stoykosty_Func012C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_stoykosty_Func013C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_stoykosty_Func014C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_stoykosty_Func015C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_stoykosty_Func016C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_stoykosty_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])if(Trig_Zelie_stoykosty_Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pghe'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pghe'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pghe'))-1))endifif(Trig_Zelie_stoykosty_Func003C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))-1))endifif(Trig_Zelie_stoykosty_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'dust'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'dust'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'dust'))-1))endifif(Trig_Zelie_stoykosty_Func005C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08W'))-1))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('drph',GetTriggerUnit())
set udg_Chanse=GetRandomInt(1,100)if(Trig_Zelie_stoykosty_Func011C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'drph'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'drph'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1])+1))
else
endifif(Trig_Zelie_stoykosty_Func012C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'drph'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'drph'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2])+1))
else
endifif(Trig_Zelie_stoykosty_Func013C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'drph'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'drph'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3])+1))
else
endifif(Trig_Zelie_stoykosty_Func014C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'drph'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'drph'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4])+1))
else
endifif(Trig_Zelie_stoykosty_Func015C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'drph'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'drph'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5])+1))
else
endifif(Trig_Zelie_stoykosty_Func016C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'drph'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'drph'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6])+1))
else
endifendfunctionfunction InitTrig_Zelie_stoykosty takes nothing returns nothingset gg_trg_Zelie_stoykosty=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Zelie_stoykosty,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Zelie_stoykosty,Condition(function Trig_Zelie_stoykosty_Conditions))
call TriggerAddAction(gg_trg_Zelie_stoykosty,function Trig_Zelie_stoykosty_Actions)endfunctionfunction Trig_Zelie_Moshy_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I08X')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'dust')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'hslv')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sora')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zelie_Moshy_Func002C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_Moshy_Func003C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'hslv'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_Moshy_Func004C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'dust'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_Moshy_Func005C takes nothing returns boolean
if(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_Moshy_Func011C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_Moshy_Func012C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_Moshy_Func013C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_Moshy_Func014C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_Moshy_Func015C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_Moshy_Func016C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_Moshy_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])if(Trig_Zelie_Moshy_Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))-1))endifif(Trig_Zelie_Moshy_Func003C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'hslv'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'hslv'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'hslv'))-1))endifif(Trig_Zelie_Moshy_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'dust'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'dust'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'dust'))-1))endifif(Trig_Zelie_Moshy_Func005C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08X'))-1))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('stwp',GetTriggerUnit())
set udg_Chanse=GetRandomInt(1,100)if(Trig_Zelie_Moshy_Func011C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'stwp'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'stwp'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1])+1))
else
endifif(Trig_Zelie_Moshy_Func012C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'stwp'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'stwp'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2])+1))
else
endifif(Trig_Zelie_Moshy_Func013C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'stwp'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'stwp'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3])+1))
else
endifif(Trig_Zelie_Moshy_Func014C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'stwp'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'stwp'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4])+1))
else
endifif(Trig_Zelie_Moshy_Func015C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'stwp'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'stwp'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5])+1))
else
endifif(Trig_Zelie_Moshy_Func016C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'stwp'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'stwp'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6])+1))
else
endifendfunctionfunction InitTrig_Zelie_Moshy takes nothing returns nothingset gg_trg_Zelie_Moshy=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Zelie_Moshy,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_Zelie_Moshy,Condition(function Trig_Zelie_Moshy_Conditions))
call TriggerAddAction(gg_trg_Zelie_Moshy,function Trig_Zelie_Moshy_Actions)endfunctionfunction Trig_Zelie_vinoslivosty_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I08Z')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rej2')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rej3')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sora')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Zelie_vinoslivosty_Func002C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_vinoslivosty_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej3'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_vinoslivosty_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej2'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_vinoslivosty_Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Z'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_vinoslivosty_Func011C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_vinoslivosty_Func012C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_vinoslivosty_Func013C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_vinoslivosty_Func014C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_vinoslivosty_Func015C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_vinoslivosty_Func016C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Zelie_vinoslivosty_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])if(Trig_Zelie_vinoslivosty_Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))-1))endifif(Trig_Zelie_vinoslivosty_Func003C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej3'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej3'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej3'))-1))endifif(Trig_Zelie_vinoslivosty_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej2'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej2'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej2'))-1))endifif(Trig_Zelie_vinoslivosty_Func005C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Z'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Z'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I08Z'))-1))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('shea',GetTriggerUnit())
set udg_Chanse=GetRandomInt(1,100)if(Trig_Zelie_vinoslivosty_Func011C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shea'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shea'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1])+1))
else
endifif(Trig_Zelie_vinoslivosty_Func012C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shea'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shea'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2])+1))
else
endifif(Trig_Zelie_vinoslivosty_Func013C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shea'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shea'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3])+1))
else
endifif(Trig_Zelie_vinoslivosty_Func014C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shea'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shea'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4])+1))
else
endifif(Trig_Zelie_vinoslivosty_Func015C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shea'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shea'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5])+1))
else
endifif(Trig_Zelie_vinoslivosty_Func016C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shea'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shea'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6])+1))
else
endifendfunctionfunction InitTrig_Zelie_vinoslivosty takes nothing returns nothingset gg_trg_Zelie_vinoslivosty=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Zelie_vinoslivosty,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Zelie_vinoslivosty,Condition(function Trig_Zelie_vinoslivosty_Conditions))call TriggerAddAction(gg_trg_Zelie_vinoslivosty,function Trig_Zelie_vinoslivosty_Actions)endfunctionfunction Trig_Feroninskoye_zelie_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I090')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rej2')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'spro')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sora')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Feroninskoye_zelie_Func002C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Feroninskoye_zelie_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'spro'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Feroninskoye_zelie_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej2'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Feroninskoye_zelie_Func005C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I090'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Feroninskoye_zelie_Func011C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Feroninskoye_zelie_Func012C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Feroninskoye_zelie_Func013C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Feroninskoye_zelie_Func014C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Feroninskoye_zelie_Func015C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Feroninskoye_zelie_Func016C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Feroninskoye_zelie_Actions takes nothing returns nothingcall DestroyEffect(udg_Spec_efect_Ochistka[0])if(Trig_Feroninskoye_zelie_Func002C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))-1))endifif(Trig_Feroninskoye_zelie_Func003C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'spro'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'spro'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'spro'))-1))endifif(Trig_Feroninskoye_zelie_Func004C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej2'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej2'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej2'))-1))endifif(Trig_Feroninskoye_zelie_Func005C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I090'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I090'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I090'))-1))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('shwd',GetTriggerUnit())
set udg_Chanse=GetRandomInt(1,100)if(Trig_Feroninskoye_zelie_Func011C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shwd'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shwd'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1])+1))
else
endifif(Trig_Feroninskoye_zelie_Func012C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shwd'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shwd'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2])+1))
else
endifif(Trig_Feroninskoye_zelie_Func013C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shwd'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shwd'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3])+1))
else
endifif(Trig_Feroninskoye_zelie_Func014C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shwd'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shwd'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4])+1))
else
endifif(Trig_Feroninskoye_zelie_Func015C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shwd'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shwd'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5])+1))
else
endifif(Trig_Feroninskoye_zelie_Func016C())thencall SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shwd'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shwd'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6])+1))
else
endifendfunctionfunction InitTrig_Feroninskoye_zelie takes nothing returns nothingset gg_trg_Feroninskoye_zelie=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Feroninskoye_zelie,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Feroninskoye_zelie,Condition(function Trig_Feroninskoye_zelie_Conditions))call TriggerAddAction(gg_trg_Feroninskoye_zelie,function Trig_Feroninskoye_zelie_Actions)endfunctionfunction Trig_Vedminskoe_zelie_Conditions takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'shcw')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'rej4')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sora')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Vedminskoe_zelie_Func002C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Vedminskoe_zelie_Func003C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej4'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Vedminskoe_zelie_Func004C takes nothing returns booleanif(not(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shcw'))==1))then
return false
endifreturn trueendfunctionfunction Trig_Vedminskoe_zelie_Func010C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Vedminskoe_zelie_Func011C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Vedminskoe_zelie_Func012C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Vedminskoe_zelie_Func013C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Vedminskoe_zelie_Func014C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Vedminskoe_zelie_Func015C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifif(not((GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6])*2)>=udg_Chanse))then
return false
endifreturn trueendfunctionfunction Trig_Vedminskoe_zelie_Actions takes nothing returns nothing
call DestroyEffect(udg_Spec_efect_Ochistka[0])if(Trig_Vedminskoe_zelie_Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sora'))-1))endifif(Trig_Vedminskoe_zelie_Func003C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej4'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej4'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'rej4'))-1))endifif(Trig_Vedminskoe_zelie_Func004C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shcw'))else
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shcw'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shcw'))-1))endifcall AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")set udg_Spec_efect_Ochistka[0]=GetLastCreatedEffectBJ()call UnitAddItemByIdSwapped('gvsm',GetTriggerUnit())
set udg_Chanse=GetRandomInt(1,100)if(Trig_Vedminskoe_zelie_Func010C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gvsm'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gvsm'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[1])+1))
else
endifif(Trig_Vedminskoe_zelie_Func011C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gvsm'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gvsm'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[2])+1))
else
endifif(Trig_Vedminskoe_zelie_Func012C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gvsm'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gvsm'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[3])+1))
else
endifif(Trig_Vedminskoe_zelie_Func013C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gvsm'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gvsm'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[4])+1))
else
endifif(Trig_Vedminskoe_zelie_Func014C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gvsm'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gvsm'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[5])+1))
else
endifif(Trig_Vedminskoe_zelie_Func015C())then
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gvsm'),(GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'gvsm'))+1))call SetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6],(GetUnitAbilityLevelSwapped('A0EK',udg_Sumka[6])+1))
else
endifendfunctionfunction InitTrig_Vedminskoe_zelie takes nothing returns nothing
set gg_trg_Vedminskoe_zelie=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Vedminskoe_zelie,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddCondition(gg_trg_Vedminskoe_zelie,Condition(function Trig_Vedminskoe_zelie_Conditions))call TriggerAddAction(gg_trg_Vedminskoe_zelie,function Trig_Vedminskoe_zelie_Actions)endfunctionfunction Trig_ItemsToo_Func004C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),1))==udg_ItemsTip))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_Func005Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[0]!=0)endfunctionfunction Trig_ItemsToo_Func005Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[1]==0)endfunctionfunction Trig_ItemsToo_Func005Func002001 takes nothing returns booleanreturn GetBooleanAnd(Trig_ItemsToo_Func005Func002001001(),Trig_ItemsToo_Func005Func002001002())endfunctionfunction Trig_ItemsToo_Func005Func003001 takes nothing returns booleanreturn(udg_HeroSlotBox[0]==0)endfunctionfunction Trig_ItemsToo_Func005C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),2))==udg_ItemsTip))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_Func006Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[0]!=0)endfunctionfunction Trig_ItemsToo_Func006Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[1]==0)endfunctionfunction Trig_ItemsToo_Func006Func002001 takes nothing returns booleanreturn GetBooleanAnd(Trig_ItemsToo_Func006Func002001001(),Trig_ItemsToo_Func006Func002001002())endfunctionfunction Trig_ItemsToo_Func006Func003001 takes nothing returns booleanreturn(udg_HeroSlotBox[0]==0)endfunctionfunction Trig_ItemsToo_Func006C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),3))==udg_ItemsTip))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_Func007Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[0]!=0)endfunctionfunction Trig_ItemsToo_Func007Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[1]==0)endfunctionfunction Trig_ItemsToo_Func007Func002001 takes nothing returns booleanreturn GetBooleanAnd(Trig_ItemsToo_Func007Func002001001(),Trig_ItemsToo_Func007Func002001002())endfunctionfunction Trig_ItemsToo_Func007Func003001 takes nothing returns booleanreturn(udg_HeroSlotBox[0]==0)endfunctionfunction Trig_ItemsToo_Func007C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),4))==udg_ItemsTip))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_Func008Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[0]!=0)endfunctionfunction Trig_ItemsToo_Func008Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[1]==0)endfunctionfunction Trig_ItemsToo_Func008Func002001 takes nothing returns booleanreturn GetBooleanAnd(Trig_ItemsToo_Func008Func002001001(),Trig_ItemsToo_Func008Func002001002())endfunctionfunction Trig_ItemsToo_Func008Func003001 takes nothing returns booleanreturn(udg_HeroSlotBox[0]==0)endfunctionfunction Trig_ItemsToo_Func008C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),5))==udg_ItemsTip))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_Func009Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[0]!=0)endfunctionfunction Trig_ItemsToo_Func009Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[1]==0)endfunctionfunction Trig_ItemsToo_Func009Func002001 takes nothing returns booleanreturn GetBooleanAnd(Trig_ItemsToo_Func009Func002001001(),Trig_ItemsToo_Func009Func002001002())endfunctionfunction Trig_ItemsToo_Func009Func003001 takes nothing returns booleanreturn(udg_HeroSlotBox[0]==0)endfunctionfunction Trig_ItemsToo_Func009C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),6))==udg_ItemsTip))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_Func011Func003001 takes nothing returns booleanreturn(udg_HeroSlotBox[0]!=0)endfunctionfunction Trig_ItemsToo_Func011Func003002 takes nothing returns booleanreturn(udg_HeroSlotBox[1]!=0)endfunctionfunction Trig_ItemsToo_Func011C takes nothing returns booleanif(not GetBooleanAnd(Trig_ItemsToo_Func011Func003001(),Trig_ItemsToo_Func011Func003002()))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_Actions takes nothing returns nothing
set udg_HeroSlotBox[0]=0
set udg_HeroSlotBox[1]=0
if(Trig_ItemsToo_Func004C())then
set udg_HeroSlotBox[0]=1
else
endifif(Trig_ItemsToo_Func005C())then
if(Trig_ItemsToo_Func005Func002001())thenset udg_HeroSlotBox[1]=2
else
call DoNothing()
endifif(Trig_ItemsToo_Func005Func003001())thenset udg_HeroSlotBox[0]=2
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_Func006C())then
if(Trig_ItemsToo_Func006Func002001())thenset udg_HeroSlotBox[1]=3
else
call DoNothing()
endifif(Trig_ItemsToo_Func006Func003001())thenset udg_HeroSlotBox[0]=3
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_Func007C())then
if(Trig_ItemsToo_Func007Func002001())thenset udg_HeroSlotBox[1]=4
else
call DoNothing()
endifif(Trig_ItemsToo_Func007Func003001())thenset udg_HeroSlotBox[0]=4
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_Func008C())then
if(Trig_ItemsToo_Func008Func002001())thenset udg_HeroSlotBox[1]=5
else
call DoNothing()
endifif(Trig_ItemsToo_Func008Func003001())thenset udg_HeroSlotBox[0]=5
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_Func009C())then
if(Trig_ItemsToo_Func009Func002001())thenset udg_HeroSlotBox[1]=6
else
call DoNothing()
endifif(Trig_ItemsToo_Func009Func003001())thenset udg_HeroSlotBox[0]=6
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_Func011C())then
call SetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(),udg_HeroSlotBox[0]),(GetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(),udg_HeroSlotBox[0]))+GetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(),udg_HeroSlotBox[1]))))
call RemoveItem(UnitItemInSlotBJ(GetTriggerUnit(),udg_HeroSlotBox[1]))else
endifendfunctionfunction InitTrig_ItemsToo takes nothing returns nothing
set gg_trg_ItemsToo=CreateTrigger()call TriggerAddAction(gg_trg_ItemsToo,function Trig_ItemsToo_Actions)endfunctionfunction Trig_ItemsPickUp_Actions takes nothing returns nothingset udg_ItemsTip='phea'call TriggerExecute(gg_trg_ItemsToo)
call TriggerSleepAction(0.10)set udg_ItemsTip='pghe'call TriggerExecute(gg_trg_ItemsToo)
call TriggerSleepAction(0.10)set udg_ItemsTip='hslv'call TriggerExecute(gg_trg_ItemsToo)
call TriggerSleepAction(0.10)set udg_ItemsTip='pres'call TriggerExecute(gg_trg_ItemsToo)
call TriggerSleepAction(0.10)set udg_ItemsTip='hlst'call TriggerExecute(gg_trg_ItemsToo)
call TriggerSleepAction(0.10)set udg_ItemsTip='plcl'call TriggerExecute(gg_trg_ItemsToo)
call TriggerSleepAction(0.10)set udg_ItemsTip='pclr'call TriggerExecute(gg_trg_ItemsToo)
call TriggerSleepAction(0.10)set udg_ItemsTip='pman'call TriggerExecute(gg_trg_ItemsToo)
call TriggerSleepAction(0.10)set udg_ItemsTip='pgma'call TriggerExecute(gg_trg_ItemsToo)
call TriggerSleepAction(0.10)set udg_ItemsTip='whwd'call TriggerExecute(gg_trg_ItemsToo)
call TriggerSleepAction(0.10)set udg_ItemsTip='tcas'call TriggerExecute(gg_trg_ItemsToo)
call TriggerSleepAction(0.10)set udg_ItemsTip='rej3'call TriggerExecute(gg_trg_ItemsToo)
call TriggerSleepAction(0.10)set udg_ItemsTip='tgrh'call TriggerExecute(gg_trg_ItemsToo)
call TriggerSleepAction(0.10)set udg_ItemsTip='spro'call TriggerExecute(gg_trg_ItemsToo)
endfunctionfunction InitTrig_ItemsPickUp takes nothing returns nothingset gg_trg_ItemsPickUp=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_ItemsPickUp,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddAction(gg_trg_ItemsPickUp,function Trig_ItemsPickUp_Actions)endfunctionfunction Trig_ItemsToo_2_Func004C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),1))==udg_ItemsTip2))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_2_Func005Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[2]!=0)endfunctionfunction Trig_ItemsToo_2_Func005Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[3]==0)endfunctionfunction Trig_ItemsToo_2_Func005Func002001 takes nothing returns boolean
return GetBooleanAnd(Trig_ItemsToo_2_Func005Func002001001(),Trig_ItemsToo_2_Func005Func002001002())endfunctionfunction Trig_ItemsToo_2_Func005Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[2]==0)endfunctionfunction Trig_ItemsToo_2_Func005C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),2))==udg_ItemsTip2))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_2_Func006Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[2]!=0)endfunctionfunction Trig_ItemsToo_2_Func006Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[3]==0)endfunctionfunction Trig_ItemsToo_2_Func006Func002001 takes nothing returns boolean
return GetBooleanAnd(Trig_ItemsToo_2_Func006Func002001001(),Trig_ItemsToo_2_Func006Func002001002())endfunctionfunction Trig_ItemsToo_2_Func006Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[2]==0)endfunctionfunction Trig_ItemsToo_2_Func006C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),3))==udg_ItemsTip2))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_2_Func007Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[2]!=0)endfunctionfunction Trig_ItemsToo_2_Func007Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[3]==0)endfunctionfunction Trig_ItemsToo_2_Func007Func002001 takes nothing returns boolean
return GetBooleanAnd(Trig_ItemsToo_2_Func007Func002001001(),Trig_ItemsToo_2_Func007Func002001002())endfunctionfunction Trig_ItemsToo_2_Func007Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[2]==0)endfunctionfunction Trig_ItemsToo_2_Func007C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),4))==udg_ItemsTip2))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_2_Func008Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[2]!=0)endfunctionfunction Trig_ItemsToo_2_Func008Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[3]==0)endfunctionfunction Trig_ItemsToo_2_Func008Func002001 takes nothing returns boolean
return GetBooleanAnd(Trig_ItemsToo_2_Func008Func002001001(),Trig_ItemsToo_2_Func008Func002001002())endfunctionfunction Trig_ItemsToo_2_Func008Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[2]==0)endfunctionfunction Trig_ItemsToo_2_Func008C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),5))==udg_ItemsTip2))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_2_Func009Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[2]!=0)endfunctionfunction Trig_ItemsToo_2_Func009Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[3]==0)endfunctionfunction Trig_ItemsToo_2_Func009Func002001 takes nothing returns boolean
return GetBooleanAnd(Trig_ItemsToo_2_Func009Func002001001(),Trig_ItemsToo_2_Func009Func002001002())endfunctionfunction Trig_ItemsToo_2_Func009Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[2]==0)endfunctionfunction Trig_ItemsToo_2_Func009C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),6))==udg_ItemsTip2))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_2_Func011Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[2]!=0)endfunctionfunction Trig_ItemsToo_2_Func011Func003002 takes nothing returns boolean
return(udg_HeroSlotBox[3]!=0)endfunctionfunction Trig_ItemsToo_2_Func011C takes nothing returns booleanif(not GetBooleanAnd(Trig_ItemsToo_2_Func011Func003001(),Trig_ItemsToo_2_Func011Func003002()))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_2_Actions takes nothing returns nothingset udg_HeroSlotBox[2]=0
set udg_HeroSlotBox[3]=0
if(Trig_ItemsToo_2_Func004C())thenset udg_HeroSlotBox[2]=1
else
endifif(Trig_ItemsToo_2_Func005C())thenif(Trig_ItemsToo_2_Func005Func002001())thenset udg_HeroSlotBox[3]=2
else
call DoNothing()
endifif(Trig_ItemsToo_2_Func005Func003001())thenset udg_HeroSlotBox[2]=2
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_2_Func006C())thenif(Trig_ItemsToo_2_Func006Func002001())thenset udg_HeroSlotBox[3]=3
else
call DoNothing()
endifif(Trig_ItemsToo_2_Func006Func003001())thenset udg_HeroSlotBox[2]=3
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_2_Func007C())thenif(Trig_ItemsToo_2_Func007Func002001())thenset udg_HeroSlotBox[3]=4
else
call DoNothing()
endifif(Trig_ItemsToo_2_Func007Func003001())thenset udg_HeroSlotBox[2]=4
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_2_Func008C())thenif(Trig_ItemsToo_2_Func008Func002001())thenset udg_HeroSlotBox[3]=5
else
call DoNothing()
endifif(Trig_ItemsToo_2_Func008Func003001())thenset udg_HeroSlotBox[2]=5
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_2_Func009C())thenif(Trig_ItemsToo_2_Func009Func002001())thenset udg_HeroSlotBox[3]=6
else
call DoNothing()
endifif(Trig_ItemsToo_2_Func009Func003001())thenset udg_HeroSlotBox[2]=6
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_2_Func011C())thencall SetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(),udg_HeroSlotBox[2]),(GetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(),udg_HeroSlotBox[2]))+GetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(),udg_HeroSlotBox[3]))))
call RemoveItem(UnitItemInSlotBJ(GetTriggerUnit(),udg_HeroSlotBox[3]))else
endifendfunctionfunction InitTrig_ItemsToo_2 takes nothing returns nothingset gg_trg_ItemsToo_2=CreateTrigger()call TriggerAddAction(gg_trg_ItemsToo_2,function Trig_ItemsToo_2_Actions)endfunctionfunction Trig_ItemsPickUp_2_Actions takes nothing returns nothingset udg_ItemsTip2='rej4'
call TriggerExecute(gg_trg_ItemsToo_2)call TriggerSleepAction(0.10)set udg_ItemsTip2='pams'
call TriggerExecute(gg_trg_ItemsToo_2)call TriggerSleepAction(0.10)set udg_ItemsTip2='dust'
call TriggerExecute(gg_trg_ItemsToo_2)call TriggerSleepAction(0.10)set udg_ItemsTip2='rej2'
call TriggerExecute(gg_trg_ItemsToo_2)call TriggerSleepAction(0.10)set udg_ItemsTip2='shcw'
call TriggerExecute(gg_trg_ItemsToo_2)call TriggerSleepAction(0.10)set udg_ItemsTip2='I0B8'
call TriggerExecute(gg_trg_ItemsToo_2)call TriggerSleepAction(0.10)set udg_ItemsTip2='I0BH'
call TriggerExecute(gg_trg_ItemsToo_2)call TriggerSleepAction(0.10)set udg_ItemsTip2='I0BI'
call TriggerExecute(gg_trg_ItemsToo_2)call TriggerSleepAction(0.10)set udg_ItemsTip2='I0BK'
call TriggerExecute(gg_trg_ItemsToo_2)call TriggerSleepAction(0.10)set udg_ItemsTip2='I0CS'
call TriggerExecute(gg_trg_ItemsToo_2)call TriggerSleepAction(0.10)set udg_ItemsTip2='rej1'
call TriggerExecute(gg_trg_ItemsToo_2)endfunctionfunction InitTrig_ItemsPickUp_2 takes nothing returns nothingset gg_trg_ItemsPickUp_2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ItemsPickUp_2,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddAction(gg_trg_ItemsPickUp_2,function Trig_ItemsPickUp_2_Actions)endfunctionfunction Trig_ItemsToo_3_Func004C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),1))==udg_ItemsTip3))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_3_Func005Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[4]!=0)endfunctionfunction Trig_ItemsToo_3_Func005Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[5]==0)endfunctionfunction Trig_ItemsToo_3_Func005Func002001 takes nothing returns boolean
return GetBooleanAnd(Trig_ItemsToo_3_Func005Func002001001(),Trig_ItemsToo_3_Func005Func002001002())endfunctionfunction Trig_ItemsToo_3_Func005Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[4]==0)endfunctionfunction Trig_ItemsToo_3_Func005C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),2))==udg_ItemsTip3))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_3_Func006Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[4]!=0)endfunctionfunction Trig_ItemsToo_3_Func006Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[5]==0)endfunctionfunction Trig_ItemsToo_3_Func006Func002001 takes nothing returns boolean
return GetBooleanAnd(Trig_ItemsToo_3_Func006Func002001001(),Trig_ItemsToo_3_Func006Func002001002())endfunctionfunction Trig_ItemsToo_3_Func006Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[4]==0)endfunctionfunction Trig_ItemsToo_3_Func006C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),3))==udg_ItemsTip3))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_3_Func007Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[4]!=0)endfunctionfunction Trig_ItemsToo_3_Func007Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[5]==0)endfunctionfunction Trig_ItemsToo_3_Func007Func002001 takes nothing returns boolean
return GetBooleanAnd(Trig_ItemsToo_3_Func007Func002001001(),Trig_ItemsToo_3_Func007Func002001002())endfunctionfunction Trig_ItemsToo_3_Func007Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[4]==0)endfunctionfunction Trig_ItemsToo_3_Func007C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),4))==udg_ItemsTip3))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_3_Func008Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[4]!=0)endfunctionfunction Trig_ItemsToo_3_Func008Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[5]==0)endfunctionfunction Trig_ItemsToo_3_Func008Func002001 takes nothing returns boolean
return GetBooleanAnd(Trig_ItemsToo_3_Func008Func002001001(),Trig_ItemsToo_3_Func008Func002001002())endfunctionfunction Trig_ItemsToo_3_Func008Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[4]==0)endfunctionfunction Trig_ItemsToo_3_Func008C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),5))==udg_ItemsTip3))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_3_Func009Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[4]!=0)endfunctionfunction Trig_ItemsToo_3_Func009Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[5]==0)endfunctionfunction Trig_ItemsToo_3_Func009Func002001 takes nothing returns boolean
return GetBooleanAnd(Trig_ItemsToo_3_Func009Func002001001(),Trig_ItemsToo_3_Func009Func002001002())endfunctionfunction Trig_ItemsToo_3_Func009Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[4]==0)endfunctionfunction Trig_ItemsToo_3_Func009C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),6))==udg_ItemsTip3))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_3_Func011Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[4]!=0)endfunctionfunction Trig_ItemsToo_3_Func011Func003002 takes nothing returns boolean
return(udg_HeroSlotBox[5]!=0)endfunctionfunction Trig_ItemsToo_3_Func011C takes nothing returns booleanif(not GetBooleanAnd(Trig_ItemsToo_3_Func011Func003001(),Trig_ItemsToo_3_Func011Func003002()))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_3_Actions takes nothing returns nothingset udg_HeroSlotBox[4]=0
set udg_HeroSlotBox[5]=0
if(Trig_ItemsToo_3_Func004C())thenset udg_HeroSlotBox[4]=1
else
endifif(Trig_ItemsToo_3_Func005C())thenif(Trig_ItemsToo_3_Func005Func002001())thenset udg_HeroSlotBox[5]=2
else
call DoNothing()
endifif(Trig_ItemsToo_3_Func005Func003001())thenset udg_HeroSlotBox[4]=2
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_3_Func006C())thenif(Trig_ItemsToo_3_Func006Func002001())thenset udg_HeroSlotBox[5]=3
else
call DoNothing()
endifif(Trig_ItemsToo_3_Func006Func003001())thenset udg_HeroSlotBox[4]=3
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_3_Func007C())thenif(Trig_ItemsToo_3_Func007Func002001())thenset udg_HeroSlotBox[5]=4
else
call DoNothing()
endifif(Trig_ItemsToo_3_Func007Func003001())thenset udg_HeroSlotBox[4]=4
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_3_Func008C())thenif(Trig_ItemsToo_3_Func008Func002001())thenset udg_HeroSlotBox[5]=5
else
call DoNothing()
endifif(Trig_ItemsToo_3_Func008Func003001())thenset udg_HeroSlotBox[4]=5
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_3_Func009C())thenif(Trig_ItemsToo_3_Func009Func002001())thenset udg_HeroSlotBox[5]=6
else
call DoNothing()
endifif(Trig_ItemsToo_3_Func009Func003001())thenset udg_HeroSlotBox[4]=6
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_3_Func011C())thencall SetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(),udg_HeroSlotBox[4]),(GetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(),udg_HeroSlotBox[4]))+GetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(),udg_HeroSlotBox[5]))))
call RemoveItem(UnitItemInSlotBJ(GetTriggerUnit(),udg_HeroSlotBox[5]))else
endifendfunctionfunction InitTrig_ItemsToo_3 takes nothing returns nothingset gg_trg_ItemsToo_3=CreateTrigger()call TriggerAddAction(gg_trg_ItemsToo_3,function Trig_ItemsToo_3_Actions)endfunctionfunction Trig_ItemsPickUp_3_Actions takes nothing returns nothingset udg_ItemsTip3='I08Q'
call TriggerExecute(gg_trg_ItemsToo_3)call TriggerSleepAction(0.10)set udg_ItemsTip3='I08T'
call TriggerExecute(gg_trg_ItemsToo_3)call TriggerSleepAction(0.10)set udg_ItemsTip3='I08U'
call TriggerExecute(gg_trg_ItemsToo_3)call TriggerSleepAction(0.10)set udg_ItemsTip3='I08W'
call TriggerExecute(gg_trg_ItemsToo_3)call TriggerSleepAction(0.10)set udg_ItemsTip3='I08X'
call TriggerExecute(gg_trg_ItemsToo_3)call TriggerSleepAction(0.10)set udg_ItemsTip3='I08Z'
call TriggerExecute(gg_trg_ItemsToo_3)call TriggerSleepAction(0.10)set udg_ItemsTip3='I090'
call TriggerExecute(gg_trg_ItemsToo_3)call TriggerSleepAction(0.10)set udg_ItemsTip3='I093'
call TriggerExecute(gg_trg_ItemsToo_3)call TriggerSleepAction(0.10)set udg_ItemsTip3='I097'
call TriggerExecute(gg_trg_ItemsToo_3)call TriggerSleepAction(0.10)set udg_ItemsTip3='I0B2'
call TriggerExecute(gg_trg_ItemsToo_3)call TriggerSleepAction(0.10)set udg_ItemsTip3='I0B7'
call TriggerExecute(gg_trg_ItemsToo_3)endfunctionfunction InitTrig_ItemsPickUp_3 takes nothing returns nothingset gg_trg_ItemsPickUp_3=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ItemsPickUp_3,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddAction(gg_trg_ItemsPickUp_3,function Trig_ItemsPickUp_3_Actions)endfunctionfunction Trig_ItemsToo_4_Func004C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),1))==udg_ItemsTip4))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_4_Func005Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[6]!=0)endfunctionfunction Trig_ItemsToo_4_Func005Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[7]==0)endfunctionfunction Trig_ItemsToo_4_Func005Func002001 takes nothing returns boolean
return GetBooleanAnd(Trig_ItemsToo_4_Func005Func002001001(),Trig_ItemsToo_4_Func005Func002001002())endfunctionfunction Trig_ItemsToo_4_Func005Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[6]==0)endfunctionfunction Trig_ItemsToo_4_Func005C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),2))==udg_ItemsTip4))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_4_Func006Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[6]!=0)endfunctionfunction Trig_ItemsToo_4_Func006Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[7]==0)endfunctionfunction Trig_ItemsToo_4_Func006Func002001 takes nothing returns boolean
return GetBooleanAnd(Trig_ItemsToo_4_Func006Func002001001(),Trig_ItemsToo_4_Func006Func002001002())endfunctionfunction Trig_ItemsToo_4_Func006Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[6]==0)endfunctionfunction Trig_ItemsToo_4_Func006C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),3))==udg_ItemsTip4))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_4_Func007Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[6]!=0)endfunctionfunction Trig_ItemsToo_4_Func007Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[7]==0)endfunctionfunction Trig_ItemsToo_4_Func007Func002001 takes nothing returns boolean
return GetBooleanAnd(Trig_ItemsToo_4_Func007Func002001001(),Trig_ItemsToo_4_Func007Func002001002())endfunctionfunction Trig_ItemsToo_4_Func007Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[6]==0)endfunctionfunction Trig_ItemsToo_4_Func007C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),4))==udg_ItemsTip4))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_4_Func008Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[6]!=0)endfunctionfunction Trig_ItemsToo_4_Func008Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[7]==0)endfunctionfunction Trig_ItemsToo_4_Func008Func002001 takes nothing returns boolean
return GetBooleanAnd(Trig_ItemsToo_4_Func008Func002001001(),Trig_ItemsToo_4_Func008Func002001002())endfunctionfunction Trig_ItemsToo_4_Func008Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[6]==0)endfunctionfunction Trig_ItemsToo_4_Func008C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),5))==udg_ItemsTip4))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_4_Func009Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[6]!=0)endfunctionfunction Trig_ItemsToo_4_Func009Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[7]==0)endfunctionfunction Trig_ItemsToo_4_Func009Func002001 takes nothing returns boolean
return GetBooleanAnd(Trig_ItemsToo_4_Func009Func002001001(),Trig_ItemsToo_4_Func009Func002001002())endfunctionfunction Trig_ItemsToo_4_Func009Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[6]==0)endfunctionfunction Trig_ItemsToo_4_Func009C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),6))==udg_ItemsTip4))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_4_Func011Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[6]!=0)endfunctionfunction Trig_ItemsToo_4_Func011Func003002 takes nothing returns boolean
return(udg_HeroSlotBox[7]!=0)endfunctionfunction Trig_ItemsToo_4_Func011C takes nothing returns booleanif(not GetBooleanAnd(Trig_ItemsToo_4_Func011Func003001(),Trig_ItemsToo_4_Func011Func003002()))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_4_Actions takes nothing returns nothingset udg_HeroSlotBox[6]=0
set udg_HeroSlotBox[7]=0
if(Trig_ItemsToo_4_Func004C())thenset udg_HeroSlotBox[6]=1
else
endifif(Trig_ItemsToo_4_Func005C())thenif(Trig_ItemsToo_4_Func005Func002001())thenset udg_HeroSlotBox[7]=2
else
call DoNothing()
endifif(Trig_ItemsToo_4_Func005Func003001())thenset udg_HeroSlotBox[6]=2
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_4_Func006C())thenif(Trig_ItemsToo_4_Func006Func002001())thenset udg_HeroSlotBox[7]=3
else
call DoNothing()
endifif(Trig_ItemsToo_4_Func006Func003001())thenset udg_HeroSlotBox[6]=3
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_4_Func007C())thenif(Trig_ItemsToo_4_Func007Func002001())thenset udg_HeroSlotBox[7]=4
else
call DoNothing()
endifif(Trig_ItemsToo_4_Func007Func003001())thenset udg_HeroSlotBox[6]=4
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_4_Func008C())thenif(Trig_ItemsToo_4_Func008Func002001())thenset udg_HeroSlotBox[7]=5
else
call DoNothing()
endifif(Trig_ItemsToo_4_Func008Func003001())thenset udg_HeroSlotBox[6]=5
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_4_Func009C())thenif(Trig_ItemsToo_4_Func009Func002001())thenset udg_HeroSlotBox[7]=6
else
call DoNothing()
endifif(Trig_ItemsToo_4_Func009Func003001())thenset udg_HeroSlotBox[6]=6
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_4_Func011C())thencall SetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(),udg_HeroSlotBox[6]),(GetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(),udg_HeroSlotBox[6]))+GetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(),udg_HeroSlotBox[7]))))
call RemoveItem(UnitItemInSlotBJ(GetTriggerUnit(),udg_HeroSlotBox[7]))else
endifendfunctionfunction InitTrig_ItemsToo_4 takes nothing returns nothingset gg_trg_ItemsToo_4=CreateTrigger()call TriggerAddAction(gg_trg_ItemsToo_4,function Trig_ItemsToo_4_Actions)endfunctionfunction Trig_ItemsPickUp_4_Actions takes nothing returns nothingset udg_ItemsTip4='sora'
call TriggerExecute(gg_trg_ItemsToo_4)call TriggerSleepAction(0.10)set udg_ItemsTip4='pgin'
call TriggerExecute(gg_trg_ItemsToo_4)call TriggerSleepAction(0.10)set udg_ItemsTip4='totw'
call TriggerExecute(gg_trg_ItemsToo_4)call TriggerSleepAction(0.10)set udg_ItemsTip4='ccmd'
call TriggerExecute(gg_trg_ItemsToo_4)call TriggerSleepAction(0.10)set udg_ItemsTip4='stwp'
call TriggerExecute(gg_trg_ItemsToo_4)call TriggerSleepAction(0.10)set udg_ItemsTip4='shea'
call TriggerExecute(gg_trg_ItemsToo_4)call TriggerSleepAction(0.10)set udg_ItemsTip4='shwd'
call TriggerExecute(gg_trg_ItemsToo_4)call TriggerSleepAction(0.10)set udg_ItemsTip4='gvsm'
call TriggerExecute(gg_trg_ItemsToo_4)call TriggerSleepAction(0.10)endfunctionfunction InitTrig_ItemsPickUp_4 takes nothing returns nothingset gg_trg_ItemsPickUp_4=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ItemsPickUp_4,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddAction(gg_trg_ItemsPickUp_4,function Trig_ItemsPickUp_4_Actions)endfunctionfunction Trig_ItemsToo_5_Func004C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),1))==udg_ItemsTip5))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_5_Func005Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[8]!=0)endfunctionfunction Trig_ItemsToo_5_Func005Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[9]==0)endfunctionfunction Trig_ItemsToo_5_Func005Func002001 takes nothing returns boolean
return GetBooleanAnd(Trig_ItemsToo_5_Func005Func002001001(),Trig_ItemsToo_5_Func005Func002001002())endfunctionfunction Trig_ItemsToo_5_Func005Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[8]==0)endfunctionfunction Trig_ItemsToo_5_Func005C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),2))==udg_ItemsTip5))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_5_Func006Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[8]!=0)endfunctionfunction Trig_ItemsToo_5_Func006Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[9]==0)endfunctionfunction Trig_ItemsToo_5_Func006Func002001 takes nothing returns boolean
return GetBooleanAnd(Trig_ItemsToo_5_Func006Func002001001(),Trig_ItemsToo_5_Func006Func002001002())endfunctionfunction Trig_ItemsToo_5_Func006Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[8]==0)endfunctionfunction Trig_ItemsToo_5_Func006C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),3))==udg_ItemsTip5))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_5_Func007Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[8]!=0)endfunctionfunction Trig_ItemsToo_5_Func007Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[9]==0)endfunctionfunction Trig_ItemsToo_5_Func007Func002001 takes nothing returns boolean
return GetBooleanAnd(Trig_ItemsToo_5_Func007Func002001001(),Trig_ItemsToo_5_Func007Func002001002())endfunctionfunction Trig_ItemsToo_5_Func007Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[8]==0)endfunctionfunction Trig_ItemsToo_5_Func007C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),4))==udg_ItemsTip5))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_5_Func008Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[8]!=0)endfunctionfunction Trig_ItemsToo_5_Func008Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[9]==0)endfunctionfunction Trig_ItemsToo_5_Func008Func002001 takes nothing returns boolean
return GetBooleanAnd(Trig_ItemsToo_5_Func008Func002001001(),Trig_ItemsToo_5_Func008Func002001002())endfunctionfunction Trig_ItemsToo_5_Func008Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[8]==0)endfunctionfunction Trig_ItemsToo_5_Func008C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),5))==udg_ItemsTip5))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_5_Func009Func002001001 takes nothing returns booleanreturn(udg_HeroSlotBox[8]!=0)endfunctionfunction Trig_ItemsToo_5_Func009Func002001002 takes nothing returns booleanreturn(udg_HeroSlotBox[9]==0)endfunctionfunction Trig_ItemsToo_5_Func009Func002001 takes nothing returns boolean
return GetBooleanAnd(Trig_ItemsToo_5_Func009Func002001001(),Trig_ItemsToo_5_Func009Func002001002())endfunctionfunction Trig_ItemsToo_5_Func009Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[8]==0)endfunctionfunction Trig_ItemsToo_5_Func009C takes nothing returns booleanif(not(GetItemTypeId(UnitItemInSlotBJ(GetTriggerUnit(),6))==udg_ItemsTip5))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_5_Func011Func003001 takes nothing returns boolean
return(udg_HeroSlotBox[8]!=0)endfunctionfunction Trig_ItemsToo_5_Func011Func003002 takes nothing returns boolean
return(udg_HeroSlotBox[9]!=0)endfunctionfunction Trig_ItemsToo_5_Func011C takes nothing returns booleanif(not GetBooleanAnd(Trig_ItemsToo_5_Func011Func003001(),Trig_ItemsToo_5_Func011Func003002()))thenreturn false
endifreturn trueendfunctionfunction Trig_ItemsToo_5_Actions takes nothing returns nothingset udg_HeroSlotBox[8]=0
set udg_HeroSlotBox[9]=0
if(Trig_ItemsToo_5_Func004C())thenset udg_HeroSlotBox[8]=1
else
endifif(Trig_ItemsToo_5_Func005C())thenif(Trig_ItemsToo_5_Func005Func002001())thenset udg_HeroSlotBox[9]=2
else
call DoNothing()
endifif(Trig_ItemsToo_5_Func005Func003001())thenset udg_HeroSlotBox[8]=2
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_5_Func006C())thenif(Trig_ItemsToo_5_Func006Func002001())thenset udg_HeroSlotBox[9]=3
else
call DoNothing()
endifif(Trig_ItemsToo_5_Func006Func003001())thenset udg_HeroSlotBox[8]=3
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_5_Func007C())thenif(Trig_ItemsToo_5_Func007Func002001())thenset udg_HeroSlotBox[9]=4
else
call DoNothing()
endifif(Trig_ItemsToo_5_Func007Func003001())thenset udg_HeroSlotBox[8]=4
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_5_Func008C())thenif(Trig_ItemsToo_5_Func008Func002001())thenset udg_HeroSlotBox[9]=5
else
call DoNothing()
endifif(Trig_ItemsToo_5_Func008Func003001())thenset udg_HeroSlotBox[8]=5
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_5_Func009C())thenif(Trig_ItemsToo_5_Func009Func002001())thenset udg_HeroSlotBox[9]=6
else
call DoNothing()
endifif(Trig_ItemsToo_5_Func009Func003001())thenset udg_HeroSlotBox[8]=6
else
call DoNothing()
endifelse
endifif(Trig_ItemsToo_5_Func011C())thencall SetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(),udg_HeroSlotBox[8]),(GetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(),udg_HeroSlotBox[8]))+GetItemCharges(UnitItemInSlotBJ(GetTriggerUnit(),udg_HeroSlotBox[9]))))
call RemoveItem(UnitItemInSlotBJ(GetTriggerUnit(),udg_HeroSlotBox[9]))else
endifendfunctionfunction InitTrig_ItemsToo_5 takes nothing returns nothingset gg_trg_ItemsToo_5=CreateTrigger()call TriggerAddAction(gg_trg_ItemsToo_5,function Trig_ItemsToo_5_Actions)endfunctionfunction Trig_ItemsPickUp_5_Actions takes nothing returns nothingset udg_ItemsTip5='I0DC'
call TriggerExecute(gg_trg_ItemsToo_5)call TriggerSleepAction(0.10)set udg_ItemsTip5='I0DD'
call TriggerExecute(gg_trg_ItemsToo_5)call TriggerSleepAction(0.10)set udg_ItemsTip5='I0DE'
call TriggerExecute(gg_trg_ItemsToo_5)call TriggerSleepAction(0.10)set udg_ItemsTip5='I0DF'
call TriggerExecute(gg_trg_ItemsToo_5)call TriggerSleepAction(0.10)set udg_ItemsTip5='I0DG'
call TriggerExecute(gg_trg_ItemsToo_5)call TriggerSleepAction(0.10)set udg_ItemsTip5='I0DH'
call TriggerExecute(gg_trg_ItemsToo_5)call TriggerSleepAction(0.10)set udg_ItemsTip5='I0DI'
call TriggerExecute(gg_trg_ItemsToo_5)call TriggerSleepAction(0.10)set udg_ItemsTip5='I0DJ'
call TriggerExecute(gg_trg_ItemsToo_5)endfunctionfunction InitTrig_ItemsPickUp_5 takes nothing returns nothingset gg_trg_ItemsPickUp_5=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ItemsPickUp_5,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddAction(gg_trg_ItemsPickUp_5,function Trig_ItemsPickUp_5_Actions)endfunctionfunction Trig_Inicializaciya_hero_Func004C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[1]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func005C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[1]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func006C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[1]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func007C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[1]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func008C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[1]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func011C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[2]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func012C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[2]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func013C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[2]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func014C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[2]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func015C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[2]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func018C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[3]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func019C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[3]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func020C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[3]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func021C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[3]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func022C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[3]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func025C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[4]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func026C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[4]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func027C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[4]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func028C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[4]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func029C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[4]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func032C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[5]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func033C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[5]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func034C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[5]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func035C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[5]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func036C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[5]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func039C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[6]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func040C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[6]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func041C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[6]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func042C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[6]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func043C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[6]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func046C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[7]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func047C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[7]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func048C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[7]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func049C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[7]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func050C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[7]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func053C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[8]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func054C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[8]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func055C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[8]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func056C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[8]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func057C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[8]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func060C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[9]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func061C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[9]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func062C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[9]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func063C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[9]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func064C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[9]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func067C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[10]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func068C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[10]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func069C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[10]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func070C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[10]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func071C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[10]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func074C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[11]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func075C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[11]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func076C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[11]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func077C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[11]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func078C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[11]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func081C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[12]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func082C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[12]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func083C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[12]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func084C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[12]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func085C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[12]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func088C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[13]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func089C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[13]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func090C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[13]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func091C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[13]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func094C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[14]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func095C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[14]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func096C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[14]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func097C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[14]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_hero_Func099A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())endfunctionfunction Trig_Inicializaciya_hero_Actions takes nothing returns nothingset udg_Inicializaciya_hero[1]=GetRandomInt(1,6)
call TriggerSleepAction(3.00)set udg_Inicializaciya_hero[1]=GetRandomInt(1,6)
if(Trig_Inicializaciya_hero_Func004C())thencall RemoveUnit(gg_unit_H000_0001)call SetUnitPositionLoc(gg_unit_Hart_0331,GetRectCenter(gg_rct_Hero_1A))
else
endifif(Trig_Inicializaciya_hero_Func005C())thencall RemoveUnit(gg_unit_H000_0001)call SetUnitPositionLoc(gg_unit_Hapm_0332,GetRectCenter(gg_rct_Hero_1A))
else
endifif(Trig_Inicializaciya_hero_Func006C())thencall RemoveUnit(gg_unit_H000_0001)call SetUnitPositionLoc(gg_unit_Hmkg_0623,GetRectCenter(gg_rct_Hero_1A))
else
endifif(Trig_Inicializaciya_hero_Func007C())thencall RemoveUnit(gg_unit_H000_0001)call SetUnitPositionLoc(gg_unit_Hpb1_0663,GetRectCenter(gg_rct_Hero_1A))
else
endifif(Trig_Inicializaciya_hero_Func008C())thencall RemoveUnit(gg_unit_H000_0001)call SetUnitPositionLoc(gg_unit_Hdgo_0729,GetRectCenter(gg_rct_Hero_1A))
else
endifcall TriggerSleepAction(1.00)set udg_Inicializaciya_hero[2]=GetRandomInt(1,6)
if(Trig_Inicializaciya_hero_Func011C())thencall RemoveUnit(gg_unit_Hamg_0054)call SetUnitPositionLoc(gg_unit_Hblm_0273,GetRectCenter(gg_rct_Hero_2A))
else
endifif(Trig_Inicializaciya_hero_Func012C())thencall RemoveUnit(gg_unit_Hamg_0054)call SetUnitPositionLoc(gg_unit_H00C_0338,GetRectCenter(gg_rct_Hero_2A))
else
endifif(Trig_Inicializaciya_hero_Func013C())thencall RemoveUnit(gg_unit_Hamg_0054)call SetUnitPositionLoc(gg_unit_H00X_0624,GetRectCenter(gg_rct_Hero_2A))
else
endifif(Trig_Inicializaciya_hero_Func014C())thencall RemoveUnit(gg_unit_Hamg_0054)call SetUnitPositionLoc(gg_unit_H013_0664,GetRectCenter(gg_rct_Hero_2A))
else
endifif(Trig_Inicializaciya_hero_Func015C())thencall RemoveUnit(gg_unit_Hamg_0054)call SetUnitPositionLoc(gg_unit_H01B_0730,GetRectCenter(gg_rct_Hero_2A))
else
endifcall TriggerSleepAction(1.00)set udg_Inicializaciya_hero[3]=GetRandomInt(1,6)
if(Trig_Inicializaciya_hero_Func018C())thencall RemoveUnit(gg_unit_H00D_0256)call SetUnitPositionLoc(gg_unit_H00E_0050,GetRectCenter(gg_rct_Hero_3A))
else
endifif(Trig_Inicializaciya_hero_Func019C())thencall RemoveUnit(gg_unit_H00D_0256)call SetUnitPositionLoc(gg_unit_H00F_0346,GetRectCenter(gg_rct_Hero_3A))
else
endifif(Trig_Inicializaciya_hero_Func020C())thencall RemoveUnit(gg_unit_H00D_0256)call SetUnitPositionLoc(gg_unit_H00Y_0636,GetRectCenter(gg_rct_Hero_3A))
else
endifif(Trig_Inicializaciya_hero_Func021C())thencall RemoveUnit(gg_unit_H00D_0256)call SetUnitPositionLoc(gg_unit_H015_0665,GetRectCenter(gg_rct_Hero_3A))
else
endifif(Trig_Inicializaciya_hero_Func022C())thencall RemoveUnit(gg_unit_H00D_0256)call SetUnitPositionLoc(gg_unit_H01C_0731,GetRectCenter(gg_rct_Hero_3A))
else
endifcall TriggerSleepAction(1.00)set udg_Inicializaciya_hero[4]=GetRandomInt(1,6)
if(Trig_Inicializaciya_hero_Func025C())thencall RemoveUnit(gg_unit_U00K_0398)call SetUnitPositionLoc(gg_unit_Udre_0441,GetRectCenter(gg_rct_Hero_4A))
else
endifif(Trig_Inicializaciya_hero_Func026C())thencall RemoveUnit(gg_unit_U00K_0398)call SetUnitPositionLoc(gg_unit_Ucrl_0442,GetRectCenter(gg_rct_Hero_4A))
else
endifif(Trig_Inicializaciya_hero_Func027C())thencall RemoveUnit(gg_unit_U00K_0398)call SetUnitPositionLoc(gg_unit_U00T_0637,GetRectCenter(gg_rct_Hero_4A))
else
endifif(Trig_Inicializaciya_hero_Func028C())thencall RemoveUnit(gg_unit_U00K_0398)call SetUnitPositionLoc(gg_unit_U00W_0666,GetRectCenter(gg_rct_Hero_4A))
else
endifif(Trig_Inicializaciya_hero_Func029C())thencall RemoveUnit(gg_unit_U00K_0398)call SetUnitPositionLoc(gg_unit_H01D_0732,GetRectCenter(gg_rct_Hero_4A))
else
endifcall TriggerSleepAction(1.00)set udg_Inicializaciya_hero[5]=GetRandomInt(1,6)
if(Trig_Inicializaciya_hero_Func032C())thencall RemoveUnit(gg_unit_Ulic_0444)call SetUnitPositionLoc(gg_unit_U00L_0445,GetRectCenter(gg_rct_Hero_5A))
else
endifif(Trig_Inicializaciya_hero_Func033C())thencall RemoveUnit(gg_unit_Ulic_0444)call SetUnitPositionLoc(gg_unit_U00M_0446,GetRectCenter(gg_rct_Hero_5A))
else
endifif(Trig_Inicializaciya_hero_Func034C())thencall RemoveUnit(gg_unit_Ulic_0444)call SetUnitPositionLoc(gg_unit_U00U_0639,GetRectCenter(gg_rct_Hero_5A))
else
endifif(Trig_Inicializaciya_hero_Func035C())thencall RemoveUnit(gg_unit_Ulic_0444)call SetUnitPositionLoc(gg_unit_U00X_0667,GetRectCenter(gg_rct_Hero_5A))
else
endifif(Trig_Inicializaciya_hero_Func036C())thencall RemoveUnit(gg_unit_Ulic_0444)call SetUnitPositionLoc(gg_unit_U013_0733,GetRectCenter(gg_rct_Hero_5A))
else
endifcall TriggerSleepAction(1.00)set udg_Inicializaciya_hero[6]=GetRandomInt(1,6)
if(Trig_Inicializaciya_hero_Func039C())thencall RemoveUnit(gg_unit_N00H_0447)call SetUnitPositionLoc(gg_unit_U00N_0448,GetRectCenter(gg_rct_Hero_6A))
else
endifif(Trig_Inicializaciya_hero_Func040C())thencall RemoveUnit(gg_unit_N00H_0447)call SetUnitPositionLoc(gg_unit_N00I_0449,GetRectCenter(gg_rct_Hero_6A))
else
endifif(Trig_Inicializaciya_hero_Func041C())thencall RemoveUnit(gg_unit_N00H_0447)call SetUnitPositionLoc(gg_unit_N00P_0640,GetRectCenter(gg_rct_Hero_6A))
else
endifif(Trig_Inicializaciya_hero_Func042C())thencall RemoveUnit(gg_unit_N00H_0447)call SetUnitPositionLoc(gg_unit_U00Y_0669,GetRectCenter(gg_rct_Hero_6A))
else
endifif(Trig_Inicializaciya_hero_Func043C())thencall RemoveUnit(gg_unit_N00H_0447)call SetUnitPositionLoc(gg_unit_U014_0734,GetRectCenter(gg_rct_Hero_6A))
else
endifcall TriggerSleepAction(1.00)set udg_Inicializaciya_hero[7]=GetRandomInt(1,6)
if(Trig_Inicializaciya_hero_Func046C())thencall RemoveUnit(gg_unit_N00N_0536)call SetUnitPositionLoc(gg_unit_H00N_0538,GetRectCenter(gg_rct_Hero_7A))
else
endifif(Trig_Inicializaciya_hero_Func047C())thencall RemoveUnit(gg_unit_N00N_0536)call SetUnitPositionLoc(gg_unit_H00O_0539,GetRectCenter(gg_rct_Hero_7A))
else
endifif(Trig_Inicializaciya_hero_Func048C())thencall RemoveUnit(gg_unit_N00N_0536)call SetUnitPositionLoc(gg_unit_N00Q_0641,GetRectCenter(gg_rct_Hero_7A))
else
endifif(Trig_Inicializaciya_hero_Func049C())thencall RemoveUnit(gg_unit_N00N_0536)call SetUnitPositionLoc(gg_unit_H018_0710,GetRectCenter(gg_rct_Hero_7A))
else
endifif(Trig_Inicializaciya_hero_Func050C())thencall RemoveUnit(gg_unit_N00N_0536)call SetUnitPositionLoc(gg_unit_H01E_0735,GetRectCenter(gg_rct_Hero_7A))
else
endifcall TriggerSleepAction(1.00)set udg_Inicializaciya_hero[8]=GetRandomInt(1,6)
if(Trig_Inicializaciya_hero_Func053C())thencall RemoveUnit(gg_unit_H00P_0540)call SetUnitPositionLoc(gg_unit_H00Q_0541,GetRectCenter(gg_rct_Hero_8A))
else
endifif(Trig_Inicializaciya_hero_Func054C())thencall RemoveUnit(gg_unit_H00P_0540)call SetUnitPositionLoc(gg_unit_H00R_0254,GetRectCenter(gg_rct_Hero_8A))
else
endifif(Trig_Inicializaciya_hero_Func055C())thencall RemoveUnit(gg_unit_H00P_0540)call SetUnitPositionLoc(gg_unit_H00Z_0655,GetRectCenter(gg_rct_Hero_8A))
else
endifif(Trig_Inicializaciya_hero_Func056C())thencall RemoveUnit(gg_unit_H00P_0540)call SetUnitPositionLoc(gg_unit_H019_0711,GetRectCenter(gg_rct_Hero_8A))
else
endifif(Trig_Inicializaciya_hero_Func057C())thencall RemoveUnit(gg_unit_H00P_0540)call SetUnitPositionLoc(gg_unit_H01F_0202,GetRectCenter(gg_rct_Hero_8A))
else
endifcall TriggerSleepAction(1.00)set udg_Inicializaciya_hero[9]=GetRandomInt(1,6)
if(Trig_Inicializaciya_hero_Func060C())thencall RemoveUnit(gg_unit_E001_0602)call SetUnitPositionLoc(gg_unit_Edem_0603,GetRectCenter(gg_rct_Hero_9A))
else
endifif(Trig_Inicializaciya_hero_Func061C())thencall RemoveUnit(gg_unit_E001_0602)call SetUnitPositionLoc(gg_unit_Emoo_0604,GetRectCenter(gg_rct_Hero_9A))
else
endifif(Trig_Inicializaciya_hero_Func062C())thencall RemoveUnit(gg_unit_E001_0602)call SetUnitPositionLoc(gg_unit_E003_0656,GetRectCenter(gg_rct_Hero_9A))
else
endifif(Trig_Inicializaciya_hero_Func063C())thencall RemoveUnit(gg_unit_E001_0602)call SetUnitPositionLoc(gg_unit_Ewar_0712,GetRectCenter(gg_rct_Hero_9A))
else
endifif(Trig_Inicializaciya_hero_Func064C())thencall RemoveUnit(gg_unit_E001_0602)call SetUnitPositionLoc(gg_unit_H01H_0746,GetRectCenter(gg_rct_Hero_9A))
else
endifcall TriggerSleepAction(1.00)set udg_Inicializaciya_hero[10]=GetRandomInt(1,6)if(Trig_Inicializaciya_hero_Func067C())thencall RemoveUnit(gg_unit_Ekee_0605)call SetUnitPositionLoc(gg_unit_Emns_0609,GetRectCenter(gg_rct_Hero_10A))else
endifif(Trig_Inicializaciya_hero_Func068C())thencall RemoveUnit(gg_unit_Ekee_0605)call SetUnitPositionLoc(gg_unit_H00T_0610,GetRectCenter(gg_rct_Hero_10A))else
endifif(Trig_Inicializaciya_hero_Func069C())thencall RemoveUnit(gg_unit_Ekee_0605)call SetUnitPositionLoc(gg_unit_E004_0657,GetRectCenter(gg_rct_Hero_10A))else
endifif(Trig_Inicializaciya_hero_Func070C())thencall RemoveUnit(gg_unit_Ekee_0605)call SetUnitPositionLoc(gg_unit_E006_0713,GetRectCenter(gg_rct_Hero_10A))else
endifif(Trig_Inicializaciya_hero_Func071C())thencall RemoveUnit(gg_unit_Ekee_0605)call SetUnitPositionLoc(gg_unit_H020_0769,GetRectCenter(gg_rct_Hero_10A))else
endifcall TriggerSleepAction(1.00)set udg_Inicializaciya_hero[11]=GetRandomInt(1,6)if(Trig_Inicializaciya_hero_Func074C())thencall RemoveUnit(gg_unit_H00U_0611)call SetUnitPositionLoc(gg_unit_H00V_0612,GetRectCenter(gg_rct_Hero_11A))else
endifif(Trig_Inicializaciya_hero_Func075C())thencall RemoveUnit(gg_unit_H00U_0611)call SetUnitPositionLoc(gg_unit_H00W_0613,GetRectCenter(gg_rct_Hero_11A))else
endifif(Trig_Inicializaciya_hero_Func076C())thencall RemoveUnit(gg_unit_H00U_0611)call SetUnitPositionLoc(gg_unit_H010_0659,GetRectCenter(gg_rct_Hero_11A))else
endifif(Trig_Inicializaciya_hero_Func077C())thencall RemoveUnit(gg_unit_H00U_0611)call SetUnitPositionLoc(gg_unit_H01A_0714,GetRectCenter(gg_rct_Hero_11A))else
endifif(Trig_Inicializaciya_hero_Func078C())thencall RemoveUnit(gg_unit_H00U_0611)call SetUnitPositionLoc(gg_unit_H021_0770,GetRectCenter(gg_rct_Hero_11A))else
endifset udg_Inicializaciya_hero[12]=GetRandomInt(1,6)call TriggerSleepAction(1.00)if(Trig_Inicializaciya_hero_Func081C())thencall RemoveUnit(gg_unit_Obla_0614)call SetUnitPositionLoc(gg_unit_O001_0615,GetRectCenter(gg_rct_Hero_12A))else
endifif(Trig_Inicializaciya_hero_Func082C())thencall RemoveUnit(gg_unit_Obla_0614)call SetUnitPositionLoc(gg_unit_O002_0616,GetRectCenter(gg_rct_Hero_12A))else
endifif(Trig_Inicializaciya_hero_Func083C())thencall RemoveUnit(gg_unit_Obla_0614)call SetUnitPositionLoc(gg_unit_H011_0660,GetRectCenter(gg_rct_Hero_12A))else
endifif(Trig_Inicializaciya_hero_Func084C())thencall RemoveUnit(gg_unit_Obla_0614)call SetUnitPositionLoc(gg_unit_O008_0715,GetRectCenter(gg_rct_Hero_12A))else
endifif(Trig_Inicializaciya_hero_Func085C())thencall RemoveUnit(gg_unit_Obla_0614)call SetUnitPositionLoc(gg_unit_O00E_0774,GetRectCenter(gg_rct_Hero_12A))else
endifcall TriggerSleepAction(1.00)set udg_Inicializaciya_hero[13]=GetRandomInt(1,5)if(Trig_Inicializaciya_hero_Func088C())thencall RemoveUnit(gg_unit_Ofar_0617)call SetUnitPositionLoc(gg_unit_O003_0618,GetRectCenter(gg_rct_Hero_13A))else
endifif(Trig_Inicializaciya_hero_Func089C())thencall RemoveUnit(gg_unit_Ofar_0617)call SetUnitPositionLoc(gg_unit_O004_0619,GetRectCenter(gg_rct_Hero_13A))else
endifif(Trig_Inicializaciya_hero_Func090C())thencall RemoveUnit(gg_unit_Ofar_0617)call SetUnitPositionLoc(gg_unit_O007_0661,GetRectCenter(gg_rct_Hero_13A))else
endifif(Trig_Inicializaciya_hero_Func091C())thencall RemoveUnit(gg_unit_Ofar_0617)call SetUnitPositionLoc(gg_unit_O009_0716,GetRectCenter(gg_rct_Hero_13A))else
endifcall TriggerSleepAction(1.00)set udg_Inicializaciya_hero[14]=GetRandomInt(1,5)if(Trig_Inicializaciya_hero_Func094C())thencall RemoveUnit(gg_unit_Otch_0620)call SetUnitPositionLoc(gg_unit_O005_0621,GetRectCenter(gg_rct_Hero_14A))else
endifif(Trig_Inicializaciya_hero_Func095C())thencall RemoveUnit(gg_unit_Otch_0620)call SetUnitPositionLoc(gg_unit_O006_0622,GetRectCenter(gg_rct_Hero_14A))else
endifif(Trig_Inicializaciya_hero_Func096C())thencall RemoveUnit(gg_unit_Otch_0620)call SetUnitPositionLoc(gg_unit_H012_0662,GetRectCenter(gg_rct_Hero_14A))else
endifif(Trig_Inicializaciya_hero_Func097C())thencall RemoveUnit(gg_unit_Otch_0620)call SetUnitPositionLoc(gg_unit_Nbst_0717,GetRectCenter(gg_rct_Hero_14A))else
endifcall TriggerSleepAction(20.00)call ForGroupBJ(GetUnitsInRectAll(gg_rct_Hero),function Trig_Inicializaciya_hero_Func099A)endfunctionfunction InitTrig_Inicializaciya_hero takes nothing returns nothingset gg_trg_Inicializaciya_hero=CreateTrigger()call TriggerRegisterTimerEventSingle(gg_trg_Inicializaciya_hero,2.00)call TriggerAddAction(gg_trg_Inicializaciya_hero,function Trig_Inicializaciya_hero_Actions)endfunctionfunction Trig_Voscreshenie_heroe_Func001C takes nothing returns booleanif((GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn trueendifif((GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn trueendifif((GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn trueendifif((GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn trueendifif((GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn trueendifif((GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn trueendifreturn false
endfunctionfunction Trig_Voscreshenie_heroe_Func002C takes nothing returns booleanif((GetTriggerUnit()==udg_Hero[1]))thenreturn trueendifif((GetTriggerUnit()==udg_Hero[2]))thenreturn trueendifif((GetTriggerUnit()==udg_Hero[3]))thenreturn trueendifif((GetTriggerUnit()==udg_Hero[4]))thenreturn trueendifif((GetTriggerUnit()==udg_Hero[5]))thenreturn trueendifif((GetTriggerUnit()==udg_Hero[6]))thenreturn trueendifreturn false
endfunctionfunction Trig_Voscreshenie_heroe_Conditions takes nothing returns booleanif(not Trig_Voscreshenie_heroe_Func001C())thenreturn false
endifif(not Trig_Voscreshenie_heroe_Func002C())thenreturn false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Voscreshenie_heroe_Func003C takes nothing returns booleanif(not(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED)>0))then
return false
endifif(not(GetTriggerUnit()==udg_Hero[1]))thenreturn false
endifreturn trueendfunctionfunction Trig_Voscreshenie_heroe_Func004C takes nothing returns booleanif(not(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED)>0))then
return false
endifif(not(GetTriggerUnit()==udg_Hero[2]))thenreturn false
endifreturn trueendfunctionfunction Trig_Voscreshenie_heroe_Func005C takes nothing returns booleanif(not(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED)>0))then
return false
endifif(not(GetTriggerUnit()==udg_Hero[3]))thenreturn false
endifreturn trueendfunctionfunction Trig_Voscreshenie_heroe_Func006C takes nothing returns booleanif(not(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED)>0))then
return false
endifif(not(GetTriggerUnit()==udg_Hero[4]))thenreturn false
endifreturn trueendfunctionfunction Trig_Voscreshenie_heroe_Func007C takes nothing returns booleanif(not(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED)>0))then
return false
endifif(not(GetTriggerUnit()==udg_Hero[5]))thenreturn false
endifreturn trueendfunctionfunction Trig_Voscreshenie_heroe_Func008C takes nothing returns booleanif(not(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED)>0))then
return false
endifif(not(GetTriggerUnit()==udg_Hero[6]))thenreturn false
endifreturn trueendfunctionfunction Trig_Voscreshenie_heroe_Actions takes nothing returns nothingif(Trig_Voscreshenie_heroe_Func003C())thencall TriggerSleepAction(5.00)call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED)-1))call DisplayTextToForce(GetPlayersAll(),("Игрок "+(GetPlayerName(GetTriggerPlayer())+" погиб.")))call ReviveHeroLoc(udg_Hero[1],GetUnitLoc(gg_unit_ncp3_0330),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
else
endifif(Trig_Voscreshenie_heroe_Func004C())thencall TriggerSleepAction(5.00)call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED)-1))call DisplayTextToForce(GetPlayersAll(),("Игрок "+(GetPlayerName(GetTriggerPlayer())+" погиб.")))call ReviveHeroLoc(udg_Hero[2],GetUnitLoc(gg_unit_ncp3_0330),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
else
endifif(Trig_Voscreshenie_heroe_Func005C())thencall TriggerSleepAction(5.00)call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED)-1))call DisplayTextToForce(GetPlayersAll(),("Игрок "+(GetPlayerName(GetTriggerPlayer())+" погиб.")))call ReviveHeroLoc(udg_Hero[3],GetUnitLoc(gg_unit_ncp3_0330),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
else
endifif(Trig_Voscreshenie_heroe_Func006C())thencall TriggerSleepAction(5.00)call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED)-1))call DisplayTextToForce(GetPlayersAll(),("Игрок "+(GetPlayerName(GetTriggerPlayer())+" погиб.")))call ReviveHeroLoc(udg_Hero[4],GetUnitLoc(gg_unit_ncp3_0330),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
else
endifif(Trig_Voscreshenie_heroe_Func007C())thencall TriggerSleepAction(5.00)call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED)-1))call DisplayTextToForce(GetPlayersAll(),("Игрок "+(GetPlayerName(GetTriggerPlayer())+" погиб.")))call ReviveHeroLoc(udg_Hero[5],GetUnitLoc(gg_unit_ncp3_0330),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
else
endifif(Trig_Voscreshenie_heroe_Func008C())thencall TriggerSleepAction(5.00)call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED)-1))call DisplayTextToForce(GetPlayersAll(),("Игрок "+(GetPlayerName(GetTriggerPlayer())+" погиб.")))call ReviveHeroLoc(udg_Hero[6],GetUnitLoc(gg_unit_ncp3_0330),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
else
endifendfunctionfunction InitTrig_Voscreshenie_heroe takes nothing returns nothingset gg_trg_Voscreshenie_heroe=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Voscreshenie_heroe,EVENT_PLAYER_UNIT_DEATH)call TriggerAddCondition(gg_trg_Voscreshenie_heroe,Condition(function Trig_Voscreshenie_heroe_Conditions))call TriggerAddAction(gg_trg_Voscreshenie_heroe,function Trig_Voscreshenie_heroe_Actions)endfunctionfunction Trig_Hero_LVL_Func001C takes nothing returns booleanif((GetTriggerUnit()==udg_Hero[1]))thenreturn trueendifif((GetTriggerUnit()==udg_Hero[2]))thenreturn trueendifif((GetTriggerUnit()==udg_Hero[3]))thenreturn trueendifif((GetTriggerUnit()==udg_Hero[4]))thenreturn trueendifif((GetTriggerUnit()==udg_Hero[5]))thenreturn trueendifif((GetTriggerUnit()==udg_Hero[6]))thenreturn trueendifreturn false
endfunctionfunction Trig_Hero_LVL_Conditions takes nothing returns booleanif(not Trig_Hero_LVL_Func001C())then
return false
endifreturn trueendfunctionfunction Trig_Hero_LVL_Actions takes nothing returns nothing
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)+1))
endfunctionfunction InitTrig_Hero_LVL takes nothing returns nothing
set gg_trg_Hero_LVL=CreateTrigger()call TriggerRegisterPlayerUnitEventSimple(gg_trg_Hero_LVL,Player(0),EVENT_PLAYER_HERO_LEVEL)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Hero_LVL,Player(1),EVENT_PLAYER_HERO_LEVEL)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Hero_LVL,Player(2),EVENT_PLAYER_HERO_LEVEL)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Hero_LVL,Player(3),EVENT_PLAYER_HERO_LEVEL)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Hero_LVL,Player(4),EVENT_PLAYER_HERO_LEVEL)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Hero_LVL,Player(5),EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(gg_trg_Hero_LVL,Condition(function Trig_Hero_LVL_Conditions))call TriggerAddAction(gg_trg_Hero_LVL,function Trig_Hero_LVL_Actions)endfunctionfunction Trig_Hero_1_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ewsp'))then
return false
endifreturn trueendfunctionfunction Trig_Hero_1_Func004Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func004Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func004Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func004Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func004Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func004Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func004C takes nothing returns booleanif(not(udg_Inicializaciya_hero[1]==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func005Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func005Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func005Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func005Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func005Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func005Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func005C takes nothing returns booleanif(not(udg_Inicializaciya_hero[1]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func006Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func006Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func006Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func006Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func006Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func006Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func006C takes nothing returns booleanif(not(udg_Inicializaciya_hero[1]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func007Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func007Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func007Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func007Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func007Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func007Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func007C takes nothing returns booleanif(not(udg_Inicializaciya_hero[1]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func008Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func008Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func008Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func008Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func008Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func008Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func008C takes nothing returns booleanif(not(udg_Inicializaciya_hero[1]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func009Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func009Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func009Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func009Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func009Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func009Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Func009C takes nothing returns booleanif(not(udg_Inicializaciya_hero[1]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_1_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)+1))
call KillUnit(GetTriggerUnit())if(Trig_Hero_1_Func004C())thenif(Trig_Hero_1_Func004Func002C())thenset udg_Hero[1]=gg_unit_H000_0001else
endifif(Trig_Hero_1_Func004Func003C())thenset udg_Hero[2]=gg_unit_H000_0001else
endifif(Trig_Hero_1_Func004Func004C())thenset udg_Hero[3]=gg_unit_H000_0001else
endifif(Trig_Hero_1_Func004Func005C())thenset udg_Hero[4]=gg_unit_H000_0001else
endifif(Trig_Hero_1_Func004Func006C())thenset udg_Hero[5]=gg_unit_H000_0001else
endifif(Trig_Hero_1_Func004Func007C())thenset udg_Hero[6]=gg_unit_H000_0001else
endifcall SetUnitOwner(gg_unit_H000_0001,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H000_0001,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_1_Func005C())thenif(Trig_Hero_1_Func005Func002C())thenset udg_Hero[1]=gg_unit_Hart_0331else
endifif(Trig_Hero_1_Func005Func003C())thenset udg_Hero[2]=gg_unit_Hart_0331else
endifif(Trig_Hero_1_Func005Func004C())thenset udg_Hero[3]=gg_unit_Hart_0331else
endifif(Trig_Hero_1_Func005Func005C())thenset udg_Hero[4]=gg_unit_Hart_0331else
endifif(Trig_Hero_1_Func005Func006C())thenset udg_Hero[5]=gg_unit_Hart_0331else
endifif(Trig_Hero_1_Func005Func007C())thenset udg_Hero[6]=gg_unit_Hart_0331else
endifcall SetUnitOwner(gg_unit_Hart_0331,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_Hart_0331,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_1_Func006C())thenif(Trig_Hero_1_Func006Func002C())thenset udg_Hero[1]=gg_unit_Hapm_0332else
endifif(Trig_Hero_1_Func006Func003C())thenset udg_Hero[2]=gg_unit_Hapm_0332else
endifif(Trig_Hero_1_Func006Func004C())thenset udg_Hero[3]=gg_unit_Hapm_0332else
endifif(Trig_Hero_1_Func006Func005C())thenset udg_Hero[4]=gg_unit_Hapm_0332else
endifif(Trig_Hero_1_Func006Func006C())thenset udg_Hero[5]=gg_unit_Hapm_0332else
endifif(Trig_Hero_1_Func006Func007C())thenset udg_Hero[6]=gg_unit_Hapm_0332else
endifcall SetUnitOwner(gg_unit_Hapm_0332,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_Hapm_0332,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_1_Func007C())thenif(Trig_Hero_1_Func007Func002C())thenset udg_Hero[1]=gg_unit_Hmkg_0623else
endifif(Trig_Hero_1_Func007Func003C())thenset udg_Hero[2]=gg_unit_Hmkg_0623else
endifif(Trig_Hero_1_Func007Func004C())thenset udg_Hero[3]=gg_unit_Hmkg_0623else
endifif(Trig_Hero_1_Func007Func005C())thenset udg_Hero[4]=gg_unit_Hmkg_0623else
endifif(Trig_Hero_1_Func007Func006C())thenset udg_Hero[5]=gg_unit_Hmkg_0623else
endifif(Trig_Hero_1_Func007Func007C())thenset udg_Hero[6]=gg_unit_Hmkg_0623else
endifcall SetUnitOwner(gg_unit_Hmkg_0623,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_Hmkg_0623,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_1_Func008C())thenif(Trig_Hero_1_Func008Func002C())thenset udg_Hero[1]=gg_unit_Hpb1_0663else
endifif(Trig_Hero_1_Func008Func003C())thenset udg_Hero[2]=gg_unit_Hpb1_0663else
endifif(Trig_Hero_1_Func008Func004C())thenset udg_Hero[3]=gg_unit_Hpb1_0663else
endifif(Trig_Hero_1_Func008Func005C())thenset udg_Hero[4]=gg_unit_Hpb1_0663else
endifif(Trig_Hero_1_Func008Func006C())thenset udg_Hero[5]=gg_unit_Hpb1_0663else
endifif(Trig_Hero_1_Func008Func007C())thenset udg_Hero[6]=gg_unit_Hpb1_0663else
endifcall SetUnitOwner(gg_unit_Hpb1_0663,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_Hpb1_0663,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_1_Func009C())thenif(Trig_Hero_1_Func009Func002C())thenset udg_Hero[1]=gg_unit_Hdgo_0729else
endifif(Trig_Hero_1_Func009Func003C())thenset udg_Hero[2]=gg_unit_Hdgo_0729else
endifif(Trig_Hero_1_Func009Func004C())thenset udg_Hero[3]=gg_unit_Hdgo_0729else
endifif(Trig_Hero_1_Func009Func005C())thenset udg_Hero[4]=gg_unit_Hdgo_0729else
endifif(Trig_Hero_1_Func009Func006C())thenset udg_Hero[5]=gg_unit_Hdgo_0729else
endifif(Trig_Hero_1_Func009Func007C())thenset udg_Hero[6]=gg_unit_Hdgo_0729else
endifcall SetUnitOwner(gg_unit_Hdgo_0729,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_Hdgo_0729,GetUnitLoc(gg_unit_ncp3_0330))
else
endifendfunctionfunction InitTrig_Hero_1 takes nothing returns nothingset gg_trg_Hero_1=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Hero_1,gg_rct_Hero_1)
call TriggerAddCondition(gg_trg_Hero_1,Condition(function Trig_Hero_1_Conditions))call TriggerAddAction(gg_trg_Hero_1,function Trig_Hero_1_Actions)endfunctionfunction Trig_Hero_2_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ewsp'))then
return false
endifreturn trueendfunctionfunction Trig_Hero_2_Func004Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func004Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func004Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func004Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func004Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func004Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func004C takes nothing returns booleanif(not(udg_Inicializaciya_hero[2]==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func005Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func005Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func005Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func005Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func005Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func005Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func005C takes nothing returns booleanif(not(udg_Inicializaciya_hero[2]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func006Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func006Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func006Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func006Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func006Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func006Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func006C takes nothing returns booleanif(not(udg_Inicializaciya_hero[2]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func007Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func007Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func007Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func007Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func007Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func007Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func007C takes nothing returns booleanif(not(udg_Inicializaciya_hero[2]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func008Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func008Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func008Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func008Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func008Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func008Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func008C takes nothing returns booleanif(not(udg_Inicializaciya_hero[2]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func009Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func009Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func009Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func009Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func009Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func009Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Func009C takes nothing returns booleanif(not(udg_Inicializaciya_hero[2]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_2_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)+1))
call KillUnit(GetTriggerUnit())if(Trig_Hero_2_Func004C())thenif(Trig_Hero_2_Func004Func002C())thenset udg_Hero[1]=gg_unit_Hamg_0054else
endifif(Trig_Hero_2_Func004Func003C())thenset udg_Hero[2]=gg_unit_Hamg_0054else
endifif(Trig_Hero_2_Func004Func004C())thenset udg_Hero[3]=gg_unit_Hamg_0054else
endifif(Trig_Hero_2_Func004Func005C())thenset udg_Hero[4]=gg_unit_Hamg_0054else
endifif(Trig_Hero_2_Func004Func006C())thenset udg_Hero[5]=gg_unit_Hamg_0054else
endifif(Trig_Hero_2_Func004Func007C())thenset udg_Hero[6]=gg_unit_Hamg_0054else
endifcall SetUnitOwner(gg_unit_Hamg_0054,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_Hamg_0054,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_2_Func005C())thenif(Trig_Hero_2_Func005Func002C())thenset udg_Hero[1]=gg_unit_Hblm_0273else
endifif(Trig_Hero_2_Func005Func003C())thenset udg_Hero[2]=gg_unit_Hblm_0273else
endifif(Trig_Hero_2_Func005Func004C())thenset udg_Hero[3]=gg_unit_Hblm_0273else
endifif(Trig_Hero_2_Func005Func005C())thenset udg_Hero[4]=gg_unit_Hblm_0273else
endifif(Trig_Hero_2_Func005Func006C())thenset udg_Hero[5]=gg_unit_Hblm_0273else
endifif(Trig_Hero_2_Func005Func007C())thenset udg_Hero[6]=gg_unit_Hblm_0273else
endifcall SetUnitOwner(gg_unit_Hblm_0273,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_Hblm_0273,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_2_Func006C())thenif(Trig_Hero_2_Func006Func002C())thenset udg_Hero[1]=gg_unit_H00C_0338else
endifif(Trig_Hero_2_Func006Func003C())thenset udg_Hero[2]=gg_unit_H00C_0338else
endifif(Trig_Hero_2_Func006Func004C())thenset udg_Hero[3]=gg_unit_H00C_0338else
endifif(Trig_Hero_2_Func006Func005C())thenset udg_Hero[4]=gg_unit_H00C_0338else
endifif(Trig_Hero_2_Func006Func006C())thenset udg_Hero[5]=gg_unit_H00C_0338else
endifif(Trig_Hero_2_Func006Func007C())thenset udg_Hero[6]=gg_unit_H00C_0338else
endifcall SetUnitOwner(gg_unit_H00C_0338,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H00C_0338,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_2_Func007C())thenif(Trig_Hero_2_Func007Func002C())thenset udg_Hero[1]=gg_unit_H00X_0624else
endifif(Trig_Hero_2_Func007Func003C())thenset udg_Hero[2]=gg_unit_H00X_0624else
endifif(Trig_Hero_2_Func007Func004C())thenset udg_Hero[3]=gg_unit_H00X_0624else
endifif(Trig_Hero_2_Func007Func005C())thenset udg_Hero[4]=gg_unit_H00X_0624else
endifif(Trig_Hero_2_Func007Func006C())thenset udg_Hero[5]=gg_unit_H00X_0624else
endifif(Trig_Hero_2_Func007Func007C())thenset udg_Hero[6]=gg_unit_H00X_0624else
endifcall SetUnitOwner(gg_unit_H00X_0624,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H00X_0624,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_2_Func008C())thenif(Trig_Hero_2_Func008Func002C())thenset udg_Hero[1]=gg_unit_H013_0664else
endifif(Trig_Hero_2_Func008Func003C())thenset udg_Hero[2]=gg_unit_H013_0664else
endifif(Trig_Hero_2_Func008Func004C())thenset udg_Hero[3]=gg_unit_H013_0664else
endifif(Trig_Hero_2_Func008Func005C())thenset udg_Hero[4]=gg_unit_H013_0664else
endifif(Trig_Hero_2_Func008Func006C())thenset udg_Hero[5]=gg_unit_H013_0664else
endifif(Trig_Hero_2_Func008Func007C())thenset udg_Hero[6]=gg_unit_H013_0664else
endifcall SetUnitOwner(gg_unit_H013_0664,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H013_0664,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_2_Func009C())thenif(Trig_Hero_2_Func009Func002C())thenset udg_Hero[1]=gg_unit_H01B_0730else
endifif(Trig_Hero_2_Func009Func003C())thenset udg_Hero[2]=gg_unit_H01B_0730else
endifif(Trig_Hero_2_Func009Func004C())thenset udg_Hero[3]=gg_unit_H01B_0730else
endifif(Trig_Hero_2_Func009Func005C())thenset udg_Hero[4]=gg_unit_H01B_0730else
endifif(Trig_Hero_2_Func009Func006C())thenset udg_Hero[5]=gg_unit_H01B_0730else
endifif(Trig_Hero_2_Func009Func007C())thenset udg_Hero[6]=gg_unit_H01B_0730else
endifcall SetUnitOwner(gg_unit_H01B_0730,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H01B_0730,GetUnitLoc(gg_unit_ncp3_0330))
else
endifendfunctionfunction InitTrig_Hero_2 takes nothing returns nothingset gg_trg_Hero_2=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Hero_2,gg_rct_Hero_2)
call TriggerAddCondition(gg_trg_Hero_2,Condition(function Trig_Hero_2_Conditions))call TriggerAddAction(gg_trg_Hero_2,function Trig_Hero_2_Actions)endfunctionfunction Trig_Hero_3_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ewsp'))then
return false
endifreturn trueendfunctionfunction Trig_Hero_3_Func004Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func004Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func004Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func004Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func004Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func004Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func004C takes nothing returns booleanif(not(udg_Inicializaciya_hero[3]==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func005Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func005Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func005Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func005Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func005Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func005Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func005C takes nothing returns booleanif(not(udg_Inicializaciya_hero[3]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func006Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func006Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func006Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func006Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func006Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func006Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func006C takes nothing returns booleanif(not(udg_Inicializaciya_hero[3]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func007Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func007Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func007Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func007Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func007Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func007Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func007C takes nothing returns booleanif(not(udg_Inicializaciya_hero[3]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func008Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func008Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func008Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func008Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func008Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func008Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func008C takes nothing returns booleanif(not(udg_Inicializaciya_hero[3]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func009Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func009Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func009Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func009Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func009Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func009Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Func009C takes nothing returns booleanif(not(udg_Inicializaciya_hero[3]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_3_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)+1))
call KillUnit(GetTriggerUnit())if(Trig_Hero_3_Func004C())thenif(Trig_Hero_3_Func004Func002C())thenset udg_Hero[1]=gg_unit_H00D_0256else
endifif(Trig_Hero_3_Func004Func003C())thenset udg_Hero[2]=gg_unit_H00D_0256else
endifif(Trig_Hero_3_Func004Func004C())thenset udg_Hero[3]=gg_unit_H00D_0256else
endifif(Trig_Hero_3_Func004Func005C())thenset udg_Hero[4]=gg_unit_H00D_0256else
endifif(Trig_Hero_3_Func004Func006C())thenset udg_Hero[5]=gg_unit_H00D_0256else
endifif(Trig_Hero_3_Func004Func007C())thenset udg_Hero[6]=gg_unit_H00D_0256else
endifcall SetUnitOwner(gg_unit_H00D_0256,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H00D_0256,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_3_Func005C())thenif(Trig_Hero_3_Func005Func002C())thenset udg_Hero[1]=gg_unit_H00E_0050else
endifif(Trig_Hero_3_Func005Func003C())thenset udg_Hero[2]=gg_unit_H00E_0050else
endifif(Trig_Hero_3_Func005Func004C())thenset udg_Hero[3]=gg_unit_H00E_0050else
endifif(Trig_Hero_3_Func005Func005C())thenset udg_Hero[4]=gg_unit_H00E_0050else
endifif(Trig_Hero_3_Func005Func006C())thenset udg_Hero[5]=gg_unit_H00E_0050else
endifif(Trig_Hero_3_Func005Func007C())thenset udg_Hero[6]=gg_unit_H00E_0050else
endifcall SetUnitOwner(gg_unit_H00E_0050,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H00E_0050,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_3_Func006C())thenif(Trig_Hero_3_Func006Func002C())thenset udg_Hero[1]=gg_unit_H00F_0346else
endifif(Trig_Hero_3_Func006Func003C())thenset udg_Hero[2]=gg_unit_H00F_0346else
endifif(Trig_Hero_3_Func006Func004C())thenset udg_Hero[3]=gg_unit_H00F_0346else
endifif(Trig_Hero_3_Func006Func005C())thenset udg_Hero[4]=gg_unit_H00F_0346else
endifif(Trig_Hero_3_Func006Func006C())thenset udg_Hero[5]=gg_unit_H00F_0346else
endifif(Trig_Hero_3_Func006Func007C())thenset udg_Hero[6]=gg_unit_H00F_0346else
endifcall SetUnitOwner(gg_unit_H00F_0346,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H00F_0346,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_3_Func007C())thenif(Trig_Hero_3_Func007Func002C())thenset udg_Hero[1]=gg_unit_H00Y_0636else
endifif(Trig_Hero_3_Func007Func003C())thenset udg_Hero[2]=gg_unit_H00Y_0636else
endifif(Trig_Hero_3_Func007Func004C())thenset udg_Hero[3]=gg_unit_H00Y_0636else
endifif(Trig_Hero_3_Func007Func005C())thenset udg_Hero[4]=gg_unit_H00Y_0636else
endifif(Trig_Hero_3_Func007Func006C())thenset udg_Hero[5]=gg_unit_H00Y_0636else
endifif(Trig_Hero_3_Func007Func007C())thenset udg_Hero[6]=gg_unit_H00Y_0636else
endifcall SetUnitOwner(gg_unit_H00Y_0636,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H00Y_0636,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_3_Func008C())thenif(Trig_Hero_3_Func008Func002C())thenset udg_Hero[1]=gg_unit_H015_0665else
endifif(Trig_Hero_3_Func008Func003C())thenset udg_Hero[2]=gg_unit_H015_0665else
endifif(Trig_Hero_3_Func008Func004C())thenset udg_Hero[3]=gg_unit_H015_0665else
endifif(Trig_Hero_3_Func008Func005C())thenset udg_Hero[4]=gg_unit_H015_0665else
endifif(Trig_Hero_3_Func008Func006C())thenset udg_Hero[5]=gg_unit_H015_0665else
endifif(Trig_Hero_3_Func008Func007C())thenset udg_Hero[6]=gg_unit_H015_0665else
endifcall SetUnitOwner(gg_unit_H015_0665,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H015_0665,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_3_Func009C())thenif(Trig_Hero_3_Func009Func002C())thenset udg_Hero[1]=gg_unit_H01C_0731else
endifif(Trig_Hero_3_Func009Func003C())thenset udg_Hero[2]=gg_unit_H01C_0731else
endifif(Trig_Hero_3_Func009Func004C())thenset udg_Hero[3]=gg_unit_H01C_0731else
endifif(Trig_Hero_3_Func009Func005C())thenset udg_Hero[4]=gg_unit_H01C_0731else
endifif(Trig_Hero_3_Func009Func006C())thenset udg_Hero[5]=gg_unit_H01C_0731else
endifif(Trig_Hero_3_Func009Func007C())thenset udg_Hero[6]=gg_unit_H01C_0731else
endifcall SetUnitOwner(gg_unit_H01C_0731,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H01C_0731,GetUnitLoc(gg_unit_ncp3_0330))
else
endifendfunctionfunction InitTrig_Hero_3 takes nothing returns nothingset gg_trg_Hero_3=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Hero_3,gg_rct_Hero_3)
call TriggerAddCondition(gg_trg_Hero_3,Condition(function Trig_Hero_3_Conditions))call TriggerAddAction(gg_trg_Hero_3,function Trig_Hero_3_Actions)endfunctionfunction Trig_Hero_4_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ewsp'))then
return false
endifreturn trueendfunctionfunction Trig_Hero_4_Func004Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func004Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func004Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func004Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func004Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func004Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func004C takes nothing returns booleanif(not(udg_Inicializaciya_hero[4]==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func005Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func005Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func005Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func005Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func005Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func005Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func005C takes nothing returns booleanif(not(udg_Inicializaciya_hero[4]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func006Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func006Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func006Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func006Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func006Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func006Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func006C takes nothing returns booleanif(not(udg_Inicializaciya_hero[4]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func007Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func007Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func007Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func007Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func007Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func007Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func007C takes nothing returns booleanif(not(udg_Inicializaciya_hero[4]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func008Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func008Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func008Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func008Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func008Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func008Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func008C takes nothing returns booleanif(not(udg_Inicializaciya_hero[4]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func009Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func009Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func009Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func009Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func009Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func009Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Func009C takes nothing returns booleanif(not(udg_Inicializaciya_hero[4]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_4_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)+1))
call KillUnit(GetTriggerUnit())if(Trig_Hero_4_Func004C())thenif(Trig_Hero_4_Func004Func002C())thenset udg_Hero[1]=gg_unit_U00K_0398else
endifif(Trig_Hero_4_Func004Func003C())thenset udg_Hero[2]=gg_unit_U00K_0398else
endifif(Trig_Hero_4_Func004Func004C())thenset udg_Hero[3]=gg_unit_U00K_0398else
endifif(Trig_Hero_4_Func004Func005C())thenset udg_Hero[4]=gg_unit_U00K_0398else
endifif(Trig_Hero_4_Func004Func006C())thenset udg_Hero[5]=gg_unit_U00K_0398else
endifif(Trig_Hero_4_Func004Func007C())thenset udg_Hero[6]=gg_unit_U00K_0398else
endifcall SetUnitOwner(gg_unit_U00K_0398,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_U00K_0398,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_4_Func005C())thenif(Trig_Hero_4_Func005Func002C())thenset udg_Hero[1]=gg_unit_Udre_0441else
endifif(Trig_Hero_4_Func005Func003C())thenset udg_Hero[2]=gg_unit_Udre_0441else
endifif(Trig_Hero_4_Func005Func004C())thenset udg_Hero[3]=gg_unit_Udre_0441else
endifif(Trig_Hero_4_Func005Func005C())thenset udg_Hero[4]=gg_unit_Udre_0441else
endifif(Trig_Hero_4_Func005Func006C())thenset udg_Hero[5]=gg_unit_Udre_0441else
endifif(Trig_Hero_4_Func005Func007C())thenset udg_Hero[6]=gg_unit_Udre_0441else
endifcall SetUnitOwner(gg_unit_Udre_0441,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_Udre_0441,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_4_Func006C())thenif(Trig_Hero_4_Func006Func002C())thenset udg_Hero[1]=gg_unit_Ucrl_0442else
endifif(Trig_Hero_4_Func006Func003C())thenset udg_Hero[2]=gg_unit_Ucrl_0442else
endifif(Trig_Hero_4_Func006Func004C())thenset udg_Hero[3]=gg_unit_Ucrl_0442else
endifif(Trig_Hero_4_Func006Func005C())thenset udg_Hero[4]=gg_unit_Ucrl_0442else
endifif(Trig_Hero_4_Func006Func006C())thenset udg_Hero[5]=gg_unit_Ucrl_0442else
endifif(Trig_Hero_4_Func006Func007C())thenset udg_Hero[6]=gg_unit_Ucrl_0442else
endifcall SetUnitOwner(gg_unit_Ucrl_0442,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_Ucrl_0442,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_4_Func007C())thenif(Trig_Hero_4_Func007Func002C())thenset udg_Hero[1]=gg_unit_U00T_0637else
endifif(Trig_Hero_4_Func007Func003C())thenset udg_Hero[2]=gg_unit_U00T_0637else
endifif(Trig_Hero_4_Func007Func004C())thenset udg_Hero[3]=gg_unit_U00T_0637else
endifif(Trig_Hero_4_Func007Func005C())thenset udg_Hero[4]=gg_unit_U00T_0637else
endifif(Trig_Hero_4_Func007Func006C())thenset udg_Hero[5]=gg_unit_U00T_0637else
endifif(Trig_Hero_4_Func007Func007C())thenset udg_Hero[6]=gg_unit_U00T_0637else
endifcall SetUnitOwner(gg_unit_U00T_0637,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_U00T_0637,GetUnitLoc(gg_unit_ncp3_0330))
call EnableTrigger(gg_trg_Yadovitoe_oblako)else
endifif(Trig_Hero_4_Func008C())thenif(Trig_Hero_4_Func008Func002C())thenset udg_Hero[1]=gg_unit_U00W_0666else
endifif(Trig_Hero_4_Func008Func003C())thenset udg_Hero[2]=gg_unit_U00W_0666else
endifif(Trig_Hero_4_Func008Func004C())thenset udg_Hero[3]=gg_unit_U00W_0666else
endifif(Trig_Hero_4_Func008Func005C())thenset udg_Hero[4]=gg_unit_U00W_0666else
endifif(Trig_Hero_4_Func008Func006C())thenset udg_Hero[5]=gg_unit_U00W_0666else
endifif(Trig_Hero_4_Func008Func007C())thenset udg_Hero[6]=gg_unit_U00W_0666else
endifcall SetUnitOwner(gg_unit_U00W_0666,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_U00W_0666,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_4_Func009C())thenif(Trig_Hero_4_Func009Func002C())thenset udg_Hero[1]=gg_unit_H01D_0732else
endifif(Trig_Hero_4_Func009Func003C())thenset udg_Hero[2]=gg_unit_H01D_0732else
endifif(Trig_Hero_4_Func009Func004C())thenset udg_Hero[3]=gg_unit_H01D_0732else
endifif(Trig_Hero_4_Func009Func005C())thenset udg_Hero[4]=gg_unit_H01D_0732else
endifif(Trig_Hero_4_Func009Func006C())thenset udg_Hero[5]=gg_unit_H01D_0732else
endifif(Trig_Hero_4_Func009Func007C())thenset udg_Hero[6]=gg_unit_H01D_0732else
endifcall SetUnitOwner(gg_unit_H01D_0732,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H01D_0732,GetUnitLoc(gg_unit_ncp3_0330))
else
endifendfunctionfunction InitTrig_Hero_4 takes nothing returns nothingset gg_trg_Hero_4=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Hero_4,gg_rct_Hero_4)
call TriggerAddCondition(gg_trg_Hero_4,Condition(function Trig_Hero_4_Conditions))call TriggerAddAction(gg_trg_Hero_4,function Trig_Hero_4_Actions)endfunctionfunction Trig_Hero_5_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ewsp'))then
return false
endifreturn trueendfunctionfunction Trig_Hero_5_Func004Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func004Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func004Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func004Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func004Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func004Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func004C takes nothing returns booleanif(not(udg_Inicializaciya_hero[5]==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func005Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func005Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func005Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func005Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func005Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func005Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func005C takes nothing returns booleanif(not(udg_Inicializaciya_hero[5]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func006Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func006Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func006Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func006Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func006Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func006Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func006C takes nothing returns booleanif(not(udg_Inicializaciya_hero[5]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func007Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func007Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func007Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func007Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func007Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func007Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func007C takes nothing returns booleanif(not(udg_Inicializaciya_hero[5]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func008Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func008Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func008Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func008Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func008Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func008Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func008C takes nothing returns booleanif(not(udg_Inicializaciya_hero[5]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func009Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func009Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func009Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func009Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func009Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func009Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Func009C takes nothing returns booleanif(not(udg_Inicializaciya_hero[5]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_5_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)+1))
call KillUnit(GetTriggerUnit())if(Trig_Hero_5_Func004C())thenif(Trig_Hero_5_Func004Func002C())thenset udg_Hero[1]=gg_unit_Ulic_0444else
endifif(Trig_Hero_5_Func004Func003C())thenset udg_Hero[2]=gg_unit_Ulic_0444else
endifif(Trig_Hero_5_Func004Func004C())thenset udg_Hero[3]=gg_unit_Ulic_0444else
endifif(Trig_Hero_5_Func004Func005C())thenset udg_Hero[4]=gg_unit_Ulic_0444else
endifif(Trig_Hero_5_Func004Func006C())thenset udg_Hero[5]=gg_unit_Ulic_0444else
endifif(Trig_Hero_5_Func004Func007C())thenset udg_Hero[6]=gg_unit_Ulic_0444else
endifcall SetUnitOwner(gg_unit_Ulic_0444,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_Ulic_0444,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_5_Func005C())thenif(Trig_Hero_5_Func005Func002C())thenset udg_Hero[1]=gg_unit_U00L_0445else
endifif(Trig_Hero_5_Func005Func003C())thenset udg_Hero[2]=gg_unit_U00L_0445else
endifif(Trig_Hero_5_Func005Func004C())thenset udg_Hero[3]=gg_unit_U00L_0445else
endifif(Trig_Hero_5_Func005Func005C())thenset udg_Hero[4]=gg_unit_U00L_0445else
endifif(Trig_Hero_5_Func005Func006C())thenset udg_Hero[5]=gg_unit_U00L_0445else
endifif(Trig_Hero_5_Func005Func007C())thenset udg_Hero[6]=gg_unit_U00L_0445else
endifcall SetUnitOwner(gg_unit_U00L_0445,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_U00L_0445,GetUnitLoc(gg_unit_ncp3_0330))
call SetPlayerTechResearchedSwap('R00C',1,GetOwningPlayer(GetTriggerUnit()))
else
endifif(Trig_Hero_5_Func006C())thenif(Trig_Hero_5_Func006Func002C())thenset udg_Hero[1]=gg_unit_U00M_0446else
endifif(Trig_Hero_5_Func006Func003C())thenset udg_Hero[2]=gg_unit_U00M_0446else
endifif(Trig_Hero_5_Func006Func004C())thenset udg_Hero[3]=gg_unit_U00M_0446else
endifif(Trig_Hero_5_Func006Func005C())thenset udg_Hero[4]=gg_unit_U00M_0446else
endifif(Trig_Hero_5_Func006Func006C())thenset udg_Hero[5]=gg_unit_U00M_0446else
endifif(Trig_Hero_5_Func006Func007C())thenset udg_Hero[6]=gg_unit_U00M_0446else
endifcall SetUnitOwner(gg_unit_U00M_0446,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_U00M_0446,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_5_Func007C())thenif(Trig_Hero_5_Func007Func002C())thenset udg_Hero[1]=gg_unit_U00U_0639else
endifif(Trig_Hero_5_Func007Func003C())thenset udg_Hero[2]=gg_unit_U00U_0639else
endifif(Trig_Hero_5_Func007Func004C())thenset udg_Hero[3]=gg_unit_U00U_0639else
endifif(Trig_Hero_5_Func007Func005C())thenset udg_Hero[4]=gg_unit_U00U_0639else
endifif(Trig_Hero_5_Func007Func006C())thenset udg_Hero[5]=gg_unit_U00U_0639else
endifif(Trig_Hero_5_Func007Func007C())thenset udg_Hero[6]=gg_unit_U00U_0639else
endifcall SetUnitOwner(gg_unit_U00U_0639,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_U00U_0639,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_5_Func008C())thenif(Trig_Hero_5_Func008Func002C())thenset udg_Hero[1]=gg_unit_U00X_0667else
endifif(Trig_Hero_5_Func008Func003C())thenset udg_Hero[2]=gg_unit_U00X_0667else
endifif(Trig_Hero_5_Func008Func004C())thenset udg_Hero[3]=gg_unit_U00X_0667else
endifif(Trig_Hero_5_Func008Func005C())thenset udg_Hero[4]=gg_unit_U00X_0667else
endifif(Trig_Hero_5_Func008Func006C())thenset udg_Hero[5]=gg_unit_U00X_0667else
endifif(Trig_Hero_5_Func008Func007C())thenset udg_Hero[6]=gg_unit_U00X_0667else
endifcall SetUnitOwner(gg_unit_U00X_0667,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_U00X_0667,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_5_Func009C())thenif(Trig_Hero_5_Func009Func002C())thenset udg_Hero[1]=gg_unit_U013_0733else
endifif(Trig_Hero_5_Func009Func003C())thenset udg_Hero[2]=gg_unit_U013_0733else
endifif(Trig_Hero_5_Func009Func004C())thenset udg_Hero[3]=gg_unit_U013_0733else
endifif(Trig_Hero_5_Func009Func005C())thenset udg_Hero[4]=gg_unit_U013_0733else
endifif(Trig_Hero_5_Func009Func006C())thenset udg_Hero[5]=gg_unit_U013_0733else
endifif(Trig_Hero_5_Func009Func007C())thenset udg_Hero[6]=gg_unit_U013_0733else
endifcall SetUnitOwner(gg_unit_U013_0733,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_U013_0733,GetUnitLoc(gg_unit_ncp3_0330))
else
endifendfunctionfunction InitTrig_Hero_5 takes nothing returns nothingset gg_trg_Hero_5=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Hero_5,gg_rct_Hero_5)
call TriggerAddCondition(gg_trg_Hero_5,Condition(function Trig_Hero_5_Conditions))call TriggerAddAction(gg_trg_Hero_5,function Trig_Hero_5_Actions)endfunctionfunction Trig_Hero_6_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ewsp'))then
return false
endifreturn trueendfunctionfunction Trig_Hero_6_Func004Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func004Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func004Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func004Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func004Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func004Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func004C takes nothing returns booleanif(not(udg_Inicializaciya_hero[6]==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func005Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func005Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func005Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func005Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func005Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func005Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func005C takes nothing returns booleanif(not(udg_Inicializaciya_hero[6]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func006Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func006Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func006Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func006Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func006Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func006Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func006C takes nothing returns booleanif(not(udg_Inicializaciya_hero[6]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func007Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func007Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func007Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func007Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func007Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func007Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func007C takes nothing returns booleanif(not(udg_Inicializaciya_hero[6]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func008Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func008Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func008Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func008Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func008Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func008Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func008C takes nothing returns booleanif(not(udg_Inicializaciya_hero[6]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func009Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func009Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func009Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func009Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func009Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func009Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Func009C takes nothing returns booleanif(not(udg_Inicializaciya_hero[6]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_6_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)+1))
call KillUnit(GetTriggerUnit())if(Trig_Hero_6_Func004C())thenif(Trig_Hero_6_Func004Func002C())thenset udg_Hero[1]=gg_unit_N00H_0447else
endifif(Trig_Hero_6_Func004Func003C())thenset udg_Hero[2]=gg_unit_N00H_0447else
endifif(Trig_Hero_6_Func004Func004C())thenset udg_Hero[3]=gg_unit_N00H_0447else
endifif(Trig_Hero_6_Func004Func005C())thenset udg_Hero[4]=gg_unit_N00H_0447else
endifif(Trig_Hero_6_Func004Func006C())thenset udg_Hero[5]=gg_unit_N00H_0447else
endifif(Trig_Hero_6_Func004Func007C())thenset udg_Hero[6]=gg_unit_N00H_0447else
endifcall SetUnitOwner(gg_unit_N00H_0447,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_N00H_0447,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_6_Func005C())thenif(Trig_Hero_6_Func005Func002C())thenset udg_Hero[1]=gg_unit_U00N_0448else
endifif(Trig_Hero_6_Func005Func003C())thenset udg_Hero[2]=gg_unit_U00N_0448else
endifif(Trig_Hero_6_Func005Func004C())thenset udg_Hero[3]=gg_unit_U00N_0448else
endifif(Trig_Hero_6_Func005Func005C())thenset udg_Hero[4]=gg_unit_U00N_0448else
endifif(Trig_Hero_6_Func005Func006C())thenset udg_Hero[5]=gg_unit_U00N_0448else
endifif(Trig_Hero_6_Func005Func007C())thenset udg_Hero[6]=gg_unit_U00N_0448else
endifcall SetUnitOwner(gg_unit_U00N_0448,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_U00N_0448,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_6_Func006C())thenif(Trig_Hero_6_Func006Func002C())thenset udg_Hero[1]=gg_unit_N00I_0449else
endifif(Trig_Hero_6_Func006Func003C())thenset udg_Hero[2]=gg_unit_N00I_0449else
endifif(Trig_Hero_6_Func006Func004C())thenset udg_Hero[3]=gg_unit_N00I_0449else
endifif(Trig_Hero_6_Func006Func005C())thenset udg_Hero[4]=gg_unit_N00I_0449else
endifif(Trig_Hero_6_Func006Func006C())thenset udg_Hero[5]=gg_unit_N00I_0449else
endifif(Trig_Hero_6_Func006Func007C())thenset udg_Hero[6]=gg_unit_N00I_0449else
endifcall SetUnitOwner(gg_unit_N00I_0449,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_N00I_0449,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_6_Func007C())thenif(Trig_Hero_6_Func007Func002C())thenset udg_Hero[1]=gg_unit_N00P_0640else
endifif(Trig_Hero_6_Func007Func003C())thenset udg_Hero[2]=gg_unit_N00P_0640else
endifif(Trig_Hero_6_Func007Func004C())thenset udg_Hero[3]=gg_unit_N00P_0640else
endifif(Trig_Hero_6_Func007Func005C())thenset udg_Hero[4]=gg_unit_N00P_0640else
endifif(Trig_Hero_6_Func007Func006C())thenset udg_Hero[5]=gg_unit_N00P_0640else
endifif(Trig_Hero_6_Func007Func007C())thenset udg_Hero[6]=gg_unit_N00P_0640else
endifcall SetUnitOwner(gg_unit_N00P_0640,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_N00P_0640,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_6_Func008C())thenif(Trig_Hero_6_Func008Func002C())thenset udg_Hero[1]=gg_unit_U00Y_0669else
endifif(Trig_Hero_6_Func008Func003C())thenset udg_Hero[2]=gg_unit_U00Y_0669else
endifif(Trig_Hero_6_Func008Func004C())thenset udg_Hero[3]=gg_unit_U00Y_0669else
endifif(Trig_Hero_6_Func008Func005C())thenset udg_Hero[4]=gg_unit_U00Y_0669else
endifif(Trig_Hero_6_Func008Func006C())thenset udg_Hero[5]=gg_unit_U00Y_0669else
endifif(Trig_Hero_6_Func008Func007C())thenset udg_Hero[6]=gg_unit_U00Y_0669else
endifcall SetUnitOwner(gg_unit_U00Y_0669,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_U00Y_0669,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_6_Func009C())thenif(Trig_Hero_6_Func009Func002C())thenset udg_Hero[1]=gg_unit_U014_0734else
endifif(Trig_Hero_6_Func009Func003C())thenset udg_Hero[2]=gg_unit_U014_0734else
endifif(Trig_Hero_6_Func009Func004C())thenset udg_Hero[3]=gg_unit_U014_0734else
endifif(Trig_Hero_6_Func009Func005C())thenset udg_Hero[4]=gg_unit_U014_0734else
endifif(Trig_Hero_6_Func009Func006C())thenset udg_Hero[5]=gg_unit_U014_0734else
endifif(Trig_Hero_6_Func009Func007C())thenset udg_Hero[6]=gg_unit_U014_0734else
endifcall SetUnitOwner(gg_unit_U014_0734,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_U014_0734,GetUnitLoc(gg_unit_ncp3_0330))
else
endifendfunctionfunction InitTrig_Hero_6 takes nothing returns nothingset gg_trg_Hero_6=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Hero_6,gg_rct_Hero_6)
call TriggerAddCondition(gg_trg_Hero_6,Condition(function Trig_Hero_6_Conditions))call TriggerAddAction(gg_trg_Hero_6,function Trig_Hero_6_Actions)endfunctionfunction Trig_Hero_7_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ewsp'))then
return false
endifreturn trueendfunctionfunction Trig_Hero_7_Func004Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func004Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func004Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func004Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func004Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func004Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func004C takes nothing returns booleanif(not(udg_Inicializaciya_hero[7]==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func005Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func005Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func005Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func005Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func005Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func005Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func005C takes nothing returns booleanif(not(udg_Inicializaciya_hero[7]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func006Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func006Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func006Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func006Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func006Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func006Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func006C takes nothing returns booleanif(not(udg_Inicializaciya_hero[7]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func007Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func007Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func007Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func007Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func007Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func007Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func007C takes nothing returns booleanif(not(udg_Inicializaciya_hero[7]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func008Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func008Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func008Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func008Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func008Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func008Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func008C takes nothing returns booleanif(not(udg_Inicializaciya_hero[7]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func009Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func009Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func009Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func009Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func009Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func009Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Func009C takes nothing returns booleanif(not(udg_Inicializaciya_hero[7]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_7_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)+1))
call KillUnit(GetTriggerUnit())if(Trig_Hero_7_Func004C())thenif(Trig_Hero_7_Func004Func002C())thenset udg_Hero[1]=gg_unit_N00N_0536else
endifif(Trig_Hero_7_Func004Func003C())thenset udg_Hero[2]=gg_unit_N00N_0536else
endifif(Trig_Hero_7_Func004Func004C())thenset udg_Hero[3]=gg_unit_N00N_0536else
endifif(Trig_Hero_7_Func004Func005C())thenset udg_Hero[4]=gg_unit_N00N_0536else
endifif(Trig_Hero_7_Func004Func006C())thenset udg_Hero[5]=gg_unit_N00N_0536else
endifif(Trig_Hero_7_Func004Func007C())thenset udg_Hero[6]=gg_unit_N00N_0536else
endifcall SetUnitOwner(gg_unit_N00N_0536,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_N00N_0536,GetUnitLoc(gg_unit_ncp3_0330))
call SetPlayerTechResearchedSwap('R00M',1,GetOwningPlayer(GetTriggerUnit()))
else
endifif(Trig_Hero_7_Func005C())thenif(Trig_Hero_7_Func005Func002C())thenset udg_Hero[1]=gg_unit_H00N_0538else
endifif(Trig_Hero_7_Func005Func003C())thenset udg_Hero[2]=gg_unit_H00N_0538else
endifif(Trig_Hero_7_Func005Func004C())thenset udg_Hero[3]=gg_unit_H00N_0538else
endifif(Trig_Hero_7_Func005Func005C())thenset udg_Hero[4]=gg_unit_H00N_0538else
endifif(Trig_Hero_7_Func005Func006C())thenset udg_Hero[5]=gg_unit_H00N_0538else
endifif(Trig_Hero_7_Func005Func007C())thenset udg_Hero[6]=gg_unit_H00N_0538else
endifcall SetUnitOwner(gg_unit_H00N_0538,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H00N_0538,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_7_Func006C())thenif(Trig_Hero_7_Func006Func002C())thenset udg_Hero[1]=gg_unit_H00O_0539else
endifif(Trig_Hero_7_Func006Func003C())thenset udg_Hero[2]=gg_unit_H00O_0539else
endifif(Trig_Hero_7_Func006Func004C())thenset udg_Hero[3]=gg_unit_H00O_0539else
endifif(Trig_Hero_7_Func006Func005C())thenset udg_Hero[4]=gg_unit_H00O_0539else
endifif(Trig_Hero_7_Func006Func006C())thenset udg_Hero[5]=gg_unit_H00O_0539else
endifif(Trig_Hero_7_Func006Func007C())thenset udg_Hero[6]=gg_unit_H00O_0539else
endifcall SetUnitOwner(gg_unit_H00O_0539,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H00O_0539,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_7_Func007C())thenif(Trig_Hero_7_Func007Func002C())thenset udg_Hero[1]=gg_unit_N00Q_0641else
endifif(Trig_Hero_7_Func007Func003C())thenset udg_Hero[2]=gg_unit_N00Q_0641else
endifif(Trig_Hero_7_Func007Func004C())thenset udg_Hero[3]=gg_unit_N00Q_0641else
endifif(Trig_Hero_7_Func007Func005C())thenset udg_Hero[4]=gg_unit_N00Q_0641else
endifif(Trig_Hero_7_Func007Func006C())thenset udg_Hero[5]=gg_unit_N00Q_0641else
endifif(Trig_Hero_7_Func007Func007C())thenset udg_Hero[6]=gg_unit_N00Q_0641else
endifcall SetUnitOwner(gg_unit_N00Q_0641,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_N00Q_0641,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_7_Func008C())thenif(Trig_Hero_7_Func008Func002C())thenset udg_Hero[1]=gg_unit_H018_0710else
endifif(Trig_Hero_7_Func008Func003C())thenset udg_Hero[2]=gg_unit_H018_0710else
endifif(Trig_Hero_7_Func008Func004C())thenset udg_Hero[3]=gg_unit_H018_0710else
endifif(Trig_Hero_7_Func008Func005C())thenset udg_Hero[4]=gg_unit_H018_0710else
endifif(Trig_Hero_7_Func008Func006C())thenset udg_Hero[5]=gg_unit_H018_0710else
endifif(Trig_Hero_7_Func008Func007C())thenset udg_Hero[6]=gg_unit_H018_0710else
endifcall SetUnitOwner(gg_unit_H018_0710,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H018_0710,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_7_Func009C())thenif(Trig_Hero_7_Func009Func002C())thenset udg_Hero[1]=gg_unit_H01E_0735else
endifif(Trig_Hero_7_Func009Func003C())thenset udg_Hero[2]=gg_unit_H01E_0735else
endifif(Trig_Hero_7_Func009Func004C())thenset udg_Hero[3]=gg_unit_H01E_0735else
endifif(Trig_Hero_7_Func009Func005C())thenset udg_Hero[4]=gg_unit_H01E_0735else
endifif(Trig_Hero_7_Func009Func006C())thenset udg_Hero[5]=gg_unit_H01E_0735else
endifif(Trig_Hero_7_Func009Func007C())thenset udg_Hero[6]=gg_unit_H01E_0735else
endifcall SetUnitOwner(gg_unit_H01E_0735,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H01E_0735,GetUnitLoc(gg_unit_ncp3_0330))
else
endifendfunctionfunction InitTrig_Hero_7 takes nothing returns nothingset gg_trg_Hero_7=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Hero_7,gg_rct_Hero_7)
call TriggerAddCondition(gg_trg_Hero_7,Condition(function Trig_Hero_7_Conditions))call TriggerAddAction(gg_trg_Hero_7,function Trig_Hero_7_Actions)endfunctionfunction Trig_Hero_8_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ewsp'))then
return false
endifreturn trueendfunctionfunction Trig_Hero_8_Func004Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func004Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func004Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func004Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func004Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func004Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func004C takes nothing returns booleanif(not(udg_Inicializaciya_hero[8]==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func005Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func005Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func005Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func005Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func005Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func005Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func005C takes nothing returns booleanif(not(udg_Inicializaciya_hero[8]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func006Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func006Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func006Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func006Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func006Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func006Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func006C takes nothing returns booleanif(not(udg_Inicializaciya_hero[8]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func007Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func007Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func007Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func007Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func007Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func007Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func007C takes nothing returns booleanif(not(udg_Inicializaciya_hero[8]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func008Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func008Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func008Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func008Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func008Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func008Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func008C takes nothing returns booleanif(not(udg_Inicializaciya_hero[8]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func009Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func009Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func009Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func009Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func009Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func009Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Func009C takes nothing returns booleanif(not(udg_Inicializaciya_hero[8]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_8_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)+1))
call KillUnit(GetTriggerUnit())if(Trig_Hero_8_Func004C())thenif(Trig_Hero_8_Func004Func002C())thenset udg_Hero[1]=gg_unit_H00P_0540else
endifif(Trig_Hero_8_Func004Func003C())thenset udg_Hero[2]=gg_unit_H00P_0540else
endifif(Trig_Hero_8_Func004Func004C())thenset udg_Hero[3]=gg_unit_H00P_0540else
endifif(Trig_Hero_8_Func004Func005C())thenset udg_Hero[4]=gg_unit_H00P_0540else
endifif(Trig_Hero_8_Func004Func006C())thenset udg_Hero[5]=gg_unit_H00P_0540else
endifif(Trig_Hero_8_Func004Func007C())thenset udg_Hero[6]=gg_unit_H00P_0540else
endifcall SetUnitOwner(gg_unit_H00P_0540,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H00P_0540,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_8_Func005C())thenif(Trig_Hero_8_Func005Func002C())thenset udg_Hero[1]=gg_unit_H00Q_0541else
endifif(Trig_Hero_8_Func005Func003C())thenset udg_Hero[2]=gg_unit_H00Q_0541else
endifif(Trig_Hero_8_Func005Func004C())thenset udg_Hero[3]=gg_unit_H00Q_0541else
endifif(Trig_Hero_8_Func005Func005C())thenset udg_Hero[4]=gg_unit_H00Q_0541else
endifif(Trig_Hero_8_Func005Func006C())thenset udg_Hero[5]=gg_unit_H00Q_0541else
endifif(Trig_Hero_8_Func005Func007C())thenset udg_Hero[6]=gg_unit_H00Q_0541else
endifcall SetUnitOwner(gg_unit_H00Q_0541,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H00Q_0541,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_8_Func006C())thenif(Trig_Hero_8_Func006Func002C())thenset udg_Hero[1]=gg_unit_H00R_0254else
endifif(Trig_Hero_8_Func006Func003C())thenset udg_Hero[2]=gg_unit_H00R_0254else
endifif(Trig_Hero_8_Func006Func004C())thenset udg_Hero[3]=gg_unit_H00R_0254else
endifif(Trig_Hero_8_Func006Func005C())thenset udg_Hero[4]=gg_unit_H00R_0254else
endifif(Trig_Hero_8_Func006Func006C())thenset udg_Hero[5]=gg_unit_H00R_0254else
endifif(Trig_Hero_8_Func006Func007C())thenset udg_Hero[6]=gg_unit_H00R_0254else
endifcall SetUnitOwner(gg_unit_H00R_0254,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H00R_0254,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_8_Func007C())thenif(Trig_Hero_8_Func007Func002C())thenset udg_Hero[1]=gg_unit_H00Z_0655else
endifif(Trig_Hero_8_Func007Func003C())thenset udg_Hero[2]=gg_unit_H00Z_0655else
endifif(Trig_Hero_8_Func007Func004C())thenset udg_Hero[3]=gg_unit_H00Z_0655else
endifif(Trig_Hero_8_Func007Func005C())thenset udg_Hero[4]=gg_unit_H00Z_0655else
endifif(Trig_Hero_8_Func007Func006C())thenset udg_Hero[5]=gg_unit_H00Z_0655else
endifif(Trig_Hero_8_Func007Func007C())thenset udg_Hero[6]=gg_unit_H00Z_0655else
endifcall SetUnitOwner(gg_unit_H00Z_0655,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H00Z_0655,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_8_Func008C())thenif(Trig_Hero_8_Func008Func002C())thenset udg_Hero[1]=gg_unit_H019_0711else
endifif(Trig_Hero_8_Func008Func003C())thenset udg_Hero[2]=gg_unit_H019_0711else
endifif(Trig_Hero_8_Func008Func004C())thenset udg_Hero[3]=gg_unit_H019_0711else
endifif(Trig_Hero_8_Func008Func005C())thenset udg_Hero[4]=gg_unit_H019_0711else
endifif(Trig_Hero_8_Func008Func006C())thenset udg_Hero[5]=gg_unit_H019_0711else
endifif(Trig_Hero_8_Func008Func007C())thenset udg_Hero[6]=gg_unit_H019_0711else
endifcall SetUnitOwner(gg_unit_H019_0711,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H019_0711,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_8_Func009C())thenif(Trig_Hero_8_Func009Func002C())thenset udg_Hero[1]=gg_unit_H01F_0202else
endifif(Trig_Hero_8_Func009Func003C())thenset udg_Hero[2]=gg_unit_H01F_0202else
endifif(Trig_Hero_8_Func009Func004C())thenset udg_Hero[3]=gg_unit_H01F_0202else
endifif(Trig_Hero_8_Func009Func005C())thenset udg_Hero[4]=gg_unit_H01F_0202else
endifif(Trig_Hero_8_Func009Func006C())thenset udg_Hero[5]=gg_unit_H01F_0202else
endifif(Trig_Hero_8_Func009Func007C())thenset udg_Hero[6]=gg_unit_H01F_0202else
endifcall SetUnitOwner(gg_unit_H01F_0202,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H01F_0202,GetUnitLoc(gg_unit_ncp3_0330))
else
endifendfunctionfunction InitTrig_Hero_8 takes nothing returns nothingset gg_trg_Hero_8=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Hero_8,gg_rct_Hero_8)
call TriggerAddCondition(gg_trg_Hero_8,Condition(function Trig_Hero_8_Conditions))call TriggerAddAction(gg_trg_Hero_8,function Trig_Hero_8_Actions)endfunctionfunction Trig_Hero_9_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ewsp'))then
return false
endifreturn trueendfunctionfunction Trig_Hero_9_Func004Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func004Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func004Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func004Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func004Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func004Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func004C takes nothing returns booleanif(not(udg_Inicializaciya_hero[9]==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func005Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func005Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func005Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func005Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func005Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func005Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func005C takes nothing returns booleanif(not(udg_Inicializaciya_hero[9]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func006Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func006Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func006Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func006Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func006Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func006Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func006C takes nothing returns booleanif(not(udg_Inicializaciya_hero[9]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func007Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func007Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func007Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func007Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func007Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func007Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func007C takes nothing returns booleanif(not(udg_Inicializaciya_hero[9]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func008Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func008Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func008Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func008Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func008Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func008Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func008C takes nothing returns booleanif(not(udg_Inicializaciya_hero[9]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func009Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func009Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func009Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func009Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func009Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func009Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Func009C takes nothing returns booleanif(not(udg_Inicializaciya_hero[9]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_9_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)+1))
call KillUnit(GetTriggerUnit())if(Trig_Hero_9_Func004C())thenif(Trig_Hero_9_Func004Func002C())thenset udg_Hero[1]=gg_unit_E001_0602else
endifif(Trig_Hero_9_Func004Func003C())thenset udg_Hero[2]=gg_unit_E001_0602else
endifif(Trig_Hero_9_Func004Func004C())thenset udg_Hero[3]=gg_unit_E001_0602else
endifif(Trig_Hero_9_Func004Func005C())thenset udg_Hero[4]=gg_unit_E001_0602else
endifif(Trig_Hero_9_Func004Func006C())thenset udg_Hero[5]=gg_unit_E001_0602else
endifif(Trig_Hero_9_Func004Func007C())thenset udg_Hero[6]=gg_unit_E001_0602else
endifcall SetUnitOwner(gg_unit_E001_0602,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_E001_0602,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_9_Func005C())thenif(Trig_Hero_9_Func005Func002C())thenset udg_Hero[1]=gg_unit_Edem_0603else
endifif(Trig_Hero_9_Func005Func003C())thenset udg_Hero[2]=gg_unit_Edem_0603else
endifif(Trig_Hero_9_Func005Func004C())thenset udg_Hero[3]=gg_unit_Edem_0603else
endifif(Trig_Hero_9_Func005Func005C())thenset udg_Hero[4]=gg_unit_Edem_0603else
endifif(Trig_Hero_9_Func005Func006C())thenset udg_Hero[5]=gg_unit_Edem_0603else
endifif(Trig_Hero_9_Func005Func007C())thenset udg_Hero[6]=gg_unit_Edem_0603else
endifcall SetUnitOwner(gg_unit_Edem_0603,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_Edem_0603,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_9_Func006C())thenif(Trig_Hero_9_Func006Func002C())thenset udg_Hero[1]=gg_unit_Emoo_0604else
endifif(Trig_Hero_9_Func006Func003C())thenset udg_Hero[2]=gg_unit_Emoo_0604else
endifif(Trig_Hero_9_Func006Func004C())thenset udg_Hero[3]=gg_unit_Emoo_0604else
endifif(Trig_Hero_9_Func006Func005C())thenset udg_Hero[4]=gg_unit_Emoo_0604else
endifif(Trig_Hero_9_Func006Func006C())thenset udg_Hero[5]=gg_unit_Emoo_0604else
endifif(Trig_Hero_9_Func006Func007C())thenset udg_Hero[6]=gg_unit_Emoo_0604else
endifcall SetUnitOwner(gg_unit_Emoo_0604,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_Emoo_0604,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_9_Func007C())thenif(Trig_Hero_9_Func007Func002C())thenset udg_Hero[1]=gg_unit_E003_0656else
endifif(Trig_Hero_9_Func007Func003C())thenset udg_Hero[2]=gg_unit_E003_0656else
endifif(Trig_Hero_9_Func007Func004C())thenset udg_Hero[3]=gg_unit_E003_0656else
endifif(Trig_Hero_9_Func007Func005C())thenset udg_Hero[4]=gg_unit_E003_0656else
endifif(Trig_Hero_9_Func007Func006C())thenset udg_Hero[5]=gg_unit_E003_0656else
endifif(Trig_Hero_9_Func007Func007C())thenset udg_Hero[6]=gg_unit_E003_0656else
endifcall SetUnitOwner(gg_unit_E003_0656,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_E003_0656,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_9_Func008C())thenif(Trig_Hero_9_Func008Func002C())thenset udg_Hero[1]=gg_unit_Ewar_0712else
endifif(Trig_Hero_9_Func008Func003C())thenset udg_Hero[2]=gg_unit_Ewar_0712else
endifif(Trig_Hero_9_Func008Func004C())thenset udg_Hero[3]=gg_unit_Ewar_0712else
endifif(Trig_Hero_9_Func008Func005C())thenset udg_Hero[4]=gg_unit_Ewar_0712else
endifif(Trig_Hero_9_Func008Func006C())thenset udg_Hero[5]=gg_unit_Ewar_0712else
endifif(Trig_Hero_9_Func008Func007C())thenset udg_Hero[6]=gg_unit_Ewar_0712else
endifcall SetUnitOwner(gg_unit_Ewar_0712,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_Ewar_0712,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_9_Func009C())thenif(Trig_Hero_9_Func009Func002C())thenset udg_Hero[1]=gg_unit_H01H_0746else
endifif(Trig_Hero_9_Func009Func003C())thenset udg_Hero[2]=gg_unit_H01H_0746else
endifif(Trig_Hero_9_Func009Func004C())thenset udg_Hero[3]=gg_unit_H01H_0746else
endifif(Trig_Hero_9_Func009Func005C())thenset udg_Hero[4]=gg_unit_H01H_0746else
endifif(Trig_Hero_9_Func009Func006C())thenset udg_Hero[5]=gg_unit_H01H_0746else
endifif(Trig_Hero_9_Func009Func007C())thenset udg_Hero[6]=gg_unit_H01H_0746else
endifcall SetUnitOwner(gg_unit_H01H_0746,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H01H_0746,GetUnitLoc(gg_unit_ncp3_0330))
else
endifendfunctionfunction InitTrig_Hero_9 takes nothing returns nothingset gg_trg_Hero_9=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Hero_9,gg_rct_Hero_9)
call TriggerAddCondition(gg_trg_Hero_9,Condition(function Trig_Hero_9_Conditions))call TriggerAddAction(gg_trg_Hero_9,function Trig_Hero_9_Actions)endfunctionfunction Trig_Hero_10_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ewsp'))then
return false
endifreturn trueendfunctionfunction Trig_Hero_10_Func004Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func004Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func004Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func004Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func004Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func004Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func004C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[10]==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func005Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func005Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func005Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func005Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func005Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func005Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func005C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[10]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func006Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func006Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func006Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func006Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func006Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func006Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func006C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[10]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func007Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func007Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func007Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func007Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func007Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func007Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func007C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[10]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func008Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func008Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func008Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func008Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func008Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func008Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func008C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[10]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func009Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func009Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func009Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func009Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func009Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func009Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Func009C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[10]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_10_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)+1))
call KillUnit(GetTriggerUnit())if(Trig_Hero_10_Func004C())thenif(Trig_Hero_10_Func004Func002C())thenset udg_Hero[1]=gg_unit_Ekee_0605else
endifif(Trig_Hero_10_Func004Func003C())thenset udg_Hero[2]=gg_unit_Ekee_0605else
endifif(Trig_Hero_10_Func004Func004C())thenset udg_Hero[3]=gg_unit_Ekee_0605else
endifif(Trig_Hero_10_Func004Func005C())thenset udg_Hero[4]=gg_unit_Ekee_0605else
endifif(Trig_Hero_10_Func004Func006C())thenset udg_Hero[5]=gg_unit_Ekee_0605else
endifif(Trig_Hero_10_Func004Func007C())thenset udg_Hero[6]=gg_unit_Ekee_0605else
endifcall SetUnitOwner(gg_unit_Ekee_0605,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_Ekee_0605,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_10_Func005C())thenif(Trig_Hero_10_Func005Func002C())thenset udg_Hero[1]=gg_unit_Emns_0609else
endifif(Trig_Hero_10_Func005Func003C())thenset udg_Hero[2]=gg_unit_Emns_0609else
endifif(Trig_Hero_10_Func005Func004C())thenset udg_Hero[3]=gg_unit_Emns_0609else
endifif(Trig_Hero_10_Func005Func005C())thenset udg_Hero[4]=gg_unit_Emns_0609else
endifif(Trig_Hero_10_Func005Func006C())thenset udg_Hero[5]=gg_unit_Emns_0609else
endifif(Trig_Hero_10_Func005Func007C())thenset udg_Hero[6]=gg_unit_Emns_0609else
endifcall SetUnitOwner(gg_unit_Emns_0609,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_Emns_0609,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_10_Func006C())thenif(Trig_Hero_10_Func006Func002C())thenset udg_Hero[1]=gg_unit_H00T_0610else
endifif(Trig_Hero_10_Func006Func003C())thenset udg_Hero[2]=gg_unit_H00T_0610else
endifif(Trig_Hero_10_Func006Func004C())thenset udg_Hero[3]=gg_unit_H00T_0610else
endifif(Trig_Hero_10_Func006Func005C())thenset udg_Hero[4]=gg_unit_H00T_0610else
endifif(Trig_Hero_10_Func006Func006C())thenset udg_Hero[5]=gg_unit_H00T_0610else
endifif(Trig_Hero_10_Func006Func007C())thenset udg_Hero[6]=gg_unit_H00T_0610else
endifcall SetUnitOwner(gg_unit_H00T_0610,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H00T_0610,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_10_Func007C())thenif(Trig_Hero_10_Func007Func002C())thenset udg_Hero[1]=gg_unit_E004_0657else
endifif(Trig_Hero_10_Func007Func003C())thenset udg_Hero[2]=gg_unit_E004_0657else
endifif(Trig_Hero_10_Func007Func004C())thenset udg_Hero[3]=gg_unit_E004_0657else
endifif(Trig_Hero_10_Func007Func005C())thenset udg_Hero[4]=gg_unit_E004_0657else
endifif(Trig_Hero_10_Func007Func006C())thenset udg_Hero[5]=gg_unit_E004_0657else
endifif(Trig_Hero_10_Func007Func007C())thenset udg_Hero[6]=gg_unit_E004_0657else
endifcall SetUnitOwner(gg_unit_E004_0657,GetOwningPlayer(GetTriggerUnit()),true)call SetUnitOwner(gg_unit_e005_0658,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_E004_0657,GetUnitLoc(gg_unit_ncp3_0330))
call SetUnitPositionLoc(gg_unit_e005_0658,GetUnitLoc(gg_unit_ncp3_0330))
call IssueTargetOrder(gg_unit_e005_0658,"smart",gg_unit_E004_0657)else
endifif(Trig_Hero_10_Func008C())thenif(Trig_Hero_10_Func008Func002C())thenset udg_Hero[1]=gg_unit_E006_0713else
endifif(Trig_Hero_10_Func008Func003C())thenset udg_Hero[2]=gg_unit_E006_0713else
endifif(Trig_Hero_10_Func008Func004C())thenset udg_Hero[3]=gg_unit_E006_0713else
endifif(Trig_Hero_10_Func008Func005C())thenset udg_Hero[4]=gg_unit_E006_0713else
endifif(Trig_Hero_10_Func008Func006C())thenset udg_Hero[5]=gg_unit_E006_0713else
endifif(Trig_Hero_10_Func008Func007C())thenset udg_Hero[6]=gg_unit_E006_0713else
endifcall SetUnitOwner(gg_unit_E006_0713,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_E006_0713,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_10_Func009C())thenif(Trig_Hero_10_Func009Func002C())thenset udg_Hero[1]=gg_unit_H020_0769else
endifif(Trig_Hero_10_Func009Func003C())thenset udg_Hero[2]=gg_unit_H020_0769else
endifif(Trig_Hero_10_Func009Func004C())thenset udg_Hero[3]=gg_unit_H020_0769else
endifif(Trig_Hero_10_Func009Func005C())thenset udg_Hero[4]=gg_unit_H020_0769else
endifif(Trig_Hero_10_Func009Func006C())thenset udg_Hero[5]=gg_unit_H020_0769else
endifif(Trig_Hero_10_Func009Func007C())thenset udg_Hero[6]=gg_unit_H020_0769else
endifcall SetUnitOwner(gg_unit_H020_0769,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H020_0769,GetUnitLoc(gg_unit_ncp3_0330))
else
endifendfunctionfunction InitTrig_Hero_10 takes nothing returns nothingset gg_trg_Hero_10=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Hero_10,gg_rct_Hero_10)call TriggerAddCondition(gg_trg_Hero_10,Condition(function Trig_Hero_10_Conditions))
call TriggerAddAction(gg_trg_Hero_10,function Trig_Hero_10_Actions)endfunctionfunction Trig_Hero_11_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ewsp'))then
return false
endifreturn trueendfunctionfunction Trig_Hero_11_Func004Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func004Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func004Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func004Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func004Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func004Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func004C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[11]==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func005Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func005Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func005Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func005Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func005Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func005Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func005C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[11]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func006Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func006Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func006Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func006Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func006Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func006Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func006C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[11]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func007Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func007Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func007Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func007Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func007Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func007Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func007C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[11]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func008Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func008Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func008Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func008Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func008Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func008Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func008C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[11]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func009Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func009Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func009Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func009Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func009Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func009Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Func009C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[11]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_11_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)+1))
call KillUnit(GetTriggerUnit())if(Trig_Hero_11_Func004C())thenif(Trig_Hero_11_Func004Func002C())thenset udg_Hero[1]=gg_unit_H00U_0611else
endifif(Trig_Hero_11_Func004Func003C())thenset udg_Hero[2]=gg_unit_H00U_0611else
endifif(Trig_Hero_11_Func004Func004C())thenset udg_Hero[3]=gg_unit_H00U_0611else
endifif(Trig_Hero_11_Func004Func005C())thenset udg_Hero[4]=gg_unit_H00U_0611else
endifif(Trig_Hero_11_Func004Func006C())thenset udg_Hero[5]=gg_unit_H00U_0611else
endifif(Trig_Hero_11_Func004Func007C())thenset udg_Hero[6]=gg_unit_H00U_0611else
endifcall SetUnitOwner(gg_unit_H00U_0611,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H00U_0611,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_11_Func005C())thenif(Trig_Hero_11_Func005Func002C())thenset udg_Hero[1]=gg_unit_H00V_0612else
endifif(Trig_Hero_11_Func005Func003C())thenset udg_Hero[2]=gg_unit_H00V_0612else
endifif(Trig_Hero_11_Func005Func004C())thenset udg_Hero[3]=gg_unit_H00V_0612else
endifif(Trig_Hero_11_Func005Func005C())thenset udg_Hero[4]=gg_unit_H00V_0612else
endifif(Trig_Hero_11_Func005Func006C())thenset udg_Hero[5]=gg_unit_H00V_0612else
endifif(Trig_Hero_11_Func005Func007C())thenset udg_Hero[6]=gg_unit_H00V_0612else
endifcall SetUnitOwner(gg_unit_H00V_0612,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H00V_0612,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_11_Func006C())thenif(Trig_Hero_11_Func006Func002C())thenset udg_Hero[1]=gg_unit_H00W_0613else
endifif(Trig_Hero_11_Func006Func003C())thenset udg_Hero[2]=gg_unit_H00W_0613else
endifif(Trig_Hero_11_Func006Func004C())thenset udg_Hero[3]=gg_unit_H00W_0613else
endifif(Trig_Hero_11_Func006Func005C())thenset udg_Hero[4]=gg_unit_H00W_0613else
endifif(Trig_Hero_11_Func006Func006C())thenset udg_Hero[5]=gg_unit_H00W_0613else
endifif(Trig_Hero_11_Func006Func007C())thenset udg_Hero[6]=gg_unit_H00W_0613else
endifcall SetUnitOwner(gg_unit_H00W_0613,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H00W_0613,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_11_Func007C())thenif(Trig_Hero_11_Func007Func002C())thenset udg_Hero[1]=gg_unit_H010_0659else
endifif(Trig_Hero_11_Func007Func003C())thenset udg_Hero[2]=gg_unit_H010_0659else
endifif(Trig_Hero_11_Func007Func004C())thenset udg_Hero[3]=gg_unit_H010_0659else
endifif(Trig_Hero_11_Func007Func005C())thenset udg_Hero[4]=gg_unit_H010_0659else
endifif(Trig_Hero_11_Func007Func006C())thenset udg_Hero[5]=gg_unit_H010_0659else
endifif(Trig_Hero_11_Func007Func007C())thenset udg_Hero[6]=gg_unit_H010_0659else
endifcall SetUnitOwner(gg_unit_H010_0659,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H010_0659,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_11_Func008C())thenif(Trig_Hero_11_Func008Func002C())thenset udg_Hero[1]=gg_unit_H01A_0714else
endifif(Trig_Hero_11_Func008Func003C())thenset udg_Hero[2]=gg_unit_H01A_0714else
endifif(Trig_Hero_11_Func008Func004C())thenset udg_Hero[3]=gg_unit_H01A_0714else
endifif(Trig_Hero_11_Func008Func005C())thenset udg_Hero[4]=gg_unit_H01A_0714else
endifif(Trig_Hero_11_Func008Func006C())thenset udg_Hero[5]=gg_unit_H01A_0714else
endifif(Trig_Hero_11_Func008Func007C())thenset udg_Hero[6]=gg_unit_H01A_0714else
endifcall SetUnitOwner(gg_unit_H01A_0714,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H01A_0714,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_11_Func009C())thenif(Trig_Hero_11_Func009Func002C())thenset udg_Hero[1]=gg_unit_H021_0770else
endifif(Trig_Hero_11_Func009Func003C())thenset udg_Hero[2]=gg_unit_H021_0770else
endifif(Trig_Hero_11_Func009Func004C())thenset udg_Hero[3]=gg_unit_H021_0770else
endifif(Trig_Hero_11_Func009Func005C())thenset udg_Hero[4]=gg_unit_H021_0770else
endifif(Trig_Hero_11_Func009Func006C())thenset udg_Hero[5]=gg_unit_H021_0770else
endifif(Trig_Hero_11_Func009Func007C())thenset udg_Hero[6]=gg_unit_H021_0770else
endifcall SetUnitOwner(gg_unit_H021_0770,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H021_0770,GetUnitLoc(gg_unit_ncp3_0330))
else
endifendfunctionfunction InitTrig_Hero_11 takes nothing returns nothingset gg_trg_Hero_11=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Hero_11,gg_rct_Hero_11)call TriggerAddCondition(gg_trg_Hero_11,Condition(function Trig_Hero_11_Conditions))
call TriggerAddAction(gg_trg_Hero_11,function Trig_Hero_11_Actions)endfunctionfunction Trig_Hero_12_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ewsp'))then
return false
endifreturn trueendfunctionfunction Trig_Hero_12_Func004Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func004Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func004Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func004Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func004Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func004Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func004C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[12]==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func005Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func005Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func005Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func005Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func005Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func005Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func005C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[12]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func006Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func006Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func006Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func006Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func006Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func006Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func006C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[12]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func007Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func007Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func007Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func007Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func007Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func007Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func007C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[12]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func008Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func008Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func008Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func008Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func008Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func008Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func008C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[12]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func009Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func009Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func009Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func009Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func009Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func009Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Func009C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[12]==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_12_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)+1))
call KillUnit(GetTriggerUnit())if(Trig_Hero_12_Func004C())thenif(Trig_Hero_12_Func004Func002C())thenset udg_Hero[1]=gg_unit_Obla_0614else
endifif(Trig_Hero_12_Func004Func003C())thenset udg_Hero[2]=gg_unit_Obla_0614else
endifif(Trig_Hero_12_Func004Func004C())thenset udg_Hero[3]=gg_unit_Obla_0614else
endifif(Trig_Hero_12_Func004Func005C())thenset udg_Hero[4]=gg_unit_Obla_0614else
endifif(Trig_Hero_12_Func004Func006C())thenset udg_Hero[5]=gg_unit_Obla_0614else
endifif(Trig_Hero_12_Func004Func007C())thenset udg_Hero[6]=gg_unit_Obla_0614else
endifcall SetUnitOwner(gg_unit_Obla_0614,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_Obla_0614,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_12_Func005C())thenif(Trig_Hero_12_Func005Func002C())thenset udg_Hero[1]=gg_unit_O001_0615else
endifif(Trig_Hero_12_Func005Func003C())thenset udg_Hero[2]=gg_unit_O001_0615else
endifif(Trig_Hero_12_Func005Func004C())thenset udg_Hero[3]=gg_unit_O001_0615else
endifif(Trig_Hero_12_Func005Func005C())thenset udg_Hero[4]=gg_unit_O001_0615else
endifif(Trig_Hero_12_Func005Func006C())thenset udg_Hero[5]=gg_unit_O001_0615else
endifif(Trig_Hero_12_Func005Func007C())thenset udg_Hero[6]=gg_unit_O001_0615else
endifcall SetUnitOwner(gg_unit_O001_0615,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_O001_0615,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_12_Func006C())thenif(Trig_Hero_12_Func006Func002C())thenset udg_Hero[1]=gg_unit_O002_0616else
endifif(Trig_Hero_12_Func006Func003C())thenset udg_Hero[2]=gg_unit_O002_0616else
endifif(Trig_Hero_12_Func006Func004C())thenset udg_Hero[3]=gg_unit_O002_0616else
endifif(Trig_Hero_12_Func006Func005C())thenset udg_Hero[4]=gg_unit_O002_0616else
endifif(Trig_Hero_12_Func006Func006C())thenset udg_Hero[5]=gg_unit_O002_0616else
endifif(Trig_Hero_12_Func006Func007C())thenset udg_Hero[6]=gg_unit_O002_0616else
endifcall SetUnitOwner(gg_unit_O002_0616,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_O002_0616,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_12_Func007C())thenif(Trig_Hero_12_Func007Func002C())thenset udg_Hero[1]=gg_unit_H011_0660else
endifif(Trig_Hero_12_Func007Func003C())thenset udg_Hero[2]=gg_unit_H011_0660else
endifif(Trig_Hero_12_Func007Func004C())thenset udg_Hero[3]=gg_unit_H011_0660else
endifif(Trig_Hero_12_Func007Func005C())thenset udg_Hero[4]=gg_unit_H011_0660else
endifif(Trig_Hero_12_Func007Func006C())thenset udg_Hero[5]=gg_unit_H011_0660else
endifif(Trig_Hero_12_Func007Func007C())thenset udg_Hero[6]=gg_unit_H011_0660else
endifcall SetUnitOwner(gg_unit_H011_0660,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_H011_0660,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_12_Func008C())thenif(Trig_Hero_12_Func008Func002C())thenset udg_Hero[1]=gg_unit_O008_0715else
endifif(Trig_Hero_12_Func008Func003C())thenset udg_Hero[2]=gg_unit_O008_0715else
endifif(Trig_Hero_12_Func008Func004C())thenset udg_Hero[3]=gg_unit_O008_0715else
endifif(Trig_Hero_12_Func008Func005C())thenset udg_Hero[4]=gg_unit_O008_0715else
endifif(Trig_Hero_12_Func008Func006C())thenset udg_Hero[5]=gg_unit_O008_0715else
endifif(Trig_Hero_12_Func008Func007C())thenset udg_Hero[6]=gg_unit_O008_0715else
endifcall SetUnitOwner(gg_unit_O008_0715,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_O008_0715,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_12_Func009C())thenif(Trig_Hero_12_Func009Func002C())thenset udg_Hero[1]=gg_unit_O00E_0774else
endifif(Trig_Hero_12_Func009Func003C())thenset udg_Hero[2]=gg_unit_O00E_0774else
endifif(Trig_Hero_12_Func009Func004C())thenset udg_Hero[3]=gg_unit_O00E_0774else
endifif(Trig_Hero_12_Func009Func005C())thenset udg_Hero[4]=gg_unit_O00E_0774else
endifif(Trig_Hero_12_Func009Func006C())thenset udg_Hero[5]=gg_unit_O00E_0774else
endifif(Trig_Hero_12_Func009Func007C())thenset udg_Hero[6]=gg_unit_O00E_0774else
endifcall SetUnitOwner(gg_unit_O00E_0774,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_O00E_0774,GetUnitLoc(gg_unit_ncp3_0330))
else
endifendfunctionfunction InitTrig_Hero_12 takes nothing returns nothingset gg_trg_Hero_12=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Hero_12,gg_rct_Hero_12)call TriggerAddCondition(gg_trg_Hero_12,Condition(function Trig_Hero_12_Conditions))
call TriggerAddAction(gg_trg_Hero_12,function Trig_Hero_12_Actions)endfunctionfunction Trig_Hero_13_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ewsp'))then
return false
endifreturn trueendfunctionfunction Trig_Hero_13_Func004Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func004Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func004Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func004Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func004Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func004Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func004C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[13]==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func005Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func005Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func005Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func005Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func005Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func005Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func005C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[13]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func006Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func006Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func006Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func006Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func006Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func006Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func006C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[13]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func007Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func007Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func007Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func007Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func007Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func007Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func007C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[13]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func008Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func008Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func008Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func008Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func008Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func008Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Func008C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[13]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_13_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)+1))
call KillUnit(GetTriggerUnit())if(Trig_Hero_13_Func004C())thenif(Trig_Hero_13_Func004Func002C())thenset udg_Hero[1]=gg_unit_Ofar_0617else
endifif(Trig_Hero_13_Func004Func003C())thenset udg_Hero[2]=gg_unit_Ofar_0617else
endifif(Trig_Hero_13_Func004Func004C())thenset udg_Hero[3]=gg_unit_Ofar_0617else
endifif(Trig_Hero_13_Func004Func005C())thenset udg_Hero[4]=gg_unit_Ofar_0617else
endifif(Trig_Hero_13_Func004Func006C())thenset udg_Hero[5]=gg_unit_Ofar_0617else
endifif(Trig_Hero_13_Func004Func007C())thenset udg_Hero[6]=gg_unit_Ofar_0617else
endifcall SetUnitOwner(gg_unit_Ofar_0617,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_Ofar_0617,GetUnitLoc(gg_unit_ncp3_0330))
call SetPlayerTechResearchedSwap('Robs',1,GetOwningPlayer(GetTriggerUnit()))
else
endifif(Trig_Hero_13_Func005C())thenif(Trig_Hero_13_Func005Func002C())thenset udg_Hero[1]=gg_unit_O003_0618else
endifif(Trig_Hero_13_Func005Func003C())thenset udg_Hero[2]=gg_unit_O003_0618else
endifif(Trig_Hero_13_Func005Func004C())thenset udg_Hero[3]=gg_unit_O003_0618else
endifif(Trig_Hero_13_Func005Func005C())thenset udg_Hero[4]=gg_unit_O003_0618else
endifif(Trig_Hero_13_Func005Func006C())thenset udg_Hero[5]=gg_unit_O003_0618else
endifif(Trig_Hero_13_Func005Func007C())thenset udg_Hero[6]=gg_unit_O003_0618else
endifcall SetUnitOwner(gg_unit_O003_0618,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_O003_0618,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_13_Func006C())thenif(Trig_Hero_13_Func006Func002C())thenset udg_Hero[1]=gg_unit_O004_0619else
endifif(Trig_Hero_13_Func006Func003C())thenset udg_Hero[2]=gg_unit_O004_0619else
endifif(Trig_Hero_13_Func006Func004C())thenset udg_Hero[3]=gg_unit_O004_0619else
endifif(Trig_Hero_13_Func006Func005C())thenset udg_Hero[4]=gg_unit_O004_0619else
endifif(Trig_Hero_13_Func006Func006C())thenset udg_Hero[5]=gg_unit_O004_0619else
endifif(Trig_Hero_13_Func006Func007C())thenset udg_Hero[6]=gg_unit_O004_0619else
endifcall SetUnitOwner(gg_unit_O004_0619,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_O004_0619,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_13_Func007C())thenif(Trig_Hero_13_Func007Func002C())thenset udg_Hero[1]=gg_unit_O007_0661else
endifif(Trig_Hero_13_Func007Func003C())thenset udg_Hero[2]=gg_unit_O007_0661else
endifif(Trig_Hero_13_Func007Func004C())thenset udg_Hero[3]=gg_unit_O007_0661else
endifif(Trig_Hero_13_Func007Func005C())thenset udg_Hero[4]=gg_unit_O007_0661else
endifif(Trig_Hero_13_Func007Func006C())thenset udg_Hero[5]=gg_unit_O007_0661else
endifif(Trig_Hero_13_Func007Func007C())thenset udg_Hero[6]=gg_unit_O007_0661else
endifcall SetUnitOwner(gg_unit_O007_0661,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_O007_0661,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_13_Func008C())thenif(Trig_Hero_13_Func008Func002C())thenset udg_Hero[1]=gg_unit_O009_0716else
endifif(Trig_Hero_13_Func008Func003C())thenset udg_Hero[2]=gg_unit_O009_0716else
endifif(Trig_Hero_13_Func008Func004C())thenset udg_Hero[3]=gg_unit_O009_0716else
endifif(Trig_Hero_13_Func008Func005C())thenset udg_Hero[4]=gg_unit_O009_0716else
endifif(Trig_Hero_13_Func008Func006C())thenset udg_Hero[5]=gg_unit_O009_0716else
endifif(Trig_Hero_13_Func008Func007C())thenset udg_Hero[6]=gg_unit_O009_0716else
endifcall SetUnitOwner(gg_unit_O009_0716,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_O009_0716,GetUnitLoc(gg_unit_ncp3_0330))
else
endifendfunctionfunction InitTrig_Hero_13 takes nothing returns nothingset gg_trg_Hero_13=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Hero_13,gg_rct_Hero_13)call TriggerAddCondition(gg_trg_Hero_13,Condition(function Trig_Hero_13_Conditions))
call TriggerAddAction(gg_trg_Hero_13,function Trig_Hero_13_Actions)endfunctionfunction Trig_Hero_14_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ewsp'))then
return false
endifreturn trueendfunctionfunction Trig_Hero_14_Func004Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func004Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func004Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func004Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func004Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func004Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func004C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[14]==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func005Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func005Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func005Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func005Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func005Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func005Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func005C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[14]==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func006Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func006Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func006Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func006Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func006Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func006Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func006C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[14]==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func007Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func007Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func007Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func007Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func007Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func007Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func007C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[14]==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func008Func002C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func008Func003C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func008Func004C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func008Func005C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func008Func006C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func008Func007C takes nothing returns booleanif(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Func008C takes nothing returns boolean
if(not(udg_Inicializaciya_hero[14]==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_14_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)+1))
call KillUnit(GetTriggerUnit())if(Trig_Hero_14_Func004C())thenif(Trig_Hero_14_Func004Func002C())thenset udg_Hero[1]=gg_unit_Otch_0620else
endifif(Trig_Hero_14_Func004Func003C())thenset udg_Hero[2]=gg_unit_Otch_0620else
endifif(Trig_Hero_14_Func004Func004C())thenset udg_Hero[3]=gg_unit_Otch_0620else
endifif(Trig_Hero_14_Func004Func005C())thenset udg_Hero[4]=gg_unit_Otch_0620else
endifif(Trig_Hero_14_Func004Func006C())thenset udg_Hero[5]=gg_unit_Otch_0620else
endifif(Trig_Hero_14_Func004Func007C())thenset udg_Hero[6]=gg_unit_Otch_0620else
endifcall SetUnitOwner(gg_unit_Otch_0620,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_Otch_0620,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_14_Func005C())thenif(Trig_Hero_14_Func005Func002C())thenset udg_Hero[1]=gg_unit_O005_0621else
endifif(Trig_Hero_14_Func005Func003C())thenset udg_Hero[2]=gg_unit_O005_0621else
endifif(Trig_Hero_14_Func005Func004C())thenset udg_Hero[3]=gg_unit_O005_0621else
endifif(Trig_Hero_14_Func005Func005C())thenset udg_Hero[4]=gg_unit_O005_0621else
endifif(Trig_Hero_14_Func005Func006C())thenset udg_Hero[5]=gg_unit_O005_0621else
endifif(Trig_Hero_14_Func005Func007C())thenset udg_Hero[6]=gg_unit_O005_0621else
endifcall SetUnitOwner(gg_unit_O005_0621,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_O005_0621,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_14_Func006C())thenif(Trig_Hero_14_Func006Func002C())thenset udg_Hero[1]=gg_unit_O006_0622else
endifif(Trig_Hero_14_Func006Func003C())thenset udg_Hero[2]=gg_unit_O006_0622else
endifif(Trig_Hero_14_Func006Func004C())thenset udg_Hero[3]=gg_unit_O006_0622else
endifif(Trig_Hero_14_Func006Func005C())thenset udg_Hero[4]=gg_unit_O006_0622else
endifif(Trig_Hero_14_Func006Func006C())thenset udg_Hero[5]=gg_unit_O006_0622else
endifif(Trig_Hero_14_Func006Func007C())thenset udg_Hero[6]=gg_unit_O006_0622else
endifcall SetUnitOwner(gg_unit_O006_0622,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_O006_0622,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_14_Func007C())thenif(Trig_Hero_14_Func007Func002C())thenset udg_Hero[1]=gg_unit_H012_0662else
endifif(Trig_Hero_14_Func007Func003C())thenset udg_Hero[2]=gg_unit_H012_0662else
endifif(Trig_Hero_14_Func007Func004C())thenset udg_Hero[3]=gg_unit_H012_0662else
endifif(Trig_Hero_14_Func007Func005C())thenset udg_Hero[4]=gg_unit_H012_0662else
endifif(Trig_Hero_14_Func007Func006C())thenset udg_Hero[5]=gg_unit_H012_0662else
endifif(Trig_Hero_14_Func007Func007C())thenset udg_Hero[6]=gg_unit_H012_0662else
endifcall SetUnitOwner(gg_unit_O006_0622,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_O006_0622,GetUnitLoc(gg_unit_ncp3_0330))
else
endifif(Trig_Hero_14_Func008C())thenif(Trig_Hero_14_Func008Func002C())thenset udg_Hero[1]=gg_unit_Nbst_0717else
endifif(Trig_Hero_14_Func008Func003C())thenset udg_Hero[2]=gg_unit_Nbst_0717else
endifif(Trig_Hero_14_Func008Func004C())thenset udg_Hero[3]=gg_unit_Nbst_0717else
endifif(Trig_Hero_14_Func008Func005C())thenset udg_Hero[4]=gg_unit_Nbst_0717else
endifif(Trig_Hero_14_Func008Func006C())thenset udg_Hero[5]=gg_unit_Nbst_0717else
endifif(Trig_Hero_14_Func008Func007C())thenset udg_Hero[6]=gg_unit_Nbst_0717else
endifcall SetUnitOwner(gg_unit_Nbst_0717,GetOwningPlayer(GetTriggerUnit()),true)call CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,GetOwningPlayer(GetTriggerUnit()),0)
call AddSpecialEffectLocBJ(GetUnitLoc(gg_unit_ncp3_0330),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")call SetUnitPositionLoc(gg_unit_Nbst_0717,GetUnitLoc(gg_unit_ncp3_0330))
else
endifendfunctionfunction InitTrig_Hero_14 takes nothing returns nothingset gg_trg_Hero_14=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Hero_14,gg_rct_Hero_14)call TriggerAddCondition(gg_trg_Hero_14,Condition(function Trig_Hero_14_Conditions))
call TriggerAddAction(gg_trg_Hero_14,function Trig_Hero_14_Actions)endfunctionfunction Trig_Hero_Random_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())=='ewsp'))then
return false
endifreturn trueendfunctionfunction Trig_Hero_Random_Func003C takes nothing returns boolean
if(not(IsTriggerEnabled(gg_trg_Hero_1)==true))thenreturn false
endifif(not(udg_RandomHero==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_Random_Func004C takes nothing returns boolean
if(not(IsTriggerEnabled(gg_trg_Hero_2)==true))thenreturn false
endifif(not(udg_RandomHero==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_Random_Func005C takes nothing returns boolean
if(not(IsTriggerEnabled(gg_trg_Hero_3)==true))thenreturn false
endifif(not(udg_RandomHero==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_Random_Func006C takes nothing returns boolean
if(not(IsTriggerEnabled(gg_trg_Hero_4)==true))thenreturn false
endifif(not(udg_RandomHero==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_Random_Func007C takes nothing returns boolean
if(not(IsTriggerEnabled(gg_trg_Hero_5)==true))thenreturn false
endifif(not(udg_RandomHero==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_Random_Func008C takes nothing returns boolean
if(not(IsTriggerEnabled(gg_trg_Hero_6)==true))thenreturn false
endifif(not(udg_RandomHero==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_Random_Func009C takes nothing returns boolean
if(not(IsTriggerEnabled(gg_trg_Hero_7)==true))thenreturn false
endifif(not(udg_RandomHero==7))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_Random_Func010C takes nothing returns boolean
if(not(IsTriggerEnabled(gg_trg_Hero_8)==true))thenreturn false
endifif(not(udg_RandomHero==8))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_Random_Func011C takes nothing returns boolean
if(not(IsTriggerEnabled(gg_trg_Hero_9)==true))thenreturn false
endifif(not(udg_RandomHero==9))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_Random_Func012C takes nothing returns boolean
if(not(IsTriggerEnabled(gg_trg_Hero_10)==true))thenreturn false
endifif(not(udg_RandomHero==10))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_Random_Func013C takes nothing returns boolean
if(not(IsTriggerEnabled(gg_trg_Hero_11)==true))thenreturn false
endifif(not(udg_RandomHero==11))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_Random_Func014C takes nothing returns boolean
if(not(IsTriggerEnabled(gg_trg_Hero_12)==true))thenreturn false
endifif(not(udg_RandomHero==12))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_Random_Func015C takes nothing returns boolean
if(not(IsTriggerEnabled(gg_trg_Hero_13)==true))thenreturn false
endifif(not(udg_RandomHero==13))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_Random_Func016C takes nothing returns boolean
if(not(IsTriggerEnabled(gg_trg_Hero_14)==true))thenreturn false
endifif(not(udg_RandomHero==14))thenreturn false
endifreturn trueendfunctionfunction Trig_Hero_Random_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())set udg_RandomHero=GetRandomInt(1,14)if(Trig_Hero_Random_Func003C())thencall AdjustPlayerStateBJ(1500,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Hero_1))else
call EnableTrigger(GetTriggeringTrigger())endifif(Trig_Hero_Random_Func004C())thencall AdjustPlayerStateBJ(1500,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Hero_2))else
call EnableTrigger(GetTriggeringTrigger())endifif(Trig_Hero_Random_Func005C())thencall AdjustPlayerStateBJ(1500,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Hero_3))else
call EnableTrigger(GetTriggeringTrigger())endifif(Trig_Hero_Random_Func006C())thencall AdjustPlayerStateBJ(1500,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Hero_4))else
call EnableTrigger(GetTriggeringTrigger())endifif(Trig_Hero_Random_Func007C())thencall AdjustPlayerStateBJ(1500,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Hero_5))else
call EnableTrigger(GetTriggeringTrigger())endifif(Trig_Hero_Random_Func008C())thencall AdjustPlayerStateBJ(1500,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Hero_7))else
call EnableTrigger(GetTriggeringTrigger())endifif(Trig_Hero_Random_Func009C())thencall AdjustPlayerStateBJ(1500,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Hero_7))else
call EnableTrigger(GetTriggeringTrigger())endifif(Trig_Hero_Random_Func010C())thencall AdjustPlayerStateBJ(1500,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Hero_8))else
call EnableTrigger(GetTriggeringTrigger())endifif(Trig_Hero_Random_Func011C())thencall AdjustPlayerStateBJ(1500,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Hero_9))else
call EnableTrigger(GetTriggeringTrigger())endifif(Trig_Hero_Random_Func012C())thencall AdjustPlayerStateBJ(1500,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Hero_10))else
call EnableTrigger(GetTriggeringTrigger())endifif(Trig_Hero_Random_Func013C())thencall AdjustPlayerStateBJ(1500,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Hero_11))else
call EnableTrigger(GetTriggeringTrigger())endifif(Trig_Hero_Random_Func014C())thencall AdjustPlayerStateBJ(1500,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Hero_12))else
call EnableTrigger(GetTriggeringTrigger())endifif(Trig_Hero_Random_Func015C())thencall AdjustPlayerStateBJ(1500,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Hero_13))else
call EnableTrigger(GetTriggeringTrigger())endifif(Trig_Hero_Random_Func016C())thencall AdjustPlayerStateBJ(1500,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Hero_14))else
call EnableTrigger(GetTriggeringTrigger())endifcall EnableTrigger(GetTriggeringTrigger())endfunctionfunction InitTrig_Hero_Random takes nothing returns nothingset gg_trg_Hero_Random=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Hero_Random,gg_rct_Hero_15)call TriggerAddCondition(gg_trg_Hero_Random,Condition(function Trig_Hero_Random_Conditions))
call TriggerAddAction(gg_trg_Hero_Random,function Trig_Hero_Random_Actions)endfunctionfunction Trig_MB_Create_Actions takes nothing returns nothingcall CreateMultiboardBJ(2,13,"|c00FFFF00Монстры:|r")call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,1,true,true)call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),2,1,true,true)call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,1,"Локация")call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,1,"|c00FFFF00:|r")call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,2,"|c0000FF00Волчий лес|r:")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,3,"|c00FFFF00Поляна тролей|r:")call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,4,"|c0030c5d8Болото|r:")call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,5,"|c00FF8C00Шахта|r:")call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,6,"|c0090ee90Логово бандитов|r:")call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,7,"|c00FFFF00Лес гноллов|r:")call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,8,"|c00FF8C00Земли орков|r:")call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,9,"|c0000FF00Фелвудский лес|r:")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,10,"|c008B4513Каменное ущелье|r:")call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,11,"|c008B4513Каменный утес|r:")call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,12,"|c00FFFFFFБезмолвие|r:")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,13,"|c00CA2C92Даларан|r:")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,14,"|c000F6145Мертвые зкмли|r:")call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,15,"|c00FF0000Выжженная земля|r:")call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,16,"|c0000FFFFЛедяной трон|r:")call TriggerSleepAction(0.01)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,1,12.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,2,12.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,3,12.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,4,12.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,5,12.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,6,12.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,7,12.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,8,12.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,9,12.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,10,12.00)
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,11,12.00)
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,12,12.00)
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,13,12.00)
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,14,12.00)
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,15,12.00)
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),1,16,12.00)
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),2,1,5.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),2,2,5.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),2,3,5.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),2,4,5.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),2,5,5.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),2,6,5.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),2,7,5.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),2,8,5.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),2,9,5.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),2,10,5.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),2,11,5.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),2,12,5.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),2,13,5.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),2,14,5.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),2,15,5.00)call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),2,16,5.00)call TriggerSleepAction(0.01)call MultiboardSetItemIconBJ(GetLastCreatedMultiboard(),2,1,"ReplaceableTextures\\WorldEditUI\\Editor-MultipleUnits.blp")call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),2,2,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),2,3,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),2,4,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),2,5,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),2,6,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),2,7,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),2,8,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),2,9,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),2,10,true,false)call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),2,11,true,false)call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),2,12,true,false)call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),2,13,true,false)call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),2,14,true,false)call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),2,15,true,false)call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),2,16,true,false)call MultiboardSetItemIconBJ(GetLastCreatedMultiboard(),1,1,"ReplaceableTextures\\CommandButtons\\BTNFarSight.blp")call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,2,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,3,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,4,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,5,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,6,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,7,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,8,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,9,true,false)
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,10,true,false)call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,11,true,false)call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,12,true,false)call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,13,true,false)call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,14,true,false)call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,15,true,false)call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,16,true,false)call TriggerSleepAction(0.01)call MultiboardMinimizeBJ(true,GetLastCreatedMultiboard())endfunctionfunction InitTrig_MB_Create takes nothing returns nothingset gg_trg_MB_Create=CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_MB_Create,0.50)call TriggerAddAction(gg_trg_MB_Create,function Trig_MB_Create_Actions)endfunctionfunction Trig_Tally_Kills_Actions takes nothing returns nothingcall MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,2,I2S((300-udg_Wolf)))call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,3,I2S((300-udg_Troll)))call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,4,I2S((250-udg_MoobS[3])))call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,5,I2S((150-udg_MoobS[1])))call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,6,I2S((300-udg_MoobS[2])))call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,7,I2S((200-udg_MoobS[4])))call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,8,I2S((250-udg_MoobS[6])))call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,9,I2S((300-udg_MoobS[5])))call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,10,I2S((200-udg_MoobS[8])))call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,11,I2S((250-udg_MoobS[9])))call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,12,I2S((350-udg_MoobS[10])))call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,13,I2S((400-udg_MoobS[11])))call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,14,I2S((200-udg_MoobS[12])))call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,15,I2S((200-udg_MoobS[13])))call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,16,I2S((200-udg_MoobS[14])))endfunctionfunction InitTrig_Tally_Kills takes nothing returns nothingset gg_trg_Tally_Kills=CreateTrigger()call TriggerRegisterTimerEventPeriodic(gg_trg_Tally_Kills,0.50)call TriggerAddAction(gg_trg_Tally_Kills,function Trig_Tally_Kills_Actions)endfunctionfunction Trig_Go_Actions takes nothing returns nothingcall KillDestructable(gg_dest_YTcx_9528)
set udg_Timer_celoe[1]=10.00
call DestroyTimerDialog(GetLastCreatedTimerDialogBJ())call CreateTimerDialogBJ(udg_Timer[1],"Вторжение:")
call StartTimerBJ(udg_Timer[1],false,udg_Timer_celoe[1])
call TimerDialogDisplayBJ(true,GetLastCreatedTimerDialogBJ())endfunctionfunction InitTrig_Go takes nothing returns nothingset gg_trg_Go=CreateTrigger()call TriggerRegisterPlayerChatEvent(gg_trg_Go,Player(0),"Go",true)call TriggerRegisterPlayerChatEvent(gg_trg_Go,Player(1),"Go",true)call TriggerRegisterPlayerChatEvent(gg_trg_Go,Player(2),"Go",true)call TriggerRegisterPlayerChatEvent(gg_trg_Go,Player(3),"Go",true)call TriggerRegisterPlayerChatEvent(gg_trg_Go,Player(4),"Go",true)call TriggerRegisterPlayerChatEvent(gg_trg_Go,Player(5),"Go",true)call TriggerAddAction(gg_trg_Go,function Trig_Go_Actions)endfunctionfunction Trig_Ochistka_pamiaty_Func003C takes nothing returns booleanif((IsUnitType(GetDyingUnit(),UNIT_TYPE_SUMMONED)==true))thenreturn trueendifif((GetUnitTypeId(GetDyingUnit())=='u002'))thenreturn trueendifif((GetUnitTypeId(GetDyingUnit())=='u004'))thenreturn trueendifif((GetUnitTypeId(GetDyingUnit())=='u00H'))thenreturn trueendifif((GetUnitTypeId(GetDyingUnit())=='u00A'))thenreturn trueendifif((GetUnitTypeId(GetDyingUnit())=='u00B'))thenreturn trueendifif((GetUnitTypeId(GetDyingUnit())=='u007'))thenreturn trueendifif((GetUnitTypeId(GetDyingUnit())=='u00O'))thenreturn trueendifif((GetUnitTypeId(GetDyingUnit())=='u00J'))thenreturn trueendifif((GetUnitTypeId(GetDyingUnit())=='u00E'))thenreturn trueendifif((GetUnitTypeId(GetDyingUnit())=='u00C'))thenreturn trueendifif((GetUnitTypeId(GetDyingUnit())=='u00F'))thenreturn trueendifif((GetUnitTypeId(GetDyingUnit())=='u00G'))thenreturn trueendifif((GetUnitTypeId(GetDyingUnit())=='u00D'))thenreturn trueendifif((GetUnitTypeId(GetDyingUnit())=='u00I'))thenreturn trueendifif((GetUnitTypeId(GetDyingUnit())=='u009'))thenreturn trueendifif((GetUnitTypeId(GetDyingUnit())=='u016'))thenreturn trueendifif((GetUnitTypeId(GetDyingUnit())=='u015'))thenreturn trueendifif((GetOwningPlayer(GetDyingUnit())==Player(10)))thenreturn trueendifif((GetOwningPlayer(GetDyingUnit())==Player(11)))thenreturn trueendifreturn false
endfunctionfunction Trig_Ochistka_pamiaty_Conditions takes nothing returns booleanif(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==false))thenreturn false
endifif(not Trig_Ochistka_pamiaty_Func003C())then
return false
endifreturn trueendfunctionfunction Trig_Ochistka_pamiaty_Func001Func001C takes nothing returns boolean
if((GetOwningPlayer(GetDyingUnit())==Player(11)))thenreturn trueendifif((GetOwningPlayer(GetDyingUnit())==Player(10)))thenreturn trueendifreturn false
endfunctionfunction Trig_Ochistka_pamiaty_Func001Func004001 takes nothing returns booleanreturn(udg_Kill_Unit_N>=15)endfunctionfunction Trig_Ochistka_pamiaty_Func001C takes nothing returns booleanif(not Trig_Ochistka_pamiaty_Func001Func001C())thenreturn false
endifreturn trueendfunctionfunction Trig_Ochistka_pamiaty_Actions takes nothing returns nothing
if(Trig_Ochistka_pamiaty_Func001C())then
set udg_Kill_Unit_N=(udg_Kill_Unit_N+1)if(Trig_Ochistka_pamiaty_Func001Func004001())thenset udg_Kill_Unit_N=0else
call DoNothing()
endifcall RemoveUnit(udg_Kill_Unit[udg_Kill_Unit_N])set udg_Kill_Unit[udg_Kill_Unit_N]=GetDyingUnit()else
call RemoveUnit(GetDyingUnit())endifendfunctionfunction InitTrig_Ochistka_pamiaty takes nothing returns nothing
set gg_trg_Ochistka_pamiaty=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Ochistka_pamiaty,EVENT_PLAYER_UNIT_DEATH)call TriggerAddCondition(gg_trg_Ochistka_pamiaty,Condition(function Trig_Ochistka_pamiaty_Conditions))call TriggerAddAction(gg_trg_Ochistka_pamiaty,function Trig_Ochistka_pamiaty_Actions)endfunctionfunction Trig_Ohrana_monolit_Func002C takes nothing returns booleanif(not(udg_Random<=2))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Func003C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Func004C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Func005C takes nothing returns booleanif(not(udg_Random==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Func008C takes nothing returns booleanif(not(udg_Random<=1))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Func009C takes nothing returns booleanif(not(udg_Random<=2))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Func010C takes nothing returns booleanif(not(udg_Random<=3))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Func011C takes nothing returns booleanif(not(udg_Random<=4))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Func014C takes nothing returns booleanif(not(udg_Random<=1))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Func015C takes nothing returns booleanif(not(udg_Random<=2))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Func016C takes nothing returns booleanif(not(udg_Random<=3))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Func017C takes nothing returns booleanif(not(udg_Random<=4))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Func020C takes nothing returns booleanif(not(udg_Random<=1))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Func021C takes nothing returns booleanif(not(udg_Random<=2))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Func022C takes nothing returns booleanif(not(udg_Random<=3))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Func023C takes nothing returns booleanif(not(udg_Random<=4))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Func026C takes nothing returns booleanif(not(udg_Random<=1))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Func027C takes nothing returns booleanif(not(udg_Random<=2))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Func028C takes nothing returns booleanif(not(udg_Random<=3))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Func031C takes nothing returns booleanif(not(udg_Random<=1))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Func032C takes nothing returns booleanif(not(udg_Random<=2))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Func033C takes nothing returns booleanif(not(udg_Random<=3))thenreturn false
endifreturn trueendfunctionfunction Trig_Ohrana_monolit_Actions takes nothing returns nothingset udg_Random=GetRandomInt(1,4)
if(Trig_Ohrana_monolit_Func002C())thencall SetUnitPositionLoc(gg_unit_nwwd_0428,GetRandomLocInRect(gg_rct_Zona_4))
else
endifif(Trig_Ohrana_monolit_Func003C())thencall SetUnitPositionLoc(gg_unit_nwwd_0428,GetRandomLocInRect(gg_rct_Zona_7))
else
endifif(Trig_Ohrana_monolit_Func004C())thencall SetUnitPositionLoc(gg_unit_nwwd_0428,GetRandomLocInRect(gg_rct_Zona_8))
else
endifif(Trig_Ohrana_monolit_Func005C())thencall SetUnitPositionLoc(gg_unit_nwwd_0428,GetRandomLocInRect(gg_rct_Zona_5))
else
endifcall TriggerSleepAction(2.00)set udg_Random=GetRandomInt(1,4)
if(Trig_Ohrana_monolit_Func008C())thencall SetUnitPositionLoc(gg_unit_nssp_0432,GetRandomLocInRect(gg_rct_Podzemelie_neruba_1))else
endifif(Trig_Ohrana_monolit_Func009C())thencall SetUnitPositionLoc(gg_unit_nssp_0432,GetRandomLocInRect(gg_rct_Zona_2))
else
endifif(Trig_Ohrana_monolit_Func010C())thencall SetUnitPositionLoc(gg_unit_nssp_0432,GetRandomLocInRect(gg_rct_Zona_8))
else
endifif(Trig_Ohrana_monolit_Func011C())thencall SetUnitPositionLoc(gg_unit_nssp_0432,GetRandomLocInRect(gg_rct_Zona_6))
else
endifcall TriggerSleepAction(2.00)set udg_Random=GetRandomInt(1,4)
if(Trig_Ohrana_monolit_Func014C())thencall SetUnitPositionLoc(gg_unit_nmrm_0429,GetRandomLocInRect(gg_rct_Zona_6))
else
endifif(Trig_Ohrana_monolit_Func015C())thencall SetUnitPositionLoc(gg_unit_nmrm_0429,GetRandomLocInRect(gg_rct_Zona_8))
else
endifif(Trig_Ohrana_monolit_Func016C())thencall SetUnitPositionLoc(gg_unit_nmrm_0429,GetRandomLocInRect(gg_rct_Zona_7))
else
endifif(Trig_Ohrana_monolit_Func017C())thencall SetUnitPositionLoc(gg_unit_nmrm_0429,GetRandomLocInRect(gg_rct_Zona_9))
else
endifcall TriggerSleepAction(2.00)set udg_Random=GetRandomInt(1,4)
if(Trig_Ohrana_monolit_Func020C())thencall SetUnitPositionLoc(gg_unit_nanc_0433,GetRandomLocInRect(gg_rct_Zona_5))
else
endifif(Trig_Ohrana_monolit_Func021C())thencall SetUnitPositionLoc(gg_unit_nanc_0433,GetRandomLocInRect(gg_rct_Zona_3))
else
endifif(Trig_Ohrana_monolit_Func022C())thencall SetUnitPositionLoc(gg_unit_nanc_0433,GetRandomLocInRect(gg_rct_Zona_7))
else
endifif(Trig_Ohrana_monolit_Func023C())thencall SetUnitPositionLoc(gg_unit_nanc_0433,GetRandomLocInRect(gg_rct_Zona_4))
else
endifcall TriggerSleepAction(2.00)set udg_Random=GetRandomInt(1,3)
if(Trig_Ohrana_monolit_Func026C())thencall SetUnitPositionLoc(gg_unit_ntrh_0434,GetRandomLocInRect(gg_rct_Zona_9))
else
endifif(Trig_Ohrana_monolit_Func027C())thencall SetUnitPositionLoc(gg_unit_ntrh_0434,GetRandomLocInRect(gg_rct_Zona_6))
else
endifif(Trig_Ohrana_monolit_Func028C())thencall SetUnitPositionLoc(gg_unit_ntrh_0434,GetRandomLocInRect(gg_rct_Zona_8))
else
endifcall TriggerSleepAction(2.00)set udg_Random=GetRandomInt(1,3)
if(Trig_Ohrana_monolit_Func031C())thencall SetUnitPositionLoc(gg_unit_nhhr_0436,GetRandomLocInRect(gg_rct_Boqnia))
else
endifif(Trig_Ohrana_monolit_Func032C())thencall SetUnitPositionLoc(gg_unit_nhhr_0436,GetRandomLocInRect(gg_rct_Zona_4))
else
endifif(Trig_Ohrana_monolit_Func033C())thencall SetUnitPositionLoc(gg_unit_nhhr_0436,GetRandomLocInRect(gg_rct_Podzemelie_neruba_3))else
endifendfunctionfunction InitTrig_Ohrana_monolit takes nothing returns nothingset gg_trg_Ohrana_monolit=CreateTrigger()call TriggerRegisterTimerEventSingle(gg_trg_Ohrana_monolit,GetRandomReal(1200.00,24000.00))call TriggerAddAction(gg_trg_Ohrana_monolit,function Trig_Ohrana_monolit_Actions)endfunctionfunction Trig_Monolit_1_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Monolit_1_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I062')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Monolit_1_Actions takes nothing returns nothingif(Trig_Monolit_1_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I062'))call DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(2)call SetUnitAnimation(gg_unit_h00J_0423,"stand alternate")call TriggerSleepAction(3.00)call SetUnitColor(gg_unit_h00J_0423,PLAYER_COLOR_BLUE)call TriggerSleepAction(2)call AddLightningLoc("CLPB",GetUnitLoc(gg_unit_h00J_0423),GetUnitLoc(gg_unit_ndmg_0116))
call TriggerSleepAction(3.00)call DestroyLightning(GetLastCreatedLightningBJ())set udg_Timer_celoe[1]=(udg_Timer_celoe[1]+600.00)call DestroyTimerDialog(GetLastCreatedTimerDialogBJ())call CreateTimerDialogBJ(udg_Timer[1],"Вторжение:")
call StartTimerBJ(udg_Timer[1],false,udg_Timer_celoe[1])
call TimerDialogDisplayBJ(true,GetLastCreatedTimerDialogBJ())else
call DisplayTextToForce(GetPlayersAll(),"|c0090ee90На монолите есть изображение волка.|r")
endifendfunctionfunction InitTrig_Monolit_1 takes nothing returns nothingset gg_trg_Monolit_1=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(gg_trg_Monolit_1,256,gg_unit_h00J_0423)call TriggerAddCondition(gg_trg_Monolit_1,Condition(function Trig_Monolit_1_Conditions))
call TriggerAddAction(gg_trg_Monolit_1,function Trig_Monolit_1_Actions)endfunctionfunction Trig_Monolit_2_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Monolit_2_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I063')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Monolit_2_Actions takes nothing returns nothingif(Trig_Monolit_2_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I063'))call DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(2)call SetUnitAnimation(gg_unit_h00J_0422,"stand alternate")call TriggerSleepAction(3.00)call SetUnitColor(gg_unit_h00J_0422,PLAYER_COLOR_RED)call TriggerSleepAction(2)call AddLightningLoc("AFOD",GetUnitLoc(gg_unit_h00J_0422),GetUnitLoc(gg_unit_ndmg_0116))
call TriggerSleepAction(3.00)call DestroyLightning(GetLastCreatedLightningBJ())set udg_Timer_celoe[1]=(udg_Timer_celoe[1]+600.00)call DestroyTimerDialog(GetLastCreatedTimerDialogBJ())call CreateTimerDialogBJ(udg_Timer[1],"Вторжение:")
call StartTimerBJ(udg_Timer[1],false,udg_Timer_celoe[1])
call TimerDialogDisplayBJ(true,GetLastCreatedTimerDialogBJ())else
call DisplayTextToForce(GetPlayersAll(),"|c0090ee90На монолите есть изображение паука.|r")
endifendfunctionfunction InitTrig_Monolit_2 takes nothing returns nothingset gg_trg_Monolit_2=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(gg_trg_Monolit_2,256,gg_unit_h00J_0422)call TriggerAddCondition(gg_trg_Monolit_2,Condition(function Trig_Monolit_2_Conditions))
call TriggerAddAction(gg_trg_Monolit_2,function Trig_Monolit_2_Actions)endfunctionfunction Trig_Monolit_3_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Monolit_3_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I064')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Monolit_3_Actions takes nothing returns nothingif(Trig_Monolit_3_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I064'))call DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(2)call SetUnitAnimation(gg_unit_h00J_0425,"stand alternate")call TriggerSleepAction(3.00)call SetUnitColor(gg_unit_h00J_0425,PLAYER_COLOR_PURPLE)
call TriggerSleepAction(2)call AddLightningLoc("MFPB",GetUnitLoc(gg_unit_h00J_0422),GetUnitLoc(gg_unit_ndmg_0116))
call TriggerSleepAction(3.00)call DestroyLightning(GetLastCreatedLightningBJ())set udg_Timer_celoe[1]=(udg_Timer_celoe[1]+600.00)call DestroyTimerDialog(GetLastCreatedTimerDialogBJ())call CreateTimerDialogBJ(udg_Timer[1],"Вторжение:")
call StartTimerBJ(udg_Timer[1],false,udg_Timer_celoe[1])
call TimerDialogDisplayBJ(true,GetLastCreatedTimerDialogBJ())else
call DisplayTextToForce(GetPlayersAll(),"|c0090ee90На монолите есть изображение морлока.|r")
endifendfunctionfunction InitTrig_Monolit_3 takes nothing returns nothingset gg_trg_Monolit_3=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(gg_trg_Monolit_3,256,gg_unit_h00J_0425)call TriggerAddCondition(gg_trg_Monolit_3,Condition(function Trig_Monolit_3_Conditions))
call TriggerAddAction(gg_trg_Monolit_3,function Trig_Monolit_3_Actions)endfunctionfunction Trig_Monolit_4_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Monolit_4_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I065')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Monolit_4_Actions takes nothing returns nothingif(Trig_Monolit_4_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I065'))call DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(2)call SetUnitAnimation(gg_unit_h00J_0424,"stand alternate")call TriggerSleepAction(3.00)call SetUnitColor(gg_unit_h00J_0424,PLAYER_COLOR_YELLOW)
call TriggerSleepAction(2)call AddLightningLoc("HWPB",GetUnitLoc(gg_unit_h00J_0424),GetUnitLoc(gg_unit_ndmg_0116))
call TriggerSleepAction(3.00)call DestroyLightning(GetLastCreatedLightningBJ())set udg_Timer_celoe[1]=(udg_Timer_celoe[1]+600.00)call DestroyTimerDialog(GetLastCreatedTimerDialogBJ())call CreateTimerDialogBJ(udg_Timer[1],"Вторжение:")
call StartTimerBJ(udg_Timer[1],false,udg_Timer_celoe[1])
call TimerDialogDisplayBJ(true,GetLastCreatedTimerDialogBJ())else
call DisplayTextToForce(GetPlayersAll(),"|c0090ee90На монолите есть изображение скорпиона.|r")
endifendfunctionfunction InitTrig_Monolit_4 takes nothing returns nothingset gg_trg_Monolit_4=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(gg_trg_Monolit_4,256,gg_unit_h00J_0424)call TriggerAddCondition(gg_trg_Monolit_4,Condition(function Trig_Monolit_4_Conditions))
call TriggerAddAction(gg_trg_Monolit_4,function Trig_Monolit_4_Actions)endfunctionfunction Trig_Monolit_5_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Monolit_5_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I066')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Monolit_5_Actions takes nothing returns nothingif(Trig_Monolit_5_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I066'))call DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(2)call SetUnitAnimation(gg_unit_h00J_0427,"stand alternate")call TriggerSleepAction(3.00)call SetUnitColor(gg_unit_h00J_0427,PLAYER_COLOR_CYAN)call TriggerSleepAction(2)call AddLightningLoc("MFPB",GetUnitLoc(gg_unit_h00J_0427),GetUnitLoc(gg_unit_ndmg_0116))
call TriggerSleepAction(3.00)call DestroyLightning(GetLastCreatedLightningBJ())set udg_Timer_celoe[1]=(udg_Timer_celoe[1]+600.00)call DestroyTimerDialog(GetLastCreatedTimerDialogBJ())call CreateTimerDialogBJ(udg_Timer[1],"Вторжение:")
call StartTimerBJ(udg_Timer[1],false,udg_Timer_celoe[1])
call TimerDialogDisplayBJ(true,GetLastCreatedTimerDialogBJ())else
call DisplayTextToForce(GetPlayersAll(),"|c0090ee90На монолите есть изображение черепахи.|r")endifendfunctionfunction InitTrig_Monolit_5 takes nothing returns nothingset gg_trg_Monolit_5=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(gg_trg_Monolit_5,256,gg_unit_h00J_0427)call TriggerAddCondition(gg_trg_Monolit_5,Condition(function Trig_Monolit_5_Conditions))
call TriggerAddAction(gg_trg_Monolit_5,function Trig_Monolit_5_Actions)endfunctionfunction Trig_Monolit_6_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Monolit_6_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I067')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Monolit_6_Actions takes nothing returns nothingif(Trig_Monolit_6_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I067'))call DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(2)call SetUnitAnimation(gg_unit_h00J_0426,"stand alternate")call TriggerSleepAction(3.00)call SetUnitColor(gg_unit_h00J_0426,PLAYER_COLOR_AQUA)call TriggerSleepAction(2)call AddLightningLoc("MBUR",GetUnitLoc(gg_unit_h00J_0426),GetUnitLoc(gg_unit_ndmg_0116))
call TriggerSleepAction(3.00)call DestroyLightning(GetLastCreatedLightningBJ())set udg_Timer_celoe[1]=(udg_Timer_celoe[1]+600.00)call DestroyTimerDialog(GetLastCreatedTimerDialogBJ())call CreateTimerDialogBJ(udg_Timer[1],"Вторжение:")
call StartTimerBJ(udg_Timer[1],false,udg_Timer_celoe[1])
call TimerDialogDisplayBJ(true,GetLastCreatedTimerDialogBJ())else
call DisplayTextToForce(GetPlayersAll(),"|c0090ee90На монолите есть изображение монаха.|r")endifendfunctionfunction InitTrig_Monolit_6 takes nothing returns nothingset gg_trg_Monolit_6=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(gg_trg_Monolit_6,256,gg_unit_h00J_0426)call TriggerAddCondition(gg_trg_Monolit_6,Condition(function Trig_Monolit_6_Conditions))
call TriggerAddAction(gg_trg_Monolit_6,function Trig_Monolit_6_Actions)endfunctionfunction Trig_Prizrachniy_lord_Conditions takes nothing returns booleanif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Prizrachniy_lord_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'azhr')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I08O')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Prizrachniy_lord_Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'azhr')==true))thenreturn false
endifif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I08O')==false))then
return false
endifreturn trueendfunctionfunction Trig_Prizrachniy_lord_Actions takes nothing returns nothing
if(Trig_Prizrachniy_lord_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'azhr'))call DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(2)call DisplayTextToForce(GetPlayersAll(),"|c0090ee90Призрачный лорд вернулся в наш мир!|r")call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Prizrachniy_lord),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")
call TriggerSleepAction(2)call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Prizrachniy_lord),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")
call TriggerSleepAction(2)call CreateNUnitsAtLoc(1,'nmcf',Player(11),GetRectCenter(gg_rct_Prizrachniy_lord),bj_UNIT_FACING)else
call DisplayTextToForce(GetPlayersAll(),"|c0090ee90На статуи есть надпись:|r Лишь чистое сердце принесенное в жертву вернет меня из пустоты.")endifif(Trig_Prizrachniy_lord_Func002C())then
call DisplayTextToForce(GetPlayersAll(),"|c0090ee90Вам необходим жертвенный кинжал.|r")else
endifendfunctionfunction InitTrig_Prizrachniy_lord takes nothing returns nothing
set gg_trg_Prizrachniy_lord=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Prizrachniy_lord,gg_rct_Prizrachniy_lord)
call TriggerAddCondition(gg_trg_Prizrachniy_lord,Condition(function Trig_Prizrachniy_lord_Conditions))call TriggerAddAction(gg_trg_Prizrachniy_lord,function Trig_Prizrachniy_lord_Actions)endfunctionfunction Trig_Monah_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Monah_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'ledg')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Monah_Actions takes nothing returns nothingif(Trig_Monah_Func001C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'ledg'))call DisableTrigger(GetTriggeringTrigger())call TriggerSleepAction(2)call DisplayTextToForce(GetPlayersAll(),"|c0090ee90Свет белой луны пролился на алтарь!|r")call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Monah),"Abilities\\Spells\\NightElf\\Starfall\\StarfallCaster.mdl")call TriggerSleepAction(2)call TriggerSleepAction(2)call CreateNUnitsAtLoc(1,'n00U',Player(11),GetRectCenter(gg_rct_Monah),bj_UNIT_FACING)else
call DisplayTextToForce(GetPlayersAll(),"|c0090ee90На статуи есть надпись:|r Лишь при свете белой луны можно увидеть заблудшего монаха.")endifendfunctionfunction InitTrig_Monah takes nothing returns nothingset gg_trg_Monah=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Monah,gg_rct_Monah)call TriggerAddCondition(gg_trg_Monah,Condition(function Trig_Monah_Conditions))
call TriggerAddAction(gg_trg_Monah,function Trig_Monah_Actions)endfunctionfunction Trig_Timer_inicializaciya_Func006001 takes nothing returns booleanreturn(udg_Random==1)endfunctionfunction Trig_Timer_inicializaciya_Func007001 takes nothing returns booleanreturn(udg_Random==2)endfunctionfunction Trig_Timer_inicializaciya_Func008001 takes nothing returns booleanreturn(udg_Random==3)endfunctionfunction Trig_Timer_inicializaciya_Func009001 takes nothing returns booleanreturn(udg_Random==4)endfunctionfunction Trig_Timer_inicializaciya_Func010001 takes nothing returns booleanreturn(udg_Random==5)endfunctionfunction Trig_Timer_inicializaciya_Func011001 takes nothing returns booleanreturn(udg_Random==6)endfunctionfunction Trig_Timer_inicializaciya_Func012001 takes nothing returns booleanreturn(udg_Random==7)endfunctionfunction Trig_Timer_inicializaciya_Func013001 takes nothing returns booleanreturn(udg_Random==8)endfunctionfunction Trig_Timer_inicializaciya_Func014001 takes nothing returns booleanreturn(udg_Random==9)endfunctionfunction Trig_Timer_inicializaciya_Func015001 takes nothing returns booleanreturn(udg_Random==10)endfunctionfunction Trig_Timer_inicializaciya_Func016001 takes nothing returns booleanreturn(udg_Random==11)endfunctionfunction Trig_Timer_inicializaciya_Func017001 takes nothing returns booleanreturn(udg_Random==12)endfunctionfunction Trig_Timer_inicializaciya_Func018001 takes nothing returns booleanreturn(udg_Random==13)endfunctionfunction Trig_Timer_inicializaciya_Func019001 takes nothing returns booleanreturn(udg_Random==14)endfunctionfunction Trig_Timer_inicializaciya_Func020001 takes nothing returns booleanreturn(udg_Random==15)endfunctionfunction Trig_Timer_inicializaciya_Func028001 takes nothing returns booleanreturn(udg_Random==1)endfunctionfunction Trig_Timer_inicializaciya_Func029001 takes nothing returns booleanreturn(udg_Random==2)endfunctionfunction Trig_Timer_inicializaciya_Func030001 takes nothing returns booleanreturn(udg_Random==3)endfunctionfunction Trig_Timer_inicializaciya_Func031001 takes nothing returns booleanreturn(udg_Random==4)endfunctionfunction Trig_Timer_inicializaciya_Func032001 takes nothing returns booleanreturn(udg_Random==5)endfunctionfunction Trig_Timer_inicializaciya_Func033001 takes nothing returns booleanreturn(udg_Random==6)endfunctionfunction Trig_Timer_inicializaciya_Func034001 takes nothing returns booleanreturn(udg_Random==7)endfunctionfunction Trig_Timer_inicializaciya_Func035001 takes nothing returns booleanreturn(udg_Random==8)endfunctionfunction Trig_Timer_inicializaciya_Func036001 takes nothing returns booleanreturn(udg_Random==9)endfunctionfunction Trig_Timer_inicializaciya_Func037001 takes nothing returns booleanreturn(udg_Random==10)endfunctionfunction Trig_Timer_inicializaciya_Func038001 takes nothing returns booleanreturn(udg_Random==11)endfunctionfunction Trig_Timer_inicializaciya_Func039001 takes nothing returns booleanreturn(udg_Random==12)endfunctionfunction Trig_Timer_inicializaciya_Func040001 takes nothing returns booleanreturn(udg_Random==13)endfunctionfunction Trig_Timer_inicializaciya_Func041001 takes nothing returns booleanreturn(udg_Random==14)endfunctionfunction Trig_Timer_inicializaciya_Func042001 takes nothing returns booleanreturn(udg_Random==15)endfunctionfunction Trig_Timer_inicializaciya_Func045001 takes nothing returns booleanreturn(udg_Random==1)endfunctionfunction Trig_Timer_inicializaciya_Func046001 takes nothing returns booleanreturn(udg_Random==2)endfunctionfunction Trig_Timer_inicializaciya_Func047001 takes nothing returns booleanreturn(udg_Random==3)endfunctionfunction Trig_Timer_inicializaciya_Func048001 takes nothing returns booleanreturn(udg_Random==4)endfunctionfunction Trig_Timer_inicializaciya_Func049001 takes nothing returns booleanreturn(udg_Random==5)endfunctionfunction Trig_Timer_inicializaciya_Func050001 takes nothing returns booleanreturn(udg_Random==6)endfunctionfunction Trig_Timer_inicializaciya_Func051001 takes nothing returns booleanreturn(udg_Random==7)endfunctionfunction Trig_Timer_inicializaciya_Func052001 takes nothing returns booleanreturn(udg_Random==8)endfunctionfunction Trig_Timer_inicializaciya_Func053001 takes nothing returns booleanreturn(udg_Random==9)endfunctionfunction Trig_Timer_inicializaciya_Func054001 takes nothing returns booleanreturn(udg_Random==10)endfunctionfunction Trig_Timer_inicializaciya_Func055001 takes nothing returns booleanreturn(udg_Random==11)endfunctionfunction Trig_Timer_inicializaciya_Func056001 takes nothing returns booleanreturn(udg_Random==12)endfunctionfunction Trig_Timer_inicializaciya_Func057001 takes nothing returns booleanreturn(udg_Random==13)endfunctionfunction Trig_Timer_inicializaciya_Func058001 takes nothing returns booleanreturn(udg_Random==14)endfunctionfunction Trig_Timer_inicializaciya_Func059001 takes nothing returns booleanreturn(udg_Random==15)endfunctionfunction Trig_Timer_inicializaciya_Func062001 takes nothing returns booleanreturn(udg_Random==1)endfunctionfunction Trig_Timer_inicializaciya_Func063001 takes nothing returns booleanreturn(udg_Random==2)endfunctionfunction Trig_Timer_inicializaciya_Func064001 takes nothing returns booleanreturn(udg_Random==3)endfunctionfunction Trig_Timer_inicializaciya_Func065001 takes nothing returns booleanreturn(udg_Random==4)endfunctionfunction Trig_Timer_inicializaciya_Func066001 takes nothing returns booleanreturn(udg_Random==5)endfunctionfunction Trig_Timer_inicializaciya_Func067001 takes nothing returns booleanreturn(udg_Random==6)endfunctionfunction Trig_Timer_inicializaciya_Func068001 takes nothing returns booleanreturn(udg_Random==7)endfunctionfunction Trig_Timer_inicializaciya_Func069001 takes nothing returns booleanreturn(udg_Random==8)endfunctionfunction Trig_Timer_inicializaciya_Func070001 takes nothing returns booleanreturn(udg_Random==9)endfunctionfunction Trig_Timer_inicializaciya_Func071001 takes nothing returns booleanreturn(udg_Random==10)endfunctionfunction Trig_Timer_inicializaciya_Func072001 takes nothing returns booleanreturn(udg_Random==11)endfunctionfunction Trig_Timer_inicializaciya_Func073001 takes nothing returns booleanreturn(udg_Random==12)endfunctionfunction Trig_Timer_inicializaciya_Func074001 takes nothing returns booleanreturn(udg_Random==13)endfunctionfunction Trig_Timer_inicializaciya_Func075001 takes nothing returns booleanreturn(udg_Random==14)endfunctionfunction Trig_Timer_inicializaciya_Func076001 takes nothing returns booleanreturn(udg_Random==15)endfunctionfunction Trig_Timer_inicializaciya_Func079001 takes nothing returns booleanreturn(udg_Random==1)endfunctionfunction Trig_Timer_inicializaciya_Func080001 takes nothing returns booleanreturn(udg_Random==2)endfunctionfunction Trig_Timer_inicializaciya_Func081001 takes nothing returns booleanreturn(udg_Random==3)endfunctionfunction Trig_Timer_inicializaciya_Func082001 takes nothing returns booleanreturn(udg_Random==4)endfunctionfunction Trig_Timer_inicializaciya_Func083001 takes nothing returns booleanreturn(udg_Random==5)endfunctionfunction Trig_Timer_inicializaciya_Func084001 takes nothing returns booleanreturn(udg_Random==6)endfunctionfunction Trig_Timer_inicializaciya_Func085001 takes nothing returns booleanreturn(udg_Random==7)endfunctionfunction Trig_Timer_inicializaciya_Func086001 takes nothing returns booleanreturn(udg_Random==8)endfunctionfunction Trig_Timer_inicializaciya_Func087001 takes nothing returns booleanreturn(udg_Random==9)endfunctionfunction Trig_Timer_inicializaciya_Func088001 takes nothing returns booleanreturn(udg_Random==10)endfunctionfunction Trig_Timer_inicializaciya_Func089001 takes nothing returns booleanreturn(udg_Random==11)endfunctionfunction Trig_Timer_inicializaciya_Func090001 takes nothing returns booleanreturn(udg_Random==12)endfunctionfunction Trig_Timer_inicializaciya_Func091001 takes nothing returns booleanreturn(udg_Random==13)endfunctionfunction Trig_Timer_inicializaciya_Func092001 takes nothing returns booleanreturn(udg_Random==14)endfunctionfunction Trig_Timer_inicializaciya_Func093001 takes nothing returns booleanreturn(udg_Random==15)endfunctionfunction Trig_Timer_inicializaciya_Func096001 takes nothing returns booleanreturn(udg_Random==1)endfunctionfunction Trig_Timer_inicializaciya_Func097001 takes nothing returns booleanreturn(udg_Random==2)endfunctionfunction Trig_Timer_inicializaciya_Func098001 takes nothing returns booleanreturn(udg_Random==3)endfunctionfunction Trig_Timer_inicializaciya_Func099001 takes nothing returns booleanreturn(udg_Random==4)endfunctionfunction Trig_Timer_inicializaciya_Func100001 takes nothing returns booleanreturn(udg_Random==5)endfunctionfunction Trig_Timer_inicializaciya_Func101001 takes nothing returns booleanreturn(udg_Random==6)endfunctionfunction Trig_Timer_inicializaciya_Func102001 takes nothing returns booleanreturn(udg_Random==7)endfunctionfunction Trig_Timer_inicializaciya_Func103001 takes nothing returns booleanreturn(udg_Random==8)endfunctionfunction Trig_Timer_inicializaciya_Func104001 takes nothing returns booleanreturn(udg_Random==9)endfunctionfunction Trig_Timer_inicializaciya_Func105001 takes nothing returns booleanreturn(udg_Random==10)endfunctionfunction Trig_Timer_inicializaciya_Func106001 takes nothing returns booleanreturn(udg_Random==11)endfunctionfunction Trig_Timer_inicializaciya_Func107001 takes nothing returns booleanreturn(udg_Random==12)endfunctionfunction Trig_Timer_inicializaciya_Func108001 takes nothing returns booleanreturn(udg_Random==13)endfunctionfunction Trig_Timer_inicializaciya_Func109001 takes nothing returns booleanreturn(udg_Random==14)endfunctionfunction Trig_Timer_inicializaciya_Func110001 takes nothing returns booleanreturn(udg_Random==15)endfunctionfunction Trig_Timer_inicializaciya_Func113001 takes nothing returns booleanreturn(udg_Random==1)endfunctionfunction Trig_Timer_inicializaciya_Func114001 takes nothing returns booleanreturn(udg_Random==2)endfunctionfunction Trig_Timer_inicializaciya_Func115001 takes nothing returns booleanreturn(udg_Random==3)endfunctionfunction Trig_Timer_inicializaciya_Func116001 takes nothing returns booleanreturn(udg_Random==4)endfunctionfunction Trig_Timer_inicializaciya_Func117001 takes nothing returns booleanreturn(udg_Random==5)endfunctionfunction Trig_Timer_inicializaciya_Func118001 takes nothing returns booleanreturn(udg_Random==6)endfunctionfunction Trig_Timer_inicializaciya_Func119001 takes nothing returns booleanreturn(udg_Random==7)endfunctionfunction Trig_Timer_inicializaciya_Func120001 takes nothing returns booleanreturn(udg_Random==8)endfunctionfunction Trig_Timer_inicializaciya_Func121001 takes nothing returns booleanreturn(udg_Random==9)endfunctionfunction Trig_Timer_inicializaciya_Func122001 takes nothing returns booleanreturn(udg_Random==10)endfunctionfunction Trig_Timer_inicializaciya_Func123001 takes nothing returns booleanreturn(udg_Random==11)endfunctionfunction Trig_Timer_inicializaciya_Func124001 takes nothing returns booleanreturn(udg_Random==12)endfunctionfunction Trig_Timer_inicializaciya_Func125001 takes nothing returns booleanreturn(udg_Random==13)endfunctionfunction Trig_Timer_inicializaciya_Func126001 takes nothing returns booleanreturn(udg_Random==14)endfunctionfunction Trig_Timer_inicializaciya_Func127001 takes nothing returns booleanreturn(udg_Random==15)endfunctionfunction Trig_Timer_inicializaciya_Actions takes nothing returns nothing
set udg_Timer_celoe[1]=7200.00call CreateTimerDialogBJ(udg_Timer[1],"Вторжение:")
call StartTimerBJ(udg_Timer[1],false,udg_Timer_celoe[1])
call TimerDialogDisplayBJ(true,GetLastCreatedTimerDialogBJ())set udg_Random=GetRandomInt(1,15)if(Trig_Timer_inicializaciya_Func006001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Elfy),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func007001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Prokliatie_Elfy),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func008001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func009001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func010001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func011001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func012001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func013001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func014001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func015001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func016001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func017001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Podzemelie_neruba_2),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func018001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_9),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func019001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func020001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Orda),bj_UNIT_FACING)else
call DoNothing()
endifcall TriggerSleepAction(0.10)call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_1))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_1))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_1))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_1))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_1))
set udg_Random=GetRandomInt(1,15)if(Trig_Timer_inicializaciya_Func028001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Elfy),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func029001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Prokliatie_Elfy),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func030001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func031001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func032001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func033001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func034001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func035001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func036001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func037001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func038001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func039001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Podzemelie_neruba_2),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func040001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_9),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func041001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func042001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Orda),bj_UNIT_FACING)else
call DoNothing()
endifcall TriggerSleepAction(0.10)set udg_Random=GetRandomInt(1,15)if(Trig_Timer_inicializaciya_Func045001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Elfy),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func046001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Prokliatie_Elfy),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func047001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func048001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func049001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func050001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func051001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func052001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func053001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func054001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func055001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func056001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Podzemelie_neruba_2),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func057001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_9),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func058001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func059001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Orda),bj_UNIT_FACING)else
call DoNothing()
endifcall TriggerSleepAction(0.10)set udg_Random=GetRandomInt(1,15)if(Trig_Timer_inicializaciya_Func062001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Elfy),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func063001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Prokliatie_Elfy),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func064001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func065001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func066001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func067001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func068001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func069001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func070001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func071001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func072001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func073001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Podzemelie_neruba_2),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func074001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_9),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func075001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func076001())thencall CreateNUnitsAtLoc(1,'h00L',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Orda),bj_UNIT_FACING)else
call DoNothing()
endifcall TriggerSleepAction(0.10)set udg_Random=GetRandomInt(1,15)if(Trig_Timer_inicializaciya_Func079001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Elfy),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func080001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Prokliatie_Elfy),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func081001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func082001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func083001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func084001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func085001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func086001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func087001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func088001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func089001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func090001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Podzemelie_neruba_2),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func091001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_9),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func092001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func093001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Orda),bj_UNIT_FACING)else
call DoNothing()
endifcall TriggerSleepAction(0.10)set udg_Random=GetRandomInt(1,15)if(Trig_Timer_inicializaciya_Func096001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Elfy),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func097001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Prokliatie_Elfy),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func098001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func099001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func100001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func101001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func102001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func103001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func104001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func105001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func106001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func107001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Podzemelie_neruba_2),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func108001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_9),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func109001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func110001())thencall CreateNUnitsAtLoc(1,'h00M',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Orda),bj_UNIT_FACING)else
call DoNothing()
endifcall TriggerSleepAction(0.10)set udg_Random=GetRandomInt(1,15)if(Trig_Timer_inicializaciya_Func113001())thencall CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Elfy),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func114001())thencall CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Prokliatie_Elfy),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func115001())thencall CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_8),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func116001())thencall CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_7),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func117001())thencall CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Kladbishe),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func118001())thencall CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Derevnia),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func119001())thencall CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_1),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func120001())thencall CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_2),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func121001())thencall CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func122001())thencall CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_3),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func123001())thencall CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Podzemelie_neruba_1),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func124001())thencall CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Podzemelie_neruba_2),bj_UNIT_FACING)else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func125001())thencall CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_9),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func126001())thencall CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Zona_5),bj_UNIT_FACING)
else
call DoNothing()
endifif(Trig_Timer_inicializaciya_Func127001())thencall CreateNUnitsAtLoc(1,'h00K',Player(PLAYER_NEUTRAL_PASSIVE),GetRandomLocInRect(gg_rct_Orda),bj_UNIT_FACING)else
call DoNothing()
endifcall TriggerSleepAction(360.00)call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_1))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_1))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_1))
call CreateItemLoc('pams',GetRandomLocInRect(gg_rct_Zona_1))
call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_5))
call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_5))
call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_5))
call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_5))
call CreateItemLoc('dust',GetRandomLocInRect(gg_rct_Zona_5))
call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_8))
call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_8))
call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_8))
call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_8))
call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_8))
call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_8))
call TriggerSleepAction(720.00)call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_8))
call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_8))
call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_8))
call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_8))
call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_8))
call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_8))
call CreateItemLoc('rej2',GetRandomLocInRect(gg_rct_Zona_8))
endfunctionfunction InitTrig_Timer_inicializaciya takes nothing returns nothing
set gg_trg_Timer_inicializaciya=CreateTrigger()call TriggerRegisterTimerEventSingle(gg_trg_Timer_inicializaciya,0.50)call TriggerAddAction(gg_trg_Timer_inicializaciya,function Trig_Timer_inicializaciya_Actions)endfunctionfunction Trig_Timer_sec_Actions takes nothing returns nothingset udg_Timer_celoe[1]=(udg_Timer_celoe[1]-1)endfunctionfunction InitTrig_Timer_sec takes nothing returns nothingset gg_trg_Timer_sec=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(gg_trg_Timer_sec,1.00)call TriggerAddAction(gg_trg_Timer_sec,function Trig_Timer_sec_Actions)endfunctionfunction Trig_Timer_Func005C takes nothing returns booleanif(not(udg_Chanse==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Timer_Func006C takes nothing returns booleanif(not(udg_Chanse==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Timer_Actions takes nothing returns nothingcall DestroyTimerDialog(GetLastCreatedTimerDialogBJ())call ModifyGateBJ(bj_GATEOPERATION_OPEN,gg_dest_ATg4_2401)call TriggerSleepAction(30.00)set udg_Chanse=GetRandomInt(1,2)
if(Trig_Timer_Func005C())thencall TriggerExecute(gg_trg_Attack_1)
else
endifif(Trig_Timer_Func006C())thencall DisplayTextToForce(GetPlayersAll(),"|c00FF0000Уничтожте врата в преисподнию!|r")call PingMinimapLocForForce(GetPlayersAll(),GetRectCenter(gg_rct_Mobs_Attack_2),15.00)call TriggerExecute(gg_trg_Attak_Legion)
call RemoveUnit(gg_unit_uzg1_0251)call RemoveUnit(gg_unit_uzg1_0252)call RemoveUnit(gg_unit_uzg1_0690)call RemoveUnit(gg_unit_uzg1_0689)call RemoveUnit(gg_unit_usep_0253)call SetUnitPositionLoc(gg_unit_usap_0785,GetRectCenter(gg_rct_Mobs_Attack_2))call CreateNUnitsAtLoc(1,'nft1',Player(11),GetRandomLocInRect(gg_rct_Altar_mmalganusa),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nft1',Player(11),GetRandomLocInRect(gg_rct_Altar_mmalganusa),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nft1',Player(11),GetRandomLocInRect(gg_rct_Altar_mmalganusa),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nft1',Player(11),GetRandomLocInRect(gg_rct_Altar_mmalganusa),bj_UNIT_FACING)call UnitAddAbilityBJ('A0EN',gg_unit_usap_0785)call TriggerSleepAction(2)call SetUnitPositionLoc(gg_unit_usap_0785,GetRectCenter(gg_rct_Mobs_Attack_2))else
endifendfunctionfunction InitTrig_Timer takes nothing returns nothingset gg_trg_Timer=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(gg_trg_Timer,udg_Timer[1])call TriggerAddAction(gg_trg_Timer,function Trig_Timer_Actions)endfunctionfunction Trig_Portal_Elfy_1_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Portal_Elfy_1_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Portal_Elfy_2)call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Portal_Elfy_2),0)call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Portal_Elfy_1),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Portal_Elfy_2),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Portal_Elfy_2))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Portal_Elfy_2)
endfunctionfunction InitTrig_Portal_Elfy_1 takes nothing returns nothingset gg_trg_Portal_Elfy_1=CreateTrigger()
call DisableTrigger(gg_trg_Portal_Elfy_1)call TriggerRegisterEnterRectSimple(gg_trg_Portal_Elfy_1,gg_rct_Portal_Elfy_1)call TriggerAddCondition(gg_trg_Portal_Elfy_1,Condition(function Trig_Portal_Elfy_1_Conditions))
call TriggerAddAction(gg_trg_Portal_Elfy_1,function Trig_Portal_Elfy_1_Actions)endfunctionfunction Trig_Portal_Elfy_2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Portal_Elfy_2_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Portal_Elfy_1)call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Portal_Elfy_2),0)call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Portal_Elfy_1),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Portal_Elfy_2),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Portal_Elfy_1))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Portal_Elfy_1)
endfunctionfunction InitTrig_Portal_Elfy_2 takes nothing returns nothingset gg_trg_Portal_Elfy_2=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Portal_Elfy_2,gg_rct_Portal_Elfy_2)call TriggerAddCondition(gg_trg_Portal_Elfy_2,Condition(function Trig_Portal_Elfy_2_Conditions))
call TriggerAddAction(gg_trg_Portal_Elfy_2,function Trig_Portal_Elfy_2_Actions)endfunctionfunction Trig_Portal_Orcy_1_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Portal_Orcy_1_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Portal_Orcy_2)call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Portal_Orky_2),0)call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Portal_Orky_1),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Portal_Orky_2),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Portal_Orky_2))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Portal_Orcy_2)
endfunctionfunction InitTrig_Portal_Orcy_1 takes nothing returns nothingset gg_trg_Portal_Orcy_1=CreateTrigger()
call DisableTrigger(gg_trg_Portal_Orcy_1)call TriggerRegisterEnterRectSimple(gg_trg_Portal_Orcy_1,gg_rct_Portal_Orky_1)call TriggerAddCondition(gg_trg_Portal_Orcy_1,Condition(function Trig_Portal_Orcy_1_Conditions))
call TriggerAddAction(gg_trg_Portal_Orcy_1,function Trig_Portal_Orcy_1_Actions)endfunctionfunction Trig_Portal_Orcy_2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Portal_Orcy_2_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Portal_Orcy_1)call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Portal_Orky_1),0)call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Portal_Orky_1),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Portal_Orky_2),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Portal_Orky_1))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Portal_Orcy_1)
endfunctionfunction InitTrig_Portal_Orcy_2 takes nothing returns nothingset gg_trg_Portal_Orcy_2=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Portal_Orcy_2,gg_rct_Portal_Orky_2)call TriggerAddCondition(gg_trg_Portal_Orcy_2,Condition(function Trig_Portal_Orcy_2_Conditions))
call TriggerAddAction(gg_trg_Portal_Orcy_2,function Trig_Portal_Orcy_2_Actions)endfunctionfunction Trig_Portal_Derevny_1_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Portal_Derevny_1_Actions takes nothing returns nothing
call DisableTrigger(gg_trg_Portal_Derevny_2)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Portal_Derevny_2),0)call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Portal_Derevny_1),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Portal_Derevny_2),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Portal_Derevny_2))
call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Portal_Derevny_2)endfunctionfunction InitTrig_Portal_Derevny_1 takes nothing returns nothing
set gg_trg_Portal_Derevny_1=CreateTrigger()call DisableTrigger(gg_trg_Portal_Derevny_1)
call TriggerRegisterEnterRectSimple(gg_trg_Portal_Derevny_1,gg_rct_Portal_Derevny_1)
call TriggerAddCondition(gg_trg_Portal_Derevny_1,Condition(function Trig_Portal_Derevny_1_Conditions))call TriggerAddAction(gg_trg_Portal_Derevny_1,function Trig_Portal_Derevny_1_Actions)endfunctionfunction Trig_Portal_Derevny_2_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Portal_Derevny_2_Actions takes nothing returns nothing
call DisableTrigger(gg_trg_Portal_Derevny_1)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Portal_Derevny_1),0)call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Portal_Derevny_1),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Portal_Derevny_2),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Portal_Derevny_1))
call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Portal_Derevny_1)endfunctionfunction InitTrig_Portal_Derevny_2 takes nothing returns nothing
set gg_trg_Portal_Derevny_2=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Portal_Derevny_2,gg_rct_Portal_Derevny_2)
call TriggerAddCondition(gg_trg_Portal_Derevny_2,Condition(function Trig_Portal_Derevny_2_Conditions))call TriggerAddAction(gg_trg_Portal_Derevny_2,function Trig_Portal_Derevny_2_Actions)endfunctionfunction Trig_Portal_Mediv_1_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Portal_Mediv_1_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Portal_Mediv_2)call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Portal_Mediv_2),0)call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Portal_Mediv_1),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Portal_Mediv_2),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Portal_Mediv_2))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Portal_Mediv_2)endfunctionfunction InitTrig_Portal_Mediv_1 takes nothing returns nothingset gg_trg_Portal_Mediv_1=CreateTrigger()call DisableTrigger(gg_trg_Portal_Mediv_1)call TriggerRegisterEnterRectSimple(gg_trg_Portal_Mediv_1,gg_rct_Portal_Mediv_1)
call TriggerAddCondition(gg_trg_Portal_Mediv_1,Condition(function Trig_Portal_Mediv_1_Conditions))call TriggerAddAction(gg_trg_Portal_Mediv_1,function Trig_Portal_Mediv_1_Actions)endfunctionfunction Trig_Portal_Mediv_2_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Portal_Mediv_2_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Portal_Mediv_1)call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Portal_Mediv_1),0)call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Portal_Mediv_1),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Portal_Mediv_2),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Portal_Mediv_1))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Portal_Mediv_1)endfunctionfunction InitTrig_Portal_Mediv_2 takes nothing returns nothingset gg_trg_Portal_Mediv_2=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Portal_Mediv_2,gg_rct_Portal_Mediv_2)
call TriggerAddCondition(gg_trg_Portal_Mediv_2,Condition(function Trig_Portal_Mediv_2_Conditions))call TriggerAddAction(gg_trg_Portal_Mediv_2,function Trig_Portal_Mediv_2_Actions)endfunctionfunction Trig_Peshera_Dalaran_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifreturn trueendfunctionfunction Trig_Peshera_Dalaran_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Peshera_Dalaran_2)call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Peshera_Dalaran_2),0)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Peshera_Dalaran_2))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Peshera_Dalaran_2)
endfunctionfunction InitTrig_Peshera_Dalaran takes nothing returns nothingset gg_trg_Peshera_Dalaran=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Peshera_Dalaran,gg_rct_Peshera_Dalaran)call TriggerAddCondition(gg_trg_Peshera_Dalaran,Condition(function Trig_Peshera_Dalaran_Conditions))
call TriggerAddAction(gg_trg_Peshera_Dalaran,function Trig_Peshera_Dalaran_Actions)endfunctionfunction Trig_Peshera_Dalaran_2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifreturn trueendfunctionfunction Trig_Peshera_Dalaran_2_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Biblioteka_Dalarana)call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Peshera_Dalaran),0)
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Peshera_Dalaran))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Peshera_Dalaran)endfunctionfunction InitTrig_Peshera_Dalaran_2 takes nothing returns nothingset gg_trg_Peshera_Dalaran_2=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Peshera_Dalaran_2,gg_rct_Peshera_Dalaran_2)call TriggerAddCondition(gg_trg_Peshera_Dalaran_2,Condition(function Trig_Peshera_Dalaran_2_Conditions))
call TriggerAddAction(gg_trg_Peshera_Dalaran_2,function Trig_Peshera_Dalaran_2_Actions)endfunctionfunction Trig_Peshera_Dalaran_3_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifreturn trueendfunctionfunction Trig_Peshera_Dalaran_3_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Peshera_Dalaran_4)call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Peshera_Dalaran_4),0)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Peshera_Dalaran_4))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Peshera_Dalaran_4)
endfunctionfunction InitTrig_Peshera_Dalaran_3 takes nothing returns nothingset gg_trg_Peshera_Dalaran_3=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Peshera_Dalaran_3,gg_rct_Peshera_Dalaran_3)call TriggerAddCondition(gg_trg_Peshera_Dalaran_3,Condition(function Trig_Peshera_Dalaran_3_Conditions))
call TriggerAddAction(gg_trg_Peshera_Dalaran_3,function Trig_Peshera_Dalaran_3_Actions)endfunctionfunction Trig_Peshera_Dalaran_4_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifreturn trueendfunctionfunction Trig_Peshera_Dalaran_4_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Peshera_Dalaran_3)call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Peshera_Dalaran_3),0)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Peshera_Dalaran_3))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Peshera_Dalaran_3)
endfunctionfunction InitTrig_Peshera_Dalaran_4 takes nothing returns nothingset gg_trg_Peshera_Dalaran_4=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Peshera_Dalaran_4,gg_rct_Peshera_Dalaran_4)call TriggerAddCondition(gg_trg_Peshera_Dalaran_4,Condition(function Trig_Peshera_Dalaran_4_Conditions))
call TriggerAddAction(gg_trg_Peshera_Dalaran_4,function Trig_Peshera_Dalaran_4_Actions)endfunctionfunction Trig_Peshera_Magmy_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifreturn trueendfunctionfunction Trig_Peshera_Magmy_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Peshera_Magmy)call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Peshera_Magmy),0)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Peshera_Magmy))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Peshera_Magmy)
endfunctionfunction InitTrig_Peshera_Magmy takes nothing returns nothingset gg_trg_Peshera_Magmy=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Peshera_Magmy,gg_rct_Peshera_Magmy_2)
call TriggerAddCondition(gg_trg_Peshera_Magmy,Condition(function Trig_Peshera_Magmy_Conditions))
call TriggerAddAction(gg_trg_Peshera_Magmy,function Trig_Peshera_Magmy_Actions)endfunctionfunction Trig_Peshera_Magmy_2_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifreturn trueendfunctionfunction Trig_Peshera_Magmy_2_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Peshera_Magmy_2)call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Peshera_Magmy_2),0)
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Peshera_Magmy_2))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Peshera_Magmy_2)endfunctionfunction InitTrig_Peshera_Magmy_2 takes nothing returns nothingset gg_trg_Peshera_Magmy_2=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Peshera_Magmy_2,gg_rct_Peshera_Magmy)
call TriggerAddCondition(gg_trg_Peshera_Magmy_2,Condition(function Trig_Peshera_Magmy_2_Conditions))
call TriggerAddAction(gg_trg_Peshera_Magmy_2,function Trig_Peshera_Magmy_2_Actions)endfunctionfunction Trig_Biblioteka_Dalarana_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifreturn trueendfunctionfunction Trig_Biblioteka_Dalarana_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Biblioteka_Dalarana_2)call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Biblioteka),0)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Biblioteka))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Biblioteka_Dalarana_2)
endfunctionfunction InitTrig_Biblioteka_Dalarana takes nothing returns nothingset gg_trg_Biblioteka_Dalarana=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Biblioteka_Dalarana,gg_rct_Biblioteka_Vhod)call TriggerAddCondition(gg_trg_Biblioteka_Dalarana,Condition(function Trig_Biblioteka_Dalarana_Conditions))
call TriggerAddAction(gg_trg_Biblioteka_Dalarana,function Trig_Biblioteka_Dalarana_Actions)endfunctionfunction Trig_Biblioteka_Dalarana_2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifreturn trueendfunctionfunction Trig_Biblioteka_Dalarana_2_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Peshera_Dalaran_4)call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Biblioteka_Vhod),0)
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Biblioteka_Vhod))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Biblioteka_Dalarana)endfunctionfunction InitTrig_Biblioteka_Dalarana_2 takes nothing returns nothingset gg_trg_Biblioteka_Dalarana_2=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Biblioteka_Dalarana_2,gg_rct_Biblioteka)call TriggerAddCondition(gg_trg_Biblioteka_Dalarana_2,Condition(function Trig_Biblioteka_Dalarana_2_Conditions))
call TriggerAddAction(gg_trg_Biblioteka_Dalarana_2,function Trig_Biblioteka_Dalarana_2_Actions)endfunctionfunction Trig_Sklep_1_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifreturn trueendfunctionfunction Trig_Sklep_1_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Sklep_2)call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Sklep_exit),0)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Sklep_exit))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Sklep_2)endfunctionfunction InitTrig_Sklep_1 takes nothing returns nothingset gg_trg_Sklep_1=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Sklep_1,gg_rct_Sklep_vhod)call TriggerAddCondition(gg_trg_Sklep_1,Condition(function Trig_Sklep_1_Conditions))
call TriggerAddAction(gg_trg_Sklep_1,function Trig_Sklep_1_Actions)endfunctionfunction Trig_Sklep_2_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifreturn trueendfunctionfunction Trig_Sklep_2_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Sklep_1)call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Biblioteka),0)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Biblioteka))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Sklep_1)endfunctionfunction InitTrig_Sklep_2 takes nothing returns nothingset gg_trg_Sklep_2=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Sklep_2,gg_rct_Sklep_exit)call TriggerAddCondition(gg_trg_Sklep_2,Condition(function Trig_Sklep_2_Conditions))
call TriggerAddAction(gg_trg_Sklep_2,function Trig_Sklep_2_Actions)endfunctionfunction Trig_Peshera_Dreneev_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifreturn trueendfunctionfunction Trig_Peshera_Dreneev_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Peshera_Dreneev_Exit)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Peshera_Dreneev_1_Exit),0)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Peshera_Dreneev_1_Exit))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Peshera_Dreneev_Exit)endfunctionfunction InitTrig_Peshera_Dreneev takes nothing returns nothingset gg_trg_Peshera_Dreneev=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Peshera_Dreneev,gg_rct_Peshera_Dreneev_1)
call TriggerAddCondition(gg_trg_Peshera_Dreneev,Condition(function Trig_Peshera_Dreneev_Conditions))
call TriggerAddAction(gg_trg_Peshera_Dreneev,function Trig_Peshera_Dreneev_Actions)endfunctionfunction Trig_Peshera_Dreneev_Exit_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifreturn trueendfunctionfunction Trig_Peshera_Dreneev_Exit_Actions takes nothing returns nothing
call DisableTrigger(gg_trg_Peshera_Dreneev)call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Peshera_Dreneev_1),0)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Peshera_Dreneev_1))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Peshera_Dreneev)endfunctionfunction InitTrig_Peshera_Dreneev_Exit takes nothing returns nothing
set gg_trg_Peshera_Dreneev_Exit=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Peshera_Dreneev_Exit,gg_rct_Peshera_Dreneev_1_Exit)call TriggerAddCondition(gg_trg_Peshera_Dreneev_Exit,Condition(function Trig_Peshera_Dreneev_Exit_Conditions))call TriggerAddAction(gg_trg_Peshera_Dreneev_Exit,function Trig_Peshera_Dreneev_Exit_Actions)endfunctionfunction Trig_Peshera_Dreneev_2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifreturn trueendfunctionfunction Trig_Peshera_Dreneev_2_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Peshera_Dreneev_2_Exit)call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Peshera_Dreneev_2_Exit),0)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Peshera_Dreneev_2_Exit))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Peshera_Dreneev_2_Exit)endfunctionfunction InitTrig_Peshera_Dreneev_2 takes nothing returns nothingset gg_trg_Peshera_Dreneev_2=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Peshera_Dreneev_2,gg_rct_Peshera_Dreneev_2)call TriggerAddCondition(gg_trg_Peshera_Dreneev_2,Condition(function Trig_Peshera_Dreneev_2_Conditions))
call TriggerAddAction(gg_trg_Peshera_Dreneev_2,function Trig_Peshera_Dreneev_2_Actions)endfunctionfunction Trig_Peshera_Dreneev_2_Exit_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifreturn trueendfunctionfunction Trig_Peshera_Dreneev_2_Exit_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Peshera_Dreneev_2)call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Peshera_Dreneev_2),0)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Peshera_Dreneev_2))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Peshera_Dreneev_2)
endfunctionfunction InitTrig_Peshera_Dreneev_2_Exit takes nothing returns nothingset gg_trg_Peshera_Dreneev_2_Exit=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Peshera_Dreneev_2_Exit,gg_rct_Peshera_Dreneev_2_Exit)
call TriggerAddCondition(gg_trg_Peshera_Dreneev_2_Exit,Condition(function Trig_Peshera_Dreneev_2_Exit_Conditions))call TriggerAddAction(gg_trg_Peshera_Dreneev_2_Exit,function Trig_Peshera_Dreneev_2_Exit_Actions)endfunctionfunction Trig_Peshera_Zatoplenaya_Conditions takes nothing returns booleanif(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifreturn trueendfunctionfunction Trig_Peshera_Zatoplenaya_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Peshera_Zatoplenaya_2)call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Peshera_Zatoplenaya_2),0)call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Peshera_Zatoplenaya_2))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Peshera_Zatoplenaya_2)
endfunctionfunction InitTrig_Peshera_Zatoplenaya takes nothing returns nothingset gg_trg_Peshera_Zatoplenaya=CreateTrigger()call TriggerRegisterEnterRectSimple(gg_trg_Peshera_Zatoplenaya,gg_rct_Peshera_Zatoplenaya)call TriggerAddCondition(gg_trg_Peshera_Zatoplenaya,Condition(function Trig_Peshera_Zatoplenaya_Conditions))
call TriggerAddAction(gg_trg_Peshera_Zatoplenaya,function Trig_Peshera_Zatoplenaya_Actions)endfunctionfunction Trig_Peshera_Zatoplenaya_2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())!='H00S'))then
return false
endifreturn trueendfunctionfunction Trig_Peshera_Zatoplenaya_2_Actions takes nothing returns nothingcall DisableTrigger(gg_trg_Peshera_Zatoplenaya)call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(gg_rct_Peshera_Zatoplenaya),0)
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(gg_rct_Peshera_Zatoplenaya))call TriggerSleepAction(4.00)call EnableTrigger(gg_trg_Peshera_Zatoplenaya)endfunctionfunction InitTrig_Peshera_Zatoplenaya_2 takes nothing returns nothingset gg_trg_Peshera_Zatoplenaya_2=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Peshera_Zatoplenaya_2,gg_rct_Peshera_Zatoplenaya_2)call TriggerAddCondition(gg_trg_Peshera_Zatoplenaya_2,Condition(function Trig_Peshera_Zatoplenaya_2_Conditions))
call TriggerAddAction(gg_trg_Peshera_Zatoplenaya_2,function Trig_Peshera_Zatoplenaya_2_Actions)endfunctionfunction Trig_Bank_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05K')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Bank_Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05L')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Bank_Func003C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05M')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Bank_Func004C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05N')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Bank_Actions takes nothing returns nothing
if(Trig_Bank_Func001C())then
set udg_Gold=(udg_Gold+10)call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Bank_Func002C())then
set udg_Gold=(udg_Gold+50)call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Bank_Func003C())then
set udg_Gold=(udg_Gold+250)call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifif(Trig_Bank_Func004C())then
set udg_Gold=(udg_Gold+1000)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),GetItemTypeId(GetManipulatedItem())))else
endifendfunctionfunction InitTrig_Bank takes nothing returns nothing
set gg_trg_Bank=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Bank,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddAction(gg_trg_Bank,function Trig_Bank_Actions)endfunctionfunction Trig_Postroyka_bashen_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'wolg')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Postroyka_bashen_Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'mort')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Postroyka_bashen_Func003C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sorf')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Postroyka_bashen_Func004C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'bzbe')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Postroyka_bashen_Func005C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'sclp')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Postroyka_bashen_Func006C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'bzbf')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Postroyka_bashen_Func007C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'pdiv')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Postroyka_bashen_Func008C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'fgrg')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Postroyka_bashen_Func009C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'shdt')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Postroyka_bashen_Func010C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'skul')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Postroyka_bashen_Actions takes nothing returns nothing
if(Trig_Postroyka_bashen_Func001C())then
call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Башня построена.|r")call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Tower_1),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,100.00)call RemoveItemFromStockBJ('wolg',gg_unit_Hpb2_0213)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'wolg'))call CreateNUnitsAtLoc(1,'hgtw',Player(9),GetRectCenter(gg_rct_Tower_1),bj_UNIT_FACING)else
endifif(Trig_Postroyka_bashen_Func002C())then
call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Башня построена.|r")call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Tower_2),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,100.00)call RemoveItemFromStockBJ('mort',gg_unit_Hpb2_0213)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'mort'))call CreateNUnitsAtLoc(1,'hgtw',Player(9),GetRectCenter(gg_rct_Tower_2),bj_UNIT_FACING)else
endifif(Trig_Postroyka_bashen_Func003C())then
call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Башня построена.|r")call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Tower_3),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,100.00)call RemoveItemFromStockBJ('sorf',gg_unit_Hpb2_0213)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sorf'))call CreateNUnitsAtLoc(1,'hatw',Player(9),GetRectCenter(gg_rct_Tower_3),bj_UNIT_FACING)else
endifif(Trig_Postroyka_bashen_Func004C())then
call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Башня построена.|r")call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Tower_4),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,100.00)call RemoveItemFromStockBJ('bzbe',gg_unit_Hpb2_0213)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'bzbe'))call CreateNUnitsAtLoc(1,'hatw',Player(9),GetRectCenter(gg_rct_Tower_4),bj_UNIT_FACING)else
endifif(Trig_Postroyka_bashen_Func005C())then
call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Башня построена.|r")call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Tower_5),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,100.00)call RemoveItemFromStockBJ('sclp',gg_unit_Hpb2_0213)
call RemoveItemFromStockBJ('pdiv',gg_unit_Hpb2_0213)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'sclp'))call CreateNUnitsAtLoc(1,'nft2',Player(9),GetRectCenter(gg_rct_Tower_5),bj_UNIT_FACING)else
endifif(Trig_Postroyka_bashen_Func006C())then
call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Башня построена.|r")call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Tower_6),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,100.00)call RemoveItemFromStockBJ('fgrg',gg_unit_Hpb2_0213)
call RemoveItemFromStockBJ('bzbf',gg_unit_Hpb2_0213)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'bzbf'))call CreateNUnitsAtLoc(1,'nft2',Player(9),GetRectCenter(gg_rct_Tower_6),bj_UNIT_FACING)else
endifif(Trig_Postroyka_bashen_Func007C())then
call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Башня построена.|r")call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Tower_5),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,100.00)call RemoveItemFromStockBJ('pdiv',gg_unit_Hpb2_0213)
call RemoveItemFromStockBJ('sclp',gg_unit_Hpb2_0213)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'pdiv'))call CreateNUnitsAtLoc(1,'ndt2',Player(9),GetRectCenter(gg_rct_Tower_5),bj_UNIT_FACING)else
endifif(Trig_Postroyka_bashen_Func008C())then
call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Башня построена.|r")call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Tower_6),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,100.00)call RemoveItemFromStockBJ('fgrg',gg_unit_Hpb2_0213)
call RemoveItemFromStockBJ('bzbf',gg_unit_Hpb2_0213)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'fgrg'))call CreateNUnitsAtLoc(1,'ndt2',Player(9),GetRectCenter(gg_rct_Tower_6),bj_UNIT_FACING)else
endifif(Trig_Postroyka_bashen_Func009C())then
call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Башня построена.|r")call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Tower_7),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,100.00)call RemoveItemFromStockBJ('shdt',gg_unit_Hpb2_0213)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'shdt'))call CreateNUnitsAtLoc(1,'ntx2',Player(9),GetRectCenter(gg_rct_Tower_7),bj_UNIT_FACING)else
endifif(Trig_Postroyka_bashen_Func010C())then
call DisplayTextToForce(GetPlayersAll(),"|c0000FF00Башня построена.|r")call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Tower_8),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,100.00)call RemoveItemFromStockBJ('skul',gg_unit_Hpb2_0213)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'skul'))call CreateNUnitsAtLoc(1,'ntx2',Player(9),GetRectCenter(gg_rct_Tower_8),bj_UNIT_FACING)else
endifendfunctionfunction InitTrig_Postroyka_bashen takes nothing returns nothing
set gg_trg_Postroyka_bashen=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Postroyka_bashen,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddAction(gg_trg_Postroyka_bashen,function Trig_Postroyka_bashen_Actions)endfunctionfunction Trig_Pokupka_zdaniy_Func001C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09S')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Pokupka_zdaniy_Func002C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09T')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Pokupka_zdaniy_Func003C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09U')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Pokupka_zdaniy_Func004C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09V')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Pokupka_zdaniy_Func005C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09W')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Pokupka_zdaniy_Func006C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09X')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Pokupka_zdaniy_Func007C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09Y')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Pokupka_zdaniy_Func008C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I09Z')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Pokupka_zdaniy_Func009C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0A0')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Pokupka_zdaniy_Func010C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0A1')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Pokupka_zdaniy_Func011C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0A2')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Pokupka_zdaniy_Func012Func002C takes nothing returns booleanif(not(GetPlayerController(Player(0))==MAP_CONTROL_USER))thenreturn false
endifif(not(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED)==0))thenreturn false
endifif(not(IsUnitDeadBJ(udg_Hero[1])==true))then
return false
endifreturn trueendfunctionfunction Trig_Pokupka_zdaniy_Func012Func003C takes nothing returns booleanif(not(GetPlayerController(Player(1))==MAP_CONTROL_USER))thenreturn false
endifif(not(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED)==0))thenreturn false
endifif(not(IsUnitDeadBJ(udg_Hero[2])==true))then
return false
endifreturn trueendfunctionfunction Trig_Pokupka_zdaniy_Func012Func004C takes nothing returns booleanif(not(GetPlayerController(Player(2))==MAP_CONTROL_USER))thenreturn false
endifif(not(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED)==0))thenreturn false
endifif(not(IsUnitDeadBJ(udg_Hero[3])==true))then
return false
endifreturn trueendfunctionfunction Trig_Pokupka_zdaniy_Func012Func005C takes nothing returns booleanif(not(GetPlayerController(Player(3))==MAP_CONTROL_USER))thenreturn false
endifif(not(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED)==0))thenreturn false
endifif(not(IsUnitDeadBJ(udg_Hero[4])==true))then
return false
endifreturn trueendfunctionfunction Trig_Pokupka_zdaniy_Func012Func006C takes nothing returns booleanif(not(GetPlayerController(Player(4))==MAP_CONTROL_USER))thenreturn false
endifif(not(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED)==0))thenreturn false
endifif(not(IsUnitDeadBJ(udg_Hero[5])==true))then
return false
endifreturn trueendfunctionfunction Trig_Pokupka_zdaniy_Func012Func007C takes nothing returns booleanif(not(GetPlayerController(Player(5))==MAP_CONTROL_USER))thenreturn false
endifif(not(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED)==0))thenreturn false
endifif(not(IsUnitDeadBJ(udg_Hero[6])==true))then
return false
endifreturn trueendfunctionfunction Trig_Pokupka_zdaniy_Func012C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0A3')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Pokupka_zdaniy_Func013C takes nothing returns booleanif(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I0A7')==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Pokupka_zdaniy_Actions takes nothing returns nothingif(Trig_Pokupka_zdaniy_Func001C())thencall DisplayTextToForce(GetPlayersAll(),("|c0000FF00Механический рудник теперь принадлежит:|r"+GetPlayerName(GetOwningPlayer(GetTriggerUnit()))))
call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_ugol_0760),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,100.00)call RemoveItemFromStockBJ('I09S',gg_unit_H01Z_0761)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09S'))call SetUnitOwner(gg_unit_ugol_0760,GetOwningPlayer(GetTriggerUnit()),true)call TriggerSleepAction(1.00)call IssueTargetOrder(gg_unit_ugol_0760,"harvest",gg_unit_ugol_0760)
else
endifif(Trig_Pokupka_zdaniy_Func002C())thencall DisplayTextToForce(GetPlayersAll(),("|c0000FF00Механический рудник теперь принадлежит:|r"+GetPlayerName(GetOwningPlayer(GetTriggerUnit()))))
call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_ugol_0759),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,100.00)call RemoveItemFromStockBJ('I09T',gg_unit_H01Z_0761)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09T'))call SetUnitOwner(gg_unit_ugol_0759,GetOwningPlayer(GetTriggerUnit()),true)call TriggerSleepAction(1.00)call IssueTargetOrder(gg_unit_ugol_0759,"harvest",gg_unit_ugol_0759)
else
endifif(Trig_Pokupka_zdaniy_Func003C())thencall DisplayTextToForce(GetPlayersAll(),("|c0000FF00Механический рудник теперь принадлежит:|r"+GetPlayerName(GetOwningPlayer(GetTriggerUnit()))))
call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_ugol_0758),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,100.00)call RemoveItemFromStockBJ('I09U',gg_unit_H01Z_0761)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09U'))call SetUnitOwner(gg_unit_ugol_0758,GetOwningPlayer(GetTriggerUnit()),true)call TriggerSleepAction(1.00)call IssueTargetOrder(gg_unit_ugol_0758,"harvest",gg_unit_ugol_0758)
else
endifif(Trig_Pokupka_zdaniy_Func004C())thencall DisplayTextToForce(GetPlayersAll(),("|c0000FF00Кладбище теперь принадлежит:|r"+GetPlayerName(GetOwningPlayer(GetTriggerUnit()))))call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_ugrv_0762),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,100.00)call RemoveItemFromStockBJ('I09V',gg_unit_H01Z_0761)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09V'))call SetUnitOwner(gg_unit_ugrv_0762,GetOwningPlayer(GetTriggerUnit()),true)else
endifif(Trig_Pokupka_zdaniy_Func005C())thencall DisplayTextToForce(GetPlayersAll(),("|c0000FF00Демонический алтарь теперь принадлежит:|r"+GetPlayerName(GetOwningPlayer(GetTriggerUnit()))))
call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_n00W_0763),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,100.00)call RemoveItemFromStockBJ('I09W',gg_unit_H01Z_0761)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09W'))call SetUnitOwner(gg_unit_n00W_0763,GetOwningPlayer(GetTriggerUnit()),true)else
endifif(Trig_Pokupka_zdaniy_Func006C())thencall DisplayTextToForce(GetPlayersAll(),("|c0000FF00Зверинец теперь принадлежит:|r"+GetPlayerName(GetOwningPlayer(GetTriggerUnit()))))call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_H01Z_0761),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,100.00)call RemoveItemFromStockBJ('I09X',gg_unit_H01Z_0761)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09X'))call SetUnitOwner(gg_unit_obea_0764,GetOwningPlayer(GetTriggerUnit()),true)else
endifif(Trig_Pokupka_zdaniy_Func007C())thencall DisplayTextToForce(GetPlayersAll(),("|c0000FF00Алтарь бури теперь принадлежит:|r"+GetPlayerName(GetOwningPlayer(GetTriggerUnit()))))
call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_oalt_0765),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,100.00)call RemoveItemFromStockBJ('I09Y',gg_unit_H01Z_0761)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09Y'))call SetUnitOwner(gg_unit_oalt_0765,GetOwningPlayer(GetTriggerUnit()),true)else
endifif(Trig_Pokupka_zdaniy_Func008C())thencall DisplayTextToForce(GetPlayersAll(),("|c0000FF00Алхимическая лаболатория теперь принадлежит:|r"+GetPlayerName(GetOwningPlayer(GetTriggerUnit()))))call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_utod_0766),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,100.00)call RemoveItemFromStockBJ('I09Z',gg_unit_H01Z_0761)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I09Z'))call SetUnitOwner(gg_unit_utod_0766,GetOwningPlayer(GetTriggerUnit()),true)call AddItemToStockBJ('pgin',gg_unit_utod_0766,0,1)call AddItemToStockBJ('totw',gg_unit_utod_0766,0,1)call AddItemToStockBJ('ccmd',gg_unit_utod_0766,0,1)call AddItemToStockBJ('drph',gg_unit_utod_0766,0,1)call AddItemToStockBJ('stwp',gg_unit_utod_0766,0,1)call AddItemToStockBJ('shea',gg_unit_utod_0766,0,1)call AddItemToStockBJ('shwd',gg_unit_utod_0766,0,1)call AddItemToStockBJ('gvsm',gg_unit_utod_0766,0,1)else
endifif(Trig_Pokupka_zdaniy_Func009C())thencall DisplayTextToForce(GetPlayersAll(),("|c0000FF00Обсерватория теперь принадлежит:|r"+GetPlayerName(GetOwningPlayer(GetTriggerUnit()))))call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_haro_0767),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,100.00)call RemoveItemFromStockBJ('I0A0',gg_unit_H01Z_0761)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0A0'))call SetUnitOwner(gg_unit_haro_0767,GetOwningPlayer(GetTriggerUnit()),true)else
endifif(Trig_Pokupka_zdaniy_Func010C())thencall DisplayTextToForce(GetPlayersAll(),("|c0000FF00Алтарь королей теперь принадлежит:|r"+GetPlayerName(GetOwningPlayer(GetTriggerUnit()))))call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_halt_0275),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,100.00)call RemoveItemFromStockBJ('I0A1',gg_unit_H01Z_0761)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0A1'))call SetUnitOwner(gg_unit_halt_0275,GetOwningPlayer(GetTriggerUnit()),true)call AddItemToStockBJ('I0A2',gg_unit_halt_0275,0,1)call AddItemToStockBJ('I0A3',gg_unit_halt_0275,0,1)call AddItemToStockBJ('I0AZ',gg_unit_halt_0275,0,1)call AddItemToStockBJ('I0B0',gg_unit_halt_0275,0,1)call AddItemToStockBJ('I0AY',gg_unit_halt_0275,0,1)else
endifif(Trig_Pokupka_zdaniy_Func011C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0A2'))call AdjustPlayerStateBJ(1,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_FOOD_CAP)
call AdjustPlayerStateBJ(1,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_FOOD_USED)else
endifif(Trig_Pokupka_zdaniy_Func012C())thencall RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0A3'))if(Trig_Pokupka_zdaniy_Func012Func002C())thencall CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,Player(0),0)
call ReviveHeroLoc(udg_Hero[1],GetUnitLoc(gg_unit_ncp3_0330),true)returnelse
endifif(Trig_Pokupka_zdaniy_Func012Func003C())thencall CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,Player(1),0)
call ReviveHeroLoc(udg_Hero[2],GetUnitLoc(gg_unit_ncp3_0330),true)returnelse
endifif(Trig_Pokupka_zdaniy_Func012Func004C())thencall CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,Player(2),0)
call ReviveHeroLoc(udg_Hero[3],GetUnitLoc(gg_unit_ncp3_0330),true)returnelse
endifif(Trig_Pokupka_zdaniy_Func012Func005C())thencall CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,Player(3),0)
call ReviveHeroLoc(udg_Hero[4],GetUnitLoc(gg_unit_ncp3_0330),true)returnelse
endifif(Trig_Pokupka_zdaniy_Func012Func006C())thencall CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,Player(4),0)
call ReviveHeroLoc(udg_Hero[5],GetUnitLoc(gg_unit_ncp3_0330),true)returnelse
endifif(Trig_Pokupka_zdaniy_Func012Func007C())thencall CameraSetupApplyForPlayer(true,gg_cam_Hero_Respaun,Player(5),0)
call ReviveHeroLoc(udg_Hero[6],GetUnitLoc(gg_unit_ncp3_0330),true)returnelse
endifelse
endifif(Trig_Pokupka_zdaniy_Func013C())thencall DisplayTextToForce(GetPlayersAll(),("|c0000FF00Могила героев теперь принадлежит:|r"+GetPlayerName(GetOwningPlayer(GetTriggerUnit()))))
call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_uaod_0771),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,100.00)call RemoveItemFromStockBJ('I0A7',gg_unit_H01Z_0761)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I0A7'))call SetUnitOwner(gg_unit_uaod_0771,GetOwningPlayer(GetTriggerUnit()),true)call AddItemToStockBJ('I05Z',gg_unit_uaod_0771,0,1)call AddItemToStockBJ('I04A',gg_unit_uaod_0771,0,1)call AddItemToStockBJ('I05R',gg_unit_uaod_0771,0,1)call AddItemToStockBJ('I053',gg_unit_uaod_0771,0,1)call AddItemToStockBJ('I08O',gg_unit_uaod_0771,0,1)call AddItemToStockBJ('I0A6',gg_unit_uaod_0771,0,1)call AddItemToStockBJ('I08N',gg_unit_uaod_0771,0,1)call AddItemToStockBJ('I05V',gg_unit_uaod_0771,0,1)call AddItemToStockBJ('clsd',gg_unit_uaod_0771,0,1)call AddItemToStockBJ('I09J',gg_unit_uaod_0771,0,1)call AddItemToStockBJ('I04G',gg_unit_uaod_0771,0,1)else
endifendfunctionfunction InitTrig_Pokupka_zdaniy takes nothing returns nothingset gg_trg_Pokupka_zdaniy=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Pokupka_zdaniy,EVENT_PLAYER_UNIT_PICKUP_ITEM)call TriggerAddAction(gg_trg_Pokupka_zdaniy,function Trig_Pokupka_zdaniy_Actions)endfunctionfunction Trig_Inicializaciya_decoraciy_Func005C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func006C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func007C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func010C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func011C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func012C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func015C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func016C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func017C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func020C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func021C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func022C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func025C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func026C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func027C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func030C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func031C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func032C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func035C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func036C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func037C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func040C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func041C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func042C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func045C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func046C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func047C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func050C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func051C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func052C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func055C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Func056C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_decoraciy_Actions takes nothing returns nothing
call CreateFogModifierRectBJ(true,Player(0),FOG_OF_WAR_VISIBLE,gg_rct_Zamok)
call SetUnitAnimation(gg_unit_nbfl_0522,"Third")
call SetTerrainTypeBJ(GetRectCenter(gg_rct_Frostmorn),'Wsnw',8,4,0)set udg_Random=GetRandomInt(1,3)
if(Trig_Inicializaciya_decoraciy_Func005C())then
call SetUnitPositionLoc(gg_unit_nwc2_0719,GetRandomLocInRect(gg_rct_Zona_1))
else
endifif(Trig_Inicializaciya_decoraciy_Func006C())then
call SetUnitPositionLoc(gg_unit_nwc2_0719,GetRandomLocInRect(gg_rct_Zona_2))
else
endifif(Trig_Inicializaciya_decoraciy_Func007C())then
call SetUnitPositionLoc(gg_unit_nwc2_0719,GetRandomLocInRect(gg_rct_Zona_4))
else
endifcall TriggerSleepAction(1.00)set udg_Random=GetRandomInt(1,3)
if(Trig_Inicializaciya_decoraciy_Func010C())then
call SetUnitPositionLoc(gg_unit_nwc2_0720,GetRandomLocInRect(gg_rct_Zona_1))
else
endifif(Trig_Inicializaciya_decoraciy_Func011C())then
call SetUnitPositionLoc(gg_unit_nwc2_0720,GetRandomLocInRect(gg_rct_Zona_2))
else
endifif(Trig_Inicializaciya_decoraciy_Func012C())then
call SetUnitPositionLoc(gg_unit_nwc2_0720,GetRandomLocInRect(gg_rct_Zona_4))
else
endifcall TriggerSleepAction(1.00)set udg_Random=GetRandomInt(1,3)
if(Trig_Inicializaciya_decoraciy_Func015C())then
call SetUnitPositionLoc(gg_unit_nwc2_0721,GetRandomLocInRect(gg_rct_Zona_1))
else
endifif(Trig_Inicializaciya_decoraciy_Func016C())then
call SetUnitPositionLoc(gg_unit_nwc2_0721,GetRandomLocInRect(gg_rct_Zona_2))
else
endifif(Trig_Inicializaciya_decoraciy_Func017C())then
call SetUnitPositionLoc(gg_unit_nwc2_0721,GetRandomLocInRect(gg_rct_Zona_4))
else
endifcall TriggerSleepAction(1.00)set udg_Random=GetRandomInt(1,3)
if(Trig_Inicializaciya_decoraciy_Func020C())then
call SetUnitPositionLoc(gg_unit_nwc2_0722,GetRandomLocInRect(gg_rct_Zona_2))
else
endifif(Trig_Inicializaciya_decoraciy_Func021C())then
call SetUnitPositionLoc(gg_unit_nwc2_0722,GetRandomLocInRect(gg_rct_Zona_4))
else
endifif(Trig_Inicializaciya_decoraciy_Func022C())then
call SetUnitPositionLoc(gg_unit_nwc2_0722,GetRandomLocInRect(gg_rct_Zona_3))
else
endifcall TriggerSleepAction(1.00)set udg_Random=GetRandomInt(1,3)
if(Trig_Inicializaciya_decoraciy_Func025C())then
call SetUnitPositionLoc(gg_unit_nwc2_0723,GetRandomLocInRect(gg_rct_Zona_2))
else
endifif(Trig_Inicializaciya_decoraciy_Func026C())then
call SetUnitPositionLoc(gg_unit_nwc2_0723,GetRandomLocInRect(gg_rct_Podzemelie_neruba_1))else
endifif(Trig_Inicializaciya_decoraciy_Func027C())then
call SetUnitPositionLoc(gg_unit_nwc2_0723,GetRandomLocInRect(gg_rct_Zona_4))
else
endifcall TriggerSleepAction(1.00)set udg_Random=GetRandomInt(1,3)
if(Trig_Inicializaciya_decoraciy_Func030C())then
call SetUnitPositionLoc(gg_unit_nwc2_0724,GetRandomLocInRect(gg_rct_Zona_4))
else
endifif(Trig_Inicializaciya_decoraciy_Func031C())then
call SetUnitPositionLoc(gg_unit_nwc2_0724,GetRandomLocInRect(gg_rct_Pole_Phenicy))else
endifif(Trig_Inicializaciya_decoraciy_Func032C())then
call SetUnitPositionLoc(gg_unit_nwc2_0724,GetRandomLocInRect(gg_rct_Zona_9))
else
endifcall TriggerSleepAction(1.00)set udg_Random=GetRandomInt(1,3)
if(Trig_Inicializaciya_decoraciy_Func035C())then
call SetUnitPositionLoc(gg_unit_nwc2_0725,GetRandomLocInRect(gg_rct_Zona_4))
else
endifif(Trig_Inicializaciya_decoraciy_Func036C())then
call SetUnitPositionLoc(gg_unit_nwc2_0725,GetRandomLocInRect(gg_rct_Zona_10))else
endifif(Trig_Inicializaciya_decoraciy_Func037C())then
call SetUnitPositionLoc(gg_unit_nwc2_0725,GetRandomLocInRect(gg_rct_Orda))else
endifcall TriggerSleepAction(1.00)set udg_Random=GetRandomInt(1,3)
if(Trig_Inicializaciya_decoraciy_Func040C())then
call SetUnitPositionLoc(gg_unit_nwc2_0726,GetRandomLocInRect(gg_rct_Zona_10))else
endifif(Trig_Inicializaciya_decoraciy_Func041C())then
call SetUnitPositionLoc(gg_unit_nwc2_0726,GetRandomLocInRect(gg_rct_Zona_5))
else
endifif(Trig_Inicializaciya_decoraciy_Func042C())then
call SetUnitPositionLoc(gg_unit_nwc2_0726,GetRandomLocInRect(gg_rct_Zona_7))
else
endifcall TriggerSleepAction(1.00)set udg_Random=GetRandomInt(1,3)
if(Trig_Inicializaciya_decoraciy_Func045C())then
call SetUnitPositionLoc(gg_unit_nwc2_0727,GetRandomLocInRect(gg_rct_Zona_7))
else
endifif(Trig_Inicializaciya_decoraciy_Func046C())then
call SetUnitPositionLoc(gg_unit_nwc2_0727,GetRandomLocInRect(gg_rct_Zona_8))
else
endifif(Trig_Inicializaciya_decoraciy_Func047C())then
call SetUnitPositionLoc(gg_unit_nwc2_0727,GetRandomLocInRect(gg_rct_Zona_11))else
endifcall TriggerSleepAction(1.00)set udg_Random=GetRandomInt(1,3)
if(Trig_Inicializaciya_decoraciy_Func050C())then
call SetUnitPositionLoc(gg_unit_nwc2_0728,GetRandomLocInRect(gg_rct_Zona_6))
else
endifif(Trig_Inicializaciya_decoraciy_Func051C())then
call SetUnitPositionLoc(gg_unit_nwc2_0728,GetRandomLocInRect(gg_rct_Zona_8))
else
endifif(Trig_Inicializaciya_decoraciy_Func052C())then
call SetUnitPositionLoc(gg_unit_nwc2_0728,GetRandomLocInRect(gg_rct_Boqnia))
else
endifcall TriggerSleepAction(1.00)set udg_Random=GetRandomInt(1,5)
if(Trig_Inicializaciya_decoraciy_Func055C())then
call SetTerrainTypeBJ(GetRectCenter(gg_rct_Zona_2),'Wsnw',8,20,0)call SetTerrainTypeBJ(OffsetLocation(GetRectCenter(gg_rct_Zona_2),0,-1000.00),'Wsnw',8,20,0)
call DisableTrigger(gg_trg_Troll_go)
call EnableTrigger(gg_trg_Tuskarci_go)set bj_forLoopAIndex=1set bj_forLoopAIndexEnd=50loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEndcall SetTerrainTypeBJ(GetRandomLocInRect(gg_rct_Zona_2),'Ndrt',8,1,0)set bj_forLoopAIndex=bj_forLoopAIndex+1endloopset bj_forLoopAIndex=1set bj_forLoopAIndexEnd=50loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEndcall SetTerrainTypeBJ(GetRandomLocInRect(gg_rct_Zona_2),'Nrck',8,1,0)set bj_forLoopAIndex=bj_forLoopAIndex+1endloopset bj_forLoopAIndex=1set bj_forLoopAIndexEnd=50loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEndcall SetTerrainTypeBJ(GetRandomLocInRect(gg_rct_Zona_2),'Nice',8,1,0)set bj_forLoopAIndex=bj_forLoopAIndex+1endloopset bj_forLoopAIndex=1set bj_forLoopAIndexEnd=10loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEndcall CreateDestructableLoc('B000',GetRandomLocInRect(gg_rct_Zona_2),GetRandomDirectionDeg(),1,0)
set bj_forLoopAIndex=bj_forLoopAIndex+1endloopelse
endifif(Trig_Inicializaciya_decoraciy_Func056C())then
call DisableTrigger(gg_trg_Troll_go)
call EnableTrigger(gg_trg_Drenei_go)
set bj_forLoopAIndex=1set bj_forLoopAIndexEnd=50loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEndcall SetTerrainTypeBJ(GetRandomLocInRect(gg_rct_Zona_2),'Cdrd',8,1,0)set bj_forLoopAIndex=bj_forLoopAIndex+1endloopset bj_forLoopAIndex=1set bj_forLoopAIndexEnd=50loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEndcall SetTerrainTypeBJ(GetRandomLocInRect(gg_rct_Zona_2),'Crck',8,1,0)set bj_forLoopAIndex=bj_forLoopAIndex+1endloopset bj_forLoopAIndex=1set bj_forLoopAIndexEnd=50loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEndcall SetTerrainTypeBJ(GetRandomLocInRect(gg_rct_Zona_2),'Cpos',8,1,0)set bj_forLoopAIndex=bj_forLoopAIndex+1endloopset bj_forLoopAIndex=1set bj_forLoopAIndexEnd=50loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEndcall SetTerrainTypeBJ(GetRandomLocInRect(gg_rct_Zona_2),'Cvin',8,1,0)set bj_forLoopAIndex=bj_forLoopAIndex+1endloopelse
endifendfunctionfunction InitTrig_Inicializaciya_decoraciy takes nothing returns nothing
set gg_trg_Inicializaciya_decoraciy=CreateTrigger()call TriggerRegisterTimerEventSingle(gg_trg_Inicializaciya_decoraciy,1.00)call TriggerAddAction(gg_trg_Inicializaciya_decoraciy,function Trig_Inicializaciya_decoraciy_Actions)endfunctionfunction Trig_inicializaciya_decoraciy_2_Func023C takes nothing returns booleanif(not(udg_Random<=1))thenreturn false
endifreturn trueendfunctionfunction Trig_inicializaciya_decoraciy_2_Func024C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_inicializaciya_decoraciy_2_Func025C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_inicializaciya_decoraciy_2_Func031C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_inicializaciya_decoraciy_2_Func032C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_inicializaciya_decoraciy_2_Func033C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_inicializaciya_decoraciy_2_Func034C takes nothing returns booleanif(not(udg_Random==4))thenreturn false
endifreturn trueendfunctionfunction Trig_inicializaciya_decoraciy_2_Actions takes nothing returns nothingset bj_forLoopAIndex=1set bj_forLoopAIndexEnd=50loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEndcall SetTerrainTypeBJ(GetRandomLocInRect(gg_rct_Kamenniy_utes),'Ofst',1,3,0)
set bj_forLoopAIndex=bj_forLoopAIndex+1endloopset bj_forLoopAIndex=1set bj_forLoopAIndexEnd=50loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEndcall SetTerrainTypeBJ(GetRandomLocInRect(gg_rct_Kamenniy_utes),'Orok',2,1,0)
set bj_forLoopAIndex=bj_forLoopAIndex+1endloopcall TriggerSleepAction(1.00)set bj_forLoopAIndex=1set bj_forLoopAIndexEnd=50loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEndcall SetTerrainTypeBJ(GetRandomLocInRect(gg_rct_Kamenniy_utes),'Ofst',3,5,0)
set bj_forLoopAIndex=bj_forLoopAIndex+1endloopset bj_forLoopAIndex=1set bj_forLoopAIndexEnd=50loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEndcall SetTerrainTypeBJ(GetRandomLocInRect(gg_rct_Kamennoe_ushelie),'Osmb',3,1,0)set bj_forLoopAIndex=bj_forLoopAIndex+1endloopset bj_forLoopAIndex=1set bj_forLoopAIndexEnd=250loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEndcall SetTerrainTypeBJ(GetRandomLocInRect(gg_rct_Kamenniy_utes),'Orok',1,4,0)
set bj_forLoopAIndex=bj_forLoopAIndex+1endloopcall TriggerSleepAction(1.00)set bj_forLoopAIndex=1set bj_forLoopAIndexEnd=50loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEndcall SetTerrainTypeBJ(GetRandomLocInRect(gg_rct_Kamenniy_utes),'Ofst',1,1,0)
set bj_forLoopAIndex=bj_forLoopAIndex+1endloopset bj_forLoopAIndex=1set bj_forLoopAIndexEnd=50loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEndcall SetTerrainTypeBJ(GetRandomLocInRect(gg_rct_Kamennoe_ushelie),'Ofst',1,1,0)set bj_forLoopAIndex=bj_forLoopAIndex+1endloopcall TriggerSleepAction(2)call SetUnitOwner(gg_unit_h029_0814,Player(PLAYER_NEUTRAL_PASSIVE),false)call SetUnitOwner(gg_unit_h028_0813,Player(PLAYER_NEUTRAL_PASSIVE),false)call SetUnitOwner(gg_unit_h027_0812,Player(PLAYER_NEUTRAL_PASSIVE),false)call SetUnitInvulnerable(gg_unit_h029_0814,true)
call SetUnitInvulnerable(gg_unit_h028_0813,true)
call SetUnitInvulnerable(gg_unit_h027_0812,true)
call SetUnitInvulnerable(gg_unit_Nkjx_0811,true)
call TriggerSleepAction(2)set bj_forLoopAIndex=1set bj_forLoopAIndexEnd=150loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEndcall SetTerrainTypeBJ(GetRandomLocInRect(gg_rct_Ledianoy_tron),'Wsnw',8,9,0)
set bj_forLoopAIndex=bj_forLoopAIndex+1endloopcall TriggerSleepAction(1.00)set udg_Random=GetRandomInt(1,10)if(Trig_inicializaciya_decoraciy_2_Func023C())thencall KillUnit(gg_unit_Hvwd_0807)
else
endifif(Trig_inicializaciya_decoraciy_2_Func024C())thencall SetUnitPositionLoc(gg_unit_Hvwd_0807,GetUnitLoc(gg_unit_emow_0377))
else
endifif(Trig_inicializaciya_decoraciy_2_Func025C())thencall SetUnitPositionLoc(gg_unit_Hvwd_0807,GetUnitLoc(gg_unit_nvl2_0319))
else
endifcall TriggerSleepAction(1.00)call CreatePermanentCorpseLocBJ(bj_CORPSETYPE_FLESH,'nbel',Player(0),GetRectCenter(gg_rct_Smert_Drakonoborca),GetRandomDirectionDeg())call CreateItemLoc('rma2',GetRectCenter(gg_rct_Smert_Drakonoborca))call TriggerSleepAction(1.00)set udg_Random=GetRandomInt(1,4)
if(Trig_inicializaciya_decoraciy_2_Func031C())thencall CreateNUnitsAtLoc(1,'nstw',Player(11),GetRectCenter(gg_rct_Ungoro),bj_UNIT_FACING)else
endifif(Trig_inicializaciya_decoraciy_2_Func032C())thencall CreateNUnitsAtLoc(1,'nlkl',Player(11),GetRectCenter(gg_rct_Ungoro),bj_UNIT_FACING)else
endifif(Trig_inicializaciya_decoraciy_2_Func033C())thencall CreateNUnitsAtLoc(1,'ntrd',Player(11),GetRectCenter(gg_rct_Ungoro),bj_UNIT_FACING)else
endifif(Trig_inicializaciya_decoraciy_2_Func034C())thencall CreateNUnitsAtLoc(1,'njga',Player(11),GetRectCenter(gg_rct_Ungoro),bj_UNIT_FACING)else
endifset udg_Nestabilniy_Portal[1]=falseset udg_Nestabilniy_Portal[2]=falseset udg_Nestabilniy_Portal[3]=falseset udg_Nestabilniy_Portal[4]=falseset udg_Nestabilniy_Portal[5]=falseset udg_Nestabilniy_Portal[6]=falseset udg_Nestabilniy_Portal[7]=falseset udg_Nestabilniy_Portal[8]=falseset udg_Nestabilniy_Portal[9]=falsecall TriggerSleepAction(1.00)call CreatePermanentCorpseLocBJ(bj_CORPSETYPE_FLESH,'ndrp',Player(8),GetRandomLocInRect(gg_rct_Derevnia_Dreneev),GetRandomDirectionDeg())call CreatePermanentCorpseLocBJ(bj_CORPSETYPE_FLESH,'ndrp',Player(8),GetRandomLocInRect(gg_rct_Derevnia_Dreneev),GetRandomDirectionDeg())call CreatePermanentCorpseLocBJ(bj_CORPSETYPE_FLESH,'ndrp',Player(8),GetRandomLocInRect(gg_rct_Derevnia_Dreneev),GetRandomDirectionDeg())call CreatePermanentCorpseLocBJ(bj_CORPSETYPE_FLESH,'ndrp',Player(8),GetRandomLocInRect(gg_rct_Derevnia_Dreneev),GetRandomDirectionDeg())call CreatePermanentCorpseLocBJ(bj_CORPSETYPE_FLESH,'ndrp',Player(8),GetRandomLocInRect(gg_rct_Derevnia_Dreneev),GetRandomDirectionDeg())call CreatePermanentCorpseLocBJ(bj_CORPSETYPE_FLESH,'ndrh',Player(8),GetRandomLocInRect(gg_rct_Derevnia_Dreneev),GetRandomDirectionDeg())call CreatePermanentCorpseLocBJ(bj_CORPSETYPE_FLESH,'ndrh',Player(8),GetRandomLocInRect(gg_rct_Derevnia_Dreneev),GetRandomDirectionDeg())call CreatePermanentCorpseLocBJ(bj_CORPSETYPE_FLESH,'ndrh',Player(8),GetRandomLocInRect(gg_rct_Derevnia_Dreneev),GetRandomDirectionDeg())call CreatePermanentCorpseLocBJ(bj_CORPSETYPE_FLESH,'ndrd',Player(8),GetRandomLocInRect(gg_rct_Derevnia_Dreneev),GetRandomDirectionDeg())call CreatePermanentCorpseLocBJ(bj_CORPSETYPE_FLESH,'ndrd',Player(8),GetRandomLocInRect(gg_rct_Derevnia_Dreneev),GetRandomDirectionDeg())call CreatePermanentCorpseLocBJ(bj_CORPSETYPE_FLESH,'ndrs',Player(8),GetRandomLocInRect(gg_rct_Derevnia_Dreneev),GetRandomDirectionDeg())endfunctionfunction InitTrig_inicializaciya_decoraciy_2 takes nothing returns nothingset gg_trg_inicializaciya_decoraciy_2=CreateTrigger()call TriggerRegisterTimerEventSingle(gg_trg_inicializaciya_decoraciy_2,5)call TriggerAddAction(gg_trg_inicializaciya_decoraciy_2,function Trig_inicializaciya_decoraciy_2_Actions)endfunctionfunction Trig_Inicializaciya_zadaniy_Func007C takes nothing returns booleanif(not(udg_Random<=3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_zadaniy_Func010C takes nothing returns booleanif(not(udg_Random<=2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_zadaniy_Func013C takes nothing returns booleanif(not(udg_Random<=4))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_zadaniy_Func016C takes nothing returns booleanif(not(udg_Random<=3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_zadaniy_Actions takes nothing returns nothingcall TriggerSleepAction(0.10)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hpal_0257,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[8]=GetLastCreatedEffectBJ()call TriggerSleepAction(0.10)set udg_Random=GetRandomInt(1,7)
if(Trig_Inicializaciya_zadaniy_Func007C())thencall EnableTrigger(gg_trg_Redkiy_kaban_1)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hant_0066,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[1]=GetLastCreatedEffectBJ()else
call EnableTrigger(gg_trg_Vogak_volkov)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hant_0066,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[1]=GetLastCreatedEffectBJ()endifcall TriggerSleepAction(0.10)set udg_Random=GetRandomInt(1,5)
if(Trig_Inicializaciya_zadaniy_Func010C())thencall EnableTrigger(gg_trg_Vedma_v_derevny)else
call EnableTrigger(gg_trg_Nachalo_rituala_Necromant)
endifcall TriggerSleepAction(0.10)set udg_Random=GetRandomInt(1,7)
if(Trig_Inicializaciya_zadaniy_Func013C())thencall UnitAddAbilityBJ('A005',gg_unit_n002_0038)call EnableTrigger(gg_trg_Oboroten_1)call EnableTrigger(gg_trg_Oboroten_Active)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_n002_0038,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[3]=GetLastCreatedEffectBJ()else
call TriggerSleepAction(480.00)call EnableTrigger(gg_trg_Troll_zn_1)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Orkn_0037,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[4]=GetLastCreatedEffectBJ()endifcall TriggerSleepAction(480.00)set udg_Random=GetRandomInt(1,5)
if(Trig_Inicializaciya_zadaniy_Func016C())thencall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmgd_0057,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[6]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Marshal_1)
call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hmgd_0057),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)else
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmgd_0057,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[7]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Marshal_2)
call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hmgd_0057),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)endifendfunctionfunction InitTrig_Inicializaciya_zadaniy takes nothing returns nothingset gg_trg_Inicializaciya_zadaniy=CreateTrigger()call TriggerRegisterTimerEventSingle(gg_trg_Inicializaciya_zadaniy,5.00)
call TriggerAddAction(gg_trg_Inicializaciya_zadaniy,function Trig_Inicializaciya_zadaniy_Actions)endfunctionfunction Trig_Inicializaciya_zadaniy_2_Func004C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_zadaniy_2_Func007C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_zadaniy_2_Func018C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_zadaniy_2_Func019C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_zadaniy_2_Func020C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_zadaniy_2_Func021C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_zadaniy_2_Func024C takes nothing returns booleanif(not(udg_Random<=2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_zadaniy_2_Func034C takes nothing returns booleanif(not(udg_Random<=1))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_zadaniy_2_Func037C takes nothing returns booleanif(not(udg_Random<=2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_zadaniy_2_Func043C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_zadaniy_2_Actions takes nothing returns nothing
call TriggerSleepAction(1.00)set udg_Dalaran_Portal=0
set udg_Random=GetRandomInt(1,2)
if(Trig_Inicializaciya_zadaniy_2_Func004C())then
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmbr_0215,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[10]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Kuznec)call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hmbr_0215),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)else
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hmbr_0215,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[10]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Kuznec_2)call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_Hmbr_0215),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)endifcall TriggerSleepAction(1.00)set udg_Random=GetRandomInt(1,2)
if(Trig_Inicializaciya_zadaniy_2_Func007C())then
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_n00C_0258,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[11]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Noviy_instrument)call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_n00C_0258),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)else
call EnableTrigger(gg_trg_Zapusk_ukradenaya_povozka)
endifcall TriggerSleepAction(1.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Nalc_0268,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[13]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Zelie_omologeniya)
call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(gg_unit_n00C_0258),7.00,bj_MINIMAPPINGSTYLE_SIMPLE,100.00,100.00,0.00)call TriggerSleepAction(1.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Ntin_0305,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[24]=GetLastCreatedEffectBJ()call TriggerSleepAction(1.00)set udg_Random=GetRandomInt(1,6)
if(Trig_Inicializaciya_zadaniy_2_Func018C())then
call UnitAddItemByIdSwapped('gmfr',gg_unit_n008_0186)else
endifif(Trig_Inicializaciya_zadaniy_2_Func019C())then
call UnitAddItemByIdSwapped('gmfr',gg_unit_n008_0229)else
endifif(Trig_Inicializaciya_zadaniy_2_Func020C())then
call CreateItemLoc('gmfr',GetRandomLocInRect(gg_rct_Podzemelie_neruba_2))else
endifif(Trig_Inicializaciya_zadaniy_2_Func021C())then
call CreateItemLoc('gmfr',GetRandomLocInRect(gg_rct_Podzemelie_neruba_1))else
endifcall TriggerSleepAction(1.00)set udg_Random=GetRandomInt(1,3)
if(Trig_Inicializaciya_zadaniy_2_Func024C())then
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_nwat_0684,"Abilities\\Spells\\Other\\Silence\\SilenceTarget.mdl")set udg_Specefect[26]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Brakoniery)else
endifcall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_Hjai_0221,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[27]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Volshebnie_fonary)
call TriggerSleepAction(2)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_hcth_0206,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[28]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Obuchenie_sily)call TriggerSleepAction(1.00)set udg_Random=GetRandomInt(1,3)
if(Trig_Inicializaciya_zadaniy_2_Func034C())then
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_nhem_0315,"Abilities\\Spells\\Other\\Silence\\SilenceTarget.mdl")set udg_Specefect[29]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Ukradeniy_koshelek)else
endifcall TriggerSleepAction(1.00)set udg_Random=GetRandomInt(1,3)
if(Trig_Inicializaciya_zadaniy_2_Func037C())then
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_nsty_0642,"Abilities\\Spells\\Other\\Silence\\SilenceTarget.mdl")set udg_Specefect[30]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Bochonok_elia)
else
call RemoveItem(gg_item_I09B_0748)endifcall AddSpecialEffectTargetUnitBJ("overhead",gg_unit_nhew_0754,"Abilities\\Spells\\Other\\Silence\\SilenceTarget.mdl")set udg_Specefect[31]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Kanalizaciya)call TriggerSleepAction(1.00)set udg_Random=GetRandomInt(1,2)
if(Trig_Inicializaciya_zadaniy_2_Func043C())then
call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_H01Z_0761,"Abilities\\Spells\\Other\\Silence\\SilenceTarget.mdl")set udg_Specefect[32]=GetLastCreatedEffectBJ()call EnableTrigger(gg_trg_Ogerelie_Amelii)else
call RemoveItem(gg_item_I09B_0748)endifendfunctionfunction InitTrig_Inicializaciya_zadaniy_2 takes nothing returns nothing
set gg_trg_Inicializaciya_zadaniy_2=CreateTrigger()call TriggerRegisterTimerEventSingle(gg_trg_Inicializaciya_zadaniy_2,5.00)call TriggerAddAction(gg_trg_Inicializaciya_zadaniy_2,function Trig_Inicializaciya_zadaniy_2_Actions)endfunctionfunction Trig_Inicializaciya_Func122C takes nothing returns booleanif(not(udg_Random<=2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_Func123C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_Func126C takes nothing returns booleanif(not(udg_Random<=2))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_Func127C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Inicializaciya_Actions takes nothing returns nothingcall SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED,4)call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED,4)call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED,4)call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED,4)call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED,4)call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED,4)call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_FOOD_CAP,3)call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_CAP,3)call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_CAP,3)call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_CAP,3)call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_CAP,3)call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_CAP,3)set udg_MinDal=250set udg_MaxDal=3000set udg_Hero_skill_lvl_1[1]=1set udg_Hero_skill_lvl_1[2]=1set udg_Hero_skill_lvl_1[3]=1set udg_Hero_skill_lvl_1[4]=1set udg_Hero_skill_lvl_1[5]=1set udg_Hero_skill_lvl_2[1]=1set udg_Hero_skill_lvl_2[2]=1set udg_Hero_skill_lvl_2[3]=1set udg_Hero_skill_lvl_2[4]=1set udg_Hero_skill_lvl_2[5]=1set udg_Hero_skill_lvl_3[1]=1set udg_Hero_skill_lvl_3[2]=1set udg_Hero_skill_lvl_3[3]=1set udg_Hero_skill_lvl_3[4]=1set udg_Hero_skill_lvl_3[5]=1set udg_Hero_skill_lvl_4[1]=1set udg_Hero_skill_lvl_4[2]=1set udg_Hero_skill_lvl_4[3]=1set udg_Hero_skill_lvl_4[4]=1set udg_Hero_skill_lvl_4[5]=1set udg_Hero_skill_lvl_5[1]=1set udg_Hero_skill_lvl_5[2]=1set udg_Hero_skill_lvl_5[3]=1set udg_Hero_skill_lvl_5[4]=1set udg_Hero_skill_lvl_5[5]=1set udg_Hero_skill_lvl_6[1]=1set udg_Hero_skill_lvl_6[2]=1set udg_Hero_skill_lvl_6[3]=1set udg_Hero_skill_lvl_6[4]=1set udg_Hero_skill_lvl_6[5]=1set udg_Sumka[1]=gg_unit_H00S_0592set udg_Sumka[2]=gg_unit_H00S_0595set udg_Sumka[3]=gg_unit_H00S_0596set udg_Sumka[4]=gg_unit_H00S_0597set udg_Sumka[5]=gg_unit_H00S_0598set udg_Sumka[6]=gg_unit_H00S_0599set udg_Uron_Generatoru=1call AddItemToStockBJ('wolg',gg_unit_Hpb2_0213,0,1)call AddItemToStockBJ('mort',gg_unit_Hpb2_0213,0,1)call AddItemToStockBJ('sorf',gg_unit_Hpb2_0213,0,1)call AddItemToStockBJ('bzbe',gg_unit_Hpb2_0213,0,1)call AddItemToStockBJ('sclp',gg_unit_Hpb2_0213,0,1)call AddItemToStockBJ('bzbf',gg_unit_Hpb2_0213,0,1)call AddItemToStockBJ('pdiv',gg_unit_Hpb2_0213,0,1)call AddItemToStockBJ('fgrg',gg_unit_Hpb2_0213,0,1)call AddItemToStockBJ('shdt',gg_unit_Hpb2_0213,0,1)call AddItemToStockBJ('skul',gg_unit_Hpb2_0213,0,1)call AddItemToStockBJ('I09S',gg_unit_H01Z_0761,0,1)call AddItemToStockBJ('I09T',gg_unit_H01Z_0761,0,1)call AddItemToStockBJ('I09U',gg_unit_H01Z_0761,0,1)call AddItemToStockBJ('I09V',gg_unit_H01Z_0761,0,1)call AddItemToStockBJ('I09W',gg_unit_H01Z_0761,0,1)call AddItemToStockBJ('I09X',gg_unit_H01Z_0761,0,1)call AddItemToStockBJ('I09Y',gg_unit_H01Z_0761,0,1)call AddItemToStockBJ('I09Z',gg_unit_H01Z_0761,0,1)call AddItemToStockBJ('I0A0',gg_unit_H01Z_0761,0,1)call AddItemToStockBJ('I0A1',gg_unit_H01Z_0761,0,1)call AddItemToStockBJ('I0A7',gg_unit_H01Z_0761,0,1)call SetDestructableInvulnerableBJ(gg_dest_XTmp_5838,true)call SetUnitTimeScalePercent(gg_unit_narg_0333,0.00)
call SetUnitTimeScalePercent(gg_unit_narg_0334,0.00)
call PauseUnitBJ(true,gg_unit_narg_0333)
call PauseUnitBJ(true,gg_unit_narg_0334)
call ModifyGateBJ(bj_GATEOPERATION_OPEN,gg_dest_DTg5_5265)call ModifyGateBJ(bj_GATEOPERATION_OPEN,gg_dest_Dofw_6089)call KillDestructable(gg_dest_YT00_3274)
call SetUnitAnimationWithRarity(gg_unit_h004_0109,"attack defend",RARITY_RARE)call SetUnitAnimationWithRarity(gg_unit_h004_0122,"attack defend",RARITY_FREQUENT)call IssueTargetOrder(gg_unit_nhea_0124,"attack",gg_unit_u003_0115)call IssueTargetOrder(gg_unit_nhea_0125,"attack",gg_unit_u003_0113)call IssueImmediateOrder(gg_unit_h006_0111,"manashieldon")call IssueImmediateOrder(gg_unit_h007_0208,"manashieldon")call SetUnitInvulnerable(gg_unit_uslh_0152,true)
call SetUnitInvulnerable(gg_unit_nshr_0402,true)
call SetUnitInvulnerable(gg_unit_nbsm_0775,true)
call SetTimeOfDay(0.00)call AddSpecialEffectTargetUnitBJ("overhead",gg_unit_nbee_0106,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")set udg_Specefect[2]=GetLastCreatedEffectBJ()set udg_Wolf=0set udg_Troll=0set udg_MoobS[1]=0set udg_MoobS[2]=0set udg_MoobS[3]=0set udg_MoobS[4]=0set udg_MoobS[5]=0set udg_MoobS[6]=0set udg_MoobS[7]=0set udg_MoobS[8]=0set udg_MoobS[9]=0set udg_MoobS[10]=0set udg_MoobS[11]=0set udg_MoobS[12]=0call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(11))call AdjustPlayerStateBJ(1500,Player(0),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1500,Player(1),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1500,Player(2),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1500,Player(3),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1500,Player(4),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1500,Player(5),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1500,Player(6),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(1500,Player(7),PLAYER_STATE_RESOURCE_GOLD)call TriggerSleepAction(5.00)set udg_Random=GetRandomInt(1,4)
if(Trig_Inicializaciya_Func122C())thencall CreateNUnitsAtLoc(1,'ntt1',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),3333.00,-7775.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ntt1',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),3188.00,-8900.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ntt1',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),3738.00,-8950.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ntt1',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),1465.00,-7200.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ntt1',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),1860.00,-7250.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ocbw',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),1300.00,-6050.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ocbw',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),1975.00,-6175.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ocbw',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),3300.00,-8500.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ocbw',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),5275.00,-9230.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'ocbw',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'njks',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),3435.00,-8775.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'njks',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),3345.00,-8705.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'njks',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),1625.00,-6550.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'njks',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwzr',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),4960.00,-9350.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nwiz',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),4990.00,-9390.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nwiz',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),4900.00,-9300.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nwiz',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp2',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp2',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp2',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp2',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp2',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
else
endifif(Trig_Inicializaciya_Func123C())thencall DisableTrigger(gg_trg_Bandit_go)set bj_forLoopAIndex=1set bj_forLoopAIndexEnd=50loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEndcall SetBlightRadiusLocBJ(true,Player(11),GetRandomLocInRect(gg_rct_Zona_4),52.00)set bj_forLoopAIndex=bj_forLoopAIndex+1endloopcall CreateNUnitsAtLoc(1,'nwc1',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),1625.00,-6540.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nwc1',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),3580.00,-8860.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nwc1',Player(11),OffsetLocation(GetRectCenter(GetPlayableMapRect()),4730.00,-9460.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nwc1',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwc1',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nzom',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngh1',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngh1',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngh1',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'ngh1',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nhfp',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nhfp',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nhfp',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nhfp',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nhfp',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nhfp',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nhfp',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp3',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp3',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp3',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp3',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp3',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp3',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp3',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp3',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp3',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp3',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp3',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'osp3',Player(11),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)
else
endifcall TriggerSleepAction(1.00)set udg_Random=GetRandomInt(1,4)
if(Trig_Inicializaciya_Func126C())thencall CreateNUnitsAtLoc(1,'nmh0',Player(10),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-8965.00,3900.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nmh0',Player(10),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-7850.00,1420.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nmh1',Player(10),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-7400.00,-500.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nmh1',Player(10),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-9150.00,960.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nmrv',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nmrv',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nmsc',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nmsc',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nmsc',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nmrl',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nmrl',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nmrl',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nmrl',Player(11),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call EnableTrigger(gg_trg_Morlock_lovusjka)else
endifif(Trig_Inicializaciya_Func127C())thencall CreateNUnitsAtLoc(1,'nntg',Player(10),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-7180.00,1420.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nntg',Player(10),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-7435.00,50.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nntg',Player(10),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-9212.00,-588.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nntg',Player(10),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-7577.00,2300.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nntg',Player(10),OffsetLocation(GetRectCenter(GetPlayableMapRect()),-9710.00,4080.00),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nsnp',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nsnp',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nsnp',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nsnp',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nsnp',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwgs',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwgs',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwgs',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nwgs',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nnrg',Player(10),GetRandomLocInRect(gg_rct_Zona_6),bj_UNIT_FACING)
call EnableTrigger(gg_trg_Morlock_lovusjka)else
endifendfunctionfunction InitTrig_Inicializaciya takes nothing returns nothingset gg_trg_Inicializaciya=CreateTrigger()call TriggerRegisterTimerEventSingle(gg_trg_Inicializaciya,1.00)
call TriggerAddAction(gg_trg_Inicializaciya,function Trig_Inicializaciya_Actions)endfunctionfunction Trig_Inicializaciya_Stand_Actions takes nothing returns nothing
call SetPlayerAllianceBJ(Player(8),ALLIANCE_PASSIVE,true,Player(6))call SetPlayerAllianceBJ(Player(9),ALLIANCE_PASSIVE,true,Player(6))call SetPlayerAllianceBJ(Player(7),ALLIANCE_PASSIVE,true,Player(6))call SetPlayerAllianceBJ(Player(6),ALLIANCE_PASSIVE,true,Player(9))call SetPlayerAllianceBJ(Player(6),ALLIANCE_PASSIVE,true,Player(8))call SetPlayerAllianceBJ(Player(6),ALLIANCE_PASSIVE,true,Player(7))call DoNotSaveReplay()call CinematicModeBJ(true,GetPlayersAll())call CameraSetupApplyForPlayer(true,gg_cam_Inicializaciya,Player(0),0)call CameraSetupApplyForPlayer(true,gg_cam_Inicializaciya,Player(1),0)call CameraSetupApplyForPlayer(true,gg_cam_Inicializaciya,Player(2),0)call CameraSetupApplyForPlayer(true,gg_cam_Inicializaciya,Player(3),0)call CameraSetupApplyForPlayer(true,gg_cam_Inicializaciya,Player(4),0)call TriggerSleepAction(1.00)call DisplayTimedTextToForce(GetPlayersAll(),1.00,"|c00FFFF00Генерация героев: |r|c0000FF00+|r+++++++++++++")call TriggerSleepAction(1.00)call DisplayTimedTextToForce(GetPlayersAll(),1.00,"|c00FFFF00Генерация героев: |r|c0000FF00++|r++++++++++++")call TriggerSleepAction(1.00)call DisplayTimedTextToForce(GetPlayersAll(),1.00,"|c00FFFF00Генерация героев: |r|c0000FF00+++|r+++++++++++")call TriggerSleepAction(1.00)call DisplayTimedTextToForce(GetPlayersAll(),1.00,"|c00FFFF00Генерация героев: |r|c0000FF00++++|r++++++++++")call TriggerSleepAction(1.00)call DisplayTimedTextToForce(GetPlayersAll(),1.00,"|c00FFFF00Генерация героев: |r|c0000FF00+++++|r+++++++++")call TriggerSleepAction(1.00)call DisplayTimedTextToForce(GetPlayersAll(),1.00,"|c00FFFF00Генерация героев: |r|c0000FF00++++++|r++++++++")call TriggerSleepAction(1.00)call DisplayTimedTextToForce(GetPlayersAll(),1.00,"|c00FFFF00Генерация героев: |r|c0000FF00+++++++|r+++++++")call TriggerSleepAction(1.00)call DisplayTimedTextToForce(GetPlayersAll(),1.00,"|c00FFFF00Генерация героев: |r|c0000FF00++++++++|r++++++")call TriggerSleepAction(1.00)call DisplayTimedTextToForce(GetPlayersAll(),1.00,"|c00FFFF00Генерация героев: |r|c0000FF00+++++++++|r+++++")call TriggerSleepAction(1.00)call DisplayTimedTextToForce(GetPlayersAll(),1.00,"|c00FFFF00Генерация героев: |r|c0000FF00++++++++++|r++++")call TriggerSleepAction(1.00)call DisplayTimedTextToForce(GetPlayersAll(),1.00,"|c00FFFF00Генерация героев: |r|c0000FF00+++++++++++|r+++")call TriggerSleepAction(1.00)call DisplayTimedTextToForce(GetPlayersAll(),1.00,"|c00FFFF00Генерация героев: |r|c0000FF00++++++++++++|r++")call TriggerSleepAction(1.00)call DisplayTimedTextToForce(GetPlayersAll(),1.00,"|c00FFFF00Генерация героев: |r|c0000FF00+++++++++++++|r+")call TriggerSleepAction(1.00)call CinematicModeBJ(false,GetPlayersAll())call DisplayTimedTextToForce(GetPlayersAll(),1.00,"|c00FFFF00Генерация героев: |r|c0000FF00++++++++++++++|r")call CameraSetupApplyForPlayer(true,gg_cam_Inicializaciya2,Player(0),2.00)call CameraSetupApplyForPlayer(true,gg_cam_Inicializaciya2,Player(1),2.00)call CameraSetupApplyForPlayer(true,gg_cam_Inicializaciya2,Player(2),2.00)call CameraSetupApplyForPlayer(true,gg_cam_Inicializaciya2,Player(3),2.00)call CameraSetupApplyForPlayer(true,gg_cam_Inicializaciya2,Player(4),2.00)call CameraSetupApplyForPlayer(true,gg_cam_Inicializaciya2,Player(5),2.00)call TriggerSleepAction(2)endfunctionfunction InitTrig_Inicializaciya_Stand takes nothing returns nothing
set gg_trg_Inicializaciya_Stand=CreateTrigger()call TriggerAddAction(gg_trg_Inicializaciya_Stand,function Trig_Inicializaciya_Stand_Actions)endfunctionfunction Trig_Kuznica_Func001C takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00D'))then
return false
endifreturn trueendfunctionfunction Trig_Kuznica_Func002C takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00E'))then
return false
endifreturn trueendfunctionfunction Trig_Kuznica_Func003C takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00F'))then
return false
endifreturn trueendfunctionfunction Trig_Kuznica_Func004C takes nothing returns boolean
if(not(GetSpellAbilityId()=='A02D'))then
return false
endifreturn trueendfunctionfunction Trig_Kuznica_Actions takes nothing returns nothingif(Trig_Kuznica_Func001C())thencall TriggerSleepAction(0.50)call ReplaceUnitBJ(GetTriggerUnit(),'n006',bj_UNIT_STATE_METHOD_RELATIVE)call SetUnitColor(GetLastReplacedUnitBJ(),PLAYER_COLOR_RED)else
endifif(Trig_Kuznica_Func002C())thencall TriggerSleepAction(0.50)call ReplaceUnitBJ(GetTriggerUnit(),'n007',bj_UNIT_STATE_METHOD_RELATIVE)call SetUnitColor(GetLastReplacedUnitBJ(),PLAYER_COLOR_BLUE)
else
endifif(Trig_Kuznica_Func003C())thencall TriggerSleepAction(0.50)call ReplaceUnitBJ(GetTriggerUnit(),'n000',bj_UNIT_STATE_METHOD_RELATIVE)call SetUnitColor(GetLastReplacedUnitBJ(),PLAYER_COLOR_PURPLE)else
endifif(Trig_Kuznica_Func004C())thencall TriggerSleepAction(0.50)call ReplaceUnitBJ(GetTriggerUnit(),'n009',bj_UNIT_STATE_METHOD_RELATIVE)call SetUnitColor(GetLastReplacedUnitBJ(),PLAYER_COLOR_YELLOW)else
endifendfunctionfunction InitTrig_Kuznica takes nothing returns nothingset gg_trg_Kuznica=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Kuznica,EVENT_PLAYER_UNIT_SPELL_EFFECT)call TriggerAddAction(gg_trg_Kuznica,function Trig_Kuznica_Actions)endfunctionfunction Trig_Trenerovka_Func002C takes nothing returns booleanif((GetUnitTypeId(GetAttackedUnitBJ())=='u003'))then
return trueendifif((GetUnitTypeId(GetAttackedUnitBJ())=='h004'))then
return trueendifreturn false
endfunctionfunction Trig_Trenerovka_Conditions takes nothing returns booleanif(not Trig_Trenerovka_Func002C())thenreturn false
endifif(not(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Trenerovka_Actions takes nothing returns nothingcall AddHeroXPSwapped(1,GetAttacker(),true)endfunctionfunction InitTrig_Trenerovka takes nothing returns nothingset gg_trg_Trenerovka=CreateTrigger()call TriggerRegisterAnyUnitEventBJ(gg_trg_Trenerovka,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_Trenerovka,Condition(function Trig_Trenerovka_Conditions))call TriggerAddAction(gg_trg_Trenerovka,function Trig_Trenerovka_Actions)endfunctionfunction Trig_Exp_hero_Actions takes nothing returns nothing
call AddHeroXPSwapped((GetUnitLevel(GetTriggerUnit())*10),GetKillingUnitBJ(),true)call AdjustPlayerStateBJ((GetUnitLevel(GetTriggerUnit())*GetRandomInt(1,5)),Player(0),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ((GetUnitLevel(GetTriggerUnit())*GetRandomInt(1,5)),Player(1),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ((GetUnitLevel(GetTriggerUnit())*GetRandomInt(1,5)),Player(2),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ((GetUnitLevel(GetTriggerUnit())*GetRandomInt(1,5)),Player(3),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ((GetUnitLevel(GetTriggerUnit())*GetRandomInt(1,5)),Player(4),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ((GetUnitLevel(GetTriggerUnit())*GetRandomInt(1,5)),Player(5),PLAYER_STATE_RESOURCE_GOLD)call AddHeroXPSwapped((GetUnitLevel(GetTriggerUnit())*1),udg_Hero[1],true)call AddHeroXPSwapped((GetUnitLevel(GetTriggerUnit())*1),udg_Hero[2],true)call AddHeroXPSwapped((GetUnitLevel(GetTriggerUnit())*1),udg_Hero[3],true)call AddHeroXPSwapped((GetUnitLevel(GetTriggerUnit())*1),udg_Hero[4],true)call AddHeroXPSwapped((GetUnitLevel(GetTriggerUnit())*1),udg_Hero[5],true)call AddHeroXPSwapped((GetUnitLevel(GetTriggerUnit())*1),udg_Hero[6],true)endfunctionfunction InitTrig_Exp_hero takes nothing returns nothing
set gg_trg_Exp_hero=CreateTrigger()call TriggerRegisterPlayerUnitEventSimple(gg_trg_Exp_hero,Player(PLAYER_NEUTRAL_AGGRESSIVE),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(gg_trg_Exp_hero,Player(11),EVENT_PLAYER_UNIT_DEATH)call TriggerRegisterPlayerUnitEventSimple(gg_trg_Exp_hero,Player(10),EVENT_PLAYER_UNIT_DEATH)call TriggerAddAction(gg_trg_Exp_hero,function Trig_Exp_hero_Actions)endfunctionfunction Trig_Opisanie_Actions takes nothing returns nothing
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"|c00FFFF00Режим удержа|r","Режим удержания. После активации на замок начинают идти крипы с правого верхнего угла карты. Рекомендуемое количество игроков 2-4. Активировать режим можно в начале игры командой:
|c0000FF00-defense|r","ReplaceableTextures\\CommandButtons\\BTNTinyCastle.blp")call QuestSetEnabledBJ(true,GetLastCreatedQuestBJ())
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"|c00FFFF00Цель|r","За отведенное время вы должны раскачать героя и организовать оборону. Финальное нападение идет из правого верхнего угла. Что бы победить необходимо уничтожить Саргероса. Для организации обороны выполните задания у короля. Что бы набрать воинов для обороны необходим королевский указ, собирать можно воинов, над которыми появился знак короны. Для запуска финальной битвы раньше времени напишите в чате|c0000FF00 -Go|r. (Убедитесь что вы готовы к обороне). После прохождения вам будет выдан бонус в зависимости от уровня сложности)","ReplaceableTextures\\PassiveButtons\\PASBTNCommand.blp")
call QuestSetEnabledBJ(true,GetLastCreatedQuestBJ())
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"|c0021C000Классы|r","В зависимости от класса герой будет получать определенные бонусы на каждом уровне:|n|c00008000Tanker:|r+10 здоровья|n|cFFFF0000Warrior|r/|cFFFF0000Archer:|r+1 урона |n|c00ff00ffSorcerer:|r+10 маны|n|c0000ff00Charmer:|r+5 маны,+0.05 регенерации маны|n|c000000FFDefender:|r+1/5 защиты,|c00C8C800Keeper:|r+5 здоровья,+1/2 урона|n|c00C8C800Summoner:|r+5 здоровья,+5 маны.","ReplaceableTextures\\PassiveButtons\\PASBTNUnholyAura.blp")call QuestSetEnabledBJ(true,GetLastCreatedQuestBJ())
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"Оружие улучшение","Оружие 1 уровня - Оружие 5 уровня:|nКаменные когтиОбсидиановые когти|nЖелезный меч-Кровавый меч|nЖелезные кинжалы-Лунные кинжалы|nЖелезный топор-Кровавый топор|nЖелезное копье-Отравленный трезубец|nБоевой молот-Молот Инквизитора|nПерчатки проклятых-перчатки демона|nЭльфийский лук-Лук Элуны","ReplaceableTextures\\CommandButtons\\BTNSteelMelee.blp")
call QuestSetEnabledBJ(true,GetLastCreatedQuestBJ())
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"Доспехи улучшение","Доспехи 1 уровня - Доспехи 5 уровня:|nКольцо защиты-Ледяное кольцо|nТемное кольцо-Сапфирное кольцо|nЖелезный щит-Щит неупокоенных|nДеревянный щит-Щит друида|nНакидка паладина-Шлем крестоносца|nЖелезный доспех-Кольчуга дракона|nПерчатки боя-Перчатки Титана|nТуфли Ловкости-Сапоги Гаритоса|nАмулет-Амулет Азары","ReplaceableTextures\\CommandButtons\\BTNHumanArmorUpOne.blp")call QuestSetEnabledBJ(true,GetLastCreatedQuestBJ())
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"Предметы заточка","Предмет 1 уровня - Предмет 5 уровня:|nМеч пехотинца-Меч возмездия|nИвовый лук-Осадный арбалет|nВакидзаси-Катана|nБраслет кочевника-Рунический браслет|nКабуто-Кувагата|nПояс из кожи-Пояс из кожи дракона|nКожаный жилет-Жилет проповедника|nДеревянный щит-Щит доблести","ReplaceableTextures\\CommandButtons\\BTNMantleOfIntelligence.blp")call QuestSetEnabledBJ(true,GetLastCreatedQuestBJ())
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"Воскрешение","После смерти игрок воскреснит если у него остались кресты перерождения.
|c00FF0000!|r Игрока без креста можно воскресить купив алтарь королей.","ReplaceableTextures\\PassiveButtons\\PASBTNReincarnation.blp")call QuestSetEnabledBJ(true,GetLastCreatedQuestBJ())
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"Камера","|c00FFFF00Для изменения дальности камеры введите команду:|r
|c0000FF00-Zoom|r","ReplaceableTextures\\WorldEditUI\\Doodad-Cinematic.blp")
call QuestSetEnabledBJ(true,GetLastCreatedQuestBJ())
endfunctionfunction InitTrig_Opisanie takes nothing returns nothing
set gg_trg_Opisanie=CreateTrigger()call TriggerRegisterTimerEventSingle(gg_trg_Opisanie,1.00)call TriggerAddAction(gg_trg_Opisanie,function Trig_Opisanie_Actions)endfunctionfunction Trig_Dop_slognost_Conditions takes nothing returns booleanif(not(GetOwningPlayer(GetAttackedUnitBJ())!=Player(11)))thenreturn false
endifif(not(GetOwningPlayer(GetAttackedUnitBJ())!=Player(10)))thenreturn false
endifif(not(GetOwningPlayer(GetAttackedUnitBJ())!=Player(9)))then
return false
endifif(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifif(not(GetHeroStatBJ(bj_HEROSTAT_AGI,GetAttackedUnitBJ(),true)>GetHeroStatBJ(bj_HEROSTAT_STR,GetAttackedUnitBJ(),true)))then
return false
endifif(not(GetHeroStatBJ(bj_HEROSTAT_AGI,GetAttackedUnitBJ(),true)>GetHeroStatBJ(bj_HEROSTAT_INT,GetAttackedUnitBJ(),true)))then
return false
endifreturn trueendfunctionfunction Trig_Dop_slognost_Actions takes nothing returns nothing
call TriggerSleepAction(1.00)call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetUnitLevel(GetAttackedUnitBJ()))/ 2.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)endfunctionfunction InitTrig_Dop_slognost takes nothing returns nothing
set gg_trg_Dop_slognost=CreateTrigger()call DisableTrigger(gg_trg_Dop_slognost)
call TriggerRegisterAnyUnitEventBJ(gg_trg_Dop_slognost,EVENT_PLAYER_UNIT_ATTACKED)call TriggerAddCondition(gg_trg_Dop_slognost,Condition(function Trig_Dop_slognost_Conditions))call TriggerAddAction(gg_trg_Dop_slognost,function Trig_Dop_slognost_Actions)endfunctionfunction Trig_Day_Func018Func002Func003Func001Func001Func001Func001C takes nothing returns booleanif(not(GetPlayerController(Player(1))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func018Func002Func003Func001Func001Func001C takes nothing returns booleanif(not(GetPlayerController(Player(2))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func018Func002Func003Func001Func001C takes nothing returns boolean
if(not(GetPlayerController(Player(3))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func018Func002Func003Func001C takes nothing returns booleanif(not(GetPlayerController(Player(4))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func018Func002Func003C takes nothing returns booleanif(not(GetPlayerController(Player(5))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func018Func002C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func018C takes nothing returns boolean
if(not(udg_Day==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func019Func002Func003Func001Func001Func001Func001C takes nothing returns booleanif(not(GetPlayerController(Player(1))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func019Func002Func003Func001Func001Func001C takes nothing returns booleanif(not(GetPlayerController(Player(2))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func019Func002Func003Func001Func001C takes nothing returns boolean
if(not(GetPlayerController(Player(3))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func019Func002Func003Func001C takes nothing returns booleanif(not(GetPlayerController(Player(4))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func019Func002Func003C takes nothing returns booleanif(not(GetPlayerController(Player(5))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func019Func002C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func019C takes nothing returns boolean
if(not(udg_Day==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020Func002Func003Func001Func001Func001Func001C takes nothing returns booleanif(not(GetPlayerController(Player(1))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020Func002Func003Func001Func001Func001C takes nothing returns booleanif(not(GetPlayerController(Player(2))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020Func002Func003Func001Func001C takes nothing returns boolean
if(not(GetPlayerController(Player(3))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020Func002Func003Func001C takes nothing returns booleanif(not(GetPlayerController(Player(4))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020Func002Func003C takes nothing returns booleanif(not(GetPlayerController(Player(5))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020Func002Func006Func001Func001Func001Func001C takes nothing returns booleanif(not(GetPlayerController(Player(1))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020Func002Func006Func001Func001Func001C takes nothing returns booleanif(not(GetPlayerController(Player(2))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020Func002Func006Func001Func001C takes nothing returns boolean
if(not(GetPlayerController(Player(3))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020Func002Func006Func001C takes nothing returns booleanif(not(GetPlayerController(Player(4))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020Func002Func006C takes nothing returns booleanif(not(GetPlayerController(Player(5))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020Func002Func009Func001Func001Func001Func001C takes nothing returns booleanif(not(GetPlayerController(Player(1))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020Func002Func009Func001Func001Func001C takes nothing returns booleanif(not(GetPlayerController(Player(2))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020Func002Func009Func001Func001C takes nothing returns boolean
if(not(GetPlayerController(Player(3))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020Func002Func009Func001C takes nothing returns booleanif(not(GetPlayerController(Player(4))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020Func002Func009C takes nothing returns booleanif(not(GetPlayerController(Player(5))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020Func002Func012Func001Func001Func001Func001C takes nothing returns booleanif(not(GetPlayerController(Player(1))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020Func002Func012Func001Func001Func001C takes nothing returns booleanif(not(GetPlayerController(Player(2))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020Func002Func012Func001Func001C takes nothing returns boolean
if(not(GetPlayerController(Player(3))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020Func002Func012Func001C takes nothing returns booleanif(not(GetPlayerController(Player(4))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020Func002Func012C takes nothing returns booleanif(not(GetPlayerController(Player(5))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020Func002C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func020C takes nothing returns boolean
if(not(udg_Day==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func021Func002Func003Func001Func001Func001Func001C takes nothing returns booleanif(not(GetPlayerController(Player(1))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func021Func002Func003Func001Func001Func001C takes nothing returns booleanif(not(GetPlayerController(Player(2))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func021Func002Func003Func001Func001C takes nothing returns boolean
if(not(GetPlayerController(Player(3))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func021Func002Func003Func001C takes nothing returns booleanif(not(GetPlayerController(Player(4))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func021Func002Func003C takes nothing returns booleanif(not(GetPlayerController(Player(5))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func021Func002C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func021C takes nothing returns boolean
if(not(udg_Day==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func022Func002Func003Func001Func001Func001Func001C takes nothing returns booleanif(not(GetPlayerController(Player(1))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func022Func002Func003Func001Func001Func001C takes nothing returns booleanif(not(GetPlayerController(Player(2))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func022Func002Func003Func001Func001C takes nothing returns boolean
if(not(GetPlayerController(Player(3))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func022Func002Func003Func001C takes nothing returns booleanif(not(GetPlayerController(Player(4))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func022Func002Func003C takes nothing returns booleanif(not(GetPlayerController(Player(5))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func022Func002C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func022C takes nothing returns boolean
if(not(udg_Day==7))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func023Func002Func003Func001Func001Func001Func001C takes nothing returns booleanif(not(GetPlayerController(Player(1))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func023Func002Func003Func001Func001Func001C takes nothing returns booleanif(not(GetPlayerController(Player(2))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func023Func002Func003Func001Func001C takes nothing returns boolean
if(not(GetPlayerController(Player(3))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func023Func002Func003Func001C takes nothing returns booleanif(not(GetPlayerController(Player(4))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func023Func002Func003C takes nothing returns booleanif(not(GetPlayerController(Player(5))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func023Func002C takes nothing returns booleanif(not(udg_Random==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func023C takes nothing returns boolean
if(not(udg_Day==8))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func024Func002C takes nothing returns booleanif(not(udg_Random<=2))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func024C takes nothing returns boolean
if(not(udg_Day==9))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func025Func002C takes nothing returns booleanif(not(udg_Random==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func025C takes nothing returns boolean
if(not(udg_Day==10))then
return false
endifreturn trueendfunctionfunction Trig_Day_Func026Func002C takes nothing returns booleanif(not(udg_Random<=2))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func026Func003C takes nothing returns booleanif(not(udg_Random==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func026Func004C takes nothing returns booleanif(not(udg_Random==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func026Func005C takes nothing returns booleanif(not(udg_Random==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Day_Func026C takes nothing returns boolean
if(not(udg_Day==11))then
return false
endifreturn trueendfunctionfunction Trig_Day_Func027C takes nothing returns boolean
if(not(udg_Day==14))then
return false
endifreturn trueendfunctionfunction Trig_Day_Actions takes nothing returns nothingcall AdjustPlayerStateBJ(1,GetOwningPlayer(gg_unit_haro_0767),PLAYER_STATE_RESOURCE_LUMBER)call AdjustPlayerStateBJ(1500,GetOwningPlayer(gg_unit_Hmkg_0623),PLAYER_STATE_RESOURCE_GOLD)
call IssueTargetOrder(gg_unit_e005_0658,"smart",gg_unit_e005_0658)call ModifyHeroStat(bj_HEROSTAT_AGI,gg_unit_U00U_0639,bj_MODIFYMETHOD_ADD,1)
call ModifyHeroStat(bj_HEROSTAT_STR,gg_unit_U00U_0639,bj_MODIFYMETHOD_ADD,1)
call ModifyHeroStat(bj_HEROSTAT_INT,gg_unit_U00U_0639,bj_MODIFYMETHOD_ADD,1)
call ModifyHeroStat(bj_HEROSTAT_STR,gg_unit_O006_0622,bj_MODIFYMETHOD_ADD,5)
call SetHeroLevelBJ(gg_unit_U00U_0639,(GetUnitLevel(gg_unit_U00U_0639)+1),true)call DisplayTextToForce(GetPlayersAll(),(I2S(udg_Day)+"день"))set udg_Day=(udg_Day+1)call DisplayTextToForce(GetPlayersAll(),("Доход за день : "+("|c00C8C800"+(I2S(udg_Gold)+("|r"+" золота.")))))call AdjustPlayerStateBJ(udg_Gold,Player(0),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(udg_Gold,Player(1),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(udg_Gold,Player(2),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(udg_Gold,Player(3),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(udg_Gold,Player(4),PLAYER_STATE_RESOURCE_GOLD)call AdjustPlayerStateBJ(udg_Gold,Player(5),PLAYER_STATE_RESOURCE_GOLD)if(Trig_Day_Func018C())thenset udg_Random=GetRandomInt(1,3)
if(Trig_Day_Func018Func002C())thencall DisplayTextToForce(GetPlayersAll(),"|c0090ee90Бандиты подкупили жителя деревни, что бы разобратся с героями.|r")call SetUnitOwner(gg_unit_nsty_0643,Player(6),true)if(Trig_Day_Func018Func002Func003C())thenset udg_Random=GetRandomInt(1,6)
else
if(Trig_Day_Func018Func002Func003Func001C())then
set udg_Random=GetRandomInt(1,5)
else
if(Trig_Day_Func018Func002Func003Func001Func001C())thenset udg_Random=GetRandomInt(1,4)
else
if(Trig_Day_Func018Func002Func003Func001Func001Func001C())thenset udg_Random=GetRandomInt(1,3)
else
if(Trig_Day_Func018Func002Func003Func001Func001Func001Func001C())thenset udg_Random=GetRandomInt(1,2)
else
set udg_Random=GetRandomInt(1,1)
endifendifendifendifendifcall IssuePointOrderLoc(gg_unit_nsty_0643,"attack",GetUnitLoc(udg_Hero[udg_Random]))
else
endifelse
endifif(Trig_Day_Func019C())thenset udg_Random=GetRandomInt(1,3)
if(Trig_Day_Func019Func002C())thencall DisplayTextToForce(GetPlayersAll(),"|c0090ee90Бандиты отправили убийцу разобратся с героями.|r")call CreateNUnitsAtLoc(1,'nass',Player(6),GetUnitLoc(gg_unit_ncop_0127),bj_UNIT_FACING)if(Trig_Day_Func019Func002Func003C())thenset udg_Random=GetRandomInt(1,6)
else
if(Trig_Day_Func019Func002Func003Func001C())then
set udg_Random=GetRandomInt(1,5)
else
if(Trig_Day_Func019Func002Func003Func001Func001C())thenset udg_Random=GetRandomInt(1,4)
else
if(Trig_Day_Func019Func002Func003Func001Func001Func001C())thenset udg_Random=GetRandomInt(1,3)
else
if(Trig_Day_Func019Func002Func003Func001Func001Func001Func001C())thenset udg_Random=GetRandomInt(1,2)
else
set udg_Random=GetRandomInt(1,1)
endifendifendifendifendifcall IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(udg_Hero[udg_Random]))else
endifelse
endifif(Trig_Day_Func020C())thenset udg_Random=GetRandomInt(1,4)
if(Trig_Day_Func020Func002C())thencall DisplayTextToForce(GetPlayersAll(),"|c0090ee90Окультисты выпустили проклятых зверей.|r")call CreateNUnitsAtLoc(1,'nass',Player(6),GetUnitLoc(gg_unit_ncop_0127),bj_UNIT_FACING)if(Trig_Day_Func020Func002Func003C())thenset udg_Random=GetRandomInt(1,6)
else
if(Trig_Day_Func020Func002Func003Func001C())then
set udg_Random=GetRandomInt(1,5)
else
if(Trig_Day_Func020Func002Func003Func001Func001C())thenset udg_Random=GetRandomInt(1,4)
else
if(Trig_Day_Func020Func002Func003Func001Func001Func001C())thenset udg_Random=GetRandomInt(1,3)
else
if(Trig_Day_Func020Func002Func003Func001Func001Func001Func001C())thenset udg_Random=GetRandomInt(1,2)
else
set udg_Random=GetRandomInt(1,1)
endifendifendifendifendifcall IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(udg_Hero[udg_Random]))call CreateNUnitsAtLoc(1,'nass',Player(6),GetUnitLoc(gg_unit_ncop_0127),bj_UNIT_FACING)if(Trig_Day_Func020Func002Func006C())thenset udg_Random=GetRandomInt(1,6)
else
if(Trig_Day_Func020Func002Func006Func001C())then
set udg_Random=GetRandomInt(1,5)
else
if(Trig_Day_Func020Func002Func006Func001Func001C())thenset udg_Random=GetRandomInt(1,4)
else
if(Trig_Day_Func020Func002Func006Func001Func001Func001C())thenset udg_Random=GetRandomInt(1,3)
else
if(Trig_Day_Func020Func002Func006Func001Func001Func001Func001C())thenset udg_Random=GetRandomInt(1,2)
else
set udg_Random=GetRandomInt(1,1)
endifendifendifendifendifcall IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(udg_Hero[udg_Random]))call CreateNUnitsAtLoc(1,'nass',Player(6),GetUnitLoc(gg_unit_ncop_0127),bj_UNIT_FACING)if(Trig_Day_Func020Func002Func009C())thenset udg_Random=GetRandomInt(1,6)
else
if(Trig_Day_Func020Func002Func009Func001C())then
set udg_Random=GetRandomInt(1,5)
else
if(Trig_Day_Func020Func002Func009Func001Func001C())thenset udg_Random=GetRandomInt(1,4)
else
if(Trig_Day_Func020Func002Func009Func001Func001Func001C())thenset udg_Random=GetRandomInt(1,3)
else
if(Trig_Day_Func020Func002Func009Func001Func001Func001Func001C())thenset udg_Random=GetRandomInt(1,2)
else
set udg_Random=GetRandomInt(1,1)
endifendifendifendifendifcall IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(udg_Hero[udg_Random]))call CreateNUnitsAtLoc(1,'nass',Player(6),GetUnitLoc(gg_unit_ncop_0127),bj_UNIT_FACING)if(Trig_Day_Func020Func002Func012C())thenset udg_Random=GetRandomInt(1,6)
else
if(Trig_Day_Func020Func002Func012Func001C())then
set udg_Random=GetRandomInt(1,5)
else
if(Trig_Day_Func020Func002Func012Func001Func001C())thenset udg_Random=GetRandomInt(1,4)
else
if(Trig_Day_Func020Func002Func012Func001Func001Func001C())thenset udg_Random=GetRandomInt(1,3)
else
if(Trig_Day_Func020Func002Func012Func001Func001Func001Func001C())thenset udg_Random=GetRandomInt(1,2)
else
set udg_Random=GetRandomInt(1,1)
endifendifendifendifendifcall IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(udg_Hero[udg_Random]))else
endifelse
endifif(Trig_Day_Func021C())thenset udg_Random=GetRandomInt(1,3)
if(Trig_Day_Func021Func002C())thencall DisplayTextToForce(GetPlayersAll(),"|c0090ee90Отряд инквизиции охотиться на героев.|r")
call CreateNUnitsAtLoc(1,'hspt',Player(6),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)if(Trig_Day_Func021Func002Func003C())thenset udg_Random=GetRandomInt(1,6)
else
if(Trig_Day_Func021Func002Func003Func001C())then
set udg_Random=GetRandomInt(1,5)
else
if(Trig_Day_Func021Func002Func003Func001Func001C())thenset udg_Random=GetRandomInt(1,4)
else
if(Trig_Day_Func021Func002Func003Func001Func001Func001C())thenset udg_Random=GetRandomInt(1,3)
else
if(Trig_Day_Func021Func002Func003Func001Func001Func001Func001C())thenset udg_Random=GetRandomInt(1,2)
else
set udg_Random=GetRandomInt(1,1)
endifendifendifendifendifcall IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(udg_Hero[udg_Random]))call CreateNUnitsAtLoc(1,'hspt',Player(6),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)call IssueTargetOrder(GetLastCreatedUnit(),"attack",udg_Hero[udg_Random])else
endifelse
endifif(Trig_Day_Func022C())thenset udg_Random=GetRandomInt(1,3)
if(Trig_Day_Func022Func002C())thencall DisplayTextToForce(GetPlayersAll(),"|c0090ee90Отряд рыцарей охотиться на героев.|r")call CreateNUnitsAtLoc(1,'hkni',Player(6),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)if(Trig_Day_Func022Func002Func003C())thenset udg_Random=GetRandomInt(1,6)
else
if(Trig_Day_Func022Func002Func003Func001C())then
set udg_Random=GetRandomInt(1,5)
else
if(Trig_Day_Func022Func002Func003Func001Func001C())thenset udg_Random=GetRandomInt(1,4)
else
if(Trig_Day_Func022Func002Func003Func001Func001Func001C())thenset udg_Random=GetRandomInt(1,3)
else
if(Trig_Day_Func022Func002Func003Func001Func001Func001Func001C())thenset udg_Random=GetRandomInt(1,2)
else
set udg_Random=GetRandomInt(1,1)
endifendifendifendifendifcall IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetUnitLoc(udg_Hero[udg_Random]))call CreateNUnitsAtLoc(1,'hkni',Player(6),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)call IssueTargetOrder(GetLastCreatedUnit(),"attack",udg_Hero[udg_Random])call CreateNUnitsAtLoc(1,'hkni',Player(6),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)call IssueTargetOrder(GetLastCreatedUnit(),"attack",udg_Hero[udg_Random])else
endifelse
endifif(Trig_Day_Func023C())thenset udg_Random=GetRandomInt(1,3)
if(Trig_Day_Func023Func002C())thencall DisplayTextToForce(GetPlayersAll(),"|c0090ee90Ассасин охотится на героев.|r")call SetUnitOwner(gg_unit_nssn_0645,Player(6),false)
if(Trig_Day_Func023Func002Func003C())thenset udg_Random=GetRandomInt(1,6)
else
if(Trig_Day_Func023Func002Func003Func001C())then
set udg_Random=GetRandomInt(1,5)
else
if(Trig_Day_Func023Func002Func003Func001Func001C())thenset udg_Random=GetRandomInt(1,4)
else
if(Trig_Day_Func023Func002Func003Func001Func001Func001C())thenset udg_Random=GetRandomInt(1,3)
else
if(Trig_Day_Func023Func002Func003Func001Func001Func001Func001C())thenset udg_Random=GetRandomInt(1,2)
else
set udg_Random=GetRandomInt(1,1)
endifendifendifendifendifcall IssueTargetOrder(gg_unit_nssn_0645,"attack",udg_Hero[udg_Random])else
endifelse
endifif(Trig_Day_Func024C())thenset udg_Random=GetRandomInt(1,3)
if(Trig_Day_Func024Func002C())thencall PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Zona_4),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,0.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00На замок готовится нападение!|r")call TriggerSleepAction(10.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Zona_4,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))
call TriggerSleepAction(12.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Zona_4,Player(11)),"attack",GetUnitLoc(gg_unit_h007_0208))
else
endifelse
endifif(Trig_Day_Func025C())thenset udg_Random=GetRandomInt(1,3)
if(Trig_Day_Func025Func002C())thencall PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(gg_rct_Zona_5),5.00,bj_MINIMAPPINGSTYLE_ATTACK,100.00,100.00,0.00)call DisplayTextToForce(GetPlayersAll(),"|c00FFFF00На орду может готовится нападение!|r")call TriggerSleepAction(10.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Zona_5,Player(11)),"attack",GetRectCenter(gg_rct_Orda))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Zona_5,Player(11)),"attack",GetRectCenter(gg_rct_Orda))call TriggerSleepAction(8.00)call GroupPointOrderLoc(GetUnitsInRectOfPlayer(gg_rct_Zona_5,Player(11)),"attack",GetRectCenter(gg_rct_Orda))else
endifelse
endifif(Trig_Day_Func026C())thenset udg_Random=GetRandomInt(1,6)
if(Trig_Day_Func026Func002C())thencall TriggerExecute(gg_trg_Night_Dead)else
endifif(Trig_Day_Func026Func003C())thencall TriggerExecute(gg_trg_Smertokril_Napadenie)
else
endifif(Trig_Day_Func026Func004C())thencall TriggerExecute(gg_trg_Ktun)
else
endifif(Trig_Day_Func026Func005C())thencall TriggerExecute(gg_trg_Rohan)else
endifelse
endifif(Trig_Day_Func027C())thencall CreateNUnitsAtLoc(1,'nfrl',Player(0),GetRandomLocInRect(gg_rct_Zamok),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrl',Player(0),GetRandomLocInRect(gg_rct_Bezlikie_Ozera),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrl',Player(0),GetRandomLocInRect(gg_rct_Dalaran),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nfrl',Player(0),GetRandomLocInRect(gg_rct_Elfy),bj_UNIT_FACING)call CreateNUnitsAtLoc(1,'nfrl',Player(0),GetRandomLocInRect(gg_rct_Zona_4),bj_UNIT_FACING)else
endifendfunctionfunction InitTrig_Day takes nothing returns nothingset gg_trg_Day=CreateTrigger()call TriggerRegisterTimerEventPeriodic(gg_trg_Day,360.00)call TriggerAddAction(gg_trg_Day,function Trig_Day_Actions)endfunctionfunction Trig_Generator_Actions takes nothing returns nothingcall CustomDefeatBJ(Player(0),"Вы проиграли!")call CustomDefeatBJ(Player(1),"Вы проиграли!")call CustomDefeatBJ(Player(2),"Вы проиграли!")call CustomDefeatBJ(Player(3),"Вы проиграли!")call CustomDefeatBJ(Player(4),"Вы проиграли!")call CustomDefeatBJ(Player(5),"Вы проиграли!")call CustomDefeatBJ(Player(6),"Вы проиграли!")call CustomDefeatBJ(Player(7),"Вы проиграли!")endfunctionfunction InitTrig_Generator takes nothing returns nothingset gg_trg_Generator=CreateTrigger()
call TriggerRegisterUnitEvent(gg_trg_Generator,gg_unit_h007_0208,EVENT_UNIT_DEATH)call TriggerAddAction(gg_trg_Generator,function Trig_Generator_Actions)endfunctionfunction Trig_Specific_hero_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))thenreturn false
endifreturn trueendfunctionfunction Trig_Specific_hero_Actions takes nothing returns nothingcall SetPlayerTechResearchedSwap('R000',(GetUnitLevel(GetTriggerUnit())/ 4),GetOwningPlayer(GetTriggerUnit()))call SetPlayerTechResearchedSwap('R001',GetHeroLevel(GetTriggerUnit()),GetOwningPlayer(GetTriggerUnit()))call SetPlayerTechResearchedSwap('R00Y',GetHeroLevel(GetTriggerUnit()),GetOwningPlayer(GetTriggerUnit()))call SetPlayerTechResearchedSwap('R002',GetHeroLevel(GetTriggerUnit()),GetOwningPlayer(GetTriggerUnit()))call SetPlayerTechResearchedSwap('R003',GetHeroLevel(GetTriggerUnit()),GetOwningPlayer(GetTriggerUnit()))call SetPlayerTechResearchedSwap('R00X',GetHeroLevel(GetTriggerUnit()),GetOwningPlayer(GetTriggerUnit()))call SetPlayerTechResearchedSwap('R004',GetHeroLevel(GetTriggerUnit()),GetOwningPlayer(GetTriggerUnit()))call SetPlayerTechResearchedSwap('R005',(GetUnitLevel(GetTriggerUnit())/ 2),GetOwningPlayer(GetTriggerUnit()))call SetPlayerTechResearchedSwap('R013',GetHeroLevel(GetTriggerUnit()),GetOwningPlayer(GetTriggerUnit()))endfunctionfunction InitTrig_Specific_hero takes nothing returns nothingset gg_trg_Specific_hero=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Specific_hero,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(gg_trg_Specific_hero,Condition(function Trig_Specific_hero_Conditions))
call TriggerAddAction(gg_trg_Specific_hero,function Trig_Specific_hero_Actions)endfunctionfunction Trig_Level_Slognosty_Func003C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING))thenreturn false
endifif(not(GetPlayerController(Player(0))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Level_Slognosty_Func004C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING))thenreturn false
endifif(not(GetPlayerController(Player(1))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Level_Slognosty_Func005C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING))thenreturn false
endifif(not(GetPlayerController(Player(2))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Level_Slognosty_Func006C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING))thenreturn false
endifif(not(GetPlayerController(Player(3))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Level_Slognosty_Func007C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING))thenreturn false
endifif(not(GetPlayerController(Player(4))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Level_Slognosty_Func008C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_PLAYING))thenreturn false
endifif(not(GetPlayerController(Player(5))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Level_Slognosty_Func009C takes nothing returns boolean
if(not(udg_LevelSlognosaty==1))thenreturn false
endifreturn trueendfunctionfunction Trig_Level_Slognosty_Func010C takes nothing returns boolean
if(not(udg_LevelSlognosaty==2))thenreturn false
endifreturn trueendfunctionfunction Trig_Level_Slognosty_Func011C takes nothing returns boolean
if(not(udg_LevelSlognosaty==3))thenreturn false
endifreturn trueendfunctionfunction Trig_Level_Slognosty_Func012C takes nothing returns boolean
if(not(udg_LevelSlognosaty==4))thenreturn false
endifreturn trueendfunctionfunction Trig_Level_Slognosty_Func013C takes nothing returns boolean
if(not(udg_LevelSlognosaty==5))thenreturn false
endifreturn trueendfunctionfunction Trig_Level_Slognosty_Func014C takes nothing returns boolean
if(not(udg_LevelSlognosaty==6))thenreturn false
endifreturn trueendfunctionfunction Trig_Level_Slognosty_Actions takes nothing returns nothingcall DisableTrigger(GetTriggeringTrigger())set udg_LevelSlognosaty=0if(Trig_Level_Slognosty_Func003C())thenset udg_LevelSlognosaty=(udg_LevelSlognosaty+1)else
endifif(Trig_Level_Slognosty_Func004C())thenset udg_LevelSlognosaty=(udg_LevelSlognosaty+1)else
endifif(Trig_Level_Slognosty_Func005C())thenset udg_LevelSlognosaty=(udg_LevelSlognosaty+1)else
endifif(Trig_Level_Slognosty_Func006C())thenset udg_LevelSlognosaty=(udg_LevelSlognosaty+1)else
endifif(Trig_Level_Slognosty_Func007C())thenset udg_LevelSlognosaty=(udg_LevelSlognosaty+1)else
endifif(Trig_Level_Slognosty_Func008C())thenset udg_LevelSlognosaty=(udg_LevelSlognosaty+1)else
endifif(Trig_Level_Slognosty_Func009C())thencall SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_GOLD)+1250))call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_GOLD)+1250))call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_GOLD)+1250))call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_GOLD)+1250))call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_GOLD)+1250))call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_GOLD)+1250))set udg_Timer_celoe[1]=(udg_Timer_celoe[1]+1800.00)call DestroyTimerDialog(GetLastCreatedTimerDialogBJ())call CreateTimerDialogBJ(udg_Timer[1],"Вторжение:")
call StartTimerBJ(udg_Timer[1],false,udg_Timer_celoe[1])
call TimerDialogDisplayBJ(true,GetLastCreatedTimerDialogBJ())else
endifif(Trig_Level_Slognosty_Func010C())thencall SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_GOLD)+1000))call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_GOLD)+1000))call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_GOLD)+1000))call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_GOLD)+1000))call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_GOLD)+1000))call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_GOLD)+1000))set udg_Timer_celoe[1]=(udg_Timer_celoe[1]+1440.00)call DestroyTimerDialog(GetLastCreatedTimerDialogBJ())call CreateTimerDialogBJ(udg_Timer[1],"Вторжение:")
call StartTimerBJ(udg_Timer[1],false,udg_Timer_celoe[1])
call TimerDialogDisplayBJ(true,GetLastCreatedTimerDialogBJ())call SetPlayerTechResearchedSwap('Rume',1,Player(11))call SetPlayerTechResearchedSwap('Rume',1,Player(10))else
endifif(Trig_Level_Slognosty_Func011C())thencall SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_GOLD)+750))call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_GOLD)+750))call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_GOLD)+750))call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_GOLD)+750))call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_GOLD)+750))call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_GOLD)+750))set udg_Timer_celoe[1]=(udg_Timer_celoe[1]+1080.00)call DestroyTimerDialog(GetLastCreatedTimerDialogBJ())call CreateTimerDialogBJ(udg_Timer[1],"Вторжение:")
call StartTimerBJ(udg_Timer[1],false,udg_Timer_celoe[1])
call TimerDialogDisplayBJ(true,GetLastCreatedTimerDialogBJ())call SetPlayerTechResearchedSwap('Rume',2,Player(11))call SetPlayerTechResearchedSwap('Rume',2,Player(10))else
endifif(Trig_Level_Slognosty_Func012C())thencall SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_GOLD)+500))call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_GOLD)+500))set udg_Timer_celoe[1]=(udg_Timer_celoe[1]+720.00)call DestroyTimerDialog(GetLastCreatedTimerDialogBJ())call CreateTimerDialogBJ(udg_Timer[1],"Вторжение:")
call StartTimerBJ(udg_Timer[1],false,udg_Timer_celoe[1])
call TimerDialogDisplayBJ(true,GetLastCreatedTimerDialogBJ())call SetPlayerTechResearchedSwap('Rume',3,Player(11))call SetPlayerTechResearchedSwap('Rume',3,Player(10))else
endifif(Trig_Level_Slognosty_Func013C())thencall SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_GOLD)+250))call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_GOLD)+250))call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_GOLD)+250))call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_GOLD)+250))call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_GOLD)+250))call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_GOLD)+250))set udg_Timer_celoe[1]=(udg_Timer_celoe[1]+360.00)call DestroyTimerDialog(GetLastCreatedTimerDialogBJ())call CreateTimerDialogBJ(udg_Timer[1],"Вторжение:")
call StartTimerBJ(udg_Timer[1],false,udg_Timer_celoe[1])
call TimerDialogDisplayBJ(true,GetLastCreatedTimerDialogBJ())call SetPlayerTechResearchedSwap('Rume',4,Player(11))call SetPlayerTechResearchedSwap('Rume',4,Player(10))else
endifif(Trig_Level_Slognosty_Func014C())thencall SetPlayerTechResearchedSwap('Rume',5,Player(11))call SetPlayerTechResearchedSwap('Rume',5,Player(10))else
endifendfunctionfunction InitTrig_Level_Slognosty takes nothing returns nothingset gg_trg_Level_Slognosty=CreateTrigger()call TriggerRegisterTimerEventSingle(gg_trg_Level_Slognosty,1.00)call TriggerAddAction(gg_trg_Level_Slognosty,function Trig_Level_Slognosty_Actions)endfunctionfunction Trig_Level_slognosty_vibor_Func009C takes nothing returns booleanif(not(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING))thenreturn false
endifif(not(GetPlayerController(Player(0))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Level_slognosty_vibor_Func010C takes nothing returns booleanif(not(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING))thenreturn false
endifif(not(GetPlayerController(Player(1))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Level_slognosty_vibor_Func011C takes nothing returns booleanif(not(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING))thenreturn false
endifif(not(GetPlayerController(Player(2))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Level_slognosty_vibor_Func012C takes nothing returns booleanif(not(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING))thenreturn false
endifif(not(GetPlayerController(Player(3))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Level_slognosty_vibor_Func013C takes nothing returns booleanif(not(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING))thenreturn false
endifif(not(GetPlayerController(Player(4))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Level_slognosty_vibor_Func014C takes nothing returns booleanif(not(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_PLAYING))thenreturn false
endifif(not(GetPlayerController(Player(5))==MAP_CONTROL_USER))thenreturn false
endifreturn trueendfunctionfunction Trig_Level_slognosty_vibor_Actions takes nothing returns nothingcall DialogClear(udg_Dialog_slognost)call DialogSetMessageBJ(udg_Dialog_slognost,"|c00FFFF00Выбор сложности|r")
call DialogAddButtonBJ(udg_Dialog_slognost,"|c0090ee90Нормально|r")
set udg_Button_slognost[1]=GetLastCreatedButtonBJ()call DialogAddButtonBJ(udg_Dialog_slognost,"|c0000FFFFТрудно|r")set udg_Button_slognost[2]=GetLastCreatedButtonBJ()call DialogAddButtonBJ(udg_Dialog_slognost,"|c00FF0000Кошмар|r")set udg_Button_slognost[3]=GetLastCreatedButtonBJ()if(Trig_Level_slognosty_vibor_Func009C())thencall DialogDisplayBJ(true,udg_Dialog_slognost,Player(0))
returnelse
endifif(Trig_Level_slognosty_vibor_Func010C())thencall DialogDisplayBJ(true,udg_Dialog_slognost,Player(1))
returnelse
endifif(Trig_Level_slognosty_vibor_Func011C())thencall DialogDisplayBJ(true,udg_Dialog_slognost,Player(2))
returnelse
endifif(Trig_Level_slognosty_vibor_Func012C())thencall DialogDisplayBJ(true,udg_Dialog_slognost,Player(3))
returnelse
endifif(Trig_Level_slognosty_vibor_Func013C())thencall DialogDisplayBJ(true,udg_Dialog_slognost,Player(4))
returnelse
endifif(Trig_Level_slognosty_vibor_Func014C())thencall DialogDisplayBJ(true,udg_Dialog_slognost,Player(5))
returnelse
endifendfunctionfunction InitTrig_Level_slognosty_vibor takes nothing returns nothingset gg_trg_Level_slognosty_vibor=CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_Level_slognosty_vibor,18.00)
call TriggerAddAction(gg_trg_Level_slognosty_vibor,function Trig_Level_slognosty_vibor_Actions)endfunctionfunction Trig_Level_slognosty_vibor_active_Func001C takes nothing returns booleanif(not(GetClickedButtonBJ()==udg_Button_slognost[1]))thenreturn false
endifreturn trueendfunctionfunction Trig_Level_slognosty_vibor_active_Func002C takes nothing returns booleanif(not(GetClickedButtonBJ()==udg_Button_slognost[2]))thenreturn false
endifreturn trueendfunctionfunction Trig_Level_slognosty_vibor_active_Func003C takes nothing returns booleanif(not(GetClickedButtonBJ()==udg_Button_slognost[3]))thenreturn false
endifreturn trueendfunctionfunction Trig_Level_slognosty_vibor_active_Actions takes nothing returns nothing
if(Trig_Level_slognosty_vibor_active_Func001C())then
set udg_Priz_Victory=1call SetPlayerTechResearchedSwap('R00Z',1,Player(0))
call SetPlayerTechResearchedSwap('R010',1,Player(0))
call SetPlayerTechResearchedSwap('R011',1,Player(0))
call SetPlayerTechResearchedSwap('R012',1,Player(0))
call SetPlayerTechResearchedSwap('R00Z',1,Player(1))
call SetPlayerTechResearchedSwap('R010',1,Player(1))
call SetPlayerTechResearchedSwap('R011',1,Player(1))
call SetPlayerTechResearchedSwap('R012',1,Player(1))
call SetPlayerTechResearchedSwap('R00Z',1,Player(2))
call SetPlayerTechResearchedSwap('R010',1,Player(2))
call SetPlayerTechResearchedSwap('R011',1,Player(2))
call SetPlayerTechResearchedSwap('R012',1,Player(2))
call SetPlayerTechResearchedSwap('R00Z',1,Player(3))
call SetPlayerTechResearchedSwap('R010',1,Player(3))
call SetPlayerTechResearchedSwap('R011',1,Player(3))
call SetPlayerTechResearchedSwap('R012',1,Player(3))
call SetPlayerTechResearchedSwap('R00Z',1,Player(4))
call SetPlayerTechResearchedSwap('R010',1,Player(4))
call SetPlayerTechResearchedSwap('R011',1,Player(4))
call SetPlayerTechResearchedSwap('R012',1,Player(4))
call SetPlayerTechResearchedSwap('R00Z',1,Player(5))
call SetPlayerTechResearchedSwap('R010',1,Player(5))
call SetPlayerTechResearchedSwap('R011',1,Player(5))
call SetPlayerTechResearchedSwap('R012',1,Player(5))
call SetPlayerTechResearchedSwap('R00Z',1,Player(PLAYER_NEUTRAL_PASSIVE))call SetPlayerTechResearchedSwap('R010',1,Player(PLAYER_NEUTRAL_PASSIVE))call SetPlayerTechResearchedSwap('R011',1,Player(PLAYER_NEUTRAL_PASSIVE))call SetPlayerTechResearchedSwap('R012',1,Player(PLAYER_NEUTRAL_PASSIVE))call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Выбран уровень сложности:|r"+"|c0090ee90 Нормально|r"))call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED,6)call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED,6)call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED,6)call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED,6)call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED,6)call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED,6)call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_FOOD_CAP,5)call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_CAP,5)call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_CAP,5)call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_CAP,5)call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_CAP,5)call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_CAP,5)else
endifif(Trig_Level_slognosty_vibor_active_Func002C())then
set udg_Priz_Victory=2call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Выбран уровень сложности:|r"+"|c0000FFFF Трудно|r"))
call SetPlayerTechResearchedSwap('Rura',1,Player(10))call SetPlayerTechResearchedSwap('Rura',1,Player(11))else
endifif(Trig_Level_slognosty_vibor_active_Func003C())then
set udg_Priz_Victory=3call DisplayTextToForce(GetPlayersAll(),("|c00FFFF00Выбран уровень сложности:|r"+"|c00FF0000 Кошмар|r"))
call SetPlayerTechResearchedSwap('Rura',2,Player(10))call SetPlayerTechResearchedSwap('Rura',2,Player(11))else
endifcall CinematicModeBJ(false,GetPlayersAll())call DialogDisplayBJ(false,udg_Dialog_slognost,Player(0))call DialogDisplayBJ(false,udg_Dialog_slognost,Player(1))call DialogDisplayBJ(false,udg_Dialog_slognost,Player(2))call DialogDisplayBJ(false,udg_Dialog_slognost,Player(3))call DialogDisplayBJ(false,udg_Dialog_slognost,Player(4))call DialogDisplayBJ(false,udg_Dialog_slognost,Player(5))endfunctionfunction InitTrig_Level_slognosty_vibor_active takes nothing returns nothing
set gg_trg_Level_slognosty_vibor_active=CreateTrigger()call TriggerRegisterDialogEventBJ(gg_trg_Level_slognosty_vibor_active,udg_Dialog_slognost)call TriggerAddAction(gg_trg_Level_slognosty_vibor_active,function Trig_Level_slognosty_vibor_active_Actions)endfunctionfunction Trig_AntiChit_Conditions takes nothing returns booleanif(not(udg_LevelSlognosaty==1))thenreturn false
endifreturn trueendfunctionfunction Trig_AntiChit_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|c00FF0000Активирован античит все читеры будут удалены.|r")call TriggerSleepAction(4.00)call CustomDefeatBJ(GetTriggerPlayer(),"Вы проиграли!")endfunctionfunction InitTrig_AntiChit takes nothing returns nothing
set gg_trg_AntiChit=CreateTrigger()call TriggerRegisterPlayerChatEvent(gg_trg_AntiChit,Player(0),"whosyourdaddy",true)call TriggerRegisterPlayerChatEvent(gg_trg_AntiChit,Player(1),"whosyourdaddy",true)call TriggerRegisterPlayerChatEvent(gg_trg_AntiChit,Player(2),"whosyourdaddy",true)call TriggerRegisterPlayerChatEvent(gg_trg_AntiChit,Player(3),"whosyourdaddy",true)call TriggerRegisterPlayerChatEvent(gg_trg_AntiChit,Player(4),"whosyourdaddy",true)call TriggerRegisterPlayerChatEvent(gg_trg_AntiChit,Player(5),"whosyourdaddy",true)call TriggerAddCondition(gg_trg_AntiChit,Condition(function Trig_AntiChit_Conditions))call TriggerAddAction(gg_trg_AntiChit,function Trig_AntiChit_Actions)endfunctionfunction Trig_AntiChit_2_Func001Func001C takes nothing returns booleanif(not(GetPlayerState(Player(6),PLAYER_STATE_RESOURCE_LUMBER)>=1))thenreturn false
endifreturn trueendfunctionfunction Trig_AntiChit_2_Func001C takes nothing returns booleanif(not(udg_LevelSlognosaty==1))thenreturn false
endifreturn trueendfunctionfunction Trig_AntiChit_2_Actions takes nothing returns nothingif(Trig_AntiChit_2_Func001C())thenif(Trig_AntiChit_2_Func001Func001C())thencall DisplayTextToForce(GetPlayersAll(),"|c00FF0000Активирован античит все читеры будут удалены.|r")call TriggerSleepAction(4.00)call CustomDefeatBJ(GetTriggerPlayer(),"Вы проиграли!")else
endifelse
call DisableTrigger(GetTriggeringTrigger())endifendfunctionfunction InitTrig_AntiChit_2 takes nothing returns nothingset gg_trg_AntiChit_2=CreateTrigger()call TriggerRegisterTimerEventSingle(gg_trg_AntiChit_2,30.00)call TriggerAddAction(gg_trg_AntiChit_2,function Trig_AntiChit_2_Actions)endfunctionfunction InitCustomTriggers takes nothing returns nothingcall InitTrig_Defense_active()call InitTrig_Volna_Defense()call InitTrig_Volna_Defense_Bonus()call InitTrig_Volna_Defense_Boss()call InitTrig_Type_Unit()call InitTrig_Camera()call InitTrig_For_Player_1()
call InitTrig_For_Player_1_Active()call InitTrig_Camera_1_____________________u()call InitTrig_For_Player_2()
call InitTrig_For_Player_2_Active()call InitTrig_Camera_3()
call InitTrig_For_Player_3()
call InitTrig_For_Player_3_Active()call InitTrig_Camera_4()
call InitTrig_For_Player_4()
call InitTrig_For_Player_4_Active()call InitTrig_Camera_5()
call InitTrig_For_Player_5()
call InitTrig_For_Player_5_Active()call InitTrig_Camera_6()
call InitTrig_For_Player_6()
call InitTrig_For_Player_6_Active()call InitTrig_Bonus_Active()
call InitTrig_Bonus_uchenik()call InitTrig_Bonus_adept()call InitTrig_Bonus_magistr()call InitTrig_Bonus_gold_coin()call InitTrig_Bonus_gold_purse()
call InitTrig_Bonus_gold_bag()call InitTrig_Bonus_pehotinec()call InitTrig_Bonus_strag()call InitTrig_Bonus_hranitel()call InitTrig_Drevniy_svitok_freeze_time()call InitTrig_Rohan()call InitTrig_Ledinaya_gliba()call InitTrig_Pole_phenicy()
call InitTrig_Night_Dead()call InitTrig_Ktun()
call InitTrig_Ktun_Attack()call InitTrig_Ktun_lovushka()call InitTrig_Ktun_ai()call InitTrig_Smertokril_Napadenie()
call InitTrig_Zaragennoe_zerno()
call InitTrig_Zaragennoe_zerno_Active()call InitTrig_Povelitel_tmy()call InitTrig_Dalaran_portal_1()
call InitTrig_Dalaran_portal_2()
call InitTrig_Dalaran_portal_3()
call InitTrig_Dalaran_portal_4()
call InitTrig_Dalaran_portal_5()
call InitTrig_Dalaran_portal_6()
call InitTrig_Dalaran_portal_7()
call InitTrig_Dalaran_portal_8()
call InitTrig_Dalaran_portal_9()
call InitTrig_Kamen_vozrogdeniya()call InitTrig_Kamen_vozrogdeniya_Active()call InitTrig_Kamen_vozrogdeniya_2()
call InitTrig_Kamen_vozrogdeniya_Active_2()call InitTrig_Kamen_vozrogdeniya_3()
call InitTrig_Kamen_vozrogdeniya_Active_3()call InitTrig_Kamen_vozrogdeniya_4()
call InitTrig_Kamen_vozrogdeniya_Active_4()call InitTrig_Magicheskiy_Generator_Dalaran()call InitTrig_Magicheskiy_Generator_Active()
call InitTrig_Richag_Nestabilniy_Portal()call InitTrig_Silvana()call InitTrig_Silvana_2()call InitTrig_Artes()call InitTrig_Artas_Frostmorn()call InitTrig_Uron_generatoru()call InitTrig_Victory()call InitTrig_Victory_vibor()call InitTrig_Nerub_probugdenie()call InitTrig_Sargeros()
call InitTrig_Manoroh()call InitTrig_Nerub()call InitTrig_Komand_Attacnk()call InitTrig_Attack_1()
call InitTrig_Attack_2()
call InitTrig_Attack_3()
call InitTrig_Attak_Legion()
call InitTrig_Sargeros_Vrata()call InitTrig_Sargeras_armor()call InitTrig_Sargeras_Golemy()call InitTrig_Sargeras_Prityagenie_smerty()call InitTrig_Sargeras_Zabvenie()call InitTrig_Sargeras_Marionetka()call InitTrig_Sargeras_Zdaniya()
call InitTrig_Sargeras_Probit_Shipy()call InitTrig_Sargeras_Sila_off()call InitTrig_Sargeras_Lovkost_off()
call InitTrig_Sargeras_Mana_off()call InitTrig_Sargeras_Dalniy_boi()call InitTrig_Sargeras_Vozrogdenie()
call InitTrig_Portal_Sargeros()call InitTrig_Dead_monolit_1()call InitTrig_Dead_monolit_2()call InitTrig_Dead_monolit_3()call InitTrig_Sargeras_OS()call InitTrig_Sargeras_OS_70()call InitTrig_Sargeras_OS_50()call InitTrig_Sargeras_OS_35()call InitTrig_Sargeras_OS_25()call InitTrig_Dead_Sargeros()call InitTrig_Trall()call InitTrig_Sarina()call InitTrig_Duh_tmy()call InitTrig_Korol_1()call InitTrig_Mediv_1()call InitTrig_Svitok_mediva_1()call InitTrig_Korol_2()call InitTrig_Korol_2_B()call InitTrig_Mediv()call InitTrig_Mediv_Complite()call InitTrig_Mediv_oborona()call InitTrig_Podskazka()call InitTrig_Generator_dead()call InitTrig_Generator_dead_2()
call InitTrig_Generator_dead_3()
call InitTrig_Svitok_staly()
call InitTrig_Drenei_AI()call InitTrig_Ruda()
call InitTrig_Kuznec()call InitTrig_Kuznec_A()
call InitTrig_Kuznec_B()
call InitTrig_Kuznec_Complete_A()call InitTrig_Kuznec_Complete_B()call InitTrig_Sbor_rudy()call InitTrig_Kuznec_Complete()call InitTrig_Kuznec_2()
call InitTrig_Sbor_rudy_2()call InitTrig_Kuznec_Complete_2()call InitTrig_Kuznec_2_A()call InitTrig_Kuznec_Complete_2_A()call InitTrig_Kuznec_2_B()call InitTrig_Sbor_mifrila()
call InitTrig_Kuznec_Complete_2_B()call InitTrig_Kuznec_Oborona()call InitTrig_Marshal_1()call InitTrig_Smert_Dezertira()call InitTrig_Marshal_complete()
call InitTrig_Marshal_2()call InitTrig_Korol_vorov_AI()call InitTrig_Smert_Korola_vorov()call InitTrig_Marshal_complete_2()call InitTrig_Marshal_3()call InitTrig_Smert_Nadziratela()call InitTrig_Marshal_complete_3()call InitTrig_Marshal_4()call InitTrig_Smert_Boynia()
call InitTrig_Marshal_complete_4()call InitTrig_Marshal_Oborona()call InitTrig_Marshal_Oborona_2()call InitTrig_Nachalo_rituala_Necromant()call InitTrig_Priziv_skeletov()call InitTrig_Incvizitor_1()
call InitTrig_Smert_necromanta()
call InitTrig_Incvizitor_complete()call InitTrig_Incvizitor_2()
call InitTrig_Vedma_v_derevny()call InitTrig_Vedma_smena_oblika()call InitTrig_Smert_Vedmy()call InitTrig_Incvizitor_complete_2()call InitTrig_Vedma_AI()
call InitTrig_Ten_AI()call InitTrig_Troll_zn_1()call InitTrig_Ten_dead()
call InitTrig_Troll_zn_complete()call InitTrig_Oboroten_1()call InitTrig_Oboroten_2()call InitTrig_Oboroten_3()call InitTrig_Oboroten_Active()call InitTrig_Vogak_volkov()
call InitTrig_Vogak_volkov_Dead()call InitTrig_Vogak_volkov_Complete()call InitTrig_kaban_ai()
call InitTrig_Redkiy_kaban_1()call InitTrig_Kaban_dead_2()
call InitTrig_Kaban_3_Complete()
call InitTrig_Ochistka_ot_volkov()call InitTrig_Ohistka_ot_volkov_complite()call InitTrig_Erl_oborona()call InitTrig_Kobolt()call InitTrig_Kobolt_dead()call InitTrig_Kobolt_attack()call InitTrig_Kobolt_Complete()call InitTrig_Kobolt_ochistka()call InitTrig_Kobolt_ochistka_Complete()
call InitTrig_Noviy_instrument()
call InitTrig_Noviy_instrument_Dostavlen()call InitTrig_Zapusk_ukradenaya_povozka()call InitTrig_Ukradenaya_povozka()call InitTrig_Ukradeniy_otshet()
call InitTrig_Zelie_omologeniya()call InitTrig_Omologenie_1()
call InitTrig_Omologenie_2()
call InitTrig_Omologenie_3()
call InitTrig_Omologenie_4()
call InitTrig_Zelie_vozrogdenie()call InitTrig_Zelie_vozrogdeniya_complete()call InitTrig_Zelie_berserka()call InitTrig_Zelie_berserka_complete()call InitTrig_Zapusk()call InitTrig_Vzriv_v_shahte()call InitTrig_Vzriv_prohoda()call InitTrig_Zapusk_Kel()call InitTrig_Duh_morey()call InitTrig_Duh_morey_complete()call InitTrig_Duh_ognia()call InitTrig_Duh_ognia_complete()call InitTrig_Duh_lda()call InitTrig_Duh_lda_complite()
call InitTrig_Sfera_lda_pogoda()
call InitTrig_Duh_Groma()call InitTrig_Duh_Groma_complite()call InitTrig_Duh_yada()
call InitTrig_Duh_yada_complite()call InitTrig_Duh_Zamedleniya()call InitTrig_Duh_Zamedleniya_complite()
call InitTrig_Duh_Tmy()call InitTrig_Duh_Tmy_complite()
call InitTrig_Duh_Prokliatiy()call InitTrig_Duh_Prokliatiy_complite()call InitTrig_Duh_Angela()call InitTrig_Duh_Angela_complite()call InitTrig_Duh_Astrala()call InitTrig_Duh_Astrala_complite()
call InitTrig_Duh_krovy()call InitTrig_Duh_Krovy_complite()call InitTrig_Duh_sveta()call InitTrig_Duh_Sveta_complite()call InitTrig_Zapusk_Kenarius()call InitTrig_Elfy()
call InitTrig_Temnie_elfy_napadenie()call InitTrig_Temnie_elfy_Usilenie()
call InitTrig_Kenarius_oborona()
call InitTrig_Kenarius_oborona_complite()call InitTrig_Kenarius_Rog()
call InitTrig_Kenarius_Rog_Complite()call InitTrig_Hram_kenariusa()call InitTrig_Kenatius_Oborona_Zamka()call InitTrig_Tirend_luk()call InitTrig_Tirend_luk_complit()call InitTrig_Tirend_oborona()call InitTrig_Mev_ilidan()call InitTrig_Mev_illidan_complit()call InitTrig_Ilidan_dead()call InitTrig_Mev_oborona()call InitTrig_Obelisk_1()call InitTrig_Obelisk_2()call InitTrig_Obelisk_3()call InitTrig_Obelisk_4()call InitTrig_Obelisk_5()call InitTrig_Farion_obelisk()call InitTrig_Farion_obelisk_complite()call InitTrig_Farion_oborona()call InitTrig_Zapusk_Demonicheskaya_krov()call InitTrig_Samuro()call InitTrig_Grom_zadira()call InitTrig_Grom_Zadira_Complite()
call InitTrig_Grom_Zadira_oborona()call InitTrig_Kern_ogry()call InitTrig_Kern_ogry_Complite()call InitTrig_Kern_oborona()
call InitTrig_Drek_tar_odergimost()call InitTrig_Drek_tar_odergimost_complite()
call InitTrig_Drek_Tar_Oborona()
call InitTrig_Zulman_put_duhov()
call InitTrig_Zulman_put_duhov_complite()call InitTrig_Zulmar_Oborona()call InitTrig_Tank_pochinka()call InitTrig_Tank_complite()call InitTrig_Goblinskiy_rezak()
call InitTrig_Goblinskiy_rezak_Complite()call InitTrig_Poteriavshayasia_gruppa()call InitTrig_Umirayushiy_pehotinec()call InitTrig_Poteriavshayasia_gruppa_Complite()
call InitTrig_Pehotinec_oborona()call InitTrig_Volshebnie_fonary()call InitTrig_Volshebniy_fonar()
call InitTrig_Volshebniy_fonar_2()call InitTrig_Volshebniy_fonar_3()call InitTrig_Volshebniy_fonar_4()call InitTrig_Volshebniy_fonar_5()call InitTrig_Volshebniiy_fonar_Complite()call InitTrig_Obuchenie_magii()call InitTrig_Obuchenie_magii_Complite()
call InitTrig_Obuchenie_magii_2()call InitTrig_Obuchenie_magii_Complite_2()call InitTrig_Obuchenie_magii_3()call InitTrig_Obuchenie_magii_Complite_3()call InitTrig_Djayna_Oborona()call InitTrig_Obuchenie_sily()call InitTrig_Obuchenie_sily_Complite()call InitTrig_Obuchenie_sily_2()
call InitTrig_Obuchenie_sily_Complite_2()call InitTrig_Obuchenie_sily_3()
call InitTrig_Obuchenie_sily_Complite_3()call InitTrig_Paladin_Oborona()call InitTrig_Brakoniery()call InitTrig_Ukradeniy_koshelek()call InitTrig_Ubiystvo_gitelia()
call InitTrig_Bochonok_elia()call InitTrig_Kanalizaciya()
call InitTrig_Ogerelie_Amelii()call InitTrig_Ogerelie_Amelii_Active()call InitTrig_proverka()
call InitTrig_proverka_3()call InitTrig_proverka_2()call InitTrig_Zabvenie()
call InitTrig_Kniga_1()call InitTrig_Kniga_2()call InitTrig_Udar_toporom_active()call InitTrig_Zemletresenie_Active()
call InitTrig_Kniga_3()call InitTrig_Kniga_4()call InitTrig_Ledinie_oskolky_active()call InitTrig_Sila_bury_active()
call InitTrig_Smertelniy_yad_active()call InitTrig_Lunnie_streli_active()
call InitTrig_Osveshennoe_orugie_active()call InitTrig_Kniga_5()call InitTrig_Mentalnoe_vospolnenie()call InitTrig_Regeneraciya()
call InitTrig_Edinenie_s_prirodoy()call InitTrig_Shit_smerty_skill()call InitTrig_Kniga_6()call InitTrig_Trupoedu_Lvl()
call InitTrig_Ogivit_mertvih_Lvl()call InitTrig_Parazit_Lvl()call InitTrig_Lik_tlena_Lvl()call InitTrig_Zov_mertvih_Lvl()call InitTrig_Razritaya_mogila_Lvl()
call InitTrig_Adskaya_gonchaya_Lvl()
call InitTrig_Strag_preispodnii_Lvl()call InitTrig_Pechat_preispodnii_Lvl()call InitTrig_Kniga_7()call InitTrig_Gromovoy_molot_active()call InitTrig_Kniga_8()call InitTrig_Kniga_9()call InitTrig_Sklep_richag_1()call InitTrig_Sklep_richag_2()call InitTrig_Sklep_richag_3()call InitTrig_Sklep_richag_4()call InitTrig_Sklep_richag_5()call InitTrig_Sklep_richag_6()call InitTrig_Skelet_Golem()
call InitTrig_Oskvernenniy_hranitel()call InitTrig_Chernaya_strela_2()call InitTrig_Smert_Korolia_Frostmorn()call InitTrig_Ingridienty()call InitTrig_Elinnie_Moby()
call InitTrig_Sunduk_kill()call InitTrig_Derevianniy_sunduk()call InitTrig_Gelezniy_sunduk()call InitTrig_Magiheskiy_sunduk()call InitTrig_Zacharovanniy_sunduk()
call InitTrig_Serdce_azuny_1()call InitTrig_Serdce_azuny_2()call InitTrig_Serdce_azuny_3()call InitTrig_Richag_1()
call InitTrig_Richag_2()
call InitTrig_Richag_3()
call InitTrig_Richag_4()
call InitTrig_Pauk_go()call InitTrig_Satir_gp()
call InitTrig_Satiry()call InitTrig_Satir_Ogon()call InitTrig_Gnoll_go()
call InitTrig_Gnolly()call InitTrig_Wolf_go()call InitTrig_Wolf()
call InitTrig_Ungoro()call InitTrig_Morlock_go()call InitTrig_Morlock()call InitTrig_Morlock_lovusjka()
call InitTrig_Troll_go()
call InitTrig_Tuskarci_go()call InitTrig_Drenei_go()call InitTrig_Troll()call InitTrig_Troll_Set()call InitTrig_Kammennoe_ushelie_Go()
call InitTrig_Kammennoe_ushelie()call InitTrig_Kammenniy_utes_Go()call InitTrig_Peshera_Dreneyev_Go()call InitTrig_Garpii_Go()call InitTrig_Kammenniy_utes()call InitTrig_Bezlikie_ozera_Go()call InitTrig_Bezlikie_ozera()call InitTrig_Dalaran_Go()call InitTrig_More_Go()call InitTrig_Dalaran_podzemeliya_Go()call InitTrig_Dalaran_biblioteka_Go()call InitTrig_Dalaran_biblioteka_lovushky()call InitTrig_Zatoplennaya_peshera()
call InitTrig_Dalaran()call InitTrig_Mertvie_zemli_Go()
call InitTrig_Mertvie_Zemli()call InitTrig_Viggenaya_zemlia_Go()call InitTrig_Viggenaya_Zemlia()
call InitTrig_Ledinoy_tron_Go()call InitTrig_Ledinoy_tron()
call InitTrig_Black_vdova()call InitTrig_Kobolt_creep()
call InitTrig_Bandit_go()call InitTrig_Lovushka_bandit()call InitTrig_Lovushka_Scelet()call InitTrig_Lovushka_tuscarncev()call InitTrig_Bandit()call InitTrig_Bandit_shit()call InitTrig_Duh_vody()
call InitTrig_Duh_groma()call InitTrig_Krab_go()call InitTrig_Kentavry_go()call InitTrig_Kentavry()
call InitTrig_Salamandry_go()call InitTrig_Salamandry()call InitTrig_Beorny_Go()call InitTrig_Beorny()call InitTrig_Boynia_Go()call InitTrig_Boynia_krip()call InitTrig_Gold_scorpion()call InitTrig_Nefritovaya_cherepaha()call InitTrig_Eretik()call InitTrig_Zerkalo_vremeny()call InitTrig_Sklep_dreca()call InitTrig_Zatochennaya_realnost()call InitTrig_Neptulon()
call InitTrig_Frostmorn_chary()call InitTrig_Zapusk_crosher()call InitTrig_Otpravka_predmetov()call InitTrig_Topor_demona_____________________u()call InitTrig_Bogestveniy_svet()
call InitTrig_Frostmorn()call InitTrig_Bogestveniy_Molot()call InitTrig_Krugka_roma()call InitTrig_Grabeg()call InitTrig_Mudrost()call InitTrig_Sfery_energii()call InitTrig_Visvobogdenie_sfer()call InitTrig_Okutivayushiy_holod()call InitTrig_Ledinaya_volna()call InitTrig_Zacharovannaya_strela()call InitTrig_Issuhenie()call InitTrig_Mogilshik()call InitTrig_Povelitel_mogil()call InitTrig_Ledinaya_smert()call InitTrig_Necromant()call InitTrig_Prokliatie()call InitTrig_Chernaya_strela()call InitTrig_Prokliataya_strela()call InitTrig_Adskiy_ogon()call InitTrig_Adskiy_ogon_Lvl()call InitTrig_Agskaya_sekira()call InitTrig_Vmestilishe_duh()call InitTrig_Pogloshayushiy_gizn()call InitTrig_Pogloshenie__many()call InitTrig_Temniy_smerty_skill()call InitTrig_Zacharovannie_streli()
call InitTrig_Udar_hvostom()
call InitTrig_Koralovaya_bronia()call InitTrig_Udar_sokrusheniya()call InitTrig_Ohotnichiya_sova()
call InitTrig_Sila_eluny()call InitTrig_Sila_eluny_Off()call InitTrig_Milost_duhov()
call InitTrig_Kontrattacka()
call InitTrig_Isscustvo_klinka()
call InitTrig_Sokrushenie()call InitTrig_Miaso_kabana()
call InitTrig_Udar_molota()call InitTrig_Sotresaushou_udar()call InitTrig_Iscelenie()call InitTrig_Zalp_kartechu()call InitTrig_Raketniy_zalp()call InitTrig_Yadovitoe_oblako()
call InitTrig_Znak_demona()call InitTrig_Perst_boly()call InitTrig_Perst_boly_LVL()call InitTrig_Glaz_razuma()call InitTrig_Udar_copiem()call InitTrig_Bezumie()call InitTrig_Kniga_zaklinaniy()
call InitTrig_Prisutstvie_smerty()call InitTrig_Sobiratel_duh()call InitTrig_Povelitel_ada()call InitTrig_Diyavolskaya_sila()call InitTrig_Ogon_preispodnii()
call InitTrig_Vihrevoy_udar()call InitTrig_Maskirovka()call InitTrig_Zacharovanniy_kopie()call InitTrig_Mogilshuk()call InitTrig_Ledinaya_volna_2()
call InitTrig_Vlast_mertvih()call InitTrig_Neupokoenniy()
call InitTrig_Neupokoenniy_2()call InitTrig_Ten_ilidana()call InitTrig_Neveroyatnaya_metkost()call InitTrig_Mertvoe_telo()
call InitTrig_Boevoe_postroenie()call InitTrig_Geroicheskaya_hrabrost()call InitTrig_Raziashaya_kopie()
call InitTrig_Gustoy_tuman()
call InitTrig_Udar_molnii()call InitTrig_Bezumie_2()call InitTrig_Magik_Shit_1()
call InitTrig_Magik_Shit_2()
call InitTrig_Magik_Shit_3()
call InitTrig_Magik_Shit_4()
call InitTrig_Strely_1()
call InitTrig_Strely_2()
call InitTrig_Strely_3()
call InitTrig_Strely_4()
call InitTrig_Razum_basic()call InitTrig_Sila_basic()call InitTrig_Lovcost_basic()call InitTrig_Topor_demona()
call InitTrig_Kamen_razuma()
call InitTrig_Kamen_lovkosty()call InitTrig_Kamen_sily()call InitTrig_Osveshenniy_sword()call InitTrig_Osveshenniy_sword_2()call InitTrig_Oscvernitel_Skill()call InitTrig_Stavka()call InitTrig_Otravlennie_kingaly_2()call InitTrig_Kingaly_vozmezdiya_skill()
call InitTrig_Kolco_lda_active()
call InitTrig_Sfera_molnii()
call InitTrig_Sfera_molot_groma()call InitTrig_Shit_groma()call InitTrig_dospeh_serafima_Skill()call InitTrig_Sfera_Yada()call InitTrig_Trezubec_smerty_sfera()call InitTrig_Sfera_Zamedleniya()call InitTrig_Sfera_tmy()call InitTrig_Sfera_Prokliatiya()call InitTrig_Sfera_Prokliatiya_Shit()call InitTrig_Sfera_prokliatiya_sekira()
call InitTrig_Sfera_sveta()call InitTrig_Sfera_sveta_Dospeh()call InitTrig_Sfera_dospeh_bessmertnogo()call InitTrig_Sfera_dospeh_Krovy()call InitTrig_Sfera_angela()
call InitTrig_Lunniy_mech_sfera()call InitTrig_Sfera_krovy()call InitTrig_Mech_vampira()
call InitTrig_Demonicheskaya_maska_sfera()call InitTrig_Maska_izery_sfera()call InitTrig_Dospeh_serafima()call InitTrig_Zacharovanniy_venec()call InitTrig_Lunniy_plash()
call InitTrig_Luk_nefelima()
call InitTrig_Kniga_Haosa()call InitTrig_Kniga_prirody()call InitTrig_Kniga_tmy()call InitTrig_Kniga_Zaclinaniy()
call InitTrig_Dospeh_Taurisana()
call InitTrig_Ohotnichiy_mushket()call InitTrig_Ohotnichiy_mushket_s_pricelom()call InitTrig_Avtomaticheskiy_mushket()call InitTrig_Mech_paladina()call InitTrig_Kolco_minotavra()call InitTrig_Kogty_Poveliteli_Ugasa()call InitTrig_Nefritoviy_kingal()call InitTrig_Dospeh_Krovy()
call InitTrig_Dospeh_tampliera()
call InitTrig_Dospeh_championa()
call InitTrig_Dospeh_mraka()
call InitTrig_Dospeh_bezdny()call InitTrig_Kolco_muradina()call InitTrig_Kolco_eonory()
call InitTrig_Demonicheskiy_topor()call InitTrig_Plashenica_zabitogo_korolia()call InitTrig_Laty_korolia_mertvih()
call InitTrig_Mantiya_bezlikih()
call InitTrig_Gezl_faraonov()call InitTrig_Razrushitel()call InitTrig_Shlem_otstupnika()
call InitTrig_Skipitr_haosa()call InitTrig_Shit_Krovi()call InitTrig_Amulet_poglosheniya()call InitTrig_Lunniy_skipitr()call InitTrig_Mech_zatochennoy_realnosty()call InitTrig_Dospehi_bessmernogo()call InitTrig_Gezl_morey()call InitTrig_Elfiyskiy_Arbalet()call InitTrig_Mehanicheskaya_perchatka()
call InitTrig_Mehanicheskaya_Bronia()call InitTrig_Goblinskaya_truba()call InitTrig_Kolco_lva()call InitTrig_Molot_sveta()call InitTrig_Kamen_zatmeniya()call InitTrig_Plash_neney()call InitTrig_Shit_neupakoennih()call InitTrig_Shit_Angela()call InitTrig_Astralniy_shit_sfera()
call InitTrig_Astralniy_molot_sfera()call InitTrig_Misticheskiy_gezl_1()call InitTrig_Misticheskiy_gezl_2()call InitTrig_Misticheskiy_gezl_3()call InitTrig_Misticheskiy_gezl_4()call InitTrig_Misticheskiy_gezl_5()call InitTrig_Misticheskiy_gezl_6()call InitTrig_Misticheskiy_gezl_7()call InitTrig_Luk_Silvany()call InitTrig_Mech_realnosty()call InitTrig_molot_sveta_sfera()call InitTrig_Sfera_astrala()call InitTrig_Gromovoy_gezl()call InitTrig_Stalnoy_mech()
call InitTrig_Stalnoy_topor()call InitTrig_Stalnoy_Molot()call InitTrig_Stalnoy_kogty()call InitTrig_Stalnoy_perchatky()call InitTrig_Stalnoy_luk()call InitTrig_Stalnoy_Kingaly()call InitTrig_Runicheskiy_dospeh()call InitTrig_Stalnoy_gezl()
call InitTrig_Stalnoy_trezubec()
call InitTrig_Stalnoy_Kolchuga()
call InitTrig_Stalnoy_Kolco()call InitTrig_Stalnoy_Shit()
call InitTrig_Stalnoy_Shit_2()call InitTrig_Stalnoy_Amulet()call InitTrig_Stalnoy_Shlem()call InitTrig_Stalnoy_Sapogy()call InitTrig_Stalnoy_MColco()call InitTrig_Stalnoy_Plash()call InitTrig_Stalnoy_SPerchatky()call InitTrig_Mifriloviy_mech()call InitTrig_Mifriloviy_topor()
call InitTrig_Mifriloviy_molot()
call InitTrig_Mifriloviy_kogty()
call InitTrig_Mifriloviy_perchatky()
call InitTrig_Mifriloviy_luk()call InitTrig_Mifriloviy_Kingaly()call InitTrig_Orochiya_colchuga()call InitTrig_Mifriloviy_gezl()call InitTrig_Mifriloviy_trezubec()call InitTrig_Mifriloviy_kolchuga()call InitTrig_Mifriloviy_kolco()
call InitTrig_Mifriloviy_Shit()call InitTrig_Mifriloviy_Shit_2()call InitTrig_Mifriloviy_Amulet()call InitTrig_Mifriloviy_Shlem()
call InitTrig_Mifriloviy_Sapogy()call InitTrig_Mifriloviy_MColco()call InitTrig_Mifriloviy_Mogilnic()call InitTrig_Mifriloviy_Plash()
call InitTrig_Mifriloviy_SPerchatky()call InitTrig_Adamantoviy_mech()
call InitTrig_Adamantoviy_topor()call InitTrig_Adamantoviy_molot()call InitTrig_Adamantoviy_kogty()call InitTrig_Adamantoviy_perchatky()call InitTrig_Adamantoviy_luk()call InitTrig_Adamantoviy_Kingaly()call InitTrig_Gertvenniy_kingal()call InitTrig_Adamantoviy_gezl()
call InitTrig_Adamantoviy_trezubec()
call InitTrig_Adamantoviy_Kolchuga()
call InitTrig_Adamantoviy_Kolco()call InitTrig_Adamantoviy_Shit()
call InitTrig_Adamantoviy_Shit_2()call InitTrig_Adamantoviy_Amulet()call InitTrig_Adamantoviy_Shlem()call InitTrig_Adamantoviy_Sapogy()call InitTrig_Adamantoviy_MColco()call InitTrig_Adamantoviy_Plash()call InitTrig_Adamantoviy_SPerchatky()call InitTrig_Krovaviy_mech()call InitTrig_Krovaviy_topor()call InitTrig_Krovaviy_molot()call InitTrig_Krovaviy_kogty()call InitTrig_Krovaviy_perchatky()call InitTrig_Krovaviy_luk()
call InitTrig_Krovaviy_Kingaly()
call InitTrig_Oskvernitel()call InitTrig_Krovaviy_gezl()call InitTrig_Krovaviy_trezubec()call InitTrig_Krovaviy_Kolchuga()call InitTrig_Krovaviy_Kolco()call InitTrig_Krovaviy_Shit()call InitTrig_Krovaviy_Shit_2()call InitTrig_Krovaviy_Amulet()call InitTrig_Krovaviy_Shlem()call InitTrig_Krovaviy_Sapogy()call InitTrig_Krovaviy_MColco()call InitTrig_Shlem_mev()call InitTrig_Krovaviy_Plash()call InitTrig_Krovaviy_SPerchatky()call InitTrig_Luck_slez()call InitTrig_Zvezdnaya_korona()
call InitTrig_Plash_drevnih()call InitTrig_Braslet_Azuny()call InitTrig_Grom_molot()call InitTrig_Trezubec_smerty()call InitTrig_Kopie_tmy()call InitTrig_Kolco_tmy()call InitTrig_Shit_necromanta()call InitTrig_Mech_adskogo_plameny()
call InitTrig_Mech_poglosheniya()call InitTrig_Mech_vishego_vampira()
call InitTrig_Mech_angela()call InitTrig_Nit_vremeny()call InitTrig_Demonicheskaya_maska()
call InitTrig_Ritualnaya_perchatky()
call InitTrig_Proklitaya_sekira()call InitTrig_Astralniy_molot()call InitTrig_Shit_molnii()call InitTrig_Shit_yada()call InitTrig_Starinniy_krest()call InitTrig_Otravlennie_kingaly()call InitTrig_Ognenniy_shit_sfera()call InitTrig_Povelitel_ognia_plash()call InitTrig_Astralniy_shit()call InitTrig_Shid_lda_sfera()call InitTrig_Kolco_lda_sfera()call InitTrig_Gezl_molnii()call InitTrig_Gezl_Astrala_sfera()call InitTrig_Kingaly_vozmezdiya()call InitTrig_Dospehi_Titana()call InitTrig_Laty_novoluniya()call InitTrig_Shit_Kenariusa()call InitTrig_Plash_Chistoy_Enerdii()call InitTrig_Dospehi_paladina()
call InitTrig_Zmeinnoe_kolco()call InitTrig_Sapogy_Fenicsa()call InitTrig_Maska_izery()call InitTrig_Lunnie_kogty()
call InitTrig_Raschlenitel()
call InitTrig_Sword_padshih()call InitTrig_Gubitel()call InitTrig_Lunniy_mech()call InitTrig_Shit_krovy_predmet()call InitTrig_Serebrenniy_dospeh()call InitTrig_Titanoviy_dospeh()
call InitTrig_Boevie_kogty()
call InitTrig_Demonicheskiy_mech()call InitTrig_Izognutiy_kingal()
call InitTrig_Sapogy_titana()call InitTrig_Sapogy_druida()call InitTrig_Ricarskiy_topor()call InitTrig_Ricarskiy_molot()call InitTrig_Luk_lunny()call InitTrig_Amulet_chistoty()call InitTrig_Nefritovoe_kopie()
call InitTrig_Poyas_necromanta()
call InitTrig_Topor_nora()call InitTrig_Plash_ohotnika()call InitTrig_Armirovanniy_plash()call InitTrig_Plashenica_drakona()call InitTrig_Botinky_ohotnika()
call InitTrig_Bolotnie_botinky()
call InitTrig_Sapogy_mertveca()call InitTrig_Perchatky_ohotnika()call InitTrig_Armirovannie_perchatky()call InitTrig_Perchatky_drakona()call InitTrig_Maska_trollia()call InitTrig_Bronia_Okultista()
call InitTrig_Plash_izgoya()
call InitTrig_Kogty_s_shipamy()call InitTrig_Misticheskie_kogty()call InitTrig_Ogerelie_ohotnika()call InitTrig_Trofeyniy_amulet()
call InitTrig_Korall()call InitTrig_Meshochek_d_priannostiamy()call InitTrig_Kupecheskoe_odeyanie()
call InitTrig_Karnavalnaya_maska()call InitTrig_Perchatki_dvorinina()call InitTrig_Zolotoe_kolco()call InitTrig_Kristalnaya_statuetka()call InitTrig_Sokrovisha_uvelir()call InitTrig_Izumrudnaua_shkatulka()call InitTrig_Shit_1()call InitTrig_Shit_2()call InitTrig_Shit_3()call InitTrig_Shit_4()call InitTrig_Stariy_posoh_1()call InitTrig_Stariy_posoh_2()call InitTrig_Stariy_posoh_3()call InitTrig_Stariy_posoh_4()call InitTrig_Amulet_1()
call InitTrig_Amulet_2()
call InitTrig_Amulet_3()
call InitTrig_Amulet_4()
call InitTrig_Poyas_1()call InitTrig_Poyas_2()call InitTrig_Poyas_3()call InitTrig_Poyas_4()call InitTrig_Mantiya_1()call InitTrig_Mantiya_2()call InitTrig_Mantiya_3()call InitTrig_Mantiya_4()call InitTrig_Braclet_1()call InitTrig_Braclet_2()call InitTrig_Braclet_3()call InitTrig_Braclet_4()call InitTrig_Gilet_1()call InitTrig_Gilet_2()call InitTrig_Gilet_3()call InitTrig_Gilet_4()call InitTrig_Shlem_Samutaya_1()
call InitTrig_Shlem_Samutaya_2()
call InitTrig_Shlem_Samutaya_3()
call InitTrig_Shlem_Samutaya_4()
call InitTrig_Mech_1()call InitTrig_Mech_2()call InitTrig_Mech_3()call InitTrig_Mech_4()call InitTrig_Katana_1()
call InitTrig_Katana_2()
call InitTrig_Katana_3()
call InitTrig_Katana_4()
call InitTrig_Ivoviy_Arbalet_1()
call InitTrig_Ivoviy_Arbalet_2()
call InitTrig_Ivoviy_Arbalet_3()
call InitTrig_Ivoviy_Arbalet_4()
call InitTrig_GUI_Friendly_Damage_Detection()call InitTrig_Configuration()call InitTrig_Configuration2()call InitTrig_Floating_Spell_Name()call InitTrig_Floating_Damage_Taken()call InitTrig_Ferianskoe_zelie()
call InitTrig_Zelie_trolley()call InitTrig_Mercayushiy_eliksir()call InitTrig_Zelie_stoykosty()call InitTrig_Zelie_Moshy()call InitTrig_Zelie_vinoslivosty()call InitTrig_Feroninskoye_zelie()call InitTrig_Vedminskoe_zelie()
call InitTrig_ItemsToo()
call InitTrig_ItemsPickUp()call InitTrig_ItemsToo_2()call InitTrig_ItemsPickUp_2()call InitTrig_ItemsToo_3()call InitTrig_ItemsPickUp_3()call InitTrig_ItemsToo_4()call InitTrig_ItemsPickUp_4()call InitTrig_ItemsToo_5()call InitTrig_ItemsPickUp_5()call InitTrig_Inicializaciya_hero()call InitTrig_Voscreshenie_heroe()call InitTrig_Hero_LVL()
call InitTrig_Hero_1()call InitTrig_Hero_2()call InitTrig_Hero_3()call InitTrig_Hero_4()call InitTrig_Hero_5()call InitTrig_Hero_6()call InitTrig_Hero_7()call InitTrig_Hero_8()call InitTrig_Hero_9()call InitTrig_Hero_10()call InitTrig_Hero_11()call InitTrig_Hero_12()call InitTrig_Hero_13()call InitTrig_Hero_14()call InitTrig_Hero_Random()call InitTrig_MB_Create()call InitTrig_Tally_Kills()call InitTrig_Go()call InitTrig_Ochistka_pamiaty()
call InitTrig_Ohrana_monolit()call InitTrig_Monolit_1()call InitTrig_Monolit_2()call InitTrig_Monolit_3()call InitTrig_Monolit_4()call InitTrig_Monolit_5()call InitTrig_Monolit_6()call InitTrig_Prizrachniy_lord()
call InitTrig_Monah()call InitTrig_Timer_inicializaciya()
call InitTrig_Timer_sec()call InitTrig_Timer()call InitTrig_Portal_Elfy_1()call InitTrig_Portal_Elfy_2()call InitTrig_Portal_Orcy_1()call InitTrig_Portal_Orcy_2()call InitTrig_Portal_Derevny_1()
call InitTrig_Portal_Derevny_2()
call InitTrig_Portal_Mediv_1()call InitTrig_Portal_Mediv_2()call InitTrig_Peshera_Dalaran()call InitTrig_Peshera_Dalaran_2()call InitTrig_Peshera_Dalaran_3()call InitTrig_Peshera_Dalaran_4()call InitTrig_Peshera_Magmy()call InitTrig_Peshera_Magmy_2()call InitTrig_Biblioteka_Dalarana()call InitTrig_Biblioteka_Dalarana_2()call InitTrig_Sklep_1()call InitTrig_Sklep_2()call InitTrig_Peshera_Dreneev()call InitTrig_Peshera_Dreneev_Exit()
call InitTrig_Peshera_Dreneev_2()call InitTrig_Peshera_Dreneev_2_Exit()call InitTrig_Peshera_Zatoplenaya()call InitTrig_Peshera_Zatoplenaya_2()call InitTrig_Bank()
call InitTrig_Postroyka_bashen()
call InitTrig_Pokupka_zdaniy()call InitTrig_Inicializaciya_decoraciy()
call InitTrig_inicializaciya_decoraciy_2()call InitTrig_Inicializaciya_zadaniy()call InitTrig_Inicializaciya_zadaniy_2()
call InitTrig_Inicializaciya()call InitTrig_Inicializaciya_Stand()
call InitTrig_Kuznica()call InitTrig_Trenerovka()call InitTrig_Exp_hero()
call InitTrig_Opisanie()
call InitTrig_Dop_slognost()
call InitTrig_Day()call InitTrig_Generator()call InitTrig_Specific_hero()call InitTrig_Level_Slognosty()call InitTrig_Level_slognosty_vibor()call InitTrig_Level_slognosty_vibor_active()
call InitTrig_AntiChit()
call InitTrig_AntiChit_2()endfunctionfunction RunInitializationTriggers takes nothing returns nothing
call ConditionalTriggerExecute(gg_trg_Configuration)
call ConditionalTriggerExecute(gg_trg_Inicializaciya_Stand)endfunctionfunction InitCustomPlayerSlots takes nothing returns nothing
call SetPlayerStartLocation(Player(0),0)
call ForcePlayerStartLocation(Player(0),0)call SetPlayerColor(Player(0),ConvertPlayerColor(0))
call SetPlayerRacePreference(Player(0),RACE_PREF_HUMAN)call SetPlayerRaceSelectable(Player(0),false)call SetPlayerController(Player(0),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(1),1)
call ForcePlayerStartLocation(Player(1),1)call SetPlayerColor(Player(1),ConvertPlayerColor(1))
call SetPlayerRacePreference(Player(1),RACE_PREF_HUMAN)call SetPlayerRaceSelectable(Player(1),false)call SetPlayerController(Player(1),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(2),2)
call ForcePlayerStartLocation(Player(2),2)call SetPlayerColor(Player(2),ConvertPlayerColor(2))
call SetPlayerRacePreference(Player(2),RACE_PREF_HUMAN)call SetPlayerRaceSelectable(Player(2),false)call SetPlayerController(Player(2),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(3),3)
call ForcePlayerStartLocation(Player(3),3)call SetPlayerColor(Player(3),ConvertPlayerColor(3))
call SetPlayerRacePreference(Player(3),RACE_PREF_HUMAN)call SetPlayerRaceSelectable(Player(3),false)call SetPlayerController(Player(3),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(4),4)
call ForcePlayerStartLocation(Player(4),4)call SetPlayerColor(Player(4),ConvertPlayerColor(4))
call SetPlayerRacePreference(Player(4),RACE_PREF_HUMAN)call SetPlayerRaceSelectable(Player(4),false)call SetPlayerController(Player(4),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(5),5)
call ForcePlayerStartLocation(Player(5),5)call SetPlayerColor(Player(5),ConvertPlayerColor(5))
call SetPlayerRacePreference(Player(5),RACE_PREF_HUMAN)call SetPlayerRaceSelectable(Player(5),false)call SetPlayerController(Player(5),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(6),6)
call ForcePlayerStartLocation(Player(6),6)call SetPlayerColor(Player(6),ConvertPlayerColor(6))
call SetPlayerRacePreference(Player(6),RACE_PREF_UNDEAD)
call SetPlayerRaceSelectable(Player(6),false)call SetPlayerController(Player(6),MAP_CONTROL_COMPUTER)
call SetPlayerStartLocation(Player(7),7)
call ForcePlayerStartLocation(Player(7),7)call SetPlayerColor(Player(7),ConvertPlayerColor(7))
call SetPlayerRacePreference(Player(7),RACE_PREF_ORC)call SetPlayerRaceSelectable(Player(7),false)call SetPlayerController(Player(7),MAP_CONTROL_COMPUTER)
call SetPlayerStartLocation(Player(8),8)
call ForcePlayerStartLocation(Player(8),8)call SetPlayerColor(Player(8),ConvertPlayerColor(8))
call SetPlayerRacePreference(Player(8),RACE_PREF_HUMAN)call SetPlayerRaceSelectable(Player(8),false)call SetPlayerController(Player(8),MAP_CONTROL_COMPUTER)
call SetPlayerStartLocation(Player(9),9)
call ForcePlayerStartLocation(Player(9),9)call SetPlayerColor(Player(9),ConvertPlayerColor(9))
call SetPlayerRacePreference(Player(9),RACE_PREF_HUMAN)call SetPlayerRaceSelectable(Player(9),false)call SetPlayerController(Player(9),MAP_CONTROL_COMPUTER)
call SetPlayerStartLocation(Player(10),10)call ForcePlayerStartLocation(Player(10),10)
call SetPlayerColor(Player(10),ConvertPlayerColor(10))call SetPlayerRacePreference(Player(10),RACE_PREF_UNDEAD)call SetPlayerRaceSelectable(Player(10),false)call SetPlayerController(Player(10),MAP_CONTROL_COMPUTER)call SetPlayerStartLocation(Player(11),11)call ForcePlayerStartLocation(Player(11),11)
call SetPlayerColor(Player(11),ConvertPlayerColor(11))call SetPlayerRacePreference(Player(11),RACE_PREF_UNDEAD)call SetPlayerRaceSelectable(Player(11),false)call SetPlayerController(Player(11),MAP_CONTROL_COMPUTER)endfunctionfunction InitCustomTeams takes nothing returns nothingcall SetPlayerTeam(Player(0),0)call SetPlayerState(Player(0),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(1),0)call SetPlayerState(Player(1),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(2),0)call SetPlayerState(Player(2),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(3),0)call SetPlayerState(Player(3),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(4),0)call SetPlayerState(Player(4),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(5),0)call SetPlayerState(Player(5),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(7),0)call SetPlayerState(Player(7),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(8),0)call SetPlayerState(Player(8),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(9),0)call SetPlayerState(Player(9),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(1),true)call SetPlayerAllianceStateAllyBJ(Player(0),Player(2),true)call SetPlayerAllianceStateAllyBJ(Player(0),Player(3),true)call SetPlayerAllianceStateAllyBJ(Player(0),Player(4),true)call SetPlayerAllianceStateAllyBJ(Player(0),Player(5),true)call SetPlayerAllianceStateAllyBJ(Player(0),Player(7),true)call SetPlayerAllianceStateAllyBJ(Player(0),Player(8),true)call SetPlayerAllianceStateAllyBJ(Player(0),Player(9),true)call SetPlayerAllianceStateAllyBJ(Player(1),Player(0),true)call SetPlayerAllianceStateAllyBJ(Player(1),Player(2),true)call SetPlayerAllianceStateAllyBJ(Player(1),Player(3),true)call SetPlayerAllianceStateAllyBJ(Player(1),Player(4),true)call SetPlayerAllianceStateAllyBJ(Player(1),Player(5),true)call SetPlayerAllianceStateAllyBJ(Player(1),Player(7),true)call SetPlayerAllianceStateAllyBJ(Player(1),Player(8),true)call SetPlayerAllianceStateAllyBJ(Player(1),Player(9),true)call SetPlayerAllianceStateAllyBJ(Player(2),Player(0),true)call SetPlayerAllianceStateAllyBJ(Player(2),Player(1),true)call SetPlayerAllianceStateAllyBJ(Player(2),Player(3),true)call SetPlayerAllianceStateAllyBJ(Player(2),Player(4),true)call SetPlayerAllianceStateAllyBJ(Player(2),Player(5),true)call SetPlayerAllianceStateAllyBJ(Player(2),Player(7),true)call SetPlayerAllianceStateAllyBJ(Player(2),Player(8),true)call SetPlayerAllianceStateAllyBJ(Player(2),Player(9),true)call SetPlayerAllianceStateAllyBJ(Player(3),Player(0),true)call SetPlayerAllianceStateAllyBJ(Player(3),Player(1),true)call SetPlayerAllianceStateAllyBJ(Player(3),Player(2),true)call SetPlayerAllianceStateAllyBJ(Player(3),Player(4),true)call SetPlayerAllianceStateAllyBJ(Player(3),Player(5),true)call SetPlayerAllianceStateAllyBJ(Player(3),Player(7),true)call SetPlayerAllianceStateAllyBJ(Player(3),Player(8),true)call SetPlayerAllianceStateAllyBJ(Player(3),Player(9),true)call SetPlayerAllianceStateAllyBJ(Player(4),Player(0),true)call SetPlayerAllianceStateAllyBJ(Player(4),Player(1),true)call SetPlayerAllianceStateAllyBJ(Player(4),Player(2),true)call SetPlayerAllianceStateAllyBJ(Player(4),Player(3),true)call SetPlayerAllianceStateAllyBJ(Player(4),Player(5),true)call SetPlayerAllianceStateAllyBJ(Player(4),Player(7),true)call SetPlayerAllianceStateAllyBJ(Player(4),Player(8),true)call SetPlayerAllianceStateAllyBJ(Player(4),Player(9),true)call SetPlayerAllianceStateAllyBJ(Player(5),Player(0),true)call SetPlayerAllianceStateAllyBJ(Player(5),Player(1),true)call SetPlayerAllianceStateAllyBJ(Player(5),Player(2),true)call SetPlayerAllianceStateAllyBJ(Player(5),Player(3),true)call SetPlayerAllianceStateAllyBJ(Player(5),Player(4),true)call SetPlayerAllianceStateAllyBJ(Player(5),Player(7),true)call SetPlayerAllianceStateAllyBJ(Player(5),Player(8),true)call SetPlayerAllianceStateAllyBJ(Player(5),Player(9),true)call SetPlayerAllianceStateAllyBJ(Player(7),Player(0),true)call SetPlayerAllianceStateAllyBJ(Player(7),Player(1),true)call SetPlayerAllianceStateAllyBJ(Player(7),Player(2),true)call SetPlayerAllianceStateAllyBJ(Player(7),Player(3),true)call SetPlayerAllianceStateAllyBJ(Player(7),Player(4),true)call SetPlayerAllianceStateAllyBJ(Player(7),Player(5),true)call SetPlayerAllianceStateAllyBJ(Player(7),Player(8),true)call SetPlayerAllianceStateAllyBJ(Player(7),Player(9),true)call SetPlayerAllianceStateAllyBJ(Player(8),Player(0),true)call SetPlayerAllianceStateAllyBJ(Player(8),Player(1),true)call SetPlayerAllianceStateAllyBJ(Player(8),Player(2),true)call SetPlayerAllianceStateAllyBJ(Player(8),Player(3),true)call SetPlayerAllianceStateAllyBJ(Player(8),Player(4),true)call SetPlayerAllianceStateAllyBJ(Player(8),Player(5),true)call SetPlayerAllianceStateAllyBJ(Player(8),Player(7),true)call SetPlayerAllianceStateAllyBJ(Player(8),Player(9),true)call SetPlayerAllianceStateAllyBJ(Player(9),Player(0),true)call SetPlayerAllianceStateAllyBJ(Player(9),Player(1),true)call SetPlayerAllianceStateAllyBJ(Player(9),Player(2),true)call SetPlayerAllianceStateAllyBJ(Player(9),Player(3),true)call SetPlayerAllianceStateAllyBJ(Player(9),Player(4),true)call SetPlayerAllianceStateAllyBJ(Player(9),Player(5),true)call SetPlayerAllianceStateAllyBJ(Player(9),Player(7),true)call SetPlayerAllianceStateAllyBJ(Player(9),Player(8),true)call SetPlayerAllianceStateVisionBJ(Player(0),Player(1),true)call SetPlayerAllianceStateVisionBJ(Player(0),Player(2),true)call SetPlayerAllianceStateVisionBJ(Player(0),Player(3),true)call SetPlayerAllianceStateVisionBJ(Player(0),Player(4),true)call SetPlayerAllianceStateVisionBJ(Player(0),Player(5),true)call SetPlayerAllianceStateVisionBJ(Player(0),Player(7),true)call SetPlayerAllianceStateVisionBJ(Player(0),Player(8),true)call SetPlayerAllianceStateVisionBJ(Player(0),Player(9),true)call SetPlayerAllianceStateVisionBJ(Player(1),Player(0),true)call SetPlayerAllianceStateVisionBJ(Player(1),Player(2),true)call SetPlayerAllianceStateVisionBJ(Player(1),Player(3),true)call SetPlayerAllianceStateVisionBJ(Player(1),Player(4),true)call SetPlayerAllianceStateVisionBJ(Player(1),Player(5),true)call SetPlayerAllianceStateVisionBJ(Player(1),Player(7),true)call SetPlayerAllianceStateVisionBJ(Player(1),Player(8),true)call SetPlayerAllianceStateVisionBJ(Player(1),Player(9),true)call SetPlayerAllianceStateVisionBJ(Player(2),Player(0),true)call SetPlayerAllianceStateVisionBJ(Player(2),Player(1),true)call SetPlayerAllianceStateVisionBJ(Player(2),Player(3),true)call SetPlayerAllianceStateVisionBJ(Player(2),Player(4),true)call SetPlayerAllianceStateVisionBJ(Player(2),Player(5),true)call SetPlayerAllianceStateVisionBJ(Player(2),Player(7),true)call SetPlayerAllianceStateVisionBJ(Player(2),Player(8),true)call SetPlayerAllianceStateVisionBJ(Player(2),Player(9),true)call SetPlayerAllianceStateVisionBJ(Player(3),Player(0),true)call SetPlayerAllianceStateVisionBJ(Player(3),Player(1),true)call SetPlayerAllianceStateVisionBJ(Player(3),Player(2),true)call SetPlayerAllianceStateVisionBJ(Player(3),Player(4),true)call SetPlayerAllianceStateVisionBJ(Player(3),Player(5),true)call SetPlayerAllianceStateVisionBJ(Player(3),Player(7),true)call SetPlayerAllianceStateVisionBJ(Player(3),Player(8),true)call SetPlayerAllianceStateVisionBJ(Player(3),Player(9),true)call SetPlayerAllianceStateVisionBJ(Player(4),Player(0),true)call SetPlayerAllianceStateVisionBJ(Player(4),Player(1),true)call SetPlayerAllianceStateVisionBJ(Player(4),Player(2),true)call SetPlayerAllianceStateVisionBJ(Player(4),Player(3),true)call SetPlayerAllianceStateVisionBJ(Player(4),Player(5),true)call SetPlayerAllianceStateVisionBJ(Player(4),Player(7),true)call SetPlayerAllianceStateVisionBJ(Player(4),Player(8),true)call SetPlayerAllianceStateVisionBJ(Player(4),Player(9),true)call SetPlayerAllianceStateVisionBJ(Player(5),Player(0),true)call SetPlayerAllianceStateVisionBJ(Player(5),Player(1),true)call SetPlayerAllianceStateVisionBJ(Player(5),Player(2),true)call SetPlayerAllianceStateVisionBJ(Player(5),Player(3),true)call SetPlayerAllianceStateVisionBJ(Player(5),Player(4),true)call SetPlayerAllianceStateVisionBJ(Player(5),Player(7),true)call SetPlayerAllianceStateVisionBJ(Player(5),Player(8),true)call SetPlayerAllianceStateVisionBJ(Player(5),Player(9),true)call SetPlayerAllianceStateVisionBJ(Player(7),Player(0),true)call SetPlayerAllianceStateVisionBJ(Player(7),Player(1),true)call SetPlayerAllianceStateVisionBJ(Player(7),Player(2),true)call SetPlayerAllianceStateVisionBJ(Player(7),Player(3),true)call SetPlayerAllianceStateVisionBJ(Player(7),Player(4),true)call SetPlayerAllianceStateVisionBJ(Player(7),Player(5),true)call SetPlayerAllianceStateVisionBJ(Player(7),Player(8),true)call SetPlayerAllianceStateVisionBJ(Player(7),Player(9),true)call SetPlayerAllianceStateVisionBJ(Player(8),Player(0),true)call SetPlayerAllianceStateVisionBJ(Player(8),Player(1),true)call SetPlayerAllianceStateVisionBJ(Player(8),Player(2),true)call SetPlayerAllianceStateVisionBJ(Player(8),Player(3),true)call SetPlayerAllianceStateVisionBJ(Player(8),Player(4),true)call SetPlayerAllianceStateVisionBJ(Player(8),Player(5),true)call SetPlayerAllianceStateVisionBJ(Player(8),Player(7),true)call SetPlayerAllianceStateVisionBJ(Player(8),Player(9),true)call SetPlayerAllianceStateVisionBJ(Player(9),Player(0),true)call SetPlayerAllianceStateVisionBJ(Player(9),Player(1),true)call SetPlayerAllianceStateVisionBJ(Player(9),Player(2),true)call SetPlayerAllianceStateVisionBJ(Player(9),Player(3),true)call SetPlayerAllianceStateVisionBJ(Player(9),Player(4),true)call SetPlayerAllianceStateVisionBJ(Player(9),Player(5),true)call SetPlayerAllianceStateVisionBJ(Player(9),Player(7),true)call SetPlayerAllianceStateVisionBJ(Player(9),Player(8),true)call SetPlayerTeam(Player(6),1)call SetPlayerState(Player(6),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(10),1)
call SetPlayerState(Player(10),PLAYER_STATE_ALLIED_VICTORY,1)call SetPlayerTeam(Player(11),1)
call SetPlayerState(Player(11),PLAYER_STATE_ALLIED_VICTORY,1)call SetPlayerAllianceStateAllyBJ(Player(6),Player(10),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(11),true)
call SetPlayerAllianceStateAllyBJ(Player(10),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(10),Player(11),true)call SetPlayerAllianceStateAllyBJ(Player(11),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(11),Player(10),true)call SetPlayerAllianceStateVisionBJ(Player(6),Player(10),true)call SetPlayerAllianceStateVisionBJ(Player(6),Player(11),true)call SetPlayerAllianceStateVisionBJ(Player(10),Player(6),true)call SetPlayerAllianceStateVisionBJ(Player(10),Player(11),true)call SetPlayerAllianceStateVisionBJ(Player(11),Player(6),true)call SetPlayerAllianceStateVisionBJ(Player(11),Player(10),true)endfunctionfunction InitAllyPriorities takes nothing returns nothingcall SetStartLocPrioCount(0,5)call SetStartLocPrio(0,0,1,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(0,1,2,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(0,2,3,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(0,3,4,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(0,4,5,MAP_LOC_PRIO_HIGH)call SetStartLocPrioCount(1,5)call SetStartLocPrio(1,0,0,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(1,1,2,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(1,2,3,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(1,3,4,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(1,4,5,MAP_LOC_PRIO_HIGH)call SetStartLocPrioCount(2,5)call SetStartLocPrio(2,0,0,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(2,1,1,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(2,2,3,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(2,3,4,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(2,4,5,MAP_LOC_PRIO_HIGH)call SetStartLocPrioCount(3,5)call SetStartLocPrio(3,0,0,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(3,1,1,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(3,2,2,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(3,3,4,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(3,4,5,MAP_LOC_PRIO_HIGH)call SetStartLocPrioCount(4,5)call SetStartLocPrio(4,0,0,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(4,1,1,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(4,2,2,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(4,3,3,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(4,4,5,MAP_LOC_PRIO_HIGH)call SetStartLocPrioCount(5,5)call SetStartLocPrio(5,0,0,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(5,1,1,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(5,2,2,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(5,3,3,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(5,4,4,MAP_LOC_PRIO_HIGH)call SetStartLocPrioCount(6,7)call SetStartLocPrio(6,0,0,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(6,1,1,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(6,2,2,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(6,3,3,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(6,4,4,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(6,5,5,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(6,6,7,MAP_LOC_PRIO_HIGH)call SetStartLocPrioCount(7,7)call SetStartLocPrio(7,0,0,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(7,1,1,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(7,2,2,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(7,3,3,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(7,4,4,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(7,5,5,MAP_LOC_PRIO_HIGH)call SetStartLocPrio(7,6,6,MAP_LOC_PRIO_HIGH)endfunctionfunction main takes nothing returns nothingcall SetCameraBounds(-28672.0+GetCameraMargin(CAMERA_MARGIN_LEFT),-28160.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM),27904.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),27648.0-GetCameraMargin(CAMERA_MARGIN_TOP),-28672.0+GetCameraMargin(CAMERA_MARGIN_LEFT),27648.0-GetCameraMargin(CAMERA_MARGIN_TOP),27904.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),-28160.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM))call SetDayNightModels("Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl","Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl")call NewSoundEnvironment("Default")call SetAmbientDaySound("CityScapeDay")call SetAmbientNightSound("CityScapeNight")call SetMapMusic("Music",true,0)
call InitSounds()call CreateRegions()
call CreateCameras()
call CreateAllDestructables()call CreateAllItems()call CreateAllUnits()call InitBlizzard()call InitGlobals()call InitCustomTriggers()call RunInitializationTriggers()
endfunctionfunction config takes nothing returns nothingcall SetMapName("|c0000FF00Наступление тьмы|r")call SetMapDescription("|c0000FF00Hero RPG/Defence|r
|c0030c5d8Случайная генерация героев.|r
|c00FFFF00Большой выбор способностей и артефактов.|r
|c0000FFFFМножество спрятаных артефактов.|r
|c0030c5d8Случайные события.|r
|c00FF8C00Геймплей 2-4 часа.|r
|c00FF8C00V 0.85|r")call SetPlayers(12)call SetTeams(12)call SetGamePlacement(MAP_PLACEMENT_TEAMS_TOGETHER)call DefineStartLocation(0,11136.0,-12544.0)
call DefineStartLocation(1,11136.0,-12544.0)
call DefineStartLocation(2,11136.0,-12544.0)
call DefineStartLocation(3,11136.0,-12544.0)
call DefineStartLocation(4,11136.0,-12544.0)
call DefineStartLocation(5,11136.0,-12544.0)
call DefineStartLocation(6,11136.0,-12544.0)
call DefineStartLocation(7,11136.0,-12544.0)
call DefineStartLocation(8,11136.0,-12544.0)
call DefineStartLocation(9,11136.0,-12544.0)
call DefineStartLocation(10,11136.0,-12544.0)call DefineStartLocation(11,11136.0,-12544.0)call InitCustomPlayerSlots()
call InitCustomTeams()call InitAllyPriorities()endfunction