<?php
die();
if (!defined('GAME')) {
    die();
}
$StaticMSG = [
    'your-position' => 'Ваше местоположение',
    'move-bk' => 'Проход через &quot;<b>Бойцовский клуб</b>&quot;',
    'move-zalu4' => 'Проход через &quot;<b>Зал паладинов</b>&quot;',
    'move-map_halls' => 'Проход через &quot;<b>Залы</b>&quot;',
    'move-to-sek4' => 'Проход через &quot;<b>Рыцарский</b>&quot; или &quot;<b>Торговый</b>&quot; зал',
    'move-sek5' => 'Проход через &quot;<b>Торговый зал</b>&quot;',
    'move-sek6' => 'Проход через &quot;<b>Рыцарский зал</b>&quot;',
];
$Response = ['status' => 'update'];
switch ($u->room['file']) {
    case 'bk':// Бойцовский клуб
        $Response = [
            'status' => 'success',
            'location' => [
                'bg' => 'navig',
                'left' => '241',
                'top' => '128',
                'name' => $u->room['name'],
                'tgo' => ($tmGo * 10),
                'tgo1' => ($tmGol * 10),
            ],
            'goto' => [
                ['id' => 'map_bk', 'params' => [false, $StaticMSG['your-position']]],
                ['id' => 'map_klub1', 'params' => thisInfRm('1.180.0.15', null, true)],
                ['id' => 'map_klub2', 'params' => thisInfRm('1.180.0.220', null, true)],
                ['id' => 'map_klub3', 'params' => thisInfRm('1.180.0.2', null, true)],
                ['id' => 'map_klub4', 'params' => thisInfRm('1.180.0.4', null, true)],
                ['id' => 'map_klub5', 'params' => thisInfRm('1.180.0.5', null, true)],
                ['id' => 'map_klub6', 'params' => thisInfRm('1.180.0.7', null, true)],
                ['id' => 'map_klub7', 'params' => thisInfRm('1.180.0.9', null, true)],
            ],
            'buttons' => [
                ['Возврат', 'main.php?homeworld=true'],
                ['Казино', 'main.php?loc=1.180.0.225'],
                ['Карта клуба', 'main.php?clubmap=true'],
                ['Форум', "window.open('/forum', 'forum', 'location=yes,menubar=yes,status=yes,resizable=yes,toolbar=yes,scrollbars=yes,scrollbars=yes')"],
                ['Подсказка', "window.open('/encicl/help/top1.html', 'help', 'height=300,width=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes')"],
            ],
        ];
        break;
    case 'zv1':// Зал Воинов 1
        $Response = [
            'status' => 'success',
            'location' => [
                'bg' => 'navig',
                'left' => '154',
                'top' => '148',
                'name' => $u->room['name'],
                'tgo' => ($tmGo * 10),
                'tgo1' => ($tmGol * 10),
            ],
            'goto' => [
                ['id' => 'map_bk', 'params' => thisInfRm('1.180.0.3', null, true)],
                ['id' => 'map_klub1', 'params' => [false, $StaticMSG['move-bk']]],
                ['id' => 'map_klub2', 'params' => [false, $StaticMSG['move-bk']]],
                ['id' => 'map_klub3', 'params' => [false, $StaticMSG['move-bk']]],
                ['id' => 'map_klub4', 'params' => [false, $StaticMSG['your-position']]],
                ['id' => 'map_klub5', 'params' => [false, $StaticMSG['move-bk']]],
                ['id' => 'map_klub6', 'params' => [false, $StaticMSG['move-bk']]],
                ['id' => 'map_klub7', 'params' => [false, $StaticMSG['move-bk']]],
            ],
        ];
        break;
    case 'zv2':// Зал Воинов 2
        $Response = [
            'status' => 'success',
            'location' => [
                'bg' => 'navig',
                'left' => '395',
                'top' => '142',
                'name' => $u->room['name'],
                'tgo' => ($tmGo * 10),
                'tgo1' => ($tmGol * 10),
            ],
            'goto' => [
                ['id' => 'map_bk', 'params' => thisInfRm('1.180.0.3', null, true)],
                ['id' => 'map_klub1', 'params' => [false, $StaticMSG['move-bk']]],
                ['id' => 'map_klub2', 'params' => [false, $StaticMSG['move-bk']]],
                ['id' => 'map_klub3', 'params' => [false, $StaticMSG['your-position']]],
                ['id' => 'map_klub4', 'params' => [false, $StaticMSG['move-bk']]],
                ['id' => 'map_klub5', 'params' => [false, $StaticMSG['move-bk']]],
                ['id' => 'map_klub6', 'params' => [false, $StaticMSG['move-bk']]],
                ['id' => 'map_klub7', 'params' => [false, $StaticMSG['move-bk']]],
            ],
        ];
        break;
    case 'zv3':// Зал Воинов 3
        $Response = [
            'status' => 'success',
            'location' => [
                'bg' => 'navig',
                'left' => '337',
                'top' => '79',
                'name' => $u->room['name'],
                'tgo' => ($tmGo * 10),
                'tgo1' => ($tmGol * 10),
            ],
            'goto' => [
                ['id' => 'map_bk', 'params' => thisInfRm('1.180.0.3', null, true)],
                ['id' => 'map_klub1', 'params' => [false, $StaticMSG['move-bk']]],
                ['id' => 'map_klub2', 'params' => [false, $StaticMSG['move-bk']]],
                ['id' => 'map_klub3', 'params' => [false, $StaticMSG['move-bk']]],
                ['id' => 'map_klub4', 'params' => [false, $StaticMSG['move-bk']]],
                ['id' => 'map_klub5', 'params' => [false, $StaticMSG['your-position']]],
                ['id' => 'map_klub6', 'params' => [false, $StaticMSG['move-bk']]],
                ['id' => 'map_klub7', 'params' => [false, $StaticMSG['move-bk']]],
            ],
        ];
        break;
    case 'zv4':// Будуар
        $Response = [
            'status' => 'success',
            'location' => [
                'bg' => 'navig',
                'left' => '139',
                'top' => '79',
                'name' => $u->room['name'],
                'tgo' => ($tmGo * 10),
                'tgo1' => ($tmGol * 10),
            ],
            'goto' => [
                ['id' => 'map_bk', 'params' => thisInfRm('1.180.0.3', null, true)],
                ['id' => 'map_klub1', 'params' => [false, $StaticMSG['move-bk']]],
                ['id' => 'map_klub2', 'params' => [false, $StaticMSG['move-bk']]],
                ['id' => 'map_klub3', 'params' => [false, $StaticMSG['move-bk']]],
                ['id' => 'map_klub4', 'params' => [false, $StaticMSG['move-bk']]],
                ['id' => 'map_klub5', 'params' => [false, $StaticMSG['move-bk']]],
                ['id' => 'map_klub6', 'params' => [false, $StaticMSG['your-position']]],
                ['id' => 'map_klub7', 'params' => [false, $StaticMSG['move-bk']]],
            ],
        ];
        break;
    case 'zalu':// Залы
        $Response = [
            'status' => 'success',
            'location' => [
                'bg' => 'navig1',
                'left' => '337',
                'top' => '117',
                'name' => $u->room['name'],
                'tgo' => ($tmGo * 10),
                'tgo1' => ($tmGol * 10),
            ],
            'goto' => [
                ['id' => 'map_halls', 'params' => [false, $StaticMSG['your-position']]],
                ['id' => 'map_zalu3', 'params' => [false, $StaticMSG['move-zalu4']]],
                ['id' => 'map_zalu4', 'params' => thisInfRm('1.180.0.16', null, true)],
                ['id' => 'map_zalu6', 'params' => [false, $StaticMSG['move-zalu4']]],
                ['id' => 'map_zalu7', 'params' => thisInfRm('1.180.0.3', null, true)],

            ],
        ];
        break;
    case 'zalu_pal':// Залы
        $Response = [
            'status' => 'success',
            'location' => [
                'bg' => 'navig1',
                'left' => '163',
                'top' => '28',
                'name' => $u->room['name'],
                'tgo' => ($tmGo * 10),
                'tgo1' => ($tmGol * 10),
            ],
            'goto' => [
                ['id' => 'map_halls', 'params' => thisInfRm('1.180.0.15', null, true)],
                ['id' => 'map_zalu3', 'params' => thisInfRm('1.180.0.xx', null, true)],
                ['id' => 'map_zalu4', 'params' => [false, $StaticMSG['your-position']]],
                ['id' => 'map_zalu6', 'params' => thisInfRm('1.180.0.0', null, true)],
                ['id' => 'map_zalu7', 'params' => [false, $StaticMSG['move-map_halls']]],
            ],
        ];
        break;
    case 'bk2':// Залы
        $Response = [
            'status' => 'success',
            'location' => [
                'bg' => 'navig3',
                'left' => '162',
                'top' => '125',
                'name' => $u->room['name'],
                'tgo' => ($tmGo * 10),
                'tgo1' => ($tmGol * 10),
            ],
            'goto' => [
                ['id' => 'map_2stair', 'params' => [false, $StaticMSG['your-position']]],
                ['id' => 'map_sec1', 'params' => thisInfRm('1.180.0.3', null, true)],
                ['id' => 'map_sec2', 'params' => thisInfRm('1.180.0.xx', null, true)],
                ['id' => 'map_sec3', 'params' => [false, $StaticMSG['move-sek5']]],
                ['id' => 'map_sec4', 'params' => [false, $StaticMSG['move-to-sek4']]],
                ['id' => 'map_sec5', 'params' => thisInfRm('1.180.0.221', null, true)],
                ['id' => 'map_sec6', 'params' => thisInfRm('1.180.0.224', null, true)],
                ['id' => 'map_sec7', 'params' => [false, $StaticMSG['move-sek6']]],
            ],
        ];
        break;
}
$Response;
