Re: [code] Newbie Equipment

From: grond (grond@grotl.com)
Date: 09/06/96


RA>So until I or we find someway to automatically give newbies EQ thats the
RA>way I am going to do it. :)

For newbie EQing, try the following. We use it and it works wonderfully.

Grond
-----------------------------
From: "David E. Berthiaume Jr." <mud@iii.net>
Subject: do_newbie (not 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  be the end field
 */

  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 ===

to: INT:rasputin@woodtech.com
cc: int:circle@cspo.queensu.ca

SENT FROM: GAME ROOM ON THE LAKE BBS (GROTL.COM)
YOUR PLACE FOR ONLINE ENTERTAINMENT
PHONE: (704) 664-6742


+-----------------------------------------------------------+
| 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