----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------Функции проверяют наличие стартовых существ у героев и вызывают функцию их удаления-- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------- --------------------------Игрок 1-------------------------------------- ----------------------------------------------------------------------- function check_hero_start_creatures_player_1() local HeroPlayer1 = GetPlayerHeroes(1); local hero2_player1 = HeroPlayer1[1]; local hero3_player1 = HeroPlayer1[2]; local hero4_player1 = HeroPlayer1[3]; local hero5_player1 = HeroPlayer1[4]; local hero6_player1 = HeroPlayer1[5]; local hero7_player1 = HeroPlayer1[6]; local hero8_player1 = HeroPlayer1[7]; if IsObjectExists(hero8_player1 or 'hero8_player1') == 1 then new_hero = hero8_player1 removing_start_creatures_from_heroes() elseif IsObjectExists(hero7_player1 or 'hero7_player1') == 1 then new_hero = hero7_player1 removing_start_creatures_from_heroes() elseif IsObjectExists(hero6_player1 or 'hero6_player1') == 1 then new_hero = hero6_player1 removing_start_creatures_from_heroes() elseif IsObjectExists(hero5_player1 or 'hero5_player1') == 1 then new_hero = hero5_player1 removing_start_creatures_from_heroes() elseif IsObjectExists(hero4_player1 or 'hero4_player1') == 1 then new_hero = hero4_player1 removing_start_creatures_from_heroes() elseif IsObjectExists(hero3_player1 or 'hero3_player1') == 1 then new_hero = hero3_player1 removing_start_creatures_from_heroes() elseif IsObjectExists(hero2_player1 or 'hero2_player1') == 1 then new_hero = hero2_player1 removing_start_creatures_from_heroes() end; end; ----------------------------------------------------------------------- --------------------------Игрок 2-------------------------------------- ----------------------------------------------------------------------- function check_hero_start_creatures_player_2() local HeroPlayer2 = GetPlayerHeroes(2); local hero2_player2 = HeroPlayer2[1]; local hero3_player2 = HeroPlayer2[2]; local hero4_player2 = HeroPlayer2[3]; local hero5_player2 = HeroPlayer2[4]; local hero6_player2 = HeroPlayer2[5]; local hero7_player2 = HeroPlayer2[6]; local hero8_player2 = HeroPlayer2[7]; if IsObjectExists(hero8_player2 or 'hero8_player2') == 1 then new_hero = hero8_player2 removing_start_creatures_from_heroes() elseif IsObjectExists(hero7_player2 or 'hero7_player2') == 1 then new_hero = hero7_player2 removing_start_creatures_from_heroes() elseif IsObjectExists(hero6_player2 or 'hero6_player2') == 1 then new_hero = hero6_player2 removing_start_creatures_from_heroes() elseif IsObjectExists(hero5_player2 or 'hero5_player2') == 1 then new_hero = hero5_player2 removing_start_creatures_from_heroes() elseif IsObjectExists(hero4_player2 or 'hero4_player2') == 1 then new_hero = hero4_player2 removing_start_creatures_from_heroes() elseif IsObjectExists(hero3_player2 or 'hero3_player2') == 1 then new_hero = hero3_player2 removing_start_creatures_from_heroes() elseif IsObjectExists(hero2_player2 or 'hero2_player2') == 1 then new_hero = hero2_player2 removing_start_creatures_from_heroes() end; end; ---------------------------------------------------------------------- function give_skills(hero1_player1, city_town) --extras local arts_table = { {63, 42, 60, 93, 65, 59, 20, 91, 47, 22, 23, 73, 70, 21}, -- ring {63, 42, 60, 93, 65, 59, 20, 91, 47, 22, 23, 73, 70, 21}, -- ring {2, 80, 43, 85, 90, 74, 81, 6, 45, 1, 5, 4, 3}, -- weapon {88, 46, 41, 66, 50, 11, 55}, -- helm {13, 56, 48, 36, 44, 82, 14, 64}, --armour {27, 38, 61, 49, 68, 57}, -- boots {71, 40, 18, 17, 16, 19, 67, 15}, --necklace {94, 37, 52, 58, 75, 9, 51, 78, 76, 77, 79}, -- shield {31, 33, 62, 39, 32, 69, 95, 84}, --cloak {8, 25, 86, 83, 87}, -- pocket }; local tbl_lengthes = {14,14,13,7,8,6,8,11,8,5}; for i = 1, 10 do --local v = arts_table[i]; local art_index = 1 + random(tbl_lengthes[i]); local art_id = arts_table[i][art_index]; GiveArtifact(hero1_player1, art_id); end; GiveHeroWarMachine(hero1_player1, 1); GiveHeroWarMachine(hero1_player1, 3); GiveHeroWarMachine(hero1_player1, 4); TeachHeroSpell(hero1_player1, 285); print('syka'); local skills_usual = { SKILL_OFFENCE, SKILL_DARK_MAGIC, SKILL_DEFENCE, SKILL_DESTRUCTIVE_MAGIC, SKILL_LEADERSHIP, SKILL_LIGHT_MAGIC, SKILL_LOGISTICS, SKILL_LUCK, SKILL_LEARNING, SKILL_SORCERY, SKILL_SUMMONING_MAGIC, SKILL_WAR_MACHINES }; local skills_barb = { SKILL_OFFENCE, HERO_SKILL_SHATTER_DARK_MAGIC, SKILL_DEFENCE, HERO_SKILL_SHATTER_DESTRUCTIVE_MAGIC, SKILL_LEADERSHIP, HERO_SKILL_SHATTER_LIGHT_MAGIC, SKILL_LOGISTICS, SKILL_LUCK, HERO_SKILL_BARBARIAN_LEARNING, HERO_SKILL_SHATTER_SUMMONING_MAGIC, HERO_SKILL_VOICE, SKILL_WAR_MACHINES }; local barb_low_perks = { 35,36,104,91,130,117,143,76,34, --attack 105,38,92,118,144,37,131,77,39, --defence 128,141,115,30,75,29,89,102,28,170, --LEADERSHIP 99,73,125,21,19,20,112,86,138,168,155, --logistic 103,116,31,32,33,129,90,80,142,159, --luck 23,88,24,22,113,100,126,139,74 --WAR_MACHINES }; -- len=58 local race_1 = GetTownRace(city_town); if race_1 == 0 then --== 0 HEAVEN GiveHeroSkill(hero1_player1, 13); GiveHeroSkill(hero1_player1, 13); GiveHeroSkill(hero1_player1, 56); GiveHeroSkill(hero1_player1, 57); GiveHeroSkill(hero1_player1, 55); for i = 1, 20 do local rand_skill = skills_usual[1 + random(12)]; for j = 1,3 do GiveHeroSkill(hero1_player1, rand_skill); end; end; for i = 1, 1000 do local rand_perk = 1 + random(171); GiveHeroSkill(hero1_player1, rand_perk); end; GiveHeroSkill(hero1_player1, 85); elseif race_1 == 1 then --== 1 PRESERVE GiveHeroSkill(hero1_player1, 16); GiveHeroSkill(hero1_player1, 16); GiveHeroSkill(hero1_player1, 64); GiveHeroSkill(hero1_player1, 65); GiveHeroSkill(hero1_player1, 66); for i = 1, 20 do local rand_skill = skills_usual[1 + random(12)]; for j = 1,3 do GiveHeroSkill(hero1_player1, rand_skill); end; end; for i = 1, 1000 do local rand_perk = 1 + random(171); GiveHeroSkill(hero1_player1, rand_perk); end; GiveHeroSkill(hero1_player1, 124); elseif race_1 == 2 then --== 2 ACADEMY GiveHeroSkill(hero1_player1, 17); GiveHeroSkill(hero1_player1, 17); GiveHeroSkill(hero1_player1, 67); GiveHeroSkill(hero1_player1, 68); GiveHeroSkill(hero1_player1, 69); for i = 1, 20 do local rand_skill = skills_usual[1 + random(12)]; for j = 1,3 do GiveHeroSkill(hero1_player1, rand_skill); end; end; for i = 1, 1000 do local rand_perk = 1 + random(171); GiveHeroSkill(hero1_player1, rand_perk); end; GiveHeroSkill(hero1_player1, 137); elseif race_1 == 3 then --== 3 DUNGEON GiveHeroSkill(hero1_player1, 18); GiveHeroSkill(hero1_player1, 18); GiveHeroSkill(hero1_player1, 70); GiveHeroSkill(hero1_player1, 71); GiveHeroSkill(hero1_player1, 72); for i = 1, 20 do local rand_skill = skills_usual[1 + random(12)]; for j = 1,3 do GiveHeroSkill(hero1_player1, rand_skill); end; end; for i = 1, 1000 do local rand_perk = 1 + random(171); GiveHeroSkill(hero1_player1, rand_perk); end; GiveHeroSkill(hero1_player1, 150); elseif race_1 == 4 then --== 4 NECROPOLIS GiveHeroSkill(hero1_player1, 15); GiveHeroSkill(hero1_player1, 15); GiveHeroSkill(hero1_player1, 63); GiveHeroSkill(hero1_player1, 62); GiveHeroSkill(hero1_player1, 61); for i = 1, 20 do local rand_skill = skills_usual[1 + random(12)]; for j = 1,3 do GiveHeroSkill(hero1_player1, rand_skill); end; end; for i = 1, 1000 do local rand_perk = 1 + random(171); GiveHeroSkill(hero1_player1, rand_perk); end; GiveHeroSkill(hero1_player1, 111); elseif race_1 == 5 then --== 5 INFERNO GiveHeroSkill(hero1_player1, 14); GiveHeroSkill(hero1_player1, 14); GiveHeroSkill(hero1_player1, 58); GiveHeroSkill(hero1_player1, 59); GiveHeroSkill(hero1_player1, 60); for i = 1, 20 do local rand_skill = skills_usual[1 + random(12)]; for j = 1,3 do GiveHeroSkill(hero1_player1, rand_skill); end; end; for i = 1, 1000 do local rand_perk = 1 + random(171); GiveHeroSkill(hero1_player1, rand_perk); end; GiveHeroSkill(hero1_player1, 98); elseif race_1 == 6 then --== 6 FORTRESS GiveHeroSkill(hero1_player1, 151); GiveHeroSkill(hero1_player1, 151); GiveHeroSkill(hero1_player1, 152); GiveHeroSkill(hero1_player1, 153); GiveHeroSkill(hero1_player1, 154); for i = 1, 20 do local rand_skill = skills_usual[1 + random(12)]; for j = 1,3 do GiveHeroSkill(hero1_player1, rand_skill); end; end; for i = 1, 1000 do local rand_perk = 1 + random(171); GiveHeroSkill(hero1_player1, rand_perk); end; GiveHeroSkill(hero1_player1, 167); elseif race_1 == 7 then --== 7 STRONGHOLD GiveHeroSkill(hero1_player1, 172); GiveHeroSkill(hero1_player1, 172); GiveHeroSkill(hero1_player1, 173); GiveHeroSkill(hero1_player1, 174); GiveHeroSkill(hero1_player1, 175); for i = 1, 20 do local rand_skill = skills_barb[1 + random(12)]; for j = 1,3 do GiveHeroSkill(hero1_player1, rand_skill); end; end; local rand_perk='a'; for i = 1, 1000 do local choose_perk_type = random(2); if choose_perk_type==1 then rand_perk = 176 + random(215-176) else rand_perk = barb_low_perks[1+ random(58)] end; GiveHeroSkill(hero1_player1, rand_perk); end; GiveHeroSkill(hero1_player1, 176); end; -- end extras end ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------Удаление существ у стартовых героев-------------------- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- function removing_start_creatures_from_main_heroes() local HeroPlayer1 = GetPlayerHeroes(1); local HeroPlayer2 = GetPlayerHeroes(2); local hero1_player1 = HeroPlayer1[0]; local hero1_player2 = HeroPlayer2[0]; AddHeroCreatures(hero1_player1,1,1,6); AddHeroCreatures(hero1_player2,1,1,6); sleep(1) for k = 2, 179 do RemoveHeroCreatures(hero1_player1, k, 999999); RemoveHeroCreatures(hero1_player2, k, 999999); end; RemoveHeroCreatures(hero1_player1, 1, 999999); RemoveHeroCreatures(hero1_player2, 1, 999999); give_skills(hero1_player1, 'town_1'); give_skills(hero1_player2, 'town_2'); end; ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------Удаление существ у второстепенных героев-------------------- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- function removing_start_creatures_from_heroes() AddHeroCreatures(new_hero,1,1,6); sleep(1) for k = 2, 179 do RemoveHeroCreatures(new_hero, k, 999999); end; RemoveHeroCreatures(new_hero, 1, 999999); end; ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------Функция удаления всех героев кроме основного у Игрока №1-- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- function remove_secondary_heroes_player_1() local HeroPlayer1 = GetPlayerHeroes(1); local hero2_player1 = HeroPlayer1[1]; local hero3_player1 = HeroPlayer1[2]; local hero4_player1 = HeroPlayer1[3]; local hero5_player1 = HeroPlayer1[4]; local hero6_player1 = HeroPlayer1[5]; local hero7_player1 = HeroPlayer1[6]; local hero8_player1 = HeroPlayer1[7]; if IsObjectExists(hero8_player1 or 'hero8_player1') == 1 then RemoveObject(hero2_player1) RemoveObject(hero3_player1) RemoveObject(hero4_player1) RemoveObject(hero5_player1) RemoveObject(hero6_player1) RemoveObject(hero7_player1) RemoveObject(hero8_player1) elseif IsObjectExists(hero7_player1 or 'hero7_player1') == 1 then RemoveObject(hero2_player1) RemoveObject(hero3_player1) RemoveObject(hero4_player1) RemoveObject(hero5_player1) RemoveObject(hero6_player1) RemoveObject(hero7_player1) elseif IsObjectExists(hero6_player1 or 'hero6_player1') == 1 then RemoveObject(hero2_player1) RemoveObject(hero3_player1) RemoveObject(hero4_player1) RemoveObject(hero5_player1) RemoveObject(hero6_player1) elseif IsObjectExists(hero5_player1 or 'hero5_player1') == 1 then RemoveObject(hero2_player1) RemoveObject(hero3_player1) RemoveObject(hero4_player1) RemoveObject(hero5_player1) elseif IsObjectExists(hero4_player1 or 'hero4_player1') == 1 then RemoveObject(hero2_player1) RemoveObject(hero3_player1) RemoveObject(hero4_player1) -- elseif IsObjectExists(hero3_player1 or 'hero3_player1') == 1 then RemoveObject(hero2_player1) RemoveObject(hero3_player1) elseif IsObjectExists(hero2_player1 or 'hero2_player1') == 1 then RemoveObject(hero2_player1) end; end; ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------Функция удаления всех героев кроме основного у Игрока №2-- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- function remove_secondary_heroes_player_2() local HeroPlayer2 = GetPlayerHeroes(2); local hero2_player2 = HeroPlayer2[1]; local hero3_player2 = HeroPlayer2[2]; local hero4_player2 = HeroPlayer2[3]; local hero5_player2 = HeroPlayer2[4]; local hero6_player2 = HeroPlayer2[5]; local hero7_player2 = HeroPlayer2[6]; local hero8_player2 = HeroPlayer2[7]; if IsObjectExists(hero8_player2 or 'hero8_player2') == 1 then RemoveObject(hero2_player2) RemoveObject(hero3_player2) RemoveObject(hero4_player2) RemoveObject(hero5_player2) RemoveObject(hero6_player2) RemoveObject(hero7_player2) RemoveObject(hero8_player2) elseif IsObjectExists(hero7_player2 or 'hero7_player2') == 1 then RemoveObject(hero2_player2) RemoveObject(hero3_player2) RemoveObject(hero4_player2) RemoveObject(hero5_player2) RemoveObject(hero6_player2) RemoveObject(hero7_player2) elseif IsObjectExists(hero6_player2 or 'hero6_player2') == 1 then RemoveObject(hero2_player2) RemoveObject(hero3_player2) RemoveObject(hero4_player2) RemoveObject(hero5_player2) RemoveObject(hero6_player2) elseif IsObjectExists(hero5_player2 or 'hero5_player2') == 1 then RemoveObject(hero2_player2) RemoveObject(hero3_player2) RemoveObject(hero4_player2) RemoveObject(hero5_player2) elseif IsObjectExists(hero4_player2 or 'hero4_player2') == 1 then RemoveObject(hero2_player2) RemoveObject(hero3_player2) RemoveObject(hero4_player2) -- elseif IsObjectExists(hero3_player2 or 'hero3_player2') == 1 then RemoveObject(hero2_player2) RemoveObject(hero3_player2) elseif IsObjectExists(hero2_player2 or 'hero2_player2') == 1 then RemoveObject(hero2_player2) end; end; ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------Функция вызова оповещения об основном герое Игрока №1, если он удалил героя.-- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- function remove_hero_notification_player_1() local Unblock_Portal_Check_1 = GetObjectiveProgress('Unblock_start_portal_objective', 1) if Unblock_Portal_Check_1 == 0 then remove_second_hero_and_main_hero_notification_player_1() end; end; Trigger(PLAYER_REMOVE_HERO_TRIGGER,1,'remove_hero_notification_player_1') ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------Функция вызова оповещения об основном герое Игрока №2, если он удалил героя.-- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- function remove_hero_notification_player_2() local Unblock_Portal_Check_2 = GetObjectiveProgress('Unblock_start_portal_objective', 2) if Unblock_Portal_Check_2 == 0 then remove_second_hero_and_main_hero_notification_player_2() end; end; Trigger(PLAYER_REMOVE_HERO_TRIGGER,2,'remove_hero_notification_player_2') ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------Вызывает функцию оповещения об основном герое Игрока №1, если он нанял нового героя.-- -------------- Вызывает функцию удаления стартовых существ героя--------------- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- function add_main_hero_notification_player_1() HeroPlayer1 = GetPlayerHeroes(1); hero1 = HeroPlayer1[0]; -----------------Heaven---------------------------------- if hero1 == 'Brem' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Brem.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Christian' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Christian.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Maeve' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Maeve.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Mardigo' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Mardigo.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Nathaniel' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Nathaniel.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Orrin' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Orrin.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Sarge' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Sarge.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Ving' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Ving.txt", nil) check_hero_start_creatures_player_1() -----------------Inferno---------------------------------- elseif hero1 == 'Calid' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Calid.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Deleb' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Deleb.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Efion' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Efion.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Grok' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Grok.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Jazaz' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Jazaz.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Marder' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Marder.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Nymus' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Nymus.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Oddrema' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Oddrema.txt", nil) check_hero_start_creatures_player_1() -----------------Necropolis---------------------------------- elseif hero1 == 'Aberrar' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Aberrar.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Effig' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Effig.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Gles' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Gles.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Muscrip' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Muscrip.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Nemor' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Nemor.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Pelt' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Pelt.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Straker' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Straker.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Tamika' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Tamika.txt", nil) check_hero_start_creatures_player_1() -----------------Preserve---------------------------------- elseif hero1 == 'Diraya' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Diraya.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Elleshar' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Elleshar.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Gillion' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Gillion.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Itil' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Itil.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Linaas' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Linaas.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Metlirn' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Metlirn.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Nadaur' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Nadaur.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Ossir' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Ossir.txt", nil) check_hero_start_creatures_player_1() -----------------Dungeon---------------------------------- elseif hero1 == 'Almegir' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Almegir.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Dalom' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Dalom.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Eruina' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Eruina.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Ferigi' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Ferigi.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Inagost' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Inagost.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Menel' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Menel.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Ohtarig' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Ohtarig.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Urunir' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Urunir.txt", nil) check_hero_start_creatures_player_1() -----------------Academy---------------------------------- elseif hero1 == 'Astral' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Astral.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Faiz' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Faiz.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Havez' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Havez.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Isher' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Isher.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Nur' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Nur.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Razzak' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Razzak.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Sufi' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Sufi.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Tan' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Tan.txt", nil) check_hero_start_creatures_player_1() -----------------Fortress---------------------------------- elseif hero1 == 'Bersy' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Bersy.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Brand' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Brand.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Egil' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Egil.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Ingvar' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Ingvar.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Ottar' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Ottar.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Skeggy' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Skeggy.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Una' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Una.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Vegeyr' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Vegeyr.txt", nil) check_hero_start_creatures_player_1() -----------------Stronghold---------------------------------- elseif hero1 == 'Hero1' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero1.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Hero2' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero2.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Hero3' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero3.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Hero4' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero4.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Hero6' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero6.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Hero7' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero7.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Hero8' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero8.txt", nil) check_hero_start_creatures_player_1() elseif hero1 == 'Hero9' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero9.txt", nil) check_hero_start_creatures_player_1() end; end; Trigger(PLAYER_ADD_HERO_TRIGGER,1,'add_main_hero_notification_player_1') -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------Вызывает функцию оповещения об основном герое Игрока №1, если он УДАЛИЛ одного из героев.-- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- function remove_second_hero_and_main_hero_notification_player_1() HeroPlayer1 = GetPlayerHeroes(1); hero1 = HeroPlayer1[0]; -----------------Heaven---------------------------------- if hero1 == 'Brem' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Brem.txt", nil) elseif hero1 == 'Christian' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Christian.txt", nil) elseif hero1 == 'Maeve' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Maeve.txt", nil) elseif hero1 == 'Mardigo' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Mardigo.txt", nil) elseif hero1 == 'Nathaniel' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Nathaniel.txt", nil) elseif hero1 == 'Orrin' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Orrin.txt", nil) elseif hero1 == 'Sarge' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Sarge.txt", nil) elseif hero1 == 'Ving' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Ving.txt", nil) -----------------Inferno---------------------------------- elseif hero1 == 'Calid' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Calid.txt", nil) elseif hero1 == 'Deleb' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Deleb.txt", nil) elseif hero1 == 'Efion' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Efion.txt", nil) elseif hero1 == 'Grok' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Grok.txt", nil) elseif hero1 == 'Jazaz' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Jazaz.txt", nil) elseif hero1 == 'Marder' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Marder.txt", nil) elseif hero1 == 'Nymus' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Nymus.txt", nil) elseif hero1 == 'Oddrema' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Oddrema.txt", nil) -----------------Necropolis---------------------------------- elseif hero1 == 'Aberrar' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Aberrar.txt", nil) elseif hero1 == 'Effig' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Effig.txt", nil) elseif hero1 == 'Gles' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Gles.txt", nil) elseif hero1 == 'Muscrip' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Muscrip.txt", nil) elseif hero1 == 'Nemor' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Nemor.txt", nil) elseif hero1 == 'Pelt' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Pelt.txt", nil) elseif hero1 == 'Straker' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Straker.txt", nil) elseif hero1 == 'Tamika' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Tamika.txt", nil) -----------------Preserve---------------------------------- elseif hero1 == 'Diraya' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Diraya.txt", nil) elseif hero1 == 'Elleshar' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Elleshar.txt", nil) elseif hero1 == 'Gillion' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Gillion.txt", nil) elseif hero1 == 'Itil' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Itil.txt", nil) elseif hero1 == 'Linaas' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Linaas.txt", nil) elseif hero1 == 'Metlirn' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Metlirn.txt", nil) elseif hero1 == 'Nadaur' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Nadaur.txt", nil) elseif hero1 == 'Ossir' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Ossir.txt", nil) -----------------Dungeon---------------------------------- elseif hero1 == 'Almegir' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Almegir.txt", nil) elseif hero1 == 'Dalom' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Dalom.txt", nil) elseif hero1 == 'Eruina' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Eruina.txt", nil) elseif hero1 == 'Ferigi' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Ferigi.txt", nil) elseif hero1 == 'Inagost' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Inagost.txt", nil) elseif hero1 == 'Menel' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Menel.txt", nil) elseif hero1 == 'Ohtarig' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Ohtarig.txt", nil) elseif hero1 == 'Urunir' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Urunir.txt", nil) -----------------Academy---------------------------------- elseif hero1 == 'Astral' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Astral.txt", nil) elseif hero1 == 'Faiz' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Faiz.txt", nil) elseif hero1 == 'Havez' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Havez.txt", nil) elseif hero1 == 'Isher' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Isher.txt", nil) elseif hero1 == 'Nur' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Nur.txt", nil) elseif hero1 == 'Razzak' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Razzak.txt", nil) elseif hero1 == 'Sufi' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Sufi.txt", nil) elseif hero1 == 'Tan' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Tan.txt", nil) -----------------Fortress---------------------------------- elseif hero1 == 'Bersy' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Bersy.txt", nil) elseif hero1 == 'Brand' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Brand.txt", nil) elseif hero1 == 'Egil' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Egil.txt", nil) elseif hero1 == 'Ingvar' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Ingvar.txt", nil) elseif hero1 == 'Ottar' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Ottar.txt", nil) elseif hero1 == 'Skeggy' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Skeggy.txt", nil) elseif hero1 == 'Una' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Una.txt", nil) elseif hero1 == 'Vegeyr' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Vegeyr.txt", nil) -----------------Stronghold---------------------------------- elseif hero1 == 'Hero1' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero1.txt", nil) elseif hero1 == 'Hero2' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero2.txt", nil) elseif hero1 == 'Hero3' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero3.txt", nil) elseif hero1 == 'Hero4' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero4.txt", nil) elseif hero1 == 'Hero6' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero6.txt", nil) elseif hero1 == 'Hero7' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero7.txt", nil) elseif hero1 == 'Hero8' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero8.txt", nil) elseif hero1 == 'Hero9' then MessageBoxForPlayers(1, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero9.txt", nil) end; end; ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------Вызывает функцию оповещения об основном герое Игрока №2, если он нанял нового героя.-- -------------- Удаляет стартовых существ героя--------------- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- function add_main_hero_notification_player_2() HeroPlayer2 = GetPlayerHeroes(2); hero2 = HeroPlayer2[0]; -----------------Heaven---------------------------------- if hero2 == 'Brem' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Brem.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Christian' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Christian.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Maeve' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Maeve.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Mardigo' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Mardigo.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Nathaniel' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Nathaniel.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Orrin' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Orrin.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Sarge' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Sarge.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Ving' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Ving.txt", nil) check_hero_start_creatures_player_2() -----------------Inferno---------------------------------- elseif hero2 == 'Calid' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Calid.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Deleb' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Deleb.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Efion' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Efion.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Grok' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Grok.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Jazaz' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Jazaz.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Marder' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Marder.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Nymus' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Nymus.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Oddrema' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Oddrema.txt", nil) check_hero_start_creatures_player_2() -----------------Necropolis---------------------------------- elseif hero2 == 'Aberrar' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Aberrar.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Effig' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Effig.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Gles' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Gles.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Muscrip' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Muscrip.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Nemor' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Nemor.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Pelt' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Pelt.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Straker' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Straker.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Tamika' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Tamika.txt", nil) check_hero_start_creatures_player_2() -----------------Preserve---------------------------------- elseif hero2 == 'Diraya' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Diraya.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Elleshar' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Elleshar.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Gillion' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Gillion.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Itil' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Itil.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Linaas' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Linaas.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Metlirn' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Metlirn.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Nadaur' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Nadaur.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Ossir' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Ossir.txt", nil) check_hero_start_creatures_player_2() -----------------Dungeon---------------------------------- elseif hero2 == 'Almegir' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Almegir.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Dalom' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Dalom.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Eruina' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Eruina.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Ferigi' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Ferigi.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Inagost' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Inagost.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Menel' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Menel.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Ohtarig' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Ohtarig.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Urunir' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Urunir.txt", nil) check_hero_start_creatures_player_2() -----------------Academy---------------------------------- elseif hero2 == 'Astral' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Astral.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Faiz' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Faiz.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Havez' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Havez.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Isher' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Isher.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Nur' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Nur.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Razzak' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Razzak.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Sufi' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Sufi.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Tan' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Tan.txt", nil) check_hero_start_creatures_player_2() -----------------Fortress---------------------------------- elseif hero2 == 'Bersy' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Bersy.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Brand' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Brand.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Egil' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Egil.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Ingvar' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Ingvar.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Ottar' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Ottar.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Skeggy' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Skeggy.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Una' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Una.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Vegeyr' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Vegeyr.txt", nil) check_hero_start_creatures_player_2() -----------------Stronghold---------------------------------- elseif hero2 == 'Hero1' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero1.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Hero2' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero2.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Hero3' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero3.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Hero4' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero4.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Hero6' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero6.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Hero7' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero7.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Hero8' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero8.txt", nil) check_hero_start_creatures_player_2() elseif hero2 == 'Hero9' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero9.txt", nil) check_hero_start_creatures_player_2() end; end; Trigger(PLAYER_ADD_HERO_TRIGGER,2,'add_main_hero_notification_player_2') -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------Вызывает функцию оповещения об основном герое Игрока №2, если он УДАЛИЛ одного из героев.-- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- function remove_second_hero_and_main_hero_notification_player_2() HeroPlayer2 = GetPlayerHeroes(2); hero2 = HeroPlayer2[0]; -----------------Heaven---------------------------------- if hero2 == 'Brem' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Brem.txt", nil) elseif hero2 == 'Christian' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Christian.txt", nil) elseif hero2 == 'Maeve' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Maeve.txt", nil) elseif hero2 == 'Mardigo' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Mardigo.txt", nil) elseif hero2 == 'Nathaniel' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Nathaniel.txt", nil) elseif hero2 == 'Orrin' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Orrin.txt", nil) elseif hero2 == 'Sarge' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Sarge.txt", nil) elseif hero2 == 'Ving' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Heaven_Ving.txt", nil) -----------------Inferno---------------------------------- elseif hero2 == 'Calid' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Calid.txt", nil) elseif hero2 == 'Deleb' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Deleb.txt", nil) elseif hero2 == 'Efion' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Efion.txt", nil) elseif hero2 == 'Grok' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Grok.txt", nil) elseif hero2 == 'Jazaz' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Jazaz.txt", nil) elseif hero2 == 'Marder' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Marder.txt", nil) elseif hero2 == 'Nymus' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Nymus.txt", nil) elseif hero2 == 'Oddrema' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Inferno_Oddrema.txt", nil) -----------------Necropolis---------------------------------- elseif hero2 == 'Aberrar' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Aberrar.txt", nil) elseif hero2 == 'Effig' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Effig.txt", nil) elseif hero2 == 'Gles' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Gles.txt", nil) elseif hero2 == 'Muscrip' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Muscrip.txt", nil) elseif hero2 == 'Nemor' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Nemor.txt", nil) elseif hero2 == 'Pelt' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Pelt.txt", nil) elseif hero2 == 'Straker' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Straker.txt", nil) elseif hero2 == 'Tamika' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Necropolis_Tamika.txt", nil) -----------------Preserve---------------------------------- elseif hero2 == 'Diraya' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Diraya.txt", nil) elseif hero2 == 'Elleshar' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Elleshar.txt", nil) elseif hero2 == 'Gillion' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Gillion.txt", nil) elseif hero2 == 'Itil' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Itil.txt", nil) elseif hero2 == 'Linaas' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Linaas.txt", nil) elseif hero2 == 'Metlirn' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Metlirn.txt", nil) elseif hero2 == 'Nadaur' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Nadaur.txt", nil) elseif hero2 == 'Ossir' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Preserve_Ossir.txt", nil) -----------------Dungeon---------------------------------- elseif hero2 == 'Almegir' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Almegir.txt", nil) elseif hero2 == 'Dalom' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Dalom.txt", nil) elseif hero2 == 'Eruina' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Eruina.txt", nil) elseif hero2 == 'Ferigi' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Ferigi.txt", nil) elseif hero2 == 'Inagost' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Inagost.txt", nil) elseif hero2 == 'Menel' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Menel.txt", nil) elseif hero2 == 'Ohtarig' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Ohtarig.txt", nil) elseif hero2 == 'Urunir' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Dungeon_Urunir.txt", nil) -----------------Academy---------------------------------- elseif hero2 == 'Astral' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Astral.txt", nil) elseif hero2 == 'Faiz' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Faiz.txt", nil) elseif hero2 == 'Havez' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Havez.txt", nil) elseif hero2 == 'Isher' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Isher.txt", nil) elseif hero2 == 'Nur' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Nur.txt", nil) elseif hero2 == 'Razzak' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Razzak.txt", nil) elseif hero2 == 'Sufi' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Sufi.txt", nil) elseif hero2 == 'Tan' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Academy_Tan.txt", nil) -----------------Fortress---------------------------------- elseif hero2 == 'Bersy' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Bersy.txt", nil) elseif hero2 == 'Brand' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Brand.txt", nil) elseif hero2 == 'Egil' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Egil.txt", nil) elseif hero2 == 'Ingvar' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Ingvar.txt", nil) elseif hero2 == 'Ottar' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Ottar.txt", nil) elseif hero2 == 'Skeggy' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Skeggy.txt", nil) elseif hero2 == 'Una' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Una.txt", nil) elseif hero2 == 'Vegeyr' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Fortress_Vegeyr.txt", nil) -----------------Stronghold---------------------------------- elseif hero2 == 'hero2' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_hero2.txt", nil) elseif hero2 == 'Hero2' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero2.txt", nil) elseif hero2 == 'Hero3' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero3.txt", nil) elseif hero2 == 'Hero4' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero4.txt", nil) elseif hero2 == 'Hero6' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero6.txt", nil) elseif hero2 == 'Hero7' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero7.txt", nil) elseif hero2 == 'Hero8' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero8.txt", nil) elseif hero2 == 'Hero9' then MessageBoxForPlayers(2, "/Maps/Multiplayer/[1x1]The_Last_Stand/Text/Main_Hero_Name/Stronghold_Hero9.txt", nil) end; end;