• Страница 1 из 1
  • 1
Форум WoW-Game » TrinityCore » Базы TrinityCore » [Trinity Core]Как выставить правильно Health мобу!
[Trinity Core]Как выставить правильно Health мобу!
RangersDarknesДата: Вторник, 09.11.2010, 08:08 | Сообщение # 1
Чемпион
Группа: Пользователи
Сообщений: 185
Награды: 1
Репутация: 31
Статус:
Как выставить правильно HP мобу

Quote
I would like to take the time to explain the new creature health / mana stat system.

A few monthes back I figured out that on offical there where base stat values for each
level creature depending on class. The health was modified by the unk16 field, now called
modhealth, and the mana was modified by the unk17 field, now called modmana.

I also determined that offical uses 3 different tables for health, but just one table for mana.

So there are a few things to consider when setting stats. Here are the creature_template fields
you need to update to fix errors.

1) minlevel & maxlevel

You must set the level values to get proper heath/mana stats.

2) unit_class

1. Warrior
2. Paladin
3. Rogue
4. Mage

These are the 4 classes used on official for creatures to calculate proper health/mana the
proper class must be set.

3) exp

This one is a little tricky. Official uses 3 different tables OLD, TBC, WRATH and some creatures
in WRATH use OLD table values so there is still a bit of work to get proper values.

4) modhealth & modmana are used in calculations (formerly unk16 & unk17)

Now for an example:

Lets say you know a creature should have health value of 50400 and no mana, from this you know its a warrior or rogue class.
"If not sure which one select warrior". Use the creatures entry and determine the modhealth value, lets say its 4. you divid
50400 by 4 and get 12600. If you look that value up in the `creature_base_stats` table you will see that it is a level 80 from
expansion 2. You would then create the following sql insert to fix its stats:

-- Stat update for creature XXXXX
UPDATE `creature_template` SET `minlevel`=80,`maxlevel`=80,`unit_class`=1,`exp`=2 WHERE `entry`=XXXXX;

The core will now calculate correct health/mana stats for this creature.

REMEMBER: Insure min and max levels are correct, insure unit_class is set properly, insure proper exp is set.

Quote (Цитата с форума TDB)
Краткий перевод:

1. Нужно выставить правильный минимальный и максимальный уровень в minlevel & maxlevel
2. В unit_class выставить класс моба

1 = Warrior
2 = Paladin
3 = Rogue
4 = Mage

3. В свойство exp вносим значение Expansion моба

0 = Classic
1 = TBC
2 = WOLTK

4. Значение Mod_health используется как умножитель в вычислении хп.

Теперь пример:

Допустим наш моб должен иметь 50400 ХП, но без маны , исходя из этого мы уже знаем что класс моба воин или разбойник.
В случае если вы не уверены какой класс, ставьте 1 для воина. Используем entry моба и вычисляем Health_mod ,допустим Health_mod 4.Делим 50400 на 4 и получаем 12600. Если сверить это значение 12600 с таблицой `creature_base_stats`то увидим что такое значение хп у мобов 80 уровня с expansion 2. Значит чтобы исправить нашего моба создадим такой вот запрос:

-- Stat update for creature XXXXX
UPDATE `creature_template` SET `minlevel`=80,`maxlevel`=80,`unit_class`=1,`exp`=2 WHERE `entry`=XXXXX;

Ядро теперь само вычислит правильные значения health/mana статов этом мобу.

ВАЖНО: Удостоверьтесь что min и max лвл правильно выставлен, также как и unit_class и exp.

Прикрепления: -TrinityCore-__.doc (32.0 Kb)
 
Форум WoW-Game » TrinityCore » Базы TrinityCore » [Trinity Core]Как выставить правильно Health мобу!
  • Страница 1 из 1
  • 1
Поиск: