Convention of Elements position for current player on top of char menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    Stormreaver's Avatar Contributor
    Reputation
    152
    Join Date
    Jul 2012
    Posts
    290
    Thanks G/R
    40/136
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Just use this in customize( ) method:

    Code:
    Hud.RunOnPlugin<PlayerBottomBuffListPlugin>(plugin =>
       {
    
    		/*
    		Convention of Elements Ring cycle per class (4s each), corresponding IconIndex:
    		1 Arcane, 2 Cold, 3 Fire, 4 Holy, 5 Lightning, 6 Physical, 7 Poison
    				
    		BARB (4):	Cold, Fire, Lightning, Physical
    		CRUS (4):	Fire, Holy, Lightning, Physical
    		MONK (5):	Cold, Fire, Holy, Lightning, Physical
    		DH   (4):	Cold, Fire, Lightning, Physical
    		WD   (4):	Cold, Fire, Physical, Poison
    		WIZ  (4):	Arcane, Cold, Fire, Lightning
    		NEC  (3):	Cold, Physical, Poison
    		*/
    
          		// COE: ALL
    	plugin.RuleCalculator.Rules.Add(new BuffRule(430674) {
    		IconIndex = null, MinimumIconCount = 1, ShowTimeLeft = true, IconSizeMultiplier = IS1, });
    			
    		// COE: Cold only
    	plugin.RuleCalculator.Rules.Add(new BuffRule(430674) {
    		 IconIndex = 2, MinimumIconCount = 1, ShowTimeLeft = true, IconSizeMultiplier = IS1, });
    	
    		// COE: Fire only
    	plugin.RuleCalculator.Rules.Add(new BuffRule(430674) {
    		IconIndex = 3, MinimumIconCount = 1, ShowTimeLeft = true, IconSizeMultiplier = IS1, });
    			
    		// COE: Lightning only
    	plugin.RuleCalculator.Rules.Add(new BuffRule(430674) {
    		IconIndex = 5, MinimumIconCount = 1, ShowTimeLeft = true, IconSizeMultiplier = IS1, });
    
       }
    Included are some examples, just chose the ones u want
    Last edited by Stormreaver; 09-07-2017 at 10:14 PM.

    Convention of Elements position for current player on top of char
  2. #17
    JarekCz's Avatar Member
    Reputation
    1
    Join Date
    Jun 2017
    Posts
    5
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I get exceptions that ")" and ";" are missing. But when I try to put them after last bracket from your code, I get even more errors.
    Can you help? Sorry, I'm a lousy programmer My PluginEnablerOrDisablerPlugin.cs looks like that:

    public void Customize()
    {
    Hud.RunOnPlugin<PlayerBottomBuffListPlugin>(plugin =>
    {

    /*
    Convention of Elements Ring cycle per class (4s each), corresponding IconIndex:
    1 Arcane, 2 Cold, 3 Fire, 4 Holy, 5 Lightning, 6 Physical, 7 Poison

    BARB (4): Cold, Fire, Lightning, Physical
    CRUS (4): Fire, Holy, Lightning, Physical
    MONK (5): Cold, Fire, Holy, Lightning, Physical
    DH (4): Cold, Fire, Lightning, Physical
    WD (4): Cold, Fire, Physical, Poison
    WIZ (4): Arcane, Cold, Fire, Lightning
    NEC (3): Cold, Physical, Poison
    */


    // COE: Lightning only
    RuleCalculator.Rules.Add(new BuffRule(430674) {
    IconIndex = 5, MinimumIconCount = 1, ShowTimeLeft = true, IconSizeMultiplier = IS1, });

    } //Hud.RunOnPlugin
    } //public void Customize()
    } //public class PluginEnablerOrDisablerPlugin
    } //namespace Turbo.Plugins.User

  3. #18
    Stormreaver's Avatar Contributor
    Reputation
    152
    Join Date
    Jul 2012
    Posts
    290
    Thanks G/R
    40/136
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Try this:
    Code:
    public void Customize()
    {
    	
    	Hud.RunOnPlugin<PlayerBottomBuffListPlugin>(plugin =>
    	{
    
    		/*
    		Convention of Elements Ring cycle per class (4s each), corresponding IconIndex:
    		1 Arcane, 2 Cold, 3 Fire, 4 Holy, 5 Lightning, 6 Physical, 7 Poison
    
    		BARB (4):	Cold, Fire, Lightning, Physical
    		CRUS (4):	Fire, Holy, Lightning, Physical
    		MONK (5):	Cold, Fire, Holy, Lightning, Physical
    		DH (4):	Cold, Fire, Lightning, Physical
    		WD (4):	Cold, Fire, Physical, Poison
    		WIZ (4):	Arcane, Cold, Fire, Lightning
    		NEC (3):	Cold, Physical, Poison
    		*/
    		
    		// COE: Lightning only
    		plugin.RuleCalculator.Rules.Add(new BuffRule(430674) {
    		IconIndex = 5, MinimumIconCount = 1, ShowTimeLeft = true, IconSizeMultiplier = 1.0f, });
    		
    	});
    }
    Last edited by Stormreaver; 09-07-2017 at 10:11 PM.

  4. #19
    JarekCz's Avatar Member
    Reputation
    1
    Join Date
    Jun 2017
    Posts
    5
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Now it says it cannot find „RuleCalculator” in current context.
    I have a feeling I'm missing some basics.

    Should I do anything else except renaming file from .txt to .cs?

    Entire file looks like that:

    Code:
    using Turbo.Plugins.Default;
    namespace Turbo.Plugins.User
    {
    
        public class PluginEnablerOrDisablerPlugin : BasePlugin, ICustomizer
        {
    
            public PluginEnablerOrDisablerPlugin()
            {
                Enabled = true;
            }
    
            public override void Load(IController hud)
            {
                base.Load(hud);
            }
    
    public void Customize()
    {
    	
    	Hud.RunOnPlugin<PlayerBottomBuffListPlugin>(plugin =>
    	{
    
    		/*
    		Convention of Elements Ring cycle per class (4s each), corresponding IconIndex:
    		1 Arcane, 2 Cold, 3 Fire, 4 Holy, 5 Lightning, 6 Physical, 7 Poison
    
    		BARB (4):	Cold, Fire, Lightning, Physical
    		CRUS (4):	Fire, Holy, Lightning, Physical
    		MONK (5):	Cold, Fire, Holy, Lightning, Physical
    		DH (4):	Cold, Fire, Lightning, Physical
    		WD (4):	Cold, Fire, Physical, Poison
    		WIZ (4):	Arcane, Cold, Fire, Lightning
    		NEC (3):	Cold, Physical, Poison
    		*/
    		
    		// COE: Lightning only
    		RuleCalculator.Rules.Add(new BuffRule(430674) {
    		IconIndex = 5, MinimumIconCount = 1, ShowTimeLeft = true, IconSizeMultiplier = 1.0f, });
    		
    	}); //Hud.RunOnPlugin<PlayerBottomBuffListPlugin>(plugin =>
    
    } //public void Customize()
    } //public class PluginEnablerOrDisablerPlugin : BasePlugin, ICustomizer
    } //namespace Turbo.Plugins.User

  5. #20
    Stormreaver's Avatar Contributor
    Reputation
    152
    Join Date
    Jul 2012
    Posts
    290
    Thanks G/R
    40/136
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Try the code now.
    The word plugin. was missing before
    Code:
    RuleCalculator.Rules.Add(new BuffRule(79528)
    :P
    Last edited by Stormreaver; 09-07-2017 at 10:15 PM.

  6. Thanks JarekCz (1 members gave Thanks to Stormreaver for this useful post)
  7. #21
    JarekCz's Avatar Member
    Reputation
    1
    Join Date
    Jun 2017
    Posts
    5
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, it works now.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. disabling tbc for every player?
    By blackadder9 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 01-28-2008, 02:00 PM
  2. [List] Handy Docs for New Players and Others!
    By latruwski in forum World of Warcraft Guides
    Replies: 0
    Last Post: 11-10-2007, 02:50 PM
  3. [GUIDE]Nice cash for alliance players
    By shadowfox47 in forum World of Warcraft Guides
    Replies: 8
    Last Post: 10-06-2007, 01:17 PM
  4. Reputation Calculator for EU players.
    By Enfeebleness in forum World of Warcraft General
    Replies: 11
    Last Post: 08-17-2007, 07:19 PM
  5. How to World PvP on a PvE server for New players
    By Ðeception in forum World of Warcraft Guides
    Replies: 7
    Last Post: 12-20-2006, 10:00 PM
All times are GMT -5. The time now is 04:01 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