SRL Archive - RS3 Outdated / Broken Scripts

Al's AIO Hide Tanner (Al Kharid)


iBlank

2012-05-17 04:42:49

Al's AIO Hide Tanner

Description
This tanning script will tan any hide that is available for tanning at the hide tanner, Ellis, in Al Kharid. The script also has the option of using any type of energy potion in order to increase the speed of the hide tanning process.

Setup
1.) Fill out all necessary information within the script.
2.) Have the hide you want tanned in the first bank tab, in the first slot.
3.) If using potions have them in the first bank tab, in the second slot.
4.) Hit run and enjoy.

Precautions
1.) The script will continue to run even without anymore hides in the bank. (Don't plan on changing. If you want to run it for long times unattended, then learn some scripting and fix it ;))
2.) The antiban is nothing special, so take the time to make it better for your own good!

***Please take the time to post progress reports and/or bug reports. And most of all, enjoy!***


Program Als_AIO_Hide_Tanner;
{$I SRL/SRL/Misc/Smart.simba}
{$i SRL/SRL.simba}
{$i ObjectDTM/ObjDTMInclude.simba}
{$i SPS/SPS.simba}

Const
World = 88; // Enter world to tan material in.
Pin = ''; // Enter pin number.
HType = ''; // Enter hide you are tanning (Soft,Hard,SnakeNorm,SnakeSwamp,Green,Blue,Red,Black).
UsePots = True; // Set True to use energy pots, False to not use energy pots.

SRLStats_User = ''; /// SRL Stats Username.
SRLStats_Password = ''; /// SRL Stats Password.

Var
X,Y,Tries,Hides,TimeGone,HPH,R :Integer;
MyPath :TPointArray;

Procedure DeclarePlayers;
Begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name :=''; // Enter your username.
Players[0].Pass :=''; // Enter your password.
Players[0].Nick :=''; // Enter parts of character name for randoms and proggy.
Players[0].Active:=True;
Players[0].BoxRewards := ['Xp', 'mote', 'ostume', 'oins'];
Players[0].WorldInfo := [False, World];
End;

Procedure ProgressReport;
Begin
ClearDebug;
SRLRandomsReport;
Stats_Commit;
TimeGone := (GetTimeRunning/1000);
HPH := (3600*(Hides))/((TimeGone));

Writeln('** Als Hide Tanner **');
Writeln('=====================');
Writeln('Hides Tanned: ' + IntToStr(Hides));
Writeln('Hides Per Hr: ' + IntToStr(HPH));
Writeln('=====================');
Writeln('*********************');
End;

Procedure AntiBan;
Begin
Case Random(600) Of
150: SleepAndMoveMouse(500);
450: PickUpMouse;
End;
End;

Procedure IfRandoms;
Begin
FindNormalRandoms;
AntiBan;
End;

Procedure Banking;
Begin
Repeat
If OpenBankFast('akb') Then
Begin
If PinScreen Then InPin(Pin);
Wait(RandomRange(500,700));
End;
Until BankScreen;
If BankScreen Then
Begin
DepositAll;
Wait(RandomRange(250,500));
If (UsePots = True) Then
Begin
If Not RunEnergy(35) Then
Begin
MouseBankSlot(2,Mouse_Left);
Wait(RandomRange(300,600));
R := 1;
End;
End;
MouseBankSlot(1,Mouse_Right);
Wait(RandomRange(300,600));
WaitOption('ll',500);
Wait(RandomRange(250,500));
CloseBank;
End;
AntiBan;
IfRandoms;
End;

Procedure ToTanner;
Begin
If (R = 1) Then
Repeat
InvMouse(1,Mouse_Left)
Wait(RandomRange(300,500));
Until (RunEnergy(85) Or FindBlackChatMessage('lask') Or FindBlackChatMessage('reaks'));
R := 0;
SetRun(True);
SPS_WalkPath(MyPath);
While IsMoving Do Wait(RandomRange(50,100));
AntiBan;
IfRandoms;
End;

Procedure Tanner;
Begin
Repeat
While IsMoving Do
Begin
Wait(RandomRange(115,215));
End;
If FindObjCustom(x,y,['El','lli','lis'],[15590380,5929419],13) Then Mouse(x,y,3,3,False);
IncEx(Tries,1);
Until(ChooseOption('an'))or (Tries>=10);
Flag;
Wait(RandomRange(400,600));
Tries := 0;
end;

Procedure TanHides;
Begin
If (HType = 'Soft') Then
Begin
MouseBox(68,77,110,178,Mouse_Right);
Wait(RandomRange(400,700));
ChooseOption('ll');
Wait(RandomRange(400,700));
CloseWindow;
End;
If (HType = 'Hard') Then
Begin
MouseBox(180,80,220,175,Mouse_Right);
Wait(RandomRange(400,700));
ChooseOption('ll');
Wait(RandomRange(400,700));
CloseWindow;
End;
If (HType = 'SnakeNorm') Then
Begin
MouseBox(284,81,335,180,Mouse_Right);
Wait(RandomRange(400,700));
ChooseOption('ll');
Wait(RandomRange(400,700));
CloseWindow;
End;
If (HType = 'SnakeSwamp') Then
Begin
MouseBox(399,81,449,181,Mouse_Right);
Wait(RandomRange(400,700));
ChooseOption('ll');
Wait(RandomRange(400,700));
CloseWindow;
End;
If (HType = 'Green') Then
Begin
MouseBox(67,205,114,298,Mouse_Right);
Wait(RandomRange(400,700));
ChooseOption('ll');
Wait(RandomRange(400,700));
CloseWindow;
End;
If (HType = 'Blue') Then
Begin
MouseBox(178,207,223,300,Mouse_Right);
Wait(RandomRange(400,700));
ChooseOption('ll');
Wait(RandomRange(400,700));
CloseWindow;
End;
If (HType = 'Red') Then
Begin
MouseBox(287,203,339,292,Mouse_Right);
Wait(RandomRange(400,700));
ChooseOption('ll');
Wait(RandomRange(400,700));
CloseWindow;
End;
If (HType = 'Black') Then
Begin
MouseBox(399,201,448,294,Mouse_Right);
Wait(RandomRange(400,700));
ChooseOption('ll');
Wait(RandomRange(400,700));
CloseWindow;
End;
IncEx(Hides, 28);
AntiBan;
IfRandoms;
End;

Procedure ToBank;
Begin
InvertTpa(MyPath);
SetRun(True);
SPS_WalkPath(MyPath);
MyPath := [Point(4929, 3996), Point(4937, 3975), Point(4955, 3940), Point(4932, 3908)];
While IsMoving Do Wait(RandomRange(50,100));
AntiBan;
IfRandoms;
End;

Procedure BankArea;
Begin
InvertTPA(MyPath);
If (Not (ObjDTM_InArea('80:80:3:7:7:47:108:7:7:41:76:7:7:45:64:4:61:53:60:89:94:89:94:53',True)))
Then SPS_WalkPath(MyPath);
While IsMoving Do Wait(RandomRange(50,100));
MyPath := [Point(4920, 3997), Point(4936, 3977), Point(4953, 3941), Point(4932, 3908)];
End;


Procedure MainLoop;
Begin
Banking;
ToTanner;
Tanner;
TanHides;
ToBank;
ProgressReport;
End;

Begin
ClearDebug;
MouseSpeed := RandomRange(18,23);
Smart_Server := 00;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL;
ObjDTM_Setup;
ActivateClient;
DeclarePlayers;
LoginPlayer;
ClearDebug;
SetupSRLStats(1094, SRLStats_User, SRLStats_Password);
SPS_Setup(RUNESCAPE_SURFACE, ['12_8','12_9','12_10']);
MyPath := [Point(4920, 3997), Point(4936, 3977), Point(4953, 3941), Point(4932, 3908)];
Hides := 0;
R := 0;
ClickNorth(0);
BankArea;
Repeat
MainLoop;
Until (Not (LoggedIn));
End.

CephaXz

2012-05-17 04:46:38

Didn't see this coming. Thought people will make it private for own use. Btw, looks like a nice script :)

stuartroad

2012-05-17 04:56:12

quick add a anti leech!

iBlank

2012-05-17 05:01:40

From: CephaXz
Didn't see this coming. Thought people will make it private for own use. Btw, looks like a nice script :)


Been private for a bit, time to share I suppose! Thanks.

From: stuartroad
quick add a anti leech!


Thought about it, but hopefully the fact that it doesn't log out after the hides are all gone will be enough to get some people to learn some small things and fix it themselves.

CephaXz

2012-05-17 05:09:26

Just looked at the script. And wow, OpenBankFast('akb') works for you lol. It wouldn't work for me if I'm not in front of the bank glass. I actually made a bank opener for myself :\

iBlank

2012-05-17 05:14:34

From: CephaXz
Just looked at the script. And wow, OpenBankFast('akb') works for you lol. It wouldn't work for me if I'm not in front of the bank glass. I actually made a bank opener for myself :\


Interesting. When I run the script it appears to use the wall down at the far south end of the bank counter, not the glass. Hope it works for others or I suppose I will have to write a custom function for it!

dw171

2012-05-17 11:50:11

Can't get yours to work, so I used part of two of your procedures to fix an existing one.

iBlank

2012-05-17 11:55:24

From: dw171
Can't get yours to work, so I used part of two of your procedures to fix an existing one.


What part/parts of mine wasn't working for you?

dw171

2012-05-17 12:06:29

It will not load properly, probably something wrong with my laptop, but I tried it on another PC and had the same problem. I hit start and SMART closes.

iBlank

2012-05-17 12:13:45

That is because the smart server is set to 00 near the very end of the script. Set it to a number you use with most of your other scripts and Smart shouldn't close when you alternate between them.

Enter

2012-05-19 16:23:12

Hey, thanks for the awesome guide! However I want to make a request/suggestion that would it make better. :)

First can you make another one where to recover running they use terrorbird plus tireless scrolls to restore running, since energy pots will cost more. Also can the current script do randoms?

iBlank

2012-05-20 02:02:09

From: Enter
Hey, thanks for the awesome guide! However I want to make a request/suggestion that would it make better. :)

First can you make another one where to recover running they use terrorbird plus tireless scrolls to restore running, since energy pots will cost more. Also can the current script do randoms?


Yes, the script will do all randoms that are currently supported. Got to get my summoning up then I will look into that suggestion. Thanks!

Jake

2012-05-20 02:03:35

Gl with your application with this script ;)

iBlank

2012-05-20 02:07:30

From: omglawlzyougotpw
Gl with your application with this script ;)


I did not apply with this script, but I do appreciate the luck :p

Enter

2012-05-20 23:51:18

From: alevere4
Yes, the script will do all randoms that are currently supported. Got to get my summoning up then I will look into that suggestion. Thanks!


Thanks bro! Gl! Will be waiting, too bad new player accounts can only have 300 of an item banked at one time.. Tried to do this with 3 accounts can only do 300 at a time…

Physic

2012-05-21 01:09:05

finally was looking for a tanning script. thanks will test later

iBlank

2012-05-21 18:34:22

From: Physic
finally was looking for a tanning script. thanks will test later


Be sure to report back with a proggy or any bugs if you find some!

DRBREEDLOVE

2012-05-22 17:36:16

Very awesome script to release publicly, it does seem to get stuck clicking the wrong walls when it's walking to and from tanning sometimes. Which, I assume has something to do with the banking. I have to manually open the bank and let it sit for a bit so it corrects itself.

Hopefully, I can learn enough about this scripting crap to fix it up myself. Seems like it would be a simple fix.

iBlank

2012-05-22 17:37:57

Yes, it is the banking. I'll look into writing a custom function this evening.

DRBREEDLOVE

2012-05-22 19:18:23

From: alevere4
Yes, it is the banking. I'll look into writing a custom function this evening.


Got it running smooth:spot:
First kind of attempt of screwing around with scripting :)… again bad ass scrip to release to the public.

lol, may have spoke a little too soon… Groovy I'm learning though.

iBlank

2012-05-22 19:32:16

From: DRBREEDLOVE
Got it running smooth:spot:
First kind of attempt of screwing around with scripting :)… again bad ass scrip to release to the public.

lol, may have spoke a little too soon… Groovy I'm learning though.


Awesome! I love to hear that someone is taking the initiative to learn to script. Got to start somewhere.

Surfer

2012-05-23 18:51:50

Awesome man! Scripts works like charm! Wrote a few separate functions to make it work smoothly :)

balistix

2012-05-25 18:44:53

what is '{$i ObjectDTM/ObjDTMInclude.simba} ' ?

http://villavu.com/forum/showthread.php?t=78905&highlight=objectdtm

nvm
I am reading on it now to see how I can fix by myself

iBlank

2012-05-26 16:12:47

From: balistix
what is '{$i ObjectDTM/ObjDTMInclude.simba} ' ?

http://villavu.com/forum/showthread.php?t=78905&highlight=objectdtm

nvm
I am reading on it now to see how I can fix by myself


Did you get it figured out?

Itankbots

2012-05-27 15:28:10

Has trouble finding the bank, and sometimes doesn't ever find it, once its already inside bank area but cant find the bankers to click on it

iBlank

2012-05-28 15:33:08

From: Itankbots
Has trouble finding the bank, and sometimes doesn't ever find it, once its already inside bank area but cant find the bankers to click on it


I will try to write a custom function for banking sometime this week. This pre-built one doesn't seem to always work.

blinkblink

2012-05-28 19:18:15

From: Itankbots
Has trouble finding the bank, and sometimes doesn't ever find it, once its already inside bank area but cant find the bankers to click on it


It does work.. you need to start it in front of the last south bank booth

However the script needs a very tiny fix on when reaching the tanner, if randomly the path walking moves the player to be standing directly on Him.. the script gets lost since it can't find him & spams this error:
=P

I just babysit and manually move him when it happens

iBlank

2012-05-28 19:35:50

From: blinkblink
It does work.. you need to start it in front of the last south bank booth

However the script needs a very tiny fix on when reaching the tanner, if randomly the path walking moves the player to be standing directly on Him.. the script gets lost since it can't find him & spams this error:
=P

I just babysit and manually move him when it happens


I will add a fail safe soon that if it doesn't find the tanner then right click on your own character and see if it is under him. Thanks for reporting the bug.

Bot4Fun

2012-05-31 08:10:59

How many hides per hour?

Bot4Fun

2012-06-02 10:35:43

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

Gets that error.

iBlank

2012-06-02 13:00:34

From: Bot4Fun
How many hides per hour?


Not sure. Haven't ran the script in a while.

From: Bot4Fun
Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from ''

Gets that error.


You need the Object DTM include. Just search the forums and you can find the download and tutorial for it!

Bot4Fun

2012-06-02 13:38:18

Thank you. Now its working. But when it clicks the tanner, and come into that tanning menu, it just move the mouse a little, and then it goes back to the bank. But it says that it ahve tanned the hides? Hmm.

iBlank

2012-06-02 23:50:17

From: Bot4Fun
Thank you. Now its working. But when it clicks the tanner, and come into that tanning menu, it just move the mouse a little, and then it goes back to the bank. But it says that it ahve tanned the hides? Hmm.


Which hide are you trying to tan?

Bot4Fun

2012-06-03 04:03:01

Red Dragonhide

chris91

2012-06-03 04:57:39

I have an error. It won't tan the hide. I am doing red as well and in the script where it says what knd I tried red, red dragonhide, and red dragon leather.

Edit* We have the same problem ^^

I looked in the script to see if there is an anti leech, but don't understand why it is not tanning the hide.

Bot4Fun

2012-06-03 08:38:40

Deleted.

CephaXz

2012-06-03 08:44:25

From: Bot4Fun
A little of topic..
But yes, ive heard in another thread that some scripters have signed up, so they can have a script ready for when it starts! :)

Still have a problem with the red hide! :)


I hope you didn't login your account on that link. Its a phising site. :cartman:

Bot4Fun

2012-06-03 09:36:31

From: CephaXz
I hope you didn't login your account on that link. Its a phising site. :cartman:


No. But i was pretty close to do, so i could see "Mod Timbo's" post.

Well thank you :)

chris91

2012-06-03 12:48:19

Did anyone figure out this error? Am I missing something?

iBlank

2012-06-03 12:52:41

From: chris91
Did anyone figure out this error? Am I missing something?


Did you type in "Red" exactly like that. Note the capitalization. I will look at the script here in a few minutes to see if something is wrong in the code.

chris91

2012-06-03 13:10:04

Let me retry this, but I believe I did. Should I have it already up to click? For example, move the scroll box over to red, black, and royal are visble. Do you have Skype or msn we can though through? Or talk through PM so we don't spam.

Edit* I tried 'Red' before and it just moved the mouse around. I am going to try it right now.

chris91

2012-06-03 13:44:42


iBlank

2012-06-03 13:48:36

From: chris91


Oh ok. They have changed the hide menu. The screen use to be on the main screen, displaying all of the options. I will have to rewrite that part of the script. Will work on that tonight if I get the chance.

chris91

2012-06-03 13:50:52

From: alevere4
Oh ok. They have changed the hide menu. The screen use to be on the main screen, displaying all of the options. I will have to rewrite that part of the script. Will work on that tonight if I get the chance.


If you need any help, by all means let me know. If you do fix it, can you message me and let me know?

Easter Bunny

2012-06-06 08:53:22

Does this work?

iBlank

2012-06-06 08:55:22

From: Easter Bunny
Does this work?


Nope. Working on an update though.

chris91

2012-06-08 12:41:17

Any luck on fishing it, Alevere4?