shadowrecon Posted January 6, 2012 Author Share Posted January 6, 2012 Im Now working on a Yew WC bot, but its going to take some time, im trying to figure a logical way to find the tree fast and efficiently, in that script it works really good, but it took like 30 lines to do one step, so id like to shorten a little bit, and have some more error checking abilities like check to see if miss clicked ect.. but it will all come together, Im guessing the bot is working good, im just glad i finally got the tree colors, so far its been a week or so and they havent been changed. =)) Quote Link to comment Share on other sites More sharing options...
brunoboy Posted January 6, 2012 Share Posted January 6, 2012 Personally I'm Brazilian! I found this program, sorry for my bad English! I sometimes use the google translator, someone can help me to download this program through teamviewer? I just tried but failed .. Quote Link to comment Share on other sites More sharing options...
shadowrecon Posted January 6, 2012 Author Share Posted January 6, 2012 Personally I'm Brazilian!I found this program, sorry for my bad English! I sometimes use the google translator, someone can help me to download this program through teamviewer? I just tried but failed .. This isnt a program, its a script, that runs in a program. The program is Scar v3.3 and you can find it in the main part of the forms. Download scar, install it, then download the script, and open it in scar, then follow the guide at the start of this tut. Quote Link to comment Share on other sites More sharing options...
rsutton Posted January 6, 2012 Share Posted January 6, 2012 Shadow. you say you got a surprise for me? I got some new functions and procedures I made yesterday to implement in our scripts. very very lovely work, I know about the gui part of scar is very easyly done but why it usually isnt done too much anymore is the bugs and broken errors that come with it on a random basis. Quote Link to comment Share on other sites More sharing options...
shadowrecon Posted January 6, 2012 Author Share Posted January 6, 2012 =) I only use it for setup procedure after that its exited out of memory and isnt running anymore so, if the bugs happend it would be within the first few mins of running it =) Cant wait to see em! Quote Link to comment Share on other sites More sharing options...
brunoboy Posted January 7, 2012 Share Posted January 7, 2012 runescape is updating on 6 in 6 hours? SMART has to run on 6 in 6 hours to work? sorry my bad English I just want to know! Quote Link to comment Share on other sites More sharing options...
rsutton Posted January 7, 2012 Share Posted January 7, 2012 Explain a bit better Quote Link to comment Share on other sites More sharing options...
brunoboy Posted January 7, 2012 Share Posted January 7, 2012 The runescape is updating at 6 in 6 hours? Quote Link to comment Share on other sites More sharing options...
shadowrecon Posted January 8, 2012 Author Share Posted January 8, 2012 are you saying you ran the script for 6 hours and then runescape updated but smart didnt so it said 'runescape has been updated?' Quote Link to comment Share on other sites More sharing options...
brunoboy Posted January 8, 2012 Share Posted January 8, 2012 yeah he is updating every day! this disrupts Quote Link to comment Share on other sites More sharing options...
Bixby Sayz Posted January 8, 2012 Share Posted January 8, 2012 A new "feature" introduced is the client will give the message "runescape has been updated" after six hours (sometimes sooner), forcing you to reload the client. This is an anti-bot measure that is here to stay and we have to live with it unfortunately. Quote Link to comment Share on other sites More sharing options...
shadowrecon Posted January 8, 2012 Author Share Posted January 8, 2012 Yep there is no current solution for this yet. Is the bot working for you other than that brunoboy Quote Link to comment Share on other sites More sharing options...
brunoboy Posted January 8, 2012 Share Posted January 8, 2012 Why do not you make a copy of CrashSmart? http://villavu.com/forum/showthread.php?t=67864 Can you create something? Quote Link to comment Share on other sites More sharing options...
FHannes Posted January 8, 2012 Share Posted January 8, 2012 That's a pretty horrible solution for the problem, it'd probably crash SCAR as well... Quote Link to comment Share on other sites More sharing options...
shadowrecon Posted January 9, 2012 Author Share Posted January 9, 2012 Yeah, as freddy said not a good idea, because there using simba and crashing simbas .bat file so it will restart simba. im looking into ways around it, have came up with any yet but ill keep looking, im assuming the bot it ruining flawlessly except the fact the 6 hour update? Quote Link to comment Share on other sites More sharing options...
brunoboy Posted January 9, 2012 Share Posted January 9, 2012 I think it's possible to create a client that restarts every time! When "Runescape has Been updated" Smart closes and opens again running script Please if anyone know how to create it will be very good! sorry my bad english, i use google translate Quote Link to comment Share on other sites More sharing options...
FHannes Posted January 9, 2012 Share Posted January 9, 2012 I think it's possible to create a client that restarts every time!When "Runescape has Been updated" Smart closes and opens again running script Please if anyone know how to create it will be very good! sorry my bad english, i use google translate It's not, SMART is loaded into SCAR's memory space, but that's a rather hackish implementation, it often causes SMART to get stuck in the memory when it is closed, it likely won't load a second time. Quote Link to comment Share on other sites More sharing options...
shadowrecon Posted January 9, 2012 Author Share Posted January 9, 2012 this is not a major issue, i think randoms are more important, if a bot will run for 6 hours i would consider that a plus..... take what you get and leave it at that, or write a solution to this problem and i will implement it. Im more interested in producing bots that run for 3-5 hours, i can come back and check a bot in 6 hours.. one solution i was thinking freddy, is since smart is loaded into memory, couldnt we reload it withing the script? at a certain point? if we could get the pointers to smarts memory location we would over write the info in those banks and crash it kinda liek what he said, but would that crash scar? Quote Link to comment Share on other sites More sharing options...
FHannes Posted January 9, 2012 Share Posted January 9, 2012 this is not a major issue, i think randoms are more important, if a bot will run for 6 hours i would consider that a plus..... take what you get and leave it at that, or write a solution to this problem and i will implement it. Im more interested in producing bots that run for 3-5 hours, i can come back and check a bot in 6 hours.. one solution i was thinking freddy, is since smart is loaded into memory, couldnt we reload it withing the script? at a certain point? if we could get the pointers to smarts memory location we would over write the info in those banks and crash it kinda liek what he said, but would that crash scar? No, SMART is loaded into SCAR's memory space inside of the Java Virtual Machine which is loaded into SCAR's memroyspace by the Java Native Interface, they're 2 completely different things, they can't interact except through the JNI interface which is what SMART does, if you crash it, chances are very big that SCAR crashes all together. Quote Link to comment Share on other sites More sharing options...
rsutton Posted January 9, 2012 Share Posted January 9, 2012 (edited) Freddy, the answer is simple. lets just create our own smart client - just saying its not difficult to make a smart client that will work with scar a bit better. Edited January 9, 2012 by rsutton Quote Link to comment Share on other sites More sharing options...
shadowrecon Posted January 9, 2012 Author Share Posted January 9, 2012 So there is no way to load smart after the script has been started? What if we had a Separate include instead of OSI that called upon smart to start, then later in the script used an external mouse click to close smart then recalled the smart include that started smart ? Quote Link to comment Share on other sites More sharing options...
Enter here Posted January 22, 2012 Share Posted January 22, 2012 Excellent Script, haven't had any problems so far Quote Link to comment Share on other sites More sharing options...
FHannes Posted January 22, 2012 Share Posted January 22, 2012 (edited) Procedure GetCurrentScarVersion; Var ScarVersion: Integer; begin ScarVersion := GetSCARVersion; if (not(ScarVersion = 330)) then begin Writeln('Please update your Scar to Version 3.30'); wait(5000); ScriptTerminate; end; if(ScarVersion = 330) then Status('Your Scar is Currently Up To Date!'); end; ==> procedure CheckScarVersion; begin if GetSCARVersion <> 330 then begin WriteLn('Please update your Scar to Version 3.30'); ScriptTerminate; end else Status('Your Scar is Currently Up To Date!'); end; You should only ever use Get for methods that have a return value, as it indicates it returns something. EDIT: This would technically be even better: procedure CheckScarVersion; begin {$IFNDEF SCAR330_UP} WriteLn('Please update your copy of SCAR to run this script.'); ScriptTerminate; {$ENDIF} end; If their version of SCAR is 3.30 or higher in this case, the WriteLn and ScriptTerminate will never be compiled, less work for the engine though that doesn't really matter... http://forums.scar-divi.com/showthread.php?30-Default-Compiler-Defines Edited January 22, 2012 by Freddy Quote Link to comment Share on other sites More sharing options...
shadowrecon Posted January 22, 2012 Author Share Posted January 22, 2012 Procedure GetCurrentScarVersion; Var ScarVersion: Integer; begin ScarVersion := GetSCARVersion; if (not(ScarVersion = 330)) then begin Writeln('Please update your Scar to Version 3.30'); wait(5000); ScriptTerminate; end; if(ScarVersion = 330) then Status('Your Scar is Currently Up To Date!'); end; ==> procedure CheckScarVersion; begin if GetSCARVersion <> 330 then begin WriteLn('Please update your Scar to Version 3.30'); ScriptTerminate; end else Status('Your Scar is Currently Up To Date!'); end; You should only ever use Get for methods that have a return value, as it indicates it returns something. EDIT: This would technically be even better: procedure CheckScarVersion; begin {$IFNDEF SCAR330_UP} WriteLn('Please update your copy of SCAR to run this script.'); ScriptTerminate; {$ENDIF} end; If their version of SCAR is 3.30 or higher in this case, the WriteLn and ScriptTerminate will never be compiled, less work for the engine though that doesn't really matter... http://forums.scar-divi.com/showthread.php?30-Default-Compiler-Defines Yeah i need to update this, i was thinking about it and later i wasl ike what if they have a newer version?? lol. I just did is it was >= but your method takes less lines and looks cleaner i will implement it and update this script, because i also messed up my color changer as it goes from 3-4 and doesnt ever go to 1-2 but once, and i started my array at 0 but the first object is at 1.. lol Quote Link to comment Share on other sites More sharing options...
FHannes Posted January 22, 2012 Share Posted January 22, 2012 You shouldn't have to care whether they have a newer version, as long as they can run the latest copy of OSI and your script with that copy, if they can't it will probably not even compile to begin with. I actually suggest going a step further and writing it like this: {$IFNDEF SCAR330_UP} {$ERROR Please update your copy of SCAR to run this script} {$ENDIF} You don't even need a procedure. And if you want to check for a specific version, just do it like this: {$IFNDEF SCAR330} {$ERROR Please update your copy of SCAR to run this script} {$ENDIF} This approach will only work for SCAR 3.29 and newer though. Quote Link to comment Share on other sites More sharing options...