Page 1 of 1

Target level

Posted: 17 Oct 2018, 01:41
by HQuest
Any way I can check what my target level is, i.e, if my current level+1, +2 or +3/boss?

[Edit] from http://wowwiki.wikia.com/wiki/API_UnitLevel
local targetLvl = UnitLevel("target")
local playerLvl = UnitLevel("player")
if targetLvl > playerLvl then
local diffLvl = targetLvl - playerLvl
end
Does the above works?

Re: Target level

Posted: 17 Oct 2018, 02:57
by Kaminaris
well, install Rehack addon, put your code there and check yourself.

Re: Target level

Posted: 17 Oct 2018, 11:59
by HQuest
Thanks - did not know about Rehack addon, this will make playing around much easier. :ugeek:

Now, can I use direct WoW API codes inside MaxDPS, the same way I would use the MaxDPS classes created by the addon?

Re: Target level

Posted: 17 Oct 2018, 13:13
by Kaminaris
Of course.