SRL Archive - RS3 Script Requests

simple fighter..(fix it plox) rep ++


rs cheata

2010-09-25 20:33:49

ok so i need someone to fix this…
program Killer;
{.Include srl/srl.scar}
const
MonsterColor = 660604; // Use Simba or SCAR to pick the color from screen
FightTime = 10000; // Milliseconds to wait after attacking
UpTextColor = 320482;

var
Failed: Integer;

function AttackMonster: Boolean;
var
X, Y: integer;
begin
if FindColorSpiralTolerance(X, Y, MonsterColor, 0, 0, 200, 200, 10); // Main-screen cordinates to (0, 0, 200, 200)
begin
MoveMouse(X, Y);
Wait(100);
if (CountColorTolerance(UpTextColor, 0, 0, 100, 20, 15) > 20) then
begin
ClickMouse(X, Y, True);
Wait(FightTime);
Result := True;
end;
end else Wait(500);
end;

begin
repeat
if (not AttackMonster) then
Inc(Failed);
until(Failed > 99);
end.


the error is..
Line 15: [Error] (21106:68): 'THEN' expected in script

TomTuff

2010-09-25 20:40:15

where on earth do you get all these old, outdated scripts?

rs cheata

2010-09-25 20:42:07

lol i want it for a private server.. can you fix it?

TomTuff

2010-09-25 20:46:55

Which private server? What version of runescape does it play? And i really don't have time, also what's the point of botting on a private server when you can just type like /spawn item 1234 etc. to get free stuff and the likes?

E:

program Killer;
{.Include srl/srl.scar}
const
MonsterColor = 660604; // Use Simba or SCAR to pick the color from screen
FightTime = 10000; // Milliseconds to wait after attacking
UpTextColor = 320482;

var
Failed: Integer;

function AttackMonster: Boolean;
var
X, Y: integer;
begin
if FindColorSpiralTolerance(X, Y, MonsterColor, 0, 0, 200, 200, 10) then // Main-screen cordinates to (0, 0, 200, 200)
begin
MMouse(X,Y,2,2);
Wait(100);
end;
if (CountColorTolerance(UpTextColor, 0, 0, 100, 20, 15) > 20) then
begin
Mouse(X,Y,2,2,True);
Wait(FightTime);
Result := True;
end else Wait(500);
end;

begin
repeat
if (not AttackMonster) then
Inc(Failed);
until(Failed > 99);
end.

rs cheata

2010-09-25 20:49:23

i really only want a bot that just clicks a color thats all i want…

R0b0t1

2010-09-25 20:52:24

OP is a faggot, fix your own problems.

rs cheata

2010-09-25 21:10:08

sorry im dumb but whats text color? cus its not even movin the mouse atm

TomTuff

2010-09-25 21:13:40

uptext is the text that appears in the top left when you mouse over different things. i'm assuming uptext color would be the color that text, which is set in the constants.

rs cheata

2010-09-25 22:26:25

well… it just stands in 1 place

rs cheata

2010-09-26 17:08:53

i just took out the uptext part and it still does nothing

Inspirations

2010-09-27 14:57:12

I would suggest reading the tutorial island area, learning how to script, then applying your own fixes, or better yet writing your own simple fighter. It will definitely be beneficial for you in the long run, and it's pretty fun too

BraK

2010-09-27 15:21:00

From: Inspirations
I would suggest reading the tutorial island area, learning how to script, then applying your own fixes, or better yet writing your own simple fighter. It will definitely be beneficial for you in the long run, and it's pretty fun too


Nicely said.. We are a learning community. If you wat to learn how to do it we can help. Only you know what you want it to actually do. No matter what you tell us it'll never be like you want because we made it in our way.

rs cheata

2010-10-01 16:59:42

every tutorial isnt helping for non rs scripts..

Shuttleu

2010-10-01 18:30:23

From: rs cheata
every tutorial isnt helping for non rs scripts..


use this one, its not for RS scripts, its he one that got me started and explains nearly everything you need to know (except logic) for a private server

~shut

rs cheata

2010-10-01 23:41:59

use what one? lol no link

weequ

2010-10-02 03:52:13


program ColorClicker;

//SETUP
const
COLORTOCLICK = 0;
TOLERANCE = 0;
X1 = 0;
Y1 = 0;
X2 = 0;
Y2 = 0;
//END OF SETUP

var
x, y: Integer;

begin
Wait(50);
repeat
Wait(50);
if FindColorTolerance(x, y, COLORTOCLICK, X1, Y1, X2, Y2, TOLERANCE) then
begin
ClickMouse(x, y, True);
Wait(2000);
end;
until(false);
end;

TomTuff

2010-10-02 04:11:25

From: rs cheata
every tutorial isnt helping for non rs scripts..


tutorials here are based on RuneScape, since that was what the include this forum discusses/develops was made for. However, the same concept can be applied to any game.

Gu3st...

2010-10-02 04:16:11

From: antti mies

program ColorClicker;

//SETUP
const
COLORTOCLICK = 0;
TOLERANCE = 0;
X1 = 0;
Y1 = 0;
X2 = 0;
Y2 = 0;
//END OF SETUP

var
x, y: Integer;

begin
Wait(50);
repeat
Wait(50);
if FindColorTolerance(x, y, COLORTOCLICK, X1, Y1, X2, Y2, TOLERANCE) then
begin
ClickMouse(x, y, True);
Wait(2000);
end;
until(false);
end;
That would only work in SCAR
If you use Simba, then try this:

program ColorClicker;

//SETUP
const
COLORTOCLICK = 0;
TOLERANCE = 0;
X1 = 0;
Y1 = 0;
X2 = 0;
Y2 = 0;
//END OF SETUP

var
x, y: Integer;

begin
Wait(50);
repeat
Wait(50);
if FindColorTolerance(x, y, COLORTOCLICK, X1, Y1, X2, Y2, TOLERANCE) then
begin
MoveMouse(x, y);
ClickMouse(x, y, True);
Wait(2000);
end;
until(false);
end;