SRL Archive - First Scripts

Master farmer thief


Jhangir

2011-12-10 12:10:59

Credits to r4nd0m for doing most of the script
program Jhangir_Master_Farmer;
{$i srl/srl/misc/smart.scar}
{$i srl/srl.scar}
{$i sps/sps.simba}

Var
x, y :Integer;
WalkHome: TPointArray;
Ver : String;

Const
Version = 1;

procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0; // This is the player to start with
Players[0].Name := ''; // Username
Players[0].Pass := ''; // Password
Players[0].Nick := ''; // 3-4 lowercase letters from username;
Players[0].Active := True; // Set to true if you want to use Player 0
Players[0].BoxRewards := ['Xp', 'mote', 'ostume', 'oins', 'aphire', 'ssence'];
end;

procedure Antiban;
begin
case Random(60) of
20: HoverSkill('Thieving', False);
30: PickUpMouse;
40: RandomMovement;
50: BoredHuman;
59: ExamineInv;
end;
Writeln('Antiban in action!');
end;

procedure AntiRandom;
begin
FindNormalRandoms;
LampSkill := 'thieving';
LevelUp;
Writeln('Checking for randoms');
//FindDead
end;

Procedure WalkToFarmer;
begin
Writeln('Died :(');
Writeln('Walking to the Farmer')

WalkHome := [Point(0, 0), Point(0, 0),
Point(0, 0), Point(0, 0), Point(0, 0),
Point(0, 0), Point(0, 0)]

If(SPS_WalkPath(WalkHome)) then
WriteLn('At Stairs');
end;

function FindMaster_Farmer(): Boolean;
begin
repeat
AntiRandom;
if(StrInArr('h dear', ChatBoxTextArray(clMessage)))
then
begin
WalkToHouse;
end;
Antiban;
AntiRandom;
Wait(RandomRange(200, 700));
FindObjCustom(x, y, ['master_farmer'], [0, 0, 0, 0], 10);
Mouse(x, y, 5, 5, false);
ChooseOption('ocket');
until false;
end;

procedure Sequence;
begin
SetAngle(true)
SetRun(true)
FindMaster_Farmer;
end;

begin
Smart_Server := 77;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;

ClearDebug;
SetupSRL;
DeclarePlayers;
LoginPlayer;
Sequence;
end.


I need help with
FindObjCustom(x, y, ['master_farmer'], [0, 0, 0, 0], 10);

How do I find the correct coords

PatDuffy

2011-12-10 12:16:26

Just looking at the FindObjCustom for 10 seconds, the ['master_farmer'] will not work because it will search for the ['_'] also, and this character does not actually appear. Spaces should be entered as that, a space, and finding text IS case sensitive. I would suggest something like ['aster'.'armer'] as your uptext for that, since Capital letters sometimes are a little shaky.

Jhangir

2011-12-10 12:24:04

I did that and now I'm getting a [Error] (73:29): Closing square bracket (']') expected at line 72

bump

[XoL]

2011-12-10 18:42:53

Please give me credit when you take my script :(
Judging by the fact this is EXACTLY the same as my script just a few changes of words/names…

Stealing isn't cool :/, I don't mind someone taking the script and changing it but please give credit or ask
Here is a working version of what you were trying to make:
http://villavu.com/forum/showthread.php?t=68923

Anyway the sps you put in is wrong try the sps programs to map the path to the Farmer (My script walks me back to lumbridge house)

Jhangir

2011-12-10 18:50:40

From: R4nd0m
Please give me credit when you take my script :(
Judging by the fact this is EXACTLY the same as my script just a few changes of words/names…

Stealing isn't cool :/, I don't mind someone taking the script and changing it but please give credit or ask
Here is a working version of what you were trying to make:
http://villavu.com/forum/showthread.php?t=68923

Anyway the sps you put in is wrong try the sps programs to map the path to the Farmer (My script walks me back to lumbridge house)


I gave you credit look at my post dude

[XoL]

2011-12-10 18:51:51

Oh my bad lol, didn't see it

Jhangir

2011-12-10 18:52:52

Well i didnt know someone already made this so its useless

[XoL]

2011-12-10 18:55:48

Its not his doesn't walk!
Make your walk to the bank and bank, master thieves are great GP

Jhangir

2011-12-10 21:06:57

ok ill try but how do I find the coords?

[XoL]

2011-12-10 22:06:30

Use this:
http://villavu.com/forum/showthread.php?t=64891

bambino

2011-12-11 03:20:43

question what about eating? does it eat on low hp???????

omegaangelz

2011-12-11 07:56:49

From: bambino
question what about eating? does it eat on low hp???????


After looking through the script it does not appear to have any function that supports eating.

Jhangir

2011-12-11 12:14:55

From: R4nd0m
Use this:
http://villavu.com/forum/showthread.php?t=64891


Ok I will try to complete the whole script today.
Food option will be added later.