How can I make alterations to StandardMonsterPlugin? menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Joker3060's Avatar Member
    Reputation
    1
    Join Date
    Nov 2020
    Posts
    4
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can I make alterations to StandardMonsterPlugin?

    Hey,

    I'm finally getting around to customizing TH and am running into a small challenge.

    I'd like to alter StandardMonsterPlugin so that the color for Juggernaut elites is red.
    I know i need my own EliteJuggernautDecorator and alter PaintWorld to use it.

    But how i get form an AliveMonsters to the MonsterAffix.Juggernaut?
    Is there a documentation of the AliveMonnster class somewher?

    Next step would then to make a plugin out of this.... in case somebody wants to help with this right away as well

    Thanks,
    Joker

    How can I make alterations to StandardMonsterPlugin?
  2. #2
    RNN's Avatar Legendary
    Reputation
    837
    Join Date
    Sep 2018
    Posts
    1,102
    Thanks G/R
    107/799
    Trade Feedback
    0 (0%)
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    There is no manual or documentation, we have all learned by consulting the interfaces\ folder, doing many tests, and analyzing the code of other plugins: fortunately TH includes many, they are a base, a reference on how to program them, but also take a look at other plugins, for this case i recommend MonsterCirclePlugin (CB), EliteBarPlugin (Gigi) , DangerousAffixMonsterPlugin (Jack) ..

    You must use Rarity y AffixSnoList (IMonster)

    Code:
    	foreach (var monster in Hud.Game.AliveMonsters)
    	{
    		if (monster.Rarity == ActorRarity.Rare)   // Elite 
    		{
    			if (monster.AffixSnoList.Any(a => a.Affix == MonsterAffix.Juggernaut))  // Jugger
    			{
    				DECORATORJUGGER.Paint(layer, monster, monster.FloorCoordinate, string.Empty); 
    			}				
    		}
    	}
    Last edited by RNN; 11-15-2020 at 09:08 AM.

  3. #3
    Joker3060's Avatar Member
    Reputation
    1
    Join Date
    Nov 2020
    Posts
    4
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot

    Yeah - I've been looking at plugins from you and Gigi.. But I've never used the lamba-expression stuff and these are my very first lines in C#, so I'm struggling on all ends

    I copied and renamed the altered plugin and deactivated the "old" version in the customize function.
    is there a more elegant way then copy-pasting existing code that you could point me towards ?
    (it seemed to me that this is the same thing you are doing in OtherShrinePlugin... but maybe I'm missing something)

  4. #4
    RNN's Avatar Legendary
    Reputation
    837
    Join Date
    Sep 2018
    Posts
    1,102
    Thanks G/R
    107/799
    Trade Feedback
    0 (0%)
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Joker3060 View Post
    I copied and renamed the altered plugin and deactivated the "old" version in the customize function.
    It depends on how many things or what you want to change. Sometimes it is enough to disable or redefine a part using custom code.

    Originally Posted by Joker3060 View Post
    it seemed to me that this is the same thing you are doing in OtherShrinePlugin... but maybe I'm missing something
    yes that's what i did in that plugin

Similar Threads

  1. Replies: 0
    Last Post: 08-18-2014, 07:53 PM
  2. How can i make custom items
    By silviu2008 in forum World of Warcraft General
    Replies: 1
    Last Post: 09-14-2007, 04:51 AM
  3. How can i make a repack?
    By lilsavalex in forum World of Warcraft General
    Replies: 5
    Last Post: 05-12-2007, 09:04 PM
  4. How can I get glider to bandage?
    By lohkies in forum World of Warcraft General
    Replies: 1
    Last Post: 03-26-2007, 10:55 AM
  5. How can i make an edit fully textured
    By Airisus in forum WoW ME Questions and Requests
    Replies: 3
    Last Post: 01-20-2007, 07:48 AM
All times are GMT -5. The time now is 03:03 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search