SRL Archive - OSR Script Requests

Falcon Bot


alipotter890

2013-03-26 11:08:58

It's my first time, I need help making one or getting the codes what i need.


program Falcon;
{$DEFINE SMART8}
{$I SRL/SRL.Simba}
{$I P07Include.Simba}
procedure DeclarePlayers;
begin
NumberOfPlayers(1);
CurrentPlayer := 0;

with Players[0] do
begin
Name := '';
Pass := '';
Active := true;
end;
end;

procedure Falcon;
var
x, y : Integer;
begin
writeln('Looking for Spotted Kebbits');
If FindColorTolerance(x, y, 3954283, 0, 0, 376, 523, 15) Then
writeln('Catching Spotted Kebbits ');
Mouse(x, y, 0, 0, True);
clickmouse2(mouse_Right);
wait(300);
end;

begin
SetupSRL();
SetupP07Include;
ActivateClient;
Wait(1000);

If (Not P07_LoggedIn) Then
begin
P07_LogInPlayer;
end;

repeat
until (Not P07_LoggedIn)
end.

begin
ClearDebug;
Falcon;
end.


The mouse doesn't move to the spotted Kebbits.

xtrapsp

2013-03-26 11:12:51

Why have you posted this? This makes no sense…

Sjoe

2013-03-26 11:25:48

From: xtrapsp
Why have you posted this? This makes no sense…


Yo be kinder man. He's giving a go at scripting.

OT:

Try FindObjCustom instead of findcolortolerance

Try reading more beginner tutorials ( like Yohojo video's ) or how to script down a first rs tree.
and
Check other people's work on how they do it.

Be sure to use AutocolorAid for your color searching!

Runehack123

2013-03-26 11:28:36

Instead of MoveMouse –

use ClickMouse2( for mouse clicking
MMouse for mouse movement
and Mouse for mouse movement and clicking

And don't listen to the haters - this is a good start - keep it up :)

Good job!

xtrapsp

2013-03-26 11:30:27

From: Runehack123
Instead of MoveMouse –

use ClickMouse2( for mouse clicking
MMouse for mouse movement
and Mouse for mouse movement and clicking

And don't listen to the haters - this is a good start - keep it up :)

Good job!


I'm hardly hating, he just hasn't explained what exactly he wants help with.

Philip. Don't bring your upset from Skype here. Get on with it

Runehack123

2013-03-26 12:06:30

From: xtrapsp
I'm hardly hating, he just hasn't explained what exactly he wants help with.

Philip. Don't bring your upset from Skype here. Get on with it


I wasn't even directly referring to you.

xtrapsp

2013-03-26 12:08:48

From: Runehack123
I wasn't even directly referring to you.


Well considering Sjoe posted something 100% nice and I'm the only one writing something that could be construed as rude…
You're full of it Philip.

alipotter890

2013-03-26 17:32:01

Thanks guys, what do i need for droping and burying bones?

alipotter890

2013-03-26 18:00:41

Its posted at the top.

shebee

2013-03-26 18:55:39

Last end must be end. not end;

alipotter890

2013-03-26 18:57:26

i edited it on the top, Please help.

sahibjs

2013-03-26 19:03:10

I believe the use of the function "mouse" is advised against.. most people use "MMouse"

alipotter890

2013-03-26 19:13:53

I get a error when using MMouse

alipotter890

2013-03-26 20:35:39

did i do it correctly?

xtrapsp

2013-03-26 21:42:45

From: alipotter890
I get a error when using MMouse


you're missing a ; at the end of mouse()

shebee

2013-03-26 22:13:59

Like I've told you like 100 times now on irc, read the beginner guide in the noob tutorial section.
It's the pinned topic.

alipotter890

2013-03-26 22:51:28

please fix this for me, I'll give you most of the credit.

Rhiot

2013-03-26 23:05:22

Read up on some tutorials about DTMs. They are the easiest methods to finding and clicking items in your inventory (burying bones and dropping furs.)