SRL Archive - Script Requests

[Request] Instinct PK (Simple random!)


Riley

2013-04-03 21:48:35

I've been trying to script a bot for theiving on this server but sadly i can never figure out how to do so, it would be easy for me if there wasnt a random. All i need the bot to do is steal from the gem stall and when the random sends you to this green valley to teleport back to addy and begin thieving again. Can someone please make this or give me a guide on how to make it? I've already tried rjs so that wont work.

Justin

2013-04-03 21:52:55

Maybe post some screenshots of what you need done?

Riley

2013-04-03 22:09:10

First your stealing from the gem stall like so
[ATTACH=CONFIG]20496[/ATTACH]

Then every once in a while this random ( The only random ) Pops up and you need to tele to addy again.
[ATTACH=CONFIG]20497[/ATTACH]

Then you need to click on the stall to get to stealing from your teleport spot.
[ATTACH=CONFIG]20498[/ATTACH]


I know it seems simple to others, but i tried my hardest and i couldnt find a way to do it.

Justin

2013-04-03 22:12:11

From: Riley
First your stealing from the gem stall like so
[ATTACH=CONFIG]20496[/ATTACH]

Then every once in a while this random ( The only random ) Pops up and you need to tele to addy again.
[ATTACH=CONFIG]20497[/ATTACH]

Then you need to click on the stall to get to stealing from your teleport spot.
[ATTACH=CONFIG]20498[/ATTACH]


I know it seems simple to others, but i tried my hardest and i couldnt find a way to do it.


Okay, I'll take a quick look at this

Riley

2013-04-03 22:14:38

Thanks it means a lot, do you need the website?

Justin

2013-04-03 23:28:53

From: Riley
Thanks it means a lot, do you need the website?


A quick google search found it for me :P

E: Won't be able to work on it today, bit busy currently, sorry

Riley

2013-04-03 23:54:21

Lol its fine, i couldnt do it i dont expect anyone else to be hard core on it lol.

Justin

2013-04-03 23:59:59

From: Riley
Lol its fine, i couldnt do it i dont expect anyone else to be hard core on it lol.


Here's something that you might be able to use to detect if you have been teleported (Not really tested)


function inRandom: Boolean;
begin
result := (CountColorTolerance(1138747, MMX1, MMY1, MMX2, MMY2, 25) > 200);
end;

procedure SolveRandom;
begin
writeln('Solving Random');
MouseBox(730,174, 753, 197, mouse_Left);
wait(RandomRange(600,1200));
MouseBox(614, 330, 621, 340, mouse_Left);
wait(RandomRange(1800,3200));
MouseBox(237, 428, 283, 434, mouse_Left);
wait(RandomRange(1800,3200));
writeln('SolveRandom finished');
end;


...

if (inRandom) then
SolveRandom;

Very very very badly coded as it's mainly blindclicking to solve it

Riley

2013-04-04 12:08:44

Well at least I understand it xD, I'll try it out hopefully it solves :P

mcbain

2013-04-07 16:11:42

Instinct pk is back?! Haha! i remember playing this server like almost 3 years ago, then it died. Anyways, you could use just static clicking to find the correct option (assuming it doesn't move positions) or maybe even a dtm/bitmap could be used to find which teleport you need to click on.

rj

2013-04-07 19:03:26

use a high tolerance to count green dots on minimap like justin said and when that happens make it tele to ardy