From: Selçuk Gören <[EMAIL PROTECTED]> To: Rom Mailing List <[email protected]> Sent: Tuesday, April 09, 2002 1:37 AM Subject: Command input
> Hello all, > My problem is this: Suppose a descriptor's input buffer already contains > lots of commands. When this descriptor recieves a command with no delay like > who, where, say, etc I want this command to be executed immediately, rather > than to be appended to the end of input buffer. Do any of you have any idea > how to tackle with this? > I have done this on ArcanosMUD. I simply made another buffer so I got an input buffer and a command buffer. Every time we run through the descriptor list we first check to see if the character is free of lag - if he is, we execute the first command in the command buffer. After this we run the interpreter for the input buffer, if the character is (still) clear of lag we execute the command immidiatly, if the character is in lag we only execute SOME commands (say, tell, look, etc), and the rest is stored in the command buffer. It required a little change to the interpreter tables where you need to add a boolean in the end of it, and a little fiddling around with code in comm.c. /Regicide.

