SRL Archive - OSR Outdated / Broken Scripts

Silk stealer


Sokil59

2013-02-26 18:02:29

This script Steals the silk from stalls if you are a SRL member+ Donator please pm me and I will pm you back this script, For those that Aren't Srl members+ Donators you'll have a sample script. While running this script please make sure you run it in a highly populated world at first.



Version 1.0



What I want to Add:
-Randoms
-Failsafing Guards
-Fur Stall
-Comment for more


Sample Script:


procedure SilkTheiver;

var
x, y: integer;

begin

repeat
if FindColorTolerance(x, y, 10321047, 4, 4, 515, 337, 4) then
begin
MMouse(x, y, 2, 2);
Wait(50)
ClickMouse2(Mouse_left);


end;
until(P07_InvFull)
end;



begin
SetupP07Include;
SilkTheiver;
end.


Hexys

2013-02-26 18:05:35

You probably should add some anti-leech (think its an have to).

Other than that, thanks im learning alot from reading scripts like this and hopefully will be able to release my own one to the community one day. :o

Jordan155

2013-02-26 18:15:12

No way of adding in the ability to flea or fight back if a guard attacks? I have been thinking of that for a little while.

hillzyy

2013-02-26 18:23:50

Would you mind if I used this as a template to learn from, maybe o try to add banking and perhaps change it to fur? Seems like a great starting point!

DrChill

2013-02-26 18:25:47

SilkTheiver -> SilkThiever

Looks good so far, you might want to ad some form of antiban, or make it take breaks :)

Anti-leech is not required, and I think we should have some scripts that are fully functional from the get-go. I remember first attempting to get Simba set up, and one thing that confused me was whether or not it was breaking because of anti-leech or just my setup breaking.

azaghul

2013-02-26 18:48:51

why do i get this error?

[Error] (11:2): Unknown identifier 'MMouse' at line 10
Compiling failed.

sprunt

2013-02-26 18:56:46

From: azaghul
why do i get this error?

[Error] (11:2): Unknown identifier 'MMouse' at line 10
Compiling failed.


Thats the anti-leech

azaghul

2013-02-26 18:59:20

but there is no anti-leech like he said?

The Mayor

2013-02-26 19:03:06

From: azaghul
why do i get this error?

[Error] (11:2): Unknown identifier 'MMouse' at line 10
Compiling failed.


Becuase this script is only half finished. You need to include {$I SRL/SRL.Simba} at the top for SRL fuctions to work.

sprunt

2013-02-26 19:06:42

maybe add a log in?

azaghul

2013-02-26 19:10:06

End.
' used from 'C:\Simba\SilkThiever.simba' I get that error after I add {$I SRL/SRL.Simba}

azaghul

2013-02-26 19:14:12

if i do it like this

Program SilkThiever;
{$I SRL/SRL.Simba}
{$I P07Include.Simba}

SetupSRL;
P07_DeclarePlayer;
SetupP07Include;
procedure SilkTheiver;
var
x, y: integer;

begin

repeat
if FindColorTolerance(x, y, 10321047, 4, 4, 515, 337, 4) then
begin
MMouse(x, y, 2, 2);
Wait(50)
ClickMouse2(Mouse_left);


end;
until(P07_InvFull)
end;



begin
SetupP07Include;
SilkTheiver;
end.program new;
begin
End.
like I have no clue, i'm just trying please help.

0wnedYU

2013-02-26 19:20:44

Careful with this script. Looks extremely bannable.

Itankbots

2013-02-26 19:23:39

Im Sorry, but you really shouldnt learn from this "script", its 5 lines and is missing all the basics.

Read the tutorials in the basic scripting section if your interested in learning how to script

rj

2013-02-26 20:04:00

No point in having anti-leech with a banhammer script.

Sokil59

2013-02-26 20:28:26

From: rjj95
No point in having anti-leech with a banhammer script.


that's the point if they want banking and anti-ban they should add it in themselves

xavier111

