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 ➜ Jscript ➜ An attribute grab command

An attribute grab command

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


Posted by Unregistered user   (72 posts)  Bio
Date Sat 09 Sep 2000 (UTC)
Message
Here's a quick implementation of a command that I know in another client and I was missing on MUSHclient.
The purpose of the command is to enable easier editing of attributes on MU*s.
The usage is:


    !grab object/attribute


and what it does is enter in the command window a line of the form:


  &attribute object=current value of attribute



All you have to do now is to quickly fix whatever it is that needs fixing, and press enter.

For example:


    !grab me/lockme


may produce in the command line:


    &lockme me=$lockme:@lock/uselock me=me;@set me=!enter_OK



The script can be found at:

www.geocities.com/idoyg/mushclient/

Before the first usage you must type: /SetupGrab() to set up the command.

I have two alternative implementations of this (grab.zip and grab2.zip). One uses @decompile, while the other uses the get function.

Using @decompile usually works better because it can seperate @ and & , but it misses out in some cases, like when a line has newlines already evaled into it. Also, in some cases, the @decompile command won't return an error message when failed and so the !grab will have to wait until timing out.

Send your comments to: idojg@bigfoot.com

Edited by Icarus at: 9/9/00 7:18:04 am
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,177 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.