View Single Post
10-24-10, 02:29 PM   #4
Xuerian
A Fallenroot Satyr
 
Xuerian's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 27
Originally Posted by blinked View Post
I tried creating the hello world basic mod by following directions on:
http://www.wowwiki.com/AddOn_program...l/Introduction

And here is my code for HelloWorld.toc
.....

According to wowwiki, I should see "Hello World!" written in chatbox. I am looking for it but there is nothing in the chatbox. So I have a feeling I screwed up somewhere or the wowwiki page is out of date. Can one of you kind souls verify if its pebkac issue or something out of my hand?

Sorry if its in the wrong place.. I don't post here very often.
Don't forget that you can skip the XML and simply:
Code:
function HelloWorld()
  print("Hello World from Lua!") -- semicolons are sugar only
end
HelloWorld()

-- And if you want the frame
local frame = CreateFrame("Frame", "HelloWorldFrame")

-- And set scripts, not that calling it again will help anything
frame:SetScript("OnLoad", HelloWorld)
  Reply With Quote