Date: Wed, 18 Sep 2002 16:38:53 -0500
From: Mike Dillon <gsvalore@lordlegacy.org>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
X-Accept-Language: en
To: gary.hartzell@verizon.net
Subject: Re: Programming Help

Gary,

I just breezed over the lordstrc.pas file again (the documentation is
sparce to say the least).  Basically you will need to read INFO.<node>
which will have the account # of the user as well as other information.
NODEX.DAT has comm port info basically.

Should you need more extensive information than what is available in
the INFO.? and NODE?.DAT files, you can take the account number given
and open the player.dat file and read the player's structure directly
from the datafile itself.  When your door is done, you can pass back
a mailxx.dat file that will change stats (the code are documented
in lordstrc.pas).  I highly recommend against writing the player.dat
file from an IGM as this can cause serious problems; or at least the
potential for some.  I do hope this was a bit helpful to you.

Sincerely,
Mike Dillon aka GSValore

Gary wrote:
>
> As some of you probably know, I am the author of several RHP scripts for
> LORD.  But, I've always had a desire to write my own IGM that isn't
> dependant on The Gateway, etc. to run.  Between Rick Parrish's release of
> Other Places and Michael Preslar's news about 32-bit LORD looking good, my
> interest has been sparked again.
>
> I will not code in Pascal for reasons I am not willing to get into
> here.  My language of choice is C++ and I have Open Doors, which I am
> becoming very familiar with.  I remember reading in a message on this list
> that the language used is not an issue if LORD's mail codes are used for
> changing stats.  My question is: how do these mail codes work?  Seth's
> explanation on the subject are too vague for my liking.  The mailX.dat file
> doesn't look the way he explains and I am totally lost.
>
> Anyone who is willing to give me some help can feel free to send me a
> private email to gary.hartzell@verizon.net.  As I eluded to earlier, I
> don't need help with LORD programming in C++ -- I know how to write to a
> external file -- I need help understanding where to get the info for the
> current player and how to alter said player's stats using the mail codes.
>
> Thanks,
> Gary
>