Okay so this is a modified script of Tillmen's script called...I think it was called scriptcheck.
Anywho:
Code:
hide_me
CharSettings['count'] ||= Hash.new
always_ignore_strings = /STRING 1|STRING 2|ETC/
always_show_strings = /STRING 1|STRING 2|ETC/
stuff_inside_ands_to_ignore = /kobold|rolton|etc/
ands_to_ignore = /^You notice (a|an|some|the) (#{stuff_inside_ands_to_ignore}( \((dead|stunned|flying|prone|sitting|sleeping|kneeling)\))?)((((, )?((a|an|some|the) (#{stuff_inside_ands_to_ignore}( \((dead|stunned|flying|prone|sitting|sleeping|kneeling)\))?))){1,20})?( and (a|an|some|the) (#{stuff_inside_ands_to_ignore}( \((dead|stunned|flying|prone|sitting|sleeping|kneeling)\))?)))?\.$/
ignore_spell_prepping = /^\w+ gestures while calling upon the lesser spirits for aid\.\.\.$|^\w+ traces a sign while petitioning the spirits for cognition\.\.\.$|^\w+ utters a light chant and raises (his|her) hands\, beckoning the lesser spirits to (his|her) aid\.\.\.$|^\w+ traces a sign while beseeching the spirits for empowerment\.\.\.$|^\w+ murmurs a simple\, mystical chant\.\.\.$|^\w+ appears to be focusing (his|her) thoughts while chanting softly\.\.\.$|^\w+ gestures while summoning the spirits of nature to (his|her) aid\.\.\.$|^\w+ makes a nearly imperceptible motion while whispering a soft phrase\.\.\.$|^\w+ makes a quick gesture while calling upon the powers of the elements\.\.\.$|^\w+ traces a simple rune while intoning a short, mystical phrase\.\.\.$|^\w+ intones a phrase of elemental power while raising (his|her) hands\.\.\.$|^\w+ recites a series of mystical phrases while raising (his|her) hands\.\.\.$|^\w+\'\w+ hands glow with power as s?he summons elemental energy to (his|her) command\.\.\.$|^\w+ traces a series of glowing runes while chanting an arcane phrase\.\.\.$|^\w+ begins a musical chant\.\.\.$|^\w+ traces a sign that contorts in the air while s?he forcefully incants a dark invocation\.\.\.$|^\w+ begins drawing a faint\, twisting symbol as s?he utters an arcane invocation in hushed tones\.\.\.$/
ignore_spell_ups = /^A light blue glow surrounds \w+\.$|^The air thickens and begins to swirl around \w+\.$|^\w+ suddenly looks more powerful\.$|^\w+\'\w+ body seems to glow with an internal strength\.$|^\w+\'\w+ veins stand out briefly\.$|^A deep blue glow surrounds \w+\.$|^\w+\'\w+ eyes narrow in concentration\.$|^An aura of resolve suddenly fills \w+\'s expression\.$|^A misty halo surrounds \w+\.$|^Dark red droplets coalesce upon \w+\'s skin. The sanguine liquid is visible for only an instant before it sinks into (his|her) flesh\.$|^\w+ gets an intense expression on (his|her) face\.$|^A dull golden nimbus surrounds \w+\.$|^\w+ is surrounded by a white light\.$|^A dim aura surrounds \w+\.$|^\w+ begins to breathe more deeply\.$|^A faint slick sheen makes the air about \w+ visible\, then sinks into him and disappears\.$|^\w+ stands tall and appears more confident\.$|^A brilliant aura surrounds \w+\.$|^An opalescent aura surrounds \w+\.$|^\w+ begins to sing of heroic deeds and appears to be bolstered\.$|^As \w+ sings\, the air sparkles briefly around him\.$|^\w+ sings of Kai\'s many triumphs\, lifting (his|her) spirits\.$|^\w+ begins singing and focuses (his|her) voice into a vortex of air centered on (his|her) left arm\.$|^\w+ begins to sing of valiant legends and appears to be more protected\.$|^\w+ begins singing and focuses (his|her) voice into a vortex of air shaped like a sonic .*\, centered on (his|her) right hand\.$|^\w+ begins singing and focuses (his|her) voice into a vortex of air centered around (his|her) body\.$|^As \w+ sings\, you sense the mana around him begin to swirl and move with a subtle grace\.$|^\w+ begins to sing a sibilant melody\. Suddenly\, mirror images of \w+ appear in the area\, making it difficult to tell which is real and which are the illusions\.$|^As \w+ sings\, a squall of wind briefly swirls about him\.$|^\w+ appears to be keenly aware of (his|her) surroundings\.$|^A scintillating light surrounds \w+\'s hands\.$|^\w+ becomes calm and focused\.$|^A (silvery|bright|brilliant) luminescence surrounds \w+\.$|^\w+ stands taller\, as if bolstered with a sense of confidence\.$|^(His|Her) body is surrounded by a dim dancing aura\.$|^\w+ appears somewhat more powerful\.$|^\w+ begins moving faster than you thought possible\.$|^\w+ appears considerably more powerful\.$|^\w+ suddenly disappears\.$|^A translucent sphere forms around \w+\.$|^Glowing specks of light red energy begin to spin around \w+\.$|^\w+ is surrounded by a shimmering field of energy\.$|^\w+ appears somehow changed\.$|^\w+ looks considerably more imposing\.$|^\w+ bristles with energy\.$|^A layer of hard\, shifting stone forms around \w+\.$|^\w+ looks more aware of the surroundings\.$|^\w+ looks more nimble\.$|^Gold\-traced pale green ribbons of energy swirl about and coalesce upon \w+\.$|^\w+ seems to blend into the surroundings better\.$|^The air about \w+ shimmers slightly\.$|^\w+ appears to be listening intently to something\.$|^(His|Her) eyes begin to shine with an inner strength\.$|^\w+ is surrounded by an aura of natural confidence\.$|^\w+ begins to move with cat\-like grace\.$|^\w+ suddenly looks much more dextrous\.$|^\w+ looks charged with power\.$|^\w+ is surrounded by a writhing barrier of sharp thorns\.$|^A dense fog gathers around \w+\, but soon fills the room\.$|^An invisible force guides \w+\.$|^A wall of force surrounds \w+.$|^A shadowy patch of ether rises up through the floor to encompass \w+\, swiftly sinking into (his|her) skin\.$/
movement_to_ignore = /^(Novice |Apprentice |Journeyman |Lord |Great Lord |High Lord |Grand Lord |Lady |Great Lady |High Lady |Grand Lady |Maiden |Chronicler |Mistress )?[a-zA-Z]+ (just went through|just came through|just|strides|begins to walk|just stumbled) (entered|came trudging |trudged away moving |strode |away moving |came crawling |skipped merrily |came sashaying |gracefully sashayed |came marching |went |crawled |limped |marched off to the )?(a half\-timbered pale grey stone guildhall|climbed a spiral staircase|a wooden hatch|a dark opening|arrived\, skipping merrily|north|northeast|east|southeast|south|southwest|west|northwest|out|up|down|in\,?|in gracefully|through an archway|arrived)( but suddenly trips and goes flailing out of sight| flailing (his|her) arms wildly while trying to right (himself|herself))?(\!|\.)$/
if $frontend == 'stormfront'
fam_window_begin = "<pushStream id=\"familiar\" ifClosedStyle=\"watching\"/>"
fam_window_end = "<popStream/>\r\n"
else
fam_window_begin = "\034GSe\r\n"
fam_window_end = "\034GSf\r\n"
end
while line = get
next if line =~ /^\[.*?\]\-[A-z]+\:|^\[server\]\: "/
next if line =~ always_ignore_strings
next if line =~ ignore_spell_prepping
next if line =~ ignore_spell_ups
next if line =~ movement_to_ignore
next if line =~ ands_to_ignore
mod_line = line.gsub(/[0-9\s]+/, '')
CharSettings['count'][mod_line] = CharSettings['count'][mod_line].to_i + 1
if line =~ /([A-Z]{2,1000})/ and line !~ /^Your SIGN OF ([A-Z]+) is no longer effective.$/ and line !~ /\s*(Strength|Constitution|Dexterity|Agility|Discipline|Aura|Logic|Intuition|Wisdom|Influence)\s+\((STR|CON|DEX|AGI|DIS|AUR|
LOG|INT|WIS|INF)\)\:\s+\d+\s+\(-?\d+\)\s+\.\.\.\s+\d+\s+\(-?\d+\)/
puts("#{fam_window_begin}#{line}\r\n#{fam_window_end}")
puts("#{fam_window_begin}Unrecognized game line.\r\n#{Time.at(Time.now).strftime("%B %e, %Y at %I:%M %p")}\n#{fam_window_end}")
end
if line =~ always_show_strings
puts("#{fam_window_begin}#{line}\r\n#{fam_window_end}")
puts("#{fam_window_begin}Unrecognized game line.\r\n#{Time.at(Time.now).strftime("%B %e, %Y at %I:%M %p")}\n#{fam_window_end}")
end
unless CharSettings['count'][mod_line] > 5
puts("#{fam_window_begin}#{line}\r\n#{fam_window_end}")
puts("#{fam_window_begin}Unrecognized game line.\r\n#{Time.at(Time.now).strftime("%B %e, %Y at %I:%M %p")}\n#{fam_window_end}")
end
end
Basically what this does is send every game line to the familiar window along with an echo reading "Unrecognized game line."
After the same line has been seen 5 times it will no longer send that line or the echo warning to the familiar window.
Any string you enter in the always_show_strings variable will always show up in the familiar window along with the echo warning, no matter how many times that line has been seen before.
Any string you enter in the always_ignore_strings variable will never show up in the familiar window, no matter how many times that line has been seen before.
Basically this script will be helpful if you are doing tasks that require a lot of repetitive commands and game lines so you can quickly see when an unrecognized game line pops up in the familiar window. Highlight "Unrecognized game line." in your strings and assign a sound to it and you will be notified both visually and with a sound when the game sees a game line you haven't seen before.
Be sure to always add afk script check lines to the "always_show_strings" variable in case the GMs decide to use the exact same afk script check over and over again.
Please keep in mind I am not advocating afk scripting. This is to help you easier see the afk script checks, not circumvent them.