1. #15541
    Quote Originally Posted by Uzkin View Post
    Another WA question:

    Is it possible to create a progress bar for a cooldown such that the bar remains full until 20 seconds of cooldown remaining, then depletes the usual way from 20 to 0?
    Well, you can do something like this:
    1. Make one texture bar that is active for CD > 20sec. and Make a second progress bar that replaces that bar when CD <= 20sec.

    There are probably more "elegant" solutions to this via LUA, this is just newbies resolution to what you need.

  2. #15542
    Bloodsail Admiral Uzkin's Avatar
    Join Date
    Jan 2011
    Location
    Finland
    Posts
    1,238
    Quote Originally Posted by Gurg View Post
    Well, you can do something like this:
    1. Make one texture bar that is active for CD > 20sec. and Make a second progress bar that replaces that bar when CD <= 20sec.

    There are probably more "elegant" solutions to this via LUA, this is just newbies resolution to what you need.
    Thanks, but I couldn't get that to work the way I wanted. Say, I want to track the final 20 seconds of a 3 min cooldown. Now when I define the latter bar to appear when CD <= 20 sec, the bar isn't completely filled when it appears -- as I would like -- but, instead, WA displays a full 3-min bar with the last 20 secs filled (i.e. only 11% of the bar is filled).

  3. #15543
    Quote Originally Posted by Healzerbot View Post
    I have a picture saved but can't upload, I only have the option to link via url.

    - - - Updated - - -

    Here's the addon with the CD's next to the unit frames.



    https://ibb.co/Dzrzs5z
    https://wago.io/r14U746B7 and https://wago.io/M3N3WBg0D

  4. #15544
    Quote Originally Posted by Gurg View Post
    Well, you can do something like this:
    1. Make one texture bar that is active for CD > 20sec. and Make a second progress bar that replaces that bar when CD <= 20sec.

    There are probably more "elegant" solutions to this via LUA, this is just newbies resolution to what you need.
    Lol, basically yes.

    Create a bar that tracks said CD, but set min/max values to 0 and 20 respectively. If you do this, if the value is > max then the bar just stays full, and starts depleting when the values goes below 20.

    It's not elegant, it's literally basic functionality.
    You tried, and you failed. What have you learned? That's better not to try at all.

  5. #15545
    I really like the nameplates they're using in the awc cast. Does anyone know of something that looks like this? I assume it isn't an addon but something they have just for this...


  6. #15546
    Bloodsail Admiral Moggie's Avatar
    Join Date
    Aug 2010
    Location
    Boston, MA
    Posts
    1,144
    Quote Originally Posted by Vyse View Post
    Anyone knows the name of the unit frame texture? Its from Caith UI




    I know one is CathUI (least I believe it), possibly the other as well.

  7. #15547
    Is it possible to send trade messages in recurrent timer? Below is my code (well atleast important part) and it seems that `SendChatMessage(msg, "CHANNEL", nil, channelId);` generates an error if setup for trade. It works with officer chat for example.

    I also tried with `wowlua` addon (skipping the timer part) and it worked for trade channel.

    So I wonder if trade is protected from timers for spam purposes.

    The error message is below code.

    Code:
    function timerRepeatRecruitMessage()
    	local tickSeconds = 5*60;
    	local channelId, channelName = GetChannelName("Trade");	
    	local msg = GetMacroBody("GUILD");
    
    	if (not isNullOrWhitespace(msg)) then
    		msg = strsub(msg, 4); -- remove `/2 `
    	end
    
    	if myaddon.recruitTimer == nil then
    		myaddon.recruitTimer = C_Timer.NewTicker(tickSeconds, timerRepeatRecruitMessage, nil);
    	end
    
    	if myaddon.recruitNext == nil or time() >= myaddon.recruitNext then
    
    		if (not isNullOrWhitespace(msg)) then
    			print('== SEND');
    
    			SendChatMessage(msg, "CHANNEL", nil, channelId);
    		end
    		myaddon.recruitNext = time() + tickSeconds;
    	end
    end
    Code:
    4x [ADDON_ACTION_BLOCKED] AddOn 'MyAddon' tried to call the protected function 'UNKNOWN()'.
    [string "@!BugGrabber\BugGrabber.lua"]:519: in function <!BugGrabber\BugGrabber.lua:519>
    [string "=[C]"]: ?
    [string "=[C]"]: in function `SendChatMessage'
    [string "@MyAddon\MyAddon-v1.0.0.lua"]:189: in function <MyAddon\MyAddon.lua:160>
    [string "@SharedXML\C_TimerAugment.lua"]:16: in function <SharedXML\C_TimerAugment.lua:14>

  8. #15548
    Quote Originally Posted by tariel36 View Post
    Is it possible to send trade messages in recurrent timer? Below is my code (well atleast important part) and it seems that `SendChatMessage(msg, "CHANNEL", nil, channelId);` generates an error if setup for trade. It works with officer chat for example.

    I also tried with `wowlua` addon (skipping the timer part) and it worked for trade channel.

    So I wonder if trade is protected from timers for spam purposes.

    The error message is below code.

    Code:
    function timerRepeatRecruitMessage()
    	local tickSeconds = 5*60;
    	local channelId, channelName = GetChannelName("Trade");	
    	local msg = GetMacroBody("GUILD");
    
    	if (not isNullOrWhitespace(msg)) then
    		msg = strsub(msg, 4); -- remove `/2 `
    	end
    
    	if myaddon.recruitTimer == nil then
    		myaddon.recruitTimer = C_Timer.NewTicker(tickSeconds, timerRepeatRecruitMessage, nil);
    	end
    
    	if myaddon.recruitNext == nil or time() >= myaddon.recruitNext then
    
    		if (not isNullOrWhitespace(msg)) then
    			print('== SEND');
    
    			SendChatMessage(msg, "CHANNEL", nil, channelId);
    		end
    		myaddon.recruitNext = time() + tickSeconds;
    	end
    end
    Code:
    4x [ADDON_ACTION_BLOCKED] AddOn 'MyAddon' tried to call the protected function 'UNKNOWN()'.
    [string "@!BugGrabber\BugGrabber.lua"]:519: in function <!BugGrabber\BugGrabber.lua:519>
    [string "=[C]"]: ?
    [string "=[C]"]: in function `SendChatMessage'
    [string "@MyAddon\MyAddon-v1.0.0.lua"]:189: in function <MyAddon\MyAddon.lua:160>
    [string "@SharedXML\C_TimerAugment.lua"]:16: in function <SharedXML\C_TimerAugment.lua:14>
    SendChatMessage is hardware protected when using CHANNEL, as well as SAY when not in an instance. Hardware protected means an add-on can setup something for you to click or use a key to then post the message, but the add-on cannot post it by itself.


    addons
    weakauras
    Lua Wall of Shame
    Originally Posted by Zarhym (Blue Tracker)
    this thread is a waste of internet

  9. #15549
    Quote Originally Posted by Kanegasi View Post
    SendChatMessage is hardware protected when using CHANNEL, as well as SAY when not in an instance. Hardware protected means an add-on can setup something for you to click or use a key to then post the message, but the add-on cannot post it by itself.
    That explains a lot, thank you very much.

  10. #15550
    Ok, this is gonna sound weird. I have a tone of addons and one of them sometimes puts "December 14, 2020" into my chat. It's done it in /say, /instance, and in whispers. Has anybody else had a problem like this? It does it at random, so turning my addons off isn't a good way to hunt for the culprit.

  11. #15551
    Quote Originally Posted by fatgunn View Post
    Ok, this is gonna sound weird. I have a tone of addons and one of them sometimes puts "December 14, 2020" into my chat. It's done it in /say, /instance, and in whispers. Has anybody else had a problem like this? It does it at random, so turning my addons off isn't a good way to hunt for the culprit.
    This may be difficult to pin down. I'm assuming it's always that date, which means the addon isn't getting a new date, but that date could be saved as a string or as a unix timestamp. My first question is that are you sure it's actually chatting out to /say, /instance, and whispering people? It could be just printing that date on a chat window in different colors.

    Install Notepad++, open it, click the binoculars icon at the top, and follow this image (that is my path to WTF, yours will be different). This will search all of your saved data for "December 14". If nothing pops up after the progress bar, try searching for "16079" without the quotes. This is the first part of the unix timestamp for all of December 14 in the UTC timezone, which is between 1607904000 and 1607990399.

    If you still can't find anything, it could be hardcoded in the addon itself. Just change the path to the AddOns folder and try searching there.


    addons
    weakauras
    Lua Wall of Shame
    Originally Posted by Zarhym (Blue Tracker)
    this thread is a waste of internet

  12. #15552
    Quote Originally Posted by Alyajna View Post
    I really like the nameplates they're using in the awc cast. Does anyone know of something that looks like this? I assume it isn't an addon but something they have just for this...
    There's a Plater mod that you can further customize to look more like these nameplates.
    https://wago.io/Kn7oMwQij
    ~ I'm having trouble hearing you. Getting a lot of bullshit on this line. ~

  13. #15553
    Maybe somewhat dumb question, but i think it may have some sort of impact on my gameplay.

    I had macroed an on-use trinket on my main generator - after a while i felt something was off, so i started "debugging" with mods and such until i got rid of the macro itself, cause it was something i was basically costantly pressing/spamming.

    My question is: i had the "/use trinket" before the "/cast skill". since the trinket goes in cooldown, is it possible that the macro doesn't always work and so have unwanted behaviours? Right now i have the macro in conjunction with another cd that lines up with it, but i also put the trinket after the cast.

    DOn't know if this makes any sense.
    You tried, and you failed. What have you learned? That's better not to try at all.

  14. #15554
    Quote Originally Posted by Coldkil View Post
    My question is: i had the "/use trinket" before the "/cast skill". since the trinket goes in cooldown, is it possible that the macro doesn't always work and so have unwanted behaviours? Right now i have the macro in conjunction with another cd that lines up with it, but i also put the trinket after the cast.
    Have you tried with another on use trinket? I've witnessed this behaviour with a trinket with no combat component, such as Humming Black Dragonscale (which can also be used at the same time as another trinket).

    Otherwise this macro should work and simply spam you with an error message "Item is not ready yet."
    ~ I'm having trouble hearing you. Getting a lot of bullshit on this line. ~

  15. #15555
    Quote Originally Posted by Revan Bane View Post
    Have you tried with another on use trinket? I've witnessed this behaviour with a trinket with no combat component, such as Humming Black Dragonscale (which can also be used at the same time as another trinket).

    Otherwise this macro should work and simply spam you with an error message "Item is not ready yet."
    I can redo the macro, cause once i used the new one with the inverted order (and less spamming involved), things went basically correctly. Maybe it's just that. I'll do some test, at least it's useful to know if different trinkets have different behaviours.
    You tried, and you failed. What have you learned? That's better not to try at all.

  16. #15556
    OK, small question.

    I am using a nice but all capitals font for my UI, and i wanted something narrower possibly woith accents characters (maybe also russian because why not). Any suggestions?
    You tried, and you failed. What have you learned? That's better not to try at all.

  17. #15557
    Anyone who knows how to change a string to upper case? I want the headers in my Tiptac tooltips to be all caps, but my random placing of :upper and .upper in the code hasn't worked

  18. #15558
    Blademaster Chibitoo's Avatar
    Join Date
    Jun 2007
    Location
    Toronto, ON, CA
    Posts
    29
    Hey, hope it's ok to ask here: seeing a mod that is like a graphical combat log/cast list, that shows what I cast and on who, with spell icons, and a log, nice and clean. Wondering if anyone can tell me what it's called. Sorry for the description!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •