![]() If (healthRatio = 100) then - that's how I save the unit's maximum healtpoints Health = math.ceil(healthMax * healthRatio / 100) If (not UnitIsPlayer("mouseover")) then - calculate or get the current healthpoints for mobs and NPCs ![]() adding healthpoint information to GameTooltip If (sL > 0 and sC ~= "") then - do the same for the secondary class, if available Local mColor = "" - colorize the following output for the primary class adding class information to GameTooltip ![]() Local unitQuestMsg = UnitQuestMsg("mouseover") Local healthText, manaText, skillText = "", "" Local skill, skillMax, skillType = UnitSkill("mouseover"), UnitMaxSkill("mouseover"), UnitSkillType("mouseover") Local mana, manaMax, manaType = UnitMana("mouseover"), UnitMaxMana("mouseover"), UnitManaType("mouseover") Local health, healthMax, healthRatio = 0, 0, 0 If (UnitExists("mouseover") and (UnitIsPlayer("mouseover") or UnitLevel("mouseover") > 1)) then - get rid of messages for level 1 NPCs and other level 1 stuff, except players and the english onesįunction pbMobInfoHover() - thx to dr00gz for the idea and the hints! Magier = "FFC000", - german class descriptions. if (GetLocale() = "deDE") then - I don't know the real function and return values. This sends information about the target to your chat window or, if you are in a group, in group chat. Select a mob, player or NPC and press the macro button. Create a new macro and put "/mobinfo" into it. (Only available if target was hovered or targetted once before the combat.) In the target frame, the target's health bar now shows the real actual and maximum halth points. Hover your mouse over a target to get some detailed information. "dr00gz" - : Tooltip idea and lot's of hints Many thanks to the following people for their ideas and/or code: released under the Creative Commons License By-Nc-Sa:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |