Druid Combo Point Location Script Helpd

Hello,

I’m in the process of kinda learning some blizzard api foundations still so I apologize if I don’t ask this question in the most coherent way. However, I am running a combo point location script for target like the old target frame combo points.

as seen here

/run SetCVar(“comboPointLocation”,1)

I’m actually doing it through advanced interface options then going into my lua file notepad and taking what I like and not I’m still that early on with learning. This works perfect on my rogue. However, my feral druid still has the combo points on the player unit frame and while I could live with it, it doesn’t stay up to date with the current combo points. I would prefer to find a way to get the druid class resource bar combo point display to be completely gone underneath my personal unit frame. Can I make an Alpha script for it to just be completely transparent?

If I run the script in game /run ComboPointPlayerFrame:Hide()

it works for feral in game but it wont work in the lua file im making. is there any loading that I need to add to the script on addon loaded or player entering world?

The /run part is purely for macro and chat editbox scripting. For .lua code, leave off the /run.

ComboPointPlayerFrame:Hide()

I’m pretty sure druid and rogues use the same Combo frame so that will hide it for both.

1 Like

sorry I didnt clarify. I did take out the run and it wasnt working for me in the lua file i’m making. It just doesnt do anything. but then if i go in game and do

/run ComboPointPlayerFrame:Hide()

while in game it works. Again the script works in the lua file for my rogue. The only line in the script that effects rogues specifcally has nothing to do with this line afaik unless theres a unintended consequence. On my rogue I hide the stance bar.

function Init()
if string.match(UnitClass(‘player’), ‘Rogue’) then
StanceBarFrame:Hide()
StanceBarFrame:SetScript(“OnShow”,function() StanceBarFrame:Hide() end)
end
end

I don’t think that should be effecting the combo points though. I have found a temporary workaround with using move anything and just setting the alpha in there to 0.

While this script is working for rogue, it continues to work if I take it out of the lua document assuming its a saved variable for my rogue so Im worried I accidently implimented this above in a different way if thats even possible but nothing else comes up under ComboPointPlayerFrame. Meanwhile, whether its inserted into the code or not my druids combo points stay there below the player frame. I’m thinking that I somehow have something else that isnt ComboPointPlayerFrame that is causing this? But im not experienced enough to know

All rogues have combo points all the time whereas druids only have combo points in cat form therefore the display for them gets updated when they change in/out of forms rather than just once when the player logs in.

SetCVar(“comboPointLocation”,x) should allow 3 options for x, 1=combo points display on the player, 2=combo points display on the target, 0=no combo point display.

1 Like

yeah when I do 2 I get combo points on the target and as I said it just keeps the graphics on my druid but doesnt hide it or actualy update so its really just a waste of space on the frame. I’ve tried /fstack and hiding everything I can find and nothing on it seems to hide! I may just have to resort to move anything permanently for this one.

I’ve read your reply a couple of times and I’m pretty sure I’m not understanding what you are trying to do.

If you post ALL your lua code and mark the lines where you expect something to happen that doesn’t by listing what you want to see and what you are seeing that’s “wrong”.

Maybe it’s this: If you have 1 set for the CVar (points on the target) you don’t want to see the points on a druids player frame as well so that druid points line up with rogues in only showing 1 set of combo points (target or player) but not both.

local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_LOGIN")
f:SetScript("OnEvent", function(self, event, ...)
	local _, class = UnitClass("player")
	if class == "DRUID" and GetCVar("comboPointLocation") == "1" then
		hooksecurefunc(ComboPointPlayerFrame,"Setup", function() 
			ComboPointPlayerFrame:Hide() 
			ComboPointPlayerFrame:UnregisterEvent("UNIT_POWER_FREQUENT")
			ComboPointPlayerFrame:UnregisterEvent("UNIT_MAXPOWER")
		end)
	end
end)
1 Like

thank you so much for your time you have no idea how much your helping me.

So i deleted my wtf folder on ptr and tried to run your script solo after a fresh install. Location 2 hides cps location 1 displays on my player frame still, and 0 displays on player frame still.

If I disable the script addon on ptr that youve provided and run the cvar command in chat /run SetCVar(“comboPointLocation”,1) which functions as normal for feral but 2 displays it on the target. However, I still have the animation up. I’d be more than willing to make a 60 second video or provide you a screen shot of what im seeing. But its literally just seeing the old combo point display on target while still seeing the graphics for the current combo points but they dont update. No issues at all still on rogue running this script.

The script is intended to come into effect as the druid logs in and any setting is detected then. It can’t be used as a “hot swap” as is.

Any change to the CVar will need a /reload to take effect.

1 Like

Yeah I was doing reloads when manually entering the script in chat. With your lua script I just tried three values 0,1, and 2. Exiting Game each time I wanted to edit and save the file to be safe after what you said. Same experiences as before except 2 no longer displayed combo points on the target and I lost the combo point indicators on my personal frame but the background graphics were still there.

edit: just made a video in detail showing this: youtu.be/GogavulZoWc

Leave the .lua script as posted.

Just use /run SetCVar("comboPointLocation", 1 or 2) /reload in-game to change between points just on the target or just on the player, the same as you would for a rogue.

1 Like

fixed i fricken love u so much fizzlemizz your one nice gnome. someone give this dude mvp status