Re: dig

From: Daniel Koepke (dkoepke@california.com)
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);
    return;
  }

Search block is your friend. :)


--
Daniel Koepke
dkoepke@california.com
Forgive me father, for I am sin.


+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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