RAR
03-25-2014, 05:16 PM
Would anyone know how to add a sound to scriptcheck so that when it does it's thing it also plays a sound on your computer? I love scriptcheck but a sound might be an extra layer of protection and allow you to move around the room you are playing in instead of having to be glued to your screen. Four days straight of trying to get my last forging-crafting rank is killing me and I find myself getting distracted and not watching the screen. Thx
Code...
=begin
This script echo's every line to the familiar window, unless it
has been seen more than five times before.
because script checks can't be seen without a script...
tillmen@lichproject.org
=end
hide_me
CharSettings['count'] ||= Hash.new
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
# ignore chats
next if line =~ /^\[.*?\]\-[A-z]+\:|^\[server\]\: "/
# ignore numbers when considering if a line has been seen before
mod_line = line.gsub(/[0-9\s]+/, '')
# increment the number of times the line has been seen
CharSettings['count'][mod_line] = CharSettings['count'][mod_line].to_i + 1
# echo the line to the familiar window, unless it has been seen more than 5 times
unless CharSettings['count'][mod_line] > 5
puts("#{fam_window_begin}#{line}\r\n#{fam_window_end}")
end
end
Code...
=begin
This script echo's every line to the familiar window, unless it
has been seen more than five times before.
because script checks can't be seen without a script...
tillmen@lichproject.org
=end
hide_me
CharSettings['count'] ||= Hash.new
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
# ignore chats
next if line =~ /^\[.*?\]\-[A-z]+\:|^\[server\]\: "/
# ignore numbers when considering if a line has been seen before
mod_line = line.gsub(/[0-9\s]+/, '')
# increment the number of times the line has been seen
CharSettings['count'][mod_line] = CharSettings['count'][mod_line].to_i + 1
# echo the line to the familiar window, unless it has been seen more than 5 times
unless CharSettings['count'][mod_line] > 5
puts("#{fam_window_begin}#{line}\r\n#{fam_window_end}")
end
end