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
talonnb
Apprentice


Joined: 30 Oct 2004
Posts: 127

PostPosted: Wed May 31, 2006 4:25 pm   

Giving Triggers to others.
 
I have a pretty extensive load of triggers/aliases/variables/classes so on for Aetolia, and I'd like a way to be able to send it to someone else using the same version or close through tells in the game, rather than emailing the bulk.

Like, Talonnb tells you, "#trigger {whatever} {whatever}."
with them having #trigger {Talonnb tells you, "*."} {#execute %1}

Would be nice too if there was a way to get it to overwrite outdated triggers too if that's possible since a lot of it depends on improving the settings to work better.

Thanks ahead of time
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Wed May 31, 2006 5:29 pm   
 
Not easy with zMUD, although someone can probably come up with a set of triggers that would do this. But it would be a big security risk since you'd basically need to use #EXEC as you mentioned to execute whatever command the other person sent you in the Tell.

But this is a major part of the new CMUD client. CMUD has something called a "Shared Package Library". You put your triggers/aliases/etc into a "package" and then upload your scripts to the library, and then someone else with CMUD can download your package. It keeps track of versions and can update existing packages that you already downloaded when a new version is posted by the author. It's one of the new major features of CMUD.

It uses your Forum account here on the web site to keep track of who the author is, so both the sender and receiver need to be registered on these discussion forums. Also, this feature only works in the registered version of CMUD (not the 30-day trial version).

You can discuss this more over in the CMUD Beta forum. There is actually a screenshot of the package library in one of the existing topics in the forum. The first CMUD beta is expected soon.
Reply with quote
talonnb
Apprentice


Joined: 30 Oct 2004
Posts: 127

PostPosted: Wed May 31, 2006 5:39 pm   
 
So it is possible using the #exec command? I know it a security issue, but I plan on making it so the person has to agree to turn the installer on, and at the end of the install, turns it off. It's more going to be about group fighting and so on.

Oh, and quick question, if I specify the class and it's already there, will it overwrite the existing? Cause that would be ideal
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4702
Location: Pensacola, FL, USA

PostPosted: Wed May 31, 2006 5:59 pm   
 
could always #DELCLASS itt first
_________________
Discord: Shalimarwildcat
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Wed May 31, 2006 8:46 pm   
 
The main problem dealing with #EXEC will be handling all of the special characters, like the # character. Triggers are designed to try and prevent abuse, so special characters get "escaped" by the * wildcard in the trigger. Maybe one of the programming gurus can post a solution, but it's going to be tricky.

You can't overwrite an entire class. If you specify the same trigger pattern as an existing trigger, then it will override the new one (or even better, use the trigger ID field). As shalimar mentioned, it's probably best to delete the class first and re-populate it.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Jun 01, 2006 9:37 pm   
 
This trigger will do what you want:

#TRIGGER {Talonnb tells you, ~"(%*).~"} {#EXEC {%1}}

Use this trigger at your own risk. This is a very dangerous trigger for anyone to have. The person that has this is basically giving out complete control of their zMUD to another person, and without anchoring the pattern at the beginning or the end of the line, the situation is worse. Someone having control over your zMUD is a serious security risk, since they would have limited access to your file system and unlimited access to all the COM objects installed in your machine.

Having said all that, although the trigger does what you want, it is still quite tedious to accomplish the task. You will have to be very careful when quoting special characters so that the tell is sent correctly and the #EXEC command at the other end interprets the command correctly. You will also have to manually copy & paste all of the commands of the script you are transferring and edit each command to quote the special characters, although you could perhaps have all of the commands ready in a file and just read the file line by line.

All in all, I think it is just easier, and much safer, to put the script you want to share in a file and send it to the person. When CMUD comes out, you can then take advantage of the Package Library like Zugg mentioned.
_________________
Kjata
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