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
TaisharMalkier
Novice


Joined: 28 Sep 2001
Posts: 45
Location: USA

PostPosted: Fri Mar 15, 2002 2:00 am   

MXP help
 
Im tryin to make an MXP trig that when i click on the word spirits, it turns off the class, buys the spirits, drinks the spirits, sells the bottles, and turns the class back on. However when i click on the word with this trig:
#SUBSTITUTE {~<send ~"~#T- Bar~;~#20 buy spirits~;~#20 drink spirits~;~#20 sell bottle~;~#T+ Bar~">Spirits~</send>}
all i get is:
#T- Bar;#20 buy Spirits;#20 drink Spirits;#20 sell bottle;#T+ Bar
Help plz?

Contain rather than hurt.
Hurt rather than maim.
Maim rather than kill.
Kill rather than be killed.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Mar 15, 2002 1:50 pm   
 
There was some discussion about this some time ago. I can't quite remember it now, but at some point, you could use zMUD commands in MXP tags even if the tag was created by you and not the MUD. There was also some talk about a solution to this, but I'm not sure if it is already implemented and what versions can and can't do this. Try posting in the Developer's Forum to see if anyone knows in there.

Kjata
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: Fri Mar 15, 2002 6:10 pm   
 
Indeed, Kjata. Although, as this is a problem with the beta it should probably be put in the Beta Forum.

From zMUD version history for 6.25:
quote:
<SEND> no longer allows zMUD commands to be executed


It does say "<SEND> command can execute "safe" zMUD commands and aliases again. Option can be turned off in the MXP preferences" for 6.26 but this is not correct.

This can be seen by executing
#mxp <send href='#show Hi'>Test</send>
in 6.26a.

The solution at the moment is to use the public version. Beta are always works-in-progress :P

 - Charbal
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Mar 16, 2002 4:39 am   
 
I haven't bothered using MXP so perhaps I just don't understand, but...doesn't the <send> command mean "send this to the MUD"? If that is what it means then you are telling zMUD to send your commands to the mud and that's exactly what it's doing. What you clearly want it to do is "interpret this and send the result to the MUD" but that might need a different command. Then again, it might be enough just to remove the ~'s from inside the <send> </send>. Oh, don't you need a closing > after your ~<send?

LightBulb
All scripts untested unless otherwise noted
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