Advertisement
Styckz

AdditionalMonsterSkills

Jul 29th, 2017
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 9.50 KB | None | 0 0
  1. using Turbo.Plugins.Default;
  2.  
  3. namespace Turbo.Plugins.Styckz
  4. {
  5.     public class AdditionalMonsterSkills : BasePlugin, IInGameWorldPainter
  6.     {
  7.  
  8.         public WorldDecoratorCollection RGTornadoDecorator { get; set; }
  9.         public WorldDecoratorCollection RGAoEPoisonDecorator { get; set; }
  10.         public WorldDecoratorCollection RGFirePentagrampDecorator { get; set; }
  11.         public WorldDecoratorCollection RGDangerousSkillspDecorator { get; set; }
  12.         public WorldDecoratorCollection RGRimeSmallDecorator { get; set; }
  13.         public WorldDecoratorCollection RGRimeBigDecorator { get; set; }
  14.         public WorldDecoratorCollection DiabloRingOfFireDecorator { get; set; }
  15.         public WorldDecoratorCollection MaghdaPunishDecorator { get; set; }
  16.         public WorldDecoratorCollection ZKSlowTimeDecorator { get; set; }
  17.  
  18.         public WorldDecoratorCollection BruteLeapDecorator { get; set; }
  19.         public WorldDecoratorCollection Projectiles1Decorator { get; set; }
  20.         public WorldDecoratorCollection Projectiles2Decorator { get; set; }
  21.         public WorldDecoratorCollection WoodWraithSporeEmitterDecorator { get; set; }
  22.         public WorldDecoratorCollection WoodWraithSporeDecorator { get; set; }
  23.         public WorldDecoratorCollection MorluMeteorDecorator { get; set; }
  24.         public WorldDecoratorCollection ExplodingMaggotDecorator { get; set; }
  25.         public WorldDecoratorCollection ElementalProjectile1Decorator { get; set; }
  26.         public WorldDecoratorCollection BogBearTrapDecorator { get; set; }
  27.  
  28.         public AdditionalMonsterSkills()
  29.         {
  30.             Enabled = true;
  31.         }
  32.  
  33.         public override void Load(IController hud)
  34.         {
  35.             base.Load(hud);
  36.  
  37.             RGTornadoDecorator = new WorldDecoratorCollection(
  38.                 new GroundCircleDecorator(Hud)
  39.                 {
  40.                     Brush = Hud.Render.CreateBrush(160, 181, 100, 57, 2, SharpDX.Direct2D1.DashStyle.Dash),
  41.                     Radius = 10f,
  42.                 }
  43.             );
  44.            
  45.             RGAoEPoisonDecorator = new WorldDecoratorCollection(
  46.                 new GroundCircleDecorator(Hud)
  47.                 {
  48.                     Brush = Hud.Render.CreateBrush(160, 70, 109, 0, 2, SharpDX.Direct2D1.DashStyle.Dash),
  49.                     Radius = 10f,
  50.                 }
  51.             );
  52.                
  53.             RGFirePentagrampDecorator = new WorldDecoratorCollection(
  54.                 new GroundCircleDecorator(Hud)
  55.                 {
  56.                     Brush = Hud.Render.CreateBrush(100, 191, 86, 8, 4, SharpDX.Direct2D1.DashStyle.Dash),
  57.                     Radius = 10f,
  58.                 }
  59.             );
  60.                
  61.             RGDangerousSkillspDecorator = new WorldDecoratorCollection(
  62.                 new GroundCircleDecorator(Hud)
  63.                 {
  64.                     Brush = Hud.Render.CreateBrush(160, 255, 50, 50, 2, SharpDX.Direct2D1.DashStyle.Dash),
  65.                     Radius = 20f,
  66.                 }
  67.             );
  68.                
  69.             RGRimeSmallDecorator = new WorldDecoratorCollection(
  70.                 new GroundCircleDecorator(Hud)
  71.                 {
  72.                     Brush = Hud.Render.CreateBrush(100, 121, 146, 186, 2, SharpDX.Direct2D1.DashStyle.Dash),
  73.                     Radius = 12f,
  74.                 }
  75.             );
  76.                
  77.             RGRimeBigDecorator = new WorldDecoratorCollection(
  78.                 new GroundCircleDecorator(Hud)
  79.                 {
  80.                     Brush = Hud.Render.CreateBrush(100, 121, 146, 186, 2, SharpDX.Direct2D1.DashStyle.Dash),
  81.                     Radius = 22f,
  82.                 }
  83.             );
  84.                
  85.             DiabloRingOfFireDecorator = new WorldDecoratorCollection(
  86.                 new GroundCircleDecorator(Hud)
  87.                 {
  88.                     Brush = Hud.Render.CreateBrush(160, 191, 86, 8, 3, SharpDX.Direct2D1.DashStyle.Dash),
  89.                     Radius = 15f,
  90.                 }
  91.             );
  92.                
  93.             MaghdaPunishDecorator = new WorldDecoratorCollection(
  94.                 new GroundCircleDecorator(Hud)
  95.                 {
  96.                     Brush = Hud.Render.CreateBrush(160, 255, 50, 50, 2, SharpDX.Direct2D1.DashStyle.Dash),
  97.                     Radius = 0.8f,
  98.                 }
  99.             );
  100.                
  101.             ZKSlowTimeDecorator = new WorldDecoratorCollection(
  102.                 new GroundCircleDecorator(Hud)
  103.                 {
  104.                     Brush = Hud.Render.CreateBrush(160, 255, 50, 50, 2, SharpDX.Direct2D1.DashStyle.Dash),
  105.                     Radius = 20f,
  106.                 }
  107.             );
  108.  
  109.             BruteLeapDecorator = new WorldDecoratorCollection(
  110.                 new GroundCircleDecorator(Hud)
  111.                 {
  112.                     Brush = Hud.Render.CreateBrush(220, 255, 50, 50, 3, SharpDX.Direct2D1.DashStyle.Dash),
  113.                     Radius = 15f,
  114.                 }
  115.             );
  116.  
  117.             Projectiles1Decorator = new WorldDecoratorCollection(
  118.                 new GroundCircleDecorator(Hud)
  119.                 {
  120.                     Brush = Hud.Render.CreateBrush(200, 157, 207, 48, 0),
  121.                     Radius = 0.3f,
  122.                 }
  123.             );
  124.  
  125.             Projectiles2Decorator = new WorldDecoratorCollection(
  126.                 new GroundCircleDecorator(Hud)
  127.                 {
  128.                     Brush = Hud.Render.CreateBrush(200, 157, 207, 48, 0),
  129.                     Radius = 0.5f,
  130.                 }
  131.             );
  132.             WoodWraithSporeDecorator = new WorldDecoratorCollection(
  133.                 new GroundCircleDecorator(Hud)
  134.                 {
  135.                     Brush = Hud.Render.CreateBrush(160, 189, 192, 67, 2, SharpDX.Direct2D1.DashStyle.Dash),
  136.                     Radius = 5f,
  137.                 }
  138.             );
  139.             MorluMeteorDecorator = new WorldDecoratorCollection(
  140.                 new GroundCircleDecorator(Hud)
  141.                 {
  142.                     Brush = Hud.Render.CreateBrush(100, 191, 86, 8, 4, SharpDX.Direct2D1.DashStyle.Dash),
  143.                     Radius = 20f,
  144.                 }
  145.             );
  146.             ExplodingMaggotDecorator = new WorldDecoratorCollection(
  147.                 new GroundCircleDecorator(Hud)
  148.                 {
  149.                     Brush = Hud.Render.CreateBrush(160, 255, 255, 0, 2, SharpDX.Direct2D1.DashStyle.Dash),
  150.                     Radius = 3f,
  151.                 }
  152.             );
  153.         }
  154.  
  155.         public void PaintWorld(WorldLayer layer)
  156.         {
  157.             var actors = Hud.Game.Actors;
  158.             foreach (var actor in actors)
  159.             {
  160.                 switch (actor.SnoActor.Sno)
  161.                 {
  162.                     case 289827:
  163.                         BruteLeapDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  164.                         break;
  165.                     case 312942:
  166.                     case 5212:
  167.                     case 5215:
  168.                     case 337030:
  169.                     case 323212:
  170.                     case 368392:
  171.                     case 120957:
  172.                         Projectiles1Decorator.Paint(layer, actor, actor.FloorCoordinate, null);
  173.                         break;
  174.                     case 353256:
  175.                     case 349564:
  176.                         Projectiles2Decorator.Paint(layer, actor, actor.FloorCoordinate, null);
  177.                         break;
  178.                     case 5482:
  179.                         WoodWraithSporeDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  180.                         break;
  181.                     case 159369:
  182.                     case 159368:
  183.                     case 159367:
  184.                         MorluMeteorDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  185.                         break;
  186.                     case 254175:
  187.                         ExplodingMaggotDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  188.                         break;
  189.                     case 139741:
  190.                         RGTornadoDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  191.                         break;
  192.                     case 360046:
  193.                         RGAoEPoisonDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  194.                         break;
  195.                     case 159163:
  196.                     case 359693:
  197.                         RGFirePentagrampDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  198.                         break;
  199.                     case 93837:
  200.                     case 368453:
  201.                     case 374732:
  202.                     case 3026:
  203.                     case 378237:
  204.                         RGDangerousSkillspDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  205.                         break;
  206.                     case 359703:
  207.                         RGRimeSmallDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  208.                         break;
  209.                     case 363356:
  210.                         RGDangerousSkillspDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  211.                         break;
  212.                     case 226350:
  213.                         DiabloRingOfFireDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  214.                         break;
  215.                     case 278340:
  216.                         MaghdaPunishDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  217.                         break;
  218.                     case 185924:
  219.                         ZKSlowTimeDecorator.Paint(layer, actor, actor.FloorCoordinate, null);
  220.                         break;
  221.                 }
  222.             }
  223.         }
  224.  
  225.     }
  226.  
  227. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement