home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
MISC
/
ZREG143.ZIP
/
COLOR.SRC
< prev
next >
Wrap
Text File
|
1998-02-07
|
3KB
|
134 lines
########## COLOR.SRC ##########
### FOR SETTING CHAT COLOR FOR EACH USER ###
!INCLUDE FILE_IO.INC
!INCLUDE SBBSDEFS.INC
!DEFINE DATA_LEN 250 # Set Length for Each Entry #
INT file offset
STR blank color
fopen file o_rdwr|o_creat|o_denynone "..\exec\zephyr\reg\registry.dat"
set blank ""
set offset 0
# Jump to user's block #
copy offset _useron.number
mul offset data_len
sub offset data_len
add offset 183
fset_pos file offset seek_set
fread file color 7
truncsp color
# If color not set then revert to default #
compare color blank
if_true
goto exit
end_if
strupr color
# Set color for chat handle #
compare color "GREEN"
if_true
replace_text 520 "_g%%-8.8s wh(%%2d)%%c nc%%s"
goto exit
end_if
compare color "HGREEN"
if_true
replace_text 520 "_gh%%-8.8s wh(%%2d)%%c nc%%s"
goto exit
end_if
compare color "BLUE"
if_true
replace_text 520 "_b%%-8.8s wh(%%2d)%%c nc%%s"
goto exit
end_if
compare color "HBLUE"
if_true
replace_text 520 "_bh%%-8.8s wh(%%2d)%%c nc%%s"
goto exit
end_if
compare color "RED"
if_true
replace_text 520 "_r%%-8.8s wh(%%2d)%%c nc%%s"
goto exit
end_if
compare color "HRED"
if_true
replace_text 520 "_rh%%-8.8s wh(%%2d)%%c nc%%s"
goto exit
end_if
compare color "CYAN"
if_true
replace_text 520 "_c%%-8.8s wh(%%2d)%%c nc%%s"
goto exit
end_if
compare color "HCYAN"
if_true
replace_text 520 "_ch%%-8.8s wh(%%2d)%%c nc%%s"
goto exit
end_if
compare color "MAGENTA"
if_true
replace_text 520 "_m%%-8.8s wh(%%2d)%%c nc%%s"
goto exit
end_if
compare color "PINK"
if_true
replace_text 520 "_mh%%-8.8s wh(%%2d)%%c nc%%s"
goto exit
end_if
compare color "YELLOW"
if_true
replace_text 520 "_yh%%-8.8s wh(%%2d)%%c nc%%s"
goto exit
end_if
compare color "BROWN"
if_true
replace_text 520 "_y%%-8.8s wh(%%2d)%%c nc%%s"
goto exit
end_if
compare color "WHITE"
if_true
replace_text 520 "_nh%%-8.8s wh(%%2d)%%c nc%%s"
goto exit
end_if
compare color "GRAY"
if_true
replace_text 520 "_n%%-8.8s wh(%%2d)%%c nc%%s"
goto exit
end_if
compare color "BLACK"
if_true
replace_text 520 "_kh%%-8.8s wh(%%2d)%%c nc%%s"
goto exit
end_if
# Fall though to originial color #
revert_text 520
:Exit
FCLOSE FILE
### END OF COLOR.SRC ###