SRL Archive - RS3 Outdated / Broken Scripts

Mega's Goblin Killer


Gucci

2012-02-20 19:05:48


Well here is a goblin destroying script that I have made :D

Features:

Will kill goblins in Lumbridge (Near Al-Kharid Gate)
Picks up bones and bury's when inventory is full
Failsafe that has the goblin walk back if he wanders too far
Somewhat working progress report (Need help fixing)


To Come:

Walking back if killed

Credits:

PatDuffy and Laakerules for helping with the failsafe
Also Kyle Undefined for the amazing banner


Change Log:

Version 1 - Initial Release –> 56 Downloads

Version 2 - Fixed HP_BAR_COLOR issue

Version 3 - Added death walk, few other fixes


Here is some stats gained with this script (Note all the combat is with this script):


Enjoy the script and post any bugs. :spot:

dylanjfields

2012-02-21 13:07:06

Im new to simba how do you set up the goblin killer i loaded it to simba alright but then what? i know you have to read through it and put in information but it gave me an error at the color part.

Gucci

2012-02-21 14:05:18

Weird what's the error

Gucci

2012-02-21 17:39:17

Any feedback from people who downloaded?

Tisa

2012-02-21 19:19:48

I have just started using Simba and after opening and clicking run I got on error on this line.

" Colors := [HP_BAR_COLOR1, HP_BAR_COLOR2, HP_BAR_COLOR3]; "
Hope this helps.

Gucci

2012-02-21 19:35:22

From: Tisa
I have just started using Simba and after opening and clicking run I got on error on this line.

" Colors := [HP_BAR_COLOR1, HP_BAR_COLOR2, HP_BAR_COLOR3]; "
Hope this helps.


Odd that isn't even inside my script do you have newest simba and updates? because this works fine for me

Godric

2012-02-21 20:27:13

ill give this a try, thanks/

Gucci

2012-02-21 20:48:37

From: Godric
ill give this a try, thanks/


Thanks good luck.

Xert

2012-02-22 07:57:30

From: mega284
Thanks good luck.


I have the same issue as the guy said before. if updated simba and even restarted pc. Suggestions?

Gucci

2012-02-22 09:00:27

I'll take a look later today and see what's worng but if I can't get the same problem then I can't fix it. Does the script even start?

Gucci

2012-02-23 00:56:40

Found a fix for the error remove hp bar color3

Skywalk

2012-03-03 11:19:50

[Error] (125:7): Unknown identifier 'SPS_GetMyPos' at line 124
Compiling failed.
keep getting this

Gucci

2012-03-03 12:11:51

Odd must be something from an update or something, I'll take a look when I get home

feyaerts

2012-03-14 11:49:42

CAn't you make any options to Bury/not to Bury the bones?

Gucci

2012-03-14 14:29:50

Yes, I could I'll look into it

Hackz

2012-03-17 19:56:09

trying it out now! Hope to get some good levels XD

touchmoney

2012-03-18 12:35:50

i will trying ,thank you for your help.

Neznam

2012-04-06 23:41:22

I've given it a try…
Works great for me.
However, as for picking up bones. It only picks up bones when a goblin is not in range, which is rare, since there are many goblins in lumby. Only on the rare occasion that when the goblins are not around it will click on a bone and pick it up, otherwise its main objective is clicking on goblins first.

I actually prefer it that way. Just wanted to let you know. I like it.

EDIT : after about 35minutes of running, it has only picked up 6 bones.

Moni

2012-04-07 15:48:53

I dont want it 2 bury bones how i take it off

KoG Khaos

2012-04-12 11:43:11

Bot runs alright, but doesn't stay on one goblin long enough to kill it before clicking on another.

KoG Khaos

2012-04-12 11:45:26

This is not the case all the time, but it is a fairly common occurrence.

Gucci

2012-04-12 11:53:18

From: KoG Khaos
This is not the case all the time, but it is a fairly common occurrence.


Odd I use the InFight function before going to another goblin, maybe the infight function is flawed atm

