Quantcast
PLAYER_LEVEL_UP event - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
10-11-20, 03:09 AM   #1
glupikreten
An Aku'mai Servant
Join Date: Apr 2009
Posts: 37
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
 

WoWInterface » Developer Discussions » Lua/XML Help » PLAYER_LEVEL_UP event

Thread Tools
Display Modes

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