Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Plugins ➜ Grab - grabs a MUSH attribute

Grab - grabs a MUSH attribute

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Thu 14 Nov 2002 09:01 PM (UTC)
Message
A few years ago there was talk about using MUSHclient to "grab" attributes on a MUSH, so they could be edited in the command window. It took a while to find the original idea (in fact, it is mentioned in suggestion #60), so I thought it could be usefully resurrected as a plugin.

Once the plugin is installed, just type: grab object/attribute, and the attribute will be placed in the command window ready for editing. When you are finished just hit <enter>.

The plugins is below, or can be downloaded from the plugins web page.




<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE muclient>
<!-- Saved on Friday, November 15, 2002, 8:52 AM -->
<!-- MuClient version 3.30 -->

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

<!--
The plugin generates a new password every time it is installed.
-->

<muclient>
<plugin
   name="Grab"
   author="Nick Gammon"
   id="bc84b8aa0ece2536bbe631f9"
   language="VBscript"
   purpose="Grabs a MUSH attribute for editing"
   date_written="2002-11-15 08:49:09"
   requires="3.25"
   version="1.0"
   >
<description trim="y">
<![CDATA[
This lets you edit a MUSH attribute in the command window, and then send it back to the MUSH.

Usage
-----


grab item/attribute

  eg.  grab me/describe


The plugin will send:  @pemit/silent me=password &%2 %1=[get(%1/%2)]

It awaits a response, and then upon receipt places it into the command window 
for editing. Make your changes and press <enter>

Grab: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"
  >
  <send>%1</send>
  </trigger>
</triggers>

<!--  Aliases  -->

<aliases>
  <alias
   match="grab */*"
   enabled="y"
   expand_variables="y"
  >
  <send>@@pemit/silent me=@password &amp;%2 %1=[get(%1/%2)]
</send>
  </alias>
</aliases>

<!--  Script  -->


<script>
<![CDATA[
Sub OnPluginInstall
  world.setvariable "password", world.getuniqueid
End Sub

]]>
</script>


<!--  Plugin help  -->

<aliases>
  <alias
   script="OnHelp"
   match="Grab:help"
   enabled="y"
  >
  </alias>
</aliases>

<script>
<![CDATA[
Sub OnHelp (sName, sLine, wildcards)
  World.Note World.GetPluginInfo (World.GetPluginID, 3)
End Sub
]]>
</script> 

</muclient>

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


8,333 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.