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.
 Entire forum ➜ MUSHclient ➜ Plugins ➜ My Plugins Page

My Plugins Page

Posting of new messages is disabled at present.

Refresh page


Pages: 1 2  3  

Posted by Cage_fire_2000   USA  (119 posts)  Bio
Date Mon 13 Aug 2007 12:25 AM (UTC)

Amended on Sat 11 Oct 2008 06:33 PM (UTC) by Cage_fire_2000

Message
Just wanted to tell everybody I've created a new page solely for my MUSHclient plugins, it's at:
http://geocities.com/cage_fire_2000/MCPlugins.htm

Most of my plugins are designed for pennMUSH based games, because that's all I play on, but a couple should work on anything, because they're not game-type specific.
Currently the plugins I have are:
* GrabName.xml - This is useful for editing object names, eg. adding aliases to an exit.

* GrabLock.xml - This lets you grab and edit a lock.

* RegExp_Tester.xml - This lets you test regular expressions using the MUSHes built-in regmatchi() and shows you what each argument to the command would be.

* GrabPack.xml - This is a combination of cosmetically improved versions of grab, editor, grabname, and grablock as well as @rnattr. News: 8/22/2007 v1.01 converted to Lua language for hopefully universal compatibility.

* Paste_As_MUSH.xml - This plugin will convert the contents of the clipboard into MUSHcode format(%b, %r, etc) and paste it into the command window. Just install it, copy what you want converted to the clipboard, then ctrl-click to bring up the alias menu, and click `Paste As MUSH`. It was designed for 8bitMUSH, but as long as you don't try to use extended characters it should work for any MUSH(at least pennMUSH based ones)

* ClientLock.xml - New 6/6/2007 v1.01. This plugin allows you to lock the command window so you can step away from the keyboard without somebody messing with your character.

* NoAnsi.xml - This plugin strips ANSI codes out of output, I personally don't see why anybody would want to, but I saw it on the MUSHclient suggestions/requests list(although it /was/ back in 1998) and decided that I might as well since it's soooo easy.

* QueueControl.xml - This plugin gives a little more functionality to the speedwalk queue, mainly the ability to pause and resume it.

* DailyLog.xml - This plugin closes and opens the logfile at midnight, you /must/ have a log filename with date substitutions set in the world preferences for this to work right.

* WeeklyLog.xml - This plugin is like the DailyLog plugin, but does it once a week.
Top

Posted by Shaun Biggs   USA  (644 posts)  Bio
Date Reply #1 on Mon 13 Aug 2007 06:23 AM (UTC)

Amended on Mon 13 Aug 2007 06:25 AM (UTC) by Shaun Biggs

Message
Looks like a nice set of plugins. Unfortunately, the one I think is would be really useful to me that I haven't already written is the regex tester, and it's in VBscript, which I can't use. It is now on my list of things to convert to Lua. Aside from that issue, there are a lot of great utilities that you included in this list.

It is much easier to fight for one's ideals than to live up to them.
Top

Posted by Cage_fire_2000   USA  (119 posts)  Bio
Date Reply #2 on Mon 13 Aug 2007 11:50 PM (UTC)

Amended on Tue 14 Aug 2007 12:16 AM (UTC) by Cage_fire_2000

Message
Uhm, the regexp tester doesn't use any script for its main function, it only uses it to display the plugin description. It does all the regexp processing on the pennMUSH server, all it is is two aliases, which you could copy out of the file and paste into your world aliases.

Update: I just editted and reuploaded the file to use LUA to display the description.
Top

Posted by Shaun Biggs   USA  (644 posts)  Bio
Date Reply #3 on Tue 14 Aug 2007 04:25 AM (UTC)
Message
Ah, that explains my issue. I thought you meant it used some function in MUSHclient to do the matching, not one for pennMUSH. Although given a bit of thought, I suppose I could create one of my own for general purposes using Lua's regex searching capabilities.

It is much easier to fight for one's ideals than to live up to them.
Top

Posted by Cage_fire_2000   USA  (119 posts)  Bio
Date Reply #4 on Tue 14 Aug 2007 05:13 AM (UTC)
Message
You don't really need a scripting alias. Just make an alias like this:

<aliases>
<alias
match="^enter regexp here$"
enabled="y"
regexp="y"
send_to="2"
sequence="100"
>
<send>%%0=%0
%%1=%1
%%2=%2
%%3=%3
%%4=%4
%%5=%5
%%6=%6
%%7=%7
%%8=%8
%%9=%9</send>
</alias>
</aliases>
Top

Posted by Shaun Biggs   USA  (644 posts)  Bio
Date Reply #5 on Tue 14 Aug 2007 08:59 AM (UTC)
Message
I do need to create my own if I'm not using a pennMUSH though. Using the examples you included tried sending the commands to the mud, which don't help on a Diku based mud.

It is much easier to fight for one's ideals than to live up to them.
Top

Posted by Cage_fire_2000   USA  (119 posts)  Bio
Date Reply #6 on Tue 14 Aug 2007 12:04 PM (UTC)
Message
Uhm, the example I just posted uses MUSHclient's regexp parser, and it sends to output, just make it in a dummy world, and type stuff to check against it.
Top

Posted by Shaun Biggs   USA  (644 posts)  Bio
Date Reply #7 on Tue 14 Aug 2007 05:10 PM (UTC)
Message
Ok, that alias worked, but the plugin still didn't work with a dummy world of mine. If it is working, then I'm not quite sure how to read the results.

Here is the output I get with the following commands:
@regset ^test (\d+)$
@regtest test 123
&VAR.REGEXP ME=^test (\d+)$
That is not a command. Type 'Commands' for a complete list.
[47585/47585hp 25631/30264mp 5460/5460mv 86xp 0t 13q 1000a]
think [if([setq(T,ansi(,test 123))]regmatchi(%qT,v(VAR.REGEXP),0 1 2 3 4 5 6 7 8 9),ansi(gh,MATCH),ansi(rh,NO MATCH))]%r%%0=%q0%r%%1=%q1%r%%2=%q2%r%%3=%q3%r%%4=%q4%r%%5=%q5%r%%6=%q6%r%%7=%q7%r%%8=%q8%r%%9=%q9
You . o O ( [if([setq(T,ansi(,test 123))]regmatchi(%qT,v(VAR.REGEXP),0 1 2 3 4 5 6 7 8 9),ansi(gh,MATCH),ansi(rh,NO MATCH))]%r%%0=%q0%r%%1=%q1%r%%2=%q2%r%%3=%q3%r%%4=%q4%r%%5=%q5%r%%6=%q6%r%%7=%q7%r%%8=%q8%r%%9=%q9 )

It is much easier to fight for one's ideals than to live up to them.
Top

Posted by Cage_fire_2000   USA  (119 posts)  Bio
Date Reply #8 on Wed 15 Aug 2007 12:02 AM (UTC)

Amended on Wed 15 Aug 2007 12:25 AM (UTC) by Cage_fire_2000

Message
*facepalm* My /plugin/ is designed to send a command to a pennMUSH server that'll send back what it matches, and is meant for testing $-commands, and such, and thus will not work when not connected to a pennMUSH server. The /alias/ I posted /on this thread/ will work in a dummy world and uses MUSHclient's regexp matcher. I do believe that MUSHclient regexp syntax and pennMUSH regexp syntax are similar but different, I'd have to check.

My /plugin/ sends MUSHcode to the server.
@regset sets the regexp in an attribute on the player character that is grabbed by the matching code, not only so you don't have to keep entering the regexp, but also so that it doesn't need to be escaped in the code.
@regtest sends a regmatchi() command that'll match given input against the regexp in the attribute and display whether it matches or not, and if so, what the different subpatterns evaluate to.

Did you even read the description of the plugin next to the download link?
* RegExp_Tester.xml - This lets you test regular expressions using the MUSHes built-in regmatchi() and shows you what each argument to the command would be.
Top

Posted by Shaun Biggs   USA  (644 posts)  Bio
Date Reply #9 on Wed 15 Aug 2007 01:28 AM (UTC)
Message
So speaking of "did you read..."
Quote:
Ah, that explains my issue. I thought you meant it used some function in MUSHclient to do the matching, not one for pennMUSH. Although given a bit of thought, I suppose I could create one of my own for general purposes using Lua's regex searching capabilities.


The original confusion actually came from not being specific enough. MUSH could either be MUSHclient or PennMUSH. I was stating that the plugin wouldn't work as a general purpose tester, and the simple alias is not complete, since there are named wildcards now. As for the alias you posted, I added it into the plugin, since you did not mention where to add it, and we had been discussing plugins before. I'm sorry I misinterpreted things, but that's no reason to get so defensive, especially when the first post I had complemented you on the plugins you had.

At any rate, my responses to this thread end with this post.

It is much easier to fight for one's ideals than to live up to them.
Top

Posted by Cage_fire_2000   USA  (119 posts)  Bio
Date Reply #10 on Wed 15 Aug 2007 11:42 PM (UTC)
Message
I'm sorry for getting testy. But first of all I've never heard anybody refer to MUSHclient as 'MUSH' I've heard them refer to it as MC but never 'MUSH' since MUSH is the name of a server type it would be confusing. Also, I said 'using /the/ MUSHes builtin...'(That should probably be MUSH's but that's besides the point.) If I had just said 'using MUSH's built-in....' then I could understand your confusion, I suppose I should clarify the description of it on the website, but I had thought I had been clear enough with my current description, apparently I was mistaken.
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #11 on Thu 16 Aug 2007 02:24 AM (UTC)
Message
I've seen MUSH used a few times for MUSHclient. I agree that it's confusing, though, due to the ambiguity.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #12 on Thu 16 Aug 2007 02:29 AM (UTC)

Amended on Thu 16 Aug 2007 02:38 AM (UTC) by Nick Gammon

Message
I have also seen quite a few people refer to MUSHclient as "MUSH", probably because they mentally separate it into two words "MUSH client" (a client whose name is "MUSH") and then drop the word "client".

- Nick Gammon

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

Posted by Cage_fire_2000   USA  (119 posts)  Bio
Date Reply #13 on Thu 16 Aug 2007 04:11 AM (UTC)

Amended on Thu 16 Aug 2007 04:15 AM (UTC) by Cage_fire_2000

Message
Really? Hmm, I've never heard that myself. I have to assume they are MUD players that don't know about MUSHes. Because I would assume MUSH players would know that they were different and thus would just refer to MUSHclient by either its full name or as MC.

Sooner or later I've got to get around to learning LUA and converting these plugins, but so far it's just not worth it.
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #14 on Thu 16 Aug 2007 09:36 AM (UTC)
Message
Since we're talking about names, it's actually just Lua, not LUA. (It's not an acronym: it means 'moon' in Portuguese.)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
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.


86,878 views.

This is page 1, subject is 3 pages long: 1 2  3  [Next page]

Posting of new messages is disabled at present.

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.