SRL Archive - General Botting Help

Getting this error when compiling~


petergrayson14

2014-06-06 14:21:06

Hey, i've looked up a guide on youtube and i've been following it step by step on learning Simba.

This is what ive put:

program new;
//{$DEFINE SMART} // comment this line out if you don't want to use SMART
{$i srl-6/srl.simba}

begin
clearDebug();
setupSRL();
Mouse(357, 289, 0, 0, True);
end.

This is the error im getting,
Exception in Script: Don't know which overloaded method to call with params (Int32, Int32, Int32, Int32, False..True(4294967295)) at line 8, column 3

Help please?

Clarity

2014-06-06 16:09:30

At line 8, you are trying to use the "mouse" function. Not knowing what overloaded method to call means you haven't been specific enough as to which "mouse" function you want to use (there are multiple functions all called "mouse"). If you write a mouse function with correct parameters (see examples below), Simba will automatically know which mouse function to use.

Some examples of mouse being used correctly:


mouse(point, MOUSE_LEFT, MOUSE_HUMAN); //Example 1

mouse(point(50, 50)); //Example 2

mouse(100, 100, 5, 5, MOUSE_LEFT); //Example 3

mouse(100, 100, 5, 5); //Example 4

In the first example, you would need to define "point" somewhere beforehand. This will move the mouse in a human-like way to the point desired and then left-click.

In Example 2, it will move the mouse to the point (50,50) and that's it.

In Example 3, it will move the mouse to the point (100,100) with +/- random 5, 5, and then left-click.

In Example 4, it will just move the mouse to the same place with no left-click.

Glad you're trying to learn scripting! Best of luck, feel free to ask any more questions here :)

petergrayson14

2014-06-07 10:53:02

From: Clarity
At line 8, you are trying to use the "mouse" function. Not knowing what overloaded method to call means you haven't been specific enough as to which "mouse" function you want to use (there are multiple functions all called "mouse"). If you write a mouse function with correct parameters (see examples below), Simba will automatically know which mouse function to use.

Some examples of mouse being used correctly:


mouse(point, MOUSE_LEFT, MOUSE_HUMAN); //Example 1

mouse(point(50, 50)); //Example 2

mouse(100, 100, 5, 5, MOUSE_LEFT); //Example 3

mouse(100, 100, 5, 5); //Example 4

In the first example, you would need to define "point" somewhere beforehand. This will move the mouse in a human-like way to the point desired and then left-click.

In Example 2, it will move the mouse to the point (50,50) and that's it.

In Example 3, it will move the mouse to the point (100,100) with +/- random 5, 5, and then left-click.

In Example 4, it will just move the mouse to the same place with no left-click.

Glad you're trying to learn scripting! Best of luck, feel free to ask any more questions here :)


Thanks for the reply, works fine now:)

How would i get it to wait a certain amount of time before clicking at another coord/color? Like say i want it to wait a couple seconds till it moves and clicks somewhere else? :)

masterBB

2014-06-07 11:11:41

wait(x);

where x is the amount of ms

Clarity

2014-06-07 11:20:00

From: petergrayson14
Thanks for the reply, works fine now:)

How would i get it to wait a certain amount of time before clicking at another coord/color? Like say i want it to wait a couple seconds till it moves and clicks somewhere else? :)


wait(2000) will wait 2000ms (2 seconds), but waiting set periods of time is botlike. It's nicer in my opinion to use random/trended wait times, for instance:
wait(gaussRangeInt(1500, 2500));
will wait anywhere from 1500-2500ms, normally distributed, so on average it will wait around 2000ms but it might sometimes wait for 1650 or 2300 (you get the idea).

To an extent that is detectable as well, which is why I'm working on some cool human behavior stuff in my spare time. :)

petergrayson14

2014-06-07 12:47:35

From: Clarity
wait(2000) will wait 2000ms (2 seconds), but waiting set periods of time is botlike. It's nicer in my opinion to use random/trended wait times, for instance:
wait(gaussRangeInt(1500, 2500));
will wait anywhere from 1500-2500ms, normally distributed, so on average it will wait around 2000ms but it might sometimes wait for 1650 or 2300 (you get the idea).

To an extent that is detectable as well, which is why I'm working on some cool human behavior stuff in my spare time. :)


Ahh yeah i see Well im starting off on rsps's soo it really doesn't matter about anti-ban and stuff like that as of yet but thanks alot!

Edit: As im practicing on a rsps, im wanting to know more things.

How would i get the mouse to move the color instead of coords? Also, how would i get it to repeat the whole thing? Thanks~