<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE muclient>
<!-- Saved on Friday, October 17, 2003, 8:41 PM -->
<!-- MuClient version 3.42 -->

<!-- Plugin "GrabLock" generated by Plugin Wizard -->

<muclient>
<plugin
   name="GrabLock"
   author="Malix@8bitMUSH"
   id="f3b9b02d3c621cf3a78eb091"
   language="VBscript"
   purpose="Grabs a lock on an object for editing."
   date_written="2003-10-17 20:39:45"
   requires="3.42"
   version="1.0"
   >
<description trim="y">
<![CDATA[
This lets you edit a MUSH lock in the command window, and then send it back to the MUSH.

Usage
-----


grablock item/locktype

  eg.  grablock me/basic


The plugin will send:  @pemit/silent me=password @lock/%2 %1=[lock(%1/%2)]

It awaits a response, and then upon receipt places it into the command window for editing. Make your changes and press <enter>

GrabLock:help  <-- This help screen


]]>
</description>

</plugin>


<!--  Triggers  -->

<triggers>
  <trigger
   enabled="y"
   expand_variables="y"
   match="@password *"
   omit_from_output="y"
   send_to="1"
   sequence="100"
   other_text_colour="black"
   other_back_colour="black"
  >
  <send>%1</send>
  </trigger>
</triggers>

<!--  Aliases  -->

<aliases>
  <alias
   match="grablock */*"
   enabled="y"
   echo_alias="y"
   expand_variables="y"
   omit_from_output="y"
   sequence="100"
  >
  <send>@@pemit/silent ME=@password @@lock/%2 %1=[lock(%1/%2)]</send>
  </alias>
  <alias
   script="OnHelp"
   match="grablock:help"
   enabled="y"
   sequence="100"
  >
  </alias>
</aliases>

<script>
<![CDATA[
Sub OnPluginInstall
  World.SetVariable "password", World.GetUniqueId
End Sub

]]>
</script>


<!--  Plugin help  -->

<aliases>
  <alias
   script="OnHelp"
   match="GrabLock:help"
   enabled="y"
  >
  </alias>
</aliases>

<script>
<![CDATA[
Sub OnHelp (sName, sLine, wildcards)
  world.Note world.GetPluginInfo (world.GetPluginID, 3)
End Sub
]]>
</script> 

</muclient>

