PDA

View Full Version : Name Highlight Script



Gan
02-06-2006, 11:38 PM
Does anyone have a version of the name highlight script for SF?

I've finally kicked FE to the curb because of a change in screen resolution that nuked all of my FE screen settings and I'm tired of changing all 6 characters and the default back whenever my laptop resolution is altered.

Here's the FE version of the command line add name/color to highlight list.
________________________________________-

#[ Utility ]Adding names to highlight list

#Add People to Names Highlights
If_3 goto TooMany
IF_2 goto start
Echo Proper usage of this script is .name <person> <Color>
Echo For Example to make RatHunters name red type .Name RatHunter Red
Echo The Usable Colors Are DarkBlue, Green, Teal, Maroon,Purple, Brown, Grey, Blue, Lightgreen, SkyBlue, Pink, Yellow, and White.
Exit
START:
Pause 1
goto %2
matchwait
DarkBlue:
AddToHighlightNames string="%1" foreColor=2 highlightEntireLine=False notOnWordBoundary=FALSE caseInsensitive=TRUE
goto end
Green:
AddToHighlightNames string="%1" foreColor=3 highlightEntireLine=False notOnWordBoundary=FALSE caseInsensitive=TRUE
goto end
Teal:
AddToHighlightNames string="%1" foreColor=4 highlightEntireLine=False notOnWordBoundary=FALSE caseInsensitive=TRUE
Goto end
Maroon:
AddToHighlightNames string="%1" foreColor=5 highlightEntireLine=False notOnWordBoundary=FALSE caseInsensitive=TRUE
goto end
Purple:
AddToHighlightNames string="%1" foreColor=6 highlightEntireLine=False notOnWordBoundary=FALSE caseInsensitive=TRUE
goto end
Brown:
AddToHighlightNames string="%1" foreColor=7 highlightEntireLine=False notOnWordBoundary=FALSE caseInsensitive=TRUE
goto end
Grey:
AddToHighlightNames string="%1" foreColor=8 highlightEntireLine=False notOnWordBoundary=FALSE caseInsensitive=TRUE
goto end
Blue:
AddToHighlightNames string="%1" foreColor=9 highlightEntireLine=False notOnWordBoundary=FALSE caseInsensitive=TRUE
goto end
Lightgreen:
AddToHighlightNames string="%1" foreColor=10 highlightEntireLine=False notOnWordBoundary=FALSE caseInsensitive=TRUE
goto end
SkyBlue:
AddToHighlightNames string="%1" foreColor=11 highlightEntireLine=False notOnWordBoundary=FALSE caseInsensitive=TRUE
goto end
Red:
AddToHighlightNames string="%1" foreColor=12 highlightEntireLine=False notOnWordBoundary=FALSE caseInsensitive=TRUE
goto end
Pink:
AddToHighlightNames string="%1" foreColor=13 highlightEntireLine=False notOnWordBoundary=FALSE caseInsensitive=TRUE
goto end
Yellow:
AddToHighlightNames string="%1" foreColor=14 highlightEntireLine=False notOnWordBoundary=FALSE caseInsensitive=TRUE
goto end
White:
AddToHighlightNames string="%1" foreColor=15 highlightEntireLine=False notOnWordBoundary=FALSE caseInsensitive=TRUE
goto end
END:
ECHO Is %1 now highlighted the color you want? if not try again!
Exit
labelError:
Echo You did not choose a valid color, for the second variable
Echo The Usable Colors Are DarkBlue, Green, Teal, Maroon,Purple, Brown, Grey, Blue, Lightgreen, SkyBlue, Pink, Yellow, and White.
Echo Example .name RatHunter red
exit
Toomany:
Echo Too many Variables...you can only have 2 variables, the first being the name, the second being the color
Echo The Usable Colors Are DarkBlue, Green, Teal, Maroon,Purple, Brown, Grey, Blue, Lightgreen, SkyBlue, Pink, Yellow, and White.
Echo Example .name RatHunter Red

Latrinsorm
02-07-2006, 11:18 AM
Try changing all the variables to %#% (%1 -> %1%) and see if that works.

Augie
02-07-2006, 12:22 PM
I do have it, but not here at work. I'll post it when I get home.

You have to actually change the colors to the HTML color pallate codes from SF and you have to have it say AddtoHighlightString I think. I'll get it when I get home.

Nilandia
02-07-2006, 05:35 PM
Here's my version of it, re-coded from the Wizard script and set to my own color preferences.

Gretchen

Start:
if_1 goto secondcheck

labelerror:
echo Usage is .qhl <category> <person>
echo Categories are:
echo npc
echo merchant
echo enemy
echo friend
echo staff
echo rester
echo gss
echo delete (removes them from your highlights)
exit

secondcheck:
if_2 goto %1%
goto help

npc:
AddToHighlightNames string=%2% backColor=#000000 foreColor=#FF00FF notOnWordBoundary=false caseInsensitive=False
exit

merchant:
AddToHighlightNames string=%2% backColor=#000000 foreColor=#808000 notOnWordBoundary=false caseInsensitive=False
exit

enemy:
AddToHighlightNames string=%2% backColor=#000000 foreColor=#FF0000 notOnWordBoundary=false caseInsensitive=False
exit

friend:
AddToHighlightNames string=%2% backColor=#000000 foreColor=#FFFF00 notOnWordBoundary=false caseInsensitive=False
exit

staff:
AddToHighlightNames string=%2% backColor=#000000 foreColor=#00FFFF notOnWordBoundary=false caseInsensitive=False
exit

rester:
AddToHighlightNames string=%2% backColor=#000000 foreColor=#00FF00 notOnWordBoundary=false caseInsensitive=False
exit

gss:
AddToHighlightNames string=%2% backColor=#000000 foreColor=#4AE3B9 notOnWordBoundary=false caseInsensitive=False
exit

delete:
DeleteFromHighlightNames string=%2%
exit

Shaelun
02-07-2006, 07:50 PM
I guess I'm a little lost about exactly what you want, but this may be of interest to you -- I think I saw something or other about highlights on the site. It's an add-on prog for SF (I can barely get SF to run so I only know what the site says): take a look if you want.

http://www.blacklightning.net