Showing results 1 to 22 of 22
Search took 0.00 seconds.
Search: Posts Made By: daylesan
Forum: Lua/XML Help 04-16-11, 02:55 PM
Replies: 6
Views: 4,218
Posted By daylesan
May i suggest a simpler code structure: L =...

May i suggest a simpler code structure:


L = {}
L["anraphet"] = {
["Anraphet unit shutting down..."] = "Sound\\Creature\\Anraphet\\VO_HO_Anraphet_Death01.ogg",
["Purge of unauthorized...
Forum: General Authoring Discussion 04-16-11, 12:35 PM
Replies: 7
Views: 4,515
Posted By daylesan
Hooking the OnUpdate script is the way to go then?

Hooking the OnUpdate script is the way to go then?
Forum: General Authoring Discussion 04-16-11, 05:11 AM
Replies: 7
Views: 4,515
Posted By daylesan
Unable to change certain nameplate properties

A nameplate frame has 11 regions and 2 child frames (statusbars) associated with it.

I have some code that successfully changes the textures, but can't seem to change the size or anchor points of...
Forum: Lua/XML Help 04-10-11, 01:15 AM
Replies: 5
Views: 6,496
Posted By daylesan
Thanks guys For other people interested in this,...

Thanks guys

For other people interested in this, I found out that ACTIVE_CHAT_EDIT_BOX is nil if the user is not actually typing something into the chat edit box. The chat edit box is where you type...
Forum: Lua/XML Help 04-09-11, 12:05 PM
Replies: 5
Views: 6,496
Posted By daylesan
Getting the currently active chat frame

I want to add a message into whatever chat window the user has switched to. I currently use this but "last active" isn't quite the same as the currently active one... there's probably a better way to...
Forum: Lua/XML Help 04-04-11, 04:57 AM
Replies: 7
Views: 4,759
Posted By daylesan
We can't really help if you don't show us the...

We can't really help if you don't show us the code that is giving you problems.

It's also hard to help if your post is a wall of text that shifts focus every few lines.
Forum: Lua/XML Help 03-28-11, 11:27 AM
Replies: 2
Views: 5,801
Posted By daylesan
Recognizing Aura Mastery's interrupt immunity

I want my addon to recognize when player's (hostile) target is immune to interrupt effects due to Aura Mastery.

This sounds easy at first, but after looking into it for a while it seems very tricky,...
Forum: General Authoring Discussion 03-26-11, 05:21 AM
Replies: 2
Views: 3,877
Posted By daylesan
Thanks for the excellent answer.

Thanks for the excellent answer.
Forum: General Authoring Discussion 03-25-11, 02:10 PM
Replies: 2
Views: 3,877
Posted By daylesan
Desired addon structure for modules

If I wanted to create a module for an addon, and said module controlled whether or not (or how) some of the addon's functions execute, which would be the best approach?

Say I have this in my...
Forum: Lua/XML Help 03-24-11, 02:57 PM
Replies: 8
Views: 5,816
Posted By daylesan
if (expires == nil) then ...

if (expires == nil) then
sbBarStatus:SetValue(0)
sbBar:Hide()
end

If I'm reading this right, the above is why you can't see the bar. The variable expires is nil because, being a local, it...
Forum: Lua/XML Help 03-22-11, 05:47 AM
Replies: 9
Views: 11,458
Posted By daylesan
The raid icon is correctly recognized if present,...

The raid icon is correctly recognized if present, but another problem appeared.

Once recognized, the raid icon is added to the destName string which is then processed into a message to be shown in...
Forum: Lua/XML Help 03-22-11, 03:18 AM
Replies: 9
Views: 11,458
Posted By daylesan
Mystery unraveled.

Mystery unraveled.
Forum: Lua/XML Help 03-21-11, 04:19 PM
Replies: 9
Views: 11,458
Posted By daylesan
Thanks for the tip Vrul. I still can't get this...

Thanks for the tip Vrul.

I still can't get this to work though. print(tostring(raidIconIndex)) is nil no matter what code I try.
Forum: Lua/XML Help 03-21-11, 11:32 AM
Replies: 9
Views: 11,458
Posted By daylesan
There's a small error: bit.band(flag,...

There's a small error: bit.band(flag, COMBATLOG_OBJECT_SPECIAL_MASK) should be bit.band(flags, COMBATLOG_OBJECT_SPECIAL_MASK)

Even after fixing that, the function always returns nil though. Here's...
Forum: Lua/XML Help 03-21-11, 09:12 AM
Replies: 9
Views: 11,458
Posted By daylesan
Thank you, that looks a lot cleaner than what I...

Thank you, that looks a lot cleaner than what I had in mind.
Forum: Lua/XML Help 03-21-11, 04:35 AM
Replies: 9
Views: 11,458
Posted By daylesan
Get raid target icon from destGUID

I want to check if a unit (identified through the destGUID parameter) from a COMBAT_LOG_EVENT_UNFILTERED event has been marked with a raid marker.

Is there a better/simpler way of doing it than...
Forum: Lua/XML Help 03-20-11, 09:15 AM
Replies: 7
Views: 5,273
Posted By daylesan
Localizing global functions?

I see other addon devs do this and am wondering why. Here's an example from Omen


Is this done to optimize performance?
Forum: General Authoring Discussion 03-18-11, 02:59 PM
Replies: 12
Views: 5,569
Posted By daylesan
G01_Core.lua line 14 or earlier if I'm not...

G01_Core.lua line 14 or earlier if I'm not mistaken.

This might be relevant to your error also.


http://www.wowwiki.com/API_next
Forum: General Authoring Discussion 03-16-11, 03:49 AM
Replies: 7
Views: 6,638
Posted By daylesan
I did some testing with this: function...

I did some testing with this:

function OnEvent(self, ...)
local args = {...}
local msg = GetTime()
for i,v in ipairs(args) do
msg = msg.." "..tostring(v)
end
print(msg)
end
Forum: General Authoring Discussion 03-15-11, 04:24 PM
Replies: 7
Views: 6,638
Posted By daylesan
As for the purpose of my addon: it shows an icon...

As for the purpose of my addon: it shows an icon and plays a sound when a cast *can* be interrupted. That should include when casts become interruptible/uninterruptible halfway through as well.

It...
Forum: General Authoring Discussion 03-15-11, 04:17 PM
Replies: 7
Views: 6,638
Posted By daylesan
Apologies for not being clear on that. The above...

Apologies for not being clear on that. The above is an Ace way of registering for events and handling them, which works fine for my other events. I'm not concerned about the code per se though, for...
Forum: General Authoring Discussion 03-15-11, 07:09 AM
Replies: 7
Views: 6,638
Posted By daylesan
UNIT_SPELLCAST_INTERRUPTIBLE erratic behaviour

I want to implement UNIT_SPELLCAST_INTERRUPTIBLE and UNIT_SPELLCAST_NOT_INTERRUPTIBLE into my addon.

The issue I'm having is that these events never trigger when a cast becomes...
Showing results 1 to 22 of 22