SRL Archive - First Scripts

Simple Bandit Aid


Hunaja

2012-01-21 20:15:20

Started on monday with zero knowledge in scripting. :p But here's what've done so far.
Bandits aid with:
-Pray potting (if less than 500 points)
-Renewals (timed)
-Combat pots (timed)
-Hometabbing when out
-Light antibans

Always wear Ring of life, just in case ;)

For some reason won't detect any 1-dose pots or 2-dose combat pots, no idea why.. Bitmaps should be fine and increasing tolerance didn't help.

fixed


program BPotter;
{$DEFINE SRL5}
{$i srl/srl/misc/Smart.simba}
{$i srl/srl.simba}

var
T1, T2, T3, T4: Integer; // Timing for renewals/shutdown
HouseTab, Renewal4, Renewal3, Renewal2, Renewal1: Integer;
Pray1, Pray2, Pray3, Pray4: Integer;
Combat1, Combat2, Combat3, Combat4: Integer;
xpp, ypp: Integer;
xrw, yrw: Integer;
xcp, ycp: Integer;

const
TimeToRun=(5);
Skill=('strength');

procedure DeclarePlayers;
begin

HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name := '';
Players[0].Pass :='';
Players[0].Nick := '';
Players[0].Active := True;

end;



procedure LoadDTMs;
begin

HouseTab := DTMFromString('mlwAAAHicY2dgYDjIxMBwAohPM0HY24F4GxAfAuI9jAwMW4D4MBAfg9K7gHgjEK9ctJAhOMCfISIkhCE0KIghJiICTPt4ejLwA83FhRnxYCgAAHtBErI=');

Renewal4 := DTMFromString('mlwAAAHicY2dgYNjPBMFHgPgoEO8C4t1AfACIZzMyMExghNALgHghEM8C4iVAXCghwBAXn8TgwcfFECDADeaXSggy5IjxM/ADzcWFGfFgKAAABBsOWQ==');

Renewal3 := DTMFromString('mbQAAAHicY2VgYMhhguBCKJ0CxPMZGRimA/ECIF4KxAuBOFOMnyEsLIohSJCHIRvIzhPnZ+AH6kfHjFgwGAAAgXgIwQ==');

Renewal2 := DTMFromString('mggAAAHicY2NgYJjKBMEzgHgOEE8B4n4gXsAIFAfiWUC8EIiXAvEiIM4Q5WNITc1k8PMLYnDj42LIEeNnyAZifqBZ2DAjDgwBACRyC9w=');

Renewal1 := DTMFromString('mbQAAAHicY2VgYHBkgmAPKG0DxAsYGRimAvFCIF4KpSdkZjFkZuUxFPt4MxSICzBMzS9g4AfqR8eMWDAYAADBrQqB');

Pray4 := DTMFromString('mggAAAHicY2NgYJjGBMGzgHguEE8H4glAbMTIwKABxAZAbAbEFlDaakcXg93RyQyazUkMGnVxYL79yWkM/ECzsGFGHBgCAEfHDW8=');

Pray3 := DTMFromString('mggAAAHicY2NgYMhhguACIC6GstOA+BAjA8NOID4AxMeA+AQQHwViq13dDPHxyQyGc0oZNJuTGKz39jLYHZnMwA80CxtmxIEhAAD8Nw+e');

Pray2 := DTMFromString('mbQAAAHicY2VgYJjGBMGzgXgqEPcD8WFGBoZdQHwUiI8D8TEgttjUyhATk8Cg3ZPJYL27h8HmwAQGfqB+dMyIBYMBAMc1DdQ=');

Pray1 := DTMFromString('mggAAAHicY2NgYHBigmBPIHYDYgcgtgXiGkYGhiJGCN0IxXVAXLhqBkNUdDxDQEcpg3ZPJoP13l6Gyo0LGPiBZmHDjDgwBAAAEnMNdg==');

Combat4 := DTMFromString('mggAAAHicY2NgYDjIxMBwHIj3A/EhIN4NxZWMDAx1QFwExA1AXA/EFUCcvyCaIbDUiaFhVyaYXb0phaFuWzoDP9AsbJgRB4YAAG5QEIM=');

