-
Contributor
Originally Posted by
ADV2015
Hi,
Small request
I would like to have the same thing constantly around me and in fine line and only during a GR
Can you add this in your plugins like PluginsConfig.cs
Tk
I think this is another plugin
-
Post Thanks / Like - 1 Thanks
ADV2015 (1 members gave Thanks to SeaDragon for this useful post)
-
First Dev On The Internet
Originally Posted by
ADV2015
Hi,
Small request
I would like to have the same thing constantly around me and in fine line and only during a GR
Can you add this in your plugins like PluginsConfig.cs
Tk
I didn't see your post but I worked on this today :
[v7.3] [INTERNATIONAL] [Resu] HuntersVengeancePlugin
Last edited by User5981; 10-01-2017 at 01:59 AM.
Reason: English Grammar
-
Post Thanks / Like - 1 Thanks
ADV2015 (1 members gave Thanks to User5981 for this useful post)
-
Member
-
Member
Originally Posted by
gjuz
yes it is possible
PHP Code:
public void PaintWorld(WorldLayer layer)
{
foreach (var monster in Hud.Game.AliveMonsters.Where(x => x.SnoMonster.Priority == MonsterPriority.boss))
{
foreach (IPlayer player in Hud.Game.Players)
{
IBuff ZeiStone = player.Powers.UsedLegendaryGems.ZeisStoneOfVengeancePrimary;
if (ZeiStone != null && ZeiStone.Active)
{
ZeiDecorator.Paint(monster, monster.FloorCoordinate, null);
return; //prevent double painting
}
}
}
}
or you can draw a zei circle around each player who uses it, in boss fight
greetz gjuz
I'm new to using THUD and i have been able to modify other plugins but I am unclear where this code goes exactly.
Does it replace some code in the plugin or is it added? In either case, where exactly?
Please advise.
Thank you
-
Contributor
Originally Posted by
CycoMikeMuir
I'm new to using THUD and i have been able to modify other plugins but I am unclear where this code goes exactly.
Does it replace some code in the plugin or is it added? In either case, where exactly?
Please advise.
Thank you
replace public void PaintWorld(WorldLayer layer) code in the plugin
-
Member
I tried that before and again just now. I get exceptions..
2018.05.23 20:03:32.620 error while initializing plugins
2018.05.23 20:03:32.621 c:\Users\Leonidas\Desktop\dresscode\plugins\glq\zeicircleforboss.cs(43,2) : error CS1513: } expected
2018.05.23 20:03:32.625 c:\Users\Leonidas\Desktop\dresscode\plugins\glq\zeicircleforboss.cs(43,2) : error CS1513: } expected
-
Contributor
Originally Posted by
CycoMikeMuir
I tried that before and again just now. I get exceptions..
2018.05.23 20:03:32.620 error while initializing plugins
2018.05.23 20:03:32.621 c:\Users\Leonidas\Desktop\dresscode\plugins\glq\zeicircleforboss.cs(43,2) : error CS1513: } expected
2018.05.23 20:03:32.625 c:\Users\Leonidas\Desktop\dresscode\plugins\glq\zeicircleforboss.cs(43,2) : error CS1513: } expected
Maybe a "}" symbol is missing.
Try this code, This is a complete plugin code
Code:
using System.Linq;
using Turbo.Plugins.Default;
namespace Turbo.Plugins.glq
{
public class GLQ_ZeiCircleForBoss : BasePlugin, IInGameWorldPainter
{
public GroundCircleDecorator ZeiDecorator { get; set; }
public GLQ_ZeiCircleForBoss()
{
Enabled = true;
}
public override void Load(IController hud)
{
base.Load(hud);
ZeiDecorator = new GroundCircleDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(255,192,96,0, 1.5f),
Radius = 50f
};
}
public void PaintWorld(WorldLayer layer)
{
foreach (var monster in Hud.Game.AliveMonsters.Where(x => x.SnoMonster.Priority == MonsterPriority.boss))
{
foreach (IPlayer player in Hud.Game.Players)
{
IBuff ZeiStone = player.Powers.UsedLegendaryGems.ZeisStoneOfVengeancePrimary;
if (ZeiStone != null && ZeiStone.Active)
{
ZeiDecorator.Paint(monster, monster.FloorCoordinate, null);
return; //prevent double painting
}
}
}
}
}
}
Last edited by SeaDragon; 05-24-2018 at 02:47 PM.
-
Post Thanks / Like - 1 Thanks
CycoMikeMuir (1 members gave Thanks to SeaDragon for this useful post)
-
Member
Yep, that did it.
Thank you