First wow mod, need help to trouble shoot.
First of all, thanks for taking the time to visit my post.
I have some programming background, I used to study CIS before I decided to join the military and go in a medical career. Now, I am trying to make a simple mod using nothing but local values. I want the mod to detect if I have Dark Intent up, if I have Improved Soul Fire up, and last but not least to see if Conflag is off from CD. (Yes I play a warlock) Code:
EventFrame:RegisterEvent("PLAYER_LOGIN") My TOC reads as follows: Code:
## Interface: 40000 |
First, you never created a frame. Second, you never told it when to run your function. Third, you're not telling your code what to do with the variables you create.
Pretty much, your syntax/logic is way off. ;) Have a read at these two sites for starters. :) http://www.lua.org/pil/ http://lua-users.org/wiki/TutorialDirectory |
Quote:
I've drycoded something below that you may want to try, but I haven't tested it. No doubt there are others who would come up with something more elegant or point out my mistakes. :) Code:
local CalaberaAnnounce = CreateFrame(frame) |
I have figured it out, with a lot of help from pros.
It looks like Code:
local EventFrame = CreateFrame("Frame",nil,UIParent) |
Look into using an OnUpdate for something like this it wouldn't be too bad since it's small. Though a second solution for all of this would be just get the addon PowerAuras and build these checks into it which takes just a few seconds and he has lots of different checks to look for.
|
All times are GMT -6. The time now is 06:32 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI