Отображение всех дефолтных картинок на улицах.
This commit is contained in:
parent
c937f7a0ba
commit
8afc50f6fc
6
city.php
6
city.php
@ -123,9 +123,6 @@ switch ($location[0]) {
|
|||||||
case 'level1':
|
case 'level1':
|
||||||
Travel::toRoom(21,$user->room);
|
Travel::toRoom(21,$user->room);
|
||||||
break;
|
break;
|
||||||
case 'level2':
|
|
||||||
header('location: city.php?haos');
|
|
||||||
break;
|
|
||||||
case 'level203':
|
case 'level203':
|
||||||
Travel::toRoom(1055,$user->room);
|
Travel::toRoom(1055,$user->room);
|
||||||
break;
|
break;
|
||||||
@ -133,7 +130,8 @@ switch ($location[0]) {
|
|||||||
Travel::toRoom(620,$user->room);
|
Travel::toRoom(620,$user->room);
|
||||||
break;
|
break;
|
||||||
case 'room666':
|
case 'room666':
|
||||||
Travel::toRoom(666,$user->room);
|
//Нет на карте
|
||||||
|
//Travel::toRoom(666,$user->room);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} elseif ($user->room == 2601) {
|
} elseif ($user->room == 2601) {
|
||||||
|
@ -12,53 +12,50 @@ class City
|
|||||||
self::showBuilding(3, "spring_cap_kom", 205, 105, "Комиссионный магазин") .
|
self::showBuilding(3, "spring_cap_kom", 205, 105, "Комиссионный магазин") .
|
||||||
self::showBuilding(4, "spring_cap_rem", 202, 290, "Ремонтная мастерская") .
|
self::showBuilding(4, "spring_cap_rem", 202, 290, "Ремонтная мастерская") .
|
||||||
self::showBuilding(6, "spring_cap_po4ta", 180, 540, "Почта") .
|
self::showBuilding(6, "spring_cap_po4ta", 180, 540, "Почта") .
|
||||||
self::showBuilding(7, "spring_cap_arr_right", 260, 710, "Страшилкина Улица") .
|
self::showBuilding(7, "cap_arr_right", 260, 710, "Страшилкина Улица") .
|
||||||
self::showBuilding(8, "spring_cap_arr_left", 258, 21, "Большая парковая улица") .
|
self::showBuilding(8, "cap_arr_left", 258, 21, "Большая парковая улица") .
|
||||||
self::showBuilding(9, "spring_cap_tree2", 260, 530, "Новогодняя елка") .
|
self::showBuilding(9, "winter_cap_tree2", 215, 500, "Новогодняя елка") .
|
||||||
self::showBuilding(13, "spring_cap_statue", 222, 365, "Памятник Мэру Города") .
|
self::showBuilding(13, "spring_cap_statue", 222, 365, "Памятник Мэру Города") .
|
||||||
self::showBuilding(14, "spring_cap_sneg_3", 210, 390, "Снеговик") .
|
self::showBuilding(14, "winter_cap_statue", 210, 390, "Снеговик") .
|
||||||
self::showBuilding(17, "spring_cap_berezka", 205, 435, "Березка") .
|
self::showBuilding(17, "spring_cap_berezka", 205, 435, "Березка") .
|
||||||
self::showBuilding(222, "spring_cap_arr_top", 180, 650, "Торговая улица") .
|
self::showBuilding(222, "cap_arr_top", 180, 650, "Торговая улица") .
|
||||||
'</div>';
|
'</div>';
|
||||||
} elseif ($id === 21) {
|
} elseif ($id === 21) {
|
||||||
echo '<div style="position:relative; display: inline-block;" id="ione"><img alt="background" src="/i/city/spring_cap_strash_day.jpg">' .
|
echo '<div style="position:relative; display: inline-block;" id="ione"><img alt="background" src="/i/city/spring_cap_strash_day.jpg">' .
|
||||||
self::showBuilding(3, "cap_arr_right", 255, 708, "Ристалище") .
|
self::showBuilding(3, "cap_arr_right", 255, 708, "Ристалище") .
|
||||||
self::showBuilding(4, "cap_arr_left", 258, 21, "Центральная площадь") .
|
self::showBuilding(4, "cap_arr_left", 258, 21, "Центральная площадь") .
|
||||||
self::showBuilding(5, "cap_bank", 180, 485, "Банк") .
|
self::showBuilding(5, "spring_cap_bank", 180, 485, "Банк") .
|
||||||
self::showBuilding(13, "cap_flowershop", 220, 613, "Цветочный магазин") .
|
self::showBuilding(13, "spring_cap_flowershop", 220, 613, "Цветочный магазин") .
|
||||||
self::showBuilding(14, "cap_registratura", 170, 113, "Регистратура кланов") .
|
self::showBuilding(14, "spring_cap_registratura", 170, 113, "Регистратура кланов") .
|
||||||
self::showBuilding(16, "cap_tower", 5, 315, "Башня смерти") .
|
self::showBuilding(16, "spring_cap_tower", 5, 315, "Башня смерти") .
|
||||||
self::showBuilding(16555, "cap_tree", 165, 20, "Дерево") .
|
|
||||||
'</div>';
|
'</div>';
|
||||||
} elseif ($id === 26) {
|
} elseif ($id === 26) {
|
||||||
echo '<div style="position:relative; display: inline-block;" id="ione"><img alt="background" src="/i/city/spring_cap_park_day.jpg">' .
|
echo '<div style="position:relative; display: inline-block;" id="ione"><img alt="background" src="/i/city/spring_cap_park_day.jpg">' .
|
||||||
self::showBuilding(3, "cap_arr_left", 259, 27, "Замковая площадь") .
|
self::showBuilding(3, "cap_arr_left", 259, 27, "Замковая площадь") .
|
||||||
self::showBuilding(4, "cap_arr_right", 259, 715, "Центральная площадь") .
|
self::showBuilding(4, "cap_arr_right", 259, 715, "Центральная площадь") .
|
||||||
self::showBuilding(6, "cap_gate", 170, 340, "Городские ворота") .
|
self::showBuilding(6, "cap_gate", 170, 340, "Городские ворота") .
|
||||||
self::showBuilding(660, "cap_vokzal", 163, 43, "Общежитие") .
|
self::showBuilding(660, "spring_cap_vokzal", 163, 43, "Общежитие") .
|
||||||
'</div>';
|
'</div>';
|
||||||
} elseif ($id === 2601) {
|
} elseif ($id === 2601) {
|
||||||
echo '<div style="position:relative; display: inline-block;" id="ione"><img alt="background" src="/i/city/sub/cap_zamk_day.jpg">' .
|
echo '<div style="position:relative; display: inline-block;" id="ione"><img alt="background" src="/i/city/sub/cap_zamk_day.jpg">' .
|
||||||
self::showBuilding(1, "cap_ruins", 166, 48, "Руины Старого замка") .
|
self::showBuilding(1, "spring_cap_ruins", 166, 48, "Руины Старого замка") .
|
||||||
self::showBuilding(4, "cap_arr_right", 260, 710, "Большая парковая улица") .
|
self::showBuilding(4, "cap_arr_right", 260, 710, "Большая парковая улица") .
|
||||||
self::showBuilding(10, "ava_post", 240, 300, "Сувенирный магазинчик") .
|
self::showBuilding(10, "ava_post", 240, 300, "Сувенирный магазинчик") .
|
||||||
self::showBuilding(55, "cap_arr_left", 258, 21, "Арена Богов") .
|
self::showBuilding(55, "cap_arr_left", 258, 21, "Арена Богов") .
|
||||||
self::showBuilding(1051, "cap_lab", 130, 327, "Вход в Лабиринт Хаоса") .
|
self::showBuilding(1051, "spring_cap_lab", 130, 327, "Вход в Лабиринт Хаоса") .
|
||||||
self::showBuilding(1052, "cap_lavka", 240, 425, "Храмовая лавка") .
|
self::showBuilding(1052, "spring_cap_lavka", 240, 425, "Храмовая лавка") .
|
||||||
'</div>';
|
'</div>';
|
||||||
} elseif ($id === 2655) {
|
} elseif ($id === 2655) {
|
||||||
echo '<div style="position:relative; display: inline-block;" id="ione"><img alt="background" src="/i/city/ar_e_d.jpg">' .
|
echo '<div style="position:relative; display: inline-block;" id="ione"><img alt="background" src="/i/city/ar_e_d.jpg">' .
|
||||||
self::showBuilding(10, "arr_right_png", 260, 710, "Замковая площадь") .
|
self::showBuilding(10, "arr_right_png2", 260, 710, "Замковая площадь") .
|
||||||
self::showBuilding(2055, "cap_altr_g", 230, 340, "Арена Ангелов") .
|
self::showBuilding(2055, "altr_g", 230, 340, "Арена Ангелов") .
|
||||||
'</div>';
|
'</div>';
|
||||||
} elseif ($id === 2111) {
|
} elseif ($id === 2111) {
|
||||||
echo '<div style="position:relative; display: inline-block;" id="ione"><img alt="background" src="/i/city/av_rist_day.jpg.jpg">' .
|
echo '<div style="position:relative; display: inline-block;" id="ione"><img alt="background" src="/i/city/av_rist_day.jpg">' .
|
||||||
self::showBuilding(1, "cap_arr_uleft", 240, 30, "Страшилкина Улица") .
|
self::showBuilding(1, "cap_arr_left", 240, 30, "Страшилкина Улица") .
|
||||||
self::showBuilding(2, "cap_arr_right", 245, 708, "Секретный Лабиринт") .
|
self::showBuilding(14, "spring_cap_rist_solo", 210, 160, "Вход в Одиночные сражения") .
|
||||||
self::showBuilding(14, "cap_rist_solo", 210, 160, "Вход в Одиночные сражения") .
|
self::showBuilding(14, "spring_cap_rist_group", 243, 340, "Вход в Сражение отрядов") .
|
||||||
self::showBuilding(14, "cap_rist_group", 243, 340, "Вход в Сражение отрядов") .
|
self::showBuilding(203, "spring_cap_rist_monstr", 145, 570, "Вход в Груповые сражения") .
|
||||||
self::showBuilding(21, "angelscastle", 131, 628, "Замок Мэра Города") .
|
|
||||||
self::showBuilding(203, "cap_rist_monstr", 145, 570, "Вход в Груповые сражения") .
|
|
||||||
self::showBuilding(1000, "av_zamk_rud", 80, 310, "Рудник") .
|
self::showBuilding(1000, "av_zamk_rud", 80, 310, "Рудник") .
|
||||||
'</div>';
|
'</div>';
|
||||||
} elseif ($id === 2701) {
|
} elseif ($id === 2701) {
|
||||||
@ -68,11 +65,11 @@ class City
|
|||||||
'</div>';
|
'</div>';
|
||||||
} elseif ($id === 2702) {
|
} elseif ($id === 2702) {
|
||||||
echo '<div style="position:relative; display: inline-block;" id="ione"><img alt="background" src="/i/city/spring_cap_torg_day.jpg">' .
|
echo '<div style="position:relative; display: inline-block;" id="ione"><img alt="background" src="/i/city/spring_cap_torg_day.jpg">' .
|
||||||
self::showBuilding(6, "cap_arenda", 175, 70, "Академия") .
|
self::showBuilding(6, "spring_cap_build1", 175, 70, "Академия") .
|
||||||
self::showBuilding(10, "cap_arr_uleft", 259, 25, "Центральная площадь") .
|
self::showBuilding(10, "cap_rist_arr_left", 259, 25, "Центральная площадь") .
|
||||||
self::showBuilding(16, "cap_t_build42", 120, 300, "Аукцион") .
|
self::showBuilding(16, "auk", 120, 300, "Аукцион") .
|
||||||
self::showBuilding(21, "cap_lombard", 150, 565, "Ломбард") .
|
self::showBuilding(21, "spring_cap_build2", 150, 565, "Ломбард") .
|
||||||
self::showBuilding(16555, "cap_prokat", 155, 480, "Прокатная лавка") .
|
self::showBuilding(16555, "spring_cap_build3", 155, 480, "Прокатная лавка") .
|
||||||
'</div>';
|
'</div>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,7 @@ class Travel
|
|||||||
2111 => 'city.php',
|
2111 => 'city.php',
|
||||||
2601 => 'city.php',
|
2601 => 'city.php',
|
||||||
2655 => 'city.php',
|
2655 => 'city.php',
|
||||||
|
2702 => 'city.php'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -64,7 +65,6 @@ class Travel
|
|||||||
echo sprintf('<span class="error">%s</span>', $error);
|
echo sprintf('<span class="error">%s</span>', $error);
|
||||||
}
|
}
|
||||||
} elseif (in_array($roomId, self::allowedRoomMoves($roomIdCurrent))) {
|
} elseif (in_array($roomId, self::allowedRoomMoves($roomIdCurrent))) {
|
||||||
echo 111;
|
|
||||||
db::c()->query('UPDATE users, online SET users.room = ?i, online.room = ?i WHERE `online`.`user_id` = `users`.`id` AND `online`.`user_id` = ?i', $roomId, $roomId, $_SESSION['uid']);
|
db::c()->query('UPDATE users, online SET users.room = ?i, online.room = ?i WHERE `online`.`user_id` = `users`.`id` AND `online`.`user_id` = ?i', $roomId, $roomId, $_SESSION['uid']);
|
||||||
header('location: ' . self::$roomFileName[$roomId]);
|
header('location: ' . self::$roomFileName[$roomId]);
|
||||||
exit;
|
exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user