Yasutoshi
05-16-2014, 10:51 AM
I'm working on a multi-threaded script and one of the threads listens for:
;send to 'scriptname' report
When it receives the report unique data it then spits out a report.
The script also hunts and does other things. However, I've been receiving a:
"this script is set as unique but is waiting for game data" message with a 2 second delay. I even see where it's listed in lich.
I want to be able to receive both game data and unique data.
toggle_unique
clear
def reporting
loop {
msg = unique_get.strip
if msg == 'report'
monster_report
end
}
end
talker = Thread.new{ reporting }
talker.join
The above is a section of the script. So other sections of the script where I do:
fput "stance defensive" or any type of matchwait receives the script is set as unique.... followed by a 2 second delay.
The end goal is to be able to do both. There's very little documentation with lich, even in the Lich Scripting Reference.
Help would be appreciated.
;send to 'scriptname' report
When it receives the report unique data it then spits out a report.
The script also hunts and does other things. However, I've been receiving a:
"this script is set as unique but is waiting for game data" message with a 2 second delay. I even see where it's listed in lich.
I want to be able to receive both game data and unique data.
toggle_unique
clear
def reporting
loop {
msg = unique_get.strip
if msg == 'report'
monster_report
end
}
end
talker = Thread.new{ reporting }
talker.join
The above is a section of the script. So other sections of the script where I do:
fput "stance defensive" or any type of matchwait receives the script is set as unique.... followed by a 2 second delay.
The end goal is to be able to do both. There's very little documentation with lich, even in the Lich Scripting Reference.
Help would be appreciated.