Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections.Generic;
- using System.Linq;
- using Turbo.Plugins.Default;
- namespace Turbo.Plugins.WindyForce
- {
- public class GargsMasterPlugin : BasePlugin, IInGameWorldPainter
- {
- public bool ShowInTown { get; set; }
- public WorldDecoratorCollection PlayerGargs { get; set; }
- public WorldDecoratorCollection OtherPlayersGargs { get; set; }
- public HashSet<uint> GargSno = new HashSet<uint>
- {
- 432690, 432691, 432692, 432693, 432694, 122305, 179776, 171491, 179778, 171501, 171502, 179780, 179779, 179772,
- //wd
- 51353, //WD_ZombieDog Zombie Dog //2 rune
- 103215, //WD_ZombieDogRune_fire //4 rune
- 105763, //WD_ZombieDogRune_healthGlobe //0 rune
- 110959, //WD_ZombieDogRune_healthLink //3 rune
- 103235, //WD_ZombieDogRune_lifeSteal //5 rune
- 103217, //WD_ZombieDogRune_poison //1 rune
- 87189, //Fetish_Melee_A Fetish Army //0 //2 //3
- 89934, //Fetish_Skeleton_A //1
- 409656, //Fetish_Melee_fire //4
- 410238, //Fetish_Melee_poison //5
- 409590, //Fetish_Melee_Sycophants //Belt //passive
- //monk male
- 169904, //Monk_male_mysticAlly
- 169905, //Monk_male_mysticAlly_alabaster
- 169906, //Monk_male_mysticAlly_crimson
- 169908, //Monk_male_mysticAlly_golden
- 169907, //Monk_male_mysticAlly_indigo
- 169909, //Monk_male_mysticAlly_obsidian
- //monk female
- 123885, //Monk_female_mysticAlly
- 169891, //Monk_female_mysticAlly_alabaster
- 168878, //Monk_female_mysticAlly_crimson
- 169123, //Monk_female_mysticAlly_golden
- 169890, //Monk_female_mysticAlly_indigo
- 169077, //Monk_female_mysticAlly_obsidian
- //runes active
- 367774, //x1_Monk_female_mysticAllyMini_crimson //feuerVerbündeter
- 363935, //X1_projectile_mystically_runec_boulder //roling stone //OtherPlayersMysticAlly
- //dh
- 133741, //DH_Companion Raven
- 181748, //DH_companion_Boar Boar
- 178664, //DH_Companion_Ferret Ferret
- 159098, //DH_Companion_RuneC Wolf
- 159144, //DH_Companion_RuneE Bat
- 173827, //DH_companion_spider Spider
- //crus
- //nur bogenschützen && leibwächter mit PlayerPhalanx decorator
- 330728, //x1_Crusader_Phalanx3_projectile //no rune
- 369795, //x1_Crusader_PhalanxArcher Avatar of the Order //bogenschützen
- //338598, //x1_Crusader_Phalanx3_addProjectiles //pfeile bogenschützen
- 357358, //x1_Crusader_Phalanx3_projectile_chargers //schildansturm
- 338678, //x1_Crusader_Phalanx3_projectile_horse //stampede
- 338807, //x1_Crusader_Phalanx3_blocker //schildträger
- 345682, //x1_Crusader_Phalanx Avatar of the Order //leibwächter
- 90443, //Barbarian_CallOfTheAncients_1 Talic
- 90535, //Barbarian_CallOfTheAncients_2 Korlic
- 90536, //Barbarian_CallOfTheAncients_3 Madawc
- //3 heads = 3 Sno = 3 circle
- 81515, //Wizard_HydraHead_Arcane_1
- //81231, //Wizard_HydraHead_Arcane_2
- //81232, ///Wizard_HydraHead_Arcane_3
- 83959, //Wizard_HydraHead_Big Fire Hydra
- 80745, //Wizard_HydraHead_Default_1
- //80757, //Wizard_HydraHead_Default_2
- //80758, //Wizard_HydraHead_Default_3
- 325807, //Wizard_HydraHead_fire2_1
- //325813, //Wizard_HydraHead_fire2_2
- //325815, //Wizard_HydraHead_fire2_3
- 82972, //Wizard_HydraHead_Frost_1
- //83024, //Wizard_HydraHead_Frost_2
- //83025, //Wizard_HydraHead_Frost_3
- 82109, //Wizard_HydraHead_Lightning_1
- //81229, //Wizard_HydraHead_Lightning_2
- //81230 //Wizard_HydraHead_Lightning_3
- //Necromancer
- //Command Skeletons P6_Necro_Trait_SkeletonSpawner ID:453793
- 473147, //No Rune
- 473428, //Enforcer Rune
- 473426, //Frenzy Rune
- 473420, //Dark Mending Rune
- 473417, //Freezing Grasps Rune
- 473418, //Kill Command Rune
- //Command Golem P6_Necro_Trait_GolemSpawner ID: 460062
- 471646, //No Rune & Flesh Golem Rune
- 471647, //Ice Golem Rune
- 465239, //Bone Golem Rune
- 471619, //Decay Golem Rune
- 460042, //Blood Golem Rune
- //Skeletal Mage
- 472275, //No Rune
- 472588, //Gift of Death
- 472769, //Contamination Rune
- 472801, //Skeleton Archer Rune
- 472606, //Singularity Rune
- 472715 //Life Support Rune
- };
- public GargsMasterPlugin()
- {
- Enabled = true;
- }
- public override void Load(IController hud)
- {
- base.Load(hud);
- ShowInTown = false;
- PlayerGargs = new WorldDecoratorCollection(
- new MapShapeDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 0, 255, 0, 5),
- ShapePainter = new CircleShapePainter(Hud),
- Radius = 2f,
- },
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 0, 255, 0, 5),
- Radius = 4f
- });
- OtherPlayersGargs = new WorldDecoratorCollection(
- new MapShapeDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 255, 0, 0, 5),
- ShapePainter = new CircleShapePainter(Hud),
- Radius = 2f,
- },
- new GroundCircleDecorator(Hud)
- {
- Brush = Hud.Render.CreateBrush(255, 255, 0, 0, 5),
- Radius = 4f
- });
- }
- public void PaintWorld(WorldLayer layer)
- {
- if (Hud.Game.IsInGame && !(Hud.Game.Me.IsInTown && !ShowInTown))
- {
- var player = Hud.Game.Me;
- var actors = Hud.Game.Actors.Where(a => GargSno.Contains(a.SnoActor.Sno));
- foreach (var actor in actors)
- {
- if (actor.SummonerAcdDynamicId == player.SummonerId)
- PlayerGargs.Paint(layer, actor, actor.FloorCoordinate, "");
- /*else
- OtherPlayersGargs.Paint(layer, actor, actor.FloorCoordinate, ""); */
- }
- }
- }
- } // class
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement