• 0

    posted a message on AutoBar by Toadkiller (official thread)
    Quote from KamikazeIce
    I won't post the files I have just because it's older than the most recent releases.
    I will however list the changes I made to make it work.
    This dosen't fix the missing class spells and abilities, as I don't really know how to do it (I can do basic editing of lua files and nothing more).
    Open each in notepad, and press "CTRL + G" then type in the line number you wanna go to.

    AutoBarSearch.lua, line 39
    AutoBarSearch.subZoneGroup[BZ["Vortex Pinnacle"]] = "BE Plateaus"

    Replace "Vortex Pinnacle" with "The Vortex Pinnacle"


    AutoBarButton.lua, lines 1390 & 1391
    spellNameList["Mangle (Cat)()"], _, spellIconList["Mangle (Cat)()"] = GetSpellInfo(33983)
    spellNameList["Mangle (Cat)()"] = spellNameList["Mangle (Cat)()"] .. "()"

    I just commented each line out, but deleting them should give the same result.


    Each Time There is a new Patch out I just download the newest code. If people have the newest build r799. You have to find some of the newest update spellID codes.

    I do know that some of the spellID's for Ice Armor and Demonic Armor, and for the Mangle Cat where different. this information is based on comparing WoWHead 3.3.5 vs Cata builds 4.0.1+.

    I will update this post when i get my new GFX.
    Posted in: General AddOns
  • 0

    posted a message on Lua Expressions / Patterns
    Thank You for your quick replay, your fix made the match statement work.
    Posted in: Lua Code Discussion
  • 0

    posted a message on Lua Expressions / Patterns
    OK people i trying to make a a expression / pattern to check loot that is pass-though using CHAT_MSG_LOOT.

    This is what i have

    [PHP]
    string.match("VV receives loot: [Emblem of Triumph]x3.", "(.+) receive[s]? loot: (.+)x(%d+)%.")
    [/PHP]

    It currenty return this:
    VV [Emblem of Triumph] 3

    But when i remove the x3 so that they would only loot 1 it nils out

    [PHP]
    string.match("VV receives loot: [Emblem of Triumph].", "(.+) receive[s]? loot: (.+)x(%d+)%.")
    [/PHP]

    It would return this:
    nil

    I have it configured to check the player and other peoples loot, i used the optional (?) before but i can't get it to work properly for the cunter.
    Any help would be great.

    Liquid-Projects.Net
    Posted in: Lua Code Discussion
  • 0

    posted a message on UIDropDownMenuTemplate
    OMG, thank you for you quick response, I have been stumped for days trying to get the correct API call

    Thanks,
    Jon
    Posted in: Lua Code Discussion
  • 0

    posted a message on UIDropDownMenuTemplate
    I have been trying to create a UIDropDownMenuTemplate Item in lua, the problem that im having is that when i place the control on the parent frame the wide and height wont change. and Im trying to set the drop-down text, but I don't know if im using the wrong command or some thing.

    GemMatsFrame_Expan = CreateFrame("Frame", "Liquid-Gems_Main_GemMats_Expan", GemMatsFrame, "UIDropDownMenuTemplate")
    	GemMatsFrame_Expan:SetWidth(300,GemMatsFrame)
    	GemMatsFrame_Expan:SetHeight(75,GemMatsFrame)
    
    	GemMatsFrame_Expan:SetPoint("LEFT",GemMatsFrame, 0, 0)
    	-- local info = {}
    	-- GemMatsFrame_Expan.initialize = function(self, level)
    		-- if not level then return end
    		-- wipe(info)
    		-- if level == 1 then
    			-- info.text = "Omen Quick Menu"
    			-- info.value="Omen Quick Menu"
    			-- info.func = function()
    			-- GemMatsFrame_Expan.text="Omen Quick Menu"
    			-- Print("Testing")
    			-- end
    			-- UIDropDownMenu_AddButton(info, level)
    		-- end
    	-- end
    


    Thanks,
    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.