Rlogin Client

Discuss ArcticZone add-ons here.

Moderators: dspain, Mod Squad

Post Reply
User avatar
dspain
Posts: 2102
Joined: Sun May 07, 2006 10:38 pm
Location: richmond,virginia
Contact:

Rlogin Client

Post by dspain »

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

Stoneslinger76
Posts: 427
Joined: Wed Apr 23, 2008 12:01 pm
Location: Kitchener, ON, Canada
Contact:

Re: Rlogin Client

Post by Stoneslinger76 »

dspain wrote: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
Hey you can send me the new stuff, GALRLGN and the new global control pack. I would dl it but I see your bbs is still down.
You can also upload it to my bbs ISVARC, so others can download them.
Stoneslinger
telnet://theswampbbs.net or http://theswampbbs.net

User avatar
dspain
Posts: 2102
Joined: Sun May 07, 2006 10:38 pm
Location: richmond,virginia
Contact:

Re: Rlogin Client

Post by dspain »

Stoneslinger76 wrote:
dspain wrote: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
Hey you can send me the new stuff, GALRLGN and the new global control pack. I would dl it but I see your bbs is still down.
You can also upload it to my bbs ISVARC, so others can download them.
im finalizing the network tonight, the server will be back up full time running close to 30+ modules including the Tele-Arena, XanthaMUD, and Usurper betas.

Post Reply