Форум администраторов игровых серверов

Форум администраторов игровых серверов (https://forum.zone-game.info/TT.php)
-   Серверная часть (https://forum.zone-game.info/forumdisplay.php?f=148)
-   -   Расширение куба (https://forum.zone-game.info/showthread.php?t=10054)

Wolfas 09.09.2010 22:10

Расширение куба
 
Здравствуйте!

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

Ну или что-бы у одного Нпс можно было расширить куб до максимума

PROGRAMMATOR 09.09.2010 22:53

Re: Расширение куба
 
PHP код:

ALTER TABLE `playersMODIFY COLUMN `cube_sizetinyint(1NOT NULL DEFAULT 9 AFTER `last_online`; 

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

Wolfas 10.09.2010 00:27

Re: Расширение куба
 
Во я нашёл нужный документ и сделал!

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 (Сообщение 87171)
PHP код:

ALTER TABLE `playersMODIFY COLUMN `cube_sizetinyint(1NOT NULL DEFAULT 9 AFTER `last_online`; 

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


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

VISTALL 10.09.2010 01:07

Re: Расширение куба
 
Цитата:

Сообщение от Wolfas (Сообщение 87173)
Во я нашёл нужный документ и сделал!

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 вставлять?


в базу это нужно залить

Wolfas 10.09.2010 01:41

Re: Расширение куба
 
data\static_data\cube_expander\cube_expander.xml

В документе по выше указанному адресу поменяй код на данный мной

Mr.TeRay 12.09.2010 16:54

Re: Расширение куба
 
ужс, это ты поменял, то, что когда игрок приперся разширить куб, то остальные которые он должен делать по квэсту сможет купить и "разшерителя" )

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

еще @по умолчанию@ в базе ставишь 9 место нуля запрос написал вам программатор!

Wolfas 12.09.2010 20:28

Re: Расширение куба
 
Цитата:

Сообщение от Mr.TeRay (Сообщение 87606)
ужс, это ты поменял, то, что когда игрок приперся разширить куб, то остальные которые он должен делать по квэсту сможет купить у "разшерителя" )

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

А вот куда и как запрос прописать, надо будет научиться

PROGRAMMATOR 12.09.2010 20:31

Re: Расширение куба
 
Открываете PHPMyAdmin, выберите базу сервера, и на вкладку SQL добавьте запрос и OK.

vitlav 24.09.2010 14:19

Re: Расширение куба
 
Это стандартное расширение, на 3 закладки куба, а можно ли сделать 4-ую закладку куба? Если да то подскажите как

Wolfas 24.09.2010 17:41

Re: Расширение куба
 
Ну это на все 4 закладки то есть 12 полосок, ну если у тебя только 3 закладки тогда сделай так:

Код:

ALTER TABLE `players` MODIFY COLUMN `cube_size` tinyint(1) NOT NULL DEFAULT 12 AFTER `last_online`;


Текущее время: 22:39. Часовой пояс GMT +3.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. Перевод: zCarot