Quantcast Lua problems - WoWInterface
Thread Tools Display Modes
07-01-09, 05:41 AM   #1
A Defias Bandit
Zaratara's Avatar
Join Date: Jun 2009
Posts: 3
Lua problems

Hello. I am new to this with making addons.
I know some programing like c++ and c# but the problem I have right now is that I can't run my lua files. because I can't find how they are supose to look. I have a scrip looking loke this:

local start, duration, enabled = GetSpellCooldown("Fel Domination");
if enabled == 0 then
DEFAULT_CHAT_FRAME:AddMessage("Fel Domination is currently active, use it and wait " .. duration .. " seconds for the next one.");
elseif ( start > 0 and duration > 0) then
DEFAULT_CHAT_FRAME:AddMessage("Fel Domination is cooling down, wait " .. (start + duration - GetTime()) .. " seconds for the next one.");
DEFAULT_CHAT_FRAME:AddMessage("Fel Domination is ready.");

but I can't test this because I can't activate it in WoW

If you can please help


only dead fish follow the stream!

Zaratara - 80 Warlock Kor'gall EU
Connysson - 80 Pala Kor'gall EU
07-01-09, 05:55 AM   #2
A Firelord
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 479

If you don't know how to create the directory structure, just copy a simple addon. You need a .toc and that .lua file at minimum.
07-01-09, 06:41 AM   #3
nUI's Author
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
My advice to you would be to start by finding a simple WoW mod and reverse engineering it. I didn't know squat about Lua when I started either. Two invaluable resources to learn about Lua and the WoW API are here:


What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.

Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/

WoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Customization » nUI: Developer Chat » Lua problems

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off