From 6617609d45e0fa3e9023d4145cfe2448575cafcf Mon Sep 17 00:00:00 2001
From: Arcidayne <9382522b@opayq.com>
Date: Tue, 29 Mar 2016 19:29:43 -0400
Subject: [PATCH] Buyout toggle included
---
Auction_Utilities/Auction_Utilities.xml | 22 +++++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
diff --git a/Auction_Utilities/Auction_Utilities.xml b/Auction_Utilities/Auction_Utilities.xml
index 856e548..b18a002 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="1.2"
+ version="1.3"
>
-- Turns on/off clickable buyouts.
+
Any questions, send a tell or personal note to Arcidayne!
]]>
@@ -168,7 +170,8 @@ ColourNote("white", "", "%1 ", "cyan", "", date_end, "white", "", string.rep(" "
send_to="14"
sequence="100"
>
- local bop = string.gsub("%1", ",", "")
+ if BUYOUT_OPTION == 1 then
+ local bop = string.gsub("%1", ",", "")
local hlink = "lbid " .. marketbidn .. " " .. bop
for i,v in pairs(TriggerStyleRuns) do
@@ -181,7 +184,8 @@ for i,v in pairs(TriggerStyleRuns) do
v.text)
end
end
-Note ("")
+Note ("")
+end
@@ -212,6 +216,17 @@ Send("%1 " .. amount .. "%4")
sequence="100"
>
+
+ if "%1" == "on" then BUYOUT_OPTION = 1 else BUYOUT_OPTION = 0 end
+ ColourNote("white", "blue", "Turning %1 clickable buyouts!")
+
@@ -222,6 +237,7 @@ Send("%1 " .. amount .. "%4")
function OnPluginInstall()
PLUGIN_VERSION = GetPluginInfo(GetPluginID(), 19)
PLUGIN_NAME = GetPluginInfo(GetPluginID(), 1)
+ BUYOUT_OPTION = 1
end
function update_plugin()