Showing results 1 to 25 of 201
Search took 0.01 seconds.
Search: Posts Made By: Vrul
Forum: Lua/XML Help 10-19-14, 09:03 PM
Replies: 5
Views: 188
Posted By Vrul
The returns for GetQuestLogTitle have changed so...

The returns for GetQuestLogTitle have changed so that will impact some stuff too.
Forum: Lua/XML Help 10-02-14, 03:54 PM
Replies: 3
Views: 206
Posted By Vrul
Your saved data in TestAddOnDB is loaded just...

Your saved data in TestAddOnDB is loaded just prior to the ADDON_LOADED event so you have to wait until then to access its data.

function TestAddOn_OnEvent(self, event, arg1)
if event ==...
Forum: Lua/XML Help 09-28-14, 09:56 AM
Replies: 7
Views: 690
Posted By Vrul
What Phanx posted is the correct texture. The...

What Phanx posted is the correct texture. The reason it is blue is because of this line in the OnLoad script:

self.highlight:SetVertexColor(0.243, 0.570, 1);


That texture is gray scale so you can...
Forum: oUF (Otravi Unit Frames) 08-26-14, 07:39 PM
Replies: 13
Views: 1,869
Posted By Vrul
Try replacing: local isCaster local cbCheckFrame...

Try replacing:

local isCaster
local cbCheckFrame =...
Forum: oUF (Otravi Unit Frames) 08-26-14, 08:01 AM
Replies: 13
Views: 1,869
Posted By Vrul
I didn't pay enough attention to notice the...

I didn't pay enough attention to notice the shaman line has it's true/false assignments reversed compared to the others.

Try your code on a druid, monk, or paladin caster; or a melee shaman, and see...
Forum: oUF (Otravi Unit Frames) 08-25-14, 09:02 AM
Replies: 13
Views: 1,869
Posted By Vrul
Since GetSpecialization() returns nil on a fresh...

Since GetSpecialization() returns nil on a fresh login I have a hard time believing the code posted works on a fresh login for any caster other than a mage, priest, or warlock.


The reason p3lim's...
Forum: Lua/XML Help 08-21-14, 01:49 PM
Replies: 1
Views: 429
Posted By Vrul
That last line should just...

That last line should just be:
btnLock:SetScript("OnClick", printTest)


Using printTest() is trying to use the return of the function call where just printTest is passing the function itself.
Forum: Lua/XML Help 06-10-14, 09:41 AM
Replies: 6
Views: 900
Posted By Vrul
Not tested but: local format, random =...

Not tested but:

