Jump to content
RSBud

FailSafes (Classic 2007 RuneScape) HELP!

Recommended Posts

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 by RSBud
added link to code
Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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 by RSBud
Link to comment
Share on other sites

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 by LordJashin
  • Confused 1
Link to comment
Share on other sites

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...