From 4b9ed1155c790678f73f4bb680c6195b083abec4 Mon Sep 17 00:00:00 2001
From: Arcidayne <9382522b@opayq.com>
Date: Tue, 22 Dec 2015 07:26:49 -0800
Subject: [PATCH] New features
---
.../Epic_Not_Here_Counter.xml | 46 +++++++++++++++----
1 file changed, 36 insertions(+), 10 deletions(-)
diff --git a/Epic_Not_Here_Counter/Epic_Not_Here_Counter.xml b/Epic_Not_Here_Counter/Epic_Not_Here_Counter.xml
index c94a8df..79b8ad9 100644
--- a/Epic_Not_Here_Counter/Epic_Not_Here_Counter.xml
+++ b/Epic_Not_Here_Counter/Epic_Not_Here_Counter.xml
@@ -147,17 +147,9 @@ Send("echo ")
enabled="y"
group="Epic_Not_Here"
regexp="y"
- send_to="12"
+ script="update_plugin"
sequence="100"
>
- if not IsPluginInstalled("dff6da0f0c8bd7605fe6a5f4") then
- get_updater()
- else
- local pid = GetPluginID()
- local pfile = GetPluginInfo(pid, 6)
- local pversion = GetPluginInfo(pid, 19)
- CallPlugin("dff6da0f0c8bd7605fe6a5f4", "update_plugin", pid, pfile, pversion, "https://raw.githubusercontent.com/Arcidayne/Aardwolf-Scripts/master/Epic_Not_Here_Counter/Epic_Not_Here_Counter.xml")
- end
pversion then
+ ColourNote("white", "blue", "Updating from version " .. pversion .. " to " .. raw_version .. ". Do not touch anything.")
+ local file = io.open(pfile, "w")
+ file:write(page)
+ file:close()
+ end
+
+ raw_version = nil
+ if "" == GetAlphaOption("script_prefix") then
+ SetAlphaOption("script_prefix", "\\\\\\")
+ end
+
+ Execute(GetAlphaOption("script_prefix").."DoAfterSpecial(1, \"ReloadPlugin('"..GetPluginID().."')\", sendto.script)")
end
]]>