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.

151 lines
3.0 KiB

6 years ago
<?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 -->
6 years ago
<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"
6 years ago
match="^llload$"
regexp="y"
enabled="y"
sequence="100"
script="load"
>
</alias>
<alias
name="LuaBaseReload"
match="^llreload$"
regexp="y"
enabled="y"
sequence="100"
6 years ago
script="reload"
>
</alias>
<alias
name="LuaBaseUnload"
6 years ago
match="^llunload$"
regexp="y"
enabled="y"
sequence="100"
script="timebomb"
6 years ago
>
</alias>
<alias
name="LuaBaseList"
match="^lllist$"
regexp="y"
enabled="y"
sequence="100"
script="list"
>
</alias>
6 years ago
</aliases>
<script>
local http = require("socket.http")
local https = require 'ssl.https'
function load()
6 years ago
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 )
any, name = CallPlugin("3e7dedbe37e44942dd46d264","gmcpval","char.base.name")
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
6 years ago
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
6 years ago
end
function unload()
process = nil
end
function reload()
timebomb()
load()
end
6 years ago
function OnPluginLineReceived( line )
if process~=nil then process(line) end
end
function OnPluginDisable ()
timebomb()
end
6 years ago
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
6 years ago
</script>
</muclient>