Target level

Information how to write rotations, how specific functions work
4 posts Page 1 of 1
HQuest
Posts: 6
Joined: 21 Sep 2018, 03:12


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?
Kaminaris
Site Admin
Posts: 322
Joined: 25 Jun 2017, 03:45


well, install Rehack addon, put your code there and check yourself.
HQuest
Posts: 6
Joined: 21 Sep 2018, 03:12


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?
Kaminaris
Site Admin
Posts: 322
Joined: 25 Jun 2017, 03:45


Of course.
4 posts Page 1 of 1
drogie łóżka stolik kawowy stół dębowy rozkładany