Re: [CODE]

From: George (greerga@DRAGON.HAM.MUOHIO.EDU)
Date: 09/04/97


On Thu, 4 Sep 1997, Ron Hensley wrote:

>Given you have an object in var:
>  obj
>
>I need to call do_get(ch,SOMETHING,0.0);
>to force the player to pick it up, yet using do_gets error checking for
>weights etc.

From act.item.c:

int perform_get_from_room(struct char_data * ch, struct obj_data * obj)
{
  if (can_take_obj(ch, obj)) {
    obj_from_room(obj);
    obj_to_char(obj, ch);
    act("You get $p.", FALSE, ch, obj, 0, TO_CHAR);
    act("$n gets $p.", TRUE, ch, obj, 0, TO_ROOM);
    get_check_money(ch, obj);
    return 1;
  }
  return 0;
}

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


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



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