Rlogin Client
Posted: Mon Jul 19, 2010 4:03 am
released a new version of the rlogin client.
it now stores module info within a database and is recalled by the client itself as well as Global Control.
as far as other global packages unless they compiled it to read from it they wont work.
for those that wanna compile it to be read:
somewhere it can be found in your source:
struct rlogin_data { /* user data record */
CHAR userid[UIDSIZ+1]; /* owner of this record */
CHAR module[MNMSIZ+1]; /* module this user is in */
};
somewhere in your init routine:
if(isfile("GALRLGN.DAT"))
{
database=dfaOpen("GALRLGN.DAT",sizeof(struct rlogin_data),NULL);
}
wherever your info is placed to call the module a player is in, replace it with
getmodule("pointer number");
in your source put:
CHAR *
getmodule(INT unum)
/* return module info */
{
static CHAR modtext[MNMSIZ];
struct rlogin_data rloginblk;
if(isfile("GALRLGN.DAT"))
{
dfaSetBlk(database);
if(dfaAcqEQ(&rloginblk,uacoff(unum)->userid,0))
{
strncpy(modtext,rloginblk.module,MNMSIZ);
}
dfaRstBlk();
if(sameas(modtext,"NULL")) strncpy(modtext,module[usroff(unum)->state]->descrp,MNMSIZ);
}
else
strncpy(modtext,module[usroff(unum)->state]->descrp,MNMSIZ);
return(modtext);
}
thats all ya need
for thjose with global control 4.10 contact me for the DLL replacement
for those wanting the new GALRLGN client PM me
it now stores module info within a database and is recalled by the client itself as well as Global Control.
as far as other global packages unless they compiled it to read from it they wont work.
for those that wanna compile it to be read:
somewhere it can be found in your source:
struct rlogin_data { /* user data record */
CHAR userid[UIDSIZ+1]; /* owner of this record */
CHAR module[MNMSIZ+1]; /* module this user is in */
};
somewhere in your init routine:
if(isfile("GALRLGN.DAT"))
{
database=dfaOpen("GALRLGN.DAT",sizeof(struct rlogin_data),NULL);
}
wherever your info is placed to call the module a player is in, replace it with
getmodule("pointer number");
in your source put:
CHAR *
getmodule(INT unum)
/* return module info */
{
static CHAR modtext[MNMSIZ];
struct rlogin_data rloginblk;
if(isfile("GALRLGN.DAT"))
{
dfaSetBlk(database);
if(dfaAcqEQ(&rloginblk,uacoff(unum)->userid,0))
{
strncpy(modtext,rloginblk.module,MNMSIZ);
}
dfaRstBlk();
if(sameas(modtext,"NULL")) strncpy(modtext,module[usroff(unum)->state]->descrp,MNMSIZ);
}
else
strncpy(modtext,module[usroff(unum)->state]->descrp,MNMSIZ);
return(modtext);
}
thats all ya need
for thjose with global control 4.10 contact me for the DLL replacement
for those wanting the new GALRLGN client PM me