Silentcore

2012-04-12 11:56:33

What would the xp per hour be for a 40+ Att, str, def be?

KoG Khaos

2012-04-12 11:57:22

Possible. I will look through and see what I can find. Just a heads up :)

iboughtall

2012-05-05 09:18:26

pretty fast after I deleted the bones from it.

v0rtexer43

2012-05-05 19:56:08

As soon as you add the walking back to death feature I will use this for all my new pure accounts

Gucci

2012-05-05 23:47:38

I have it in my version of the script but I don't have an account that can die lol, I'll release it once I have added things and I'm comfortable with releasing

Twisterz

2012-05-06 00:55:38

Looks sweet. I may have to use this since there arent very many dependable combat scripts out there.

Gucci

2012-05-06 01:14:33

From: Twisterz
Looks sweet. I may have to use this since there arent very many dependable combat scripts out there.


Well if your F2P Harry's Catacomb Killer is good for when you get to a higher level.

wolfdog54

2012-05-08 22:43:35

[Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'X' never used at line 256
[Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'Y' never used at line 256
[Error] C:\Simba\Includes\sps/sps.simba(280:14): Unknown identifier 'SPS_GatherMinimap' at line 279

What seems to be the problem?

devz01

2012-05-11 12:26:23

how do i run this? i downloaded the mega goblin killer and i ran it, but runescape doesnt start when i click run. there are no errors in the debug box, but nothing happens…please help. (i have simba updated to the latest etc)

Gucci

2012-05-11 14:12:03

From: devz01
how do i run this? i downloaded the mega goblin killer and i ran it, but runescape doesnt start when i click run. there are no errors in the debug box, but nothing happens…please help. (i have simba updated to the latest etc)


Fill in your info and start the script. Check out the newbiw tutorials

Rouids

2012-06-08 21:09:04

I have edited the script so it eats tuna. The tuna part of the script was leeched from a different script edit. Credits to: cause

Hope both you guys don't mind me for using the code, and also pasting it here.

ALSO, I have not really tested this because I haven't been able to get low enough HP. Please use with caution. It's not certain the feature will work.

program MegaGoblinKiller;
{$DEFINE SMART}
{$i srl/srl/misc/smart.simba}
{$loadlib sps}
{$i srl/srl.simba}
{$i sps/sps.simba}

const
SRLStats_User = ''; // Your SRL Stats Username
SRLStats_Password = ''; // Your SRL Stats Password
SERVER = 0; // Enter "0" to pick a random server.
MEMBERS = True;
NumbOfPlayers = 1;
StartPlayer = 0;
Tolerance = 2;

var
B: Array [0..5] of Integer;
x, y, Food: Integer;
aFound: Extended;
Drops:TStringArray;
Bones, TotalEXP, GoblinKilled: Integer;


procedure DeclarePlayers;
var i:integer;
begin
NumberOfPlayers(NumbOfPlayers);
CurrentPlayer := StartPlayer
for i := 0 to NumbOfPlayers-1 do
Players[i].BoxRewards := ['XP'];

With Players[0] do
begin
Name := ''; //Username.
Pass := ''; //Password.
Active := True;
end;

end;

procedure FailSafe (Reason:String);
begin
Players[CurrentPlayer].Loc:=Reason;
Logout;
Stats_Commit;
TerminateScript;
end;

function InFight: Boolean;
begin
Result := srl_InFight;
end;

Function OthersInFight: Boolean;
var
x, y, i: integer;
Colors: TIntegerArray;
begin
Colors := [HP_BAR_COLOR1, HP_BAR_COLOR2];
for i := 0 to High(Colors) do
if FindColorTolerance(x, y, Colors[i], MSX1, MSY1, MFBox.X1, MSY2, 0) or
FindColorTolerance(x, y, Colors[i], MSX1, MSY1, MSX2, MFBox.Y1, 0) or
FindColorTolerance(x, y, Colors[i], MFBox.X2, MSY1, MSX2, MSY2, 0) or
FindColorTolerance(x, y, Colors[i], MSX1, MFBox.Y2, MSX2, MSY2, 0) then
begin
Result := True;
Exit;
end;
end;

function IsFightAt(var X, Y: Integer): Boolean;
var
B: TBox;
H, I: integer;
ATPA: T2DPointArray;
Colors: TIntegerArray;
begin
Colors := [HP_BAR_COLOR1, HP_BAR_COLOR2];
H := High(Colors);
SetArrayLength(ATPA, H+1);
B := IntToBox(x-20, y-40, x+20, y+10);
for i := 0 to H do
with B do
FindColorsSpiralTolerance(x, y, ATPA[i], Colors[i], Max(X1, MSX1), Max(Y1, MSY1), X2, Y2, 0);
Result := Length(MergeATPA(ATPA)) > 0;
end;

function FindGoblin(Var X,Y: Integer): Boolean;
var
CTS: Integer;
TPA: TPointArray;
begin
Result := False;
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.1415519568151143, 0.7379752182483808);
FindColorsSpiralTolerance(MSCX, MSCY, TPA, 3046770, MSX1, MSY1, MSX2, MSY2, 7);
ColorToleranceSpeed(CTS);

if (Length(TPA) < 1) then
Exit;

MMouse(TPA[0].X, TPA[0].Y, 5, 5);

if WaitUpText('ttack Goblin', 250) then
begin
GetMousePos(X, Y);
Wait(10);
end;
end;

Procedure ToBank;
begin
B[0] := DTMFromString('mrAAAAHic42BgYChhYmAIAuJVQLwSiu2h2AmI7YBqUoA4EYiDgdgTiKOBOByI/YB4em8qQ7ghG4NBkgiDQoQAg5U1Kxw7JEkxiADV4MOMBDAMAACI9AxR');
B[1] := DTMFromString('mlwAAAHicY2dgYDBkYmBwAmJHKHYAYj8gjgfiQKC8CxCHAXE8EOcDsTMQOwHxzJ5UBqdEKQYbK1Y4NkoUYVAKF2AQAcrjwox4MBQAAKFHCbE=');
B[2] := DTMFromString('mlwAAAHicY2dgYIhiYmDwAOJ6NOwOxJVA+Xwg9gXiHCCuBeIJQGwJxFt70hi+/+ZmMEoUYbCxYgVjENu70IRBBCiPCzPiwVAAABJQDU0=');

MakeCompass ('n')
if FindDTMRotated(B[0], x, y, MMX1, MMY1, MMX2, MMY2, -Pi/4, Pi/4, Pi/60, aFound) then
begin
Mouse(x, y, 3, 3, True);
FFlag(6);
FreeDTM(B[0]);
repeat
Wait(50 + Random(25));
until FindDTMRotated(B[1], x, y, MMX1, MMY1, MMX2, MMY2, -Pi/4, Pi/4, Pi/60, aFound);
end;

if FindDTMRotated(B[1], x, y, MMX1, MMY1, MMX2, MMY2, -Pi/4, Pi/4, Pi/60, aFound) then
begin
Mouse(x, y, 3, 3, True);
FFlag(6);
FreeDTM(B[1]);
repeat
Wait(50 + Random(25));
until FindDTMRotated(B[2], x, y, MMX1, MMY1, MMX2, MMY2, -Pi/4, Pi/4, Pi/60, aFound);
end;

if FindDTMRotated(B[2], x, y, MMX1, MMY1, MMX2, MMY2, -Pi/4, Pi/4, Pi/60, aFound) then
begin
Mouse(x, y, 3, 3, True);
FFlag(6);
FreeDTM(B[2]);
End;
End;

Procedure FromBank;
begin
B[4] := DTMFromString('mwQAAAHic42RgYOhnYmCYg4RnA3E4EJcAcQUQpwKxCVCdGxBHA3EGEGsCsS4QqwFxCRALAPHU7jQGS0s2BvkwQTjd15IIFvcoMGWY3pHOIAJURwgzEoHhAAAP1hCq');
B[5] := DTMFromString('mlwAAAHicY2dgYJjAxMBQD8QNUAxirwDiHiCOAMpXAXEeEIcDsTUQWwCxJRBv6kpjMNLkYtBPEGWQDxME0zAsApTHhRnxYCgAALMIC8s=');

MakeCompass ('n')
if FindDTMRotated(B[4], x, y, MMX1, MMY1, MMX2, MMY2, -Pi/4, Pi/4, Pi/60, aFound) then
begin
Mouse(x, y, 3, 3, True);
FFlag(6);
FreeDTM(B[4]);
repeat
Wait(50 + Random(25));
until FindDTMRotated(B[5], x, y, MMX1, MMY1, MMX2, MMY2, -Pi/4, Pi/4, Pi/60, aFound);
end;

if FindDTMRotated(B[5], x, y, MMX1, MMY1, MMX2, MMY2, -Pi/4, Pi/4, Pi/60, aFound) then
begin
Mouse(x, y, 3, 3, True);
FFlag(6);
FreeDTM(B[5]);
end;
end;

Procedure Bankit;
Begin
B[3] := DTMFromString('mlwAAAHicY2dgYOBgZGD4DqTFgPQfIC0IpP9B6RIgHQXEkUBcCcW5QFwIxEnBTgz21uYMtpYmDBVpgQxx/vYMt3ZOZqjJDGYQAcrjwox4MBQAAF81DpI=');

MakeCompass ('w')
repeat
Wait(50 + Random(25));
until FindDTMRotated(B[3], x, y, MSX1, MSY1, MSX2, MSY2, -Pi/4, Pi/4, Pi/60, aFound);

If FindDTMRotated(B[3], x, y, MSX1, MSY1, MSX2, MSY2, -Pi/4, Pi/4, Pi/60, aFound) then
begin
Mouse(x, y, 3, 3, True);
Wait(1500)
if not (bankscreen) then

repeat
Wait(50 + Random(25));
until FindDTMRotated(B[3], x, y, MSX1, MSY1, MSX2, MSY2, -Pi/4, Pi/4, Pi/60, aFound);

If FindDTMRotated(B[3], x, y, MSX1, MSY1, MSX2, MSY2, -Pi/4, Pi/4, Pi/60, aFound) then
begin
Mouse(x, y, 3, 3, True);
Wait(1500)
Withdraw(0, 0, 28);
CloseBank;
FreeDTM(B[3])
end;
end;
end;
Procedure LowHPLetsEat;
var
I, x, y: Integer;
test: boolean;
begin
test := (HPPercent < 70) and (LoggedIn);
If(not(test)) then
Exit;

if test then
If InvEmpty then
begin
ToBank;
Bankit;
FromBank;
end else
begin
if FindDTM( Food, X, Y, MIX1, MIY1, MIX2, MIY2) then
begin
Mouse(x ,y, 5, 5, true);
Wait(100);
WriteLn('Having a bite of tuna');
end else
begin
WriteLn('couldn''t find any tuna');
end;
end else
WriteLn('health isn''t low enough to eat');
end;
procedure Report;

begin
GoblinKilled := (GoblinKilled + 1);
TotalEXP := (GoblinKilled*27);

Writeln('############ MegaGoblinKiller ###########');
Writeln('|= Player : ' + Players[CurrentPlayer].Name);
Writeln('|= Time Running : ' + TimeRunning);
Writeln('|= Goblins Killed : ' + IntToStr(GoblinKilled));
Writeln('|= EXP Gained : ' + IntToStr(TotalEXP));
Writeln('#########################################');
end;

procedure FailSafe2 (Reason:String); // Credit to Laakerules
var
Z:TPoint;
begin
Z:= SPS_GetMyPos;
if (Not (Distance(Z.X, Z.Y, 4830, 3700) < 25)) then//Change the 25 to whatever you want your distance checking to be.
Begin
BoredHuman;
SPS_WalkToPos(Point(4830, 3700));
end;
end;

procedure Gobbling;
var
Xi, Yi, x: Integer;
begin
SetAngle(SRL_ANGLE_HIGH);
MakeCompass('N');
if InFight then
begin
repeat
FindNormalRandoms;
until (not (OthersInFight) or (not LoggedIn) or (not InFight))
end;
x := Random(8)

if FindObjEx(Xi, Yi, ['ttack'], [4430477, 4033671, 1858905, 3253129], Tolerance, 50, 1, 5, 690, 400) then
begin
if not (IsFightAt(Xi, Yi) and not InFight) then
begin
GetMousePos(Xi, Yi);
Mouse(Xi, Yi, 5, 5, True);
end;
while IsMoving do
begin
Wait(250);
end;
end
else
begin
wait(800)
end;
end;

procedure AntiBan;
begin
if(not(LoggedIn))then
exit;
FindNormalRandoms;
case Random(2) of
0:
begin
WriteLn('AntiBan, Move Camera');
MakeCompass('N');
wait(150+random(100));
MakeCompass('E');
wait(50+random(100));
MakeCompass('S');
end;

1:
begin
WriteLn('Skill1');
HoverSkill('Attack', False);
Wait(1000 + Random(200));
end;
2:
begin
WriteLn('Bored.');
BoredHuman;
end;
end;
end;

procedure DropVars;
begin
Drops :=['ones']

end;

Procedure Bury;
var
i : Integer;
begin
if (InvFull) then

begin
for i := 1 to 28 do
begin
InvMouse(I, 3);
if IsUpText('Bury') then
begin
ClickMouse2(True);
Wait(RandomRange(200, 300));
end;
end;
end;
end;

function FindBones(Var X,Y: Integer): Boolean;
var
CTS: Integer;
TPA: TPointArray;
begin
Result := False;
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0, 0.1255325704692993);
FindColorsSpiralTolerance(MSCX, MSCY, TPA, 9539993, MSX1, MSY1, MSX2, MSY2, 7);
ColorToleranceSpeed(CTS);

