Quantcast
WoWInterface - Search Results
Showing results 1 to 25 of 500
Search took 0.19 seconds.
Search: Posts Made By: SDPhantom
Forum: Classic - AddOn Search/Requests 06-27-22, 02:01 AM
Replies: 2
Views: 137
Posted By SDPhantom
First of all, there's a distinct difference...

First of all, there's a distinct difference between an addon and a 3rd party tool.

An addon for WoW is a set of scripts written in Lua and/or XML that are loaded by the game itself and have limited...
Forum: Lua/XML Help 06-23-22, 07:04 PM
Replies: 3
Views: 338
Posted By SDPhantom
UnitXP("player")...

UnitXP("player") (https://wowpedia.fandom.com/wiki/API_UnitXP) returns player experience. You should also look at UnitLevel() to check if they're level 1.
Forum: Tutorials & Other Helpful Info. 06-22-22, 05:48 PM
Replies: 8
Views: 334
Posted By SDPhantom
I haven't watched any of the streams. I just...

I haven't watched any of the streams. I just don't have the time or attention span really for that format of media. Even so, the way BackdropTemplate was coded, it seems like it's a bridge between...
Forum: General Authoring Discussion 06-22-22, 05:03 PM
Replies: 2
Views: 233
Posted By SDPhantom
Can you give an example of a stack trace that...

Can you give an example of a stack trace that you're having trouble with?

A stack trace basically lists all active functions with the currently running one at the top. With few exceptions, it...
Forum: Tutorials & Other Helpful Info. 06-22-22, 04:23 PM
Replies: 8
Views: 334
Posted By SDPhantom
I noticed a lot of backdrop constants moved over...

I noticed a lot of backdrop constants moved over to SharedXML\NineSliceLayouts.lua (https://github.com/Gethe/wow-ui-source/blob/live/Interface/SharedXML/NineSliceLayouts.lua) a while ago. Gethe has...
Forum: Classic - AddOn Help/Support 06-06-22, 05:23 PM
Replies: 1
Views: 224
Posted By SDPhantom
If you're wanting to count socket colors, this'll...

If you're wanting to count socket colors, this'll require a ton of server requests using socket query calls (https://wowpedia.fandom.com/wiki/World_of_Warcraft_API#Item_Socketing). Alternatively, if...
Forum: Lua/XML Help 06-06-22, 05:09 PM
Replies: 9
Views: 566
Posted By SDPhantom
Assuming your :get() and :set() functions are...

Assuming your :get() and :set() functions are working correctly, this is a simpler method.

["onclick"]=function(self)
local newvalue=self.options[Wrap((tIndexOf(self.options,self:get()) or...
Forum: Macro Help 05-17-22, 10:55 AM
Replies: 1
Views: 412
Posted By SDPhantom
It's used to control abilities that toggle on/off...

It's used to control abilities that toggle on/off and forces them to recast rather than toggle off. For abilities that don't toggle, it does nothing.
Forum: Lua/XML Help 05-09-22, 01:03 PM
Replies: 5
Views: 1,250
Posted By SDPhantom
Strange, it works fine for me.

Strange, it works fine for me.
Forum: Lua/XML Help 05-03-22, 05:18 PM
Replies: 3
Views: 655
Posted By SDPhantom
Not completely true. The repositioning is further...

Not completely true. The repositioning is further down the line at MainMenuBarMixin:SetPositionForStatusBars(). It queries StatusTrackingBarManager:GetNumberVisibleBars() and sets .yOffset...
Forum: Lua/XML Help 04-27-22, 08:56 PM
Replies: 5
Views: 712
Posted By SDPhantom
A note to add, player names are valid UnitIDs as...

A note to add, player names are valid UnitIDs as long as they're in your party/raid.
Forum: AddOn Help/Support 04-27-22, 08:46 PM
Replies: 3
Views: 364
Posted By SDPhantom
There isn't a way to get a unit's level directly...

There isn't a way to get a unit's level directly from a GUID, you need a UnitID. You can try to cache data using target, nameplates, and mouseover along with watching UNIT_TARGET events for...
Forum: Lua/XML Help 04-23-22, 11:27 AM
Replies: 6
Views: 699
Posted By SDPhantom
xpcall() specifically lets you set a specific...

xpcall() specifically lets you set a specific error handler to run if it encounters an error. Even though the Lua documentation doesn't show this, it also allows you to pass arguments to the function...
Forum: Lua/XML Help 04-22-22, 10:11 AM
Replies: 6
Views: 699
Posted By SDPhantom
As you've pointed out, the debug built-in library...

As you've pointed out, the debug built-in library was disabled. Only a few functions remain from it, namely getfenv(), setfenv(), and debugstack() (formerly debug.traceback()).

There's no other way...
Forum: Lua/XML Help 04-21-22, 02:07 PM
Replies: 6
Views: 699
Posted By SDPhantom
If you're talking about having a function check...

If you're talking about having a function check its args, you can use select() (http://www.lua.org/manual/5.1/manual.html#pdf-select).

local function PrintArgCount(...)
print(select("#",...));
end
Forum: AddOn Help/Support 04-21-22, 01:47 PM
Replies: 1
Views: 627
Posted By SDPhantom
Short explanation, no. Running a macro is a...

Short explanation, no. Running a macro is a protected action and can't be done from addons.

Longer explanation, depending on what task you want Player2 to do, you may not need to run a macro to do...
Forum: Lua/XML Help 04-21-22, 01:38 PM
Replies: 5
Views: 1,250
Posted By SDPhantom
You need to either remove the function enclosures...

You need to either remove the function enclosures or call them. I suggest removing them since the functions hooked already exist on load.

-- Включение цвета классов на полосах...
Forum: Lua/XML Help 04-17-22, 01:11 AM
Replies: 5
Views: 1,250
Posted By SDPhantom
A quick and easy way is to copy/paste the code...

A quick and easy way is to copy/paste the code into addon.bool.no (https://addon.bool.no/). You may have to open the .toc file in something like Notepad after you extract everything and make sure the...
Forum: General Authoring Discussion 04-06-22, 09:51 AM
Replies: 5
Views: 1,307
Posted By SDPhantom
It's good practice to make local functions...

It's good practice to make local functions instead of global ones whenever you can. It'll help you avoid name collisions like these in the global table.

As with any local variable, you need to...
Forum: Lua/XML Help 04-04-22, 05:57 AM
Replies: 2
Views: 541
Posted By SDPhantom
More specifically, anything inheriting...

More specifically, anything inheriting SecureActionButtonTemplate is a protected frame and protected frames won't let you change their attributes while in combat.
Forum: General WoW Chat 04-01-22, 01:09 PM
Replies: 6
Views: 1,751
Posted By SDPhantom
Addons like Auctioneer and TSM can even do live...

Addons like Auctioneer and TSM can even do live scans that show items as they are posted. You don't even need multiple accounts unless you are trying to have one person logged in on every server...
Forum: General Authoring Discussion 04-01-22, 01:01 PM
Replies: 3
Views: 1,018
Posted By SDPhantom
Here's what I've found that trigger the "Ready...

Here's what I've found that trigger the "Ready Check" sound.

LFG_LIST_JOINED_GROUP
LFG_READY_CHECK_SHOW
LFG_ROLE_CHECK_SHOW
ROLE_POLL_BEGIN

Note: LFG_PROPOSAL_SHOW is already in the table...
Forum: Macro Help 04-01-22, 12:44 PM
Replies: 1
Views: 464
Posted By SDPhantom
You need a valid UnitID...

You need a valid UnitID (https://wowpedia.fandom.com/wiki/UnitId) to check anything. Even then, targeting is a protected action, especially in combat when half the entire UI is locked down.
Forum: Lua/XML Help 04-01-22, 12:36 PM
Replies: 4
Views: 665
Posted By SDPhantom
Let's take your earlier code for example. Option...

Let's take your earlier code for example.

Option 1:
(Depth check was moved to before attempting to recursive call)

for k, v in pairs(tbl) do
if type(v) ~= 'table' then
print(v)
elseif depth...
Forum: Lua/XML Help 03-28-22, 12:17 AM
Replies: 4
Views: 665
Posted By SDPhantom
I honestly prefer using verbose messages over...

I honestly prefer using verbose messages over inserting random nils in where I expect a list. Even if said list is empty. Perhaps if you kept track if the loop has printed anything and at the end,...
Showing results 1 to 25 of 500