🧙‍♂️ Brought to you by Peptides.gg — Use code UO20 for 20% off — GLP-1's, 90+ Peptides and more!

EC: thorn / debuff timer

Started by ForeverFun · 2023-04-19 · 7 posts · General Discussions
#0
In EC (enhanced client), if you'd like a timer countdown for the next green thorn usage:

textparsing.lua

Add the below just above the "Anh Mi Sah Ko" case, in TextParsing.TimersNbuff()

		if ( SystemData.TextID == 1061914 ) then 				-- * You push the strange green thorn into the ground *
			WindowData.BuffDebuffSystem.CurrentBuffId = 1139	-- use magnus debuff icon.
			WindowData.BuffDebuff.NameVectorSize = 0
			WindowData.BuffDebuff.ToolTipVectorSize = 0
			BuffDebuff.Timers[1139] = 180						-- 3 minutes.
			BuffDebuff.ShouldCreateNewBuff()			
			return
		end

#1
Nice.  Thanks for the code.
#2
In EC (enhanced client), if you'd like a timer countdown for the next green thorn usage:

textparsing.lua

Add the below just above the "Anh Mi Sah Ko" case, in TextParsing.TimersNbuff()

		if ( SystemData.TextID == 1061914 ) then 				-- * You push the strange green thorn into the ground *
			WindowData.BuffDebuffSystem.CurrentBuffId = 1139	-- use magnus debuff icon.
			WindowData.BuffDebuff.NameVectorSize = 0
			WindowData.BuffDebuff.ToolTipVectorSize = 0
			BuffDebuff.Timers[1139] = 180						-- 3 minutes.
			BuffDebuff.ShouldCreateNewBuff()			
			return
		end

May I ask a question ?

If it was this easy, why this was not added by default, in both the EC and CC Clients, by the developers ?
#3
popps said:
In EC (enhanced client), if you'd like a timer countdown for the next green thorn usage:

textparsing.lua

Add the below just above the "Anh Mi Sah Ko" case, in TextParsing.TimersNbuff()

		if ( SystemData.TextID == 1061914 ) then 				-- * You push the strange green thorn into the ground *
			WindowData.BuffDebuffSystem.CurrentBuffId = 1139	-- use magnus debuff icon.
			WindowData.BuffDebuff.NameVectorSize = 0
			WindowData.BuffDebuff.ToolTipVectorSize = 0
			BuffDebuff.Timers[1139] = 180						-- 3 minutes.
			BuffDebuff.ShouldCreateNewBuff()			
			return
		end

May I ask a question ?

If it was this easy, why this was not added by default, in both the EC and CC Clients, by the developers ?
They don't care 
#4
popps said:

If it was this easy, why this was not added by default, in both the EC and CC Clients, by the developers ?

That couldn't be added to CC because it doesn't operate the same way as EC. CC is pretty bad at displaying timers in general. If you have a buff like Enemy of One you have to hover over the icon in the buff bar (which takes you away from moving around) to get the timer instead of it just being a small number in the icon like I've seen in EC.

I also wouldn't say it was "that easy" because half of us wouldn't have known to do that. Part of the reason it wasn't added by default is likely because the Dev team isn't actually playing the content (ie don't play the game) so a small QoL improvements like this aren't obvious.

#5
Oh gee. Oh wow. Oh boy. Doing things in the EC that people cry is unfair to do on the CC.
#6
Had a chance to use this during the luck statue hour today, one change below, to allow the debuff icon to keep appearing (otherwise, it may only appear once if you're only doing eggs).

		if ( SystemData.TextID == 1061914 ) then 				-- * You push the strange green thorn into the ground *
			WindowData.BuffDebuffSystem.CurrentBuffId = 1139	-- use magnus debuff icon.
			WindowData.BuffDebuff.NameVectorSize = 0
			WindowData.BuffDebuff.ToolTipVectorSize = 0
			WindowData.BuffDebuff.IsBeingRemoved = false
			BuffDebuff.Timers[1139] = 180						-- 3 minutes.
			BuffDebuff.ShouldCreateNewBuff()			
			return
		end
← Browse more General Discussions discussions