Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: SDPhantom
Forum: Macro Help Today, 04:42 AM
Replies: 3
Views: 4,725
Posted By SDPhantom
Slash commands registered by other addons don't...

Slash commands registered by other addons don't natively support macro conditionals. It needs to be explicitly handled by the addon by passing the args through SecureCmdOptionParse()...
Forum: AddOn Search/Requests 09-16-24, 10:54 AM
Replies: 2
Views: 667
Posted By SDPhantom
A big hurdle to an automated saving process is...

A big hurdle to an automated saving process is the game doesn't keep track of what your current set is. Gear overlap also does happen a lot while leveling and edge cases start to appear where an...
Forum: AddOn Help/Support 09-11-24, 12:38 AM
Replies: 5
Views: 2,980
Posted By SDPhantom
This worked fine for me. for i=20,30 do...

This worked fine for me.

for i=20,30 do print(i,GetInventoryItemID("player",i)); end


These events also fire when profession equipment changes:
PLAYER_EQUIPMENT_CHANGED...
Forum: Tutorials & Other Helpful Info. 09-10-24, 11:24 PM
Replies: 1
Views: 1,496
Posted By SDPhantom
The API itself has functions to iterate through...

The API itself has functions to iterate through all achievements.

See:
GetCategoryList() (https://warcraft.wiki.gg/wiki/API_GetCategoryList)
GetCategoryNumAchievements()...
Forum: AddOn Search/Requests 09-10-24, 06:57 PM
Replies: 2
Views: 2,766
Posted By SDPhantom
In case it wasn't clear, the image posted above...

In case it wasn't clear, the image posted above is a hyperlink to an addon that does this.
Forum: AddOn Help/Support 09-08-24, 07:14 PM
Replies: 19
Views: 6,187
Posted By SDPhantom
This is what taint does. In the case of calling...

This is what taint does. In the case of calling :click(), your addon is directly executing code that eventually tries to call a protected function. When otherwise secure code accesses a value you...
Forum: General Authoring Discussion 09-02-24, 08:52 AM
Replies: 2
Views: 3,127
Posted By SDPhantom
Not all buffs show up in the combat log. If...

Not all buffs show up in the combat log. If you're wanting to track party/raid buffs, I'd suggest using UNIT_AURA (https://warcraft.wiki.gg/wiki/UNIT_AURA) instead. If you're trying to track PvP...
Forum: Lua/XML Help 09-02-24, 08:36 AM
Replies: 1
Views: 2,943
Posted By SDPhantom
Blizzard provides a few templates...

Blizzard provides a few templates (https://warcraft.wiki.gg/wiki/SecureTemplates) that are an exception to the rule of "addons can't run protected actions". A specific one to note of is...
Forum: AddOn Search/Requests 08-30-24, 04:58 PM
Replies: 5
Views: 4,295
Posted By SDPhantom
If you're interested in how addons are detected...

If you're interested in how addons are detected and run, you can look at Warcraft Wiki: Create a WoW AddOn in 15 Minutes (https://warcraft.wiki.gg/wiki/Create_a_WoW_AddOn_in_15_Minutes).
Warcraft...
Forum: AddOn Search/Requests 08-30-24, 12:47 AM
Replies: 5
Views: 4,295
Posted By SDPhantom
I don't know about existing addons. I tend to...

I don't know about existing addons. I tend to write something myself if I need info. That being said, this script should do the...
Forum: Tech Chat 08-29-24, 05:35 PM
Replies: 1
Views: 2,121
Posted By SDPhantom
Most things will be fine. If you manually moved...

Most things will be fine. If you manually moved any frames anywhere, you may want to reposition them to your liking.
Forum: AddOn Help/Support 08-27-24, 10:03 PM
Replies: 19
Views: 6,187
Posted By SDPhantom
Looking at the code, the functions in submenu are...

Looking at the code, the functions in submenu are pulled from MenuUtilPrivate.Inserters (https://github.com/Gethe/wow-ui-source/blob/live/Interface/AddOns/Blizzard_Menu/MenuUtil.lua#L245-L256) and...
Forum: AddOn Search/Requests 08-25-24, 09:23 PM
Replies: 6
Views: 6,569
Posted By SDPhantom
This should work in place of replacing...

This should work in place of replacing GetUnitName(). It should still cover the stock UnitFrames along with the AchievementUI, InspectUI, and TradeFrame.


local function...
Forum: AddOn Search/Requests 08-25-24, 12:45 PM
Replies: 6
Views: 6,569
Posted By SDPhantom
Forgot about the tooltip, this should do the...

Forgot about the tooltip, this should do the trick.

TooltipDataProcessor.AddLinePreCall(Enum.TooltipDataLineType.UnitName,function(tooltip,line)
if line.unitToken and UnitIsPlayer(line.unitToken)...
Forum: AddOn Search/Requests 08-25-24, 07:16 AM
Replies: 6
Views: 6,569
Posted By SDPhantom
This replaces two key functions responsible for...

This replaces two key functions responsible for formatting character names. It's the most straightforward way, but it does cause taint.


function GetUnitName(unit) return (UnitName(unit));...
Forum: AddOn Help/Support 08-24-24, 11:04 AM
Replies: 1
Views: 2,105
Posted By SDPhantom
You can't rely on the container name matching the...

You can't rely on the container name matching the bagID being opened as ContainerFrames are a pooled resource. There does appear to be a UI function that'll get you the ItemButton associated for a...
Forum: AddOn Help/Support 08-24-24, 02:31 AM
Replies: 19
Views: 6,187
Posted By SDPhantom
The slash command is registered under the token...

The slash command is registered under the token GUILD_UNINVITE (https://github.com/Gethe/wow-ui-source/blob/live/Interface/AddOns/Blizzard_ChatFrameBase/Mainline/ChatFrame.lua#L1794-L1803). You can...
Forum: General Authoring Discussion 08-13-24, 10:14 PM
Replies: 1
Views: 2,391
Posted By SDPhantom
Which client is this for? The game's tooltip code...

Which client is this for? The game's tooltip code is vastly different between Retail and Classic clients.
Forum: Lua/XML Help 08-08-24, 09:19 PM
Replies: 1
Views: 4,873
Posted By SDPhantom
Doing each individual action separately is easy,...

Doing each individual action separately is easy, but stringing them together in a single action my not be possible as each step, if not involving a protected function, requires a hardware event (user...
Forum: Gameplay 07-20-24, 11:15 PM
Replies: 2
Views: 4,036
Posted By SDPhantom
I haven't played since early DragonFlight, but I...

I haven't played since early DragonFlight, but I whipped up this script when I was having a similar problem.

function EventToastManagerFrame:OnUpdate()
local ismouseover=self:IsMouseOver();
if...
Forum: Lua/XML Help 06-13-24, 05:17 PM
Replies: 5
Views: 8,007
Posted By SDPhantom
I was going to suggest GetPlayerInfoByGUID()...

I was going to suggest GetPlayerInfoByGUID() (https://warcraft.wiki.gg/wiki/API_GetPlayerInfoByGUID) as a more direct option.
Not everyone that shows up in your combat log is going to have a valid...
Forum: Lua/XML Help 05-31-24, 10:15 AM
Replies: 4
Views: 6,275
Posted By SDPhantom
for ... in is a variant of for that loops through...

for ... in is a variant of for that loops through a given iterator to obtain one or more values.
pairs() returns an iterator that loops through a table, returning all of its key-value pairs.

The...
Forum: Lua/XML Help 05-26-24, 02:41 AM
Replies: 3
Views: 7,582
Posted By SDPhantom
For dynamically creating keybinds, you need to...

For dynamically creating keybinds, you need to use the SetBinding* (https://warcraft.wiki.gg/wiki/World_of_Warcraft_API#Key_Bindings) functions.

Here's an additional link you may be interested...
Forum: Lua/XML Help 05-23-24, 02:21 PM
Replies: 5
Views: 8,852
Posted By SDPhantom
The usual suspects for a SavedVariable desyncing...

The usual suspects for a SavedVariable desyncing is either something going wrong with the loading process or a table pointer got overwritten.
You might want to compare the value in db.profile with...
Forum: Lua/XML Help 05-23-24, 07:37 AM
Replies: 5
Views: 8,852
Posted By SDPhantom
/reload completely wipes the Lua state the same...

/reload completely wipes the Lua state the same as a normal logout would. The only way to get anything to survive is by using SavedVariables.


Not sure how you think table.remove() is going to solve...
Showing results 1 to 25 of 500