Combat3 := DTMFromString('mlwAAAHicY2dgYHBigmB3IPYAYmcgtgViGyCuZGRgKGCE0HVA3AjE9VB+4ZIYhpycQobwOneGiHoPML9iXRJD+epEBn6gubgwIx4MBQBbyA8m');

Combat2 := DTMFromString('mlwAAAHicY2dgYMhmYmDIAeJ8IC6CslOBOAOIaxkZGAqBuBKI64C4gREiBuIXLYtlyMrOZ2iYUs0QXO7CULgkhqF8dSLD4r3zGPiB5uLCjHgwFAAAM2wRIQ==');

Combat1 := DTMFromString('mrAAAAHic42BgYHBigmA3IPaE0o5AbA3EtkBcw8jAUADEFUBcC8SNUFwHFZu3bSZDXl4xg7e3H0PtlDKGmFYfhop1SQzL9y1iKC6uYOAH2oEPMxLAMAAAV+oSTQ==');

end;

procedure FreeDTMs2;
begin
FreeDTM(HouseTab);
FreeDTM(Renewal4);
FreeDTM(Renewal3);
FreeDTM(Renewal2);
FreeDTM(Renewal1);
FreeDTM(Pray4);
FreeDTM(Pray3);
FreeDTM(Pray2);
FreeDTM(Pray1);
FreeDTM(Combat4);
FreeDTM(Combat3);
FreeDTM(Combat2);
FreeDTM(Combat1);
end;

procedure Home;
var
x, y: Integer;
begin
if LoggedIn then
begin
Writeln('Teleporting home')
if not(GetCurrentTab= 25) then
begin
GameTab(25);
Wait(500+(Random(500)));
end;

if(FindDTM(HouseTab, x, y, MIX1, MIY1, MIX2, MIY2))then
begin Mouse(x, y, 3, 3, 1);
Writeln('Terminating script');
end
else begin
Writeln('NO HOUSE TAB, mayday mayday!!!');
end;
Terminatescript;
end;
end;

Function FindRenewal: Boolean;
var
RenewalDTM : Array [0..3] of Integer;
i2 :Integer;
begin
RenewalDTM[0]:=Renewal1;
RenewalDTM[1]:=Renewal2;
RenewalDTM[2]:=Renewal3;
RenewalDTM[3]:=Renewal4;

For i2:=0 to 3 do
begin
if FindDTM(RenewalDTM[i2], xrw, yrw, MIX1, MIY1, MIX2, MIY2)then;
result:= true;
end;
end;
procedure DrinkRenewal;

begin
If FindNormalRandoms Then
If Not LoggedIn Then
Exit;

if LoggedIn then

if (TimeFromMark(T1) > 5*60*1000) then // fiksaa
begin
Writeln('Renewal');

if not(GetCurrentTab= 25) then
begin
GameTab(25);
Wait(500+(Random(500)));
end;

if FindRenewal then
begin
Mouse(xrw, yrw, 5, 5, 1);
Writeln('found renewal');
MarkTime(T1);
Exit;
end;
Writeln('no renewal found');

end;
end;

Function FindCombatPot: Boolean;
var
CombatDTM : Array [0..3] of Integer;
i3 :Integer;
begin
CombatDTM[0]:=Combat1;
CombatDTM[1]:=Combat2;
CombatDTM[2]:=Combat3;
CombatDTM[3]:=Combat4;

For i3:=0 to 3 do
begin
if FindDTM(CombatDTM[i3], xcp, ycp, MIX1, MIY1, MIX2, MIY2)then;
result:= true;
end;
end;

procedure DrinkCombatPot;

begin

if (TimeFromMark(T4) > 6*60*1000) then
begin
Writeln('combat pot');
if not(GetCurrentTab= 25) then
begin
GameTab(25);
Wait(500+(Random(500)));
end;

if FindCombatPot then
begin
Mouse(xcp, ycp, 5, 5, 1);
Writeln('found combat pot');
MarkTime(T4);
Exit;
end;
Writeln('no combat pot found');

end;
end;


Function PrayerLeft: Integer;
var
PrayPoints: String;

begin
Result:= GetMMLevels('pray', PrayPoints);
end;

Function FindPrayPot: Boolean;
var
PrayDTM: Array [0..3] of Integer;
i1: Integer;

begin
PrayDTM[0]:=Pray1;
PrayDTM[1]:=Pray2;
PrayDTM[2]:=Pray3;
PrayDTM[3]:=Pray4;

