Well, we need the NPC entry ID. I can still make the script, but you can replace the entry with the NPC entry you want this to be on.
It is a simple Creature Event:
You can use:
CREATURE_EVENT_ON_SPAWN = 5, (event, creature)
Both will work with what you're asking for. What you have to do is make a function with the arguments "event, creature", go to the Unit Method Documentation and find "CastSpell". AddAura would work too, but Aura is a spell nonetheless.
CREATURE_EVENT_ON_RESET = 23, (event, creature)
And the script:
CastSpell(target, spellID[, triggered]) - Casts spell on target (player/npc/object/item), if triggered is false has mana cost and cast time
Simple as it can be. Eluna does have Example Scripts on github: https://github.com/ElunaLuaEngine/Sc...mple%20Scripts
local npcId = 30000 -- NPC EntryId
function OnSpawn(event, creature)
RegisterCreatureEvent(npcId, 5, OnSpawn)
Just look through some of those if you need further help. More example scripts will be made over time.