From: Dan Johnson (danpatti@dreamscape.com)
Date: 12/07/96

Ok I basically had it like the ftp site, but I changed it to be 
exactaly like it...still crashes if I am holding a corpse, and type sac 
corpse, and if I type sac <mob>

here's the code:
  struct obj_data *obj;

  one_argument(argument, buf);

  if (*buf) {
    if ((obj = get_obj_in_list_vis(ch, buf,
    world[ch->in_room].contents)) &&
       (CAN_WEAR(obj, ITEM_WEAR_TAKE))) {
      act("$n sacrifices $p.", FALSE, ch, obj, 0, TO_ROOM);
      act("You sacrifice $p to your god.\r\nYou have been rewarded by
      your deit$ extract_obj(obj);
    } else if (!(CAN_WEAR(obj, ITEM_WEAR_TAKE))) {
        send_to_char("You can't sacrifice that!\r\n", ch);
  } else
    send_to_char("Sacrifice what?\r\n", ch);

I don't know, can anyone else make sense of it?

Thanks for the response that time..hehe

| 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