SRL Archive - First Scripts

My first bot


mmmvvvbbb

2013-02-25 02:11:25

It's for 07. This is my first day coding, this is what I made it works.
program PowerMiner;
{$I SRL\SRL.Simba}
{$I P07Include.Simba}
var x, y: integer;
procedure MineOre;
begin
repeat
FindColorTolerance(x, y, 5077417, 0, 0, 520, 340, 4)
MoveMouse (x, y);
wait(200)
if (P07_GetUpText = 'Mine Rocks')then
ClickMouse (x,y,1);
Wait(10000)
until(P07_InvFull)
end;
begin
repeat
mineOre;
P07_DropAll;
until(false);
end.

Ian

2013-02-25 02:22:42

Congrats on the release mmmvvvbbb!

I have a suggestion,

Instead of
MoveMouse (x, y);

use

MMouse (x, y, 5, 5);


These extra parameters add some randomness to where the mouse moves so that you don't always click the same color.

I know it isn't here yet, but Jagex will probably start looking for bots soon so better safe than sorry :)

Also there are more advanced methods of waiting to be done mining, but this is a good start :)

DannyRS

2013-02-25 02:22:55

If P07_IsUpTextMulti(['Mine', 'Rocks']) Then

will work better ^^ I believe thats the correct function name (double check)

Also use MMouse(x,y,3,3); and ClickMouse2(mouse_left); they have randomness

mmmvvvbbb

2013-02-25 02:38:19

Thanks for the quick response. I had no idea how to use the MMouse, thanks for helping. This isn't really meant to be a permanent script, just trying to test out the waters. The more time I spend learning what is standard, the better my coding will become.

Also, during testing of this script I ended up accidentally clicking the rock every 20 milliseconds and I got the frog random almost instantly. IDK if they are watching but that seems like a big coincidence.

Runehack123

2013-02-25 02:49:32

Good job on your first script :)

Instead of static waits try —> Wait(RandomRange(100,200)) etc..

Blue90

2013-02-25 05:54:24

From: DannyRS
If P07_IsUpTextMulti(['Mine', 'Rocks']) Then

will work better ^^ I believe thats the correct function name (double check)

Also use MMouse(x,y,3,3); and ClickMouse2(mouse_left); they have randomness


[Error] (12:46): Closing parenthesis expected at line 11
Compiling failed.
…

DannyRS

2013-02-25 06:56:57

From: Blue90
[Error] (12:46): Closing parenthesis expected at line 11
Compiling failed.
…


Your missing a ) somewhere, if you want it inside brackets, put them around the whole thing ;)

Wyn

2013-02-25 13:00:11

You are scripting, not making a bot.

Jeezes.

Gucci

2013-02-25 14:37:03

From: Wyn
You are scripting, not making a bot.

Jeezes.


Are Wyn from powerbot?

rj

2013-02-25 17:37:18

When ever the detection systems flag your account they send a random event, also ransoms events are also sent based off total level, the lower it is the more ransoms you get. Just a heads up, also i suggest looking into a timeout for mining the ore

The Mayor

2013-02-25 22:17:03

From: rjj95
When ever the detection systems flag your account they send a random event, also ransoms events are also sent based off total level, the lower it is the more ransoms you get. Just a heads up, also i suggest looking into a timeout for mining the ore


I recall, if you logged out every 9 or so minutes and logged back in you would get no randoms. I remember Narcle's autofighter used to do this.

rj

2013-02-25 23:00:03

From: The Mayor
I recall, if you logged out every 9 or so minutes and logged back in you would get no randoms. I remember Narcle's autofighter used to do this.


O yea lol also ofcourse you get a random no matter what within like 1-2 hours

xtrapsp

2013-02-26 04:17:51

From: rjj95
When ever the detection systems flag your account they send a random event, also ransoms events are also sent based off total level, the lower it is the more ransoms you get. Just a heads up, also i suggest looking into a timeout for mining the ore


