parent
7f21757ec5
commit
e4f9eb5725
@ -0,0 +1,95 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE muclient>
|
||||
<!-- Saved on Monday, November 30, 2015, 8:44 PM -->
|
||||
<!-- MuClient version 4.96 -->
|
||||
|
||||
<!-- Plugin "Aard_Who_Here" 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
|
||||
match="^llload$"
|
||||
regexp="y"
|
||||
enabled="y"
|
||||
sequence="100"
|
||||
script="reload"
|
||||
>
|
||||
</alias>
|
||||
<alias
|
||||
match="^llunload$"
|
||||
regexp="y"
|
||||
enabled="y"
|
||||
sequence="100"
|
||||
script="unload"
|
||||
>
|
||||
</alias>
|
||||
</aliases>
|
||||
|
||||
<script>
|
||||
|
||||
local http = require("socket.http")
|
||||
local https = require 'ssl.https'
|
||||
|
||||
function reload()
|
||||
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 )
|
||||
Note(string)
|
||||
response = https.request( string )
|
||||
|
||||
f = assert (loadstring (response))
|
||||
f ()
|
||||
|
||||
|
||||
end
|
||||
|
||||
function unload()
|
||||
|
||||
process = nil
|
||||
|
||||
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
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</muclient>
|
Loading…
Reference in new issue