Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Karth
Newbie


Joined: 17 Apr 2005
Posts: 5

PostPosted: 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.
Reply with quote
darmir
Sorcerer


Joined: 10 Oct 2000
Posts: 706
Location: USA

PostPosted: 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)
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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
Reply with quote
Karth
Newbie


Joined: 17 Apr 2005
Posts: 5

PostPosted: Fri Sep 02, 2005 3:03 am   
 
Oh, apologies for placing this in the wrong forum. Thank you for moving it.
Reply with quote
Private
Adept


Joined: 10 Jan 2002
Posts: 264
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net