event_case - LUA
How do I get the id or the name of the spell being cast?
This is in my global_player.lua Code:
function event_cast(e) |
Here's what the Lua Parser reference says.
Code:
event_cast |
This is what i am using in my global_player.lua
Just a snippet from a rather long set of spell checks, can post more of the code if need be. Code:
function event_cast(e) |
You guys realize there is a spell quest system? "<zone>/spells/<spellid>.ext" and "global/spells/<spellid>.ext"
|
I tried until my eyes bled to get the global/spells/spellid to do what I wanted but could not get it to work right. See my post in this section if you haven't yet. I am using global_player until I can figure it out.
|
Here is an example quest I use... the invis 100 is custom though..
SpellID.lua 11.lua Code:
function event_spell_effect(e) Much easier to keep track of spells this way though :p |
I had a typo was my problem....
. instead of a : |
This might help in the future for finding the correct variable names.
http://wiki.eqemulator.org/p?spell_Events http://wiki.eqemulator.org/p?NPC_Events http://wiki.eqemulator.org/p?player_Events When using the global / spells / spellID.lua Code:
function event_spell_effect(e) |
All times are GMT -4. The time now is 07:09 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.