[v7.2] [INTERNATIONAL] [glq] ZeiCircleForBoss menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    SeaDragon's Avatar Contributor
    Reputation
    321
    Join Date
    Aug 2016
    Posts
    1,041
    Thanks G/R
    140/299
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ADV2015 View Post
    Hi,

    Small request

    I would like to have the same thing constantly around me and in fine line and only during a GR
    Can you add this in your plugins like PluginsConfig.cs

    Tk
    I think this is another plugin

    [v7.2] [INTERNATIONAL] [glq] ZeiCircleForBoss
  2. Thanks ADV2015 (1 members gave Thanks to SeaDragon for this useful post)
  3. #17
    User5981's Avatar First Dev On The Internet
    Reputation
    379
    Join Date
    Aug 2017
    Posts
    765
    Thanks G/R
    30/358
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ADV2015 View Post
    Hi,

    Small request

    I would like to have the same thing constantly around me and in fine line and only during a GR
    Can you add this in your plugins like PluginsConfig.cs

    Tk
    I didn't see your post but I worked on this today :
    [v7.3] [INTERNATIONAL] [Resu] HuntersVengeancePlugin
    Last edited by User5981; 10-01-2017 at 01:59 AM. Reason: English Grammar
    Supported version for all Resu plugins

  4. Thanks ADV2015 (1 members gave Thanks to User5981 for this useful post)
  5. #18
    ADV2015's Avatar Member
    Reputation
    6
    Join Date
    Mar 2017
    Posts
    94
    Thanks G/R
    147/5
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Perfect !
    Thank you !

  6. #19
    CycoMikeMuir's Avatar Member
    Reputation
    1
    Join Date
    May 2018
    Posts
    13
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by gjuz View Post
    yes it is possible

    PHP Code:
    public void PaintWorld(WorldLayer layer)
    {
        foreach (var 
    monster in Hud.Game.AliveMonsters.Where(=> x.SnoMonster.Priority == MonsterPriority.boss))
        {
            foreach (
    IPlayer player in Hud.Game.Players)
            {
                
    IBuff ZeiStone player.Powers.UsedLegendaryGems.ZeisStoneOfVengeancePrimary;
                if (
    ZeiStone != null && ZeiStone.Active)
                {
                    
    ZeiDecorator.Paint(monstermonster.FloorCoordinatenull);
                    return; 
    //prevent double painting
                
    }
            }
        }

    or you can draw a zei circle around each player who uses it, in boss fight

    greetz gjuz
    I'm new to using THUD and i have been able to modify other plugins but I am unclear where this code goes exactly.
    Does it replace some code in the plugin or is it added? In either case, where exactly?
    Please advise.
    Thank you

  7. #20
    SeaDragon's Avatar Contributor
    Reputation
    321
    Join Date
    Aug 2016
    Posts
    1,041
    Thanks G/R
    140/299
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by CycoMikeMuir View Post
    I'm new to using THUD and i have been able to modify other plugins but I am unclear where this code goes exactly.
    Does it replace some code in the plugin or is it added? In either case, where exactly?
    Please advise.
    Thank you
    replace public void PaintWorld(WorldLayer layer) code in the plugin

  8. #21
    CycoMikeMuir's Avatar Member
    Reputation
    1
    Join Date
    May 2018
    Posts
    13
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried that before and again just now. I get exceptions..

    2018.05.23 20:03:32.620 error while initializing plugins
    2018.05.23 20:03:32.621 c:\Users\Leonidas\Desktop\dresscode\plugins\glq\zeicircleforboss.cs(43,2) : error CS1513: } expected
    2018.05.23 20:03:32.625 c:\Users\Leonidas\Desktop\dresscode\plugins\glq\zeicircleforboss.cs(43,2) : error CS1513: } expected

  9. #22
    SeaDragon's Avatar Contributor
    Reputation
    321
    Join Date
    Aug 2016
    Posts
    1,041
    Thanks G/R
    140/299
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by CycoMikeMuir View Post
    I tried that before and again just now. I get exceptions..

    2018.05.23 20:03:32.620 error while initializing plugins
    2018.05.23 20:03:32.621 c:\Users\Leonidas\Desktop\dresscode\plugins\glq\zeicircleforboss.cs(43,2) : error CS1513: } expected
    2018.05.23 20:03:32.625 c:\Users\Leonidas\Desktop\dresscode\plugins\glq\zeicircleforboss.cs(43,2) : error CS1513: } expected

    Maybe a "}" symbol is missing.
    Try this code, This is a complete plugin code

    Code:
    using System.Linq;
    using Turbo.Plugins.Default;
    
    namespace Turbo.Plugins.glq
    {
        public class GLQ_ZeiCircleForBoss : BasePlugin, IInGameWorldPainter
        {
    		public GroundCircleDecorator ZeiDecorator { get; set; }	
            public GLQ_ZeiCircleForBoss()
            {
                Enabled = true;
            }
    
            public override void Load(IController hud)
            {
                base.Load(hud);
    			
                ZeiDecorator = new GroundCircleDecorator(Hud)
                {
                    Brush = Hud.Render.CreateBrush(255,192,96,0, 1.5f),
                    Radius = 50f
                };
            }
    
            public void PaintWorld(WorldLayer layer)
            {
                foreach (var monster in Hud.Game.AliveMonsters.Where(x => x.SnoMonster.Priority == MonsterPriority.boss))
                {
                    foreach (IPlayer player in Hud.Game.Players)
                    {
                        IBuff ZeiStone = player.Powers.UsedLegendaryGems.ZeisStoneOfVengeancePrimary;
                        if (ZeiStone != null && ZeiStone.Active)
                        {
                            ZeiDecorator.Paint(monster, monster.FloorCoordinate, null);
                            return; //prevent double painting 
                        }
                    }
                }
            }
    
        }
    
    }
    Last edited by SeaDragon; 05-24-2018 at 02:47 PM.

  10. Thanks CycoMikeMuir (1 members gave Thanks to SeaDragon for this useful post)
  11. #23
    CycoMikeMuir's Avatar Member
    Reputation
    1
    Join Date
    May 2018
    Posts
    13
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yep, that did it.
    Thank you

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [INTERNATIONAL] [glq] MonstersCountPlugin
    By SeaDragon in forum TurboHUD Community Plugins
    Replies: 120
    Last Post: 11-12-2022, 06:50 PM
  2. [v7.2] [INTERNATIONAL] [glq] MonsterRiftProgressionPlugin
    By SeaDragon in forum TurboHUD Community Plugins
    Replies: 23
    Last Post: 09-07-2021, 04:46 AM
  3. International Talk Like a Pirate Day!
    By Loveshock in forum Community Chat
    Replies: 13
    Last Post: 09-20-2007, 12:11 PM
  4. International Rules to Calling Shotgun
    By matswurld in forum Community Chat
    Replies: 1
    Last Post: 05-18-2007, 08:37 PM
  5. President Bush, CAUGHT SWEARING at international meeting
    By mantalcore in forum Community Chat
    Replies: 15
    Last Post: 08-14-2006, 09:41 AM
All times are GMT -5. The time now is 12:00 AM. 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