Quantcast WoWInterface - Search Results
Showing results 1 to 25 of 289
Search took 0.02 seconds.
Search: Posts Made By: Vrul
Forum: Wish List 09-30-18, 10:19 AM
Replies: 0
Views: 162
Posted By Vrul
Have /cast and /use Accept spellIDs

If the following code from ChatFrame.lua

-- We want to prefer spells for /cast and items for /use but we can use either
SecureCmdList["CAST"] = function(msg)
local action, target =...
Forum: PTR UI Bugs 09-29-18, 04:54 PM
Replies: 0
Views: 176
Posted By Vrul
CastSpellByID and CastSpellByName Have Different Results

If I set up a secure action button to use the warrior ability Impending Victory as such:

ActionButton1:SetAttribute('type', 'spell')
ActionButton1:SetAttribute('spell', 202168)

It does nothing,...
Forum: Lua/XML Help 09-29-18, 04:33 PM
Replies: 4
Views: 208
Posted By Vrul
No. The 'get' and 'set' fields are inherited so...

No. The 'get' and 'set' fields are inherited so using a simple save structure allows you to use fewer generic get/set functions. If you insist on a needlessly complex save table then you will have...
Forum: Lua/XML Help 09-29-18, 09:44 AM
Replies: 4
Views: 208
Posted By Vrul
Yes, and the ease of which is determined by how...

Yes, and the ease of which is determined by how your db table is set up. Here is a generic example of how it could look:

local ACR = LibStub("AceConfigRegistry-3.0")
local ACD =...
Forum: PTR UI Bugs 09-28-18, 07:20 AM
Replies: 0
Views: 174
Posted By Vrul
Cannot Emulate @cursor with a Secure Button

The following Shaman macro works fine:

#showtooltip Earthquake
/cast [@cursor] Earthquake


However, it cannot be reproduced using a secure button by setting the 'unit' attribute due to the...
Forum: Lua/XML Help 09-18-18, 09:27 PM
Replies: 3
Views: 176
Posted By Vrul
As long as the table has at least one entry then...

As long as the table has at least one entry then this should work:

object:RegisterUnitEvent(event, unpack(unit))
Forum: Lua/XML Help 09-13-18, 09:09 AM
Replies: 2
Views: 157
Posted By Vrul
_G["BagnonBag-3"]

_G["BagnonBag-3"]
Forum: Lua/XML Help 09-11-18, 05:18 PM
Replies: 2
Views: 211
Posted By Vrul
SLASH_ZID1 = '/zid'

SLASH_ZID1 = '/zid'
Forum: AddOn Help/Support 08-28-18, 09:05 PM
Replies: 20
Views: 740
Posted By Vrul
I already tried it on the Beta server using a...

I already tried it on the Beta server using a druid on a target dummy. I could switch forms in combat with no issues. If it works for that it will work for any other state transition.
Forum: AddOn Help/Support 08-28-18, 08:41 PM
Replies: 20
Views: 740
Posted By Vrul
This should let you just use one action bar for...

This should let you just use one action bar for everything:

local BUTTON_SIZE, BUTTON_SPACING = 50, 1

