Log in

View Full Version : simba break out of loop when its not supose to.



tom99
05-17-2011, 03:37 PM
Hello this loop stop when its not supose to


procedure ventforlogginn;
var
clogin: boolean;
begin
repeat
if(getcolor(374, 184)=3093559) and (getcolor(319, 183)=3093559) and (getcolor(410, 183)=3093559) and (getcolor(450, 183)=3093559) then clogin:=true;
wait(1000);
until(clogin = true)
clogin:=false;
writeln('logger inn nĂ¥');
end;

why is this ? im pretty sure it didnt find those colors it just skipped the loop.



Seems like it was fixed when i putted wait infront of colorcheck not after, but now another problem rs dont detect that i hit the login button wtf ?

im wondering of, this syntax shoud login in a player at login screen right ?
clickmouse(377, 308,1);

Brandon
05-17-2011, 04:00 PM
cLogin by default will already have a value of 0.. so set it false before the loop..

tom99
05-17-2011, 04:02 PM
thats not why its false by default, break didnt work either.

But i got another issue and that is rs dont react when i want simba to click on the login button.

footballjds
05-17-2011, 04:26 PM
use:
Mouse(123,123,1,1,True);

tom99
05-17-2011, 05:10 PM
what does that command is it the same as clickmouse ? (im use to scar)

footballjds
05-17-2011, 05:14 PM
then use ClickMouse(3,12, True);

tom99
05-17-2011, 05:19 PM
simba dont support that, it got integer at end, reference http://docs.wizzup.org/simba/scriptref/mouseandkeyboard.html

footballjds
05-17-2011, 05:44 PM
my bad, i thought you were going to use scar...
:p
If you are going to use simba use what i previously posted and i'll explain it...
http://img810.imageshack.us/img810/1866/mousef.png
The mousex and mousey are the X, Y coords you want to click
The ranx and rany and a bit of randomness to add to the X, Y coords so that your not coord clicking.
left is boolean, true is left false is right click.
Mouse(0, 0, 255, 255, True); will click at the coords 0, 0 but add random 255 to each coord first.

Mouse(255, 255, 0, 0, True); will left click coords 255, 255 with no randomness.

tom99
05-17-2011, 05:53 PM
I understand now thnx rep+ ;)

Mouse(255, 255, 0, 0, True); is equal to clickmouse(0+random(255),0+random(255),true); in scar.

footballjds
05-17-2011, 06:00 PM
I understand now thnx rep+ ;)

Mouse(255, 255, 0, 0, True); is equal to clickmouse(0+random(255),0+random(255),true); in scar.

click mouse and Mouse are VERY different.
Clickmouse is insta click.
Mouse moves your mouse at a rate you can set(SRL auto sets it to 15) and clicks with a 10-50 ms wait before releasing the mouse button.

program New;
{$i SRL\SRL.scar}
begin
setupSRL;
Mouse(1,1,1,1,True);
end.
works in scar the same way:
program New;
{.include srl/srl.scar}
begin
setupSRL;
Mouse(1,1,1,1,True);
end.