Page 1 of 3 123 LastLast
Results 1 to 25 of 59

Thread: Imagine's Human Alcher

  1. #1
    Join Date
    Feb 2012
    Posts
    168
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Imagine's Human Alcher

    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
    Last edited by Imagine; 04-22-2012 at 01:27 PM.

  2. #2
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    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
    My scripts: LunarPlanker
    ---
    My Utilities: Cross Platform, Open Source, SPS Path Generator

    Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.

  3. #3
    Join Date
    Feb 2012
    Posts
    168
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ^ Either one works :P But yeah, just more used to doing the normal Mouse(x, x, x, x, x)

  4. #4
    Join Date
    Mar 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The bot is a bust. It will log you in and say it has executed the task or whatever. But it has done nothing.

  5. #5
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    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?


    .____.

  6. #6
    Join Date
    Feb 2012
    Posts
    168
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    Are you dumb or you just can't read?


    .____.
    Can't read = Dumb

    EDIT: Can't read = illiterate*
    Last edited by Imagine; 03-29-2012 at 12:58 AM.

  7. #7
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Quote Originally Posted by Imagine View Post
    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

  8. #8
    Join Date
    Feb 2012
    Posts
    168
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    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

  9. #9
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    y u puot antileechz? u n00b!!1!!!


    Good job. The anti-leech made me smile and think a little.
    Simba Code:
    (* Main *)

    repeat
      WriteLn('I am an idiot!');
    until(False);

  10. #10
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    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++ ;]
    Last edited by m34tcode; 03-29-2012 at 07:54 AM.
    My scripts: LunarPlanker
    ---
    My Utilities: Cross Platform, Open Source, SPS Path Generator

    Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.

  11. #11
    Join Date
    Feb 2012
    Posts
    168
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Okay, fixed the small bug, but there may be one more. Not quite sure yet - have to wait and see

  12. #12
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    I can test for you in a bit ;]

    Meanwhile I will look at the code again for you =]

    EDIT: Ok found some stuff.

    Simba Code:
    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:
    Simba Code:
    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:
    Simba Code:
    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:
    Simba Code:
    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:
    Simba Code:
    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:
    Simba Code:
    if not LoggedIn then
          TerminateScript;

    Use loginPlayer; instead of TerminateScript; This will login the current player based on the values you set in 'declarePlayers'
    Last edited by m34tcode; 03-30-2012 at 12:04 AM.
    My scripts: LunarPlanker
    ---
    My Utilities: Cross Platform, Open Source, SPS Path Generator

    Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.

  13. #13
    Join Date
    Feb 2012
    Posts
    168
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by m34tcode View Post
    I can test for you in a bit ;]

    Meanwhile I will look at the code again for you =]

    EDIT: Ok found some stuff.

    Simba Code:
    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:
    Simba Code:
    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:
    Simba Code:
    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:
    Simba Code:
    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 .

    Line 98:
    Simba Code:
    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 .

    Line 136:
    Simba Code:
    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.

  14. #14
    Join Date
    Oct 2011
    Location
    Chicago
    Posts
    3,352
    Mentioned
    21 Post(s)
    Quoted
    437 Post(s)

    Default

    Haha interesting first script I have checked out in ages, nice job with the anti-leech clever.




    Anti-Leech Movement Prevent Leeching Spread the word
    Insanity 60 Days (Killer workout)
    XoL Blog (Workouts/RS/Misc)

  15. #15
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    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 ;]
    My scripts: LunarPlanker
    ---
    My Utilities: Cross Platform, Open Source, SPS Path Generator

    Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.

  16. #16
    Join Date
    Feb 2012
    Posts
    168
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Fair enough, I'll switch the constants

    And thanks R4ndom
    Last edited by Imagine; 03-30-2012 at 10:26 PM.

  17. #17
    Join Date
    Feb 2012
    Posts
    168
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    19 views

  18. #18
    Join Date
    Apr 2012
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  19. #19
    Join Date
    Feb 2012
    Posts
    168
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.

  20. #20
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    My god, it's like the questions about the anti leech keep "repeating and repeating until false"...

  21. #21
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    While true do
    BugMembersAndScriptersTillTheyFixForME;

    ^ with no wait between iterations o.O
    My scripts: LunarPlanker
    ---
    My Utilities: Cross Platform, Open Source, SPS Path Generator

    Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.

  22. #22
    Join Date
    Feb 2012
    Posts
    168
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by m34tcode View Post
    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)

  23. #23
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    Seems to be an accurate analyses of 'Villavu.com' We need better AntiLeechWare =\
    My scripts: LunarPlanker
    ---
    My Utilities: Cross Platform, Open Source, SPS Path Generator

    Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.

  24. #24
    Join Date
    Feb 2012
    Posts
    168
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    98 downloads, no more responses/rages? This is disappointing :/

  25. #25
    Join Date
    Jan 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •