SRL Archive - First Scripts

Serum 207 Maker!


Aegis

2011-11-10 21:17:04

Hey guys, this is my first script! I'll admit though, I based a few procedures from other scripts to get started, as I hadn't had any experience in Pascal/Simba prior to making this. At the time, no Herblore scripts worked. If anything, I've sure learned a lot. At first, I tried using DTMs for the ingredients, but I was having some trouble, so I used the Withdraw(x, y, 0) method instead. Later, I found out it was an error in the version of Simba I was using.

Anyways, I realize that there's much to improve, but I figured I'd post this here anyways. Oh, and because the Withdraw method is location-based, and not item-based, this could essentially be a "Universal Potion Mixer" with any ingredients, but I've not tested anything else. Alright, I'll stop rambling now…

Features:
  • Banks at Soul Wars (No randoms)
  • Anti-ban (Basic)
  • Fairly fast
  • Mixes Tarromin Potion (unf) with Ashes (But can basically mix any two-items, probably could even bowstring, lol)

Instructions:
  • Stand near the Bank chest
  • Have your ingredients exactly in THIS position

Known errors(lol):
  • Tries mixing pots when script starts, even if items aren't in the inventory. For now, just try to start with 14 of each ingredient in your inventory. (I'm lazy and just haven't fixed this)
:D


program Serum207Maker;
{$DEFINE SMART}
{$i SRL\SRL.scar}


const
S_World = 65;
S_Signed = True;
S_Member = True;


procedure DeclarePlayer;
begin
with Players[0] do
begin

Name := '';
Pass := '';
Pin := '';
Active := True;
end;
end;


procedure AntiBan;
var
Int: Integer;
begin
Wait(300 + Random(40))
Int := Random(100);
if (Int <= 91) then
Exit;
Writeln('AntiBanned [' + ToStr(Int) + ']');
case Int of
92..94: MakeCompass(rs_GetCompassAngleDegrees + RandomRange(-185, 360));
95..96:
begin
SetAngle(False);
SetAngle(True);
end;
97: HoverSkill(SKILL_HERBLORE, False);

98..99: PickupMouse;
end;
end;

function Bank: Boolean;
var
X, Y: Integer;
begin
FindNormalRandoms;
if (FindObjCustom(X, Y, ['Bank','nk ch','k che','chest'], [2963780,10724266,10000542,5592409], 3)) then
Mouse(X, Y, 0, 0, True);
Wait(1500 + Random(300));
if (PinScreen) then InPin(Players[CurrentPlayer].Pin);
begin
DepositAll;
if Withdraw(8, 3, 14) then
if Withdraw(9, 3, 14) then
Result := True;
end;
if BankScreen then
CloseBank;
FindNormalRandoms;
end;


function MixPots: Boolean;
var
x, y, T: Integer;
B: TBox;
begin
if (InvFull) then
Wait(300 + Random(50));
InvMouse(1, 1);
InvMouse(15, 1);
MouseBox(227, 405, 284, 435, 3);
T := GetSystemTime + 9000;
while (GetSystemTime < T) and not(FindColor(x, y, 2070783, 251, 434, 286, 446)) do
Wait(100 + Random(100));
if not(FindColor(x, y, 2070783, 251, 434, 286, 446)) then
Exit;
GetMousePos(x, y);
if not(PointInBox(Point(x, y), IntToBox(227, 405, 284, 435))) then
MouseBox(227, 405, 284, 435, 1)
else
ClickMouse2(True);
while (GetSystemTime < T) and not(Result) do
begin
if LevelUp then
Wait(800 + Random(100));
AntiBan;
FindNormalRandoms;
end;
end;


begin
Smart_Server := S_World;
Smart_Signed := S_Signed;
Smart_Members := S_Member;
Smart_SuperDetail := False;
SetupSRL;
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
DeclarePlayer;
if not(LoggedIn) then
begin
LogInPlayer;
Wait(3000 + Random(2000));
SetAngle(True);
MakeCompass('n');
end else
PlayerStartTime := GetSystemTime;
repeat
if Bank then
if MixPots then
else
WriteLn('Banking')
else
WriteLn('Something weird happened..');
until not(LoggedIn);
end.

    And as a side-note, I thought I'd mention that I'm happy to see many intelligent, friendly, and helpful people in this community. It's something not found in many places on the internet, especially places relating to botting/RuneScape, and is something I hope doesn't change in the future. Thanks, and I appreciate it.

Kyle Undefined

2011-11-10 22:14:56

Not bad for a first script! I think I figured out why your script tries to mix at startup. Comment out this line:

Writeln(MixPots);
It's in your mainloop right above the repeat.

If you ever need any help, you can always ask and I'll help the best I can :)

Aegis

2011-11-10 22:26:44

From: Camo Developer
Not bad for a first script! I think I figured out why your script tries to mix at startup. Comment out this line:

Writeln(MixPots);
It's in your mainloop right above the repeat.

If you ever need any help, you can always ask and I'll help the best I can :)


Thanks! Yup, that worked! And I'll keep that in mind :)

awesomem8

2011-12-10 17:41:48

i love you

BraK

2011-12-10 17:49:10

Now that your a member you can check out my Herblore script. It's a little outdated but the stuff inside is nice. Grats on the release.

Aegis

2011-12-10 18:31:50

From: BraK
Now that your a member you can check out my Herblore script. It's a little outdated but the stuff inside is nice. Grats on the release.


Thanks! Although, I haven't touched this script in about a month now. Maybe I'll touch it up some more and have it moved to the Herblore section. Seeing how I also know quite a bit more since initially creating this.

I was going to just abandon this script, seeing how another AIO Herblore script was released just prior to this. However, I've heard reports of it not working, so I'll possibly add some stuff to this, and make it an AIO.

We'll see.

putonajonny

2011-12-10 18:56:12

Is this the script you applied for SRL membership with? I'm applying soon and I'm interested in the standard required

RISK

2011-12-10 18:57:15

No, it's not the script they applied with.

From: putonajonny
Is this the script you applied for SRL membership with? I'm applying soon and I'm interested in the standard required

awesomem8

2011-12-11 01:44:51

best script on this site!! hands down!

only problem is that it doesnt enter bank pin for some reason. but if you do it manually it works for 6 hours!!! epic!

Aegis

2011-12-12 00:02:35

From: awesomem8
best script on this site!! hands down!

only problem is that it doesnt enter bank pin for some reason. but if you do it manually it works for 6 hours!!! epic!


Well, I'm glad you feel that way! But in all honesty, it's not :P

Also, for the PIN issue, I just realized that I accidentally removed the PinScreen check. (Because I'm not using a regular banking method)

I'll PM you the simple fix and then add it here.

awesomem8

2011-12-12 02:43:23

Thank you for the perfect update!

I showed all my rs mates this script and they all joined this site to use it :))))

awesomem8

2011-12-12 16:53:13

If this script cost money, I would buy it, it would be worth every cent.


awesomem8

2011-12-12 17:13:35

gonna go for 99 :p

shstiger2009

2011-12-12 17:51:53

I think I may add a few more AntiBans…but besides that, this script is full of win! Thanks :)

Aegis

2011-12-13 19:24:00

Thanks everyone :P


From: awesomem8
If this script cost money, I would buy it, it would be worth every cent.



By the look of your account, you look to be a pure? Nice :P

Congrats on the progress! I hope your friends achieve their goals as well :)

If you didn't see, I achieved 99 Herblore on my own pure not too long ago. And 95 prayer from my Gilded Altar script :)

awesomem8

2011-12-13 19:34:14

only thing which i changed is this "T := GetSystemTime + 9000;" to "T := GetSystemTime + 16500;" so that it can do 14 ingredients together. + 9000 is not enough time for the mixing :p. My next post will be when i hit 99, Im 98 atm.

awesomem8

2011-12-13 19:36:57

And I'm impressed with the gilded alter bot wow!

Aegis

2011-12-13 22:27:56

From: awesomem8
only thing which i changed is this "T := GetSystemTime + 9000;" to "T := GetSystemTime + 16500;" so that it can do 14 ingredients together. + 9000 is not enough time for the mixing :p. My next post will be when i hit 99, Im 98 atm.


Yeah, that's because this was made as a Serum 207'er. I knew it would work for other potions, but I hadn't tested the different mixing-durations.


From: awesomem8
And I'm impressed with the gilded alter bot wow!



Thanks, but try not to double post though! Just edit your previous post ;)

shstiger2009

2011-12-13 22:46:42

Only thing I can find is that when you run out of potions, if you aren't baby sitting, it'll keep looping over and over. I changed my MousePos to 0, 0 and 1, 0 and only have those 2 items in the certain tab. Maybe needs a function so when it stops withdrawing, it knows it's time to logout. Everything else works fine!

awesomem8

2011-12-14 00:02:52

Thank You So Much!



poptarts

2011-12-14 20:21:36

:O

Congratulations on your SRL membership, i'm jelly. I'm going to try coding over winter break, and hopefully one day i'll become a SRL member. I haven't tried out your scripts yet, but they seem great.

I'll edit this post with useful feedback once I have a chance to test this out.

Orc knight53

2011-12-14 20:45:33

Great bot, super stable and amazingly fast for a colour bot!!! PLZ make it into AIO the other one at the moment is quite bad!

shstiger2009

2011-12-14 21:06:46

From: Orc knight53
Great bot, super stable and amazingly fast for a colour bot!!! PLZ make it into AIO the other one at the moment is quite bad!


It actually is. Just put whatever you want it to mix in those spots and it'll work just fine.

i386

2011-12-18 14:26:25

Great script. However, it occasionally missed the bank chest.

shstiger2009

2011-12-18 14:48:58

From: i386
Great script. However, it occasionally missed the bank chest.


Misclicks can be good! Good anti ban method.

awesomem8

2011-12-18 16:01:49

From: i386
Great script. However, it occasionally missed the bank chest.


haters just hate……if anyone says "omg it will take the bot an extra 1min per hour longer than a legit person because of a misclick once in a long time".

Tell them to have fun doing it by hand and that they may get more xp per hour if they never misclick.

The fact is that this boss script works for 6 hours straight and never fucks up making it one of the most stable scripts on this site.

RedWz

2011-12-27 15:32:01

Has anyone else been having problems related to this script just hovering the items in your bank? I've had it successfully running for quite a while, but as of yesterday, it does everything but withdraw the items correctly now. If I leave the unfinished tarromin potions and ashes in the inventory, it will make the potions, then bank…but after opening the bank it will hover random items all over the bank screen, never getting to the two spots that are designated for it to withdraw from.

gaetano

2011-12-27 16:20:19

Doesn't just do Serums, just put any ingredient and unf potion in the right spot and itll still do it. got from 60-89 herb with this script. Thanks :)

RedWz

2011-12-27 20:16:10

From: gaetano
Doesn't just do Serums, just put any ingredient and unf potion in the right spot and itll still do it. got from 60-89 herb with this script. Thanks :)


Yes, I understand this, but in this particular case I happen to be doing serums…also, the issue still stands as to the script not being able to withdraw anything from the bank. I was asking if anyone had used this recently (such as, within the past day) and have had any similar issues, or if anyone can figure out what might be causing this issue. As previously stated, the script *was* working flawlessly for me.

awesomem8

2011-12-27 20:30:45

Script still works flawlessly for 6 hours till logout.

awesomem8

2011-12-28 19:14:02

May I ask, why, if it gets logged out, it doesn't recognize the login screen? Is there a way to fix that?

awesomem8

2012-01-01 19:32:25

for some reason the crash smart mod doesnt seem to work for me when i use this script? i think its because it doesnt realise its been logged out at all and doesnt even try to log back in?

awesomem8

2012-01-03 08:58:01

Can someone please help. this script doesnt try log back in if it logs out in the middle?

awesomem8

2012-01-04 04:49:48

Can someone please help fix the issue of this script not logging back in if it gets logged out?

thanks

lays

2012-01-05 05:30:58

nevermind :p

awesomem8

2012-01-05 21:21:15

Can someone please help fix the issue of this script not logging back in if it gets logged out?

limitless

2012-01-06 20:32:35

how do i paste it into simba because when i do it only goes on 1 line?

limitless

2012-01-06 23:54:50

the only thing that didnt work on it for me is when it went to deposit items in bank it clicked deposit money pouch instead of deposit inventory

ernestthechicken

2012-01-10 20:50:16

Props dude; i'm making 200k serums right now! 100M cost .. insane cheap

matan50010

2012-01-11 07:41:09

pro scriprt!! but you need to update it… beacuse its not working any more..
its login and left click on ash and does nothing

Bailey888

2012-01-11 07:49:10

Is this script fixed now or does it still click the money pouch icon instead of the deposit items one?

