You might want to also look for player files of the same name in the
"mortal"
directory. If a mortal is promoted, the next time the character is saved
it will be
saved to the immortal directory, and a stale player file will be located
in the
mortal directory. If an immortal file exists, the mortal file should be
removed
with unlink().
Ryan
Skorpian wrote:
And then modify fread_char to check in the immortal and mortal directories.
Should be as simple as an ifcheck.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Tristan M
Sent: Monday, 14 February 2005 6:21 PM
To: [EMAIL PROTECTED]
Cc: [email protected]
Subject: RE: Immortal PFiles
well, what i would do is in fwrite_char(or wherever it
defines PLAYER_DIR
for saving) just add in
if(ch->level >= LEVEL_IMMORTAL)
sprintf(buf,"../player/immortal/%s.plr",ch->name);
else
sprintf(buf,"../player/%s.plr",ch->name);
fp = fopen(buf,"w");
seems like it would work
From: "Phideaux" <[EMAIL PROTECTED]>
To: <[email protected]>
Subject: Immortal PFiles
Date: Mon, 14 Feb 2005 00:42:57 -0600
Anyone know how I can save/load immortal PFiles into a
different directory?
An outline maybe? I want to seperate the immortal pfiles,
from the mortal.
Any help appreciated.
Atm, of FE.
forgotten-empire.no-ip.com:9000
--
ROM mailing list
[email protected]
http://www.rom.org/cgi-bin/mailman/listinfo/rom
--
ROM mailing list
[email protected]
http://www.rom.org/cgi-bin/mailman/listinfo/rom