View Single Post
10-11-20, 03:09 AM   #1
glupikreten
A Theradrim Guardian
Join Date: Apr 2009
Posts: 60
PLAYER_LEVEL_UP event

Hi,

Quick question

If i do something like this

Code:
print(UnitMaxXP("player"))
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_LEVEL_UP")
f:SetScript(
	"OnEvent",
	function()
		print(UnitMaxXP("player"))
	end
)
Shouldn't i get different prints? Because for some reason i get the same... Like there is some delay or something in updating new player xp cap... if i put timer in that function with 1-2 seconds i get new value of max xp.

Is that like normal behaviour?
  Reply With Quote