SRL Archive - First Scripts

Harpoon Buyer


Deadly Serious

2012-01-15 16:06:02

Harpoon Buyer
You need to download this to be able to use the script: http://villavu.com/forum/showthread.php?t=68112&highlight=objdtm+walking
Follow the instructions at the bottom of this page on how to download and install it correctly.



You can fix your door detection problems here: http://villavu.com/forum/showthread.php?t=72578
Beginner5 has made an incredible script to detect and open the doors in Port Sarim.
I'll be posting my own fix in a few days, in the meantime I encourage you to implement Beginner5s' fix for yourselves. Don't forget to thank/ +rep him for the time and effort he spent into developing such a beastly script!



This script buys harpoons from the fishing shop in Port Sarim and deposits them in the deposit box.
I've only made this script capable of running one account and not being able to run multiple accounts, since you can only buy 1000 thousand harpoons at a time.


Always sell for well over the medium price, this only took me a few hours to sell. Don't flood the market to much :)


Requirements:
Start off with at least 60k in your money pouch.
Starting Point:


Recommended set up:
e.g. Monk robes, wizard robes, any other combo. You don't need an air tiara, I just stole this picture from my air runecrafting script.



Current Features
Rests when below 50% energy, either at the shop or deposit box.
Opens the door when needed.

Future Updates:
Auto Updater.

Known Bugs:
Sometimes misclicks the npc, since he strolls around the room.

Progress Reports:

You have been Pooning for:50 Minutes and 30 Seconds
Poons Bought:840
I had to stop it since there was no harpoons left to buy.

You have been Pooning for:1 Hours, 5 Minutes and 24 Seconds
Poons Bought:1064


You have been Pooning for:57 Minutes and 19 Seconds
Poons Bought:1064


Version:
1.2: Released to the public again. There's a few anti-leech prevention techniques in this new script. This is because I don't want the price to drop to drastically.
You can solve most of them by reading up on the errors here: http://villavu.com/forum/showthread.php?t=6413&highlight=annoying+error
Please refrain yourself from posting and asking for fixes here or in any other part of this forum. I want you to be competent enough to figure this out on your own. If you can’t find all the fixes in the link, you can go here: http://villavu.com/forum/forumdisplay.php?f=95

1.1: I changed the depositall TPA to a findcustom, it now finds it every time. I believe I fixed the occasional misclick the "buy 50" option.
1: Initial release



program Harpoon_Buyer;

{$i srl/srl/misc/smart.simba}
{$i SRL/SRL.simba}
//{.Include SRL\SRL\Misc\Debug.simba}
//{$i SRL/SRL/misc/paintsmart.simba}
{$i ObjectDTM/ObjDTMInclude.Simba}



Const //Yoho's
SERVER = ('54'); // Enter "0" to pick a random server.
MEMBERS = False; // Set to True if using a RS-Members account. False if F2P.
SRLStats_Username = ''; // Your SRL Stats Username
SRLStats_Password = ''; // Your SRL Stats Password
NumbOfPlayers= 1; //How many players are you using
StartPlayer= 0; //Player to start auoting with! (0 means first char)
Version = 1.2;

Var
tries: integer;
opened : boolean;
Poon: integer;
aFound: Extended;
{*******************************************************************************
procedure DeclarePlayers;
By: SRL
Description: SRL's Player Setup
*******************************************************************************}
procedure DeclarePlayers;
var i:integer;
begin
NumberOfPlayers(6);
CurrentPlayer := 4;
for i := 1 to NumbOfPlayers-5 do
Players[i].BoxRewards := ['mote', 'ostume', 'XP', 'Gem', 'ithril', 'oal', 'une', 'oins'];

Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Member := False;
Players[0].Active := True;
Players[0].Pin := '';
end;

Procedure ObjSetup; //Euph's
begin;
ObjDTM_Setup;
end;

Procedure StatsGuise(wat:String); //Yoho's
Begin
Status(wat);
Disguise(wat);
End;

//Function CheckAndClick(X,Y:Integer):Boolean;
//By: YoHoJo
//Description: Moves mouse to x,y, checks for uptext, and clikcs if found
//*******************************************************************************}
Function CheckAndClick(X,Y:Integer):Boolean;
Begin
MMouse(x, y, 5, 5);
{Wait(100 + Random(50));
If CountUpColor('B', 41, 5, 86, 24, 70, 140) Then}
If WaitUpTextMulti(['Mine','ine'], 150) Then
Begin
Result:=True;
GetMousePos(x, y);
Mouse(x, y, 0, 0,True);
Wait(100+Random(50));
FFlag(0);
End;
End;

Procedure FailSafe(Reason:String); //Yoho's
begin
Players[CurrentPlayer].Loc:=reason;
Logout;
Terminatescript;
end;

Procedure HumanMMouse(eX, eY, ranX, ranY: Integer);
var
randSpeed: extended;
X,Y,X2,Y2,A,Dist,MP: integer;
begin
A := MouseSpeed;
GetMousePos(X, Y);
Dist := Distance(X, Y, eX, eY);
MP := Round(Dist/150);
if MP < 0 then
MP := 1;

randSpeed := (random(MouseSpeed) / 2.0 + MouseSpeed) / 10.0;
X2 := RandomRange(eX-(A*MP), eX+(A*MP));
Y2 := RandomRange(eY-(A*MP), eY+(A*MP));
WindMouse(X, Y, X2, Y2, 11, 8, 10.0 / randSpeed, 12.0 / randSpeed, 10.0 * randSpeed, 10.0 * randSpeed);
GetMousePos(X, Y);
MMouse(eX, eY, ranX, ranY);
MouseSpeed := A;
end;

Procedure Loadvars;
begin;
MouseSpeed := RandomRange(14, 18);
end;


Procedure Antiban; //I liked a few of Yoho's antibans, I implemented them here
Begin
Case Random(254) Of
0: HoverSkill('Constitution', False);
1: Begin PickUpMouse; SleepAndMoveMouse(3000 + Random(500)); End;
2: IdleTime(100+random(700), 100+Random(100), 0.2+RandomE/2);
3: Begin GameTab(Tab_Stats); Wait(3000 + Random(500)); GameTab(Tab_Inv); End;
4: HoverSkill('random', False);
5: RandomMovement;
End;
end;

Procedure ProgressReport;
begin
Cleardebug;
Writeln('You have been Pooning for:' + TimeRunning);
Writeln('Poons Bought:' + IntToStr(Poon*28));
end;

procedure Resting;
var
X,Y: Integer;
s: String;
begin
if not loggedin then exit;
FindNormalRandoms;
Antiban;
DidRedClick;

begin
if (Not runenergy(50)) then
begin
setrest;
Wait(10000+Random(5000));
RestUntil(80)

end;
end;
end;

Procedure BuyThosePoons;
Var
X,Y,I: Integer;
TPA : TPointArray;
ATPA : T2DPointArray;

begin
If not loggedin then exit;
FindNormalRandoms;
Antiban;
DidRedClick;
Timerunning;

begin
Resting;
end;

begin
SetAngle(SRL_ANGLE_HIGH);
MakeCompass('S');

if not invfull then
begin
if not shopscreen then
begin
If (FindObjCustom(x,y,['alk', 'talk'], [7841457, 926253, 8561065, 7118242, 7510954], 3)) Then
begin

MMouse(X, Y, 1, 1);
ClickMouse2(False);
Writeln('Talking to the Fisherman');
Wait(600+random(250));
Waitoption('rade', 3000);
Wait(3500+random(250));
end;


begin
If shopscreen then
begin
MouseBox(186, 55, 225, 98, 2);
begin
getmousepos(x, y);
Writeln('Buying dose poons');
ClickMouse2(False);
Wait(600+random(250));
Waitoption('00', 3000);
Wait(1500+random(250));
end;

begin
MouseBox(479, 13, 493, 27, 1);
begin
Wait(1000+random(500));
end;
end;
end;
end;
end;
end;
end;


Procedure WalkToTheDepositBox;
var
Path: TStringArray;
DoorDTM, X, Y, I: Integer;
TPA : TPointArray;
ATPA : T2DPointArray;
begin
if not loggedin then exit;
FindNormalRandoms;
Antiban;
DidRedClick;

if not invfull then
begin
buythosepoons;
end;

begin
Path:= ['626:102:4:1:7:605:69:1:7:597:98:1:7:656:97:3:7:646:131'];
for I := 0 to 0 do
ObjDTM_Walk(Path[i], 0, 100, 80, True);
Wait(2000+Random(500));

begin
DoorDTM := DTMFromString('mwQAAAHic42RgYPBnYmCwAuJkIPYDYmsgTgRiGyD2BeIEIBZlZGD4BVT7mwFCizBCxLSAWAeKLYzlGSrynBjKchwZagpdGTydNRnsrZQZ3B3VGVwc5cCYH6iXEGYkAsMBAAWQDm0=');
if FindDTMRotated(DoorDTM, x, y, 0, 0, 700, 500, -Pi, Pi, Pi/30, aFound) then
begin
MMouse(X, Y, 2, 2);
ClickMouse2(True);
Wait(2000+random(250));
end;
if not FindDTM(DoorDTM, x, y, 0, 0, 700, 500) then
begin
writeln('Doors Open');
Wait(1000+Random(500));
Path:= ['688:51:6:3:7:644:113:1:7:655:81:1:7:607:54:1:7:598:81:1:7:618:116:2:7:602:118'];
for I := 0 to 0 do
ObjDTM_Walk(Path[i], 0, 100, 80, True);
end;
FreeDtm(doorDTM) // FreeBitmap(Door);
end;
end;
end;

Procedure Flagcheck;
var
Path: TStringArray;
X, Y, I: Integer;
TPA : TPointArray;
ATPA : T2DPointArray;

begin
Wait(5000+Random(1000));

begin
Path:= ['666:56:1:1:7:592:113:1:669:57'];
//this one replace // '686:62:1:1:7:594:112' Might do box
for I := 0 to 0 do
ObjDTM_Walk(Path[i], 0, 100, 80, True);
Wait(2000+Random(500));


begin
Path:= ['644:86:3:3:7:593:39:3:7:609:31:3:7:597:27'];
for I := 0 to 0 do
ObjDTM_Walk(Path[i], 0, 100, 80, True);
Wait(2000+Random(500));
end;
end;
end;

Procedure DepositPoons;
var
X,Y,I: Integer;
TPA : TPointArray;
ATPA : T2DPointArray;
begin
if not loggedin then exit;
FindNormalRandoms;
Antiban;
DidRedClick;
Inc(Poon);
ProgressReport;

begin
resting;
end;

If Invfull then
begin
If not depositscreen then
begin
If (FindObjCustom(x,y,['eposit', 'deposit'], [5991031, 5924981], 2)) Then
begin
Writeln('Opening Deposit box');
MMouse(X, Y, 5, 5);
ClickMouse2(True);
Wait(3000+random(250));
end;

begin
If (FindObjCustom(x,y,['eposit', 'deposit'], [1854330, 1985922, 1655411, 1655411], 8)) Then
begin
Writeln('Depositing dose poons');
MMouse(X, Y, 3, 3);
ClickMouse2(True);
Wait(1000+random(250));
end;
end;
end;
end;
end;

Procedure BackToTheShop;
var
Path: TStringArray;
Door2DTM, Door3DTM, Door4DTM, X, Y, I: Integer;

begin
if not loggedin then exit;
FindNormalRandoms;
Antiban;
DidRedClick;

If invfull then
begin
DepositPoons;
end;

begin
If not invfull then
begin
Path:= ['569:87:1:3:7:588:31'];
for I := 0 to 0 do
ObjDTM_Walk(Path[i], 0, 100, 80, True);
Wait(2500+Random(500));



begin
Path:= ['610:142:3:3:7:635:36:3:7:652:27:3:7:640:23:1:610:142'];
for I := 0 to 0 do
ObjDTM_Walk(Path[i], 0, 100, 80, True);
Wait(2000+Random(500));