2013-02-26 20:32:31

From: rjj95
No point in having anti-leech with a banhammer script.

From: 0wnedYU
Careful with this script. Looks extremely bannable.


Agreed. This is the second script I've seen that has extremely high ban risks. There should be another subsection in this Old School Scripts called "First Scripts" or "Script Help", for help with 2007scape scripting.

rj

2013-02-26 20:36:19

From: Sokil59
that's the point if they want banking and anti-ban they should add it in themselves


Most people here can't do that themselves they trust the script writer to release a script that has decent anti ban, any script released should have decent antiban, no antiban shouldn't be apart of any antileech that's just lazy on the script writers part.

stlwbk

2013-02-26 23:28:03

I've been trying to code my own silk seller. I really am trying I have been reading through the things (im about half way through) and have made like a counter and things for my script. If I had a fully functioning script *any type of script* just so I can see how it looks and works and things like that IT WOULD HELP DRAMATICALLY. I have seen the 07 scripts available on the forums but because of this anti-leech stuff *Don't have anything against it just its impeding my learning* I can download them and look at code to see how a full script works and functions. Working of an example for your first script is great. I have programming experience in simple languages such as quick basic and visual basic and some java but this is quite difficult because of all the functions that interact with the game. If someone could provide me with a full script of something similar to the project im looking to script that would be amazing. You can do whatever you want to it to make it not run but I just really need an example of some sort.

Thanks for your time I really appreciate it.

prezident

2013-02-27 01:44:36

From: Hexys
You probably should add some anti-leech (think its an have to).

Other than that, thanks im learning alot from reading scripts like this and hopefully will be able to release my own one to the community one day. :o


Agreed, thank you a lot. Brand new here to the community and trying to read these scripts to learn(I learn best that way). I kept failing on trying to make this exact script, but I realize how to change some things now. Thank you again!

Bago47

2013-02-27 06:17:04

I'm new here and would need some help setting up the script (preferably over team viewer)… willing to pay! But can someone modify it so it would steal at fur stall (which is just south of silk one)?

PS:
I know I sound like a leecher (which I probably am) but I'll pay for help!

Le_don

2013-02-27 07:13:20

From: Jordan155
No way of adding in the ability to flea or fight back if a guard attacks? I have been thinking of that for a little while.


Maybe there's a function in the include.

You could make a function to search for a bitmap of the healthbar above your head? If it finds it it could run away along a set path. Failsafe would be after it moves to check if the health bare is still in the same place? If it is it'll be you, if it's not it will be someone else.

Healthbar should be in the same place because the camera is fixed on you and the healthbar is 2d.

edit:

Maybe colour of the green part of the healthbar would be better than a bitmap.

Sokil59

2013-02-27 08:49:23

This is really easy to do just do it yourself or ask for help in the irc.

Sokil59

2013-02-27 08:51:48

Other people are going to be attacked as well I don't want it to be constantly running away and If you run this in a highly populated area then I doubt the few gaurds will attack you as soon as you get there. I've been running this for 4hrs with a banking feature and I'm currently getting 500-700 silks p/hr going to release the full version just as soon as I finish up with some bugs.

Jordan155

2013-02-27 12:51:48

From: Sokil59
Other people are going to be attacked as well I don't want it to be constantly running away and If you run this in a highly populated area then I doubt the few gaurds will attack you as soon as you get there. I've been running this for 4hrs with a banking feature and I'm currently getting 500-700 silks p/hr going to release the full version just as soon as I finish up with some bugs.


That's more than I am getting legit! lol

Jew

2013-02-27 16:32:52

From: Hexys
You probably should add some anti-leech (think its an have to).

Other than that, thanks im learning alot from reading scripts like this and hopefully will be able to release my own one to the community one day. :o

i release my sperm into the community every day.

mcbain

2013-02-27 17:09:29

