找回密码
立即注册
搜索
热搜: WOTLK Azerothcore
发新帖

478

积分

0

好友

69

主题
发表于 2024-5-16 21:48:22 | 查看: 231| 回复: 0
The `disables` table
This table is used to disable dungeons/bgs/spells/etc.
Structure
[td]
FieldTypeAttributesKeyNullDefaultExtraComment
sourceTypeINTUNSIGNEDPRINONULL
entryINTUNSIGNEDPRINONULL
flagsTINYINTUNSIGNEDNO0
params_0VARCHAR(255)NO
params_1VARCHAR(255)NO
commentVARCHAR(255)NO
Description of the fields
sourceType[td]
ValueType
0DISABLE_TYPE_SPELL
1DISABLE_TYPE_QUEST
2DISABLE_TYPE_MAP
3DISABLE_TYPE_BATTLEGROUND
4DISABLE_TYPE_ACHIEVEMENT_CRITERIA
5DISABLE_TYPE_OUTDOORPVP
6DISABLE_TYPE_VMAP
7DISABLE_TYPE_MMAP
8DISABLE_TYPE_LFG_MAP
9DISABLE_TYPE_GAME_EVENT
10DISABLE_TYPE_LOOT
entry
Entry of Spell/Quest/Map/BG/Achievement/Map/GameEvent/Item.
If sourceType = DISABLE_TYPE_SPELL:
Entry of Spell
If sourceType = DISABLE_TYPE_QUEST:
If sourceType = DISABLE_TYPE_MAP:
If sourceType = DISABLE_TYPE_VMAP:
If sourceType = DISABLE_TYPE_MMAP:
If sourceType = DISABLE_TYPE_OUTDOORPVP:
If sourceType = DISABLE_TYPE_LFG_MAP:
Entry of Map
If sourceType = DISABLE_TYPE_ACHIEVEMENT_CRITERIA:
Entry of Achievement
If sourceType = DISABLE_TYPE_GAME_EVENT:
If sourceType = DISABLE_TYPE_LOOT:
flags
If sourceType = DISABLE_TYPE_SPELL: Specifies who the spell is disabled for.
[td]
ValueType
0Spell enabled
1Spell disabled for players
2Spell disabled for creatures
4Spell disabled for pets
8Spell completely disabled (used for no logner existing spells in DBCs)
16Spell disabled for MapId
32Spell disabled for AreaId
64Line of Sight (LOS) is disabled for this spell (replaces "vmap.ignoreSpellIds" config option)
Example: INSERT INTO `disables` VALUES (0, 8921, (1+16+32), "571,1", "1519", "Moonfire Example");
This will disable spell Moonfire (8921) for players in maps 571,1 and area 1519.
If sourceType = DISABLE_TYPE_MAP:
Specifies what type of map is disabled (5man/10man/heroic/etc).
[td]
ValueType
1DUNGEON_STATUS_FLAG_NORMAL OR RAID_STATUS_FLAG_10MAN_NORMAL
2DUNGEON_STATUS_FLAG_HEROIC OR RAID_STATUS_FLAG_25MAN_NORMAL
4RAID_STATUS_FLAG_10MAN_HEROIC
8RAID_STATUS_FLAG_25MAN_HEROIC
The value is a bitmask of VALID modes for the specific map, 15 is as such NOT a valid mask on certain maps,
only those actually found possible for the respective map.
If sourceType = DISABLE_TYPE_VMAP:
Specifies on which map should be vMap disabled
[td]
ValueType
1VMAP_DISABLE_AREAFLAG
2VMAP_DISABLE_HEIGHT
4VMAP_DISABLE_LOS
8VMAP_LIQUIDSTATUS
Example: INSERT INTO `disables` VALUES (6, 1, (2 + 4), 0, 0, "Disable Kalimdor vMaps");
This will disable vMaps on whole Kalimdor.
If sourceType = DISABLE_TYPE_QUEST:
If sourceType = DISABLE_TYPE_ACHIEVEMENT_CRITERIA:
If sourceType = DISABLE_TYPE_OUTDOORPVP:
If sourceType = DISABLE_TYPE_MMAP:
If sourceType = DISABLE_TYPE_LFG_MAP:
If sourceType = DISABLE_TYPE_GAME_EVENT:
If sourceType = DISABLE_TYPE_LOOT:
No flags needed just add the entry to the table with `flags`=0.
params_0
MapId if DISABLE_TYPE_SPELL used, 0 for all maps.
params_1
AreaId if DISABLE_TYPE_SPELL used, 0 for all areas.
comment
A comment as to why the something was disabled, or any other text that you want.

您需要登录后才可以回帖 登录 | 立即注册

QQ群:193157782|Blog|AzerothCore|AC zhCN Linktrees ( 苏ICP备2023024864号-2 )

GMT+8, 2024-9-20 02:57 , Processed in 0.038500 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表