HP Porcentagem Monstros e players

Descrição

Mostre a porcentagem de HP dos monstros e players.

Autor:

                
1
2
3
4
5
6
7
8
9
10
11
local showhp = macro(20000, "Monster HP %", function() end) onCreatureHealthPercentChange(function(creature, healthPercent) if showhp:isOff() then return end if creature:isMonster() or creature:isPlayer() and creature:getPosition() and pos() then if getDistanceBetween(pos(), creature:getPosition()) <= 5 then creature:setText(healthPercent .. "%") else creature:clearText() end end end)