Re: Newplayer load items

From: nathan winters (wintersn@hotmail.com)
Date: 05/08/00


>I have been looking through the code, trying to find the clode which
>creates the character, to try and add newbie items to thier inventory when
>they login for the first time.

---snip


This is what I did.


class.c
+
#include "handler.h"

+before do_start

void eq_char(struct char_data *ch, obj_vnum vnum, int where)
{
  struct obj_data *obj;
  obj = read_object(vnum, VIRTUAL);
  equip_char(ch, obj, where);
}

in do_start

      eq_char(ch, 18601, WEAR_LIGHT);
      eq_char(ch, 18601, WEAR_FINGER_R);
      eq_char(ch, 18601, WEAR_FINGER_L);
      eq_char(ch, 18601, WEAR_NECK_1);
      etc......


class or race specific equipment.......

  switch (GET_CLASS(ch)) {
    case CLASS_WARRIOR:
      eq_char(ch, 18601, WEAR_WIELD);
      break;
    }

Now how to load items to inventory is something I haven't found yet. Can't
be too difficult though.

Rumble
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


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



This archive was generated by hypermail 2b30 : 04/10/01 PDT