I will try to answer all Runescape related questions!
Good tutorial, learning heaps, I can't figure out how to get the stupid music to stop on spank the monkey so it is so hard to understand you! But when I do hear you, It's very clear on what to do.
Bored of playing rs, and bored of botting it, why am i here?
If anyone had trouble with MarkTime/TimeFromMark try this:
(Put the MarkTime outside of the Repeat->Until loop so that way it accutally counts up, where before it just kept on updating the time so there was no way it reached 3 seconds ^ in this example)MarkTime(OreCounter);
repeat
AntiBan;
Wait(100);
If InvCount=PlusOne then begin
writeln ('Ore obtained');
end;
Until (InvCount=Plusone) or (TimeFromMark(OreCounter) > 3000);
EDIT: you fix this in video #2![]()
Last edited by h4x_; 04-29-2012 at 02:24 PM.
Appreciate the video. Hope it'll teach me how to script.
help please, i tried your video tutorial and my code wont work :-( im a newb you can laugh:/. please tell me where i went wrong, ill love you forever!
program new;
{$DEFINE SMART}
{$i srl/srl.simba}
{$i srl/srl/misc/paintsmart.simba}
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
players[0].Name := '';
Players[0].Pass := '';
Players[0].Active := True;
end;
begin
Smart_Server :=26;
Smart_Members := False;
Smart_Signed := True;
Smart_SuperDetail := False;
ClearDebug;
SetupSRL;
DeclarePlayers;
LoginPlayer;
end;
Procedure; FailSafe(Reason:String);
Begin;
Players(currentPlayer).Loc:-Reason;
Logout;
Stats_Commitl
TerminateScript;
End;
Function ChopDown:Boolean;
Var
SEX, SEY: Integer;
Begin
if FindObjCustom(x, y, ['Chop', 'down'], [1582113 , 3953242 , 2109229], 30) Then
Writeln('found tree, gonna cut... :-)');
End;
Begin
SetupSRL;
DeclarePlayers;
/ Repeat
ChopDown;
Until(false);
end.
EDIT:- this is the error code i get :|
[Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'X' never used at line 256
[Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'Y' never used at line 256
[Error] (24:4): period ('.') expected at line 23
Compiling failed.
Last edited by hypooo; 05-08-2012 at 10:41 PM. Reason: missed a bit
I'm very inexperienced, and it could be a completely different issue, but you have to change
toCode:Begin if FindObjCustom(x, y, ['Chop', 'down'], [1582113 , 3953242 , 2109229], 30) Then
You can't use the first letter.Code:Begin if FindObjCustom(x, y, ['hop', 'own'], [1582113 , 3953242 , 2109229], 30) Then
hypooo first clean up your standards, and past the code in simba tags.
Problem is kind of here:
Simba Code:begin
Smart_Server :=26;
Smart_Members := False;
Smart_Signed := True;
Smart_SuperDetail := False;
ClearDebug;
SetupSRL;
DeclarePlayers;
LoginPlayer;
end;
You can only have
Begin
End.
(Begin outside of a function/procedure and end with a period ONCE in a script (at the end)). You have that chunk of code in the middle of your script.
Clean up standards, use simba tags, and post again and I can help better.
Great tutorial looking forward into watching the rest of your series!
This was awesome, you made it very easy to follow and it was nice to see how you go about finding problems like forgetting to declare what mouse button to use, I will work my way though your other tutorials as well. I have already been through a through other tutorials on basic scripting in this section and they are just as helpful.
Thanks again, looking forward to my first personal script without a tutorial![]()
I'm going to follow along with this later on when I have time, but you did made me LOL today,
"As you can see, the point of this game... is to grab this hand... and spank this monkey."
Just the way your monotonous voice said that, made me lol hard. But looks great, I can't wait to follow along - thanks a lot!
Thanks for the guide! Can you make a guide for RSPS's please? Sorry to bug you but smart doesn't work for RSPS's and I'm looking to make bots on some. Just the basics would be great like walking, and banking?
Thank you for this great guide! I have never written anything before, even not in other programs. But this just went great! I learned this real fast, and the guide was super easy to understand! Thank you so much, ill take a look at video 2 later!
Last edited by Bot4Fun; 06-02-2012 at 10:39 AM.
Sorry if bad english
Hey YoHoJo, you said you started programming for smaller games like spank the monkey and catch the goldfish like we followed you in the tutorial, are there other games you made scripts for?
If you did, could we have the name of the games so I can go away and try to make a few scripts for them, if not no worry's, I have found 2 that should be ok for me to make scripts for, practice is always good.
Curveball:
http://www.addictinggames.com/sports.../curveball.jsp
(Try using a repeat until(false) loop to do that)
Defend Your Castle:
http://www.xgenstudios.com/game.php?keyword=castle
(You can develop this pretty far, even have user settings where they can input which addons/powerups they wish to buy)
You should just move onto RS scripts though, just start with basic power(miner/fisher/cutter) with simple techniques and then learn more advanced ones and develop the script further over time.
Lol, spanked the monkey at 6,962 miles per hour and got a score of 30,492 on Save the Goldfish. Thanks for the tut, was really clear and easy to learn from. Can't wait for the next one.
Great vid, impressed with the client being able to play games other than runescape (unlike other bots). Trying my hardest to learn this, your vids help so much!
So, I finally finished all my exams etc and have spare time to start my own scripting!
Your video was very clear and concise (although I found out after multiple attempts that it's ctrl+space to bring up the procedure/function box, not ctrl+enter).
So far, you've made it look pretty simple, can't wait to go through the rest of your videos.
Also think I'll attempt using what I learnt just from this video to create a simple script for War Of Legends (another Jagex game)
So, thank you for the great video, a very nice job, and I hope the rest are just as good!![]()
Last edited by Danza99; 06-25-2012 at 05:10 PM.
Don't quit. Suffer now, and live the rest of your life as a champion - Muhammad Ali
Currently learning how to script, whilst in the progress of making a script for War of Legends, as well as a "Hero's Guild Blue Dragon Cannoner"
Thanks a lot this helped me a lot start my first script!
This is amazing stuff and I have almost finished my 1st script! Gotta say I love the video but having a "transcript" is really handy as well for two reasons:
1). I cant watch these at work but reading threads is totally ok
2). You cant "search" for answers in the youtube videos ... but if you had it transcribed we would know what was in the video.
Cant wait to become a member!
Nice videos! Fully support you bro! Is that all about scripting? Do you think there is any more to learn? I would like to make a magic script. Is there any any websites that include all functions with explanations and their usage?
There is the scripting reference, which you can find here;
http://docs.villavu.com/simba/referencescript.html
Solar from RiD.
Off work for 2 weeks, time to make a real attempt into scripting since my last attempt failed due to having no spare time. :P
There are currently 1 users browsing this thread. (0 members and 1 guests)