Hey,
I'm trying to learn LUA by starting at the easiest tut ant script I could find to learn. I typed in everything, saved it as LUA, put it in the scripts folder, made the npc, and tested the script.
But I keep getting the same error:
scripts\Orcgrunt_Attack.lua:2: calling 'SendChatMessage' on bad self <number expected, got nill>
Here's my script and the tutorial I was following:
Forums: [LUA] Basic LUA | WoW-V.comCode:function Orcgrunt_Entercombat (pUnit, Event) pUnit:SendChatMessage(SAY, ORCISH, "Taste my blade!") end RegisterUnitEvent (500010, 1, "Orcgrunt_Entercombat")