-
Contributor
Originally Posted by
Thekid5678
Sorry for being such a dumbass with this. However I am still not seeing where to place this code. I renamed the "pluginenablerordisablerplugin" from .txt to .cs. Not seeing any where in there that says "Customize section" I also went back into Monstercountplugin, but I'm not seeing anywhere in there that say "Customize section..
}
better not posting the code like this, it will make people skip rather than help you
-
Member
Originally Posted by
s4000
better not posting the code like this, it will make people skip rather than help you
Sorry, not sure how to post code on the forum. I'm just simply not understanding where I put the modified code. Do I place it somewhere in the "pluginenablerordisablerplugin.cs" or somewhere in the actual monstercount plugin?
-
Member
I figured it out. Thank you all
-
Legendary
It's not that complicated, I have colored the word "Customize" in blue. The yellow curly braces delimit the area where you must enter the custom code (color orange). The green text are comments, begin with "//" and are used as clarifications for the person who reads the code, will be ignored.
Code:
using Turbo.Plugins.Default;
namespace Turbo.Plugins.User
{
public class PluginEnablerOrDisablerPlugin : BasePlugin, ICustomizer
{
public PluginEnablerOrDisablerPlugin()
{
Enabled = true;
}
public override void Load(IController hud)
{
base.Load(hud);
}
public void Customize()
{
// basic examples
// turn on MultiplayerExperienceRangePlugin
Hud.TogglePlugin<MultiplayerExperienceRangePlugin>(true);
// turn off sell darkening
Hud.GetPlugin<InventoryAndStashPlugin>().NotGoodDisplayEnabled = false;
// disable arcane affix label
Hud.GetPlugin<EliteMonsterAffixPlugin>().AffixDecorators.Remove(MonsterAffix.Arcane);
// override an elite affix's text
Hud.GetPlugin<EliteMonsterAffixPlugin>().CustomAffixNames.Add(MonsterAffix.Desecrator, "DES");
Hud.GetPlugin<MonstersCountPlugin>().XWidth = 0.84f;
Hud.GetPlugin<MonstersCountPlugin>().YHeight = 0.61f;
}
}
}
Last edited by RNN; 12-04-2019 at 09:10 AM.
-
Active Member
Hey nice plugin
How do I change color, text size and font for specific part of the code ?
I removed RareRP, EliteRP and TotalRP
Would like to paint TrashRP string and value to different color. How do I do ?
Last edited by Saico; 05-05-2020 at 08:50 PM.
-
Active Member
In PluginEnablerOrDisablerPlugin.cs:
Code:
Hud.GetPlugin<glq.MonstersCountPlugin>().DefaultTextFont = Hud.Render.CreateFont("tahoma", 9, 255, 255, 255, 255, false, false, 250, 0, 0, 0, true);
-
Active Member
Originally Posted by
Jembo
In PluginEnablerOrDisablerPlugin.cs:
Code:
Hud.GetPlugin<glq.MonstersCountPlugin>().DefaultTextFont = Hud.Render.CreateFont("tahoma", 9, 255, 255, 255, 255, false, false, 250, 0, 0, 0, true);
I`d like to paint just a specific part of the code, but appreciate your help
-
Member
Hi Guys.
Is it possible to include the count of monsters under the effect of Entangling Shot (entangled) in this plugin? I tried to do it following the strongarmed model, but it didn't work.
Exception msg: "\Plugins\glq\MonstersCountPlugin.cs(249,16) : error CS1061: 'IMonster' does not contain a definition for 'Entangled' and no accessible extension method 'Entangled' accepting a first argument of type 'IMonster' could be found (are you missing a using directive or an assembly reference?)"
Thx for help and take your time.
-
Contributor
Originally Posted by
LittleDez13
Hi Guys.
Is it possible to include the count of monsters under the effect of Entangling Shot (entangled) in this plugin? I tried to do it following the strongarmed model, but it didn't work.
Exception msg: "\Plugins\glq\MonstersCountPlugin.cs(249,16) : error CS1061: 'IMonster' does not contain a definition for 'Entangled' and no accessible extension method 'Entangled' accepting a first argument of type 'IMonster' could be found (are you missing a using directive or an assembly reference?)"
Thx for help and take your time.
MonstersCountPlugin - Pastebin.com
Completely save it as MonstersCountPlugin.cs
Don't change anything when you don't know what you're doing
-
Member
Unfortunately, the plugin does not seem to have the entangled update. This would be a really useful feature for the new support Demon Hunter build.
-
Member
Originally Posted by
SeaDragon
Excuse me, I had no intention. ;(
-
Contributor
Originally Posted by
oldMla
Unfortunately, the plugin does not seem to have the entangled update. This would be a really useful feature for the new support Demon Hunter build.
Originally Posted by
LittleDez13
Excuse me, I had no intention. ;(
20.7.2.0
1.Added support Piranhas,Cursed,Krysbin,PainEnhancer,EntanglingShot
-
Post Thanks / Like - 2 Thanks
M4Y3RS,
BeeAntOS (2 members gave Thanks to SeaDragon for this useful post)
-
Member
hmm, no working
Code:
2020.07.02 22:11:03.820 20.6.28.1 error while initializing plugins
2020.07.02 22:11:03.821 20.6.28.1 C:\th\Plugins\glq\MonstersCountPlugin.cs(385,122) : error CS0103: The name 'GLQ_BasePluginCN' does not exist in the current context
2020.07.02 22:11:03.821 20.6.28.1 C:\th\Plugins\glq\MonstersCountPlugin.cs(385,196) : error CS1061: 'IController' does not contain a definition for 'CurrentLanguage' and no accessible extension method 'CurrentLanguage' accepting a first argument of type 'IController' could be found (are you missing a using directive or an assembly reference?)
2020.07.02 22:11:03.821 20.6.28.1 C:\th\Plugins\glq\MonstersCountPlugin.cs(398,123) : error CS0103: The name 'GLQ_BasePluginCN' does not exist in the current context
2020.07.02 22:11:03.821 20.6.28.1 C:\th\Plugins\glq\MonstersCountPlugin.cs(398,197) : error CS1061: 'IController' does not contain a definition for 'CurrentLanguage' and no accessible extension method 'CurrentLanguage' accepting a first argument of type 'IController' could be found (are you missing a using directive or an assembly reference?)
2020.07.02 22:11:03.821 20.6.28.1 C:\th\Plugins\glq\MonstersCountPlugin.cs(410,112) : error CS0103: The name 'GLQ_BasePluginCN' does not exist in the current context
2020.07.02 22:11:03.821 20.6.28.1 C:\th\Plugins\glq\MonstersCountPlugin.cs(410,186) : error CS1061: 'IController' does not contain a definition for 'CurrentLanguage' and no accessible extension method 'CurrentLanguage' accepting a first argument of type 'IController' could be found (are you missing a using directive or an assembly reference?)
2020.07.02 22:11:03.821 20.6.28.1 C:\th\Plugins\glq\MonstersCountPlugin.cs(422,118) : error CS0103: The name 'GLQ_BasePluginCN' does not exist in the current context
2020.07.02 22:11:03.821 20.6.28.1 C:\th\Plugins\glq\MonstersCountPlugin.cs(422,197) : error CS1061: 'IController' does not contain a definition for 'CurrentLanguage' and no accessible extension method 'CurrentLanguage' accepting a first argument of type 'IController' could be found (are you missing a using directive or an assembly reference?)
2020.07.02 22:11:03.821 20.6.28.1 C:\th\Plugins\glq\MonstersCountPlugin.cs(434,116) : error CS0103: The name 'GLQ_BasePluginCN' does not exist in the current context
2020.07.02 22:11:03.821 20.6.28.1 C:\th\Plugins\glq\MonstersCountPlugin.cs(434,194) : error CS1061: 'IController' does not contain a definition for 'CurrentLanguage' and no accessible extension method 'CurrentLanguage' accepting a first argument of type 'IController' could be found (are you missing a using directive or an assembly reference?)
-
Member
I manually edited the file to change the 6 instances where GLQ_BasePluginCN. and HUD.CurrentLanguage was used.
As an example:
textBuilder.AppendFormat(str_TotalRP + " {0}% = {1}", totalMonsterRiftProgression.ToString("f2"),GLQ_BasePluginCN.ValueToString((long) totalTime, ValueFormat.LongTime, Hud.CurrentLanguage));
becomes
textBuilder.AppendFormat(str_TotalRP + " {0}% = {1}", totalMonsterRiftProgression.ToString("f2"),ValueToString((long)totalTime, ValueFormat.LongTime));
The plugin works great once I did that. I can now see Piranhas and EntanglingShot so I know when to swap between Bolas and Entanglingshot on my DH
-
Contributor
Originally Posted by
oldMla
I manually edited the file to change the 6 instances where GLQ_BasePluginCN. and HUD.CurrentLanguage was used.
As an example:
textBuilder.AppendFormat(str_TotalRP + " {0}% = {1}", totalMonsterRiftProgression.ToString("f2"),GLQ_BasePluginCN.ValueToString((long) totalTime, ValueFormat.LongTime, Hud.CurrentLanguage));
becomes
textBuilder.AppendFormat(str_TotalRP + " {0}% = {1}", totalMonsterRiftProgression.ToString("f2"),ValueToString((long)totalTime, ValueFormat.LongTime));
The plugin works great once I did that. I can now see Piranhas and EntanglingShot so I know when to swap between Bolas and Entanglingshot on my DH
Originally Posted by
FoxPox
hmm, no working
Code:
2020.07.02 22:11:03.820 20.6.28.1 error while initializing plugins
2020.07.02 22:11:03.821 20.6.28.1 C:\th\Plugins\glq\MonstersCountPlugin.cs(385,122) : error CS0103: The name 'GLQ_BasePluginCN' does not exist in the current context
2020.07.02 22:11:03.821 20.6.28.1 C:\th\Plugins\glq\MonstersCountPlugin.cs(385,196) : error CS1061: 'IController' does not contain a definition for 'CurrentLanguage' and no accessible extension method 'CurrentLanguage' accepting a first argument of type 'IController' could be found (are you missing a using directive or an assembly reference?)
2020.07.02 22:11:03.821 20.6.28.1 C:\th\Plugins\glq\MonstersCountPlugin.cs(398,123) : error CS0103: The name 'GLQ_BasePluginCN' does not exist in the current context
2020.07.02 22:11:03.821 20.6.28.1 C:\th\Plugins\glq\MonstersCountPlugin.cs(398,197) : error CS1061: 'IController' does not contain a definition for 'CurrentLanguage' and no accessible extension method 'CurrentLanguage' accepting a first argument of type 'IController' could be found (are you missing a using directive or an assembly reference?)
2020.07.02 22:11:03.821 20.6.28.1 C:\th\Plugins\glq\MonstersCountPlugin.cs(410,112) : error CS0103: The name 'GLQ_BasePluginCN' does not exist in the current context
2020.07.02 22:11:03.821 20.6.28.1 C:\th\Plugins\glq\MonstersCountPlugin.cs(410,186) : error CS1061: 'IController' does not contain a definition for 'CurrentLanguage' and no accessible extension method 'CurrentLanguage' accepting a first argument of type 'IController' could be found (are you missing a using directive or an assembly reference?)
2020.07.02 22:11:03.821 20.6.28.1 C:\th\Plugins\glq\MonstersCountPlugin.cs(422,118) : error CS0103: The name 'GLQ_BasePluginCN' does not exist in the current context
2020.07.02 22:11:03.821 20.6.28.1 C:\th\Plugins\glq\MonstersCountPlugin.cs(422,197) : error CS1061: 'IController' does not contain a definition for 'CurrentLanguage' and no accessible extension method 'CurrentLanguage' accepting a first argument of type 'IController' could be found (are you missing a using directive or an assembly reference?)
2020.07.02 22:11:03.821 20.6.28.1 C:\th\Plugins\glq\MonstersCountPlugin.cs(434,116) : error CS0103: The name 'GLQ_BasePluginCN' does not exist in the current context
2020.07.02 22:11:03.821 20.6.28.1 C:\th\Plugins\glq\MonstersCountPlugin.cs(434,194) : error CS1061: 'IController' does not contain a definition for 'CurrentLanguage' and no accessible extension method 'CurrentLanguage' accepting a first argument of type 'IController' could be found (are you missing a using directive or an assembly reference?)
Thank you. I think it's fixed now