PDA

View Full Version : log-out script



staar2
06-26-2006, 05:02 PM
My first one


program New;
{.include SRL/SRL.scar}
begin
setupSRL;
DisguiseScar('xXx - new nude girls!!!');
writeln('Tab ' + IntToStr(GetCurrentTab()));

GameTab(10);
writeln('we changed tab to log out');
if(FindColorTolerance(x, y, 16777215, MIX1 + 20, MIY1 +20, MIX2 +20, MIY2 +20, 3) = true) then
begin
MoveMouseSmoothEx(x, y, 10, 20, 45, 20, 20);
wait(random(200) +20);
ClickMouse(x + 3, y + 3, true);
Writeln('Login out');
end;
end.

WhiteShadow
06-26-2006, 05:53 PM
or you can just do.


program New;
{.include SRL/SRL.Scar}

begin
SetUpSRL;
if(LoggedIn)then
LogOut;
end.

But, yea pretty good for a first script. At least you understand not to use stuff like MoveMouse.

Try using Mouse. This mouse moves to coords with random pixles off and clicks left or right.


procedure Mouse(mousex, mousey, ranx, rany : Integer; left : Boolean);

Mousex, Mousey = the coord
Ranx, Rany = random pixels off x and y
Left = True for left click, False for right.

staar2
06-26-2006, 07:44 PM
oh ty for freeback, i thinked that MoveMouseEx() is better :P

edit: what i should but in ranX and in ranY, what is default ?

Sumilion
06-26-2006, 08:39 PM
well, depends on the size that it can click on. For instance, when you want to click on a furnace, you could use Mouse(x, y, 20, 20, true); (or whatever mouse sort you want). But if it is a small button, lets say a magic attack, then 5, 5 should do it... But normally by clicking on the Minimap i use 10, 10

WhiteShadow
06-27-2006, 01:52 AM
well, depends on the size that it can click on. For instance, when you want to click on a furnace, you could use Mouse(x, y, 20, 20, true); (or whatever mouse sort you want). But if it is a small button, lets say a magic attack, then 5, 5 should do it... But normally by clicking on the Minimap i use 10, 10

For Minimap, I recommend as least as possible. To much random may result in inaccurate clicking.

0, 0 = Perfect Click.

Try doing some move mouse stuff, then you'll know, how much a pixel is etc. Distance measuring can be very important.

staar2
06-27-2006, 12:43 PM
kk ty !! Firstime i used i buted like 100, 100 lol :D

TravisV10
08-12-2007, 08:21 PM
i hate grave digging. *awaits snipers* ;)

Sp0rky
08-12-2007, 09:07 PM
Well, he did start the topic...

A year ago.

TravisV10
08-12-2007, 09:10 PM
Dude, dont grave dig! Mod, please close! ;)

Naum
09-27-2007, 05:40 PM
Good script. And B2C just *SHUT UP!* keep quiet. Good Script. Your on your way(1st step of 250) to becoming an srl member. You could have just used
if (LoggedIn)then(logout);
Lol anyways Amazing script (66% sarcasm there)
->{Nauman}<-

camdo2
11-03-2007, 04:15 AM
Nice job! I'm looking to learn more SRL and SCAR so very good!

-Camdo Clark

Harry
11-03-2007, 12:34 PM
06-26-2006

STOP BUMPING please!