From 1004944cc32af60e15574130a0762035b0c17729 Mon Sep 17 00:00:00 2001 From: Dillon Date: Sat, 16 Feb 2019 03:00:51 -0500 Subject: [PATCH] Upload files to '' More user friendly version for envenom. Great work by Trachx --- Watchmen_Envenomer.xml | 248 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 248 insertions(+) create mode 100644 Watchmen_Envenomer.xml diff --git a/Watchmen_Envenomer.xml b/Watchmen_Envenomer.xml new file mode 100644 index 0000000..2b5c740 --- /dev/null +++ b/Watchmen_Envenomer.xml @@ -0,0 +1,248 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ColourNote ("lime", "", "Deleted " .. #queue .. " outstanding item(s) from the queue.") + queue = {} -- queue is now empty + + + + + + if #queue == 0 then + ColourNote ("red", "", "Pending envenom queue is empty") + return + end -- if + + ColourNote ("lime", "", "Envenom queue:") + for k, v in ipairs (queue) do + ColourNote ("yellow", "", v.name .. ", " .. v.id .. ", " .. v.giver) + end -- for + ColourNote ("lime", "", #queue .. " outstanding item(s) in the envenom queue.") + + + + + + if #queue == 0 then + ColourNote ("red", "", "Pending envenom queue is empty") + return + end -- if + + item = table.remove(queue, 1) + + ColourNote ("lime", "", "Removed item ID: " .. item.id .. " from " .. item.giver) + + + + + + if #queue == 0 then + ColourNote ("red", "", "Pending envenom queue is empty") + return + end -- if + + item = queue[1] + + state = 16 + Send ("envenom " .. item.id) + + + + + + + + + + + + + + + + + + +