View Single Post
07-08-15, 04:41 AM   #12
candrid
Premium Member
 
candrid's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 61
Awesome stuff. I got that book that was mentioned above, it arrives today.

EDIT - For example, I went over to wowprogramming.com and there is an example addon called HeyTHere. I copied the addon and it says incompatible.

Addon itself:

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
TOC:
Code:
## Interface 60200
## Title:  Hey There!
## Notes:  Provides slash commands to greet other players.

HeyThere.lua
Now my guess would be, something to do with the addon code is outdated?

Last edited by candrid : 07-08-15 at 04:48 AM.
  Reply With Quote