begin
Path:= ['568:97:2:1:7:597:85:3:7:587:119'];
for I := 0 to 0 do
ObjDTM_Walk(Path[i], 0, 100, 80, True);
Wait(4000+Random(500));
begin
SetAngle(SRL_ANGLE_HIGH);
MakeCompass('S');
Door2DTM := DTMFromString('mwQAAAHic42RgYMhgZGAIZoTQtUAcAsQ1QBwGxFVQ8SggdkbCkUAcDsSZUHkQbWIgy1Ca7chQme/MUJzlwODmoM5gb6nM4OIgC8f8QPsIYUYiMBwAABsUDnY=');
if FindDTMRotated(Door2DTM, x, y, 0, 0, 700, 500, -Pi, Pi, Pi/30, aFound) then
begin
MMouse(X, Y, 2, 2);
ClickMouse2(True);
Wait(2000+random(250));
end;

begin
if not FindDTM(Door2DTM, x, y, 0, 0, 700, 500) then
begin
writeln('Doors Open')
end;

begin
Door3DTM := DTMFromString('mwQAAAHic42RgYNjByMCwAIi3AfEZIF4CpVcC8Tkg3g3EG4B4DhDPhuJNQLwWiPcB8V4oNtKTZijOcmAoz3ViyE2xYXBzUGfwdtVkcHGQhWN+oH2EMCMRGA4Ao98UVQ==');
if FindDTMRotated(Door3DTM, x, y, 0, 0, 700, 500, -Pi, Pi, Pi/30, aFound) then
begin
MMouse(X, Y, 2, 2)
ClickMouse2(True)
Wait(2000+random(250))
end;

begin
Door4DTM := DTMFromString('mwQAAAHic42RgYFBmYmDgBWIrIFYFYn4gtgBiISA2Z4LIJzIyMHgAsTsUg/gJQFwCxIVQ2txInqEsxwmMKwtcGDydNRmCvPUY3JzkGewtlcE0P9A+QpiRCAwHAMUvDK4=');
begin
MMouse(X, Y, 2, 2);
ClickMouse2(True);
Wait(2000+random(250));
end;
begin
Path:= ['628:63:7:1:7:581:119:1:7:597:73:1:7:605:43:1:7:655:72:1:7:618:110:3:7:645:106:2:7:601:112'];
for I := 0 to 0 do
ObjDTM_Walk(Path[i], 0, 100, 80, True);
Wait(2000+Random(500));
end;
end;
FreeDtm(Door3DTM)
FreeDtm(Door4DTM)
end;
end;
end;
end;
end;
end;
end;
end;

begin
Smart_Server := 54;
Smart_Members := False;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL;
Loadvars;
ObjSetup;
Declareplayers;
if not (LoggedIn) then
LoginPlayer;
Repeat
Repeat
BuyThosePoons;
WalkToTheDepositBox;
Flagcheck;
DepositPoons;
BackToTheShop;
Until(Poon=42) or (not LoggedIn);
NextPlayer(Players[CurrentPlayer].Active);
Poon:=0;
Until(false);


[XoL]

2012-01-15 16:34:13

Good job with the script, releasing something that was requested! +rep

Deadly Serious

2012-01-15 17:50:30

From: R4nd0m
Good job with the script, releasing something that was requested! +rep


Thanks mate, I thought it would be really easy to script but everything in there is basically the same color. TPAs and Bitmaps were screwing up >.<

m3gaman3g3nd

2012-01-15 17:54:09

wth? harpoon buyer?

good job on programming skills but cmon! lol

PatDuffy

2012-01-15 17:56:12

From: m3gaman3g3nd
wth? harpoon buyer?

good job on programming skills but cmon! lol


They are actually worth a lot…

m3gaman3g3nd

2012-01-15 17:57:37

no its probably a good money maker its just random, thats all =)

Deadly Serious

2012-01-15 18:05:12

You make around 250k per 1000. It's decent f2p money because it has no requirements apart from 60k starter cash.
You could just have 4 accounts that continually rotate after purchasing 1000, by the time the last account gets through your first account would have regenerated another thousand harpoons.

Demondog

2012-01-15 18:10:11

Is it possible to make it a direct download?

wantonman

2012-01-15 18:12:00

ADVANCED SETTINGS CLICK PAPERCLIP ADD ATTACHMENT

WHO HAS NOT TAUGHT YOU THIS>> IMA MAKE A THREAD TUT lol

davx

2012-01-15 18:13:16

Just copy and paste ?

Deadly Serious

2012-01-15 18:34:43

From: Demondog
Is it possible to make it a direct download?


I will, when I make it auto-updating.

From: wantonman
ADVANCED SETTINGS CLICK PAPERCLIP ADD ATTACHMENT

WHO HAS NOT TAUGHT YOU THIS>> IMA MAKE A THREAD TUT lol


Control A, control C, control V?

From: davx
Just copy and paste ?


Yup, I've added another thing to download. Since, you need to download objtdm to the extensions list, so the walking procedure works.

blinkblink

2012-01-15 20:10:43

Fix your DTM link on the description:
http://villavu.com/forum/showthread.php?t=68112&highlight=objdtm+walking

You have it linked like this:
http://villavu.com/forum/showthread....objdtm+walking

Deadly Serious

2012-01-15 20:13:19

From: blinkblink
Fix your DTM link on the description:
http://villavu.com/forum/showthread.php?t=68112&highlight=objdtm+walking

You have it linked like this:
http://villavu.com/forum/showthread....objdtm+walking


Sorry, copied and pasted it from my other thread.

Er1k

2012-01-15 20:16:39

Did you use a DTM to find the door? How to do it? :P

lzDylanzl

2012-01-15 20:20:58

whats the p/hr?

Deadly Serious

2012-01-15 20:22:20

From: nosaj.421
Did you use a DTM to find the door? How to do it? :P


The door was actually really annoying to code.
The findobj with the uptext wasn't working for me which other people usually use in their scripts because everything is the same color even with 1-3 tolerance, it'll select something completely different.
Even TPAs and bitmaps weren't working, so I decided to just make the camera angle south, so it wouldn't detect the door if it was open.


From: lzDylanzl
whats the p/hr?

No idea, I guess you better find out :P and then report back here with your findings.

Er1k

2012-01-15 20:42:29

I am also struggling with door detection in one of my on-hold projects. Guess this might shed light to it.

From: lzDylanzl
whats the p/hr?

Rumoured to be 200k per hour. But 1 hour per char because of personalized shops update.

Swagger

2012-01-15 21:21:34

Very useful.
I like to drop my harpoons after I catch a swordfish, so I always need them in bulk.

