Newbie Equip

From: Mayfield Chuck SrA UCSS/SOS (mayfielc@USAFE19.ramstein.af.mil)
Date: 11/15/95


I got this code from the circle list on Aug 3, 95.

I don't know who found the code or made the mods but here it is for your 
use..

>Ok, here is the one I have.
>
>I saw one that was better out there, it was class sensitive.
>
>add this to act.wizard.c
>
>=== snip ===
>void do_newbie(struct char_data *vict)
>{
>  struct obj_data *obj;
>  int give_obj[] = {2544, 5423, 3071, 3076, 3081, 3086, 6002, 7211, 
3104,3015, 3015, -1};
>/* replace the 4 digit numbers on the line above with your basic eq -1 HAS 
to
>stay there */
>  int i;
>
>  for (i = 0; give_obj[i] != -1; i++) {
>    obj = read_object(give_obj[i], VIRTUAL);
>    obj_to_char(obj, vict);
>  }
>}
>=== snip ===
>add all the + in the respective spots in interpreter.c
>
>=== snip ===
>
>+ void do_newbie(struct char_data *vict);
>  void read_aliases(struct char_data * ch);
>  void echo_on(struct descriptor_data * d);
>  void echo_off(struct descriptor_data * d);
>=== snip ===
>       STATE(d) = CON_PLAYING;
>        if (!GET_LEVEL(d->character)) {
>        do_start(d->character);
>        send_to_char(START_MESSG, d->character);
>+         do_newbie(d->character);
>        }
>=== snip ===
>
>and that should be it, sorry it took so long I had to find the code :)

I hope it helps you as much as it helped me.  Newbie's to the our MUD are 
given enough equipment to start there life with.  We never thought about 
giving gold though.
We figured equipment was enough.

SteeJan



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