I got a random on the first rock I hit after tutorial Island… I don't think that's 100% true.

Laimonas171

2013-02-26 04:31:48

From: Wyn
You are scripting, not making a bot.

Jeezes.


it's funny because scripting something makes product in this case bot.
to make things more clear for you.. if i scripting in PHP/HTML languages and the final output would be website, so you think i still scripting and not creating a website? just saying..

The Mayor

2013-02-26 16:29:04

From: rjj95
O yea lol also ofcourse you get a random no matter what within like 1-2 hours


Not necessarily. I cound run Narcle's script overnight (10+ hours) and get no randoms. Then, once I buried a bone I got a random straight away.

Wyn

2013-04-08 04:07:17

I don't visit this site enough anymore, don't assume I'm gravedigging. Just answering questions towards me.

From: Gucci
Are Wyn from powerbot?


Yes.

From: Laimonas171
it's funny because scripting something makes product in this case bot.
to make things more clear for you.. if i scripting in PHP/HTML languages and the final output would be website, so you think i still scripting and not creating a website? just saying..


Scripting is creating code for an existing product. You're not actually making/working on what platform itself.

Saying Bot, is essentially saying I'm making a brand new client to bot on from scratch. Op is just making a script for an existing product.

I don't get why bring in html/php. It's not related, and html isn't even a language.

Laimonas171

2013-04-08 05:28:42

From: Wyn

I don't get why bring in html/php. It's not related, and html isn't even a language.

Html/php is also only programming language, and each application scripters create are web dedicated applications. I mantioned that because it's pretty much the same as simba in one point. Both html/php required third party apps to read the code same as simba. Html more flexiable since you can run it only with browser help, while php requires server side client (localhost servers works as well) to run/read the script in proper way. Kinda same with simba scripts, it required client which reads the script.
and about HTML (Hyper text Markup Language) . < it's simple but still programming language.

get your facts straight :)

Runehack123

2013-04-08 06:08:27

From: Laimonas171
Html/php is also only programming language, and each application scripters create are web dedicated applications. I mantioned that because it's pretty much the same as simba in one point. Both html/php required third party apps to read the code same as simba. Html more flexiable since you can run it only with browser help, while php requires server side client (localhost servers works as well) to run/read the script in proper way. Kinda same with simba scripts, it required client which reads the script.
and about HTML (Hyper text Markup Language) . < it's simple but still programming language.

get your facts straight :)


it's actually a markup language. It's in the name
(
Hypertext Markup Language

Please don't take offence I don't want to argue just saying if we're going to be all nitpicky in this thread now I don't think this is a positive discussion anyway I willl remove myself from this now and not respond anymore thanks
:)

Wyn

2013-04-08 06:14:24

From: Laimonas171
Html/php is also only programming language, and each application scripters create are web dedicated applications. I mantioned that because it's pretty much the same as simba in one point. Both html/php required third party apps to read the code same as simba. Html more flexiable since you can run it only with browser help, while php requires server side client (localhost servers works as well) to run/read the script in proper way. Kinda same with simba scripts, it required client which reads the script.
and about HTML (Hyper text Markup Language) . < it's simple but still programming language.

get your facts straight :)


I like how you skipped over the first part of my post and went right to there ;).

Stop making php and html related. Html is a Hypertext Markup Language.

Laimonas171

2013-04-08 08:48:37

From: Runehack123
it's actually a markup language. It's in the name
(
Hypertext Markup Language

Please don't take offence I don't want to argue just saying if we're going to be all nitpicky in this thread now I don't think this is a positive discussion anyway I willl remove myself from this now and not respond anymore thanks
:)

No i just saying..

From: Wyn
I like how you skipped over the first part of my post and went right to there ;).

Stop making php and html related. Html is a Hypertext Markup Language.


I just took part i want to clear things out, kind off. And yes I i agree about html, but still if you have to write down code to get things it's programming, you cannot argue with that. though I don't really care topic so much so we should stop right here i guess :D