• 0

    posted a message on AdiBags - a bag addon
    Is there any way to search in PeriodicTable-3.1 for an Item by itemID or itemName? Or is there a way to add items to a manual filter without having that item actually?

    I want to create a filter to put all 58 Fortune Cards exept Mysterious Fortune Card in the Junk category.
    Posted in: General AddOns
  • 0

    posted a message on Getting Variables from SpellDescription
    This is what i use now for escaping the pattern, before replacing the variables:
    [FONT=Courier New]string.gsub(pattern, "([%^%(%)%%%.%[%]%*%+%-%?])", "%%%1")
    [FONT=Verdana]
    Note that the '$' is also magic character for pattern matching and thus should normaly be escaped too.
    [/FONT][/FONT][FONT=Courier New][FONT=Verdana]It's missing in my the statement since i replace any occurences of it later anyways.[/FONT]
    [/FONT]
    Posted in: Lua Code Discussion
  • 0

    posted a message on Getting Variables from SpellDescription
    D'oh! Indeed the problem is due to the '%' character used in the spell descriptions of Devouring Plague and Vampiric Touch which i haven't escaped properly. At least this code is running now.

    Just have to say thanks to both of you for the advice. :!:
    Posted in: Lua Code Discussion
  • 0

    posted a message on Getting Variables from SpellDescription
    GetSpellDescription is part of the default WoW-API (But undocumented on wowprogramming or wowwiki). It takes a SpellId as Argument, and returns the description string of the spell with variables in it.

    /script print(GetSpellDescription(589)) should print in default chat:[FONT=System]
    [FONT=Courier New]A word of darkness that causes $o1 Shadow damage over $d.

    [FONT=Verdana]And this is the string i take to replace [/FONT][/FONT][/FONT][FONT=Verdana]all instances of "$o1" to "(.+)" then change all instances of "$d" to "(.+)" to use it as a pattern to search in the real spell description i recieved from the tooltip.
    [/FONT][FONT=Verdana]
    [/FONT]
    Also, "." is not part of a number to be captured with "%d".
    Im not using a %d in my pattern to capture anything?!?
    (.+) should match all text that the gameclient filled the $vars with. So for the dmg potion of the spell this is only a number, but for the duration this is a number, that could contain a "." (or "," depending on Localisation) and has a localized string for seconds in it.

    Lastly, that's the worst implementation of anything ever. You're leaking globals and making new tables and functions every time GetSpellVars() is called.
    Hmm, thanks. I'm not very expirenced when it comes to lua :|
    I don't even know what you mean with leaking globals in the code.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Getting Variables from SpellDescription
    After hours of searching for my fault, i simply don't get why my function finds variables correct with my first test Spell (Shadow Word: Pain) but doesn't find these for other Spells.
    Any help would be greatly appreciated.



    This is the function:
    local GetSpellVarsTooltip = CreateFrame( "GameTooltip", "GetSpellVarsTooltip", UIParent, "GameTooltipTemplate" );
    function GetSpellVars(spellId)
        GetSpellVarsTooltip:SetOwner(UIParent, "ANCHOR_NONE")
        GetSpellVarsTooltip:SetSpellByID(spellId);
        local spellDescription = GetSpellVarsTooltipTextLeft4:GetText();
        local totalDmg, tickTime
        local switchCaseTable = {
            [589] = function (x)        -- Shadow Word: Pain
                    pattern = string.gsub(string.gsub(x, "(%$o1)", "(.+)"), "(%$d)", "(.+)")
                    _, _, totalDmg, tickTime = string.find(spellDescription, pattern)
                end,
            [2944] = function (x)        -- Devouring Plague
                    pattern = string.gsub(string.gsub(x, "(%$o1)", "(.+)"), "(%$d)", "(.+)")
                    _, _, totalDmg, tickTime = string.find(spellDescription, pattern)
                end,
            [34914] = function (x)        -- Vampiric Touch
                    pattern = string.gsub(string.gsub(x, "(%$34914o2)", "(.+)"), "(%$d)", "(.+)")
                    _, _, totalDmg, tickTime = string.find(spellDescription, pattern)
                end,
        }
        
        if (switchCaseTable[spellId]) then
            local spellDescriptionPattern = GetSpellDescription( spellId )
            switchCaseTable[spellId]( spellDescriptionPattern )    
    
            print("Search in Text: "..spellDescription)
            print("With Pattern: "..pattern)
            print("Returns Matches: ")
            print(totalDmg)
            print(tickTime)
    
        end
    
    end
    /script GetSpellVars(589)
    Prints the following in Chat: (expected Output)
    Search in Text: A word of darkness that causes 5808 Shadow damage over 19.13 sec.
    With Pattern: A word of darkness that causes (.+) Shadow damage over (.+).
    Returns Matches: 
    5808
    19.13 sec
    /script GetSpellVars(2944)
    Prints the following in Chat: (unexpected Output)
    Search in Text: Afflicts the target with a disease that causes 6800 Shadow damage over 23.91 sec. 15% of damage caused by the Devouring Plague heals the caster. This spell can only affect one target at a time.
    With Pattern: Afflicts the target with a disease that causes (.+) Shadow damage over (.+). 15% of damage caused by the Devouring Plague heals the caster. This spell can only affect one target at a time.
    Returns Matches: 
    nil
    nil
    /script GetSpellVars(34914)
    Prints the following in Chat: (unexpected Output)
    Search in Text: Causes 7746 Shadow damage over 14.35 sec, and when you deal damage with Mind Blast to an affected target you cause up to 10 party or raid members to gain 1% of their maximum mana per 10 sec.
    With Pattern: Causes (.+) Shadow damage over (.+), and when you deal damage with Mind Blast to an affected target you cause up to 10 party or raid members to gain 1% of their maximum mana per 10 sec.
    Returns Matches: 
    nil
    nil
    Posted in: Lua Code Discussion
  • 0

    posted a message on Shadowed Unit Frames [official]
    Quote from Loenitid
    Two bugs I cannot find an answer for. The first involves the range indicator; sometimes the frame will still be shaded even though I am in range. Reloading the ui, or a zone change fixes that. [...]

    I recently switched from pitbull to SUF because of pitbulls lack of support for boss frames. Quiet happy so far, but
    I'm also experiencing the bug i quoted - though a zone change wont fix it.
    Raided last night Nefarian and ran into this while i wanted to know if Onyxia is in range to apply dots to her.

    Edit: Ahh - i may have gotten the posting i quoted wrong. According to ticket #308 in the tracking system a zone change re-enables the bug. Ticket #295 is also about the range indicator, but i don't think that this one applies to the issue i'm having with it.
    Posted in: Unit Frames
  • 0

    posted a message on Gnosis Castbars - Official Thread
    Tested with the latest version (r175) and it doesn't seem to have changed. Still the same behavior i described in the posting you quoted.

    Edit: I'm about to go to bed now - but i've seen that r176 mentioned changes to staticdur behaviour in it's changelog. I'm going to try this version later when the europeen servers are back.
    Posted in: General AddOns
  • 0

    posted a message on Gnosis Castbars - Official Thread
    Thanks for the fixes for the zooming & static duration feature. I've setup a lot Gnosis-bars last weekend :!:
    Right now i've 3 multitimer bars (for a couple of targets) setup with:
    Bar1: dot,mine,recast=3.0,staticdur=25,zoom=3:Devouring Plague
    Bar2: dot,mine,recast=3.0,staticdur=25,zoom=5:Vampiric Touch
    Bar3: dot,mine,recast=3.0,staticdur=25,zoom=3:Shadow Word: Pain
    wich are working fine so far, but if i change staticdur to a value lower than 25 i would expect a different behavior:

    Lets say i would change it on each bar to 12: By setting this i would expect bars with a duration left greater than 12 to stay full until the duration falls below 12.
    In reality Gnosis shows these Bars like without the staticdur setting by setting their maxduration = debuffduration since all debuffs are lasting longer than 12 seconds. Is this working like intended?

    However - i really love gnosis for the zoomfeature wich i haven't seen on any other barmod so far! Keep up the great work!
    Posted in: General AddOns
  • 0

    posted a message on Gnosis Castbars - Official Thread
    Hi there. I want to thank you for not only this great mod, but also for MFClip wich i really like a lot. However, i'm having few issues setting Gnosis up the way i want it to be.
    I'd like to setup a few Multitimers using the zooming & static duration feature at once, but both options are simply not working. I issued tickets about the defect about 2 weeks ago, but haven't seen any comments on them. So i came here and like to ask for help with theses issues.
    Posted in: General AddOns
  • 0

    posted a message on LuaTexts Official Thread
    Hello,

    I'm having trouble to setup Pitbull Auras like shown in the Picture below: (Exchanging Buffs & Debuffs position depending on friendly or enemy Target)



    My first approch was to setup a custom Aura in the Aura Filter Editor to suit my needs: For Testing i 've set up a new AuraFilter using [FONT=Courier New]Display when: Always[/FONT], [FONT=Courier New]Filter type: Meta[/FONT] and [FONT=Courier New]Filter: Buffs AND None[/FONT]
    Using this filter for both my Buffs & Debuffs i expected to see buffs on both indicators. But the result was that buffs are still only shown on the buff Indicator. So i guess its not possible to show buffs on the debuff indicator as these are allready filtered out before.

    So i came up with the idea that it might be possible to do this within a Lua:Text - exchanging the aura settings of buffs and debuffs in the script. I searched this thread for 'Anchor' but found nothing.

    Can someone please give me a hint how/if it possible to change the setting by using Lua:Text?
    Posted in: Unit Frames
  • 0

    posted a message on PassLoot - Official thread
    Just searched for an addon with the possibilities PassLoot offers this week and im very satisfied i found this one. I really like it alot.

    I'd like to ask if it would be possible to add auctioneer and/or enchantrix itemdata to the rule settings. (perhaps in a standalone plugin?)

    Because i'd like to setup rules to roll disenchant or greed depending on the approximate disenchant value of an item.
    As an example i'd like to roll greed if the vendor value of the Item is greater than the disenchant value, and disenchant if the disenchant value is greater that the vendor value.
    Posted in: General AddOns
  • 0

    posted a message on Prat 3.0 Chat Mod Framework
    I'd like to anchor my Chatframes to the top of the screen. Is there a way to change the Chattab location from Top to Bottom of the Chatframe? Or maybe even Left/Right could look also great.

    I've searched for a way to move em, but if Prat supports this functionallity i haven't found it so far. Any help is appreciated.
    Posted in: General AddOns
  • 0

    posted a message on Get Savedvariables sorted a in deterministic way?
    Hi there,

    I decided to autosync my Interface and my WTF folders between my desktop pc and my notebook. Works like a charme so far if both PCs are active and in the same LAN, and also works if one is offline or they are at different locations using a free internetstorage. So, thats not the problem, but i discovered an anoying thing if data is synced over the internet:

    The structure inside a savedvariables file is often changed uppon logout, even if settings aren't changed ingame. Here is an example from DBM Savedvars:

    Before logout:
    DBM_SavedOptions = {
      (...)
      ["WarningColors"] = {
            {
                ["r"] = 0.4,
                ["g"] = 0.8,
                ["b"] = 1.0,
            } ,
      (...)
    And after logout:
    DBM_SavedOptions = {
      (...)
      ["WarningColors"] = {
            {
                ["g"] = 0.8,
                ["r"] = 0.4,
                ["b"] = 1.0,
            } ,
      (...)
    Thus, leading to a different filechecksum. An because the checksum is changed, the file is automatically uploaded to the onlinestorage. (And downloaded again on my other mashine when it is turned on.)
    Would be nice if there is a way to sort variables before logout in an deterministic way, so these files would not have to be transmitted - thus speeding the syncing-process up.

    Though, i think i found a statment over at Auctioneer FAQ wich applies to my case:
    "Please note that we also have no control over the actual layout or sorting in the saved variables file; this, too, is controlled entirely by the WoW client."
    Is this entirely true, or does someone have suggestions?



    - Twister
    Posted in: Lua Code Discussion
  • 0

    posted a message on PitBull_AltAura
    Horray! At least i'm not alone :P
    Posted in: Unit Frames
  • 0

    posted a message on [Grid] GridDynamicZoneSwitch
    I've got backups of my layout, an i love to see Jerrys branch finaly merged to the trunk version. Thats exact why i came up to test GridDynamicZoneSwitch, because with pets my custom layout have to differentiate by raidsize (40, 25, 15, 10, 5(for Arena)) and i would like to see these layout switches done automatically.

    Just encountered another strange thing with GridDynamicZoneSwitch profile switch:
    My standard profile is Class:Priest on my main and Class:Druid on my alt, however in GridDynamicZoneSwitch i could only select to switch to the default profile.

    Anyway, have fun in India :)
    Posted in: Grid & Grid2
  • To post a comment, please or register a new account.