Skip to content

npc_spellclick_spells

Structure ​

FieldTypeAttributesKeyNullDefaultExtraComment
npc_entryintunsignedPRINOreference to creature_template
spell_idintunsignedPRINOspell which should be casted
cast_flagstinyintunsignedNOfirst bit defines caster: 1=player, 0=creature; second bit defines target, same mapping as caster bit
user_typesmallintunsignedNO0relation with summoner: 0-no 1-friendly 2-raid 3-party player can click
 

Description of fields ​

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:

CasterTargetValue
ClickeeClickee0
ClickerClickee1
ClickeeClicker2
ClickerClicker3
 

user_type ​

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

ValueDescription
0Only Self
1Friendly
2Raid
3Party