SRL Archive - RS3 Outdated / Broken Scripts

Leetsxc'z Grand Exchange Soft clay Maker


Sir Ducksworthy

2012-02-26 06:20:15

Hey guy's thought Id share the script I just finished
Put your clay in the second last slot on the top row of your bank
Start the script with your inventory full of clay and it will go from their

Here's a proggy
//////////////////Grand Exchange Clay Softener\\\\\\\\\\\\\\\\\\
///////////////////////By Leetsxc\\\\\\\\\\\\\\\\\\\\\\\\
Run Time: 1 Hours, 38 Minutes and 55 Seconds
Total Loads: 80
Soft Clays made: 2240
Total Profit made: 123200
Breaks Taken: 0
//////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
///////////////////////By Leetsxc\\\\\\\\\\\\\\\\\\\\\\\\
Run Time: 2 Hours, 45 Minutes and 3 Seconds
Total Loads: 111
Soft Clays made: 3108
Total Profit made: 170940
Breaks Taken: 0
//////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

V1 PROGGY
///////////////////////By Leetsxc\\\\\\\\\\\\\\\\\\\\\\\\
Run Time: 3 Hours, 1 Minutes and 44 Seconds
Total Loads: 156
Soft Clays made: 4368
Total Profit made: 240240
Breaks Taken: 0
//////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

Instructions,
Edit the const how many to a number that equally divides by 28
Place the clays in your second last spot in the top bank slot
Start the script with a full inventory of clay near the fountain facing north ;)
FEATURES
Accurate Bank npc detection, with auto camera changing if failing
Resting by fountain, if running out of energy after making clay
Turns on run if it goes off after a certain level of regeneration
Anti-Ban, random clicking and random camera changes etc
Artificial Intelligence
Accurate walking and location detection
Fail safing on pretty much everything
Abstract coding


UPDATED to v0.2
Fixed a few bugs
Added amount of loads to do edit it at the bottom of the script
Improved Bank map icon npc Clicking and it uses 2 DTM's now so you shouldn't need to edit anymore
Randomly Selects item slots in inventory when banking and clicking clay for use on foutain so your never selecting the same slot
Randomly Raises Camera at fountain before clicking Fountain now

UPDATED to v0.3
Improved Overall script speed
Takes into account an extra waiting time when out of energy
Randomly doesn't exit the bank with the X button
Improved banking method
Added and corrected some proggy elements
Added a Howmany option into the Const just choose a number that divides by 28 evenly
Improved fountain clicking speed it will now click the fountain sometimes when still running

UPDATED TO v0.4
The script now uses the intelligence procedure to maintain the script 100% now and the script is running much smoother now because of the activated boolean
Fixed the Bug with the bank and summoning button

UPDATED TO v0.5
Few bug fixes with a fail safe altered by the activated boolean
Banking improvements

Updated to v0.6
Added another DTM for the bank which should help when a icon is blocking the originals as a last resort
Fixed up a bug with the fountainfinder

Updated to v0.7
Added a Resting feature, now when it gets to a certain percentage of run energy it rests after making soft clay by the fountain I feel this is more human like as well I wouldn't expect a bot to do this

Added camera rotation for when the finding of the banker npc fails it will go Left and if that fails it will go right, it also auto corrects the compass to north if both of the changes fail to start over and keep the script running smoothly.

Added extra anti-ban

Updated to v1.0
Reworked a lot of the code tweaked the hell out of the speed
New feature 100% working clicking the fountain while running
Banking if quicker now and more reliable Camera Changing on errors is fully functional
//////////////////Grand Exchange Clay Softener\\\\\\\\\\\\\\\\\\
///////////////////////By Leetsxc\\\\\\\\\\\\\\\\\\\\\\\\
Run Time: 6 Minutes and 54 Seconds
Total Loads: 6
Soft Clays made: 168
Total Profit made: 9240
Breaks Taken: 0
//////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
A lot quicker huh?
Its pretty much reached its full speed potential now
Enjoy

Update 1.1
Bank bug fix

Update v1.2
Fixed Weird Dtm's Error people are getting

Future updates to come
Full Grand Exchange buying clay and selling the soft clays Support
North/East/South/West functionality will not matter now which way camera is facing
Improved Anti-Random function it will use a lot of camera changing and compass directions
Support for all 4 banks at the GE and will use each one randomly

Harry

2012-02-26 06:30:41

REAL random clicking - A lot of scripts I have seen use the mmouse function
for example mmouse(x,y,10,10); the 10,10's an offset but the thing is when they use the clickmouse(x,y,true); function it goes in makes the mmouse functiom useless thats why I have put a getmousepos(x,y); function after it to make sure it clicks on the offset
You're confusing yourself here. If you want to move+click, you use Mouse(x,y,randomx,randomy);. People who use MMouse+ClickMouse2 (ClickMouse is detected, ClickMouse2 is not) realize that ClickMouse2 clicks exactly where the mouse was left off, which WOULD include the randomness you used from your MMouse. I highly disagree with people using ClickMouse2, and suggest they use Mouse() instead.

Also SmartClickMouse is detected. It provides no randomness to how long you're clicking holding down, same with ClickMouse. Don't use it. Use ClickMouse2 if you must, or just use Mouse() because it works perfectly for randomness.

Your script logic is nice in some parts, but you should try to condensate those if statements to a case statement. Just skimmed quick, but try to improve that along with your standards, pretty decent first script.

Sir Ducksworthy

2012-02-26 11:34:15

No I mean I use the mmouse function then
getmousepos and then smartclickmouse
so it clicks with the randomness determined by the mmouse function

RyGuy

2012-02-26 11:39:38

From: leetsxc
No I mean I use the mmouse function then
getmousepos and then smartclickmouse
so it clicks with the randomness determined by the mmouse function


He just said in his last post that smartclickmouse provides no randomness to how long the mouse is held down for… Its always the same. Use clickmouse2 instead

Sir Ducksworthy

2012-02-26 17:21:31

O oh I understand now

illester

2012-02-26 17:54:20

Anybody know the profit an hour right now?

keapor

2012-02-26 17:57:02

the bot works really well dude

Sir Ducksworthy

2012-02-27 18:07:29

Thx :)

AusKingdom

2012-02-28 05:45:47

Is this the script that is crashing the prices of soft clay? o_O

Sir Ducksworthy

2012-02-28 22:38:02

Yeh Ive been wondering the same thing ;)
Ive done 30 thousand+ softs with this script over the last couple of days

weequ

2012-02-28 22:41:22

From: leetsxc
Yeh Ive been wondering the same thing ;)
Ive done 30 thousand+ softs with this script over the last couple of days
I think rarebot has a clay softener + miner so that might be the main reason.

Sir Ducksworthy

2012-02-29 13:18:02

Most likely yeh

Sir Ducksworthy

2012-02-29 21:17:41

UPDATED to v0.03
Improved Overall script speed
Takes into account an extra waiting time when out of energy
Randomly doesn't exit the bank with the X button
Improved banking method
Added and corrected some proggy elements
Added a Howmany option into the Const just choose a number that divides by 28 evenly
Improved fountain clicking speed it will now click the fountain sometimes when still running

Future updates to come
Full Grand Exchange buying clay and selling the soft clays Support
North/East/South/West functionality will not matter now which way camera is facing
Improved Anti-Random function it will use a lot of camera changing and compass directions
Support for all 4 banks at the GE and will use each one randomly

brother287

2012-02-29 22:11:22

Why does it bank then take out clay then keep putting 1 back and clicking the empty summoning tab?

Sir Ducksworthy

2012-03-01 00:17:55

From: brother287
Why does it bank then take out clay then keep putting 1 back and clicking the empty summoning tab?

O Its updated now should work

brother287

2012-03-01 15:34:37

What was the problem? I want to learn coding :/ sorry im a noob, and ill check it it works. Ty

brother287

2012-03-01 15:45:40

From: leetsxc
O Its updated now should work


the character just gets stuck at the herb symbol usually, they cant find the bank. but if i adjust the camera angle it works fine. Otherwise it just idles there.

Sir Ducksworthy

2012-03-01 16:11:11

Sometimes you need to log out and in again until it works
otherwise you just need to make a new DMT for the banker towards the front on the minimap so it clicks properly

brother287

2012-03-01 16:39:17

From: leetsxc
sometimes you need to log out and in again until it works
otherwise you just need to make a new dmt for the banker towards the front on the minimap so it clicks properly


dmt?

brother287

2012-03-01 17:09:35

It really struggles to get to the bank

Sir Ducksworthy

2012-03-01 21:01:11

It's the color finding method used to find the banker npc
Sometimes it needs to be changed because certain things sometimes get in the way
like the $ icon getting in the way or the other icon near the $ icon drifting over the DTM

I updated it with a differently designed DTM banker4 it should work when this happens

brother287

2012-03-01 23:05:53

Works great atm

punkd

2012-03-02 19:47:55

Bro seriously, your confused. mmouse(x,y,10,10); moves the mouse to the coordinates you requested, youd have to use ClickMouse2(true/false) to actually click. What is the point of clickmouse2(x,y) if youve already sent your pointer using MMouse.

Sir Ducksworthy

2012-03-03 06:32:12

Their is no point of it unless you use a getmousepos(x,y); before clickmouse as I have done

AusKingdom

2012-03-03 16:17:32

Just letting you guys know that you make like no profit making soft clay anymore. Maybe collecting swamp toads would be a better option.

brother287

2012-03-04 00:13:02

From: AusKingdom
Just letting you guys know that you make like no profit making soft clay anymore. Maybe collecting swamp toads would be a better option.


