View Single Post
04-19-10, 05:05 PM   #2
harrellj
A Flamescale Wyrmkin
Join Date: Jul 2009
Posts: 132
That if level >=1 bit? Should be in ().

So, it'd be:
Code:
	function LevelUp_OnLoad()
	  this:RegisterEvent("MERCHANT_SHOW");
	end

	function LevelUp_OnEvent(event)
	  if (event == "MERCHANT_SHOW") then
	    local level = UnitLevel("player");
	    if (level >= 1) then
               LoadProfile();
            end
	  end
	end
I had to clean up the whitespacing to make it easier to read for myself too :P
  Reply With Quote