Dont switch between Unit or pUnit Use one or the other. and if you want him to say something other than Luatest.. Replace the text where it says Lua test with what you want him to say
Code:
function Voidsay_OnCombat (pUnit, event)
pUnit:SendChatMessage(14, 0, "LUATEST!")
pUnit:RegisterEvent("Voidsay_ShadowBolt", 1000, 1)
end
function voidsay_ShadowBolt(pUnit, Event)
pUnit:CastSpell(16784, pUnit:GetMainTank())
end
RegisterUnitEvent(90902, 1, "Voidsay_OnCombat")
Try that just looked at it quick so might have missed something...
Also dont use SPACES when giving your functions names it should be SHADOWBOLT not SHADOW BOLT