Just kidding, would be a good money per hour script except for the annoying personalized shop update.
Gratz.

Deadly Serious

2012-01-15 21:41:29

From: Swagger
Very useful.
I like to drop my harpoons after I catch a swordfish, so I always need them in bulk.

Just kidding, would be a good money per hour script except for the annoying personalized shop update.
Gratz.


They always sell for 25% over, there's always a huge demand :D (Until a bot is released, which then saturates the market :( )
That's why you always have 4 newly made accounts buying them :P No requirements, perfect gold farming.

plekter

2012-01-15 21:44:46

Harpoons are used with summoning if I am remembering right - good job. ;) Just wondering whats the gp/h?

Failedpure

2012-01-15 23:14:43

From: plekter
Harpoons are used with summoning if I am remembering right - good job. ;) Just wondering whats the gp/h?

He said he doesn't know.




How was ObjectDtm walking to script is it easy to script with?

Deadly Serious

2012-01-16 01:11:36

From: Failedpure
He said he doesn't know.




How was ObjectDtm walking to script is it easy to script with?


Yes, it's very easy, as long as you have trees, ladders, plants, etc viewable on the minimap.

loser69

2012-01-16 02:03:33

Im pretty sure harpoons are used in summoning so there will be constant demand, also nice script!

Er1k

2012-01-16 02:13:46

From: Deadly Serious
Yes, it's very easy, as long as you have trees, ladders, plants, etc viewable on the minimap.


How reliable is it? Better than SPS? I haven't got time to look into it yet.

Deadly Serious

2012-01-16 04:07:25

From: nosaj.421
How reliable is it? Better than SPS? I haven't got time to look into it yet.


I've never used SPS before but it is very reliable if you do it right.

putonajonny

2012-01-16 13:57:45

you know you have a load of unused variables right? testing now…

dvsilverwing

2012-01-16 14:25:29

Awesome script, I had it run for about 20 minutes (didn't grab Progress because I only had like 300 harpoons left that I didn't buy manually) and when I came back they were all banked. I only watched it ran for a few runs and the only things that happened were that sometimes it would make a run and accidentally not deposit the harpoons (which was fixed because after it tried to buy the other harpoons my inv was full and it had walked back and deposited them like it would have that load) and then sometimes it accidentally doesn't buy the harpoons (which is also fixed when it goes and makes the next load), so the only things that are a bit buggy you already know about, and they're only temporary problems at that! Although it isn't my place to make suggestions (as I don't know if you're a member and I don't actually have much scripting knowledge myself) once the Port Sarim area is working relatively bug-free it would be awesome to see added Catherby support, as Harry's actually closer to a bank/deposit box than Gerrant's is if I recall correctly. Thanks for the awesome script!

Side note: for anyone wondering why in the hell you'd by Harpoons, I had 1000 harpoons and sold them for 240k, which is something like 170k - 180k profit. Also consider that Members can go to both Gerrant's and Harry's for 2000 harpoons which would mean 340k - 360k profit, and considering the fact it takes barely less than an hour of buying them to clear 1k out of the store means you're making probably as much profit as you'd be killing Green Dragons for their Hides/Bones at any level < 90, give or take.

Deadly Serious

2012-01-16 15:59:33

From: putonajonny
you know you have a load of unused variables right? testing now…


Yup, those are from all the things that didn't work in there, like bitmaps and tpas. I'll edit those out when I have a chance.

From: dvsilverwing
Awesome script, I had it run for about 20 minutes (didn't grab Progress because I only had like 300 harpoons left that I didn't buy manually) and when I came back they were all banked. I only watched it ran for a few runs and the only things that happened were that sometimes it would make a run and accidentally not deposit the harpoons (which was fixed because after it tried to buy the other harpoons my inv was full and it had walked back and deposited them like it would have that load) and then sometimes it accidentally doesn't buy the harpoons (which is also fixed when it goes and makes the next load), so the only things that are a bit buggy you already know about, and they're only temporary problems at that! Although it isn't my place to make suggestions (as I don't know if you're a member and I don't actually have much scripting knowledge myself) once the Port Sarim area is working relatively bug-free it would be awesome to see added Catherby support, as Harry's actually closer to a bank/deposit box than Gerrant's is if I recall correctly. Thanks for the awesome script!

Side note: for anyone wondering why in the hell you'd by Harpoons, I had 1000 harpoons and sold them for 240k, which is something like 170k - 180k profit. Also consider that Members can go to both Gerrant's and Harry's for 2000 harpoons which would mean 340k - 360k profit, and considering the fact it takes barely less than an hour of buying them to clear 1k out of the store means you're making probably as much profit as you'd be killing Green Dragons for their Hides/Bones at any level < 90, give or take.


Thank you for all that feedback. That's what I like :D
What happens when it doesn't bank in the deposit box? Does it click the deposit box and not click "deposit all?"
I honestly have no idea why it doesn't buy the harpoons sometimes. There might be a problem with the font and it doesn't register in simba occasionally. I've filled it out many different ways and it still occurs.
I'll go do a few runs myself and see what errors take place.
I'll add catherby support when my account gets out of negative credit.

user666

2012-01-16 18:17:58

Thank you sir. Its not always buying the harpoons at the moment though.

Deadly Serious

2012-01-16 22:39:20

From: user666
Thank you sir. Its not always buying the harpoons at the moment though.


I believe I fixed most of the issues, apart from the occasionally misclicking the walking npc problem.

user666

2012-01-16 23:06:25

Sometimes it will go to the store, right click the harpoons then left way off to the bottom left and then try to go store.

Deadly Serious

2012-01-16 23:15:37

From: user666
Sometimes it will go to the store, right click the harpoons then left way off to the bottom left and then try to go store.


It should be fixed if you copy and paste the new script into simba.

Poopadox

2012-01-17 00:06:15

Sometimes missclicks on the bank booth and runs back to buy more harpoons without banking.

Edit: It also dosent open the door if it's shut.

Deadly Serious

2012-01-17 00:09:23

From: Poopadox
Sometimes missclicks on the bank booth and runs back to buy more harpoons without banking.


Wait, what? Misclicks on the bank booth?
Do you mean the deposit box?
If so, does it misclick the depositall button or the actual box?

Poopadox

2012-01-17 03:25:42

