Quantcast WoWInterface - Search Results
Showing results 1 to 25 of 500
Search took 0.05 seconds.
Search: Posts Made By: Phanx
Forum: Lua/XML Help 03-24-18, 12:39 AM
Replies: 4
Views: 340
Posted By Phanx
That will only update the frame once, when the...

That will only update the frame once, when the unit is first set (e.g. to "target"). If you click on another unit to change your target, the unit attribute doesn't change (it's still "target") so...
Forum: AddOn Search/Requests 03-24-18, 12:19 AM
Replies: 1
Views: 318
Posted By Phanx
1. Adding entries to right-click menus is highly...

1. Adding entries to right-click menus is highly inadvisable, as doing so will taint the entire dropdown menu system, which will block a wide variety of actions (join/leave battleground, dismiss pet,...
Forum: Lua/XML Help 03-24-18, 12:15 AM
Replies: 2
Views: 162
Posted By Phanx
No; zone actions are just spells that your...

No; zone actions are just spells that your character knows, but that are hidden from the spellbook. You can verify this by examining the return values from GetActionInfo(slotID)...
Forum: Lua/XML Help 03-23-18, 11:41 PM
Replies: 1
Views: 192
Posted By Phanx
There are these global...

There are these global constants:
https://www.townlong-yak.com/framexml/live/Constants.lua#270

GetItemInfo will give you something like "INVTYPE_HEAD", so you could replace "INVTYPE" with "INVSLOT"...
Forum: Lua/XML Help 03-15-18, 03:16 PM
Replies: 7
Views: 467
Posted By Phanx
Look again. The line you highlights assigns the...

Look again. The line you highlights assigns the returned outer table to a variable, and then the very next line loops over the inner table(s).
Forum: Lua/XML Help 03-15-18, 03:14 PM
Replies: 7
Views: 467
Posted By Phanx
Yes, that's why I posted it. :p Unclear. I...

Yes, that's why I posted it. :p



Unclear. I can't test, but maybe there's a second table for something like an enhancement shaman's Healing Surge which costs mana but can additionally consume...
Forum: Lua/XML Help 03-15-18, 01:05 AM
Replies: 7
Views: 467
Posted By Phanx
/dump GetSpellPowerCost(2061) { { cost =...

/dump GetSpellPowerCost(2061)
{
{
cost = 10,
costPercent = 3,
costPerSec = 0,
hasRequiredAura = false,
minCost = 10,
name = "MANA",
requiredAuraID = 0,
Forum: Lua/XML Help 03-15-18, 12:35 AM
Replies: 30
Views: 1,628
Posted By Phanx
If you mean it no longer tests if the character...

If you mean it no longer tests if the character knows flying skills required for the current area (e.g. you need Broken Isles Pathfinder to fly in Legion zones) that's not really a change; it's...
Forum: AddOn Search/Requests 03-09-18, 02:56 AM
Replies: 10
Views: 350
Posted By Phanx
Not possible. Addons cannot change what happens...

Not possible. Addons cannot change what happens when you click on a unit in the game world.

You could compensate by running your existing macro, with minor changes, after selecting the...
Forum: Chit-Chat 03-09-18, 02:48 AM
Replies: 21
Views: 1,668
Posted By Phanx
The problem with all of those is that none of...

The problem with all of those is that none of them, as far as I can tell, are capable of recognizing addons that are already installed, or that get installed outside of them. With 150+ addons, like...
Forum: AddOn Help/Support 03-06-18, 12:15 AM
Replies: 8
Views: 356
Posted By Phanx
If you just want to show that you have the buff,...

If you just want to show that you have the buff, then yes, the first way will work.

If you want to show how much time is left on the buff, or any other information about it other than "it exists",...
Forum: General Authoring Discussion 03-06-18, 12:14 AM
Replies: 12
Views: 454
Posted By Phanx
You can't detect when a specific sound is played...

You can't detect when a specific sound is played (unless it was played by the UI code or an addon) but you can detect when a spell is cast.

Try this:

local f =...
Forum: Lua/XML Help 03-06-18, 12:08 AM
Replies: 4
Views: 386
Posted By Phanx
It's probably a race condition; the two events...

It's probably a race condition; the two events are actually fired simultaneously, but in practice one of them has to be handled before the other since the UI is single-threaded and can only do one...
Forum: oUF (Otravi Unit Frames) 03-04-18, 08:02 PM
Replies: 13
Views: 676
Posted By Phanx
Just a semantic nitpick, but if you're going to...

Just a semantic nitpick, but if you're going to name your function instead of just passing it anonymously to oUF, you should change "OnSpawnNamePlates" to something that more accurately reflects when...
Forum: AddOn Help/Support 03-04-18, 07:57 PM
Replies: 8
Views: 356
Posted By Phanx
That was where the "create an addon" link in my...

That was where the "create an addon" link in my post was pointing. ;)

@FranekW: It's an online tool that creates an addon for you. All you have to do is type a name and paste in the code you want to...
Forum: AddOn Help/Support 03-04-18, 12:12 PM
Replies: 8
Views: 356
Posted By Phanx
Yeah, already caught that in the edit. :cool:

Yeah, already caught that in the edit. :cool:
Forum: AddOn Help/Support 03-04-18, 12:03 PM
Replies: 8
Views: 356
Posted By Phanx
I can't actually answer your question as I don't...

I can't actually answer your question as I don't use WeakAuras, but you'll want to be careful about leaking your variables into the global environment:


-- Function for Custom Text
function()
...
Forum: AddOn Help/Support 02-20-18, 10:29 AM
Replies: 34
Views: 1,324
Posted By Phanx
Anyway, back on topic, @X33STORM if you can't...

Anyway, back on topic, @X33STORM if you can't just set your CVars through Advanced Interface Options and your current code isn't working, here is the code I've been using to set my CVars for about a...
Forum: AddOn Help/Support 02-20-18, 10:14 AM
Replies: 34
Views: 1,324
Posted By Phanx
You don't need to know anything about XML either...

You don't need to know anything about XML either unless you're writing secure templates, which you (general "you" that applies to anyone who will ever read this post) will almost certainly never do;...
Forum: AddOn Help/Support 02-19-18, 10:46 AM
Replies: 34
Views: 1,324
Posted By Phanx
Let's start over. Your original post implies, but...

Let's start over. Your original post implies, but doesn't actually say, that the code you posted isn't working the way you expect. Is it working as expected, or not? If it is working, what is the...
Forum: General Authoring Discussion 02-19-18, 09:49 AM
Replies: 4
Views: 236
Posted By Phanx
That question doesn't make any sense. Events...

That question doesn't make any sense. Events don't get called. Events fire (that is to say, they are emitted by the game, and that action occurs in the underlying C code, not in the Lua code that...
Forum: AddOn Help/Support 02-19-18, 09:36 AM
Replies: 34
Views: 1,324
Posted By Phanx
My personal UI setup addon sets CVars only on...

My personal UI setup addon sets CVars only on PLAYER_LOGIN, does not register or unregister events on any other frames, and does not name any dependencies, optional or otherwise. This has worked for...
Forum: Lua/XML Help 02-19-18, 04:22 AM
Replies: 30
Views: 1,628
Posted By Phanx
Odd; I was actually playing in Pandaria, and was...

Odd; I was actually playing in Pandaria, and was using the same code in my mount addon back then.

What is the output from /run print(string.format("%8$d %1$s", GetInstanceInfo())) while on the...
Forum: General Authoring Discussion 02-17-18, 04:22 AM
Replies: 4
Views: 236
Posted By Phanx
It's the list of currencies you see when you...

It's the list of currencies you see when you click the "Currency" tab on the bottom of the character (equipped items) frame.

That said, in my own currency addon I just hook (non-intrusively with...
Forum: Lua/XML Help 02-17-18, 03:46 AM
Replies: 2
Views: 232
Posted By Phanx
https://wow.gamepedia.com/API_IsUsableSpell

https://wow.gamepedia.com/API_IsUsableSpell
Showing results 1 to 25 of 500