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