-
Member
What is PHP code? Where do I put it in, in what folder?
-
Member
Originally Posted by
JackCeparou
Code:
warning CS0162: Unreachable code detected
error CS0103: The name 'Enum' does not exist in the current context
You need to reference 'System' as well :
or
PHP Code:
foreach(MonsterAffix afx in System.Enum.GetValues(typeof(MonsterAffix)))
plugin.DisplayAffix.Add(afx, afx.ToString("G")); //set affix string for each affix you want to be displayed
Both will work.
Hi Jack!
Is it possible to make affix showed in Russian?
-
Savvy ? 🐒
Originally Posted by
Romanmas
Hi Jack!
Is it possible to make affix showed in Russian?
PHP Code:
Hud.RunOnPlugin<Gigi.EliteBarPlugin>(plugin =>
{
plugin.DisplayAffix.Clear();
plugin.DisplayAffix.Add(MonsterAffix.Arcane, "скрытый");
//add one line for each affix you want displayed
//plugin.DisplayAffix.Add(MonsterAffix.Frozen, "...");
//plugin.DisplayAffix.Add(MonsterAffix.FrozenPulse, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Plagued, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Waller, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Reflect, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Vortex, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Wormhole, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Electrified, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Vampiric, "...");
//plugin.DisplayAffix.Add(MonsterAffix.ExtraHealth, "...");
//plugin.DisplayAffix.Add(MonsterAffix.HealthLink, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Knockback, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Fast, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Desecrator, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Molten, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Teleporter, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Jailer, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Shielding, "...");
//plugin.DisplayAffix.Add(MonsterAffix.FireChains, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Nightmarish, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Illusionist, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Poison, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Mortar, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Orbiter, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Thunderstorm, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Avenger, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Horde, "...");
//plugin.DisplayAffix.Add(MonsterAffix.MissileDampening, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Juggernaut, "...");
});
Ps : you know it's not my plugin, right ? ;P
-
Post Thanks / Like - 1 Thanks
stargate10009 (1 members gave Thanks to JackCeparou for this useful post)
-
Member
How do I make this plugin work? I am unsure where to put it and how to make it work.
-
Member
-
Member
Originally Posted by
JackCeparou
PHP Code:
Hud.RunOnPlugin<Gigi.EliteBarPlugin>(plugin =>
{
plugin.DisplayAffix.Clear();
plugin.DisplayAffix.Add(MonsterAffix.Arcane, "скрытый");
//add one line for each affix you want displayed
//plugin.DisplayAffix.Add(MonsterAffix.Frozen, "...");
//plugin.DisplayAffix.Add(MonsterAffix.FrozenPulse, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Plagued, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Waller, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Reflect, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Vortex, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Wormhole, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Electrified, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Vampiric, "...");
//plugin.DisplayAffix.Add(MonsterAffix.ExtraHealth, "...");
//plugin.DisplayAffix.Add(MonsterAffix.HealthLink, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Knockback, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Fast, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Desecrator, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Molten, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Teleporter, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Jailer, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Shielding, "...");
//plugin.DisplayAffix.Add(MonsterAffix.FireChains, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Nightmarish, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Illusionist, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Poison, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Mortar, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Orbiter, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Thunderstorm, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Avenger, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Horde, "...");
//plugin.DisplayAffix.Add(MonsterAffix.MissileDampening, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Juggernaut, "...");
});
Ps : you know it's not my plugin, right ? ;P
where to put those codes? inside PluginEnablerOrDisablerPlugin.cs?
-
Member
Hello,
how can I show the affixes under the Elite in German to see which they have?
Thank you in advance
-
Member
No one?
It would be very nice to see that in German .
I´m sorry for my bad english
-
Contributor
Originally Posted by
Lagertha
Hello,
how can I show the affixes under the Elite in German to see which they have?
Thank you in advance
Hi,
nimm einfach das was jack geschrieben hat
Originally Posted by
JackCeparou
PHP Code:
Hud.RunOnPlugin<Gigi.EliteBarPlugin>(plugin =>
{
plugin.DisplayAffix.Clear();
plugin.DisplayAffix.Add(MonsterAffix.Arcane, "скрытый");
//add one line for each affix you want displayed
//plugin.DisplayAffix.Add(MonsterAffix.Frozen, "...");
//plugin.DisplayAffix.Add(MonsterAffix.FrozenPulse, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Plagued, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Waller, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Reflect, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Vortex, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Wormhole, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Electrified, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Vampiric, "...");
//plugin.DisplayAffix.Add(MonsterAffix.ExtraHealth, "...");
//plugin.DisplayAffix.Add(MonsterAffix.HealthLink, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Knockback, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Fast, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Desecrator, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Molten, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Teleporter, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Jailer, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Shielding, "...");
//plugin.DisplayAffix.Add(MonsterAffix.FireChains, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Nightmarish, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Illusionist, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Poison, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Mortar, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Orbiter, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Thunderstorm, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Avenger, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Horde, "...");
//plugin.DisplayAffix.Add(MonsterAffix.MissileDampening, "...");
//plugin.DisplayAffix.Add(MonsterAffix.Juggernaut, "...");
});
Ps : you know it's not my plugin, right ? ;P
und ersetze die "..." durch die deutschen affixe.
PHP Code:
plugin.DisplayAffix.Add(MonsterAffix.Juggernaut, "Brecher");
und entferne die // damit der code genutzt wird und nicht als kommentar gewertet wird.
greetz gjuz
-
Post Thanks / Like - 1 Thanks
Lagertha (1 members gave Thanks to gjuz for this useful post)
-
Member
Hallo gjuz,
ich danke Dir für Deine Antwort.
Ist es richtig das ich mich bei "github" anmelden muss und dann diese Zeile ( als Beispiel )
Originally Posted by
gjuz
PHP Code:
plugin.DisplayAffix.Add(MonsterAffix.Juggernaut, "Brecher");
greetz gjuz
irgendwo einfügen muss?
Entschuldige meine "noob" fragen, aber ich habe bisher mit den PHP Codes noch nichts gemacht.
I´m sorry for my bad english
-
Contributor
GitHub is not necessary
PHP Code:
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// *.txt files are not loaded automatically by TurboHUD
// you have to change this file's extension to .cs to enable it
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
using System.Collections.Generic;
using Turbo.Plugins.Default;
using Turbo.Plugins.Gigi; //namespace für gigi-elitebarplugin
//andere namespaces einfügen fall nötig
namespace Turbo.Plugins.User //datei in ...Hud/plugins/User/ einfügen
{
public class UserCustom : BasePlugin, ICustomizer
{
public UserCustom() //filename: UserCustom.cs
{
Enabled = true;
}
public override void Load(IController hud)
{
base.Load(hud);
}
public void Customize()
{
//hier Customize einfügen
}
}
}
greetz gjuz
-
Member
Ich danke Dir, aber ich bekomme es einfach nicht hin. Keine Ahnung ob ich zu blöd dafür bin...
Ich denke noch offensichtlicher kann man es ir wohl nicht erklären ohne das es in zu viel Arbeit ausartet.
So sieht es gerade aus.
PluginEnablerOrDisablerPlugin.txt
Ich muss es nicht auf Deutsch haben, wenn Du an mir verzweifelst.
Dennoch danke ich Dir für Deine Geduld.
I´m sorry for my bad english
-
Active Member
Du musst die Dateiendung von txt auf cs ändern.
-
Member
Originally Posted by
bm206
Du musst die Dateiendung von txt auf cs ändern.
Das habe ich gemacht, dann kommt " Turbohud Exceptions 1"
Turbohud funktioniert auch, nur wird es weiter in english angezeigt.
I´m sorry for my bad english
-
Active Member
Und was ist der Fehler? Steht im Ordner logs