This plugin shows a red warning circle around your character (monk only) if Sweeping Wind is inactive or a blue circle if it has only one stack and has to recharge before your next cast.
Very useful for Wave of Light/Lashing Tail Kick builds using the Sunwoko set where each cast drains one stack of Sweeping Wind, with regeneration provided through Kyoshiros Soul.
Careless fast casting can lead to complete draining of stacks, resulting in far less damage and protection. This can happen quite a lot in the heat of battle.
If the warning circle is visible stop casting until more stacks regenerated, or recast Sweeping Wind if fully drained.
Code:pastebin Place in: \plugins\Xenthalon\SweepingWindStackWarningPlugin.cs
Example to change settings in your own Customize Plugin:
Code:
Hud.RunOnPlugin<SweepingWindStackWarningPlugin>(plugin =>
{
plugin.EnableInTown = true; // also shows warnings when in town
plugin.PlayerWarningLabel.Enabled = true;
plugin.PlayerWarningLabelText = "MY WARNING TEXT";
plugin.RechargeWarningCircle = new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(255, 0, 0, 255, 2.0f),
Radius = 3,
RadiusTransformator = new StandardPingRadiusTransformator(Hud, 400)
}
);
plugin.DrainedWarningCircle = new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(255, 255, 0, 0, 2.0f),
Radius = 3,
RadiusTransformator = new StandardPingRadiusTransformator(Hud, 400)
}
);
});
A complete NOOB (pure novice), I like this plugin, don't anything about plugins, and what and where does this get pasted. I know where user plugin folders are located but cannot make this work and get exceptions
2017.03.31 09:38:18.507 namespace mismatch in plugin file: 'C:\Salsa Directions\Plugins\User\SweepingWindStackWarningPlugin.cs': namespace should be this: 'Turbo.Plugins.User
2017.03.31 09:38:18.749 error while initializing plugins
2017.03.31 09:38:18.750 c:\Salsa Directions\plugins\User\PluginEnablerOrDisablerPlugin.cs(55,2) : error CS1525: Invalid expression term ')'
appreciate your help.
here's what I did
made a new file under plugin/users named
\plugins\Xenthalon\SweepingWindStackWarningPlugin.cs
and inserted your code from above
Hud.RunOnPlugin<SweepingWindStackWarningPlugin>(plugin =>
{
plugin.EnableInTown = true; // also shows warnings when in town
plugin.PlayerWarningLabel.Enabled = true;
plugin.PlayerWarningLabelText = "MY WARNING TEXT";
plugin.RechargeWarningCircle = new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(255, 0, 0, 255, 2.0f),
Radius = 3,
RadiusTransformator = new StandardPingRadiusTransformator(Hud, 400)
}
);
plugin.DrainedWarningCircle = new WorldDecoratorCollection(
new GroundCircleDecorator(Hud)
{
Brush = Hud.Render.CreateBrush(255, 255, 0, 0, 2.0f),
Radius = 3,
RadiusTransformator = new StandardPingRadiusTransformator(Hud, 400)
}
);
});
received an exception
2017.03.31 15:23:02.167 namespace mismatch in plugin file: 'C:\Salsa Directions\Plugins\User\pluginsXenthalonSweepingWindStackWarningPlugin.cs': namespace should be this: 'Turbo.Plugins.User
Please have patience, I really don't know what I am doing. And I'm not a kid, just a non-programmer old adult (LOL)
JollyTex
Would love to use your plugin for my One Shot Monk Build but I'm getting following exception:
"plugins\Xenthalon\SweepingWindStackWarningPlugin.cs(51,30) : error CS0115: 'Turbo.Plugins.Xenthalon.SweepingWindStackWarningPlugin.PaintWorld(Turbo.Plugins .WorldLayer)': No suitable method for overwriting was found.
Would love to use your plugin for my One Shot Monk Build but I'm getting following exception:
"plugins\Xenthalon\SweepingWindStackWarningPlugin.cs(51,30) : error CS0115: 'Turbo.Plugins.Xenthalon.SweepingWindStackWarningPlugin.PaintWorld(Turbo.Plugins .WorldLayer)': No suitable method for overwriting was found.
Oh man, I'm terribly sorry, seems I copied a too old version of the post from google cache. Locally I had the working newer version that Jack also posted. Thanks for the info, original post updated.