SRL Archive - OSR Help

Y My Function no Work?!


Sin

2011-12-19 18:04:23

Function ChopRoot:Boolean; //Root Chopping

var
x, y, rootCount: Integer;
begin
if FindObjCustom(x, y, ['hop', 'Chop', 'op'], [8711319], 20) then
begin
writeLn('We found something to cut');
MoveMouse(x, y);
GetMousePos(x, y);
ClickMouse(x, y, 1);
ReleaseMouse(x, y, 1);
WaitUptext('Collect', (100));
end;
End;
Jeez….
nothing at all happens…

begin    //main
ActivateClient;
ChopRoot;
end. //main

YoHoJo

2011-12-19 18:08:15

Does it writeln that line?
If not, then you need to pick more/better colors and also possibly increase your tolerance.

Sin

2011-12-19 18:10:09

From: YoHoJo
Does it writeln that line?
If not, then you need to pick more/better colors and also possibly increase your tolerance.


No, it does not write that line, and the color is the EXACT same.
I chose the brightest green color so that there would be no interference.
Mind getting on skype so you can teamviewer me?

YoHoJo

2011-12-19 18:27:08

Before running script, drag crosshairs onto client.

nickrules

2011-12-19 18:27:29

If it's not writing that line, then it's not finding the object. If it's not finding the object, you need better/more colors. Trying using ACA (auto color aid). It should be somewhere around here on the forums. If not, I can send it to you. If it is, I don't really understand what you're doing with

    MoveMouse(x, y);
GetMousePos(x, y);
ClickMouse(x, y, 1);
ReleaseMouse(x, y, 1);
WaitUptext('Collect', (100));

Also, for future reference, use MMouse and Mouse.

MMouse moves the mouse in a human way, with randomness, Mouse moves the mouse in a human way, with randomness, and then clicks.

Nebula

2011-12-19 18:32:38

Edit never mind.

YoHoJo

2011-12-19 18:36:27

Oh yea what teh FAUZZZZZZZ
MoveMouse(x, y);
GetMousePos(x, y);
ClickMouse(x, y, 1);
ReleaseMouse(x, y, 1);
]

DO NOT USE THOSE MOUSE FUNCTIONS IN RUNESCAPE, YOU WILL GET BANNED!
You need to use MMouse an Mouse! Those other ones are super duper robotic!

Sin

2011-12-19 19:02:26

What does MMouse do o.O
Andsure Nick, can you send me the color picker?

Austintheman

2011-12-19 19:08:14

MMouse is a more human like mouse movement. MoveMouse, iirc, goes straight to the exact pixel.

Dynamite

2011-12-19 19:09:50

From: S1N
What does MMouse do o.O
Andsure Nick, can you send me the color picker?


MMouse = Move Mouse
Mouse = Click Mouse.

ACA = https://github.com/SRL/SRL-6/blob/master/tools/Auto%20Color%20Aid%20v2.exe

-Boom

Sin

2011-12-19 22:23:39

From: Dynamite
MMouse = Move Mouse
Mouse = Click Mouse.

ACA = https://github.com/SRL/SRL-6/blob/master/tools/Auto%20Color%20Aid%20v2.exe

-Boom


Thanks for the link :)
But one thing confuses me, your name isn't Boom, why do you say it o.O

EDIT*
Nvm, I got why >.>