For i1:= 0 to 3 do
begin
if FindDTM(PrayDTM[i1], xpp, ypp, MIX1, MIY1, MIX2, MIY2) then;
result:= true;
end;

end;


procedure PotPray;


begin


Writeln(IntToStr(PrayerLeft));

if ((PrayerLeft) <500) then
begin
if not(GetCurrentTab= 25) then
begin
GameTab(25);
Wait(500+(Random(500)));
end;

begin
if FindPrayPot then
begin
Mouse(xpp, ypp, 5, 5, 1);
Writeln('found praypot');
Exit;
end;
Writeln('no praypot found');
Home;
end;
end;
end;

procedure DoRandomMovement;
begin
if (TimeFromMark(T2) > 60*1000) then
begin
RandomMovement;
MarkTime(T2)
end;
end;



procedure AntiBan;
begin
if(RBoolEx(10))then HoverSkill(Skill, False);

end;

begin
Smart_Server := 5;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL();
DeclarePlayers;
LoginPlayer;
MouseSpeed:=26;
LoadDTMs;
AddOnTerminate('FreeDTMs2');
if not(GetCurrentTab = 25) then begin GameTab(tab_inv); end;
MarkTime(T1);
MarkTime(T2);
MarkTime(T3);
MarkTime(T4);

Repeat
FindNormalRandoms;
PotPray;
Wait(500+(Random(500)));
DrinkRenewal;
Wait(500+(Random(500)));
DrinkCombatPot;
Wait(500+(Random(500)));
DoRandomMovement
Wait(500+(Random(500)));
AntiBan;
Until(TimeFromMark(T3)> TimeToRun*60*60*1000);
Writeln('Time To Run reached');
Home;
end.

lilpjer

2012-01-21 21:14:26

How about making it un-note food?

lzDylanzl

2012-01-21 21:30:19

change the pray for 250 and ill use it on my pure :)

uz3

2012-01-21 22:47:57

From: lzDylanzl
change the pray for 250 and ill use it on my pure :)


Just change this line
   if ((PrayerLeft) <500) then

with 250 instead of 500. Simple.

joeydm

2012-01-22 13:04:34

Is this using smart? because nothing happens when I hit play.

Heavenzeyez1

2012-01-22 13:06:04

From: joeydm
Is this using smart? because nothing happens when I hit play.

{$i srl/srl/misc/Smart.simba}
Yes, it is. BTW, SMART takes time to load up. ;)
~Eerik.

Sin

2012-01-22 13:17:28


procedure Loading;
begin

Writeln('Loading.');

end;

You don't need that.

Function Randoms: Boolean;
begin
FindNonInventoryRandoms;
If not LoggedIn then
TerminateScript;
end;
Nor that, "FindNormalRandoms" or "FindFastRandoms" works just fine.


procedure LoadBitmaps;
begin
HouseTab := BitmapFromString(15, 18, 'meJwLDAwNDg6Ho4vKcsgIKBIYGO' +
'rvH+TrG+Dl5YemJjQ0EhmhacGlDFMLpjI0Z6BJYVWDieCKCapEtgI' +
'usmzZWkyErBi/SjT1cMWmpua4EFbFyKbBuXDFyIigYvzOwFRMdtAR' +
'o5j4GCQpbZCU6rBy0ZTBuQDS/Cyq');


Renewal4 := BitmapFromString(4, 8, 'meJzLzZmVnT0zKak7JKSaX6wIiPhE' +
'M3mFE/jFCmDsODC7gE80nUcohk8sH8QWSeURigaygYhXJBnKFs1FY' +
'mfzCicB2QBn5BR6');

Renewal3 := BitmapFromString(6, 7, 'meJxLSelKSmxPSGiOi20ID6/w88vn' +
'E03nE0nlFU7iFU7gFY7jFgjEEAmGiogkw0RC+EQzcYskgUQEw0Aio' +
'unIIgAsIBlj');

Renewal2 := BitmapFromString(5, 9, 'meJzLymzJzmxMTaqMiy2MjsjKzuzO' +
'zupJSWpKjK+JiS7LzpqQkzUhNaUzKbEtPrYhO3tGTs709PRJKcm98' +
'fFtfKLZfKKZfKLpvCLJvMIJYC5YRCQVg5vEJ5oLRhhcsHYArqQnlQ==');

Renewal1 := BitmapFromString(4, 5, 'meJzLz5uSmdGfmtKdnNSRlwtip6V2' +
'Jyd3QtjpaT1g9uSsTBA7JbkLxu4FsgFAqxtT');


Pray4 := BitmapFromString(9, 7, 'meJybftp++mn7yUdsWzdbNK0zq1th' +
'ktWnE1enHlqkPO2kPRBNOoyQyp+il9SkGVmuCpHqP2DTtsWieb153' +
'UrT4lkGqe1aMTVqU0/YA1HfPuv2bRYtG8zrV5uWzzPM6NFOaNSASP' +
'XssYJLVS0xzp6gm9yqNeWYHRABpTq3WbZutGhYY1a7HGRdehdUqne' +
'vddcOS7hLimYaAN0JAF57VuU=');


Pray3 := BitmapFromString(9, 10, 'meJzbeqZ504nGVftqlmyrmLexdOa' +
'qoqnL83vnpjdNjJ102HbyEdv+AzY9e6y6dli2bbFo2WDesMasYJo+' +
'UByrVNFMA4jUhIM2vXutu3datm+zaN1oAZQqnmUw+agdEAGN7dtn3' +
'bPbqnObJUSqZLYhVqmmdWbl86BSyNa1bgZLLTCccswOiICyEOvgUp' +
'WLjHBJVS0xnnrCHoiAskDrIFJA9zevN69dbgIAMryH8Q==');


Pray2 := BitmapFromString(6, 6, 'meJzr3mnZtcOydbNF0zqzuhUmlYuM' +
'unda9uy2atti0bzevG6ladUSYyAXiNq3WbRsMK9fbVqz1LhnjxUQd' +
'W6zbN1o0bDGrHa5Se9eayBCNqpvnzUQAU2DGwUABH4zrA==');

Pray1 := BitmapFromString(5, 5, 'meJxbvrNu+c66hZsr5m4omb22aDmM' +
'O29D6Zx1xct31gIRkDt/Yxmcu2hLJZA7d33Jsh01QATkLthUDuQCA' +
'L08LTA=');

Combat4 := BitmapFromString(8, 8, 'meJxL2liZtLEycW15+JzskGnp/v1J' +
'LpUh1lmeSesrgCh+VWnYrCygeOCkFLe6MPsCX4h43IoSkPoZGUGTU' +
'z2boxyK/RPXlQNR7IriiLk5oTMzg6ek+bTHOpUHQsRjlhXBxf16El' +
'yrQyDi0YsLIufnQqwImJAMtALoEiBCFgdaDbQCKr6kIGphHtxq79Z' +
'oAICGVk8=');

Combat3 := BitmapFromString(9, 9, 'meJyLWVYUs6woenFB1MK88DnZoTMz' +
'Q6alB05K8WiMjF1RDETRS0BSEXNzwmZlAaWCJqd6NkchSeVDpWZkA' +
'KW8WqORpSLn58KlvGFSEOuAUkDrIFI+7bFxK0qACNklECnfzjiIFM' +
'hMJKngKWm+3fEIqSUI9wOl/HoSIFJABHc/VKo3EQACGG9i');

Combat2 := BitmapFromString(5, 4, 'meJyLXloQDUTLCyMX5oXOzgQyIChq' +
'UX7YnKyYFUUQBOSGz8uGc6MXFwC5AGWzHJI=');



Combat1 := BitmapFromString(8, 8, 'meJxNyNsOQzAYAOAnVboSh0a7hNcw' +
'TKnTwr1DLFzwdiR/Vku+qy/kPPx5UmoTYhoG1rSAM4VTzzGJhfEDo' +
'f/3XRee6Chg/ufoQbHW2SKTSVyvUn0659HwbvdekWsjlhK+2bvL/d' +
'8qnYvXkMEDubXw8ShOynJoiQ==');
end;
Try using DTM's. Much more efficient.


if(FindBitmapToleranceIn(HouseTab, x, y, MIX1, MIY1, MIX2, MIY2, 50))then
begin Mouse(x, y, 3, 3, 1);
Writeln('Terminating script');
end
Use DTM's!!! They are 10x better than Bitmaps in these situations ;)


Other than standards, excellent script ^.^

