Here is an example quest I use... the invis 100 is custom though..
SpellID.lua
11.lua
Code:
function event_spell_effect(e)
if(e.target) then
eq.get_entity_list():RemoveFromTargets(e.target, true);
e.target:SetInvisible(100);
e.target:Emote("vanishes into thin air.");
end
end
I just noticed you are using global_player.. so ya this would only work in... global /spells / spellid.lua
Much easier to keep track of spells this way though :p