if (Length(TPA) < 1) then
Exit;

MMouse(TPA[0].X, TPA[0].Y, 5, 5);

if WaitUpText('Take', 250) then
begin
GetMousePos(X, Y);
Mouse(x, y, 0, 0, False);
ChooseOptionMulti(Drops);
Result := True;
Inc(Bones);
Exit;
end;

end;

function PickupBones:Boolean;
var
x, y: Integer;
begin
FindNormalRandoms;
If FindBones(x, y) Then
begin
While IsMoving do
Wait(25);
FindNormalRandoms;
Wait(RandomRange(300,400));
Mouse(x, y, 0, 0, False);
ChooseOption('Take Bones');
Result := True;
end;
end;

begin
Smart_Signed := TRUE;
Smart_Members := MEMBERS;
Smart_SuperDetail := FALSE;
Smart_Server := 30;
ActivateClient;
SetupSRL;
DeclarePlayers;
if not (LoggedIn) then
LoginPlayer;
Wait(4000+random(400));
repeat
Gobbling;
Report;
if not InFight then
begin
PickupBones;
Bury;
end;
until(False)
end.

Gucci

2012-06-09 09:41:30

^^ I don't mind but not sure you need to eat food while fighting goblins ;)

Rouids

2012-06-09 15:02:57

I've died a couple times before while autoing gobs, just thought it'd be a nice addition :)

Poptart

2012-06-15 05:39:45

i have a problem it says "Exception in Script: Plugin(libsmart32) has not been found" wheni press play and i entered in my username and pass please help as soon as possible

Poptart

2012-06-15 05:51:40

ok now that i updated the SRL thing its giving me an error "fatal error MSVCR100.dll" PLEASE HELPthen a bunch of other crap

Clairvoyance

2012-06-15 06:29:41

When you find a nice world it's really fast…