From ff0f0707ee61873fc9bed1eab4b6c06cc475879c Mon Sep 17 00:00:00 2001 From: Michael Sharp Date: Fri, 25 May 2012 19:20:59 -0400 Subject: [PATCH] Fishing - Added extra error trapping CC_Auto - Added delay that will now allow more than 1 pass at a time. --- VeggieTales/luaScripts/Fishing.lua | 4 ++++ VeggieTales/luaScripts/cc_Auto.lua | 2 ++ 2 files changed, 6 insertions(+) diff --git a/VeggieTales/luaScripts/Fishing.lua b/VeggieTales/luaScripts/Fishing.lua index e4e9bea..674eccd 100644 --- a/VeggieTales/luaScripts/Fishing.lua +++ b/VeggieTales/luaScripts/Fishing.lua @@ -338,6 +338,10 @@ function findchat(line) if line and line > 0 then Coords = imgs[(#imgs) - line]; + if not Coords then + error 'Main chat tab is not showing or the chat window needs to be adjusted!' + end + end --Find What Happened diff --git a/VeggieTales/luaScripts/cc_Auto.lua b/VeggieTales/luaScripts/cc_Auto.lua index 0ee3500..47ba0b5 100755 --- a/VeggieTales/luaScripts/cc_Auto.lua +++ b/VeggieTales/luaScripts/cc_Auto.lua @@ -24,8 +24,10 @@ function ccMenu() askForWindow(focusMessage); for i=1,passCount do runCommand(buttons[1]); + lsSleep(1000); ccRun(i, passCount); end + lsPlaySound("Complete.wav"); end function findOvens()