Versiones comparadas

Clave

  • Se ha añadido esta línea.
  • Se ha eliminado esta línea.
  • El formato se ha cambiado.

...

Field

Type

Attributes

Key

Null

Default

Extra

Comment'

npc_entry

int(10)

unsigned

 


NO

NULL

 


Reference to the creature_template table

spell_id

int(10)

unsigned

 


NO

NULL 


The ID of the spell to be cast

cast_flagstinyint(3)unsigned 
NONULL 

Who casts the spell on who, creature <=> player (values: 0-3)

user_type

smallint(3)

unsigned 


NO

0 


Relation with summoner: 0-no 1-friendly 2-raid 3-party player can click

...

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

Caster

Target

cast_flags value

CreatureCreature

Clickee

0

PlayerClicker

CreatureClickee

1

CreatureClickee

PlayerClicker

2

PlayerClickerPlayer

Clicker

3

user_type

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

...