Swamp toads is p2p? and its kind of a nice and easy profiter

Sir Ducksworthy

2012-03-04 00:52:01

Swamp toads ay? Like how much per hour are we talking
Soft clay is not the best I agree but still profitable around 60-70k per hour is what I make

psyonity

2012-03-07 02:02:45

Hi there, I've got your script yesterday but disliked most of the status messages, the waits before banking, that it sometimes can't find the banker and that it closes the bank window (I don't do that when I'm playing normal) so I edited your script, I've removed or edited most of the waits, added a debug mode, when it can't find the banker it now rotates random left or right and removed the close bank window code. So here you got the full code because there are a little bit too much edits.

//--------------GRAND EXCHANGE CLAY SOFTENER MASTER v0.06------------------\\
program GrandExchangeClaySoftener;
{$DEFINE SMART}
{$i srl/srl.simba}

var
timetime,p,q,w,count,npc,banker,banker2,banker3,banker4,z,a,tries,loc,x, y, fountainicon,bankicon,herbicon,clay, softclay, Claysoftened, BreaksTaken, BreakTimer: Integer;
activated,found,slower,banking: boolean;
aFound: Extended;

const
// Smart_Server := 10;
//Smart_Members := false;
DebugMode = False;
HowMany = 10500; //Type how many clays you would like to soften number has to be equally divided by 28
SMART_HIGHDETAIL = false;
LaggyComputer = False; // true = you're using a laggy computer. (This WILL lower profit/hr) // false = you are using a fast computer.
UseBreaks = False; //Do you want to take breaks?
SwitchWorld = False; //Do you want to switch worlds after the break?
BreakIn = 90; //How many minutes until you take a break?
BreakInRandom = 10; //How many minutes should the "BreakIn" time be varied by?
BreakFor = 7; //How many minutes will you break for?
BreakForRandom = 7; //How many minutes should the "BreakFor" time be varied by?
Members = False; // True = Members World. False = Free World.
Mouse_Speed = 17; // Mouse speed. Higher = Faster. (17 is default)
Version = '0.06';
NumbOfPlayers = 1; //How many players you are using.
StartPlayer = 0; //Player to start with. (0 = first character)
//The rest of your script goes here.

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

// Make sure you set 'Booleans[0]' and 'Booleans[1]' accordingly!

with Players[0] do
begin
Name := ''; //Player username.
Pass := ''; //Player password.
Pin := ''; //Bank Pin. (Leave blank if you do not have a bank pin.)
// Loc := 'vwb'; //Banking Location (See below) (Soul Wars banking is above)

Booleans[0] := false; // True = Pestle and Mortar. False = Knife
Booleans[1] := False; // Bank at Soul Wars? True = Soul Wars. False = Use 'Loc' bank
Active := True;
end;

//To use multiple accounts, remove the {}'s from the below coding.
//Make sure you adjust "NumbOfPlayers", which is found in the constants! (aka - "Const")
{ with Players[1] do
begin
Name := ''; //Player username.
Pass := ''; //Player password.
Pin := ''; //Bank Pin. (Leave blank if you do not have a bank pin.)
Loc := 'vwb'; //Banking Location (See below) (Soul Wars banking is above)

Booleans[0] := True; // True = Pestle and Mortar. False = Knife
Booleans[1] := False; // Bank at Soul Wars? True = Soul Wars. False = Use 'Loc' bank
Active := true;
end; }
{ with Players[2] do
begin
Name := ''; //Player username.
Pass := ''; //Player password.
Pin := ''; //Bank Pin. (Leave blank if you do not have a bank pin.)
Loc := 'vwb'; //Banking Location (See below) (Soul Wars banking is above)

Booleans[0] := True; // True = Pestle and Mortar. False = Knife
Booleans[1] := False; // Bank at Soul Wars? True = Soul Wars. False = Use 'Loc' bank
Active := true;
end; }
end;

procedure AntiRandoms;
begin
FindNormalRandoms;
LampSkill := 'prayer' //This can be changed to any skill!
end;

procedure Debug(S: string);
begin
if DebugMode then
Writeln(S)
else
Debugln(S);
Status(S);
end;

////////////////////////////////////////////////////////////////////////////////
// No Editing is required below this point! //
////////////////////////////////////////////////////////////////////////////////

Procedure Antiban;
Begin
Case Random (175) of
0..18: Begin SleepAndMoveMouse(5000 + Random(750)); End;
19..24: Begin GameTab(tab_Inv) ExamineInv; GameTab(tab_Inv); SleepAndMoveMouse(2500 + Random(553)); End;
25..42: Begin RandomAngle(1); End;
43..48: Begin GameTab(Tab_Stats); Wait(3000 + Random(400)); GameTab(tab_Inv); SleepAndMoveMouse(2550 + Random(658)); End;
49..54: Begin GameTab(tab_Stats) HoverSkill('random', False); GameTab(tab_Inv); SleepAndMoveMouse(2200 + Random(545)); End;
//55..75: Begin MakeCompass(Random(361)); End;
End;
End;

procedure InitDTMs;
begin
banker := DTMFromString('mrAAAAHic42BgYPBnYmBwAOJYIA4EYl8gDgdiLyAOBmJLoBpzILYHYh0gVobyjYFYH4j//5di8I3RZkhL8GB48fsHg0eUHMPv/5xgfO0WJwM/UA0+zEgAwwAADEUSAg==');
banker2 := DTMFromString('mlwAAAHicY2dgYHBgYmAwBGJfILYGYmcg9gDiWCB2AskDsRsQWwGxKRDbArEzEP/+z8kQHKnDkBnrBWYjY36gPC7MiAdDAQByiRAV');
banker3 := DTMFromString('mggAAAHicY2NgYPBmYmBwB2I/IA4CYlsgTgJiZ6CcNRBbALEDENtC8bcnEPzoAgQHx+gy5CR4M/AD5bBhRhwYAgDe2wy/');

banker4 := DTMFromString('mQwAAAHicY2ZgYIhlYmCoBmIHILYG8h2A2BGIH/1nYHj7n4lBNUqQgR/Ih2FGJAwEAAXOBm0=');
npc := DTMFromString('mlwAAAHicY2dgYPgDxT+BmIGRgeEbAwT/B+JAIPYDYn8oG0QHQcWm1IYwWBjLg3FlRTFDTU05GIPY/EB5XJgRD4YCAIrIEKI=');
herbicon := DTMFromString('mlwAAAHicY2dgYHBhY2CwBmInIHYGYk8gtgFidyD+C5T/DcRfgZiZkYHhD5BmANLfgZS4mzyEgwXzM+AG2HVAMBQAAFSeB38=');
fountainicon := DTMFromString('mwQAAAHic42RgYHjIBsE3ofRzIH4GxHeg9F0gjgOqCwPiWCBOYYDwI4E4GYgTgTgciPlsrwNJRryYn4EwwG8CBMMBANAtDLE=');
bankicon := DTMFromString('mwQAAAHic42RgYDjGxsBwFoj3s0HYIHwIiE8B8WkgPgDEngwI7ATEAUDsDMT+QOwCxL5A/O6SCpBkxIv5GQgD/CZAMBwAACO6C8k=');
clay := DTMFromString('mbQAAAHicY2VgYHBgYmBwBWILJgjbF4hfAMXvAvFzIH4DxI+BuKPIF0gyoWB+BkzAiAWDAQAyqAc4');
softclay := DTMFromString('mwQAAAHic42RgYDjABMH7gXgzEJ8F4lNAvB2IT0LpmYwMDH1AvBiI5wDxDCCeAMQLgXgeEE8C4nAHXqBpTHgxPwNhwEgEhgMA3tANEA==');

end;

procedure FreeDTMs1;
begin
FreeDTM(clay);
FreeDTM(softclay);
FreeDTM(banker);
FreeDTM(banker2);
FreeDTM(banker3);
FreeDTM(bankicon);
FreeDTM(fountainicon);
FreeDTM(npc);
end;

procedure Proggy;
begin
Writeln('//////////////////Grand Exchange Clay Softener\\\\\\\\\\\\\\\\\\');
Writeln('///////////////////////By Leetsxc\\\\\\\\\\\\\\\\\\\\\\\\');
Writeln('Run Time: ' + TimeRunning);
Writeln('Total Loads: ' + IntToStr(Claysoftened));
Writeln('Soft Clays made: ' + IntToStr(Claysoftened*28));
WriteLn('Total Profit made: ' + IntToStr(Claysoftened*28*55));
WriteLn('Breaks Taken: ' + IntToStr(BreaksTaken));
Writeln('//////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\');
end;

procedure whichclayy;
var
whichclay: integer;
begin
whichclay:=0;
whichclay:=random(28);
if(whichclay=0)then mmouse(578,229,4,4);
if(whichclay=1)then mmouse(578,229,4,4);
if(whichclay=2)then mmouse(620,229,4,4);
if(whichclay=3)then mmouse(661, 230,4,4);
if(whichclay=4)then mmouse(704, 231,4,4);

if(whichclay=5)then mmouse(578, 267,4,4);
if(whichclay=6)then mmouse(620, 267,4,4);
if(whichclay=7)then mmouse(662, 268,4,4);
if(whichclay=8)then mmouse(704, 267,4,4);

if(whichclay=9)then mmouse(577, 303,4,4);
if(whichclay=10)then mmouse(622, 304,4,4);
if(whichclay=11)then mmouse(664, 303,4,4);
if(whichclay=12)then mmouse(706, 302,4,4);

if(whichclay=13)then mmouse(579, 338,4,4);
if(whichclay=14)then mmouse(621, 338,4,4);
if(whichclay=15)then mmouse(663, 338,4,4);
if(whichclay=16)then mmouse(705, 339,4,4);

if(whichclay=17)then mmouse(577, 375,4,4);
if(whichclay=18)then mmouse(621, 373,4,4);
if(whichclay=19)then mmouse(662, 374,4,4);
if(whichclay=20)then mmouse(705, 375,4,4);

if(whichclay=21)then mmouse(579, 411,4,4);
if(whichclay=22)then mmouse(620, 412,4,4);
if(whichclay=23)then mmouse(662, 412,4,4);
if(whichclay=24)then mmouse(705, 411,4,4);

if(whichclay=25)then mmouse(578, 447,4,4);
if(whichclay=26)then mmouse(621, 446,4,4);
if(whichclay=27)then mmouse(664, 448,4,4);
if(whichclay=28)then mmouse(705, 446,4,4);
end;

procedure WithdrawClay;
begin
if(activated=false)then
begin

activated:=true;
if not LoggedIn then
Exit;
AntiRandoms;
banking:=true;
if(finddtm(clay,x,y,554,208,737,464))then banking:=false;
if(banking=true)then
begin
whichclayy;
getmousepos(x,y);
sleep(200+random(300));
smartclickmouse(x,y,false);
sleep(200+random(300));
chooseoption('Deposit-All');
Wait(300 + Random(200));
mmouse(405,110,8,8);
getmousepos(x,y);
sleep(300+random(300));
smartclickmouse(x,y,false);
sleep(300+random(300));
chooseoption('Withdraw-All');
sleep(200+random(300));
q:=0;
q:=random(6);
//if(not(q=3))then //1 out of 6 times chance to not click x on bank to exit it
//begin
//mmouse(489,34,4,4);
//getmousepos(x,y);
//sleep(200+random(300));
//smartclickmouse(x,y,true);
//end;
banking:=false;
end;

end;
end;


procedure findherbicon;
begin
if(activated=false)then
begin
activated:=true;
count:=0;
tries:=0;
repeat
tries:=tries+1;
if(findDTMRotatedSE(herbicon,x,y,570,22,696,147,-Pi, Pi, Pi/30, aFound))then
begin
tries:=3;
writeln('Found Herb icon!');
mmouse(x,y,15,15);
getmousepos(x,y);
sleep(random(300));
smartclickmouse(x,y,true);
end;
sleep(300);
until(tries=3);
tries:=0;
repeat
tries:=tries+1;
sleep(70+random(100));
if(findDTMRotatedSE(herbicon,x,y,607,65,647,105,-Pi, Pi, Pi/30, aFound))then
begin
tries:=60;
writeln('Arrived at destination!');
end;
until(tries=60);
end;
end;

procedure findbankguy;
begin
if(activated=false)then
begin
activated:=true;
tries:=0;
wait(500);
repeat
tries:=tries+1;
found:=false;
if(findDTMRotatedSE(banker,x,y,535,3,711,167,-Pi, Pi, Pi/30, aFound))then found:=true;
if(found=false)then
begin
if(findDTMRotatedSE(banker2,x,y,535,3,711,167,-Pi, Pi, Pi/30, aFound))then found:=true;
end;
if(found=false)then
begin
if(findDTMRotatedSE(banker3,x,y,535,3,711,167,-Pi, Pi, Pi/30, aFound))then found:=true;
end;
if(found=false)then
begin
if(findDTMRotatedSE(banker4,x,y,535,3,711,167,-Pi, Pi, Pi/30, aFound))then found:=true;
end;
if(found=true)then
begin
tries:=3;
writeln('Found banker!');
mmouse(x,y+2,3,1);
getmousepos(x,y);
sleep(random(400));
smartclickmouse(x,y,true);
sleep(1400);
//sleep(random(1000));
if(slower=true)then sleep(2000);
smartholdkey(40);
end;

until(tries=3);
count:=0;
repeat
tries:=0;
count:=count+1;
z:=0;
repeat
sleep(100);
if(random(2) >= 1)then
begin
smartholdkey(37);
sleep(100);
smartreleasekey(37);
end else
begin
smartholdkey(39);
sleep(100);
smartreleasekey(39);
end;
tries:=tries+1;
if(finddtmrotatedSE(npc,x,y,5,5,514,336,-Pi, Pi, Pi/30, aFound))then
begin
writeln('Found banker in under 1.5 seconds of camera level change');
tries:=15;
z:=1;
end;
until(tries=15);

smartreleasekey(40);
if(z=1)then
begin
mmouse(x,y,4,4);
getmousepos(x,y);
sleep(100+random(300));
smartclickmouse(x,y,false);
sleep(500+random(300));
if(chooseoption('Bank Banker'))then
begin
tries:=0;
repeat
sleep(100);
tries:=tries+1;
if(findcolortolerance(x,y,4106994,194,27,322,41,10))then
begin
count:=5;
activated:=false;
withdrawclay;
tries:=25;
z:=0;
end;
until(tries=25);
end;
sleep(100);
end;
until(count=5);
//if(z=1)then beginfindbankguy;
end;
end;


procedure fountainfinder;
//var
//fountain: integer;
begin
if(activated=false)then
begin
activated:=true;
if(findcolortolerance(x,y,4106994,194,27,322,41,10))then findherbicon;
if(banking=false)then
begin;
//fountain := DTMFromString('mWAAAAHicY2FgYIhmZGDIBOIsIC4C4gNAsb1AvAWIjwNxWc9ChvKepQwVfcsYKvuWM/ADxZAxIxoGAQBqeAuG');
Debug('Fountain finder method activated!');
tries:=0;
//sleep(1000);
q:=0;
q:=random(4);
if(q=2)then
begin
smartholdkey(38);
sleep(500+random(1000));
smartreleasekey(38);
end;
repeat
tries:=tries+1;
if(findcolortolerance(x,y,10981757,149,59,451,318,15))then
begin
tries:=3;
if(not(finddtm(softclay,q,w,555, 203,731, 464)))then whichclayy;
if(finddtm(softclay,q,w,555, 203,731, 464))then
begin
if(finddtm(clay,q,w,555, 203,731, 464))then mmouse(q,w,5,5);
end;
getmousepos(z,a);
sleep(100);
sleep(random(100));
smartclickmouse(z,a,true);
sleep(random(300));
if(findcolortolerance(x,y,10981757,149,59,451,318,15))then
begin
mmouse(x,y,8,8);
getmousepos(x,y);
sleep(random(200));
smartclickmouse(x,y,true);
end;
end;
until(tries=3);
tries:=0;
z:=0;
repeat
tries:=tries+1;
sleep(300);
if(findcolortolerance(x,y,734793,248,411,264,423,15))then
begin
mmouse(261,430,20,25);
getmousepos(x,y);
sleep(100+random(100));
smartclickmouse(x,y,true);
writeln('Sucessfully Clicked clay on fountain.. clicking make soft clay button');
tries:=10;
antiban;
z:=1;
end;
until(tries=10);

if(z=1)then
begin

repeat
tries:=tries+1;
sleep(400);
if(finddtm(softclay,x,y,688,429,725,461))then
begin
tries:=100;
writeln('Completed making the soft clay');
claysoftened:=claysoftened+1;
if(claysoftened*28 >= HowMany)then
begin
writeln('Finished making all of your clays!');
terminatescript;
end;
proggy;
banking:=true;
end;
until(tries=100);
findherbicon;
findbankguy;
end;
end;
if(not(count=3))then
begin
if(not(z=1))then
begin
sleep(2000);
count:=count+1;
activated:=false;
fountainfinder;
end;
end;
if(count=3)then
begin
activated:=false;
findherbicon;
activated:=true;
count:=0;
end;
end;
end;

procedure intelligence;
{var
region1x,region1y,region2x,region2y,region3x,region3y,region4x,region4y,region1x2,region1y2,region2x2,region2y2,region3x2,region3y2,region4x2,region4y2:integer; }
begin
//Their are 4 regions so far that are layers of distance around minimap player icon, these will be used to find dtms in to find out locations
activated:=false;
if not LoggedIn then
Exit;
AntiRandoms;
if(not(findcolortolerance(x,y,6740459,724,110,743,110,15)))then
begin
writeln('Running energy has run out..');
slower:=true;
if(not(findcolortolerance(x,y,255,740,105,759,120,15)))then
begin
slower:=false;
writeln('Running energy has reached a adequate level of regeneration re-activating!');
mmouse(723,108,5,5);
sleep(100+random(200));
getmousepos(x,y);
smartclickmouse(x,y,true);
end;
end;

if(finddtm(softclay,x,y,687,433,726,461))then
begin
Debug('Found soft clay in last icon so now banking is true');
banking:=true;
end;

if(not(finddtm(softclay,x,y,687,433,726,461)))then
begin
banking:=false;
end;

//findherbicon;

if(findDTMRotatedSE(herbicon,x,y,607,65,647,105,-Pi, Pi, Pi/30, aFound))then
begin
if(banking=true)then
begin
Debug('You are close to herb icon and need to go to the bank');
findbankguy;
intelligence;
end;
if(banking=false)then
begin
Debug('You are close to herb icon and need to go to the fountain');
tries:=0;
repeat
tries:=tries+1;
sleep(200);
if(finddtm(fountainicon,x,y,561,85,703,156))then
begin
writeln('Clicking fountain icon out of radius bounds');
tries:=3;
mmouse(x,y,5,5);
getmousepos(x,y);
sleep(200+random(100));
smartclickmouse(x,y,true)
if(slower=true)then sleep(6000);
end;
until(tries=3);
tries:=0;
repeat
sleep(50);
tries:=tries+1;
if(findcolortolerance(x,y,10981757,159,69,441,308,15))then tries:=200;
until(tries=200);
sleep(1500)
if(slower=true)then sleep(1000);
fountainfinder;
intelligence;
end;
end;
Debug('Determining location with Minimap DTM distance to player map icon recognition');
{ //Regions to compare distance to 1753, 88 that is the white square dot that represents player
region1x:=679; //10CORDS around player
region1y:=78;
region1x2:=699;
region1y2:=98;
region2x:=669; //20 Cords could this work better if it was split into 5 smaller sections around the 10 cord area 2.5C ea
region2y:=68;
region2x2:=709;
region2y2:=108;
region3x:=659; //30 cords
region3y:=58;
region3x2:=719;
region3y2:=118;
region4x:=649; //40 cord radius
region4y:=48;
region4x2:=729;
region4y2:=128; }
loc:=0;
if(findDTMRotatedSE(bankicon,x,y,617,75,637,95,-Pi, Pi, Pi/30, aFound))then loc:=1;
if(not(loc=1))then
begin
if(findDTMRotatedSE(bankicon,x,y,607,65,647,105,-Pi, Pi, Pi/30, aFound))then loc:=2;
end;
if(not(loc=2))then
begin
if(findDTMRotatedSE(bankicon,x,y,597,55,657,115,-Pi, Pi, Pi/30, aFound))then loc:=3;
end;
if(not(loc=3))then
begin
if(findDTMRotatedSE(bankicon,x,y,587,45,667,125,-Pi, Pi, Pi/30, aFound))then loc:=4;
end;
if(not(loc=0))then
begin
Debug('Found the bank icon in mini map player icon radius zone ' + IntToStr(loc));
Debug('Radius zone 1 is 10 coords around your white square, 2 is 20, 3 is 30 and 4 is 40');
if(banking=true)then
begin
Debug('You are close to a bank and need to bank your softclays activating findbank method!');
findbankguy;
end;
if(banking=false)then findherbicon;
end;
if(loc=0)then
begin
writeln('Bank icon was not found in any of the radius zones so we will now search for the fountain icon as you are most likely at the fountain due to an error after making soft clay');
if(findDTMRotatedSE(fountainicon,x,y,613,72,640,98,-Pi, Pi, Pi/30, aFound))then loc:=1;
if(not(loc=1))then
begin
if(findDTMRotatedSE(fountainicon,x,y,607,65,647,105,-Pi, Pi, Pi/30, aFound))then loc:=2;
end;
if(not(loc=2))then
begin
if(findDTMRotatedSE(fountainicon,x,y,597,55,657,115,-Pi, Pi, Pi/30, aFound))then loc:=3;
end;
if(not(loc=3))then
begin
if(findDTMRotatedSE(fountainicon,x,y,587,45,667,125,-Pi, Pi, Pi/30, aFound))then loc:=4;
end;
if(loc=0)then findherbicon;
if(not(loc=0))then
begin
Debug('Fountain icon found in radius zone' + inttostr(loc));
Debug('You were closest to the fountain artifical intelligence was correct');
if(banking=true)then
begin
Debug('You are near the fountain and need to bank');
Debug('activating findherbicon procedure! to walk close to bank icon!');
findherbicon;
end;
Debug('Lets just do a check to see if you have any remainding clay left..');

if(finddtm(clay,z,a,555, 203,731, 464))then
begin
Debug('O shit we havnt finished making soft clay yet and most likely had an error, lets call the fountain fider method..');
activated:=false;
fountainfinder;
end;
end;
end;
end;

procedure TakeBreaks;
begin
if not LoggedIn then
Exit;
begin
if (GetSystemTime > BreakTimer) then
begin
WriteLn('Taking a break.');
Logout;
Wait(BreakFor * 60000 + Random(BreakForRandom * 60000));
WriteLn('Logging back in.');
Case (SwitchWorld) of
True: if LoginPlayerToLob then
ChangeWorld(RandomWorld(True, False));
False: LoginPlayer;
end;
Wait(2000);
BreaksTaken:=BreaksTaken+1;
BreakTimer := GetSystemTime + (BreakIn * 60000 + Random(BreakInRandom * 60000));
end;
end;
end;


begin
timetime:=150000;
p:=0;
claysoftened:=0;
Smart_Server := 106;
Smart_Members := Members;
SetupSRL;
DeclarePlayers;
MouseSpeed := Mouse_Speed;
LoginPlayer;
Wait(2000);
GameTab(tab_Inv);
BreakTimer := GetSystemTime + (BreakIn * 60000 + Random(BreakInRandom * 60000));
InitDTMs
repeat
repeat
intelligence;
Proggy;
if (UseBreaks) then
TakeBreaks;
until (not Loggedin);
NextPlayer(Players[CurrentPlayer].Active);
Wait(2000);
until (false);
FreeDTMs1;
end.

Sir Ducksworthy

2012-03-07 04:27:25

Cheers, Nice effort with the camera rotation but it isn't reliable enough for me needs to be failsafed and compass corrected also it doesn't do it if the dtm detection fails it just does it every time randomly between left or right so eventually it will go left left left or left right right right and end up out of wack and not in any state to detect the bank manager at all
Although here is a Rep++ for your efforts

I'll update the script with camera rotation in a bit and tidy up things a bit the camera rotation was ment to be implemented as I noticed the same thing not to long ago with the banker but didn't get around to it

psyonity

2012-03-07 04:48:59

From: leetsxc
Cheers, Nice effort with the camera rotation but it isn't reliable enough for me needs to be failsafed and compass corrected also it doesn't do it if the dtm detection fails it just does it every time randomly between left or right so eventually it will go left left left or left right right right and end up out of wack and not in any state to detect the bank manager at all
Although here is a Rep++ for your efforts

I'll update the script with camera rotation in a bit and tidy up things a bit the camera rotation was ment to be implemented as I noticed the same thing not to long ago with the banker but didn't get around to it


Glad I could help, I'm just starting with this programming language so I didn't know a better way, so I just did this. It's a great script btw…

Sir Ducksworthy

2012-03-07 04:59:08

Thx :)
yeh I know how that is starting out, in Rs scripting coding's only one part of it the other is script logic/strategy knowing the possible outcomes of the changes you make or add in your coding

Sir Ducksworthy

2012-03-07 07:03:53

Updated it

Joe

2012-03-07 19:05:34

Care to send me this script?

Sir Ducksworthy

2012-03-08 06:40:40

Im a spaz i forgot to add the .scar to the attachments after I updated it yesterday sorry ull find it their now lol

Sir Ducksworthy

2012-03-08 16:55:00

Updated to v1.0
Reworked a lot of the code tweaked the hell out of the speed
New feature 100% working clicking the fountain while running
Banking if quicker now and more reliable Camera Changing on errors is fully functional
//////////////////Grand Exchange Clay Softener\\\\\\\\\\\\\\\\\\
///////////////////////By Leetsxc\\\\\\\\\\\\\\\\\\\\\\\\
Run Time: 6 Minutes and 54 Seconds
Total Loads: 6
Soft Clays made: 168
Total Profit made: 9240
Breaks Taken: 0
//////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
A lot quicker huh?
Its pretty much reached its full speed potential now
Enjoy

MrVirtuous

2012-03-09 12:28:17

I keep getting this error

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

EDIT: Fixed the above error…

overall this seems like a good script…but I had a little trouble setting it up..it seems if it isn't near the north-west corner of ge with a certain camera angle it didn't work…it would get stuck…

But once it was properly set up..it worked well and made me a couple hundred k on a new f2p account i have…thanks for it!

also, a lot of times when I was babysitting it….it would withdraw and deposit the clay about 4 times?

brother287

2012-03-09 14:56:29

I get the FREEDTMS at line 105 error still

Sir Ducksworthy

2012-03-10 08:02:44

Try it now
Failsafed the withdraw wait time should be better now

pigggy

2012-03-11 17:51:09

From: MrVirtuous
I keep getting this error

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

EDIT: Fixed the above error…

overall this seems like a good script…but I had a little trouble setting it up..it seems if it isn't near the north-west corner of ge with a certain camera angle it didn't work…it would get stuck…

But once it was properly set up..it worked well and made me a couple hundred k on a new f2p account i have…thanks for it!

also, a lot of times when I was babysitting it….it would withdraw and deposit the clay about 4 times?

how did u fix it???

edit- never mind i got it, u have to make it from dtms to dtmss

FarmerKyle

2012-04-23 20:11:37

Just to let you know, it cannot access a bank with a PIN.

blother

2012-04-23 20:14:28

From: FarmerKyle
Just to let you know, it cannot access a bank with a PIN.


For some reason a lot of scripts do not include that ability. I suggest you try to add it as it is pretty simple to do.

Pcheckan

2012-04-27 15:13:08

this thing cant work for shit.

Joe

2012-04-27 16:47:28

//////////////////Grand Exchange Clay Softener\\\\\\\\\\\\\\\\\\
///////////////////////By Leetsxc\\\\\\\\\\\\\\\\\\\\\\\\
Run Time: 30 Minutes and 31 Seconds
Total Loads: 31
Soft Clays made: 840
Total Profit made: 46200
Breaks Taken: 0
//////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

stricken157

2012-05-09 20:12:21

no this thing does work im using 2 right now and its working good