You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

146 lines
2.9 KiB

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Monday, November 30, 2015, 8:44 PM -->
<!-- MuClient version 4.96 -->
<!-- Plugin "LuaLoader" generated by Plugin Wizard -->
<muclient>
<plugin
name="LuaLoader"
author="KoopaTroopa"
id="327a6b28fb4470f248955cda"
language="Lua"
purpose="Load KoopaPlugins"
date_written="2019-02-27 20:44:07"
requires="4.30"
version="1.0"
>
<description trim="y">
<![CDATA[
-----------------------------------------------------------------------------
This is how we roll
-----------------------------------------------------------------------------
]]>
</description>
</plugin>
<!-- Get our standard constants -->
<include name="constants.lua"/>
<triggers>
</triggers>
<aliases>
<alias
name="LuaBaseLoad1"
match="^llload$"
regexp="y"
enabled="y"
sequence="100"
script="load"
>
</alias>
<alias
name="LuaBaseReload"
match="^llreload$"
regexp="y"
enabled="y"
sequence="100"
script="reload"
>
</alias>
<alias
name="LuaBaseUnload"
match="^llunload$"
regexp="y"
enabled="y"
sequence="100"
script="timebomb"
>
</alias>
<alias
name="LuaBaseList"
match="^lllist$"
regexp="y"
enabled="y"
sequence="100"
script="list"
>
</alias>
</aliases>
<script>
local http = require("socket.http")
local https = require 'ssl.https'
function load()
msg = "Please paste the codestring Koopa has asked you to load into the box below."
title = "Feed Me!"
--string = utils.inputbox ( msg, title, default, font, fontsize, extras )
string = "https://watchmenclan.com/rrep/code.lua"
--Note(string)
if string.find(string, "https://") then
response = https.request( string )
if response ~= nil then
if string.find(response, "Koopa") then
f = assert (loadstring (response))
f ()
else
Note("The URL did not contain the correct validation sequence")
end
else
Note("Error: The response from the server is not valid")
end
else
Note("Error: The URL supplied is not valid")
end
end
function list()
for k, v in pairs (GetTriggerList()) do
Note("k = "..k.." v = " .. v)
end
for k, v in pairs (GetAliasList()) do
Note("k = "..k.." v = " .. v)
end
end
function unload()
process = nil
end
function reload()
timebomb()
load()
end
function OnPluginLineReceived( line )
if process~=nil then process(line) end
end
function OnPluginInstall()
ColourNote("white", "", "----------------------------------------------------------------------")
ColourNote("steelblue", "", " Koopa's LuaLoader installed. Type ", "white", "", "llload", "steelblue", "", " to load a script-string.")
ColourNote("white", "", "----------------------------------------------------------------------")
end
function timebomb()
--nothing here
end
</script>
</muclient>