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)
e.target:Shout("Buff name is " .. e.self:Name() .. " Buff ID is " .. e.self:ID());
end