SRL Archive - Script Requests

Ultimatescape rocktail fisher (Donor account included)


dingodile

2014-06-25 19:58:47

Hi, clearly i'm fucking retarded because even with guides, 6 hours later I still can't make a script click.. So might as well ask a professional for help.

I need a rocktail fisher, its at donor island, and all you have to do is click until inventory is full. then walk a few feet to the bank, walk back to the fishing spot, start fishing and repeat.

Will allow access to my donor acount in order to test the script.

95 percent chance no one will make this for me but hey, worth a shot I guess..

Wetish

2014-06-25 20:20:33

Post what code you tried using to make the script click. I'll take a look at it.

Also did you select the client using the green target button?

dingodile

2014-06-25 20:28:58

From: Wetish
Post what code you tried using to make the script click. I'll take a look at it.

Also did you select the client using the green target button?


I don't even have a code to be honest. I been trying to make one for around 4 hours with no luck due to the fact the majority of the tutorials are outdated. I even looked at other peoples codes to help me too but still couldn't figure anything out. I couldn't even figure out to make it click the fishing spot..but hey, at least i made the mouse move to the coords.

Wetish

2014-06-25 20:41:05

The easiest way to click the mouse would be
ClickMouse2(mouse_left);
ClickMouse2(mouse_right);

dingodile

2014-06-25 20:48:09

From: Wetish
The easiest way to click the mouse would be
ClickMouse2(mouse_left);
ClickMouse2(mouse_right);


I got unknown declaration :\ When I tell you i'm god awful at this shit, I really am.

Wetish

2014-06-25 20:58:38

From: dingodile
I got unknown declaration :\ When I tell you i'm god awful at this shit, I really am.


Do you have something like this at the top of your script?
{$i srl-6/srl.simba} 

Or you just don't have the SRL include setup correctly. Did you follow a tutorial on how to setup simba?

dingodile

2014-06-25 21:02:21

From: Wetish
You just don't have the SRL include setup correctly. Did you follow a tutorial on how to setup simba?

I'm pretty sure I did, do I have to define it in the beginning of every script? If so then I don't know how to do that as I have 87 SRL folders in the includes folder.

Idk what i'm doing

I just put what you posted on the script, and I still get the unknown declaration thing

Wetish

2014-06-25 21:06:50

From: dingodile
I'm pretty sure I did, do I have to define it in the beginning of every script? If so then I don't know how to do that as I have 87 SRL folders in the includes folder.

Idk what i'm doing

Yep you need to define it so that you are able to use the methods that it contains.

At the top of your script right below the first line (program new) add one of these depending on what you have setup.

if you have rs3 setup
{$i srl-6/srl.simba}

if you have oldschool runescape setup
{$I SRL-OSR/SRL.Simba} 

And can you post your whole script?

dingodile

2014-06-25 21:08:40

From: Wetish
Yep you need to define it so that you are able to use the methods that it contains.

At the top of your script right below the first line (program new) add one of these depending on what you have setup.

if you have rs3 setup
{$i srl-6/srl.simba}

if you have oldschool runescape setup
{$I SRL-OSR/SRL.Simba} 

And can you post your whole script?


Which one do i put if i want to do a private server though?

Wetish

2014-06-25 21:12:22

From: dingodile
Which one do i put if i want to do a private server though?


Well there isn't one for private servers. We are just including them so that we can use the functions they provide to make scripting easier. You should avoid using specific functions that won't work since they weren't designed for the server. Either include will do.

dingodile

2014-06-25 21:19:07

From: Wetish
Well there isn't one for private servers. We are just including them so that we can use the functions they provide to make scripting easier. You should avoid using specific functions that won't work since they weren't designed for the server. Either include will do.


I downloaded the oldschool srl and it actually clicked!!! GENIUS!!!

Now I need to know how to detect that the invatory is full, then walk to the bank, open it, deposit two kind of fish, walk back to the spot, and repeat. Don't go too far, because i'll be stuck on every part haha

Wetish

2014-06-25 21:32:16

To check if your inventory is full there are quite a few things you could look for. I think the easiest way would be to count the colors in the 28 inventory slot. If a fish appears in the last slot the amount of colors would change. To do this you could use this function
CountColorTolerance(Color, xs, ys, xe, ye, Tolerance);
The color would just be the color of the inventory.
xs is the starting x coordinate, the left of the inventory slot.
ys is the starting y coordinate, the top of the inventory slot.
xe is the ending x coordinate, the right of the inventory slot.
ye is the ending y coordinate, the bottom of the inventory slot.
tolerance can be set to 10 or some other small value
You can check the docs here for more information http://docs.villavu.com/simba/scriptref/colourfinding.html

The function returns the amount of pixels that are that color. To get a baseline number you could write out the result of the function when the slot in empty, and the result of the function when the slot is full.
Writeln(CountColorTolerance(Color, xs, ys, xe, ye, Tolerance));
When actually checking if your inventory is full, you would compare the result to your baselines. Something sort of like this.
function CheckInvFull:boolean;
begin
Result := CountColorTolerance(Color, xs, ys, xe, ye, Tolerance) < 100;
end;

rj

2014-06-25 21:39:56

How far away is the bank?

dingodile

2014-06-25 21:44:02

From: Robert
How far away is the bank?


Very close, literally insight on the map and just a click away

dingodile

2014-06-25 21:47:30

From: Wetish
To check if your inventory is full there are quite a few things you could look for. I think the easiest way would be to count the colors in the 28 inventory slot. If a fish appears in the last slot the amount of colors would change. To do this you could use this function
CountColorTolerance(Color, xs, ys, xe, ye, Tolerance);
The color would just be the color of the inventory.
xs is the starting x coordinate, the left of the inventory slot.
ys is the starting y coordinate, the top of the inventory slot.
xe is the ending x coordinate, the right of the inventory slot.
ye is the ending y coordinate, the bottom of the inventory slot.
tolerance can be set to 10 or some other small value
You can check the docs here for more information http://docs.villavu.com/simba/scriptref/colourfinding.html

The function returns the amount of pixels that are that color. To get a baseline number you could write out the result of the function when the slot in empty, and the result of the function when the slot is full.
Writeln(CountColorTolerance(Color, xs, ys, xe, ye, Tolerance));
When actually checking if your inventory is full, you would compare the result to your baselines. Something sort of like this.
function CheckInvFull:boolean;
begin
Result := CountColorTolerance(Color, xs, ys, xe, ye, Tolerance) < 100;
end;


I'm going to try that, but for now I want to make a good script even though its my first, and I realized that even clicking simple cords won't make a reliable script since if the camera changes, then it will just missclick, how do i make it click on a designated fishing spot everytime?

dingodile

2014-06-26 23:20:21

bump

Cody44

2014-07-25 06:29:16

From: dingodile
bump


If you still need help I can try and make it for you.

Spotify

2014-07-27 03:18:02

I could write it for you as well, pm me if you like.