用户工具

站点工具


数据库:world数据库:npc_spellclick_spells

npc_spellclick_spells 表


<-返回:World 数据库

This table holds information about spells to be cast upon receiving CMSG_SPELLCLICK.

That opcode is sent for quests in which you have to loot creatures, who are already dead at spawning. Examples are Planning for the Future and Rifle the bodies.

表结构

FieldTypeAttributesKeyNullDefaultExtraComment
npc_entryINTUNSIGNEDPRINONULL Reference to the creature_template table
spell_idINTUNSIGNEDPRINONULL The ID of the spell to be cast
cast_flagsTINYINTUNSIGNED NONULL Who casts the spell on who, creature ⇔ player (values: 0-3)
user_typeSMALLINTUNSIGNED NO0 Relation with summoner: 0-no 1-friendly 2-raid 3-party player can click

字段说明


npc_entry

Reference to creature_template.entry

spell_id

The spell which should be cast.

Note that for several quests there are more than one spell per click.

Planing for the Future for example has Planning for the Future: Create Snowfall Glade Pup which will create the item in the player’s inventory and Planning for the Future: Create Snowfall Glade Pup Cover which despawns the creature.

This creates the illusion that the creature has been looted.

cast_flags

On every spellclick event, a player and a creature “participate”. This field defines who casts the spell on who. Lower bit defines caster: 1=Clicker, 0=Clickee; higher bit defines target, same mapping as caster bit. You can use that table for the actual value:

CasterTargetcast_flags value
CreatureClickee0
ClickerClickee1
ClickeeClicker2
ClickerClicker3

user_type

Relation with summoner: defines who is able to use this spellclick.

ValueDescription
0Only self
1Friendly
2Raid
3Party
数据库/world数据库/npc_spellclick_spells.txt · 最后更改: 2023/09/24 21:45 由 admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki