1. Ok, so, i did the first exaple in the book -.- already having problems. At first the .toc file wasnt working, but i went into DOS and renamed it through dos then i finally got it to show up in the add on page of wow. Once i got past that step, the LUA sctipt still isnt working in game -.- This is the code:

     SLASH_HEYTHERE1 = "/hey"
     SLASH_HEYTHERE2 = "/heythere"
     SlashCmdList("HEYTHERE") = function(self, txt)
       if UnitExists("target") then
       SendChatMessage("Hello " .. UnitName("target"), "SAY")
     else
       SendChatMessage("Hey there everybody!")
     end
     end
    

    So yea, please, help, just wanting to try to make my first add on! :)

    When you went into DOS and had to rename the toc file. What was the name it had originally? .toc.txt? If so, look into doing the same thing for the .lua file. Just a shot in the dark with this because it seems it should be working for you.

    Meant to include, if that does end up being the issue. When you go to save the files in whatever text editor you're using, make sure to change the file type drop down to "any file ." Changing it to that, it'll save the file exactly how you have it typed out. rather than appending it's own extension to it.

    You can download all of the example addons under the "Chapters" tab at the top of the page, just click on the chapter you're working on. You can then use it to compare to what you have.

    That being said, the issue is your parenthesis on SlashCmdList. It should be square brackets, i.e. SlashCmdList["HEYTHERE"].

    Well, either it was me doing the drop down box to "All Files" or i did sqaure brackets instead, i did both before i tried it on wow, so i dont know which, but it works, thnx guys! :)