From: Deadly Serious
Wait, what? Misclicks on the bank booth?
Do you mean the deposit box?
If so, does it misclick the depositall button or the actual box?


Yes. Sorry I meant the deposit box. It sometimes missclicks the box all together and just runs back. The biggest problem tho is the script being completely useless once the door closes.

Deadly Serious

2012-01-17 03:26:57

From: Poopadox
Yes. Sorry I meant the deposit box. It sometimes missclicks the box all together and just runs back. The biggest problem tho is the script being completely useless once the door closes.


I've never seen it missclick the deposit box and there's door detection, lol…

Poopadox

2012-01-17 03:30:13

The script isn't even attempting to open the door once it closes?

It just right-clicks "Trade" from outside the building and results in it running off trying to trade him through a closed door.

Deadly Serious

2012-01-17 03:32:53

From: Poopadox
The script isn't even attempting to open the door once it closes?

It just right-clicks "Trade" from outside the building and results in it running off trying to trade him through a closed door.


That means the DTM that detects the door is broken.
I'll fix it soon, I'm making a lot of fail safes at the moment. It'll be updated in about 30-40 mins.

Poopadox

2012-01-17 03:38:33

Alright cool, theres another little problem too, it sometimes gets stuck near the deposit box and gives the error "Did not find ObjectDTM" usualy at this area:


Deadly Serious

2012-01-17 03:43:52

From: Poopadox
Alright cool, theres another little problem too, it sometimes gets stuck near the deposit box and gives the error "Did not find ObjectDTM" usualy at this area:



This sometimes happens with objdtm walking, there's nothing I can do about it, sorry.

Poopadox

2012-01-17 03:44:34

From: Deadly Serious
This sometimes happens with objdtm walking, there's nothing I can do about it, sorry.


That's fine. I was just showing you incase you didn't know :)

Deadly Serious

2012-01-17 04:39:38

Sorry guys, there's going to be a big delay on the working door DTM. My DTM editor is screwing up/ not working at all. I'm awaiting a response in the "Help" section.
It'll hopefully be back up to full functionality tomorrow.

omegaangelz

2012-01-17 05:41:48

very nice! I actually was making an army of shark fishers and noticed the harpoon selling immediately for above med in GE! I can't remember if I actually went as far as requesting it, I remember making the screenshots of all the prices but not actually posting them as a request. Anyway thanks glad to see this actually works as well as I speculated it would

dvsilverwing

2012-01-17 15:42:48

From: Deadly Serious
Thank you for all that feedback. That's what I like :D
What happens when it doesn't bank in the deposit box? Does it click the deposit box and not click "deposit all?"
I honestly have no idea why it doesn't buy the harpoons sometimes. There might be a problem with the font and it doesn't register in simba occasionally. I've filled it out many different ways and it still occurs.
I'll go do a few runs myself and see what errors take place.
I'll add catherby support when my account gets out of negative credit.


From what I see about 50% of the time it's when there's lag or delay in the game, the click won't register, and then the other 50% of the time it seems to not click at all (as in: Click deposit box, hover over deposit all button (sometimes doesn't even do this) for a second, go straight back to the mini-map and click back onto the route). But like I said, it pretty much clears itself up when it goes to deposit the "Next Load" (The previously undeposited inventory full) into the Deposit Box.

Deadly Serious

2012-01-17 16:30:26

From: omegaangelz
very nice! I actually was making an army of shark fishers and noticed the harpoon selling immediately for above med in GE! I can't remember if I actually went as far as requesting it, I remember making the screenshots of all the prices but not actually posting them as a request. Anyway thanks glad to see this actually works as well as I speculated it would


Haha, I'm glad they're still selling for above med but I guess that's because it's only been out for a few days.


From: dvsilverwing
From what I see about 50% of the time it's when there's lag or delay in the game, the click won't register, and then the other 50% of the time it seems to not click at all (as in: Click deposit box, hover over deposit all button (sometimes doesn't even do this) for a second, go straight back to the mini-map and click back onto the route). But like I said, it pretty much clears itself up when it goes to deposit the "Next Load" (The previously undeposited inventory full) into the Deposit Box.


Yeah, I'm making a few fail safes to stop this. Mostly just "if invfull then" kind of fail safes.
I'm having some trouble with making a new door DTM though :/

user666

2012-01-20 18:22:11

Any idea on when this will be updated?

Deadly Serious

2012-01-20 19:50:27

From: user666
Any idea on when this will be updated?


You can update it yourself, I posted the link where someone supplied a valid fix. I'll supply a fix within a week, sorry for the delay.

user666

2012-01-21 12:32:57

No problem man. Thanks.

Deadly Serious

2012-01-21 20:09:27

From: user666
No problem man. Thanks.


It might be up sooner then expected. I've fixed most of the problems and added in a few fail safes.

You have been Pooning for:50 Minutes and 30 Seconds
Poons Bought:840
I had to stop it since there was no harpoons left to buy.

You have been Pooning for:1 Hours, 5 Minutes and 24 Seconds
Poons Bought:1064


You have been Pooning for:57 Minutes and 19 Seconds
Poons Bought:1064


UPDATED!

Cookah

2012-01-22 13:32:30

Doesn't work

Procedure WalkToTheDepositBox; [Error Line]

[Hint] (132:1): Variable 'X' never used at line 131
[Hint] (132:1): Variable 'Y' never used at line 131
[Hint] (133:1): Variable 'S' never used at line 132
[Error] (214:2): Identifier expected at line 213
Compiling failed.

Deadly Serious

2012-01-22 15:35:55

From: Cookah
Doesn't work

Procedure WalkToTheDepositBox; [Error Line]

[Hint] (132:1): Variable 'X' never used at line 131
[Hint] (132:1): Variable 'Y' never used at line 131
[Hint] (133:1): Variable 'S' never used at line 132
[Error] (214:2): Identifier expected at line 213
Compiling failed.


Read the first post, I've added in some anti-leech prevention techniques. So, the price doesn't drop down to low.

Sebo

2012-01-22 15:44:55

Deadly, mind if I recreate this script? It's a very nice concept. I'll credit you. :)

Deadly Serious

2012-01-22 15:46:23

From: Sebo
Deadly, mind if I recreate this script? It's a very nice concept. I'll credit you. :)


Sure, go for it.

Sebo

2012-01-22 15:49:39

From: Deadly Serious
Sure, go for it.


Thanks, and just a little tip: add a constant for the amount of loads to do, and a variable to count the loads you do. That way, you can get rid of that infinite loop you got going on. Always try to refrain from having an infinite loop anywhere in your scripts. :)

Deadly Serious

2012-01-22 15:57:47

From: Sebo
Thanks, and just a little tip: add a constant for the amount of loads to do, and a variable to count the loads you do. That way, you can get rid of that infinite loop you got going on. Always try to refrain from having an infinite loop anywhere in your scripts. :)


I've already added that in, at the bottom in the main loop.

arxpro

2012-01-22 18:17:33

From: Cookah
Doesn't work

Procedure WalkToTheDepositBox; [Error Line]

[Hint] (132:1): Variable 'X' never used at line 131
[Hint] (132:1): Variable 'Y' never used at line 131
[Hint] (133:1): Variable 'S' never used at line 132
[Error] (214:2): Identifier expected at line 213
Compiling failed.


same

kevin33

2012-01-22 18:26:28

Deleted*

Deadly Serious

2012-01-22 18:27:06

From: kevin33
Heres what to do to get it to work:

[ATTACH]13313[/ATTACH]

[ATTACH]13314[/ATTACH]


Can you take that down? I put it up there so leechers actually needed to do something to get the bot working.

kevin33

2012-01-22 18:32:58

Yea taken down sorry. I had no idea, you should add that little part to the first post if you havent already. I didnt see it so for that reason I made that post. Hopefully no one saw them :/

Deadly Serious

2012-01-22 18:37:35

From: kevin33
Yea taken down sorry. I had no idea, you should add that little part to the first post if you havent already. I didnt see it so for that reason I made that post. Hopefully no one saw them :/


Nah, it's fine. I wrote about what I did in the version part on the first page.
Edit: Thanks for taking it down though :D

Helper

2012-01-22 19:08:31

i want to try it. i will on my skiller.

kevin33

2012-01-22 19:16:04

Try what? the script? Its not hard to fix. Refer here to find out what the errors mean:

http://villavu.com/forum/showthread.php?t=6413

funnyman9292

2012-01-22 19:35:59

Where should i start my player?

Deadly Serious

2012-01-22 21:11:04

From: funnyman9292
Where should i start my player?


In the store.

Ilya

2012-01-24 00:40:05

Great anti-leeching idea for the script. Helped me learn a few things!!!
Keep up the good work!

Deadly Serious

2012-01-24 01:10:01

From: Ilya
Great anti-leeching idea for the script. Helped me learn a few things!!!
Keep up the good work!


Thanks, I'm glad someone has taken the time to learn a bit more about scripting :D

sizwiz

2012-01-24 04:56:47

Forgot to edit this and say I got it working, thanks anyways for the hint!

Deadly Serious

2012-01-24 15:59:51

From: sizwiz
This sounds stupid but i'm having trouble getting this script to work. Ive seriously spent the past 3 hours trying to figure it out.. haha. Read through http://villavu.com/forum/showthread.php?t=6413&highlight=annoying+error twice, and just spent a bit of time going through http://villavu.com/forum/showthread.php?t=12154.

Ive tried a few things between line 213 and 255 (walk procedure), and 129-148 (resting procedure). If anyone can pm me and let me know if im even going about it the right way that would be awesome.. i can also tell you the changes ive made so far. Going to give it another try tomorrow when im not so frustrated lol


Hint: Count your ends and check the very bottom of the script, something's missing.

Tuning1st

2012-01-25 22:41:14

Yay! :D I can solve the anti leacher (My first time because im trying learn)

EDIT: But dont know how solve for detect the door :( i read the first post but need help pls

asap1

2012-01-27 21:22:47

i can not do the anti-leech can someone give me a bit of help and i read all the guides and i counted the ends but i still dont get it

user666

2012-01-27 23:02:51

Leeching means to claim part of a script as a person's own… Why is there an anti-leech? Kind of silly since you made the script on request, but then again that's my opinion about everyone who does that.

Hello World..

2012-01-29 05:34:42

Problem.
Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.Simba' used from ''

flashman654

2012-02-03 18:20:44

okay i'm new here so how do you actually set up the script?? Do you copy and paste it into simba on a new tab and hit run? Cuz if you do, then it won't work since I continue to get the same error:Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.Simba' used from ''

Deadly Serious

2012-02-03 18:31:37

From: Tuning1st
Yay! :D I can solve the anti leacher (My first time because im trying learn)

EDIT: But dont know how solve for detect the door :( i read the first post but need help pls


I've fixed that now.

From: asap1
i can not do the anti-leech can someone give me a bit of help and i read all the guides and i counted the ends but i still dont get it


If you need help just PM me, I will only give you hints though.

From: user666
Leeching means to claim part of a script as a person's own… Why is there an anti-leech? Kind of silly since you made the script on request, but then again that's my opinion about everyone who does that.


No, leeching is just taking and not giving back. I made this on a request but if the person can't even be bothered to fix simple anti-leech preventions he doesn't deserve this script.
You probably think that because you haven't learnt how to script and just want everything spoon fed to you.

From: Hello World..
Problem.
Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.Simba' used from ''


It says how to download the fix in bold and red on the first post.

From: flashman654
okay i'm new here so how do you actually set up the script?? Do you copy and paste it into simba on a new tab and hit run? Cuz if you do, then it won't work since I continue to get the same error:Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.Simba' used from ''


Read the whole first post, it tells you exactly what to do.

v0rtexer43

2012-02-04 12:36:25

Please let me know the secret in this code so I can install it myself….. I cant figure it out.

funnyman9292

2012-02-04 15:35:31

Wow so many new users care about this script… I feel like every script should be like this

hoilori

2012-02-05 05:34:18

How fast will the harpoons respawn?

finally i got the script errors fixed. then it starts complaining about smart.simba o_o

Themanhunt1

2012-02-05 07:36:44

Does not work:

[Hint] (132:1): Variable 'X' never used at line 131
[Hint] (132:1): Variable 'Y' never used at line 131
[Hint] (133:1): Variable 'S' never used at line 132
[Error] (214:1): Identifier expected at line 213
Compiling failed.

Looked at the thread you mentioned, all all tutorials and this error is not reported. Was actually looking forward to using this :(

Can anyone help me out here? I know I need to edit it, but I have no idea what to edit, how to edit it or what to replace it with :(

Themanhunt1

2012-02-06 11:56:47

BUMP!

This is hard. I need help, please PM if you don't want to tell me here.

dude00

2012-02-06 14:09:17

From: Themanhunt1
Does not work:

[Hint] (132:1): Variable 'X' never used at line 131
[Hint] (132:1): Variable 'Y' never used at line 131
[Hint] (133:1): Variable 'S' never used at line 132
[Error] (214:1): Identifier expected at line 213
Compiling failed.

Looked at the thread you mentioned, all all tutorials and this error is not reported. Was actually looking forward to using this :(

Can anyone help me out here? I know I need to edit it, but I have no idea what to edit, how to edit it or what to replace it with :(



i got the same error

Deadly Serious

2012-02-06 14:58:27

From: funnyman9292
Wow so many new users care about this script… I feel like every script should be like this


Thanks, I only added it in so it doesn't get abused by leechers because there isn't a huge demand for harpoons. They would make a huge excess and prices would drop dramatically.

From: hoilori
How fast will the harpoons respawn?

finally i got the script errors fixed. then it starts complaining about smart.simba o_o


It should only take 4 hours for 1000 harpoons to respawn.

From: Themanhunt1
Does not work:

[Hint] (132:1): Variable 'X' never used at line 131
[Hint] (132:1): Variable 'Y' never used at line 131
[Hint] (133:1): Variable 'S' never used at line 132
[Error] (214:1): Identifier expected at line 213
Compiling failed.

Looked at the thread you mentioned, all all tutorials and this error is not reported. Was actually looking forward to using this :(

Can anyone help me out here? I know I need to edit it, but I have no idea what to edit, how to edit it or what to replace it with :(


From: Themanhunt1
BUMP!

This is hard. I need help, please PM if you don't want to tell me here.


From: dude00
i got the same error


I'll give you all the same tips that I give to the people that PM me. Count your ends and look at the bottom of your script.

Themanhunt1

2012-02-06 15:03:06

I counted my bloody ends, and they all have a begin. Makes no sense what you say.

Edit:

I have 62 ends. Now what? Can't believe i've spent 2 days on this shit.

Edit2:

OK, so the last 3 have ends like:

3 -> 5 -> 8

So a difference of 2 and then 3, so I add 4…is this it?

Edit3:

Are we doing sequential patterns in counting now? WHAT DO I DO?!?!?!?

Themanhunt1

2012-02-06 15:19:41

Bump

This is meant to be an anti-leech method, which is fine, but not an anti-use method. FFS.

Themanhunt1

2012-02-06 15:35:23

Bump

Vilenueve

2012-02-06 15:50:10

its working ??

Themanhunt1

2012-02-06 16:05:45

Only if you can solve the difficult riddle mate. Nightmare.

Deadly Serious

2012-02-06 21:14:17

From: Themanhunt1
I counted my bloody ends, and they all have a begin. Makes no sense what you say.

Edit:

I have 62 ends. Now what? Can't believe i've spent 2 days on this shit.

Edit2:

OK, so the last 3 have ends like:

3 -> 5 -> 8

So a difference of 2 and then 3, so I add 4…is this it?

Edit3:

Are we doing sequential patterns in counting now? WHAT DO I DO?!?!?!?

If you have all the ends sorted, I believe there's only one thing left to do. It's at the bottom and needs an end for the main loop.

From: Themanhunt1
Bump

This is meant to be an anti-leech method, which is fine, but not an anti-use method. FFS.


It's honestly so simple, if you just watched Yohos' first vid, you would of figured it out.

From: Vilenueve
its working ??

If the door Dtms aren't broken.

From: Themanhunt1
Only if you can solve the difficult riddle mate. Nightmare.


It's so easy :P

Themanhunt1

2012-02-07 11:52:49

Well I give up. Already been insulted a ton of times by an SRL Member about this, too much heartache. Very disappointing.

vito107

2012-02-08 13:40:15

ive got a error when compiling this

Chrome

2012-02-08 15:00:49

The error isn't hard to fix FFS. LOOK AT THE BOTTOM. SOMETHING ISN'T SUPPOSED TO BE THERE

Themanhunt1

2012-02-08 15:18:25

Yeah doesn't help mate, no need to spam and make this any worse than it already is. By the looks of it, it will probably be easy to make my own harpoon buyer >.>

Deadly Serious

2012-02-08 22:00:20

From: Themanhunt1
Well I give up. Already been insulted a ton of times by an SRL Member about this, too much heartache. Very disappointing.


When you PM someone abuse after only 2 hours of not receiving a reply to your previous PM. You're abound to upset a few people.
Edit: I've also seen that you've been abusing various other people and you wonder why people don't like you -.-
From: vito107
ive got a error when compiling this

Read the first post.

From: Chrome
The error isn't hard to fix FFS. LOOK AT THE BOTTOM. SOMETHING ISN'T SUPPOSED TO BE THERE

Is*

From: Themanhunt1
Yeah doesn't help mate, no need to spam and make this any worse than it already is. By the looks of it, it will probably be easy to make my own harpoon buyer >.>

If you can't fix simple errors, I don't see how you'll be able to make your own >.>

Themanhunt1

2012-02-09 12:14:22

Abusing other people? What a load of shit. I ask for help and just get told that im a leeching faggot…which I am not, simply a noob asking for a bit of help to be better.

I just need to adjust to this language with scripting. I used to make scripts on PB and was just going to release one on RSBuddy, but was too late as it was then shut down (so to speak). I also helped 2 of the original developers on ArbiBots. I am not boasting, simply saying that i'm not a simple noob, but a more complex one :p

Deadly Serious

2012-02-09 16:55:38

From: Themanhunt1
Abusing other people? What a load of shit. I ask for help and just get told that im a leeching faggot…which I am not, simply a noob asking for a bit of help to be better.

I just need to adjust to this language with scripting. I used to make scripts on PB and was just going to release one on RSBuddy, but was too late as it was then shut down (so to speak). I also helped 2 of the original developers on ArbiBots. I am not boasting, simply saying that i'm not a simple noob, but a more complex one :p


Mate, if you don't think sending a vicious PM to me, only a few hours after I didn't respond to your original PM abuse. Then I don't know what's wrong with you.
From: Themanhunt1
For not helping me you piece of shit. Fucking worst anti-leech i've ever come across. Fucking hell.

Don't give me a fucking riddle, give me a fucking script!

Quoted for the truth.

I told you exactly what to do earlier on in this thread. If you can't adjust it yourself with all the information, sorry I can't help you.
I'd love to see the code for your scripts that you supposedly created and also give me some insight on what the code does. So you just don't copy and paste code from somewhere else.

Themanhunt1

2012-02-10 13:46:43

Yeah that's me being angry, which Mr. SRL Member did not like. Luckily Mr. SRL Member forgave me and I forgave him, now that's over. I don't like being angry, neither do others. I would like it if you could now drop this.

shiven

2012-02-10 13:52:46

script gets lost after antiban. also guys end. and remove unused vars.

otherwise I can see proof of concept. also, no failsafe for misclick on gerrard. it gives up after missing.

cool though.

edit*
by lost I mean that it does not reset to north after antiban spin, and dtm fails shortly afterwards.

Deadly Serious

2012-02-10 16:21:06

From: shiven
script gets lost after antiban. also guys end. and remove unused vars.

otherwise I can see proof of concept. also, no failsafe for misclick on gerrard. it gives up after missing.

cool though.

edit*
by lost I mean that it does not reset to north after antiban spin, and dtm fails shortly afterwards.


It should reset the camera angle every time it enters the shop but I can see how that can affect it. There's a failsafe for misclicking on gerrard, if not invfull then repeat the procedure.

user666

2012-02-10 17:11:28

Sad to see a script that I requested is attracting this much negativity.. :(

user666

2012-02-10 18:33:11

Doesn't always buy the harpoons. It's like it doesn't check to see if it has them. :P

Deadly Serious

2012-02-10 23:16:19

From: user666
Doesn't always buy the harpoons. It's like it doesn't check to see if it has them. :P


I might fix the few errors it has and then release it to the public without any anti-leech.

user666

2012-02-11 11:04:07

It's a very good script. Why aren't you an SRL member yet? Could you add the option to not use the rest feature? Or is it just as simple as deleting the procedure?

Deadly Serious

2012-02-11 21:09:32

From: user666
It's a very good script. Why aren't you an SRL member yet? Could you add the option to not use the rest feature? Or is it just as simple as deleting the procedure?


You can just take the "resting" out of the walk paths.

Solidone40

2012-02-12 18:12:28

Took me a good 20 minutes to figure out the Anti-Leech, but it was good for my learning of SRL (I hate being a noob XD) and I appreciate it. It disgusts me that all of these kids who cannot even put the effort to learn a language and join a community flame you for preventing Gold Farmers and crashing harpoons. Thanks for the learning experience, and the awesome script.
Seriously yours,
-Solid

Emotional

2012-02-14 16:57:00

Procedure WalkToTheDepositBox; <- it failed compiling?

funnyman9292

2012-02-15 18:41:05

Dont Deadly, really dont do it man. it's a great idea stick with it.

Deadly Serious

2012-02-16 13:58:49

From: Solidone40
Took me a good 20 minutes to figure out the Anti-Leech, but it was good for my learning of SRL (I hate being a noob XD) and I appreciate it. It disgusts me that all of these kids who cannot even put the effort to learn a language and join a community flame you for preventing Gold Farmers and crashing harpoons. Thanks for the learning experience, and the awesome script.
Seriously yours,
-Solid


Thanks mate, I hope it's still working. I haven't updated it in weeks.

From: Emotional
Procedure WalkToTheDepositBox; <- it failed compiling?


Read the initial post.

From: funnyman9292
Dont Deadly, really dont do it man. it's a great idea stick with it.


If I do release the script without any leecher restrictions, it won't be for a few weeks.

KillaKev

2012-02-18 00:59:55

Well I fixed the errors in the script but then I ended up here..

Did I mess something up in the process?

MooCowOinks

2012-02-18 01:33:54

Where do I download this? I really want to try this.

thompson3311

2012-03-03 20:54:27

how do u download it?

ben 0101

2012-03-12 17:56:17

ikr how do you download it

suffrage

2012-03-24 10:00:42

its not work for me ?

[Hint] (132:1): Variable 'X' never used at line 131
[Hint] (132:1): Variable 'Y' never used at line 131
[Hint] (133:1): Variable 'S' never used at line 132
[Error] (214:1): Identifier expected at line 213

Hello World..

2012-03-27 08:04:00

I'm close at configuring it out but stuck at something it complains about smart.

Ashihtaka

2012-03-29 15:21:44

Look at the GE graph from the beginning of this script release to now lol, 300gp -> 200gp in less than 2 weeks

Hello World..

2012-03-31 09:56:44

How to put the ObjectDTM to work?

merrell217

2012-06-05 21:36:57

ermmmm cant paste it in the correct format lol. keeps mushing the words together

xDutch

2012-07-05 07:42:54

Function CheckAndClick(X,Y:Integer):Boolean;
Begin
MMouse(x, y, 5, 5);
{Wait(100 + Random(50));
If CountUpColor('B', 41, 5, 86, 24, 70, 140) Then}
If WaitUpTextMulti(['Mine','ine'], 150) Then
Begin
Result:=True;
GetMousePos(x, y);
Mouse(x, y, 0, 0,True);
Wait(100+Random(50));
FFlag(0);
End;
End;

Maby change that ?

samotomas3

2012-07-23 13:54:52

Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.Simba' used from ''… wtf?

litoris

2012-07-23 14:07:16

From: samotomas3
Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.Simba' used from ''… wtf?


Read the second line on the first post before complaining.

The Killer

2012-07-23 16:28:48

From: ashihtaka
Look at the GE graph from the beginning of this script release to now lol, 300gp -> 200gp in less than 2 weeks


meh, it could of been because of toolbelt update

garrettl

2012-11-01 01:01:58

how do you get the client lol

Rezozo

2012-11-01 01:07:50

Grave+Shovel+Leecher…Ofcourse you get a leeching gravedig! Garret, go to the Setting up Simba section plz….

Search tool…Use…