------------------------------------------------------
--[[ Bar Setup ...
Forum: AddOn Help/Support 08-28-18, 07:19 PM
Replies: 20
Views: 740
Posted By Vrul
Give this a try: local BUTTON_SIZE,...

Give this a try:

local BUTTON_SIZE, BUTTON_SPACING = 50, 1

------------------------------------------------------
--[[ Bar Setup ...
Forum: AddOn Help/Support 08-28-18, 05:41 AM
Replies: 20
Views: 740
Posted By Vrul
I'm pretty sure its because for the...

I'm pretty sure its because for the conditions:

[vehicleui] 12; [overridebar] 14

only causes the OverrideActionBar buttons to be updated where the other conditions:

[possessbar] [@vehicle, exists]...
Forum: AddOn Help/Support 08-27-18, 09:34 PM
Replies: 20
Views: 740
Posted By Vrul
Yes, the event handler calling SetAttribute on a...

Yes, the event handler calling SetAttribute on a secure frame will error in combat.
Forum: AddOn Help/Support 08-27-18, 09:32 PM
Replies: 20
Views: 740
Posted By Vrul
Can you put this into it's own temp addon and see...

Can you put this into it's own temp addon and see if it works for that quest:

local addonName, addon = ...

------------------------------------------------------
--[[ Bar Setup ...
Forum: Lua/XML Help 08-25-18, 03:44 PM
Replies: 5
Views: 386
Posted By Vrul
Since both cases are basically identical in how...

Since both cases are basically identical in how they are handled:

function private_table.eventFrame:UI_INFO_MESSAGE(messageType)
local dbKey
if messageType == 371 then -- New Area
...
Forum: AddOn Help/Support 08-25-18, 08:38 AM
Replies: 4
Views: 369
Posted By Vrul
Wouldn't you be better off posting this in the...

Wouldn't you be better off posting this in the actual addon's comments where the author is much more likely to see it?
Forum: AddOn Help/Support 08-23-18, 08:53 PM
Replies: 20
Views: 740
Posted By Vrul
Here is nUI's relevant section changed to follow...

Here is nUI's relevant section changed to follow Blizzard's logic:

if nUI_Options.boomkinBar then
RegisterStateDriver(
nUI_ActionBar, "page", string.format(
"[vehicleui] %d;...
Forum: AddOn Help/Support 08-23-18, 06:48 PM
Replies: 20
Views: 740
Posted By Vrul
Here is that code section so you can see the...

Here is that code section so you can see the logic flow and why vehicle stuff is in there two different ways:

-- If we have a skinned vehicle bar or skinned override bar, display the...
Forum: AddOn Help/Support 08-23-18, 06:26 PM
Replies: 20
Views: 740
Posted By Vrul
This is what I used based on Blizzard's...

This is what I used based on Blizzard's ActionBarController code (verified it still matches up in BfA):

[vehicleui] 12; [overridebar] 14; [possessbar] [@vehicle, exists] 12; [shapeshift] 13; [bar:2]...
Forum: General Authoring Discussion 08-22-18, 07:17 AM
Replies: 8
Views: 409
Posted By Vrul
local addonName = ... local iconKey = addonName...

local addonName = ...

local iconKey = addonName .. "Icon"

local GetNamePlateForUnit = C_NamePlate.GetNamePlateForUnit

local iconTexture = {
["DEATHKNIGHT"] = 135771,
["DEMONHUNTER"] =...
Forum: General Authoring Discussion 08-21-18, 10:47 AM
Replies: 8
Views: 409
Posted By Vrul
Not really. if event == events["npu_added"]...

Not really.

if event == events["npu_added"] and not idSet:contains(unit) then

Without knowing what is going on in idSet:contains(unit) I have no idea if that logic branch is correct. I believe...
Forum: General Authoring Discussion 08-21-18, 09:38 AM
Replies: 8
Views: 409
Posted By Vrul
I see a few things that I think are wrong but I'm...

I see a few things that I think are wrong but I'm not sure since you reference things not in the posted code. Post ALL of your code.
Forum: Lua/XML Help 08-20-18, 04:32 PM
Replies: 3
Views: 374
Posted By Vrul
You can make that handle future classes...

You can make that handle future classes better:

local party = CreateFrame('Frame')
party:SetScript('OnEvent', function(self, event)
self:UnregisterEvent(event)

local function...
Forum: Lua/XML Help 08-18-18, 06:42 PM
Replies: 2
Views: 303
Posted By Vrul
It looks like Blizzard is just calling SetCVar. ...

It looks like Blizzard is just calling SetCVar. You just need to call (1 <= value <= 10):

SetCVar("graphicsEnvironmentDetail", value)
Forum: Lua/XML Help 08-11-18, 04:06 PM
Replies: 21
Views: 1,358
Posted By Vrul
No, that table only has entries for certain...

No, that table only has entries for certain things. I just nil it out in case that particular one is there (or gets added in the future).

For this case in particular, the code that positions...
Showing results 1 to 25 of 289