Commit 1f5c8679 authored by Maiyannah Bishop's avatar Maiyannah Bishop

Merge branch 'master' of git@git.postactiv.com:maiyannah/valkyrior.git

parents 0689b24d a1bdf297
......@@ -6,7 +6,11 @@
<AliasPackage>
<Alias isActive="yes" isFolder="no">
<name>valkryja TUI</name>
<script>-- main TUI for valkryja
<script>-- ============================================================================
-- Valkryja TUI
-- ----------------------------------------------------------------------------
-- main TUI ish thing for Valkryja
params = matches[3]
Valkryja.Debug('params = '..tostring(params), false)
......@@ -19,12 +23,11 @@ if (params=="") then
cecho(" CONFIG BASHING\n")
cecho("&lt;yellow&gt;valkryja help&lt;reset&gt; outputs this message.\n")
cecho("--------------------------------------------------------------------------------\n")
cecho(" &lt;BlueViolet&gt;copyright (c) 2003-2019 Maiyannah Bishop&lt;reset&gt;\n")
cecho(" &lt;BlueViolet&gt;copyright (c) 2003-2020 Maiyannah Bishop&lt;reset&gt;\n")
-- Garbage collection
params = nil
match = nil
key = nil
return true
end
......@@ -71,19 +74,101 @@ if (match) then
end
-- CONFIG without setting a specific value, give some help
if (rex.match(params, "(?i)config")) then
match = rex.match(params, "(?i)config")
if (match) then
cecho("&lt;CornflowerBlue&gt;Valkryja Multi-MUD System&lt;BlueViolet&gt;: " ..tostring(Config.MUD).. " version&lt;reset&gt;\n")
cecho("--------------------------------------------------------------------------------\n")
cecho("&lt;snow&gt;Usage: &lt;yellow&gt;valkryja config &lt;red&gt;(key) (value)&lt;reset&gt;\n")
cecho("&lt;yellow&gt;valkrja config&lt;reset&gt; outputs this message.\n")
cecho("--------------------------------------------------------------------------------\n")
cecho(" &lt;BlueViolet&gt;copyright (c) 2003-2019 Maiyannah Bishop&lt;reset&gt;\n")
cecho(" &lt;BlueViolet&gt;copyright (c) 2003-2020 Maiyannah Bishop&lt;reset&gt;\n")
-- Garbage collection
match = nil
params = nil
return true
end
-- BASHING AUTOBASHING ENABLE, so we want to enable autobashing
match = rex.match(params, "(?i)bashing (ab|autobashing) enable")
if (match) then
cecho("&lt;CornflowerBlue&gt;Valkryja Multi-MUD System&lt;BlueViolet&gt;: " ..tostring(Config.MUD).. " version&lt;reset&gt;\n")
cecho("--------------------------------------------------------------------------------\n")
Valkryja.AutoBash = true
cecho("&lt;snow&gt;Automatic bashing is now &lt;green&gt;ENABLED!&lt;reset&gt;\n")
cecho("--------------------------------------------------------------------------------\n")
cecho(" &lt;BlueViolet&gt;copyright (c) 2003-2020 Maiyannah Bishop&lt;reset&gt;\n")
-- Garbage collection
match = nil
params = nil
return true
end
-- BASHING AUTOBASHING DISABLE, so we want to disable autobashing
match = rex.match(params, "(?i)bashing (ab|autobashing) disable")
if (match) then
cecho("&lt;CornflowerBlue&gt;Valkryja Multi-MUD System&lt;BlueViolet&gt;: " ..tostring(Config.MUD).. " version&lt;reset&gt;\n")
cecho("--------------------------------------------------------------------------------\n")
Valkryja.AutoBash = false
cecho("&lt;snow&gt;Automatic bashing is now &lt;red&gt;DISABLED!&lt;reset&gt;\n")
cecho("--------------------------------------------------------------------------------\n")
cecho(" &lt;BlueViolet&gt;copyright (c) 2003-2020 Maiyannah Bishop&lt;reset&gt;\n")
-- Garbage collection
match = nil
params = nil
return true
end
-- BASHING AUTOBASHING without setting a specific value, give some help
match = rex.match(params, "(?i)bashing (ab|autobashing)")
if (match) then
cecho("&lt;CornflowerBlue&gt;Valkryja Multi-MUD System&lt;BlueViolet&gt;: " ..tostring(Config.MUD).. " version&lt;reset&gt;\n")
cecho("--------------------------------------------------------------------------------\n")
if (Valkryja.AutoBash==true) then
cecho("&lt;snow&gt;Current autobashing status:&lt;reset&gt; &lt;green&gt;ENABLED&lt;reset&gt;\n\n")
elseif (Valkryja.AutoBash==false) then
cecho("&lt;snow&gt;Current autobashing status:&lt;reset&gt; &lt;red&gt;DISABLED&lt;reset&gt;\n\n")
else
cecho("&lt;snow&gt;Current autobashing status:&lt;reset&gt; &lt;BlueViolet&gt;UNKNOWN&lt;reset&gt;\n\n")
end
cecho("&lt;snow&gt;Usage to enable/disable: &lt;yellow&gt;valkryja bashing autobashing &lt;red&gt;ENABLED or DISABLED&lt;reset&gt;\n")
cecho("--------------------------------------------------------------------------------\n")
cecho(" &lt;BlueViolet&gt;copyright (c) 2003-2020 Maiyannah Bishop&lt;reset&gt;\n")
-- Garbage collection
match = nil
params = nil
return true
end
-- BASHING without setting a specific value, give some help
match = rex.match(params, "(?i)bashing")
if (match) then
cecho("&lt;CornflowerBlue&gt;Valkryja Multi-MUD System&lt;BlueViolet&gt;: " ..tostring(Config.MUD).. " version&lt;reset&gt;\n")
cecho("--------------------------------------------------------------------------------\n")
cecho("&lt;snow&gt;Usage: &lt;yellow&gt;valkryja bashing &lt;red&gt;(subfunction) (parameters)&lt;reset&gt;\n")
cecho("Possible subfunctions:\n")
cecho(" AUTOBASHING AUTODEFENCE STATUS TARGETS\n\n")
cecho("For help with a subfunction, type them without parameters.\n\n")
cecho("&lt;yellow&gt;valkrja bashing&lt;reset&gt; outputs this message.\n")
cecho("--------------------------------------------------------------------------------\n")
cecho(" &lt;BlueViolet&gt;copyright (c) 2003-2020 Maiyannah Bishop&lt;reset&gt;\n")
-- Garbage collection
match = nil
params = nil
return true
end</script>
end
-- END OF SCRIPT
-- ============================================================================</script>
<command></command>
<packageName></packageName>
<regex>^(?i)(?:valk)(?:(r?y?j?a?))(.*)$</regex>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment