SRL Archive - First Scripts

My first script GoblinKiller


jkrules22

2012-03-30 23:42:46

Ok so this is my first script :smile:

It eats tuna only
It will walk from lummy lodestone
It Kills goblins
Banks in varrock
And thats it for now.


Soon to be added:
RadialWalk Instead of SPS
Walking back if you die(If you happen to die from goblins lol)
Resting when low hp if no food
Looting and burying bones


Put food in first slot of bank



I only accept only constructive criticism and positive comments, any negitive comments will be ignored (I have yet to run into a rude person here but i had to say that)



I hope you enjoy even though its not perfect(Yet!)




V1.5 Update:
Fixed eating
Doesnt get lost as much
Banks in varrock

NKN

2012-03-31 00:31:43

You could have it check your HP level for eating, so it stops eating above a certain HP level.

jkrules22

2012-03-31 00:36:34

I have it to repeat until (HPPercent > 90), and its still eating my whole inv :(



Procedure EatTuna;
Var
I:Integer;
Begin
GameTab(tab_Inv);
Repeat
for I := 1 to 26 do
Begin
InvMouse(I, 3);
if IsUpText('Tuna') then
Begin
ClickMouse2(True);
Wait(RandomRange(1500, 2000));
End;
End;
until (HPPercent > 90);
End;

Rezozo

2012-03-31 00:38:00

First, why above 90…? Do 25.
Second, do less then, not above… Above is always true… LOl

NKN

2012-03-31 00:38:19

Post the whole eating proc, or PM it to me.

I'll see if I can find the problem.

jkrules22

2012-03-31 01:20:14

Ok so I fixed the part where its eating my entire inv, but now Im trying to make it run my Tobank, Bank, and ToGoblin procs but its saying (77:9): Unknown identifier 'ToTheBank'



Procedure EatTuna;
Var
I:Integer;
test: boolean;
Begin
GameTab(tab_Inv);
for I := 1 to 26 do
Begin
test := (HPPercent < 75) and (LoggedIn);
If(not(test)) then
Exit;
if test then
If InvEmpty then
Begin;
ToTheBank;//
Bankit;///////The Procedures Im trying to run but its saying Unknown identifier
ToGobs;/////
End;
Begin;
InvMouse(I, 3);
if IsUpText('Tuna') then
Begin
Repeat
ClickMouse2(True);
Wait(RandomRange(1500, 2000));
until (HPPercent > 90);
End;
End;
End;
End;


NKN

2012-03-31 01:24:01

You need to put those procedures above that one, or it can't find them.

Gucci

2012-03-31 01:24:50

Okay are you declaring those procedures before that one? Also would be useful if you would post walking

jkrules22

2012-03-31 01:37:53

TYvm guys, I had the eat proc before the others, I moved it and now it eats right and banks(In varrock though lol)

NKN

2012-03-31 01:51:51

Why not bank in Lumby?
If you're using RadialWalk, it's easy.
Set the stairs to a TPA, and then click em.

jkrules22

2012-03-31 02:39:53

I haven't tried radialwalk yet, Ill have to learn it, then put it in here..Ill get that down in a day or 2. Ive seen a few tuts on radialwalk

jkrules22

2012-03-31 22:59:58

Wow lol, I didn't realize radialwalk was so simple, Ill have the script using that soon.

Mor

2012-04-01 02:24:01

walking from lumbridge to varrock its waste of time man
I will try your script later. looks nice

jkrules22

2012-04-01 23:43:29

OK so I have my radialwalk getting me right infront of the stairs, Now Im not sure on how to approach Clicking them to get up them, If somebody could get me a proc to do so Id appreciate it, Im not asking you to do it for me, I just need to see one and i can get it filled in from there

garrett1294

2012-04-02 00:29:40

Ive been using this script. You have to start right at the lode stone and it seems like it just wants to stay in that one building the whole time to fight goblins. It works well though and i like it :)

jkrules22

2012-04-02 01:01:44

Thanks man! :D , as soon as I get this radialwalk going right and it banking in lummy Ill work on the fighting area..