PDA

View Full Version : First Script!



pacmanpwns
03-21-2007, 11:50 PM
So this script is my first, real, script, just a thing for a private server (I built it for practice).

What it does: Finds color, clicks it, waits 2.5-2.9 secs, clicks again, re-auto login if im disconnected and has a progress report.

Give feedback (Also, I know the functions I used are outdated and dectable and will be using SRL functions for my first runescape script.)

Program StrengthTraining;

const
TimesTo = 0; //Times To Train Strength, 0 is infinate.

var
x,y: Integer;
i: Integer;
Exp: Integer;

Procedure Login;
begin
Wait(1000);
MoveMouseSmooth(456,316);
Wait(500);
ClickMouse(456,316,true);
wait(500);
MoveMouseSmooth(286,352);
wait(200);
ClickMouse(286,352,true);
end;

Procedure Strength;
begin
FindColor(x,y,4764399,4,24,766,521);
wait(200);
MoveMouseSmooth(x,y);
wait(1250);
ClickMouse(x,y,true);
wait(2500+random(550));
If(not(FindColor(x,y,4764399,4,24,766,521)))then
Login;
end;

Procedure Progress;
begin
i:= i + 1;
Exp:= i * 420;
ClearDebug;
Writeln('++++++++++++++++++++++++++++++++++');
Writeln('+++++++++PROGRESS REPORT++++++++++');
Writeln('++Attacked '+ IntToStr(i)+' Times+');
Writeln('++Gained '+ IntToStr(Exp)+' Exp+++');
Writeln('++++++++++++++++++++++++++++++++++');
end;

begin
i:= 0;
repeat Strength; Progress;
i:= i + 1;
until (i >= TimesTo);
if (TimesTo=0) then repeat strength; Progress;
Until(False);
end.

Pwnt by Pwnt
03-22-2007, 12:25 AM
ok idk what for sure it does, all i can think it does is keep clicking on the strength button? and also it wont log in because there is no player array. add me on MSN if u want help :p my name is pwnt_by_pwnt@hotmail.com

pacmanpwns
03-22-2007, 01:53 AM
Well like I said it's for private servers where you simply click-to-level. This one is accually used for the popular server PKIsle. The auto-logger will simply click play and then login because private servers automatically save player name/pass/ip so I have nothing to enter. Like I said, simple script. Although if you can help me with the SRL / SRL functions I do need help with that. Thanks for the input/feedback!!

Pwnt by Pwnt
03-22-2007, 02:04 AM
ok u can add me on MSN sorry i cant help with this script i have no idea about private servers o.O

the scar noob
03-22-2007, 06:35 PM
Clickmouse is very detectable... try using SRL...

holiday105
03-22-2007, 07:58 PM
click mouse is detectable but it IS just a private server :p

Pwnt by Pwnt
03-22-2007, 11:16 PM
:p lol i still dont get what it does but oh wellllll...... lol :O OMG 100th POST!!!(I think lol)

mobe7
10-15-2007, 04:47 PM
very dectetable...