-
Member
Simulacrum & Land of Dead activation tracking
Is there anyway to indicate them somehow, in order to know once we activate them, how much time we have them until they wear off?
Not something generalized like the buffllists, but something like CoE
-
Contributor
i think this can be done,
i have an idea for this, i'll try if i have time today
nice idea, btw
greetz gjuz
-
Post Thanks / Like - 2 Thanks
-
Contributor
it is quite simple
just add to your customize file - -> Default theme customization 101 <-- (Default theme customization 101)
PHP Code:
Hud.RunOnPlugin<PlayerBottomBuffListPlugin>(plugin =>
{
plugin.BuffPainter.ShowTimeLeftNumbers = true;
// 465350 - Simulacrum
plugin.RuleCalculator.Rules.Add(new BuffRule(465350)
{
IconIndex = 1,
MinimumIconCount = 1,
ShowTimeLeft = true,
IconSizeMultiplier = 1.0f,
});
// 465839 - Land of the Dead
plugin.RuleCalculator.Rules.Add(new BuffRule(465839)
{
IconIndex = 0,
MinimumIconCount = 1,
ShowTimeLeft = true,
IconSizeMultiplier = 1.0f,
});
}
looks like this:
greetz gjuz
Last edited by gjuz; 09-12-2017 at 03:48 AM.
-
Post Thanks / Like - 3 Thanks
-
Member
Thanks.
Is it possible to make it as standalone plugin in order to have them both not with all of the rest buffs which are displayed in bottom? There will be other buffs running too, that is why I asked to be like CoE which is a separate plugin
It would be great if they are displayed at Top, with the option to position them as you please in the screen (X, Y)
-
Contributor
sure just define a new buff bar - with its own coordinates and paint it
greetz gjuz
-
Member
I would like to have that one too, but i dont have Microsoft Office for the TCT (unfortunatly cant download too much since i only have a certain amount free monthly) So would anyone be so kind and help me out by telling me what i can do? =)
-
Member
Originally Posted by
gjuz
sure just define a new buff bar - with its own coordinates and paint it
greetz gjuz
I don't have a clue how to do that
edit : I transfered the skill CDs to Top bufflist, above CoE circle, thank again!
Last edited by cherouvim13; 09-12-2017 at 11:57 AM.
-
Contributor
easy as this:
copy "PlayerBottomBuffListPlugin.cs" from "\plugins\Default\DuffLists" to your "\plugins\User" folder.
Rename!!!!
e.g. NecroBuffListPlugin.cs
edit code:
PHP Code:
using Turbo.Plugins.Default; //important to add
namespace Turbo.Plugins.User //change Default to User
{
public class NecroBuffListPlugin : BasePlugin, IInGameTopPainter
//name of file (NEWNAME)
{
PHP Code:
public NecroBuffListPlugin() //NEWNAME
{
and instead of
PHP Code:
RuleCalculator.Rules.Add(new BuffRule(403471) { IconIndex = null, MinimumIconCount = 1, ShowStacks = true, ShowTimeLeft = true }); // Taeguk
RuleCalculator.Rules.Add(new BuffRule(359583) { IconIndex = 1, MinimumIconCount = 1, ShowTimeLeft = true }); // Focus
RuleCalculator.Rules.Add(new BuffRule(359583) { IconIndex = 2, MinimumIconCount = 1, ShowTimeLeft = true }); // Restraint
use those i posted ealier. don't forget to remove "plugin."
PHP Code:
//x position relative to the center of screen, buffbar centered around this point.
var y = Hud.Window.Size.Height * 0.5f; //center of screen
var x = Hud.Window.Size.Width * 0.0f; //center of screen
BuffPainter.PaintHorizontalCenter(RuleCalculator.PaintInfoList, x, y, Hud.Window.Size.Width, RuleCalculator.StandardIconSize, RuleCalculator.StandardIconSpacing);
greetz gjuz
-
Post Thanks / Like - 3 Thanks
-
Contributor
Originally Posted by
cherouvim13
I don't have a clue how to do that
edit : I transfered the skill CDs to Top bufflist, above CoE circle, thank again!
of course, you can use
PHP Code:
Hud.RunOnPlugin<PlayerTopBuffListPlugin>(plugin =>
as well
-
Post Thanks / Like - 1 Thanks
n1com (1 members gave Thanks to gjuz for this useful post)
-
Member
Wow.. It might be easy for guys who know what they are doing like you For me it was some kind of adventure right now, but i made it. Thanks very much =)
-
Member
Would it be possible to upload the updated finished .cs file and post a link? I'm completely new to this, and I'm trying to follow your instructions, but I can't get it working.