home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
WWIVMODS
/
PRE412.ZIP
/
GOLDEDIT.MOD
< prev
next >
Wrap
Text File
|
1990-03-23
|
6KB
|
188 lines
Ali Baba #1 @5451
Sun Mar 18 22:22:36 1990
ON-LINE GOLD EDITOR
+++++++++++++++++++
WWIV 4.11 MODIFICATION BY:
PUDJI 3 @5458
7 @5451
-------------------------------------------------------------------------------
Well this Mod is really useful when you want to edit Gold on a On-line User,
Hitting the F1 key, it will give you a special field to add or retreat gold of
the on-line user...
Maybe this Mod has previously been release, I wait for fews months reading on
the Mod Net and I haven't see it yet... That's why I release it now...
Sorry if that Mod has release before....
Ali Baba
1 @5451
_______________________________________________________________________________
HOW TO INSTALL THAT MOD:
************************
Well I try to simplify the installation, I give you the whole part of the
modified code.
If you havent Modified the void val_cur_user() in module CONIO.C just replace
the original code with the modified one.
If you have changed something in this code, well better read carefully both of
code and look to not erasing another mod you have installed before...
-------------------------------------------------------------------------------
LOAD CONIO.C and search for void val_cur_user()
replace the entire code with:
void val_cur_user()
/* val_cur_user allows the sysop at the keyboard to validate the current user,
chaning sl, dsl, ar, dar, sysop sub, exemptions, restrictions, and user
note
*/
{
char sl[4],dsl[4],exempt[4],sysopsub[4],ar[17],dar[17],restrict[17],rst[17],
tl[50],gld[6];
int cp,i,done,rc,wx,wy;
pr_wait(1);
thisuser.sl=realsl;
savescreen(&screensave);
curatr=7;
wx=15;
wy=4;
makewindow(wx,wy,50,8);
itoa((int)thisuser.sl,sl,10);
itoa((int)thisuser.dsl,dsl,10);
itoa((int)thisuser.exempt,exempt,10);
itoa((int)thisuser.sysopsub,sysopsub,10);
itoa((int)thisuser.gold,gld,10);
strcpy(rst,restrict_string);
for (i=0; i<=15; i++) {
if (thisuser.ar & (1 << i))
ar[i]='A'+i;
else
ar[i]=32;
if (thisuser.dar & (1 << i))
dar[i]='A'+i;
else
dar[i]=32;
if (thisuser.restrict & (1 << i))
restrict[i]=rst[i];
else
restrict[i]=32;
}
dar[16]=0;
ar[16]=0;
restrict[16]=0;
cp=0;
done=0;
movecsr(wx+2,wy+1); sprintf(tl,"SL : %s",sl); outs(tl);
movecsr(wx+26,wy+1); sprintf(tl,"AR : %s",ar); outs(tl);
movecsr(wx+2,wy+2); sprintf(tl,"DSL : %s",dsl); outs(tl);
movecsr(wx+26,wy+2); sprintf(tl,"DAR : %s",dar); outs(tl);
movecsr(wx+2,wy+3); sprintf(tl,"EXMT: %s",exempt); outs(tl);
movecsr(wx+26,wy+3); sprintf(tl,"RSTR: %s",restrict); outs(tl);
movecsr(wx+2,wy+4); sprintf(tl,"SYSOPSUB: %s",sysopsub); outs(tl);
movecsr(wx+2,wy+5); sprintf(tl,"GOLD: %s",gld); outs(tl);
movecsr(wx+2,wy+6); sprintf(tl,"NOTE: %s",thisuser.note); outs(tl);
while (done==0) {
switch(cp) {
case 0:
movecsr(wx+8,wy+1);
editline(sl,3,NUM_ONLY,&rc,"");
thisuser.sl=(char) atoi(sl);
itoa((int)thisuser.sl,sl,10);
sprintf(tl,"%-3s",sl); outs(tl);
break;
case 1:
movecsr(wx+32,wy+1);
editline(ar,16,SET,&rc,"ABCDEFGHIJKLMNOP");
thisuser.ar=0;
for (i=0; i<=15; i++)
if (ar[i]!=32)
thisuser.ar |= (1 << i);
break;
case 2:
movecsr(wx+8,wy+2);
editline(dsl,3,NUM_ONLY,&rc,"");
thisuser.dsl=(char) atoi(dsl);
itoa((int)thisuser.dsl,dsl,10);
sprintf(tl,"%-3s",dsl); outs(tl);
break;
case 3:
movecsr(wx+32,wy+2);
editline(dar,16,SET,&rc,"ABCDEFGHIJKLMNOP");
thisuser.dar=0;
for (i=0; i<=15; i++)
if (dar[i]!=32)
thisuser.dar |= (1 << i);
break;
case 4:
movecsr(wx+8,wy+3);
editline(exempt,3,NUM_ONLY,&rc,"");
thisuser.exempt=(char) atoi(exempt);
itoa((int)thisuser.exempt,exempt,10);
sprintf(tl,"%-3s",exempt); outs(tl);
break;
case 5:
movecsr(wx+32,wy+3);
editline(restrict,16,SET,&rc,rst);
thisuser.restrict=0;
for (i=0; i<=15; i++)
if (restrict[i]!=32)
thisuser.restrict |= (1 << i);
break;
case 6:
movecsr(wx+12,wy+4);
editline(sysopsub,3,NUM_ONLY,&rc,"");
thisuser.sysopsub=(char) atoi(sysopsub);
itoa((int)thisuser.sysopsub,sysopsub,10);
sprintf(tl,"%-3s",sysopsub); outs(tl);
break;
case 7:
movecsr(wx+8,wy+5);
editline(gld,5,NUM_ONLY,&rc,"");
thisuser.gold=(int) atoi(gld);
itoa((int)thisuser.gold,gld,10);
sprintf(tl,"%-3s",gld); outs(tl);
break;
case 8:
movecsr(wx+8,wy+6);
editline(thisuser.note,40,ALL,&rc,"");
break;
}
switch(rc) {
case DONE: done=1; break;
case NEXT: cp=(cp+1) % 8; break;
case PREV: cp--; if (cp==-1) cp=7; break;
}
}
restorescreen(&screensave);
changedsl();
pr_wait(0);
}
-------------------------------------------------------------------------------
As I said previously, that mod work fine with 4.11, if you try to install it
on 4.10 and you get some error Messages, well E-Mail 1 @5451 and I will send
you the modified code for 4.10
ALL THE CREDITS FOR THIS MOD ----> Pudji 3 @5458
7 @5451
For more infos
Ali Baba
1 @5451