-
Member
Originally Posted by
RNN
Is case sensitive
Order = 20100;
Better write it between lines 25 and 26
now it works fine, thank you
-
Legendary
Originally Posted by
xratedownz
Hey. How did you do that changes? Can you share codes?
I do not like the idea of publishing the modified whole plugin of another person, he would have to add it if he considers it interesting. I can write here part of the code that I have changed:
a) to avoid the health bug I changed several lines from the 60
Code:
foreach (var monster in monstersElite)
{
var hptext = ValueToString(monster.CurHealth * 100 / monster.MaxHealth, ValueFormat.NormalNumberNoDecimal);
var layout = TextFont.GetTextLayout(hptext);
var w = monster.CurHealth * w1 / monster.MaxHealth;
to
Code:
foreach (var monster in monstersElite)
{
var wint = monster.CurHealth / monster.MaxHealth ; var hptext = "";
if ((wint < 0) || (wint > 1)) { wint = 1; hptext = "bug"; }
else { hptext = ValueToString(wint * 100 , ValueFormat.NormalNumberNoDecimal); }
var w = wint * w1 ;
var layout = TextFont.GetTextLayout(hptext);
b) to mark an elite that is invulnerable to damage, for example one of the elites of a pack who put on the shield
add between line 88-89
Code:
if (monster.Invulnerable) { BackgroundBrushInvul.DrawRectangle(monsterX, monsterY, w1, h); }
Although you have to define something like
IFont BackgroundBrushInvul = Hud.Render.CreateBrush(200, 0, 0, 0, 0);
Last edited by RNN; 12-17-2018 at 10:18 AM.
-
Active Member
I only adapted the plugin. Originally it was from an Asian user, but it has not adapted to a current TurboHUD version. I did that then. So do not worry, post your complete plugin and keep developing it! We will all benefit from it.
-
Legendary
Then I upload the modified plugin:
[C#] HealthBarOnElitePlugin - Pastebin.com
Important: I removed quite a bit of perspective by changing the line
var monsterY = monster.FloorCoordinate.ToScreenCoordinate (). Y - py * 12;
to
var monsterY = monster.FloorCoordinate.ToScreenCoordinate (). Y - py * 8;
can interfere with the plugin of the circles
Ex. Pack with shield
shield.jpg
Last edited by RNN; 12-18-2018 at 08:43 AM.
-
Member
I just formatted my computer and this plugin doesnt working properly for me anymore. I see the %hp but not the bars. No exceptions...
Here is the screenshot;
Screenshot - 6c7eadb6a5c03197fbc359b1cd888708 - Gyazo
-
Active Member
I see the bars on the screenshot.
-
Legendary
I imagine you are referring to this other plugin :
https://www.ownedcore.com/forums/dia...barplugin.html
To the modified plugin that I uploaded before I forgot to put an Order, under line 30 ( base.Load (hud) ; ), I have already added it. It is convenient to do this to delay the execution with respect to the rest of the plugins: if several plugins paint in the same area of the screen, since the last one will prevail and it will be what we see.
Last edited by RNN; 12-18-2018 at 08:25 AM.
-
Post Thanks / Like - 1 Thanks
xratedownz (1 members gave Thanks to RNN for this useful post)
-
Member
Originally Posted by
bm206
I see the bars on the screenshot.
There is no circle bars on the buttom of monsters.
The picture at the OP shows %hp bar and also circle bars buttom of the monsters.
I dont have that circle bars.
PS: Sorry my bad. It is another plugin.
Last edited by xratedownz; 12-18-2018 at 09:16 AM.
-
Member
any way to add healthbar for rift guardian also?
-
Contributor
Originally Posted by
daneriks1990
any way to add healthbar for rift guardian also?
Line 54:
change
Code:
if (monster.Rarity == ActorRarity.Champion || monster.Rarity == ActorRarity.Rare)
to
Code:
if (monster.Rarity == ActorRarity.Champion || monster.Rarity == ActorRarity.Rare || monster.Rarity == ActorRarity.Boss)
If I helped you, click "Give Thanks!"
-
Banned
you would also have to make another change similar to this, or you will only see a gray rectangle
if (monster.Rarity == ActorRarity.Champion) ChampionBrush.DrawRectangle(monsterX, monsterY, (float)w, h);
to
if (monster.Rarity == ActorRarity.Champion || monster.Rarity == ActorRarity.Boss ) ChampionBrush.DrawRectangle(monsterX, monsterY, (float)w, h);
This plugin is useful to see the life of the elites because sometimes it is difficult to point them with many monsters, but in the boss there is no problem and you can see your life at the top of the screen. I do not think it is necessary for you to make those changes, better to get used to looking up in my opinion.
-
Member
Hello everyone!
How do I add letters from curses Decrepify - "D" and Frialty - "F" on elite like Locust and Haunt - "L" and "H"?
-
Member
Hey.
Is it possible to move the whole bar to the top of the mobs instead to the floor? I tried to change some "Y" values, but not sure...
Thx in advance
Andi
-
Active Member
Originally Posted by
MrDeluxxxe
Hey.
Is it possible to move the whole bar to the top of the mobs instead to the floor? I tried to change some "Y" values, but not sure...
Thx in advance
Andi
Change Line 66 to:
*If you want to move it higher - raise the number "28"
Code:
var monsterY = monster.FloorCoordinate.ToScreenCoordinate().Y - 28;
-
Member
Originally Posted by
Romanmas
Hello everyone!
How do I add letters from curses Decrepify - "D" and Frialty - "F" on elite like Locust and Haunt - "L" and "H"?
can someone help?