YTDB

Вернуться   YTDB > Новости / News > CMaNGOS Commits

CMaNGOS Commits Изменения, принятые в официальный репозиторий ядра CMaNGOS.
git://github.com/cmangos/mangos-wotlk.git

Ответ
 
Опции темы Поиск в этой теме Опции просмотра
Старый 16.04.2012, 01:22   #1
newsbot
News Bot
 
Аватар для newsbot
 
Регистрация: 20.11.2009
Сообщений: 1,290
Сказал(а) спасибо: 0
Поблагодарили 5 раз(а) в 5 сообщениях
newsbot На верном пути
По умолчанию [11964] Implement new conditions system

Автор: Schmoozerd


<pre>+ contrib/convertConditions/ConvertConditions.py
+ contrib/convertConditions/README.txt
m sql/mangos.sql
+ sql/updates/11964_01_mangos_conditions.sql
m src/game/Chat.cpp
m src/game/Chat.h
m src/game/CreatureEventAI.cpp
m src/game/CreatureEventAIMgr.cpp
m src/game/Level3.cpp
m src/game/LootMgr.cpp
m src/game/ObjectMgr.cpp
m src/game/ObjectMgr.h
m src/game/Player.cpp
m src/game/SQLStorages.cpp
m src/game/SQLStorages.h
m src/game/World.cpp
m src/shared/revision_nr.h
m src/shared/revision_sql.h
</pre>
<pre style='white-space:pre-wrap;width:81ex'>[11964] Implement new conditions system

Tree-like design idea by Faramir118, thanks for that!

* Add `conditions` table to store conditions.
* REPLACE current handling of conditions for the *_loot_template tables
Convert the old conditions in *_loot_template to the new system by SQL-Queries
* ADD support for new conditions to gossip_menu and gossip_menu_option.
If for these tables no condition_id (new system) is provided, the old conditions will still be used
* Add a small helper python script to contrib/convertConditions, see README there for details
* Add new command to reload the `conditions` table (.reload conditions)
* Add two Meta-Condition types CONDITION_AND (-1) and CONDITION_OR (-2) which are used as:
value1 (as condition_entry) AND / OR value2 (as condition_entry)

With these meta-conditions it is possible to create tree like and very complicated combined conditions (like HasAura && (HasItem || HasQuest))

NOTE about conversion:
For easier convertion all the old table data is still preserved, but will be removed eventually (within a circle of the moon approximately)
The python script will not create an optimal initial fill of the `conditions` table. You might want to tweak it manually or suggest some optimized algorithm :)

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com></pre>


Подробнее...
newsbot вне форума   Ответить с цитированием
Ответ


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.


Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
[11316] Implement a basic system to restore default faction for creatures after changes newsbot CMaNGOS Commits 0 05.04.2011 17:10
[10668] Implement CONDITION_*ITEM_WITH_BANK conditions. newsbot CMaNGOS Commits 0 01.11.2010 06:30
[10381] Implement generic system for racial model selection newsbot CMaNGOS Commits 0 19.08.2010 19:00
[10270] Implement basic system for reputation spillover newsbot CMaNGOS Commits 1 25.07.2010 21:43
[10089] Change in event system work with pool system. newsbot CMaNGOS Commits 3 21.06.2010 11:02


Текущее время: 12:18. Часовой пояс GMT +4.


YTDB - MaNGOS DataBase

Русский форум Мангос - официальный форум RMDC

Главная цель проекта MaNGOS - обучающая, поэтому разрешается использовать исходный код и собранную программу только для образовательных целей.
Вы не можете использовать MaNGOS в коммерческих целях, а также не разрешается устанавливать публичные серверы на базе MaNGOS.
Любое копирование материалов, информации в любом виде без указания источника - форума YTDB будет считаться нарушением авторских прав и нарушением Уголовного Кодекса РФ, ст. 146 ст. 147.
Перевод vBulletin: zCarot
Punk's On-Air - Punk, Folk, Blues, Ska Bascinet - реконструкция denw IL-2 Training Книготорговая Компания «А-5» - художественная, учебная литература, скидки, опт и мелкий опт, доставка, дешево, низкие цены издательства