|
Karth Newbie
Joined: 17 Apr 2005 Posts: 5
|
Posted: Thu Sep 01, 2005 2:30 am
Simple script request |
I'm looking for a simple script, I'm afraid that I am nearly impossible at coming up with these things myself. I searched the forums looking for something to suit my needs, but none of the language/encryption things posted worked just how I wanted them.
Here's what I am looking for:
A simple replacement script that will allow me to use an alias (something like schat %1 Hello there, how are you.), allowing me to use multiple modes of communication within the MUD. The %1 being say, tell, shout, so on.
I would like it to be able to replace each letter, or group of letters with a pre-specified letter, or group of letters, that I can easily manipulate within the script. And then send the changed version to the MUD.
I'm not concerned with having a method for easy decryption, all I'm requesting is a basic template for this. Nothing I've tried up to this point has worked as desired.
I thank you in advance for any help you can give.
Regards,
Karth. |
|
|
|
darmir Sorcerer
Joined: 10 Oct 2000 Posts: 706 Location: USA
|
Posted: Thu Sep 01, 2005 1:01 pm |
Karth,
This forum is only for finished scripts. Please post things like this in the General Forum |
|
_________________ Run as hard as a wild beast if you will, but you won't get any reward greater than that destined for you.
Source: (Egyptian) |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Thu Sep 01, 2005 10:08 pm |
Moved to General Forum.
|
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
Karth Newbie
Joined: 17 Apr 2005 Posts: 5
|
Posted: Fri Sep 02, 2005 3:03 am |
Oh, apologies for placing this in the wrong forum. Thank you for moving it.
|
|
|
|
Private Adept
Joined: 10 Jan 2002 Posts: 264 Location: USA
|
Posted: Fri Sep 02, 2005 5:57 am |
i came up with this using %subchar:
Code: |
#CLASS {CodeTalk} {enable}
#ALIAS schat {secret_message = %subchar( "%-2", "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:,.\/%", "9876543210ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba\/.,*:");%1 CodeTalk: @secret_message}
#VAR secret_message {Q5RQ qFrq} {}
#VAR decoded_message {test TEST} {}
#TRIGGER {'CodeTalk: (*)'$} {decoded_message = %subchar( "%1", "9876543210ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba\/.,*:", "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:,.\/%");#SHOW DecodedMessgae: ~"@decoded_message~"}
#CLASS 0
|
Usage:
schat <channel> text
example:
schat say test TEST
if your mud displays like:
You say, 'CodeTalk: Q5RQ qFrq'
the trigger will display via #SHOW:
DecodedMessage: test TEST |
|
|
|
|
|