Results 1 to 1 of 1

Thread: SoulSplit/Torva Auto-Buyer

  1. #1
    Join Date
    Apr 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default SoulSplit/Torva Auto-Buyer

    This is my very first attempt at Pascal scripting so be kind please! I didn't see one of these on here already and it didn't require any walking so it was good for my first attempt. I'm currently using it to buy Dragonstone so I'll try to add something that will automatically cut the dragonstone and turn them into bolt tips if anyone wants to help me with that!

    It is a basic auto-buyer using colors and the "Buy 10" bitmap. All you have to do is replace the "ItemColor=" with the color you want the bot to click on.

    *NOTE*
    It seems to bug out sometimes and not let you press "F2" to stop the script so only carry the money you are willing to spend or it might got overboard on you.

    Source:

    Code:
    //Simba Autobuyer Script
    //Author: SSYN/C130s
    program AutoBuyer;
    
    var
    x,y: Integer;
    Bmp: Integer;
    
    const
    ItemColor= 7277398;
    
    procedure LoadBmps;
    begin
     Bmp := BitmapFromString(15, 7, 'meJxzD4l1D4n9DwYMDAzuqFwgiUc' +
           'WUzGEJKgYYizxiiEi+BWjuQTCgLORAZp6uEqIIAMGgKtHEwEA9Cah' +
           'cA==');
    end;
    
    procedure RightClickItem;
    begin
    if(FindColor(x,y,ItemColor,27,24,501,320)) then
     begin
      MoveMouse(x,y+random(3));
      Wait(100);
      ClickMouse(x,y,mouse_Right);
      Wait(100);
     end;
    end;
    
    procedure LeftClickItem;
    begin
    if(FindBitmap(Bmp,x,y)) then
     begin
      MoveMouse(x,y+random(3));
      Wait(100);
      ClickMouse(x,y,mouse_Left);
     end;
    end;
    
    procedure FreeBmps;
    begin
     FreeBitmap(Bmp);
    end;
    
    begin
     repeat
     LoadBmps;
     RightClickItem;
     LeftClickItem;
     FreeBmps;
     until(false);
    end.
    Attached Files Attached Files

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
  •