First find an NPC in the database and edit it or use WoW-v.com and then you would use Lua to make it cast the spell, for example here is one I did on my server
Code:
function necro_OnCombat(pUnit, Event)
pUnit:SendChatMessage(14, 0, "You dare challenge the Scourge?!")
pUnit:RegisterEvent("necro_Spell1", 2500, 0)
end
function necro_Spell1(pUnit, Event)
pUnit:FullCastSpellOnTarget(686, pUnit:GetClosestPlayer())
end
function necro_OnDeath(pUnit, Event)
pUnit:RemoveEvents()
pUnit:SendChatMessage(14, 0, "NOO!!! THIS CANNOT BE!!!")
end
function necro_OnLeaveCombat(pUnit, Event)
pUnit:RemoveEvents()
end
RegisterUnitEvent(31155, 1, "necro_OnCombat")
RegisterUnitEvent(31155, 2, "necro_OnLeaveCombat")
RegisterUnitEvent(31155, 4, "necro_OnDeath")
Using Lua you can also make it talk, notice my script, I'm sorry if I'm bad at explaining this, if you want we can talk on MSN or something, all my mobs are custom scripted on my server :wave: