battles/podzem/raschet_bot.php

163 lines
15 KiB
PHP
Raw Normal View History

2018-01-28 16:40:49 +00:00
<?
// 1- Паук 1 - Колл. ботов 1 - Падает гайка
// 2- Зомби 2 - Колл. ботов 2 - Падает болт
// 3- Жук 3 - Колл. ботов 3 - Падает винтель
// Например 121 = 2 паука и 1 Зомби
if($rt["n$loc4"]=='1'){$ob = "pauk"; $b_n = "Паук";}
else if($rt["n$loc4"]=='2'){$ob = "zombi"; $b_n = "Зомби";}
else if($rt["n$loc4"]=='3'){$ob = "zuk"; $b_n = "Жук";}
else if($rt["n$loc4"]=='4'){$ob = "merz"; $b_n = "Мерзость";}
else if($rt["n$loc4"]=='5'){$ob = "obit"; $b_n = "Обитатель";}
else if($rt["n$loc4"]=='6'){$ob = "zud"; $b_n = "Жуткий";}
else if($rt["n$loc4"]=='7'){$ob = "mart"; $b_n = "Мартын";}
else if($rt["n$loc4"]=='8'){$ob = "luka"; $b_n = "Лука";}
else if($rt["n$loc4"]=='11'){$ob = "gad"; $b_n = "ГадПолзучий";}
else if($rt["n$loc4"]=='12'){$ob = "trup"; $b_n = "Разлагающийся Труп";}
else if($rt["n$loc4"]=='13'){$ob = "krov"; $b_n = "Кровавый Сантехник";}
else if($rt["n$loc4"]=='14'){$ob = "zud"; $b_n = "Канализационная Жуть";}
////////////////2 этаж////////////////////////
else if($rt["n$loc4"]=='9'){$ob = "krisa"; $b_n = "Крыса";}
else if($rt["n$loc4"]=='10'){$ob = "bez_san"; $b_n = "Безголовый";}
else if($rt["n$loc4"]=='1.1'){$ob = "pauk"; $b_n = "Паук"; $ob2 = "pauk"; $b_n2 = "Паук";}
else if($rt["n$loc4"]=='1.2'){$ob = "pauk"; $b_n = "Паук"; $ob2 = "zombi"; $b_n2 = "Зомби";}
else if($rt["n$loc4"]=='1.3'){$ob = "pauk"; $b_n = "Паук"; $ob2 = "zuk"; $b_n2 = "Жук";}
else if($rt["n$loc4"]=='2.2'){$ob = "zombi"; $b_n = "Зомби"; $ob2 = "zombi"; $b_n2 = "Зомби";}
else if($rt["n$loc4"]=='2.3'){$ob = "zombi"; $b_n = "Зомби"; $ob2 = "zuk"; $b_n2 = "Жук";}
else if($rt["n$loc4"]=='3.3'){$ob = "zuk"; $b_n = "Жук"; $ob2 = "zuk"; $b_n2 = "Жук";}
//////////////////////2 etaz ////////////////////////
else if($rt["n$loc4"]=='9.9'){$ob = "krisa"; $b_n = "Крыса"; $ob2 = "krisa"; $b_n2 = "Крыса";}
else if($rt["n$loc4"]=='10.10'){$ob = "bez_san"; $b_n = "Безголовый"; $ob2 = "bez_san"; $b_n2 = "Безголовый";}
else if($rt["n$loc4"]=='1.1.1'){$ob = "pauk"; $b_n = "Паук"; $ob2 = "pauk"; $b_n2 = "Паук"; $ob3 = "pauk"; $b_n3 = "Паук";}
else if($rt["n$loc4"]=='1.1.2'){$ob = "pauk"; $b_n = "Паук"; $ob2 = "pauk"; $b_n2 = "Паук"; $ob3 = "zombi"; $b_n3 = "Зомби";}
else if($rt["n$loc4"]=='1.1.3'){$ob = "pauk"; $b_n = "Паук"; $ob2 = "pauk"; $b_n2 = "Паук"; $ob3 = "zuk"; $b_n3 = "Жук";}
else if($rt["n$loc4"]=='1.2.2'){$ob = "pauk"; $b_n = "Паук"; $ob2 = "zombi"; $b_n2 = "Зомби"; $ob3 = "zombi"; $b_n3 = "Зомби";}
else if($rt["n$loc4"]=='1.3.2'){$ob = "pauk"; $b_n = "Паук"; $ob2 = "zuk"; $b_n2 = "Жук"; $ob3 = "zombi"; $b_n3 = "Зомби";}
else if($rt["n$loc4"]=='1.3.3'){$ob = "pauk"; $b_n = "Паук"; $ob2 = "zuk"; $b_n2 = "Жук"; $ob3 = "zuk"; $b_n3 = "Жук";}
else if($rt["n$loc4"]=='2.2.2'){$ob = "zombi"; $b_n = "Зомби"; $ob2 = "zombi"; $b_n2 = "Зомби"; $ob3 = "zombi"; $b_n3 = "Зомби";}
else if($rt["n$loc4"]=='2.2.3'){$ob = "zombi"; $b_n = "Зомби"; $ob2 = "zombi"; $b_n2 = "Зомби"; $ob3 = "zuk"; $b_n3 = "Жук";}
else if($rt["n$loc4"]=='2.3.3'){$ob = "zombi"; $b_n = "Зомби"; $ob2 = "zuk"; $b_n2 = "Жук"; $ob3 = "zuk"; $b_n3 = "Жук";}
else if($rt["n$loc4"]=='3.3.3'){$ob = "zuk"; $b_n = "Жук"; $ob2 = "zuk"; $b_n2 = "Жук"; $ob3 = "zuk"; $b_n3 = "Жук";}
else if($rt["n$loc4"]=='1.2.3'){$ob = "pauk"; $b_n = "Паук"; $ob2 = "zombi"; $b_n2 = "Зомби"; $ob3 = "zuk"; $b_n3 = "Жук";}
else if($rt["n$loc4"]=='10.10.10'){$ob = "bez_san"; $b_n = "Безголовый"; $ob2 = "bez_san"; $b_n2 = "Безголовый"; $ob3 = "bez_san"; $b_n3 = "Безголовый";}
////////////////2 этаж////////////////////////
else if($rt["n$loc4"]=='9.9.9'){$ob = "krisa"; $b_n = "Крыса"; $ob2 = "krisa"; $b_n2 = "Крыса"; $ob3 = "krisa"; $b_n3 = "Крыса";}
if($rt["n$loc4"]=='1' or $rt["n$loc4"]=='2' or $rt["n$loc4"]=='3' or $rt["n$loc4"]=='4' or $rt["n$loc4"]=='5' or $rt["n$loc4"]=='6' or $rt["n$loc4"]=='7' or $rt["n$loc4"]=='8' or $rt["n$loc4"]=='9' or $rt["n$loc4"]=='10' or $rt["n$loc4"]=='11' or $rt["n$loc4"]=='12' or $rt["n$loc4"]=='13' or $rt["n$loc4"]=='14'){$k_b = 1;}
else if($rt["n$loc4"]=='1.1' or $rt["n$loc4"]=='1.2' or $rt["n$loc4"]=='1.3' or $rt["n$loc4"]=='2.2' or $rt["n$loc4"]=='2.3' or $rt["n$loc4"]=='3.3' or $rt["n$loc4"]=='9.9' or $rt["n$loc4"]=='10.10'){$k_b = 2;}
else if($rt["n$loc4"]=='1.1.1' or $rt["n$loc4"]=='1.1.2' or $rt["n$loc4"]=='1.1.3' or $rt["n$loc4"]=='1.2.2' or $rt["n$loc4"]=='1.3.2' or $rt["n$loc4"]=='1.3.3' or $rt["n$loc4"]=='2.2.2' or $rt["n$loc4"]=='2.2.3' or $rt["n$loc4"]=='2.3.3' or $rt["n$loc4"]=='3.3.3' or $rt["n$loc4"]=='1.2.3' or $rt["n$loc4"]=='9.9.9' or $rt["n$loc4"]=='10.10.10'){$k_b = 3;}
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
if($rt["n$loc3"]=='1'){$ob3 = "pauk"; $b_n3 = "Паук";}
else if($rt["n$loc3"]=='2'){$ob3 = "zombi"; $b_n3 = "Зомби";}
else if($rt["n$loc3"]=='3'){$ob3 = "zuk"; $b_n3 = "Жук";}
else if($rt["n$loc3"]=='4'){$ob3 = "merz"; $b_n3 = "Мерзость";}
else if($rt["n$loc3"]=='5'){$ob3 = "obit"; $b_n3 = "Обитатель";}
else if($rt["n$loc3"]=='6'){$ob3 = "zud"; $b_n3 = "Жуткий";}
else if($rt["n$loc3"]=='7'){$ob3 = "mart"; $b_n3 = "Мартын";}
else if($rt["n$loc3"]=='8'){$ob3 = "luka"; $b_n3 = "Лука";}
else if($rt["n$loc3"]=='11'){$ob3 = "gad"; $b_n3 = "ГадПолзучий";}
else if($rt["n$loc3"]=='12'){$ob3 = "trup"; $b_n3 = "Разлагающийся Труп";}
else if($rt["n$loc3"]=='13'){$ob3 = "krov"; $b_n3 = "Кровавый Сантехник";}
else if($rt["n$loc3"]=='14'){$ob3 = "zud"; $b_n3 = "Канализационная Жуть";}
////////////////2 этаж////////////////////////
else if($rt["n$loc3"]=='9'){$ob3 = "krisa"; $b_n3 = "Крыса";}
else if($rt["n$loc3"]=='10'){$ob3 = "bez_san"; $b_n3 = "Безголовый";}
else if($rt["n$loc3"]=='1.1'){$ob3 = "pauk"; $b_n3 = "Паук"; $ob32 = "pauk"; $b_n32 = "Паук";}
else if($rt["n$loc3"]=='1.2'){$ob3 = "pauk"; $b_n3 = "Паук"; $ob32 = "zombi"; $b_n32 = "Зомби";}
else if($rt["n$loc3"]=='1.3'){$ob3 = "pauk"; $b_n3 = "Паук"; $ob32 = "zuk"; $b_n32 = "Паук";}
else if($rt["n$loc3"]=='2.2'){$ob3 = "zombi"; $b_n3 = "Зомби"; $ob32 = "zombi"; $b_n32 = "Зомби";}
else if($rt["n$loc3"]=='2.3'){$ob3 = "zombi"; $b_n3 = "Зомби"; $ob32 = "zuk"; $b_n32 = "Жук";}
else if($rt["n$loc3"]=='3.3'){$ob3 = "zuk"; $b_n3 = "Жук"; $ob32 = "zuk"; $b_n32 = "Жук";}
//////////////////////2 etaz ////////////////////////
else if($rt["n$loc3"]=='9.9'){$ob3 = "krisa"; $b_n3 = "Крыса"; $ob32 = "krisa"; $b_n32 = "Крыса";}
else if($rt["n$loc3"]=='10.10'){$ob3 = "bez_san"; $b_n3 = "Безголовый"; $ob32 = "bez_san"; $b_n32 = "Безголовый";}
else if($rt["n$loc3"]=='1.1.1'){$ob3 = "pauk"; $b_n3 = "Паук"; $ob32 = "pauk"; $b_n32 = "Паук"; $ob33 = "pauk"; $b_n33 = "Паук";}
else if($rt["n$loc3"]=='1.1.2'){$ob3 = "pauk"; $b_n3 = "Паук"; $ob32 = "pauk"; $b_n32 = "Паук"; $ob33 = "zombi"; $b_n33 = "Зомби";}
else if($rt["n$loc3"]=='1.1.3'){$ob3 = "pauk"; $b_n3 = "Паук"; $ob32 = "pauk"; $b_n32 = "Паук"; $ob33 = "zuk"; $b_n33 = "Жук";}
else if($rt["n$loc3"]=='1.2.2'){$ob3 = "pauk"; $b_n3 = "Паук"; $ob32 = "zombi"; $b_n32 = "Зомби"; $ob33 = "zombi"; $b_n33 = "Зомби";}
else if($rt["n$loc3"]=='1.3.2'){$ob3 = "pauk"; $b_n3 = "Паук"; $ob32 = "zuk"; $b_n32 = "Жук"; $ob33 = "zombi"; $b_n33 = "Зомби";}
else if($rt["n$loc3"]=='1.3.3'){$ob3 = "pauk"; $b_n3 = "Паук"; $ob32 = "zuk"; $b_n32 = "Жук"; $ob33 = "zuk"; $b_n33 = "Жук";}
else if($rt["n$loc3"]=='2.2.2'){$ob3 = "zombi";$b_n3 = "Зомби"; $ob32 = "zombi"; $b_n32 = "Зомби"; $ob33 = "zombi"; $b_n33 = "Зомби";}
else if($rt["n$loc3"]=='2.2.3'){$ob3 = "zombi"; $b_n3 = "Зомби"; $ob32 = "zombi"; $b_n32 = "Зомби"; $ob33 = "zuk"; $b_n33 = "Жук";}
else if($rt["n$loc3"]=='2.3.3'){$ob3 = "zombi"; $b_n3 = "Зомби"; $ob32 = "zuk"; $b_n32 = "Жук"; $ob33 = "zuk"; $b_n33 = "Жук";}
else if($rt["n$loc3"]=='3.3.3'){$ob3 = "zuk"; $b_n3 = "Жук"; $ob32 = "zuk"; $b_n32 = "Жук"; $ob33 = "zuk"; $b_n33 = "Жук";}
else if($rt["n$loc3"]=='1.2.3'){$ob3 = "pauk"; $b_n3 = "Паук"; $ob32 = "zombi"; $b_n32 = "Зомби"; $ob33 = "zuk"; $b_n33 = "Жук";}
////////////////2 этаж////////////////////////
else if($rt["n$loc3"]=='9.9.9'){$ob3 = "krisa"; $b_n3 = "Крыса"; $ob32 = "krisa"; $b_n32 = "Крыса"; $ob33 = "krisa"; $b_n33 = "Крыса";}
else if($rt["n$loc3"]=='10.10.10'){$ob3 = "bez_san"; $b_n3 = "Безголовый"; $ob32 = "bez_san"; $b_n32 = "Безголовый"; $ob33 = "bez_san"; $b_n33 = "Безголовый";}
if($rt["n$loc3"]=='1' or $rt["n$loc3"]=='2' or $rt["n$loc3"]=='3' or $rt["n$loc3"]=='4' or $rt["n$loc3"]=='5' or $rt["n$loc3"]=='6' or $rt["n$loc3"]=='7' or $rt["n$loc3"]=='8' or $rt["n$loc3"]=='9' or $rt["n$loc3"]=='10' or $rt["n$loc3"]=='11' or $rt["n$loc3"]=='12' or $rt["n$loc3"]=='13' or $rt["n$loc3"]=='14'){$k_b3 = 1;}
else if($rt["n$loc3"]=='1.1' or $rt["n$loc3"]=='1.2' or $rt["n$loc3"]=='1.3' or $rt["n$loc3"]=='2.2' or $rt["n$loc3"]=='2.3' or $rt["n$loc3"]=='3.3' or $rt["n$loc3"]=='9.9' or $rt["n$loc3"]=='10.10'){$k_b3 = 2;}
else if($rt["n$loc3"]=='1.1.1' or $rt["n$loc3"]=='1.1.2' or $rt["n$loc3"]=='1.1.3' or $rt["n$loc3"]=='1.2.2' or $rt["n$loc3"]=='1.3.2' or $rt["n$loc3"]=='1.3.3' or $rt["n$loc3"]=='2.2.2' or $rt["n$loc3"]=='2.2.3' or $rt["n$loc3"]=='2.3.3' or $rt["n$loc3"]=='3.3.3' or $rt["n$loc3"]=='1.2.3' or $rt["n$loc3"]=='9.9.9' or $rt["n$loc3"]=='10.10.10'){$k_b3 = 3;}
/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////
if($rt["n$loc2"]=='1'){$ob2 = "pauk"; $b_n2 = "Паук";}
else if($rt["n$loc2"]=='2'){$ob2 = "zombi"; $b_n2 = "Зомби";}
else if($rt["n$loc2"]=='3'){$ob2 = "zuk"; $b_n2 = "Жук";}
else if($rt["n$loc2"]=='4'){$ob2 = "merz"; $b_n2 = "Мерзость";}
else if($rt["n$loc2"]=='5'){$ob2 = "obit"; $b_n2 = "Обитатель";}
else if($rt["n$loc2"]=='6'){$ob2 = "zud"; $b_n2 = "Жуткий";}
else if($rt["n$loc2"]=='7'){$ob2 = "mart"; $b_n2 = "Мартын";}
else if($rt["n$loc2"]=='8'){$ob2 = "luka"; $b_n2 = "Лука";}
else if($rt["n$loc2"]=='11'){$ob2 = "gad"; $b_n2 = "ГадПолзучий";}
else if($rt["n$loc2"]=='12'){$ob2 = "trup"; $b_n2 = "Разлагающийся Труп";}
else if($rt["n$loc2"]=='13'){$ob2 = "krov"; $b_n2 = "Кровавый Сантехник";}
else if($rt["n$loc2"]=='14'){$ob2 = "zud"; $b_n2 = "Канализационная Жуть";}
////////////////2 этаж////////////////////////
else if($rt["n$loc2"]=='9'){$ob2 = "krisa"; $b_n2 = "Крыса";}
else if($rt["n$loc2"]=='10'){$ob2 = "bez_san"; $b_n2 = "Безголовый";}
else if($rt["n$loc2"]=='1.1'){$ob2 = "pauk"; $b_n2 = "Паук"; $ob22 = "pauk"; $b_n22 = "Паук";}
else if($rt["n$loc2"]=='1.2'){$ob2 = "pauk"; $b_n2 = "Паук"; $ob22 = "zombi"; $b_n22 = "Зомби";}
else if($rt["n$loc2"]=='1.3'){$ob2 = "pauk"; $b_n2 = "Паук"; $ob22 = "zuk"; $b_n22 = "Паук";}
else if($rt["n$loc2"]=='2.2'){$ob2 = "zombi"; $b_n2 = "Зомби"; $ob22 = "zombi"; $b_n22 = "Зомби";}
else if($rt["n$loc2"]=='2.3'){$ob2 = "zombi"; $b_n2 = "Зомби"; $ob22 = "zuk"; $b_n22 = "Жук";}
else if($rt["n$loc2"]=='3.3'){$ob2 = "zuk"; $b_n2 = "Жук"; $ob22 = "zuk"; $b_n22 = "Жук";}
//////////////////////2 etaz ////////////////////////
else if($rt["n$loc2"]=='9.9'){$ob2 = "krisa"; $b_n2 = "Крыса"; $ob22 = "krisa"; $b_n22 = "Крыса";}
else if($rt["n$loc2"]=='10.10'){$ob2 = "bez_san"; $b_n2 = "Безголовый"; $ob22 = "bez_san"; $b_n22 = "Безголовый";}
else if($rt["n$loc2"]=='1.1.1'){$ob2 = "pauk"; $b_n2 = "Паук"; $ob22 = "pauk"; $b_n22 = "Паук"; $ob23 = "pauk"; $b_n23 = "Паук";}
else if($rt["n$loc2"]=='1.1.2'){$ob2 = "pauk"; $b_n2 = "Паук"; $ob22 = "pauk"; $b_n22 = "Паук"; $ob23 = "zombi"; $b_n23 = "Зомби";}
else if($rt["n$loc2"]=='1.1.3'){$ob2 = "pauk"; $b_n2 = "Паук"; $ob22 = "pauk"; $b_n22 = "Паук"; $ob23 = "zuk"; $b_n23 = "Жук";}
else if($rt["n$loc2"]=='1.2.2'){$ob2 = "pauk"; $b_n2 = "Паук"; $ob22 = "zombi"; $b_n22 = "Зомби"; $ob23 = "zombi"; $b_n23 = "Зомби";}
else if($rt["n$loc2"]=='1.3.2'){$ob2 = "pauk"; $b_n2 = "Паук"; $ob22 = "zuk"; $b_n22 = "Жук"; $ob23 = "zombi"; $b_n23 = "Зомби";}
else if($rt["n$loc2"]=='1.3.3'){$ob2 = "pauk"; $b_n2 = "Паук"; $ob22 = "zuk"; $b_n22 = "Жук"; $ob23 = "zuk"; $b_n23 = "Жук";}
else if($rt["n$loc2"]=='2.2.2'){$ob2 = "zombi";$b_n2 = "Зомби"; $ob22 = "zombi"; $b_n22 = "Зомби"; $ob23 = "zombi"; $b_n23 = "Зомби";}
else if($rt["n$loc2"]=='2.2.3'){$ob2 = "zombi"; $b_n2 = "Зомби"; $ob22 = "zombi"; $b_n22 = "Зомби"; $ob23 = "zuk"; $b_n23 = "Жук";}
else if($rt["n$loc2"]=='2.3.3'){$ob2 = "zombi"; $b_n2 = "Зомби"; $ob22 = "zuk"; $b_n22 = "Жук"; $ob23 = "zuk"; $b_n23 = "Жук";}
else if($rt["n$loc2"]=='3.3.3'){$ob2 = "zuk"; $b_n2 = "Жук"; $ob22 = "zuk"; $b_n22 = "Жук"; $ob23 = "zuk"; $b_n23 = "Жук";}
else if($rt["n$loc2"]=='1.2.3'){$ob2 = "pauk"; $b_n2 = "Паук"; $ob22 = "zombi"; $b_n22 = "Зомби"; $ob23 = "zuk"; $b_n23 = "Жук";}
////////////////2 этаж////////////////////////
else if($rt["n$loc2"]=='9.9.9'){$ob2 = "krisa"; $b_n2 = "Крыса"; $ob22 = "krisa"; $b_n22 = "Крыса"; $ob23 = "krisa"; $b_n23 = "Крыса";}
else if($rt["n$loc2"]=='10.10.10'){$ob2 = "bez_san"; $b_n2 = "Безголовый"; $ob22 = "bez_san"; $b_n22 = "Безголовый"; $ob23 = "bez_san"; $b_n23 = "Безголовый";}
if($rt["n$loc2"]=='1' or $rt["n$loc2"]=='2' or $rt["n$loc2"]=='3' or $rt["n$loc2"]=='4' or $rt["n$loc2"]=='5' or $rt["n$loc2"]=='6' or $rt["n$loc2"]=='7' or $rt["n$loc2"]=='8' or $rt["n$loc2"]=='9' or $rt["n$loc2"]=='10' or $rt["n$loc2"]=='11' or $rt["n$loc2"]=='12' or $rt["n$loc2"]=='13' or $rt["n$loc2"]=='14'){$k_b2 = 1; }
else if($rt["n$loc2"]=='1.1' or $rt["n$loc2"]=='1.2' or $rt["n$loc2"]=='1.3' or $rt["n$loc2"]=='2.2' or $rt["n$loc2"]=='2.3' or $rt["n$loc2"]=='3.3' or $rt["n$loc2"]=='9.9' or $rt["n$loc2"]=='10.10'){$k_b2 = 2;}
else if($rt["n$loc2"]=='1.1.1' or $rt["n$loc2"]=='1.1.2' or $rt["n$loc2"]=='1.1.3' or $rt["n$loc2"]=='1.2.2' or $rt["n$loc2"]=='1.3.2' or $rt["n$loc2"]=='1.3.3' or $rt["n$loc2"]=='2.2.2' or $rt["n$loc2"]=='2.2.3' or $rt["n$loc2"]=='2.3.3' or $rt["n$loc2"]=='3.3.3' or $rt["n$loc2"]=='1.2.3' or $rt["n$loc2"]=='9.9.9' or $rt["n$loc2"]=='10.10.10'){$k_b2 = 3;}
2019-01-16 17:45:30 +00:00