local format, random = string.format, math.random
local index, samples, used = 1, { }, { }
while(index <= 400) do
local plate = random(1, 521)
local sample = format("%03u:%c:%u",...
Forum: Lua/XML Help 06-05-14, 09:45 AM
Replies: 5
Views: 1,196
Posted By Vrul
What Phanx posted should fix your problem...

What Phanx posted should fix your problem (provided you hook the correct function). Another reason the code you posted wouldn't have worked is that the ADDON_LOADED event would have fired for...
Forum: AddOn Help/Support 04-21-14, 08:50 AM
Replies: 39
Views: 3,069
Posted By Vrul
All of those FEASTS, MOUNT, PORTAL, SPELL entries...

All of those FEASTS, MOUNT, PORTAL, SPELL entries need to be in quotes.
Forum: Lua/XML Help 04-20-14, 09:04 PM
Replies: 3
Views: 677
Posted By Vrul
You should be able to just hook ChatFrame_OnLoad...

You should be able to just hook ChatFrame_OnLoad since it should only be called once per chat frame:

hooksecurefunc('ChatFrame_OnLoad', function(chatFrame)
-- do stuff
end)


If you want to be...
Forum: Lua/XML Help 03-26-14, 09:53 AM
Replies: 10
Views: 1,222
Posted By Vrul
The variable texture you are using doesn't change...

The variable texture you are using doesn't change during that loop so you are attempting to set the same texture for each item. I would image a quick fix would be to change the line:

strvars["eICO"...
Forum: General Authoring Discussion 03-19-14, 08:28 PM
Replies: 7
Views: 1,139
Posted By Vrul
Those were possible returns from GetCursorInfo...

Those were possible returns from GetCursorInfo that it was checking.
Forum: General Authoring Discussion 03-19-14, 08:01 PM
Replies: 7
Views: 1,139
Posted By Vrul
That code from SecureHandlers.lua is for handling...

That code from SecureHandlers.lua is for handling dragging. The code to handle clicking/using a button is in SecureTemplates.lua, specifically the possible options for "type" are the entries in the...
Forum: Lua/XML Help 03-12-14, 11:30 AM
Replies: 35
Views: 2,523
Posted By Vrul
Based on what you are using it for you don't...

Based on what you are using it for you don't really need a separate UnitIsPet function, also the class name used to index CUSTOM_CLASS_COLORS and RAID_CLASS_COLORS should be in all...
Forum: Lua/XML Help 03-12-14, 09:54 AM
Replies: 15
Views: 1,130
Posted By Vrul
That code you posted doesn't work because you...

That code you posted doesn't work because you call SetScript before you have defined the local variable it references. Since all your scripts are doing is calling Hide/Show and the first argument...
Forum: Lua/XML Help 03-12-14, 09:39 AM
Replies: 35
Views: 2,523
Posted By Vrul
UnitGUID can return nil so you need to account...

UnitGUID can return nil so you need to account for that:

local function UnitIsPet(unit)
local GUID = UnitGUID(unit)
return GUID and tonumber(GUID:sub(5, 5), 16) % 8 == 4
end


UnitGUID...
Forum: Lua/XML Help 03-11-14, 11:47 AM
Replies: 3
Views: 632
Posted By Vrul
Try changing: ...

Try changing:

_G[k]:HookScript("OnValueChanged", function()
if _G[k].reset then
Set(a, k);
_G[k].reset = false;
...
Forum: Lua/XML Help 03-03-14, 07:46 PM
Replies: 20
Views: 1,571
Posted By Vrul
I think it works just like you said and the...

I think it works just like you said and the constant switching back and forth of two textures, one of which not being in memory, is what messes it up. Of the two workarounds I found, one just cached...
Forum: Lua/XML Help 03-03-14, 04:45 PM
Replies: 20
Views: 1,571
Posted By Vrul
You don't need this bit anymore...

You don't need this bit anymore either:

tooltip[index] = _G[addonName .. "TempEnchantScannerTexture" .. index]


Duugu I noticed the nonBlocking bit earlier but I originally thought it was similar...
Forum: Lua/XML Help 03-03-14, 01:26 PM
Replies: 20
Views: 1,571
Posted By Vrul
Did the texture change for Flametongue Weapon...

Did the texture change for Flametongue Weapon without that spell being on an action bar somewhere?

I can get the Windfury Weapon icon to show up on my level 20 rogue's Sharpening Stone temp enchant...
Forum: Lua/XML Help 03-03-14, 11:12 AM
Replies: 20
Views: 1,571
Posted By Vrul
I leveled an enhancement shaman up to get...

I leveled an enhancement shaman up to get Flametongue Weapon and Windfury Weapon on two different weapons at the same time and they both showed up fine for me using the code I posted earlier. Not...
Forum: Lua/XML Help 03-01-14, 11:35 PM
Replies: 20
Views: 1,571
Posted By Vrul
I leveled a shaman to 10 so I could see what you...

I leveled a shaman to 10 so I could see what you were talking about and I can't explain why that is happening but here is something that works (on a level 10 shaman at least):

local _, class =...
Forum: Lua/XML Help 03-01-14, 06:49 PM
Replies: 20
Views: 1,571
Posted By Vrul
Try: local _, class = UnitClass("player") if...

Try:

local _, class = UnitClass("player")
if class ~= "ROGUE" and class ~= "SHAMAN" then return end

local addonName = ...
local tooltip = CreateFrame("GameTooltip", addonName .....
Forum: Macro Help 02-26-14, 08:32 PM
Replies: 4
Views: 1,115
Posted By Vrul
If I am understanding you correctly you want a...

If I am understanding you correctly you want a macro that changes behavior if shift or ctrl is held down but ignores the alt key?

/use [mod:shift] Y; [mod:ctrl] Z; X

Swap the shift/ctrl part based...
Showing results 1 to 25 of 201