AlternateSkillBar menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 16 of 16
  1. #16
    RNN's Avatar Legendary
    Reputation
    813
    Join Date
    Sep 2018
    Posts
    1,056
    Thanks G/R
    104/776
    Trade Feedback
    0 (0%)
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    JarJar tries to change this code of your plugin

    Code:
    	
    	if (buff.TimeLeftSeconds[0] == 0 && buff.TimeLeftSeconds[1] == 0 && buff.TimeLeftSeconds[2] == 0)
    	{
    		if (skill.SnoPower.Sno == Hud.Sno.SnoPowers.Wizard_StormArmor.Sno)
    		{
    			remainingSeconds = buff.TimeLeftSeconds[3];     // At least one rune uses "extra" slot!
    		}
    	}
    	else
    	{
    		remainingSeconds = Math.Max(buff.TimeLeftSeconds[0], Math.Max(buff.TimeLeftSeconds[1], buff.TimeLeftSeconds[2]));
    	}
    for this one
    Code:
    	for (int i = 0; i < buff.TimeLeftSeconds.Length ;i++) 
    	{
    		if (buff.TimeLeftSeconds[i] > remainingSeconds) 
    			remainingSeconds = buff.TimeLeftSeconds[i]; 
    	}
    buff.TimeLeftSeconds has a length that a priori is unknown and the value you are looking for can be in any position and now just look at 0, 1 and 2

    An alternative I will try later is: find the first value greater than zero

    Looking at how you did it, I managed to include the remaining time of the skills on the original bar

    Last edited by RNN; 08-22-2019 at 12:17 PM.

    AlternateSkillBar
Page 2 of 2 FirstFirst 12
All times are GMT -5. The time now is 04:39 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