Re: ASCII Pfiles breaks MUD Mail?

From: Mark Garringer (
Date: 01/23/03

>Without knowing the specifics of the patch you've used,

As an FYI I used ascii_pfiles_2.1_on_bpl21_oasis2.0.1_dg.patch.gz

>Try comparing your code with how loading a character is done in other
> >places (that work correctly, I presume) like do_stat() or do_set().

Perfect! I was able to solve the problem as follows:

-int     load_char(char *name, struct char_data *ch);
+int     load_char(const char *name, struct char_data *ch);

-int load_char(char *name, struct char_data *ch)
+int load_char(const char *name, struct char_data *ch)


int mail_recip_ok(const char *name)
  struct char_data
  int ret = FALSE;

CREATE(victim, struct char_data, 1);
+ CREATE(victim->player_specials, struct player_special_data, 1);
- if (get_id_by_name(name) >= 0) {
-   save_char(victim, NOWHERE);
+  if (load_char(name, victim) >= 0) {
+    save_char(victim, GET_LOADROOM(victim));
    char_to_room(victim, 0);
    if (!PLR_FLAGGED(victim, PLR_DELETED))
      ret = TRUE;
  } else
  return ret;

I should be able to upload 'clean' patches for put DG+Oasis and ascii pfiles
for 3.1 shortly. As well as an updated circle3.1-w-goodies bundle.

Thanks for the help!


Add photos to your e-mail with MSN 8. Get 2 months FREE*.

   | FAQ: |
   | Archives: |
   | Newbie List:   |

This archive was generated by hypermail 2b30 : 06/26/03 PDT