EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Determining a spell (https://www.eqemulator.org/forums/showthread.php?t=39633)

serivoth1234 05-06-2015 08:32 AM

Determining a spell
 
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...pells.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.


All times are GMT -4. The time now is 11:34 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.