After alot of experimenting in game with global/spells/spellid.lua (in my example global/spells/102.lua) and casting
my test spell over and over with minor changes and #reloadquest, also reading this again from
https://github.com/EQEmu/Server/wiki...player-scripts
Spell Events
event_spell_effect
Triggered when a spell affects a target. Passes an event table as an argument:
{
Spell self;
Mob target;
Integer buff_slot;
Integer caster_id;
}
Returning a non-zero value from this function will cancel the spell effect.
It finally sank in how to word this spell file properly. I am now at least getting some reaction when activating the script and I will continue attempting to convert more complex versions of my old perl spell files to lua.
Code:
--global/spells/102.lua test spell target self
--Message is received whenever spell 102 is cast, with or without a target as spell 102 is self only spell
function event_spell_effect(e)
e.target:Message(15, "I just cast a spell FROM SPELL FILE ! ");
end
Hopefully this will help someone else out at some point.