From: Sokil59
Other people are going to be attacked as well I don't want it to be constantly running away and If you run this in a highly populated area then I doubt the few gaurds will attack you as soon as you get there. I've been running this for 4hrs with a banking feature and I'm currently getting 500-700 silks p/hr going to release the full version just as soon as I finish up with some bugs.


I look for the hp bar and then if i find it, check to see if my hitpoints are below the maximum. :) works quite well, and looks like a normal human like action. (since its what i do anyway :D)

Sokil59

2013-02-27 17:15:18

From: mcbain
I look for the hp bar and then if i find it, check to see if my hitpoints are below the maximum. :) works quite well, and looks like a normal human like action. (since its what i do anyway :D)

Thanks I'll try to implement this in the future currently working on solving banking though.

Sokil59

2013-02-27 18:28:01

Finished the script I added a few anti-bans, walking and a decent banking method. Looking to make this flawless but currently working on a anti-leech.

Jordan155

2013-02-27 18:41:28

Will try it out after release.

Let me know if you need any help

Sokil59

2013-02-28 10:33:10

Fixed some errors last night and i went tto bed before i could release the script I'll be releasing the script after i get home i still don't know how to put the anti-leech (idk if i should breakt the code apart and let you fix it) but none theless any member+ can pm me for no anti-leech.

Neodymium

2013-02-28 11:04:23

From: Sokil59
Fixed some errors last night and i went tto bed before i could release the script I'll be releasing the script after i get home i still don't know how to put the anti-leech (idk if i should breakt the code apart and let you fix it) but none theless any member+ can pm me for no anti-leech.

What most people do is throw in syntax errors, change some method names, comment out code, and remove them (with hints that there is code missing there).

Sokil59

2013-02-28 11:30:03

From: Neodymium
What most people do is throw in syntax errors, change some method names, comment out code, and remove them (with hints that there is code missing there).


That's what I planned on doinng.

Jordan155

2013-02-28 13:38:32

Yeah, just adding in some syntax errors and removing some semi-colons and junk like that.

Also you can leave out some end; and just make it some complete leechers who have no idea what they're doing will never fix it.

mcbain

2013-02-28 14:59:29

From: Sokil59
Thanks I'll try to implement this in the future currently working on solving banking though.


You are welcome :)

Banking is easy, search up a tutorial on TPA's (great at finding colors) and use ACA(autocolor aid, again search up tutorials) then use these two very powerful tools to find the colors of the bank with ease and precision.

Good luck in scripting!

Jordan155

2013-02-28 18:09:07

Wrong thread. Sorry

Sokil59

2013-02-28 18:24:47

Script Is Finished releasing it now :)

Jordan155

2013-02-28 18:46:20

From: Sokil59
Script Is Finished releasing it now :)


Will test once released :)

Sokil59

2013-02-28 18:49:42

From: Jordan155
Will test once released :)



It is released any Srl Member+donator can have my script other people could just have a sample.

Jordan155

2013-02-28 18:53:43

From: Sokil59
It is released any Srl Member+donator can have my script other people could just have a sample.


Just read that.. Darn.

You should probably consider applying for SRL Member with this script then if it won't be released to public.

unknownfame

2013-03-01 06:23:17

Guys if you're having problems.
Copy and paste this, it works :)
Program SilkThiever;
{$I SRL/SRL.Simba}
{$I P07Include.Simba}

SetupSRL;
P07_DeclarePlayer;
SetupP07Include;
procedure SilkTheiver;
var
x, y: integer;

begin

repeat
if FindColorTolerance(x, y, 10321047, 4, 4, 515, 337, 4) then
begin
MMouse(x, y, 2, 2);
Wait(50)
ClickMouse2(Mouse_left);


end;
until(P07_InvFull)
end;



begin
SetupP07Include;
SilkTheiver;
end.program new;
begin
End.

Jordan155

2013-03-04 03:54:47

Care to share this now that everything is becoming a bit more public? I attempted to code one of these myself but had quite a hard time with the banking.

Ashaman88

2013-07-15 17:52:11

moved to outdated. pm if/when updated /want it moved to members.