Spell script target

Материал из YTDB DataBase

(Различия между версиями)
Перейти к: навигация, поиск
Строка 16: Строка 16:
|'''Field'''
|'''Field'''
|'''Type'''
|'''Type'''
 +
|'''Attributes'''
|'''Null'''
|'''Null'''
|'''Key'''
|'''Key'''
|'''Default'''
|'''Default'''
-
|'''Extra'''
+
|'''Comments'''
|-
|-
|[[#entry|entry]]
|[[#entry|entry]]
-
|int(6) unsigned
+
|mediumint(8)
 +
|unsigned
|NO
|NO
|PRI
|PRI
Строка 29: Строка 31:
|-
|-
|[[#type|type]]
|[[#type|type]]
-
|int(8) unsigned
+
|tinyint(3)
 +
|unsigned
|NO
|NO
|PRI
|PRI
Строка 36: Строка 39:
|-
|-
|[[#targetEntry|targetEntry]]
|[[#targetEntry|targetEntry]]
-
|int(11) unsigned
+
|mediumint(8)
 +
|unsigned
|NO
|NO
|PRI
|PRI

Версия 09:17, 18 августа 2010

Содержание

К описанию таблиц базы данных mangos.


Таблица `spell_script_target`

Used to control SpellEffect with ImpliciteTargetA-B == 38.

These spell effects require a specific target in either alive or dead state (for creatures).


Структура

Field Type Attributes Null Key Default Comments
entry mediumint(8) unsigned NO PRI
type tinyint(3) unsigned NO PRI 0
targetEntry mediumint(8) unsigned NO PRI 0


Описание полей

entry

The spell ID. See Spell.dbc

When adding a new entry, be sure to check to see if the spell triggers another spell. If it does, don't forget to check that spell as well to see if it has ImplictTargetA-B = 38 and if it does, add an entry in this table for it as well.


type

One of these type are available

  • 0 = Gameobject
  • 1 = Creature
  • 2 = Creature who must be dead (killed by Player or Npc)

NOTE: A creature corpse and a creature that looks dead are two different things. One is actually dead and the other is just using an emote to appear dead.

targetEntry

Can be: creature_template.entry or gameobject_template.entry depending on the choosen type.

This specified entry will be automatically targeted if it is near the player casting the spell.

Личные инструменты