Re: dig

From: Daniel Koepke (
Date: 12/03/96

On Tue, 3 Dec 1996, Brian Williams - Nashak wrote:

> here is my dig so far.. I still not finished.. but I am wondering how I
> would take the first agument.. ioe. dig south 1204
> how would I let south be an arg instead of the actual dir number.. just
> like a switch(*buf) case s: case south: 3; or something? anyways.. thanks
> in advance for assistance.. and btw, I'll post the final copy when its
> done.. here is wha I have sof ar

  int dir;

  if ((dir = search_block(arg, dirs, FALSE)) < 0) {
    send_to_char("That's not a direction.\r\n", ch);

Search block is your friend. :)

Daniel Koepke
Forgive me father, for I am sin.

| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   |

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