Video showing how to make a plugin

Posted by Nick Gammon on Fri 24 Jul 2009 03:03 AM — 7 posts, 44,056 views.

Australia Forum Administrator #0
I have made a video showing how to make a plugin.

It can be watched at How to make a plugin in MUSHclient. An imbedded copy is below on this page.

Constructive comments are welcome, for example is it too fast, too slow, not enough detail, and so on.

Amended on Sun 10 Jun 2018 11:46 PM by Nick Gammon
Australia Forum Administrator #1
The plugin generated by this tutorial appears below:


<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Friday, July 24, 2009, 10:08 AM -->
<!-- MuClient version 4.43 -->

<!-- Plugin "Targetting_System" generated by Plugin Wizard -->

<!--
Written as a tutorial.
-->

<muclient>
<plugin
   name="Targetting_System"
   author="Nick Gammon"
   id="9c0b98b57395e9948c6020f0"
   language="Lua"
   purpose="Set up a target and attack it"
   date_written="2009-07-24 10:03:44"
   requires="4.40"
   version="1.0"
   >
<description trim="y">
<![CDATA[
Lets you target a mob and attack it.

Usage:


t <mobname>    -- target a mob
k              -- kill the current target
p              -- punch the current target
bs             -- backstab the current target


Type "tshelp" to see this help.
]]>
</description>

</plugin>


<!--  Aliases  -->

<aliases>
  <alias
   match="k"
   enabled="y"
   expand_variables="y"
   sequence="100"
  >
  <send>kill @target</send>
  </alias>
  <alias
   match="t *"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>SetVariable ("target", "%1")

ColourNote ("white", "blue", "Target is now: %1")

SetStatus ("Target: %1")</send>
  </alias>
  <alias
   match="p"
   enabled="y"
   expand_variables="y"
   sequence="100"
  >
  <send>punch @target</send>
  </alias>
  <alias
   match="bs"
   enabled="y"
   expand_variables="y"
   sequence="100"
  >
  <send>backstab @target</send>
  </alias>
</aliases>

<!--  Plugin help  -->

<aliases>
  <alias
   script="OnHelp"
   match="tshelp"
   enabled="y"
  >
  </alias>
</aliases>

<script>
<![CDATA[
function OnHelp ()
  world.Note (world.GetPluginInfo (world.GetPluginID (), 3))
end
]]>
</script> 

</muclient>
Australia Forum Administrator #2
I have added closed captioning to this video. This will help if you can't understand my Australian accent. ;)

The captions also correct some minor errors in what I said, so the caption text should be taken as more correct than the spoken text.
USA #3
Just watched this - very useful overview for anyone interested in getting started on adding plugins to Mushclient.
#4
Awesome tut Nick. Was very descriptive and helpful.
#5
Very Nice Tutorial

i was really impressed by the presentation too.
nice work on the zoom and highlight.

i wonder what tools were used to do those things.
Australia Forum Administrator #6
I run my copy of Windows under VMware on a Mac. I used ScreenFlow to capture the screen (it does the zooms and stuff) - however that is a Mac product.