ernestthechicken

2012-01-11 12:40:43

" if (ChooseOptionMultiEx(S, TextType, Action)) then "

[Error] C:\Simba\Includes\SRL/SRL/core/timing.scar(189:9): Unknown identifier 'ChooseOptionMultiEx' at line 188
Compiling failed.

it used to work just fine!

matan50010

2012-01-11 13:14:50

^^ where i need to add this to?

phamxboa

2012-01-11 21:52:42

is it possible for someone to fix the deposit all issue? I tried finding the code for that but I'm not a scripter so I can't figure out which part of the script to edit

matan50010

2012-01-12 12:26:31

can someone update the script?

'Toxin

2012-01-12 13:07:15

Looks promising :) Still struggling sometimes with some clicks, but nonetheless, very nice :)

matan50010

2012-01-12 13:21:07

the script isnt working!! please update it!!
it wont withdraw items

laakerules

2012-01-14 00:33:47

It wont withdraw items. Does this have something to do with srl5?

matan50010

2012-01-16 16:06:18

Can someone please update the script ?

poptarts

2012-01-16 19:17:14

It's pretty simple to update the script– all it needs is upgrading to SRL5 (and fix your own Simba client if there's problems; e.g. update your text.simba)

updated to SRL5:
program Serum207Maker;
{$DEFINE SMART}
{$i SRL\SRL.simba}


const
S_World = 65;
S_Signed = True;
S_Member = True;


procedure DeclarePlayer;
begin
with Players[0] do
begin

Name := 'poptarts';
Pass := 'poptarts';
Pin := 'PINHERE';
Active := True;
end;
end;


procedure AntiBan;
var
Int: Integer;
begin
Wait(300 + Random(40))
Int := Random(100);
if (Int <= 91) then
Exit;
Writeln('AntiBanned [' + ToStr(Int) + ']');
case Int of
92..94: MakeCompass(rs_GetCompassAngleDegrees + RandomRange(-185, 360));
95..96:
begin
SetAngle(SRL_ANGLE_NONE);
SetAngle(SRL_ANGLE_HIGH);
end;
97: HoverSkill(SKILL_HERBLORE, False);

98..99: PickupMouse;
end;
end;

function Bank: Boolean;
var
X, Y: Integer;
begin
FindNormalRandoms;
if (FindObjCustom(X, Y, ['Bank','nk ch','k che','chest'], [2963780,10724266,10000542,5592409], 3)) then
Mouse(X, Y, 0, 0, True);
Wait(1500 + Random(300));
if (PinScreen) then InPin(Players[CurrentPlayer].Pin);
begin
depositAll;
if Withdraw(8, 3, 14) then
if Withdraw(9, 3, 14) then
Result := True;
end;
if BankScreen then
CloseBank;
FindNormalRandoms;
end;


function MixPots: Boolean;
var
x, y, T: Integer;
B: TBox;
begin
if (InvFull) then
Wait(300 + Random(50));
InvMouse(1, 1);
InvMouse(15, 1);
MouseBox(227, 405, 284, 435, 3);
T := GetSystemTime + 9000;
while (GetSystemTime < T) and not(FindColor(x, y, 2070783, 251, 434, 286, 446)) do
Wait(100 + Random(100));
if not(FindColor(x, y, 2070783, 251, 434, 286, 446)) then
Exit;
GetMousePos(x, y);
if not(PointInBox(Point(x, y), IntToBox(227, 405, 284, 435))) then
MouseBox(227, 405, 284, 435, 1)
else
ClickMouse2(True);
while (GetSystemTime < T) and not(Result) do
begin
if LevelUp then
Wait(800 + Random(100));
AntiBan;
FindNormalRandoms;
end;
end;


begin
Smart_Server := S_World;
Smart_Signed := S_Signed;
Smart_Members := S_Member;
Smart_SuperDetail := False;
SetupSRL;
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
DeclarePlayer;
if not(LoggedIn) then
begin
LogInPlayer;
Wait(3000 + Random(2000));
SetAngle(SRL_ANGLE_HIGH);
MakeCompass('n');
end else
PlayerStartTime := GetSystemTime;
repeat
if Bank then
if MixPots then
else
WriteLn('Banking')
else
WriteLn('Something weird happened..');
until not(LoggedIn);
end.

still needs more tweaking however