From 505a5747caedf09b4d5e2dd52d1a65c30074dc71 Mon Sep 17 00:00:00 2001 From: Arcidayne <9382522b@opayq.com> Date: Thu, 14 Apr 2016 00:54:15 -0400 Subject: [PATCH] New features, bug fixes --- Auction_Utilities/Auction_Utilities.xml | 278 +++++++++++++++++++----- 1 file changed, 227 insertions(+), 51 deletions(-) diff --git a/Auction_Utilities/Auction_Utilities.xml b/Auction_Utilities/Auction_Utilities.xml index ae36da5..e0accf3 100644 --- a/Auction_Utilities/Auction_Utilities.xml +++ b/Auction_Utilities/Auction_Utilities.xml @@ -15,7 +15,7 @@ save_state="y" date_written="2016-03-29 14:40:46" requires="4.80" - version="2.54" + version="2.55" > send_to="12" sequence="100" > - marketbidn, bop = nil, nil -marketbidn = "%1" + marketbidn = "%1" EnableTrigger("BuyoutLink", true) EnableTrigger("CurrentBid", true) @@ -110,12 +109,13 @@ EnableTrigger("CurrentBid", true) > local bida = "bid" if "%1" == "Market" then bida = "lbid" elseif "%1" == "Remort Auction" then bida = "rbid" end +marketbidn = "%2" for i,v in pairs(TriggerStyleRuns) do if v.text:gsub(" ", "") == "%2" then - --Hyperlink("!!381ff501f4f32c86cc30ad4c:" .. bida .. "_capture(%1)", "%1", bida .. "%1", RGBColourToName(v.textcolour), RGBColourToName(v.backcolour), 0) + Hyperlink("!!381ff501f4f32c86cc30ad4c:" .. bida .. "_capture(%2)", "%2", bida .. "%2", RGBColourToName(v.textcolour), RGBColourToName(v.backcolour), 0) - Hyperlink(bida .. " %2", v.text, "", RGBColourToName(v.textcolour), RGBColourToName(v.backcolour), 0) + --Hyperlink(bida .. " %2", v.text, "", RGBColourToName(v.textcolour), RGBColourToName(v.backcolour), 0) else ColourTell (RGBColourToName (v.textcolour), @@ -134,11 +134,13 @@ Note ("") send_to="14" sequence="100" > - for i,v in pairs(TriggerStyleRuns) do + marketbidn = "%1" + + for i,v in pairs(TriggerStyleRuns) do if v.text == "%1" then - --Hyperlink("!!381ff501f4f32c86cc30ad4c:bid_capture(%1)", "%1", "bid %1", RGBColourToName(v.textcolour), RGBColourToName(v.backcolour), 0) + Hyperlink("!!381ff501f4f32c86cc30ad4c:bid_capture(%1)", "%1", "bid %1", RGBColourToName(v.textcolour), RGBColourToName(v.backcolour), 0) - Hyperlink("bid %1", "%1", "", RGBColourToName(v.textcolour), RGBColourToName(v.backcolour), 0) + --Hyperlink("bid %1", "%1", "", RGBColourToName(v.textcolour), RGBColourToName(v.backcolour), 0) else ColourTell (RGBColourToName (v.textcolour), RGBColourToName (v.backcolour), @@ -156,24 +158,14 @@ Note ("") send_to="12" sequence="100" > - function get_date(days, hours, minutes, seconds) - daysec = days*86400 - hoursec = hours*3600 - minsec = minutes*60 - - totalsecs = daysec+hoursec+minsec+seconds - - return os.date('(%H:%M %b %d)', os.time()+totalsecs) -end - -local aucd, auch, aucm, aucs = 0, 0, tonumber("%4"), tonumber("%5") + local aucd, auch, aucm, aucs = 0, 0, tonumber("%4"), tonumber("%5") if "%2" ~= "" then aucd = tonumber("%2") end if "%3" ~= "" then auch = tonumber("%3") end -local date_end = get_date(aucd, auch, aucm, aucs) +date_end = get_date(aucd, auch, aucm, aucs) -ColourNote("white", "", "%1 ", "cyan", "", date_end, "white", "", string.rep(" ", string.len("%6")-string.len(date_end)-1) .. "|") +--ColourNote("white", "", "%1 ", "cyan", "", date_end, "white", "", string.rep(" ", string.len("%6")-string.len(date_end)-1) .. "|") - local bop = string.gsub("%1", ",", "") + bop = string.gsub("%1", ",", "") local hlink = "lbid " .. marketbidn .. " " .. bop -for i,v in pairs(TriggerStyleRuns) do +--[[for i,v in pairs(TriggerStyleRuns) do if v.text:gsub(" ", "") == "%1" and BUYOUT_OPTION == 1 then Hyperlink(hlink, "%1", "", RGBColourToName(v.textcolour), RGBColourToName(v.backcolour), 0) ColourTell("", "", string.rep(" ", v.text:len() - string.len("%1"))) @@ -199,15 +192,42 @@ for i,v in pairs(TriggerStyleRuns) do v.text) end end -Note ("") +Note ("")]]-- + + +