• posted a message on Can I Mog It?

     How to enable transmog icons on the auction house

     

    Disclaimer - I don't really have a great grasp of lua and wow. I basically looked at the existing code and did a bit of trial and error. It seems to be working ok for me but no idea if it will cause any problems down the track.

     

    These instructions will be a lot easier if you use a program like notepad++ that shows line numbers to edit the files. The line numbers take into account each insertion so follow the steps in order.

    this is for version - 7.2.5.01

    open options.lua

    Line 88 insert -

    "AUCTION_ITEM_LIST_UPDATE",

     Line 140 - Remove the 2 dashes in front of self:OnAuctionHouseShow(event, ...)

     

    Line 141 insert -

    self:OnAuctionHouseUpdate(event, ...)

     Save the file.

     

    Open itemOverlay.lua

    Line 186 insert -

    local function AuctionFrame_OnUpdate(self)
         -- Sets the icon overlay for the auction frame.
         -- if calculatedFrames[tostring(self)] then return end
         -- calculatedFrames[tostring(self)] = true
    	if not self then return end
        if not CIMI_CheckOverlayIconEnabled() then
            self.CIMIIconTexture:SetShown(false)
            self:SetScript("OnUpdate", nil)
            return
        end
    
    	local numItems = GetNumAuctionItems("list")
    	local index = self:GetParent():GetID()
    	local itemLink = GetAuctionItemLink("list", index)
    	local text = CanIMogIt:GetTooltipText(itemLink)
    	CIMI_SetIcon(self, AuctionFrame_OnUpdate, CanIMogIt:GetTooltipText(itemLink))
    end

     

    line 395 insert -

    function CanIMogIt.frame:OnAuctionHouseShow(event, ...)
    	-- The button frames don't exist until the auction house is open.
    	if event ~= "AUCTION_HOUSE_SHOW" then return end
    	-- Add hook for the Auction House frames.
    	local offset = FauxScrollFrame_GetOffset(BrowseScrollFrame)
    	
    		for i=1, NUM_BROWSE_TO_DISPLAY do
    			local frame = _G["BrowseButton"..i.."Item"]
    			frame:SetID(i + offset)
    			-- print(i + offset)
    			CIMI_AddToFrame(frame, AuctionFrame_OnUpdate)
    		end
    	-- add hook for scroll event of auction scroll frame
    	
        local hookframe = _G["BrowseScrollFrame"]
        hookframe:HookScript("OnVerticalScroll", VerticalScroll)
    end
    
    function VerticalScroll( self, offset)
        local offset = FauxScrollFrame_GetOffset(BrowseScrollFrame)
    	
    	for i=1, NUM_BROWSE_TO_DISPLAY do
    		local frame = _G["CIMIOverlayFrame_BrowseButton"..i.."Item"]
    		local index = i + offset
    		local itemLink = GetAuctionItemLink("list", index)
    		local text = CanIMogIt:GetTooltipText(itemLink)
    		CIMI_SetIcon(frame, AuctionFrame_OnUpdate, CanIMogIt:GetTooltipText(itemLink))
    	end
    end
    
    function CanIMogIt.frame:OnAuctionHouseUpdate(event, ...)
    	-- The button frames don't exist until the auction house is open.	
    	if event ~= "AUCTION_ITEM_LIST_UPDATE" then return end
    	
    	-- Add hook for the Auction House frames.
    	local offset = FauxScrollFrame_GetOffset(BrowseScrollFrame)
    	
    	-- refresh overlay of buttons created OnAuctionHouseShow function.
    	for i=1, NUM_BROWSE_TO_DISPLAY do
    		local frame = _G["CIMIOverlayFrame_BrowseButton"..i.."Item"]
    		local index = i + offset
    		local itemLink = GetAuctionItemLink("list", index)
    		local text = CanIMogIt:GetTooltipText(itemLink)
    		CIMI_SetIcon(frame, AuctionFrame_OnUpdate, CanIMogIt:GetTooltipText(itemLink))
    	end
    end
    

     

    Save the file and reloadui. Transmog Icons should now display when you search the auction house.

     

     

     

     

     

     

    Link Removed
  • posted a message on Battle Pet BreedID

    I got the same problem. You can fix it by adding this code above line 108 in BattlePetBreedId.lua

     

    nLevel = tonumber(nLevel)

    Line 108 is -

     

    if (nLevel > 2) then

     

    Link Removed
  • posted a message on SavedInstances

    Not sure if this will keep it functioning as normal but this is how I got rid of the error.

    Search for this function

    QuestIsDarkmoonMonthly()

     

    Change

    local name,texture,amount = GetQuestCurrencyInfo("reward",i)

    To

    local name,amount = GetQuestCurrencyInfo("reward",i)

    Change the next line

    if texture:find("_ticket_darkmoon_") then

    to

    if name:find("Darkmoon Prize Ticket") then
    Link Removed
  • posted a message on Yury's RuneDisplay

    I got this working somewhat.

    Open YurysRuneDisplay.lua in notepad

    Change

    RuneButton_Update(_G["YRDRuneButtonIndividual"..runeIndex], runeIndex)

    to

    -- RuneButton_Update(_G["YRDRuneButtonIndividual"..runeIndex], runeIndex)

     

    Change

    RuneButton_Update(_G["YRDRuneButtonIndividual"..i], i, true)

    to

    -- RuneButton_Update(_G["YRDRuneButtonIndividual"..i], i, true)

     

    Change

    CooldownFrame_SetTimer(runeButton.cooldown, start, duration, 1)

    to

    CooldownFrame_Set(runeButton.cooldown, start, duration, 1)

    Link Removed
  • posted a message on Auto Safari Hat

    The new beta isnt working for auto quest accept because you haven't changed the tamerID to a number

    It works if I add

                tamerID=tonumber(tamerID)

    After the following 2 lines

                local _, _, _, _, _, tamerID, _ = strsplit("-", UnitGUID("npc"))

                local _, _, _, _, _, tamerID, _ = strsplit("-", UnitGUID("target"))

    Also auto select of petbattle teams isnt working at all in the beta versions. Ive gone back to 1.31 and made the changes to the GUID to get it working again.

    I have commented out the "if" statement under "--Equip Safari Hat" and everything seems to be ok.

    Link Removed
  • posted a message on Auto Safari Hat

    Thanks.

    You forgot to fix the bug i've listed further down the comments with partial team names.

    I have also had intermittent issues with pet abilities not being set correctly from petbattle teams(even before the patch). It seemed a lot worse when it was throwing the error for the safari hat not being equippable.

    Generally I have found if im mounted and I click the pet tamer twice quickly it can trigger the abilities to not be set. I always make sure I dismount first now but I did notice yesterday that it happened a lot. Most likely due the hat error. I will test it out later today now you have removed the hat code.

    I think a warning that the hat buff is not present is a good work around.

    Link Removed
  • posted a message on Auto Safari Hat

    I have a slight work around that is enabling me to auto accept quests and start pet battles with tamers, it also equips petbattle teams if you have that enabled. I haven't tested it on celestial tournament beasts or fabled beasts.

    replace

                local tamerID = tonumber(UnitGUID("target"):sub(6, 10), 16)

    with

                local _,_,_,_,_,tamerID,_ = strsplit("-",UnitGUID("target"))
                tamerID = tonumber(tamerID)

    Above this section is a similar one where it has "npc" instead of "target". I think this needs to be changed to "creature" and the following lines

    if UnitExists("npc") then -- (Fixes edge case)
    local tamerID = tonumber(UnitGUID("npc"):sub(6, 10), 16)

    replaced with

    if UnitExists("creature") then -- (Fixes edge case)
    local _,_,_,_,_,tamerID,_ = strsplit("-",UnitGUID("creature"))
    tamerID = tonumber(tamerID)

    It still pops up an error because it cant equip the safari hat. I tried changing the code to use it instead but its a protected function from an addon so no luck there.

    As for the rest if it, I dont know enough to remove all the safari hat references so ive just left it.

    Link Removed
  • posted a message on PetJournal Enhanced

     Edit.: Annnnnddd I just noticed someone else already posted a link to a working version... could have saved myself a few hours. They have updated the LibPetJournal which I didnt do so just download their version.

    To get coloured Icons back, open "HookedFunctions.lua" and do a search for "pet.icon:SetDesaturated(0);"

    Change this line to

    --pet.icon:SetDesaturated(0);

    or just delete it.

    Dont know if that will have any other effect....

    Link Removed
  • posted a message on Auto Safari Hat

    There is a bug with partial petBattleTeam names not working.

    Edit AutoSafariHat.lua and change the following line

                if strfind(teamName, name) or teamName == name then

    to

                if strfind(name, teamName) or teamName == name then

    Link Removed
  • To post a comment, please or register a new account.