From 6705b9627773e56df3734807f06b10282cd759a3 Mon Sep 17 00:00:00 2001 From: rilgamon Date: Thu, 4 Mar 2021 23:55:32 +0100 Subject: [PATCH] Moved to linux --- README.md | 16 +-- core.lua | 270 ++++++++++++++++++++++++------------------------- zzAuctions.toc | 8 +- 3 files changed, 147 insertions(+), 147 deletions(-) mode change 100644 => 100755 README.md mode change 100644 => 100755 core.lua mode change 100644 => 100755 zzAuctions.toc diff --git a/README.md b/README.md old mode 100644 new mode 100755 index f215953..1761d91 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# zzAuctions - -Quality of Life improvements for auction house - -- Quick post from Auctionsoverview by clicking itembutton (picture at the top) -- Adjust price by itemlevel (default blizz uses the lowest price regardless the itemlevel) - -#### Links +# zzAuctions + +Quality of Life improvements for auction house + +- Quick post from Auctionsoverview by clicking itembutton (picture at the top) +- Adjust price by itemlevel (default blizz uses the lowest price regardless the itemlevel) + +#### Links [Releases](https://git.grml.de/rilgamon/zzAuctions/releases "Releases") | [Source](https://git.grml.de/rilgamon/zzAuctions "Source") | [Bugs&Comments](https://git.grml.de/rilgamon/zzAuctions/issues "Bugs&Comments") | [Donate](https://liberapay.com/bundesloser "Donate") | [Contact](https://mastodon.grml.de/@robin "Contact") \ No newline at end of file diff --git a/core.lua b/core.lua old mode 100644 new mode 100755 index a5a9843..782055d --- a/core.lua +++ b/core.lua @@ -1,136 +1,136 @@ -local addonName, addon = ... -local events = addon['events'] or CreateFrame("FRAME") -local prices, pricesIlvl -local function getItem() - return AuctionHouseFrame.CommoditiesSellFrame.ItemDisplay.ItemButton:GetItemLocation() or AuctionHouseFrame.ItemSellFrame.ItemDisplay.ItemButton:GetItemLocation() -end -local function hookItem(self, ...) --- print('hook') - local il = getItem() - if(il) then - if(il:IsValid() and il:IsBagAndSlot()) then - local bid = C_Item.GetItemID(il) - if(bid) then - -- print("hook",self:GetName(), ...) - -- print(AuctionHouseFrame.CommoditiesSellFrame.ItemDisplay.ItemButton:GetItemLocation()) - -- print(AuctionHouseFrame.ItemSellFrame.ItemDisplay.ItemButton:GetItemLocation()) - if(C_AuctionHouse.GetItemCommodityStatus(il) and prices[bid]) then --- print("CPrice", prices[bid]) - else - local lvl = C_Item.GetCurrentItemLevel(il) - -- print(lvl) --- print("Price",lvl,pricesIlvl[bid][lvl]) - if(lvl and pricesIlvl[bid] and pricesIlvl[bid][lvl]) then - AuctionHouseFrame.ItemSellFrame.PriceInput:SetAmount(pricesIlvl[bid][lvl]) - end - end - end - end - end -end -function events:ITEM_SEARCH_RESULTS_UPDATED(event, item) - local itemID = item['itemID'] --- print("id",itemID) - if(itemID) then - pricesIlvl[itemID] = {} - end --- pricesIlvl[item['itemID']][item['itemLevel']] = 0 - for i = 1, C_AuctionHouse.GetNumItemSearchResults(item) do - local result = C_AuctionHouse.GetItemSearchResultInfo(item, i) - - if(result and result.buyoutAmount) then - local itemKey = result['itemKey'] - local itemlevel = itemKey.itemLevel - if(itemlevel and not pricesIlvl[itemID][itemlevel]) then - pricesIlvl[itemID][itemlevel] = 0 - end --- print(itemlevel, pricesIlvl[itemID][itemlevel], result.buyoutAmount,result.buyoutAmount