Quantcast
Help me write proper lua/code for my addon - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-05-21, 03:04 AM   #1
Shabblahabbla
A Murloc Raider
Join Date: Jan 2021
Posts: 5
Help me write proper lua/code for my addon

Hello!

This is basically a request thread. I need help writing the right code in lua and copy paste it into my addon's core or make a new one with the help of: addon.bool.no/.
I just know enough code language to sometimes be able to alter an already existing addon in how it looks in the game in some very basic ways like colour, size, position etc.
So yeah Im pretty bad

I play on a wotlk private server that runs on patch 3.3.5, in case this will matter later.

I have an addon that I call "HideThings" and its this:

Code:
 --hides default target/focus buffs/debuffs
            TargetFrame.maxBuffs = 0
            TargetFrame.maxDebuffs = 0
            MAX_TARGET_BUFFS = 0
            MAX_TARGET_DEBUFFS = 0
            TargetFrame_UpdateAuras(TargetFrame)
            
            if FocusFrame:IsShown() then
            FocusFrame.maxBuffs = 0
            FocusFrame.maxDebuffs = 0
            MAX_FOCUS_BUFFS = 0
            MAX_FOCUS_DEBUFFS = 0
            FocusFrame_UpdateAuras(FocusFrame)
            end
I found it on a thread on this very website some time ago and I would now want to add to it with other things I want to hide.

1. The most important thing and hopefully it isnt too much trouble.
I have two other addons called: LoseControl and eBar.
In those addons I have some frames that exists that I would like to be hidden during a condition.
When Im in a party OR raid where there are a total of 4 people OR when party3 exists (I do not know which of these are more logical) then I want these frames to be hidden, otherwise I want them to show:

eBar_bar_4
eBar_bar_5
eBar_bar_6
eBar_bar_7
LoseControlparty1
LoseControlparty2

2. I almost forgot and hardest thing.

https://ibb.co/mSFzg89

https://ibb.co/60b7XW6

These pictures show 2 things that are not frames I belive. They are a apart of the nameplate. The raidicon beside the nameplate and a kind of "threatglow" around the nameplate of that wolf when I aggro him.

I do not know what the raidicon is called when you refer to its visual at the nameplate but I think the threatglowing thing is called "threatglow".

I want both of these to be hidden since they do not match my UI as you can see.
Even if someone put raidicons on someone I do not want to see it beside their nameplate, and I do not want any glowing effect that seems to be coming from a standard blizzard nameplate UI.

Help me type these things into my addon "HideThings", because when I try diffrent things with my nonexisting experience with how to format lua I just make it stop working.

Would really appriciate you alot if you could help me in anyway!
Thank you all for reading!

Last edited by Shabblahabbla : 01-05-21 at 04:09 AM.
 
 

WoWInterface » Developer Discussions » Lua/XML Help » Help me write proper lua/code for my addon

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off