PDA

View Full Version : Determining a spell


serivoth1234
05-06-2015, 08:32 AM
Okay I have a question, is there a way to determine if a spell was actually cast from a player that can normally cast the spell or if it were cast from a clicky item?

Uleat
05-06-2015, 02:48 PM
https://github.com/EQEmu/Server/blob/master/zone/spells.cpp#L255

The inventory slot is sent from the client if it is a click-based casting..otherwise, it sends -1 (0xFFFFFFFF) to indicate it was a spell.

Note that spell slot is not the same as inventory slot.

serivoth1234
05-06-2015, 05:44 PM
Excellent, thank you for pointing that out to me.