Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
Расширение куба
#1
Здравствуйте!

Подскажите каким образом можно сделать "авто расширение куба", ну что-бы у игроков при старте были открыты все 12 полосок куба..

Ну или что-бы у одного Нпс можно было расширить куб до максимума
Консоль GameServer не советует:"Вы настраивайте сервер уже 1 час. Советуем вам немного отдохнуть".
Ответ
#2
PHP код:
<?php 
ALTER TABLE
`players` MODIFY COLUMN `cube_size` tinyint(1) NOT NULL DEFAULT 9 AFTER `last_online`;

Не проверял, но должно работать. (для новых аккаунтов)
Ответ
#3
Во я нашёл нужный документ и сделал!

data\static_data\cube_expander\cube_expander.xml

Код:
<?xml version="1.0" encoding="UTF-8"?>
<cube_expander xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="cube_expander.xsd">
    <!-- Instructions
        min_level and max_level reflects current cube expansion level. By default it is 0 (not yet expanded)
        price01 - is the price to expand to level 1 from level 0
        ..
        price09 - is the price to expand to level 9 from level 8
        
        The difference (max_level - min_level + 1) should be equal to number of prices specified
    -->
    <!-- Poeta -->
    <cube_npc id="798008" name="Baevrunerk">
        <expand level="1" price="1000"/>
        <expand level="2" price="8000"/>
        <expand level="3" price="12000"/>
        <expand level="4" price="160000"/>
        <expand level="5" price="180000"/>
        <expand level="6" price="280000"/>
        <expand level="7" price="360000"/>
        <expand level="8" price="540000"/>
        <expand level="9" price="720000"/>
    </cube_npc>
    <!-- Ishalgen -->
    <cube_npc id="798037" name="Bacorerk">
        <expand level="1" price="1000"/>
        <expand level="2" price="8000"/>
        <expand level="3" price="12000"/>
        <expand level="4" price="160000"/>
        <expand level="5" price="180000"/>
        <expand level="6" price="280000"/>
        <expand level="7" price="360000"/>
        <expand level="8" price="540000"/>
        <expand level="9" price="720000"/>
    </cube_npc>
    <!-- Pandaemonium -->
    <cube_npc id="798058" name="Ondarinerk">
        <expand level="1" price="1000"/>
        <expand level="2" price="8000"/>
        <expand level="3" price="12000"/>
        <expand level="4" price="160000"/>
        <expand level="5" price="180000"/>
        <expand level="6" price="280000"/>
        <expand level="7" price="360000"/>
        <expand level="8" price="540000"/>
        <expand level="9" price="720000"/>
    </cube_npc>
    <cube_npc id="798059" name="Nekorunerk">
        <expand level="1" price="1000"/>
        <expand level="2" price="8000"/>
        <expand level="3" price="12000"/>
        <expand level="4" price="160000"/>
        <expand level="5" price="180000"/>
        <expand level="6" price="280000"/>
        <expand level="7" price="360000"/>
        <expand level="8" price="540000"/>
        <expand level="9" price="720000"/>
    </cube_npc>
    <!-- Sanctum -->
    <cube_npc id="798011" name="Heerunerk">
        <expand level="1" price="1000"/>
        <expand level="2" price="8000"/>
        <expand level="3" price="12000"/>
        <expand level="4" price="160000"/>
        <expand level="5" price="180000"/>
        <expand level="6" price="280000"/>
        <expand level="7" price="360000"/>
        <expand level="8" price="540000"/>
        <expand level="9" price="720000"/>
    </cube_npc>
    <cube_npc id="798012" name="Yiehmonerk">
        <expand level="1" price="1000"/>
        <expand level="2" price="8000"/>
        <expand level="3" price="12000"/>
        <expand level="4" price="160000"/>
        <expand level="5" price="180000"/>
        <expand level="6" price="280000"/>
        <expand level="7" price="360000"/>
        <expand level="8" price="540000"/>
        <expand level="9" price="720000"/>
    </cube_npc>
    <!-- Abyss, Tigraki Island -->
    <cube_npc id="279022" name="Jarumonerk">
        <expand level="1" price="1000"/>
        <expand level="2" price="8000"/>
        <expand level="3" price="12000"/>
        <expand level="4" price="160000"/>
        <expand level="5" price="180000"/>
        <expand level="6" price="280000"/>
        <expand level="7" price="360000"/>
        <expand level="8" price="540000"/>
        <expand level="9" price="720000"/>
    </cube_npc>
</cube_expander>

Добавлено через 4 минуты
PROGRAMMATOR Написал:
PHP код:
<?php 
ALTER TABLE
`players` MODIFY COLUMN `cube_size` tinyint(1) NOT NULL DEFAULT 9 AFTER `last_online`;

Не проверял, но должно работать. (для новых аккаунтов)

Я так понимаю это в player_initial_data.xml вставлять?
Консоль GameServer не советует:"Вы настраивайте сервер уже 1 час. Советуем вам немного отдохнуть".
Ответ
#4
Wolfas Написал:Во я нашёл нужный документ и сделал!

data\static_data\cube_expander\cube_expander.xml

