RSBud Posted April 30, 2012 Share Posted April 30, 2012 (edited) Working on a Classic 2007 RuneScape server, I came up with a little bot that bots in Draynor. It makes Extreme Attacks, Strengths, Defenses, Ranges, Magics, & Special Restores all in a loop of about 210k pots(in all) if left alone and goes without error long enough.... (that's making 14 pots every 1.56minutes.) I want to make a failsafe for it! It'll get through about 7k pots before it might messup once and walk away from botting area... I've got an idea, but I'm not sure.. I need help so I can run this bot overnight un-attended. Any help is greatful! The failsafe will hopefully run back to botting area and start botting again.. I've got my script set up to were if a failsafe should work, it'll continue botting. heres my script: http://forums.scar-divi.com/showthread.php?1359-Classic-2007-RS-Bot-Error-In-Loop Edited April 30, 2012 by RSBud added link to code Quote Link to comment Share on other sites More sharing options...
LordJashin Posted April 30, 2012 Share Posted April 30, 2012 If cant find bank then Teleport to town, run to bank. Or if can't find bank (recognize areas) run towards bank. Or just fix your script so it doesn't run off in the first place, or not find the bank. SPS offers walking methods, etc. Literal example: Could be better but w/e: [sCAR] if CantFindBank then begin Repeat RecognizeArea; HeadTowardsBank; until (FoundBank) or (RecognizeArea = false) or (Time > 1min); if (Time > 1min) or (RecognizeArea = false) then Exit; end; if StillCantFindBank begin TeleportToTown; Repeat RecognizeArea; HeadTowardsBank until (FoundBank) or (RecognizeArea = false) or (Time > 1min); if (Time > 1min) or (RecognizeArea = false) then begin LogOff; Exit; end; end; [/sCAR] Quote Link to comment Share on other sites More sharing options...
RSBud Posted April 30, 2012 Author Share Posted April 30, 2012 (edited) If cant find bank then Teleport to town, run to bank. Or if can't find bank (recognize areas) run towards bank. Or just fix your script so it doesn't run off in the first place, or not find the bank. SPS offers walking methods, etc. Literal example: Could be better but w/e: [sCAR] if CantFindBank then begin Repeat RecognizeArea; HeadTowardsBank; until (FoundBank) or (RecognizeArea = false) or (Time > 1min); if (Time > 1min) or (RecognizeArea = false) then Exit; end; if StillCantFindBank begin TeleportToTown; Repeat RecognizeArea; HeadTowardsBank until (FoundBank) or (RecognizeArea = false) or (Time > 1min); if (Time > 1min) or (RecognizeArea = false) then begin LogOff; Exit; end; end; [/sCAR] This looks like something that would work, could you help me come up with the procedures here? I have skype if you are willing, I don't think I could figure out how to execute a RecognizeArea. skype: eat.raichu Edited April 30, 2012 by RSBud Quote Link to comment Share on other sites More sharing options...
LordJashin Posted April 30, 2012 Share Posted April 30, 2012 (edited) This looks like something that would work,could you help me come up with the procedures here? I have skype if you are willing, I don't think I could figure out how to execute a RecognizeArea. skype: eat.raichu Its just an example using made up functions/procedures, in order to achieve the code I posted above, you'd have to use either Color Finding, etc, or walking methods. Sorry, but I'm not going to code this for you, just think logically, this isn't a hard concept. Or just Rewrite your script entirely, so its more readable. I don't script for RS anyway. Check out the Scar Divi wiki - http://wiki.scar-divi.com http://wiki.scar-divi.com/index.php?title=The_Official_SCAR_Scripting_Guide Tutorials section - http://forums.scar-divi.com/forumdisplay.php?24-Tutorials-and-FAQ Read all that then you might be able to do what your asking for easily. Edited June 11, 2012 by LordJashin 1 Quote Link to comment Share on other sites More sharing options...
RSBud Posted April 30, 2012 Author Share Posted April 30, 2012 Its just an example using made up functions/procedures, in order to achieve the code I posted above, you'd have to use either Color Finding, etc, or walking methods.Sorry, but I'm not going to code this for you, just think logically, this isn't a hard concept. Or just Rewrite your script entirely, so its more readable. I don't script for RS anyway. Check out the Scar Divi wiki - http://wiki.scar-divi.com http://wiki.scar-divi.com/index.php?title=The_Official_SCAR_Scripting_Guide Tutorials section - http://forums.scar-divi.com/forumdisplay.php?24-Tutorials-and-FAQ Read all that then you'd be able to do what your asking for easily. OK thanks! Quote Link to comment Share on other sites More sharing options...