Imagine's Human Alcher
Imagine
2012-03-28 16:25:30
Please post here if you use this!
Essentially, it will Alch anything in this spot:
if you have your magic tab set up like this:

I realize it's a really easy script, but it does have a few awesome features:
Just like a real human, it only changes the mouse position about every 40-50 Alchs. (Randomized). In addition, it randomizes the time between clicks. If for some reason it does not switch back to the magic tab after clicking on the object, it'll re-open the magic tab.
It also has a decent antiban, and I've done over 50k alchs with it.
And oh yeah, it does have an INCREDIBLY simple Anti-Leech, mostly done just for teh lulz, anybody who has written a script before should have the capability to fix it.
I've decided that part of the anti-leech isn't quite so simple, so ill explain how to fix PART of it here. In the Alch procedure, it takes a random number between 0-100. You hve to change that to 0-50 or else half of the time it won't alch.
The other part is left to you ;)
m34tcode
2012-03-28 17:24:18
Ill check this out, simba crashed when I opened it lol
EDIT: Instead of Mouse(x,y,0,0,MouseLeft); you can use ClickMouse2(Mouse_Left);
Does the same thing with less code
Imagine
2012-03-28 18:18:51
^ Either one works :P But yeah, just more used to doing the normal Mouse(x, x, x, x, x)
Mikka
2012-03-28 19:59:01
The bot is a bust. It will log you in and say it has executed the task or whatever. But it has done nothing.
And oh yeah, it does have an INCREDIBLY simple Anti-Leech, mostly done just for teh lulz, anybody who has used a script before should know how to fix it.
Are you dumb or you just can't read?
.____.
Imagine
2012-03-28 20:56:15
From: Sin
Are you dumb or you just can't read?
.____.
Can't read = Dumb ;)
EDIT: Can't read = illiterate*
From: Imagine
Can't read = Dumb ;)
Not necessarily, i've seen people who can't read well but they're absolute geniuses ;)
Btw, your antileech actually confused me for a sec.
I could see no visible signs of it and didn't get any errors compiling so it freaked me out and thought you lied xD
Found out at the end what it was though xD
Imagine
2012-03-28 21:02:09
From: Sin
Not necessarily, i've seen people who can't read well but they're absolute geniuses ;)
Btw, your antileech actually confused me for a sec.
I could see no visible signs of it and didn't get any errors compiling so it freaked me out and thought you lied xD
Found out at the end what it was though xD
My bad, can't read = not educated, can still be smart though :)
y u puot antileechz? u n00b!!1!!!
Good job. :) The anti-leech made me smile and think a little.
m34tcode
2012-03-29 03:45:16
I never actually ran and looked at the anti leech, I must check this out for myself ;]
EDITGenius anti leech dude. Simple enough that anyone who tries will figure it out, but hard enough, that if they haven't scripted before they will have to work for it. Rep++ ;]
Imagine
2012-03-29 17:24:03
Okay, fixed the small bug, but there may be one more. Not quite sure yet - have to wait and see :)
m34tcode
2012-03-29 17:43:24
I can test for you in a bit ;]
Meanwhile I will look at the code again for you =]
EDIT: Ok found some stuff.
procedure SetupLogin;
begin
ClearDebug;
Smart_Server := 39;
Smart_Members := False;
Smart_Signed := False;
Smart_SuperDetail := False;
NumberofCasts := 0;
SetupSRL;
end;
Why Set Number of casts to 0?
Line 56: T := GetSystemTime + Time;
while (GetSystemTime < T) do
begin
if (GetCurrentTab = 28) then
begin
Result := True;
Exit;
end;
Wait(20 + Random(10));
end;
MarkTime and TimeFromMark, essentially do the same as you do here, and will make debugging easier, IMO.
Also get current tab will return a constant. The constant you are looking for is 'Tab_Magic'.
Line 68:GetMousePos(x, y);
X and Y are both global variables. Try using local variables instead. If you need a variable in two function, pas it as a parameter. If you want to modify the value of a parameter inside of a function, you need to place 'var' before it in the parameter list where you declare your function
Line 82:Mouse(x, y, 0, 0, 1);
Again, the use of constants will make your code easier to read, and will keep you from changes in SRL. If they change the numbers that represent tabs, it will mess up your script. However is you use the constants representing those tabs you will be fine ;]
Line 98:case random(550) of
That is a very high number, seeing as the highest anti-ban chance is 13. Anything over that does nothing. Changing that to somewhere between 30 and 50 will make your script more human ;]
Line 136:
if not LoggedIn then
TerminateScript;
Use loginPlayer; instead of TerminateScript; This will login the current player based on the values you set in 'declarePlayers'
Imagine
2012-03-29 22:30:41
From: m34tcode
I can test for you in a bit ;]
Meanwhile I will look at the code again for you =]
EDIT: Ok found some stuff.
procedure SetupLogin;
begin
ClearDebug;
Smart_Server := 39;
Smart_Members := False;
Smart_Signed := False;
Smart_SuperDetail := False;
NumberofCasts := 0;
SetupSRL;
end;
Why Set Number of casts to 0?
Progress report, it only happens once anyway - when you initialize the script.
Line 56:
T := GetSystemTime + Time;
while (GetSystemTime < T) do
begin
if (GetCurrentTab = 28) then
begin
Result := True;
Exit;
end;
Wait(20 + Random(10));
end;
MarkTime and TimeFromMark, essentially do the same as you do here, and will make debugging easier, IMO.
Also get current tab will return a constant. The constant you are looking for is 'Tab_Magic'.
Tab_Magic is equivalent to '28'. (Just like 1 is equivalent to Mouse_Left).
Line 68:
GetMousePos(x, y);
X and Y are both global variables. Try using local variables instead. If you need a variable in two function, pas it as a parameter. If you want to modify the value of a parameter inside of a function, you need to place 'var' before it in the parameter list where you declare your function
I'm using global variables because the script has the chance to change the coordinates in several different functions, so this allows say my antiban function to change the value of x & y and then have it apply in my alching function.
Line 82:
Mouse(x, y, 0, 0, 1);
Again, the use of constants will make your code easier to read, and will keep you from changes in SRL. If they change the numbers that represent tabs, it will mess up your script. However is you use the constants representing those tabs you will be fine ;]
I'm guessing you're talking about the 1 as the mousetype? I just use 1 because it's easier to type :D.
Line 98:
case random(550) of
That is a very high number, seeing as the highest anti-ban chance is 13. Anything over that does nothing. Changing that to somewhere between 30 and 50 will make your script more human ;]
It is a bit high to be honest, but I have about a 1/50 chance of activating a random. ~12/550, which was essentially what I was looking for. Having an antiban happen every 3 alchs is somewhat… excessive? But I'm not sure, I could change that :D.
Line 136:
if not LoggedIn then
TerminateScript;
Use loginPlayer; instead of TerminateScript; This will login the current player based on the values you set in 'declarePlayers'
I could do that, however, I do have a reason for having TerminateScript. At the moment, the script will run for 5+ hours (until the client token failure), so I'd need to have the script re-start SMART in order to be able to log back in. (Even a brand new account can't log into the same SMART app after 6 hours.)
Thanks for your feedback though - I hope I don't sound too snotty, I'm just telling you the reasons why everything/most things are the way they are. :p
[XoL]
2012-03-29 22:46:45
Haha interesting first script I have checked out in ages, nice job with the anti-leech clever.
m34tcode
2012-03-29 23:07:19
AI beleive if loginplayer detects client token failure it will terminate the script. It seems to do that.
As for globasl, I didnt not look deep into what it actually does so that could be fine.
As for constants, Constants are subject to change, and if they do, It will mess up your script. The few extra characters is more than worth it. It also self documents your code. I have no idea what GameTab(24) does off the top of my head. I do know that GameTab(Tab_Inv) will switch to the inventory ;]
Imagine
2012-03-30 06:46:31
Fair enough, I'll switch the constants :)
And thanks R4ndom :)
Imagine
2012-04-02 18:29:20
19 views :D
xEuphoria
2012-04-09 09:23:34
Hey,
I am fairly new to all this so it's probably an amateur mistake, but when I play the script this comes up…
We have setup
**************************************************************
**** Number of Casts: 1
**** XP Gained: 65
**************************************************************
Successfully executed.
It only does one alch…
How do I get the script to constantly alch instead of doing it only once?
Thanks
Imagine
2012-04-09 17:07:25
There's a very simple antileech on it, if you look at some other scripts/begin to script you should be able to fix it rather quickly.
My god, it's like the questions about the anti leech keep "repeating and repeating until false"…
m34tcode
2012-04-09 19:04:30
While true do
BugMembersAndScriptersTillTheyFixForME;
^ with no wait between iterations o.O
Imagine
2012-04-09 20:35:28
From: m34tcode
While true do
BugMembersAndScriptersTillTheyFixForME;
^ with no wait between iterations o.O
Ohno that causes the fata lerror of too much cpu usage (or leeching, for short)
m34tcode
2012-04-09 20:52:45
Seems to be an accurate analyses of 'Villavu.com' We need better AntiLeechWare =\
Imagine
2012-04-18 22:09:11
98 downloads, no more responses/rages? This is disappointing :/
Tboss
2012-04-19 03:13:36
I don't see why you put antileech on this script. This script is the same as every other alcher out there, people who can't figure this out will just use the next alcher, there's like 50 in this section.
Imagine
2012-04-19 17:14:41
Alright. Then they can use the next alcher. I put antileech on it because I have fun making them. Is there a problem?
Imagine
2012-04-22 09:28:34
Leaked some of the anti-leech :)
nubsinc
2012-04-22 09:44:58
thank you for the script! :) working good :D
Imagine
2012-04-24 22:52:26
^ Thanks man :) Glad you figured out the anti-leech.
Itankbots
2012-04-24 23:26:15
Good simple script man. works well. (only watched first 400 alchs but going nicely :P)
Btw your anti leech confused the hell out of me at first lmao. then was like ….#facepalm
[D]ude
2012-04-25 01:44:28
I've decided that part of the anti-leech isn't quite so simple, so ill explain how to fix PART of it here. In the Alch procedure, it takes a random number between 0-100. You hve to change that to 0-50 or else half of the time it won't alch.
The other part is left to you
-imagine
Best anti-leech is no anti ban. When all the leechers figure this out, they won't have any more accounts to bot on.
Imagine
2012-04-25 19:02:28
^ That's a pretty good one too haha. Unfortunately I've botted 99 magic on a shitty account using an autoclicker, so I doubt that Jagex really cares about that :'(
mahoney
2012-04-25 19:43:58
Great script!! I've been messing around with several different alching scripts and this one is my favourite :) I've been saving my proggies from scripts, I'll post mine when I find it!
Edit:
Couldn't find it so ran it again lol
**************************************************************
**** Number of Casts: 100
**** XP Gained: 6500
**************************************************************
I had to change a few things in the script though; on a few magic scripts the scripter posts pictures of the layout of the magic book, and theirs always looks different to mine (has crossbow and other icons, members maybe?) so I just changed the coordinates and a few other little tweaks, only personal preference things :P
Great script, nice easy to read code and does the job!
Imagine
2012-04-27 21:15:36
From: mahoney
Great script!! I've been messing around with several different alching scripts and this one is my favourite :) I've been saving my proggies from scripts, I'll post mine when I find it!
Edit:
Couldn't find it so ran it again lol
**************************************************************
**** Number of Casts: 100
**** XP Gained: 6500
**************************************************************
I had to change a few things in the script though; on a few magic scripts the scripter posts pictures of the layout of the magic book, and theirs always looks different to mine (has crossbow and other icons, members maybe?) so I just changed the coordinates and a few other little tweaks, only personal preference things :P
Great script, nice easy to read code and does the job!
Thank you for the proggy :)
Glad you figured out the anti-leech.
cluo40
2012-04-28 00:37:30
From: Sin
My god, it's like the questions about the anti leech keep "repeating and repeating until false"…
i see what you did thar ;), either way, this looks promising. I'll try to post a proggy later on this. :D
mahoney
2012-04-28 13:45:11
From: Imagine
Thank you for the proggy :)
Glad you figured out the anti-leech.
No problem :) great idea lol should be put on every script!
jrsmith7
2012-04-29 21:22:26
when ever i start the it just sits there and doesnt do shit help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1:fiery:
mahoney
2012-05-01 15:35:18
From: jrsmith7
when ever i start the it just sits there and doesnt do shit help!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1:fiery:
Gonna need a bit more information than that.
PJ_DnB
2012-05-01 17:13:00
Great script, works perfectly :)
Imagine
2012-05-01 17:30:05
From: mahoney
Gonna need a bit more information than that.
He just didn't solve the anti-leech.
mahoney
2012-05-03 10:43:51
From: Imagine
He just didn't solve the anti-leech.
Gotta love seeing a post like that from a 1-poster/new member…
Edit:
Forgot to say, script is still working fine, I can post my new proggies if you want but there isn't any problems happening! Thanks again :)
Imagine
2012-05-03 14:54:57
New proggys are always nice :)
Imagine
2012-05-05 16:53:13
Hit 200 downloads earlier :)
Imagine
2012-05-10 07:09:13
Bump/250 Views :)
Firestarmc
2012-05-11 07:51:55
how to solve anti leech -_-
ifanatic
2012-05-11 12:21:39
I have a problem, it doesent click the actual alch button..
Imagine
2012-05-13 08:42:08
From: Firestarmc
how to solve anti leech -_-
I already solved half of it in the OP :)
From: ifanatic
I have a problem, it doesent click the actual alch button..
Have you set it up correctly? (The way it shows in the pictures?)
Looks awesome so far! I used to script in scar a while back, so it took a bit of brain racking, but when I found anti-leech I felt like an idiot haha. I'll post up some proggies later, only used for like 30 mins.
Unbelievable script!! Absolutely flawless!
**************************************************************
**** Number of Casts: 4560
**** XP Gained: 296400
****************************************************************************************************************************
**** Number of Casts: 5891
**** XP Gained: 382915
**************************************************************
Have had many even better proggies, forgot to copy them… Went from 84-91 mage already in 2 days.
Imagine
2012-05-22 16:04:31
^ Thank you very much :)
Imagine
2012-05-28 16:16:02
Bump :)
maxtin5395
2012-05-29 21:41:45
my guy will alch one longbow, then it will go back to the magic tab, and just hover over the high alch button, and now its just stopped, any idea whats wrong?
Imagine
2012-05-29 23:45:23
Yeah, you didn't do the anti-leech :P
Imagine
2012-06-06 19:27:23
450 views :D
chebding
2012-06-10 23:35:59
I honestly don't know if this was your anti leach, but I added a "repeat" and an "until" and it's working :D. Oh and your little 0-100 tip was pretty much a facepalm. That was self explanatory in the script.
raptorstewie
2012-06-11 22:41:22
when i add my name in, it says:
[Error] (17:12): Unknown identifier 'parsleyman' at line 16
Compiling failed.
and the line comes up orange
Surfster
2012-06-12 10:10:05
picture doesn't come up
Imagine
2012-06-20 17:28:46
From: chebding
I honestly don't know if this was your anti leach, but I added a "repeat" and an "until" and it's working :D. Oh and your little 0-100 tip was pretty much a facepalm. That was self explanatory in the script.
Yeah, idk, felt bad :P
And you don't have to add anything to make it work :P, just change a single value in the mainloop.
From: raptorstewie
when i add my name in, it says:
[Error] (17:12): Unknown identifier 'parsleyman' at line 16
Compiling failed.
and the line comes up orange
Did you add your name between the single quotes?
From: Surfster
picture doesn't come up
What picture are you talking about?
crimeside
2012-06-23 13:49:40
Thank you