Hunaja

2012-01-22 15:49:28

^Already switched from bitmaps to DTMs since i tought not finding 1-dose pots was a bitmap issue which it actually wasn't, hehe. Going to change some more things tomorrow tho this should be working now :p

Thanks for comment

serexcety

2012-01-22 23:32:04

script works?

Hunaja

2012-01-23 10:20:31

From: serexcety
script works?

Ran it this morning for an inv full of pots without problems, so yes its working I guess.

fearlesskiller

2012-01-23 18:32:14

[Hint] (126:1): Variable 'X' never used at line 125
[Hint] (126:1): Variable 'Y' never used at line 125
[Hint] (234:1): Variable 'X' never used at line 233
[Hint] (234:1): Variable 'Y' never used at line 233
[Error] (303:25): Unknown identifier 'TTR' at line 302
Compiling failed.
.


not working

serexcety

2012-01-23 23:06:25

so the script works for how many trips? because since my prayer is 92, i will last longer, prolly 300k trips. is it smart enough to home tele, grab p pots, use a bandit camp teleport back?

shadowmarkus

2012-01-23 23:26:58

Damn. Nice first script. Now all you gotta do is add the ability to bank, and use Bandit Camp teleport back after restocking. Then we'd get alot of 99's on our hands.

Polar Bearz

2012-01-24 03:10:59

hey i get this error


[Hint] (126:1): Variable 'X' never used at line 125
[Hint] (126:1): Variable 'Y' never used at line 125
[Hint] (234:1): Variable 'X' never used at line 233
[Hint] (234:1): Variable 'Y' never used at line 233
[Error] (303:25): Unknown identifier 'TTR' at line 302
Compiling failed.


and it highlights line 302 of the code.

bambino

2012-01-24 04:14:56

i love you man
going to test it after i come back from university

Justin

2012-01-25 03:26:43

Didn't detect any potions in my invo.

I'll be writing my own script to do the job for me

Hunaja

2012-01-25 07:43:25

From: [J]ustin
Didn't detect any potions in my invo.

I'll be writing my own script to do the job for me


what was debug saying? no pot found or something else?

Justin

2012-01-25 20:07:19

From: Burr4asd
what was debug saying? no pot found or something else?


From memory:


Bryer pot?
Renewalz?
combat pot?
Time To Run reached
Teleporting home
Terminating script

darkmoon500

2012-01-26 06:15:12

Justing thought u already said u made your bandit script that works ? lol

carson1023

2012-01-26 23:50:44

Doesn't detect the combat pots :P.

Hunaja

2012-01-28 09:23:08

From: carson1023
Doesn't detect the combat pots :P.


From: Burr4asd
what was debug saying? no pot found or something else?

+ did you run it longer than 6-7 minutes? since combat pots & renewals are timed

From: [J]ustin
From memory:


Bryer pot?
Renewalz?
combat pot?
Time To Run reached
Teleporting home
Terminating script

I think thats not an error, you just have not set time to run.

Heya69

2012-01-28 09:41:21

Your time to run doesn't work. Remove it and it works perfectly

Hunaja

2012-01-28 09:54:10

From: Heya69
Your time to run doesn't work. Remove it and it works perfectly


Did you try setting a numer greater than 0? Its just time (in hours) after the script will shut down, I use it to avoid 6hr logout since getting forcelogged without relogging after is quite bot-like IMO.

But good to hear it works otherways :p

kyllakylla

2012-01-30 10:16:48

Omg thanks man!! sounds so goood

hader dem2

2012-02-04 16:23:20

it work fine with the timer but it cold be nice to nw how many of ea pots u should take with u

Bwuk

2012-02-04 16:49:23

From: hader dem2
worst bot ever it doesn't work maybe u need to look at it again and stop use our money on prayer

#Umadbro? it works for me, are you sure you got the newest version of SRL & Simba?

hader dem2

2012-02-04 18:30:05

From: Bwuk
#Umadbro? it works for me, are you sure you got the newest version of SRL & Simba?


i forgot the timer only thing and ofter it was sit up it worked great lol but like that you eeed to tell us so we all now it

Hunaja

2012-02-05 07:12:10

From: hader dem2
worst bot ever it doesn't work maybe u need to look at it again and stop use our money on prayer


Thanks for the info man, this really helped :smile:

Flight

2012-02-05 07:20:01

You say you're having trouble detecting potions with few doses? If I might make a suggestion.

Search through each inventory box for the color of the potion (not the vial, the potion), get a TPA of that color inside each individual inventory box and count the length of that TPA; based on that number you can determine how many doses are in that inventory slot. Get what I'm saying? Just a thought.

hader dem2

2012-02-05 08:10:55

From: Burr4asd
Thanks for the info man, this really helped :smile:


when you first set the timer it work great i have got like 300k xp so fair with it and do it on a pure so it work

hader dem2

2012-02-05 08:12:40

From: Flight
You say you're having trouble detecting potions with few doses? If I might make a suggestion.

Search through each inventory box for the color of the potion (not the vial, the potion), get a TPA of that color inside each individual inventory box and count the length of that TPA; based on that number you can determine how many doses are in that inventory slot. Get what I'm saying? Just a thought.


what i mean its that so you get complet like maybe like 8 prayer pots and 6 reval and 4 combat and some house then you know it how to make a good inv

plekter

2012-02-05 11:06:38

How does the script handle randoms? Mine turned my protect from melee off afaik. Will the script turn it back on?

Hunaja

2012-02-06 08:41:26

From: plekter
How does the script handle randoms? Mine turned my protect from melee off afaik. Will the script turn it back on?


When you get out of the random event you'll have the same prayers turned on which you had on when the random occured. afaik

darkmoon500

2012-02-06 12:53:44

What lines should i add if i want to eat sharks and Home; if inv is empty.
Im 94def and no pray so i would need a simple eating script there, but the ones i tried from other scripts didn't work on urs.

plekter

2012-02-07 04:04:50

Why not just use FastFighter instead darkmoon?

darkmoon500

2012-02-07 04:58:48

FastFighter will go running around outside the buildings and i get reported too much. This one is actually good, it pots and stays on the same spot so i am not suspicious.
Just need a simple eating script to add at this one.

Hunaja

2012-02-08 06:11:41

program EAT!;
{$DEFINE SRL5}
{$i srl/srl/misc/Smart.simba}
{$i srl/srl.simba}

var
T3, T4: Integer; // Timing for shutdown/combat pots
HouseTab: Integer;
Combat1, Combat2, Combat3, Combat4, Monkfish: Integer;
xcp, ycp: Integer;

const
TimeToRun=(4);
Skill=('strength');

procedure DeclarePlayers;
begin

HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name := '';
Players[0].Pass :='';
Players[0].Nick := '';
Players[0].Active := True;
Players[0].Level[SKILL_HITPOINTS]:= 99 // your hp here @@

end;



procedure LoadDTMs;
begin

HouseTab := DTMFromString('mlwAAAHicY2dgYDjIxMBwAohPM0HY24F4GxAfAuI9jAwMW4D4MBAfg9K7gHgjEK9ctJAhOMCfISIkhCE0KIghJiICTPt4ejLwA83FhRnxYCgAAHtBErI=');

Monkfish := DTMFromString('mbQAAAHicY2VgYDjKxMBwBogPAPF+ID4NxIqMDAzyUKwOxKpAHO7nzGCgrsAQFeDKsKC2msHVxpSBH6gfHTNiwWAAALvcCYc=');

Combat4 := DTMFromString('mggAAAHicY2NgYDjIxMBwHIj3A/EhIN4NxZWMDAx1QFwExA1AXA/EFUCcvyCaIbDUiaFhVyaYXb0phaFuWzoDP9AsbJgRB4YAAG5QEIM=');

Combat3 := DTMFromString('mlwAAAHicY2dgYHBigmB3IPYAYmcgtgViGyCuZGRgKGCE0HVA3AjE9VB+4ZIYhpycQobwOneGiHoPML9iXRJD+epEBn6gubgwIx4MBQBbyA8m');

Combat2 := DTMFromString('mlwAAAHicY2dgYMhmYmDIAeJ8IC6CslOBOAOIaxkZGAqBuBKI64C4gREiBuIXLYtlyMrOZ2iYUs0QXO7CULgkhqF8dSLD4r3zGPiB5uLCjHgwFAAAM2wRIQ==');

