Re: [NEWBIE] problems with remort and ascii pfiles

From: Glover, Rick I. (
Date: 06/08/00

I'm not very familiar with ascii pfiles, but I'm pretty sure you need to use
scanf() in there.  You have to use scanf() to grab the value of num from the
file.  Look at the other ascii pfile entries to see how they grab numerical
values and copy that method.

-----Original Message-----
From: some person [mailto:zerion15@YAHOO.COM]
Sent: Tuesday, June 06, 2000 4:53 PM
Subject: [CIRCLE] [NEWBIE] problems with remort and ascii pfiles

We have recently installed ascii Pfiles, after doing
so we installed
remort. We modified remort snippet to use the ascii
pfile system.

We use:

GET_REMORT(ch) = num;
(ch)->player.was_class = num;
/* The above line is just to make check if GET_REMORT
is working */

GET_REMORT_TWO(ch) = num;
(ch)->player.was_class1 = num;

(ch)->player.was_class2 = num;

to load remort.


fbprintf(fl, "Rem1: %d\n", GET_REMORT(ch));
fbprintf(fl, "Rem2: %d\n", GET_REMORT_TWO(ch));
fbprintf(fl, "Rem3: %d\n", GET_REMORT_THREE(ch));

to save.

The problem is no matter what we set remort to (using
the set command)
returns to 0. and the pfiles always have
Rem1: 0
Rem2: 0
...and so on.

Im sure the answer is obvious but im just not seeing
Can anyone help?

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  |

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