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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Fri Mar 13, 2009 11:29 pm   

[3.03-3.05] Change or bugfix to #send and #sendraw?
 
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<trigger type="Command Input" priority="16700" copy="yes">
<pattern>^cease (*)$</pattern>
<value>#IF (@attuning) {atto;#SENDRAW {cease %1}} {#SENDRAW {cease %1}}</value>
</trigger>
</cmud>

The above script, I used for a long time, with #send.
After installing 3.05, it caused a loop, which I fixed by using sendraw instead. Having said that, I'm not sure when I last used the script - might have been a few weeks ago now.

Looking at it, it makes sense to use #sendraw (I don't recall why I didn't when I first wrote the script, other than perhaps being new to the two commands and making a mistake.) I'm only posting to make sure the change is not a bug.
_________________
Athlon 64 3200+
Win XP Pro x64
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Sat Mar 14, 2009 8:00 am   
 
That is the correct behavior. If you read the #SEND documentation you'll see
Quote:
The text is sent just as if you typed it, so it is echoed to the screen and available for #ONINPUT triggers.
. It is because of this that #SENDRAW was introduced.
_________________
Asati di tempari!
Reply with quote
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Sun Mar 15, 2009 5:27 am   
 
Yeah I spotted that when I fixed the script, it just seemed odd to me that it worked right up until just recently.
_________________
Athlon 64 3200+
Win XP Pro x64
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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