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
Dko
Beginner


Joined: 25 May 2004
Posts: 13

PostPosted: Tue May 25, 2004 3:40 am   

Gota deal with buffers
 
In some of the muds I play on basically doesn't accept anything I post thats longer then there buffer length. I wana know is there a way to detect if ive gone over this length (Usualy 250) so I can stop, send, then type some more? Or have it so Zmud keeps me from typing once I reach that length.
Reply with quote
Dko
Beginner


Joined: 25 May 2004
Posts: 13

PostPosted: Tue May 25, 2004 4:10 am   
 
Is this too complicated? Let me try to give an example.
I type this and press return with a 10 char buffer. "Hi"
The mud echos. "Hi"
I type this. "Hello my name is monkey man." <- If it was just 'Hello my' then it would be ok.
The mud echos. "Sorry post too long."
I wana be able to tell when ive reached the 10 chars
Reply with quote
Serentus
Apprentice


Joined: 28 Sep 2001
Posts: 103
Location: USA

PostPosted: Tue May 25, 2004 10:17 am   
 
View->Preferances->General
Under Command Line you should see a check box for 'Show Column' whith this checked it shows the column number (number of characters) in the command line. You can also set the 'Bell Column' to 250 and it will beep at you when you hit the 250th column.


or you could give this a try, but I doubt this is what your looking for
#ONINPUT {(*)} {#IF %length(%1)>250 {%left(%1,250);%right(%1,250)}}
This would break it up at the 250th character and send it as 2 lines
Reply with quote
Dko
Beginner


Joined: 25 May 2004
Posts: 13

PostPosted: Wed May 26, 2004 1:28 am   
 
Thanks all that info will help imensly. Even the trigger ^^
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