SRL Archive - First Scripts

Take And Bury(very basic)


catanado15

2012-04-30 15:13:37

Hi guys ! I just started learning to script and i've done some scripts… i've done chop/fletch/drop, M1D1 and now a loot and bury(in lumby chickens)… All very basic only with the materials i know :$ plz, all feedback is welcome… :)

program New;
{$i SRL\SRL.simba}

var
x, y, Bones: Integer;


procedure FindBones;
var
x, y: Integer;
begin
if FindObj(x, y, 'Take', 10002613, 5)then
Mouse(x, y, 2, 0, False);
ChooseOption('ones');
end;

procedure BuryThem;
var
Bones, x,y: Integer;
begin
Bones:= DTMFromString('mggAAAHicY2NgYJjGxMAwE4gnA3EvEE8C4nlA/Bgodx+I70Hpl0D8FIg3rFjBsHjObIZpEyYAeUwM65YvY1gydy4DLsCIA0MAAAGqElA=');
if FindDTM(Bones, x, y, MIX1, MIY1, MIX2, MIY2) then
Mouse(x, y, 0, 0, True);
end;


begin
SetupSRL;
repeat
repeat
FindBones;
until InvCount > 5;
Wait(500);
WriteLn('We have some bones!');
repeat
BuryThem;
until InvCount < 3;
WriteLn('Bones Buried');
until(False);
FreeDTM(Bones);
end.

NKN

2012-04-30 18:02:21

Could you explain how to setup/what it does?

Gucci

2012-04-30 18:15:37

This is very simple, but a nice start. NKN looks like you just start it and it picks up bones and buries them. Seems more like a function that can be used in a script

Edit: 800TH POST :eek:

catanado15

2012-04-30 18:17:35

Is very basic… load runescape from your browser, set up graphic properly(all to min, brightness to max)…. then, open the script, select runescape game window and press play… what it do ? start in chickens and loot all the bones and then bury them… very basic :$


EDIT: ahahaha gratz gucci

NKN

2012-04-30 18:19:25

I meant edit first post, so people could understand how to use it.

Seems pretty good, does it kill chickens, or loot other peoples bones?

catanado15

2012-04-30 18:21:04

loot other people bones… :p

i know it's very basic, but i'm starting to understand this things xD

NKN

2012-04-30 18:32:07

Remember to ask if you need help. :P

Wouldn't want you to get stuck, and shy away from that area.

Joepetey

2012-05-04 18:15:51

Good script for your first, work on adding more complex and accurate methods.


:garfield:

Last Legend

2012-05-10 00:28:17

A good place to go with this would be incorperating it into a fighting script possibly :) just an idea