Код:
<?xml version="1.0" encoding="UTF-8"?>
<cube_expander xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="cube_expander.xsd">
    <!-- Instructions
        min_level and max_level reflects current cube expansion level. By default it is 0 (not yet expanded)
        price01 - is the price to expand to level 1 from level 0
        ..
        price09 - is the price to expand to level 9 from level 8
        
        The difference (max_level - min_level + 1) should be equal to number of prices specified
    -->
    <!-- Poeta -->
    <cube_npc id="798008" name="Baevrunerk">
        <expand level="1" price="1000"/>
        <expand level="2" price="8000"/>
        <expand level="3" price="12000"/>
        <expand level="4" price="160000"/>
        <expand level="5" price="180000"/>
        <expand level="6" price="280000"/>
        <expand level="7" price="360000"/>
        <expand level="8" price="540000"/>
        <expand level="9" price="720000"/>
    </cube_npc>
    <!-- Ishalgen -->
    <cube_npc id="798037" name="Bacorerk">
        <expand level="1" price="1000"/>
        <expand level="2" price="8000"/>
        <expand level="3" price="12000"/>
        <expand level="4" price="160000"/>
        <expand level="5" price="180000"/>
        <expand level="6" price="280000"/>
        <expand level="7" price="360000"/>
        <expand level="8" price="540000"/>
        <expand level="9" price="720000"/>
    </cube_npc>
    <!-- Pandaemonium -->
    <cube_npc id="798058" name="Ondarinerk">
        <expand level="1" price="1000"/>
        <expand level="2" price="8000"/>
        <expand level="3" price="12000"/>
        <expand level="4" price="160000"/>
        <expand level="5" price="180000"/>
        <expand level="6" price="280000"/>
        <expand level="7" price="360000"/>
        <expand level="8" price="540000"/>
        <expand level="9" price="720000"/>
    </cube_npc>
    <cube_npc id="798059" name="Nekorunerk">
        <expand level="1" price="1000"/>
        <expand level="2" price="8000"/>
        <expand level="3" price="12000"/>
        <expand level="4" price="160000"/>
        <expand level="5" price="180000"/>
        <expand level="6" price="280000"/>
        <expand level="7" price="360000"/>
        <expand level="8" price="540000"/>
        <expand level="9" price="720000"/>
    </cube_npc>
    <!-- Sanctum -->
    <cube_npc id="798011" name="Heerunerk">
        <expand level="1" price="1000"/>
        <expand level="2" price="8000"/>
        <expand level="3" price="12000"/>
        <expand level="4" price="160000"/>
        <expand level="5" price="180000"/>
        <expand level="6" price="280000"/>
        <expand level="7" price="360000"/>
        <expand level="8" price="540000"/>
        <expand level="9" price="720000"/>
    </cube_npc>
    <cube_npc id="798012" name="Yiehmonerk">
        <expand level="1" price="1000"/>
        <expand level="2" price="8000"/>
        <expand level="3" price="12000"/>
        <expand level="4" price="160000"/>
        <expand level="5" price="180000"/>
        <expand level="6" price="280000"/>
        <expand level="7" price="360000"/>
        <expand level="8" price="540000"/>
        <expand level="9" price="720000"/>
    </cube_npc>
    <!-- Abyss, Tigraki Island -->
    <cube_npc id="279022" name="Jarumonerk">
        <expand level="1" price="1000"/>
        <expand level="2" price="8000"/>
        <expand level="3" price="12000"/>
        <expand level="4" price="160000"/>
        <expand level="5" price="180000"/>
        <expand level="6" price="280000"/>
        <expand level="7" price="360000"/>
        <expand level="8" price="540000"/>
        <expand level="9" price="720000"/>
    </cube_npc>
</cube_expander>

Добавлено через 4 минуты



Я так понимаю это в player_initial_data.xml вставлять?


в базу это нужно залить
Ответ
#5
data\static_data\cube_expander\cube_expander.xml

В документе по выше указанному адресу поменяй код на данный мной
Консоль GameServer не советует:"Вы настраивайте сервер уже 1 час. Советуем вам немного отдохнуть".
Ответ
#6
ужс, это ты поменял, то, что когда игрок приперся разширить куб, то остальные которые он должен делать по квэсту сможет купить и "разшерителя" )

есть выход, ядро, вот где я не знаю

еще @по умолчанию@ в базе ставишь 9 место нуля запрос написал вам программатор!
Абсолютно счастливый человек лишь тот, который ни о чем не думает.
Ответ
#7
Mr.TeRay Написал:ужс, это ты поменял, то, что когда игрок приперся разширить куб, то остальные которые он должен делать по квэсту сможет купить у "разшерителя" )

Ну да, так и есть, я думаю это самое то для ПВП сервера..

А вот куда и как запрос прописать, надо будет научиться
Консоль GameServer не советует:"Вы настраивайте сервер уже 1 час. Советуем вам немного отдохнуть".
Ответ
#8
Открываете PHPMyAdmin, выберите базу сервера, и на вкладку SQL добавьте запрос и OK.
Ответ
#9
Это стандартное расширение, на 3 закладки куба, а можно ли сделать 4-ую закладку куба? Если да то подскажите как
Ответ
#10
Ну это на все 4 закладки то есть 12 полосок, ну если у тебя только 3 закладки тогда сделай так:

Код:
ALTER TABLE `players` MODIFY COLUMN `cube_size` tinyint(1) NOT NULL DEFAULT 12 AFTER `last_online`;
Консоль GameServer не советует:"Вы настраивайте сервер уже 1 час. Советуем вам немного отдохнуть".
Ответ


Перейти к форуму:


Пользователи, просматривающие эту тему: 2 Гость(ей)