Hello everyone im new to coding and mudding
i downloaded tbamud and quickly got tired of walking so i found a speedwalk command
it Works and compiles well
how ever just writing speedwalk doesnt ask where people wanna go, where and how would i do that. also the speedwalk is extremely fast, maybe a delay would be good ?
any ideas and sulutions will be apreciated.
ACMD(do_speedwalk) {
int dir, r;
for (r = 1; *argument && r; argument++) {
while (*argument == ' ')
++argument;
switch (*argument) {
case 'N':
case 'n':
dir = NORTH;
break;
case 'E':
case 'e':
dir = EAST;
break;
case 'S':
case 's':
dir = SOUTH;
break;
case 'W':
case 'w':
dir = WEST;
break;
case 'U':
case 'u':
dir = UP;
break;
case 'D':
case 'd':
dir = DOWN;
break;
default:
send_to_char(ch, "Alas, you can't go that way.\r\n");
return;
break;
}
r = perform_move(ch, dir, 1);
if (r && *(argument + 1))
send_to_char(ch, "\r\n");
}
}