Whppos (was movement bug)

From: Brian Christopher Guilbault (guil9964@nova.gmi.edu)
Date: 06/28/96


Sorry Guys-

Turns out that the speedwalk thing was something that our old coder added 
when I was just the Area Implementor. I apologize for that false bug 
alarm. Our old coder must have coded that right when we started, and I, 
not usually using the standard move commands, never realized that it 
wasn't stock...sorry :-)

Just for that I guess I'll share the code. Players seem to like it quite 
a bit especially in zones like Rome where you often need to walk long 
distances in a straight line. Here is the first part of my do_move in 
act.movement.c. I'm including right up until the the find_door() function:


ACMD(do_move)
{
  /*
   * This is basically a mapping of cmd numbers to perform_move indices.
   * It cannot be done in perform_move because perform_move is called
   * by other functions which do not require the remapping.
   */
  int nr_times, loop;

  if(!*argument) nr_times = 1;
  if(*argument) {
    if(atoi(argument) <= 0) nr_times = 1;
    else nr_times = atoi(argument);
  }

  if (nr_times <= 15) {
    for(loop = 0; loop < nr_times; loop++)
       perform_move(ch, cmd - 1, 0);  
       send_to_char("\n\r",ch);
  }
  else
    send_to_char("Please limit your speedwalking to 15 moves per direction.\r\n", ch);
}


Like I said that's not my code so if you have problems getting it to 
work, mail me and I'll see if I missed anything. I checked all relared 
functions and couldn't find anything, so it should work...I hope.


  Sorry Again for my Ignorance :-)

     -Brian


-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Brian Guilbault - GMI Engineering Institute
E-mail: guil9964@gmi.edu, dante@i-55.com
WWW: http://www.gmi.edu/~guil9964
QuarantineMUD: Telnet to exit1.i-55.com 4000
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+



This archive was generated by hypermail 2b30 : 12/18/00 PST