Back to 'milling_loot_template' Return to world Go to 'npc_text'
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.
Field | Type | Attributes | Key | Null | Default | Extra | Comment |
---|---|---|---|---|---|---|---|
npc_entry | int | unsigned | PRI | NO | reference to creature_template | ||
spell_id | int | unsigned | PRI | NO | spell which should be casted | ||
cast_flags | tinyint | unsigned | NO | first bit defines caster: 1=player, 0=creature; second bit defines target, same mapping as caster bit | |||
user_type | smallint | unsigned | NO | 0 | relation with summoner: 0-no 1-friendly 2-raid 3-party player can click |
creature_template.entry of the creature the player clicks.
The Spell ID 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.
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 this table for the actual value:
Value | Caster | Target |
---|---|---|
0 | Creature | Creature |
1 | Player | Creature |
2 | Creature | Player |
3 | Player | Player |
Relation with summoner: defines who is able to use this spellclick.
Value | Description |
---|---|
0 | Only self |
1 | Friendly |
2 | Raid |
3 | Party |
Back to 'milling_loot_template' Return to world Go to 'npc_text'