SRL Archive - RS3 Outdated / Broken Scripts

OfflineOgreKiller


Offline

2012-02-11 17:45:05

Kills Ogres at Combat Training camp.
Enjoy :) This is my first Script.:spot:
The Attachment show the best place to stand.
Anyone can edit this script but can only post their edits on this thread.
can anyone help me with failsafes and randoms :)

 program OfflineOgreKiller;
{$DEFINE SMART}
{$i SRL/srl.simba}
{$i SRL/SRL/skill/fighting.simba}
{$i SRL/SRL/misc/paintsmart.simba}





//================--User Setup--===================\\
procedure DeclarePlayers;
Begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

With Players[0] Do
Begin
Name := ''; //Player username.
Pass := ''; //Player password.
Active := True;
End;

End;
//=================================================\\







const
SWorld = 100;
var
T,MSpeed,RandAmount,TPointArray:Integer;

procedure SetupChar;
begin
SetAngle(0);
ClickNorth(0);
end;

Function FindOgre(Var X,Y: Integer): Boolean;
var
CTS,I,T: Integer;
TPA: TPointArray;
begin
FindNormalRandoms;
repeat
Result := False;
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.20, 1.60);
FindColorsSpiralTolerance(MSCX, MSCY, TPA,(10525337), MSX1, MSY1, MSX2, MSY2, 8);
ColorToleranceSpeed(CTS);
if (Length(TPA) < 1) then
Exit;
MMouse(TPA[0].X, TPA[0].Y, 5, 5);
if WaitUpText('ack Ogre', 50) then
begin
FindNormalRandoms;
GetMousePos(X, Y);
ClickMouse2(True);
Result := True;
If DidRedClick then
MarkTime(T);
Repeat
wait(2 + Random(10));
If (TimeFromMark(T) > 4000) Then Exit;
Until Infight;
Begin
End;
repeat
until Not(InFight)
Exit;
end;
Until(Result)
end;

procedure KillOgres;
var
sX,sY,X,Y: Integer;
label
fighting;
begin
If FindOgre(X,Y) Then
writeln('Killing Ogre.');
FindNormalRandoms;
fighting:
While IsMoving do
MarkTime(T);
wait(1);
case random(4) of
0 : begin
sX := MSX1;
sY := MSY1;
end;
1 : begin
sX := MSX1;
sY := MSY2;
end;
2 : begin
sX := MSX2;
sY := MSY1;
end;
3 : begin
sX := MSX2;
sY := MSY2;
end;
end;
If FindOgre(X,Y) Then
goto fighting;
begin
if InFight then
begin
repeat
until (hppercent<20)
end;
wait(randomrange(200,300));
end;
end;

procedure Paint;
var
Ogres : String;
begin
begin
SMART_DrawTextEx(false,10,275,LoginChars,'OfflineOgreKiller', clAqua);
end;
end;

procedure Startup;
begin
Smart_Server := SWorld;
Smart_Members:= true;
Smart_Signed := true;
Smart_SuperDetail := false;
SetupSRL;
RandAmount := 30;
MSpeed := 200;
DeclarePlayers;
LogInPlayer;
MouseSpeed := MSpeed;
wait(100+random(100));
end;
begin
Startup;
SetupChar;
FindNormalRandoms;
Paint;
repeat
KillOgres;
begin
end;
until (hppercent<10);
TerminateScript;
end.

js1155

2012-02-11 18:18:32

first post looks nice dude screen shots and a code? like what u already put just loggs of it working, brb imma try it out i just happened to be a range pure :D couple stuff can u have the bot attack the ogre please?

jctnd

2012-02-11 18:39:26

ima try this out

laakerules

2012-02-11 18:40:37

Nice, does it attack all of the NPC's?

jctnd

2012-02-11 18:45:52

From: laakerules
Nice, does it attack all of the NPC's?

yessir im running it right now and its goin grate

edit: it attacks all of them

js1155

2012-02-11 18:59:04

what the when i run it doesnt attack at all just sits there puts the curser on the ogre but thats all wait he fixed it nvm he didnt

Offline

2012-02-11 19:13:47

ty for the feedback, ill try to make the bot do the random events, this is my first script, ill just give it ago :)

jctnd

2012-02-11 19:20:46

theres a bug bro it keeps running around the fence and stuff like that makin me look like a bot lmao he cant stand still :P

I got this

2012-02-12 15:01:48

One of the fastest attacking color script I have seen, nice job

Edit : Some sort of fail safe would be nice, after like 20 minutes it gets stuck in a spot were it can't attack orges

Offline

2012-02-13 00:15:32

i new to scripting, ill give it ago :0

Dioxide

2012-02-13 00:55:38

It just hovers over the ogres…. please help :d

Offline

2012-02-13 04:40:59

it shouldn't…

j0nez

2012-02-14 20:20:54

It just hovers over the ogres as he stated.

Offline

2012-02-17 06:38:07

ill update

HolyWord

2012-03-12 03:48:14

How is the random support on this?

davis_junior

2012-03-12 03:56:15

From: HolyWord
How is the random support on this?


Random support should be the same across all scripts that use SRL – random solving is part of SRL.

crazychris456

2012-07-10 14:03:11

Is this bot still working? I can't seem to get it running properly. Thanks.