Advertisement
Guest User

Untitled

a guest
Jan 19th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  2. // *.txt files are not loaded automatically by TurboHUD
  3. // you have to change this file's extension to .cs to enable it
  4. // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  5.  
  6. using Turbo.Plugins.Default;
  7.  
  8. namespace Turbo.Plugins.User
  9. {
  10.  
  11. public class PluginEnablerOrDisablerPlugin : BasePlugin, ICustomizer
  12. {
  13.  
  14. public PluginEnablerOrDisablerPlugin()
  15. {
  16. Enabled = true;
  17. }
  18.  
  19. public override void Load(IController hud)
  20. {
  21. base.Load(hud);
  22. }
  23.  
  24. // "Customize" methods are automatically executed after every plugin is loaded.
  25. // So these methods can use Hud.GetPlugin<class> to access the plugin instances' public properties (like decorators, Enabled flag, parameters, etc)
  26. // Make sure you test the return value against null!
  27. public void Customize()
  28. {
  29.  
  30. Hud.GetPlugin<PlayerSkillPlugin>().Enabled = false;
  31.  
  32. Hud.TogglePlugin<ParagonCapturePlugin>(false);
  33.  
  34. Hud.RunOnPlugin<PlayerBottomBuffListPlugin>(plugin =>
  35. {
  36.  
  37. /*
  38. Convention of Elements Ring cycle per class (4s each), corresponding IconIndex:
  39. 1 Arcane, 2 Cold, 3 Fire, 4 Holy, 5 Lightning, 6 Physical, 7 Poison
  40.  
  41. BARB (4): Cold, Fire, Lightning, Physical
  42. CRUS (4): Fire, Holy, Lightning, Physical
  43. MONK (5): Cold, Fire, Holy, Lightning, Physical
  44. DH (4): Cold, Fire, Lightning, Physical
  45. WD (4): Cold, Fire, Physical, Poison
  46. WIZ (4): Arcane, Cold, Fire, Lightning
  47. NEC (3): Cold, Physical, Poison
  48. */
  49.  
  50. // COE: Lightning only
  51. plugin.RuleCalculator.Rules.Add(new BuffRule(430674) {
  52. IconIndex = null, MinimumIconCount = 1, ShowTimeLeft = true, IconSizeMultiplier = 1.0f, });
  53. });
  54. }
  55.  
  56. }
  57.  
  58. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement