BuckWild
2011-12-08 16:06:16
So this is my first script. Makes about 100k gp/hour. Any and all comments are welcome.
START WITH GP IN MONEY POUCH
Bugs: All of these I've tried to work around and have had little to no luck so any help on these would be awesome!
1. Sometimes doesn't finish path and thinks it's at Ignatius or the bank.
2. If Ignatius is off the map it will wait until he is instead of find him with an easier way. Not a huge deal as he moves quite frequently.
3. I get a out of bounds error, again not a huge deal but the debug spam is somewhat annoying.
4. Bank pin handling, I can figure this out just haven't had a chance to.
5. Post em :)
Features:
SPS walking to and from the bank.
Decent anti-ban
Should check energy, if it's below 35 it should rest until 100%
Decent Fail safes
SRL stats
Decent Proggy
Setup:
1. Username/pass
2. SRL username/pass
3. Start somewhere between camelot bank and the firemaking cape seller.
Current Version: Beta
START WITH GP IN MONEY POUCH
Bugs: All of these I've tried to work around and have had little to no luck so any help on these would be awesome!
1. Sometimes doesn't finish path and thinks it's at Ignatius or the bank.
2. If Ignatius is off the map it will wait until he is instead of find him with an easier way. Not a huge deal as he moves quite frequently.
3. I get a out of bounds error, again not a huge deal but the debug spam is somewhat annoying.
4. Bank pin handling, I can figure this out just haven't had a chance to.
5. Post em :)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TinderBuyerbyBuckWildVBeta
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Boxes Bought:1372
Estimated Profit:150920
Time Running:1 Hours, 31 Minutes and 58 Seconds
Loads Done:49
Features:
SPS walking to and from the bank.
Decent anti-ban
Should check energy, if it's below 35 it should rest until 100%
Decent Fail safes
SRL stats
Decent Proggy
Setup:
1. Username/pass
2. SRL username/pass
3. Start somewhere between camelot bank and the firemaking cape seller.
Current Version: Beta
program BuckWildTinderBuyer;
{$DEFINE SMART}
{$i srl/srl.scar}
{$i sps/sps.simba}
{$i srl/srl/misc\stats.simba}
const
{---SMART Setup Constants---}
WORLD = 45;// Set a world, if you'd like.
MEMBERS = False;// Change accordingly.
SIGNED = True; // True if running a single account, false otherwise.
{---------------------------}
{--------Script Info--------}
Author = 'BuckWild';
Name = 'TinderBuyer';
Version = 'Beta';
{---------------------------}
SRLStats_User = ' '; // Your SRL Stats ID (If you dont have one then just leave it as it is)
SRLStats_Password = ' '; // Your SRL Stats Password (If you dont have one then just leave it as it is)
{---------------------------}
Var
Loads, Profit, Boxes: Integer;
GoBank, GoIg: TPointArray;
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
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 this player
Players[0].Pin := '0000'; // Leave blank if the player doesn't have a bank pin
end;
procedure AntiBan;
begin
if FindNormalRandoms Then
if Not LoggedIn Then
Exit;
case Random(6) of
0: BoredHuman;
1: BoredHuman;
2: ExamineInv;
3: RandomMovement;
4: RandomAngle(True);
5: RandomMovement;
end;
end;
procedure ProgressReport;
begin
Cleardebug;
WriteLn('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');
WriteLn(Name + 'by' + Author + 'V' + Version);
WriteLn('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');
WriteLn('Boxes Bought:' + IntToStr(Boxes));
WriteLn('Estimated Profit:' + IntToStr(Profit));
WriteLn('Time Running:' + TimeRunning);
WriteLn('Loads Done:' + IntToStr(Loads));
SRLRandomsReport;
Stats_Commit;
end;
procedure WalkToIgnatius;
var x, y: integer;
begin
if FindNormalRandoms Then
if Not LoggedIn Then
Exit;
WriteLn('Walking To Ignatius!');
GoIg := [Point(2735, 2675), Point(2735, 2710), Point(2740, 2770),
Point(2745, 2815), Point(2720, 2865), Point(2715, 2915)]
if (SPS_WalkPath(GoIg)) then
WriteLn('At Ignatius');
if FindColorTolerance(x, y, 846335, MMCX, MMCY, MMx2, MMy2, 10) then
Mouse(x, y, 1, 1, true);
wait(randomrange(250, 500));
end;
procedure WalkToBank;
var x, y: integer;
begin
if FindNormalRandoms Then
if Not LoggedIn Then
Exit;
WriteLn('Walking To Bank!');
GoBank := [Point(2715, 2915), Point(2720, 2865), Point(2745, 2815),
Point(2740, 2770), Point(2735, 2710), Point(2735, 2675)]
if (SPS_WalkPath(GoBank)) then
WriteLn('At Bank');
end;
procedure FindIg;
var x, y, a, b: Integer;
begin
if FindNormalRandoms Then
if Not LoggedIn Then
Exit;
repeat
repeat
Wait(RandomRange(750, 1000));
if FindObjEx(x, y, ['gnat', 'tius'], [4416410, 11185842, 2331133], 20, 50, MSX1, MSY1, MSX2, MSY2) then
Mouse(x, y, 1, 1, false);
until(ChooseOption('de '));
until(FindColoredAreaTolerance(a, b, 3226693, MSX1, MSY1, MSX2, MSY2, 81, 20));
Wait(RandomRange(500, 750));
end;
procedure BuyBoxes;
var Box, a, b, x, y: Integer;
begin
Box := DTMFromString('mlwAAAHicY2dgYOABYnYgFmKAABYg5gdiKSDmA2JmqDgvEEsAsSRU3FQPpIsJK5ZkwA0Y8WAoAACE0wFN');
if FindNormalRandoms Then
if Not LoggedIn Then
Exit;
repeat
repeat
if FindObjEx(x, y, ['inde', 'rbox'], [5856093, 470325], 15, 50, 31, 56, 61, 96) then
Mouse(x, y, 1, 1, false);
until(ChooseOption('50'));
Wait(RandomRange(750, 1250));
until(FindDTM(Box, a, b, MIX1, MIY1, MIX2, MIY2));
Mouse(488, 21, 2, 2, true);
Writeln('Bought The Boxes!');
Boxes := Boxes + 28;
Profit := Boxes * 110;
Loads := Loads + 1;
stats_IncVariable('Loads Done', 1);
FreeDTM(Box);
end;
Procedure BankEm;
begin
if FindNormalRandoms Then
if Not LoggedIn Then
Exit;
if (not (LoggedIn)) then
exit;
begin
repeat
OpenBank('clt', true, true);
Wait(RandomRange(250, 350));
until(BankScreen);
Wait(RandomRange(750, 1250));
begin
Deposit(1, 28, true);
Wait(RandomRange(500, 750));
CloseBank;
WriteLn('Banked!')
end;
end;
end;
procedure RunRunRun;
begin
if FindNormalRandoms Then
if Not LoggedIn Then
Exit;
if not RunEnergy(35) then
begin
if RestUntil(100) then
end;
SetRun(true);
end;
begin
Smart_Server := WORLD;
Smart_Members := MEMBERS;
Smart_Signed := SIGNED;
Smart_SuperDetail := False;
SetupSRL;
SetupSRLStats(299, SRLStats_User, SRLStats_Password);
DeclarePlayers;
LoginPlayer;
SPS_Areas := ['6_6', '6_7'];
SPS_Setup(RUNESCAPE_SURFACE, SPS_Areas);
repeat
ProgressReport;
RunRunRun;
WalkToIgnatius;
FindIg;
BuyBoxes;
AntiBan;
WalkToBank;
BankEm;
AntiBan;
until AllPlayersInactive;
end.