Buyout toggle included

Contrast_Picker
Arcidayne 9 years ago
parent cacd232ef4
commit 6617609d45

@ -15,7 +15,7 @@
save_state="y" save_state="y"
date_written="2016-03-29 14:40:46" date_written="2016-03-29 14:40:46"
requires="4.80" requires="4.80"
version="1.2" version="1.3"
> >
<description trim="y"> <description trim="y">
<![CDATA[ <![CDATA[
@ -31,6 +31,8 @@ which will then send 'bid 123 3500000'
aucutils update -- This will update the plugin if there are new versions available. aucutils update -- This will update the plugin if there are new versions available.
aucutils buyout <on|off> -- Turns on/off clickable buyouts.
Any questions, send a tell or personal note to Arcidayne! Any questions, send a tell or personal note to Arcidayne!
]]> ]]>
</description> </description>
@ -168,7 +170,8 @@ ColourNote("white", "", "%1 ", "cyan", "", date_end, "white", "", string.rep(" "
send_to="14" send_to="14"
sequence="100" sequence="100"
> >
<send>local bop = string.gsub("%1", ",", "") <send>if BUYOUT_OPTION == 1 then
local bop = string.gsub("%1", ",", "")
local hlink = "lbid " .. marketbidn .. " " .. bop local hlink = "lbid " .. marketbidn .. " " .. bop
for i,v in pairs(TriggerStyleRuns) do for i,v in pairs(TriggerStyleRuns) do
@ -181,7 +184,8 @@ for i,v in pairs(TriggerStyleRuns) do
v.text) v.text)
&#9;end &#9;end
end end
Note ("")</send> Note ("")
end</send>
</trigger> </trigger>
</triggers> </triggers>
@ -212,6 +216,17 @@ Send("%1 " .. amount .. "%4")</send>
sequence="100" sequence="100"
> >
</alias> </alias>
<alias
match="^aucutils buyout (on|off)$"
enabled="y"
group="Auction_Market"
regexp="y"
send_to="12"
sequence="100"
>
<send>if "%1" == "on" then BUYOUT_OPTION = 1 else BUYOUT_OPTION = 0 end
ColourNote("white", "blue", "Turning %1 clickable buyouts!")</send>
</alias>
</aliases> </aliases>
<!-- Script --> <!-- Script -->
@ -222,6 +237,7 @@ Send("%1 " .. amount .. "%4")</send>
function OnPluginInstall() function OnPluginInstall()
PLUGIN_VERSION = GetPluginInfo(GetPluginID(), 19) PLUGIN_VERSION = GetPluginInfo(GetPluginID(), 19)
PLUGIN_NAME = GetPluginInfo(GetPluginID(), 1) PLUGIN_NAME = GetPluginInfo(GetPluginID(), 1)
BUYOUT_OPTION = 1
end end
function update_plugin() function update_plugin()

Loading…
Cancel
Save