Combat1 := DTMFromString('mrAAAAHic42BgYHBigmA3IPaE0o5AbA3EtkBcw8jAUADEFUBcC8SNUFwHFZu3bSZDXl4xg7e3H0PtlDKGmFYfhop1SQzL9y1iKC6uYOAH2oEPMxLAMAAAV+oSTQ==');

end;

procedure FreeDTMs;
begin
FreeDTM(HouseTab);
FreeDTM(Monkfish);
FreeDTM(Combat4);
FreeDTM(Combat3);
FreeDTM(Combat2);
FreeDTM(Combat1);
end;

procedure Home;
var
x, y: Integer;
begin
if LoggedIn then
begin
Writeln('Teleporting home')
if not(GetCurrentTab= 25) then
begin
GameTab(25);
Wait(500+(Random(500)));
end;

if(FindDTM(HouseTab, x, y, MIX1, MIY1, MIX2, MIY2))then
begin Mouse(x, y, 3, 3, 1);
Writeln('Terminating script');
end
else begin
Writeln('NO HOUSE TAB, mayday mayday!!!');
end;
Terminatescript;
end;
end;


Function FindCombatPot: Boolean;
var
CombatDTM : Array [0..3] of Integer;
i3 :Integer;
begin
CombatDTM[0]:=Combat1;
CombatDTM[1]:=Combat2;
CombatDTM[2]:=Combat3;
CombatDTM[3]:=Combat4;

For i3:=0 to 3 do
begin
if FindDTM(CombatDTM[i3], xcp, ycp, MIX1, MIY1, MIX2, MIY2)then;
result:= true;
end;
end;

procedure DrinkCombatPot;

begin
If FindNormalRandoms Then
If Not LoggedIn Then Exit;

Writeln('combat pot?');
if (TimeFromMark(T4) > 6*60*1000) then
begin

if not(GetCurrentTab= 25) then
begin
GameTab(25);
Wait(500+(Random(500)));
end;

if FindCombatPot then
begin
Mouse(xcp, ycp, 5, 5, 1);
Writeln('found combat pot');
MarkTime(T4);
Exit;
end;
Writeln('no combat pot found');

end;
end;


procedure EatIfLow; // [B]Originally Shutleu's !!!!![/B]
var
x, y: Integer;
begin
If FindNormalRandoms Then
If Not LoggedIn Then
Exit;
if (HPPercent < 50) then
begin
if not(getCurrentTab = 25) then
begin gametab(tab_inv);
end;
Wait(200+Random(100));
repeat
if FindDTM(Monkfish, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
Mouse(x, y, 3, 3, 1);
Wait(200+Random(300));
end else
Home;
until(HPPercent>70);
end;

end;



procedure AntiBan;
begin
if(RBoolEx(10))then HoverSkill(Skill, False);

end;

begin
Smart_Server := 5;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL();
DeclarePlayers;
LoginPlayer;
MouseSpeed:=26;
LoadDTMs;
AddOnTerminate('FreeDTMs');
if not(GetCurrentTab = 25) then begin GameTab(tab_inv); end;
MarkTime(T3);
MarkTime(T4);

Repeat
EatIfLow;
Wait(500+(Random(500)));
Wait(500+(Random(500)));
DrinkCombatPot;
Wait(20000+(Random(30000)));
RandomMovement
Wait(500+(Random(500)));
AntiBan;
Until(TimeFromMark(T3)> TimeToRun*60*60*1000);

Home;
end.
This is what you needed Darkmoon? It only has monkfish now but I'm sure you can replace the DTM if you want other food ;)

darkmoon500

2012-02-09 11:09:16

Thanks alot, will try this :)

dosz

2012-02-17 12:42:57

i somehow can't copy and paste the cde into simba.. when i do the script comes up in 1 line. i've tried to find a topic about this, but there are few, and the ways they explain the solution don't work for me :9 maybe some1 knows/ or is there any chance you could upload a .simba file of the script?

thanks in advance

Tonkah

2012-03-25 21:31:51

[Error] (67:11): Duplicate identifier 'FREEDTMS' at line 66
Compiling failed.

Any Help?

Hunaja

2012-04-02 12:44:48

From: Tonkah
[Error] (67:11): Duplicate identifier 'FREEDTMS' at line 66
Compiling failed.

Any Help?


I fixed that one and did some other stuff, too, but I didn't have an account to test if the DTM's are up to date, so it still might not work. But you can always try.