Thread Tools Display Modes
Prev Previous Post   Next Post Next
10-20-10, 09:18 PM   #1
scoteecopter
A Murloc Raider
Join Date: Oct 2010
Posts: 4
New to Lua and wondering what I'm doing wrong

So I recently decided I wanted to learn Lua and be able to make addons. So I figured I would start out small to test what I have learned so far. Yet for some reason I can't figure out, it isn't working as intended.

What I have so far is:
Code:
local time = GetPVPTimer()

while time == 270000 do 
   print ("4:30 remaining!")
   end
end
What I'm trying to do is just announce in the chat box the time remaining on a PVP timer at certain intervals. However it seems to only run the script when I load into the game, instead of constantly checking to see when time hits 270000.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » New to Lua and wondering what I'm doing wrong


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