Advertisement
Guest User

Untitled

a guest
Aug 11th, 2018
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.67 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. Hud.RunOnPlugin<Prrovoss.Popups.ActorAppearedPopup>(plugin =>
  30. {
  31. //sno, name, hint, title, duration (ins ms), custom decorator (ignore if not needed)
  32. plugin.Add(345935, "Normal Rift", "", "Portal open", 5000);
  33. plugin.Add(330698, "Shield Pylon", "", "Appeared", 5000);
  34. plugin.Add(330697, "Channeling Pylon", "", "Appeared", 5000);
  35. plugin.Add(330695, "Power Pylon", "", "Appeared", 5000);
  36. plugin.Add(398654, "Conduit Pylon", "", "Appeared", 5000);
  37. });
  38.  
  39. Hud.RunOnPlugin<Prrovoss.Popups.BuffAppliedPopup>(plugin =>
  40. {
  41. //sno, icon, name, hint, title, duration (in ms), custom decorator (ignore if not needed)
  42. plugin.Add(465952, 1, "Final Service", "", "Buff activated", 6000);
  43. plugin.Add(262935, 0, "Power Pylon", "", "Buff activated", 4000);
  44. plugin.Add(266258, 0, "Channeling Pylon", "", "Buff activated", 4000);
  45. plugin.Add(266254, 0, "Shield Pylon", "", "Buff activated", 4000);
  46. plugin.Add(402461, 2, "Occulus", "", "Buff activated", 3000);
  47. plugin.Add(246562, 1, "Flying Dragon", "", "Buff activated", 3000);
  48. });
  49.  
  50. Hud.RunOnPlugin<Prrovoss.Popups.MonsterAppearedPopup>(plugin =>
  51. {
  52. //sno, name, hint, title, duration (in ms), custom decorator (ignore if not needed)
  53. plugin.Add(451002, "Sir William", "", "Appeared", 5000);
  54. plugin.Add(450999, "Princess Lilian", "", "Appeared", 5000);
  55. });
  56.  
  57. Hud.RunOnPlugin<Prrovoss.Popups.ItemDroppedPopup>(plugin =>
  58. {
  59. var LegendaryDecorator = new TopLabelWithTitleDecorator(Hud)
  60. {
  61. BorderBrush = Hud.Render.CreateBrush(255, 180, 147, 109, -1),
  62. BackgroundBrush = Hud.Render.CreateBrush(200, 91, 55, 19, 0),
  63. TextFont = Hud.Render.CreateFont("tahoma", 8, 255, 255, 255, 255, true, false, false),
  64. TitleFont = Hud.Render.CreateFont("tahoma", 6, 255, 180, 147, 109, true, false, false),
  65. };
  66.  
  67. var AncientDecorator = new TopLabelWithTitleDecorator(Hud)
  68. {
  69. BorderBrush = Hud.Render.CreateBrush(255, 183, 132, 21, 5),
  70. BackgroundBrush = Hud.Render.CreateBrush(200, 91, 55, 19, 0),
  71. TextFont = Hud.Render.CreateFont("tahoma", 8, 255, 255, 255, 255, true, false, false),
  72. TitleFont = Hud.Render.CreateFont("tahoma", 6, 255, 180, 147, 109, true, false, false),
  73. };
  74.  
  75. var PrimalDecorator = new TopLabelWithTitleDecorator(Hud)
  76. {
  77. BorderBrush = Hud.Render.CreateBrush(255, 183, 22, 32, 5),
  78. BackgroundBrush = Hud.Render.CreateBrush(200, 91, 55, 19, 0),
  79. TextFont = Hud.Render.CreateFont("tahoma", 8, 255, 255, 255, 255, true, false, false),
  80. TitleFont = Hud.Render.CreateFont("tahoma", 6, 255, 180, 147, 109, true, false, false),
  81. };
  82.  
  83. //sno (put null if not needed), itemQuality (put null if not needed), ancientRank (put null if not needed), hint, title, duration (in ms), custom decorator (ignore if not needed)
  84. plugin.Add(null, ItemQuality.Legendary, 0, "", "Legendary dropped", 5000, LegendaryDecorator);
  85. plugin.Add(null, ItemQuality.Legendary, 1, "", "Ancient dropped", 9000, AncientDecorator);
  86. plugin.Add(null, ItemQuality.Legendary, 2, "", "Primal dropped", 15000, PrimalDecorator);
  87. });
  88. }
  89.  
  90. }
  91.  
  92. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement