Page 4 of 7 FirstFirst ... 23456 ... LastLast
Results 76 to 100 of 169

Thread: Projectrs06 SRL Include

  1. #76
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by Sneakdella View Post
    Danny so I'm grasping the concept of SPS just a little bit. I'm still confused though... I couldnt spot a guide on SPS in the tutorials section either.
    Try http://villavu.com/forum/showthread.php?t=84360

    Thats where I originally learned how to use SPS,

    Bear in mind we're using a private server so use common sense when making a map, things in tutorials will differ very slightly, I gave an example a few posts back if you get stuck, give it a go


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  2. #77
    Join Date
    Jan 2013
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    I get:

    [Error] C:\Simba\Includes\Sps/P06sps.Simba(393:11): Unknown identifier 'P06_FindMMFlag' at line 392
    When I try to use your test run. (Varrock bank)
    Never mind, I updated everything and it works now! Thanks!
    Last edited by Dormik; 02-10-2013 at 10:50 AM.

  3. #78
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by Dormik View Post
    I get:


    When I try to use your test run. (Varrock bank)
    Never mind, I updated everything and it works now! Thanks!
    It's annoying theres no high res world map, so we have to make everything ourselves

    But it works atleast!

    Unknown identifiers will normally mean I had to add something to the original include to get something else to work and you have the previous version


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  4. #79
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by Sneakdella View Post
    Danny so I'm grasping the concept of SPS just a little bit. I'm still confused though... I couldnt spot a guide on SPS in the tutorials section either.
    The official SPS thread can be found here. Basically everything you need to know about SPS can be found there.

  5. #80
    Join Date
    Apr 2008
    Posts
    88
    Mentioned
    2 Post(s)
    Quoted
    24 Post(s)

    Default

    EDIT: Nvm

    Fixed all my issues except for the fact that I think I built my map wrong. It's not clicking anywhere when I begin the program and no errors exist in the dialog box.
    Last edited by Sneakdella; 02-10-2013 at 06:21 PM.

  6. #81
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by Sneakdella View Post
    EDIT: Nvm

    Fixed all my issues except for the fact that I think I built my map wrong. It's not clicking anywhere when I begin the program and no errors exist in the dialog box.
    show us your map


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  7. #82
    Join Date
    Apr 2008
    Posts
    88
    Mentioned
    2 Post(s)
    Quoted
    24 Post(s)

    Default

    EDIT: Still not working, just clicks once to get outside the bank and thats it. When I stand in front of a booth the mouse doesnt even move to the minimap to click.

    Da map! Made it on GIMP

    varrockbanktomine.png

    Here's the updated script that goes with it

    The procedures I included it into is ToDaBank; and WalkToMine;

    Simba Code:
    program EastVarrockMiner;
    {$I SRL/SRL.Simba}
    {$I P06Include/P06Include.Simba}
    {$I Sps/P06sps.Simba}
    //                EAST VARROCK MINER v0.3
    //            BY SNEAKDELLA ~~ FIRST SCRIPT :)
    //           TO USE THIS SCRIPT YOU NEED SPS AND P06_INCLUDE
    //
    //                -- INSTRUCTIONS --
    //      **START IN EAST VARROCK BANK FACING NORTH
    //**STAND RIGHT IN FRONT OF THE LEFT BANK BOOTHS THAT ARE OPEN
    //           (See the pictue on the forums)
    //
    ///
    ///       v0.3 UPDATE
    ///      ** Better walking method using SPS
    ///  Special Thanks to DannyRS, rrj95, Dormik for helping me with the scripts


     const
     ROCK_COLOR = 1910335; //change if needed to whatever rock you wish to mine this one is Iron.
     BANK_ICONE = 5034473; //color of the bank $
     RED_ROPE = 924553; // color of bank ropes
     var
     X, Y:Integer;
     ClickedIcone1:Boolean;
     tomine,tobank: tpointarray;

    //Info on charactars below

    Procedure P06_DeclarePlayer;
    Begin
      P06_PlayerName:='username';
      P06_PlayerPass:='password';
    End;
    procedure pathways;
    begin
    tomine:=[Point(92, 106), Point(86, 76), Point(149, 75), Point(193, 94), Point(214, 136), Point(228, 171), Point(228, 215), Point(230, 257), Point(217, 299), Point(209, 310)]
    tobank:=[Point(209, 310), Point(217, 299), Point(230, 257), Point(228, 215), Point(228, 171), Point(214, 136), Point(193, 94), Point(149, 75), Point(86, 76), Point(92, 106)]
    end;
    procedure ToggleRun;
    begin
    writeln('Toggling Run');
    sleep(1500);
    mouse(710,470,4,4,true);
    wait(700 + random(200));
    mouse(626,264,4,4,true);
    mouse(647,170,4,4,true);
    end;
    Procedure WalkToMine;
    begin
    writeln('To the mine!');
      SPS_WalkPath(tomine);
    end;

    procedure MineIron;
    begin
    if P06_InvEmpty then;
      begin repeat
        if findcolortolerance(X,Y,ROCK_COLOR,0,0,515,338,5) then
          begin
               MMouse(X,Y,5,5);
               If (P06_IsUpTextMultiCustom(['Mine Rock','ine Rock', 'ne Rock'])) Then
               ClickMouse2(mouse_left);
               wait(7000 +random(200));
          end;
            until (P06_InvFull);
          end;
       end;

    procedure ToDaBank;
    begin
    if P06_InvFull then
         begin
    SPS_WalkPath(tobank);
    writeln('Walking to the bank');
            if findcolortolerance(X,Y,BANK_ICONE,560,4,706,140,10) then
              begin repeat
                mouse(X,Y,4,4,true);
                wait(6000+random(200));
                ClickedIcone1:=true;
                until(ClickedIcone1);
              end;
          mouse (179,277,1,1,true);
    end;
    end;

    procedure FindBankk;
    Begin
    writeln('Finding the bank booth, based off the right side rope');
      if findcolortolerance(X,Y,RED_ROPE,0,0,515,338,5)  then
          begin
               Mouse(X,Y,5,5,true);
               wait(3000 +random(200));
               MMouse(225,162,5,5);
               If (P06_IsUpTextMultiCustom(['Use Bank Booth','se Bank', 'Use Bank'])) Then
                begin  repeat
                    ClickMouse2(mouse_right);
                    wait(3000 +random(200));
                    mouse(226,200,5,5,true);
               until (P06_BankScreen);

             end else  MMouse(256,189,5,5);
                        If (P06_IsUpTextMultiCustom(['Use Bank Booth','se Bank', 'Use Bank'])) Then
                        begin  repeat
                        ClickMouse2(mouse_right);
                        wait(3000 +random(200));
                        mouse(266,214,5,5,true);
                            until (P06_BankScreen);

             end else MMouse(3000,193,5,5);
                                If (P06_IsUpTextMultiCustom(['Use Bank Booth','se Bank', 'Use Bank'])) Then
                                begin  repeat
                                ClickMouse2(mouse_right);
                                wait(7000 +random(200));
                                mouse(223,201,5,5,true);
                        until (P06_BankScreen);
        end;
    end;
    end;
    procedure IfNotInBank;
    begin
    if  (Not P06_BankScreen) then
        begin
        writeln('Bot is not in the bank, finding the bank via symbol');
          if findcolortolerance(X,Y,BANK_ICONE,560,4,706,140,10) then
              begin repeat
                mouse(X,Y,4,4,true);
                wait(6000+random(200));
                ClickedIcone1:=true;
                until(ClickedIcone1);
                  if (ClickedIcone1) then
                    begin
                     FindBankk;
                    end;
              end;
    end;
    end;
    procedure PutItIn;
    begin
    writeln('Bot is sticking stuff into the bank');
    If P06_BankScreen Then P06_Deposit(0, 27, True);
    end;

    begin
      P06_DeclarePlayer;
      SetupP06Include;
      SPS_Setup(RUNESCAPE_OTHER, ['varrockbanktomine']);
      ActivateClient;
       If (Not P06_LoggedIn) Then
          P06_LogInPlayer;
          ToggleRun;
          pathways;
          WalkToMine;
          MineIron;
          ToDaBank;
          FindBankk;
            repeat
              IfNotInBank;
            until (P06_BankScreen);
          PutItIn;
    end.
    Last edited by Sneakdella; 02-10-2013 at 10:39 PM.

  8. #83
    Join Date
    Jan 2013
    Posts
    167
    Mentioned
    1 Post(s)
    Quoted
    33 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    Well if the client is blocking simba from seeing the colors correctly, then duno what else to suggest, let me know if it still doesn't work in the browser, and we can explore other possible causes
    Could you or anyone help me i keep getting needed comma heres a pic but i dont know where to put the comma (im new 2 coding)HELP COMMA.png

  9. #84
    Join Date
    Apr 2008
    Posts
    88
    Mentioned
    2 Post(s)
    Quoted
    24 Post(s)

    Default

    Quote Originally Posted by Hexless View Post
    Could you or anyone help me i keep getting needed comma heres a pic but i dont know where to put the comma (im new 2 coding)HELP COMMA.png

    You're missing a parentheses.
    Simba Code:
    {heres the correct one}

    If P06_GetUpText ('Oak') then


    I prefer the multicustom ones though, more accurate in my opinion.

    Simba Code:
    {what I prefer}

    If (P06_IsUpTextMultiCustom(['Oak','ak', 'Oa'])) Then

  10. #85
    Join Date
    Jan 2013
    Posts
    167
    Mentioned
    1 Post(s)
    Quoted
    33 Post(s)

    Default

    Quote Originally Posted by Sneakdella View Post
    You're missing a parentheses.
    Simba Code:
    {heres the correct one}

    If P06_GetUpText ('Oak') then


    I prefer the multicustom ones though, more accurate in my opinion.

    Simba Code:
    {what I prefer}

    If (P06_IsUpTextMultiCustom(['Oak','ak', 'Oa'])) Then
    Oh okay also i just got this Unexpected end of file at line 0
    Compiling failed. do you know what it is?

  11. #86
    Join Date
    Apr 2008
    Posts
    88
    Mentioned
    2 Post(s)
    Quoted
    24 Post(s)

    Default

    Quote Originally Posted by Hexless View Post
    Oh okay also i just got this Unexpected end of file at line 0
    Compiling failed. do you know what it is?

    Read this. http://villavu.com/forum/showthread.php?t=44942

  12. #87
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Nobody make a flax picker I'm going to start working on one

  13. #88
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by Sneakdella View Post
    You're missing a parentheses.
    Simba Code:
    If P06_GetUpText ('Oak') then
    Will do nothing as far as I know, P06_GetUpText returns a string, doesn't take one

    Will work but DON'T do it like this


    Simba Code:
    If (P06_GetUpText='Oak') then

    like you said, use something like

    Simba Code:
    If (P06_IsUpTextMultiCustom(['down Oak','Oak', 'ak'])) Then
    Last edited by DannyRS; 02-10-2013 at 08:56 PM.


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  14. #89
    Join Date
    Jan 2013
    Posts
    52
    Mentioned
    0 Post(s)
    Quoted
    19 Post(s)

    Default

    Would it be easier to use the PTR server for creating maps for SPS since there is barely anyone around and you wouldn't need to get rid of the white dots. (Forgive me if I'm wrong i've just started learning about SPS!)

  15. #90
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by Janus View Post
    Would it be easier to use the PTR server for creating maps for SPS since there is barely anyone around and you wouldn't need to get rid of the white dots. (Forgive me if I'm wrong i've just started learning about SPS!)
    Yes thats what I do!


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  16. #91
    Join Date
    Apr 2008
    Posts
    88
    Mentioned
    2 Post(s)
    Quoted
    24 Post(s)

    Default

    Now installing this is retard proof hopefully if my instructions aren't that bad.


  17. #92
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by Sneakdella View Post
    Now installing this is retard proof hopefully if my instructions aren't that bad.
    Wow nice will help a lot of Simba noobs installing


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  18. #93
    Join Date
    Jul 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    I have been trying for the last 30 minutes to get my willow cutter to bank.I can get it to walk to the bank but then i cannot seem to get it to banker i tried using colour and TPA's. But no success can anyone help me get the right colour or point me in a direction of how to do it? The bank im trying to do it with is Draynor

  19. #94
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by imangry View Post
    I have been trying for the last 30 minutes to get my willow cutter to bank.I can get it to walk to the bank but then i cannot seem to get it to banker i tried using colour and TPA's. But no success can anyone help me get the right colour or point me in a direction of how to do it? The bank im trying to do it with is Draynor
    Have you considered trying the SPS beta?


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  20. #95
    Join Date
    Jan 2013
    Posts
    52
    Mentioned
    0 Post(s)
    Quoted
    19 Post(s)

    Default

    Hey Danny,

    On my thread you asked me to test ActivateClient for you, well it was working but lately it has simply been closing my client and causing errors so i'm guessing it's not working. Maybe you could make an P06_ActivateClient if you have the time?
    Last edited by Janus; 02-14-2013 at 08:08 PM.

  21. #96
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by Janus View Post
    Hey Danny,

    On my thread you asked me to test ActivateClient for you, well it was working but lately it has simply been closing my client and causing errors so i'm guessing it's not working. Maybe you could make an P06+ActivateClient if you have the time?
    its a Simba command (windows os) not a script thing, you'll just have to manually make sure the client is visible after start :/
    Last edited by DannyRS; 02-14-2013 at 07:33 PM.


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  22. #97
    Join Date
    Feb 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    nvm got it
    Last edited by sleepyhead; 07-01-2013 at 11:14 PM.

  23. #98
    Join Date
    Feb 2012
    Location
    Discord
    Posts
    3,114
    Mentioned
    37 Post(s)
    Quoted
    538 Post(s)

    Default

    Quote Originally Posted by sleepyhead View Post
    not workin bro
    That isn't helpful what so ever. At least explain what's "not workin" in detail so the developers of this include can figure out what's going wrong and how to fix it.

  24. #99
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by sleepyhead View Post
    not workin bro
    works for everyone else ^^ watch the setup vid / read, if you cant unzip and make folder's, your not ready to bot, and:

    Quote Originally Posted by The Killer View Post
    That isn't helpful what so ever. At least explain what's "not workin" in detail so the developers of this include can figure out what's going wrong and how to fix it.


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  25. #100
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    I got these for you incase your still doing random events dev:






    I am also working on a function that will count colors above your head (count the red colors) and calculate your HP accordingly

Page 4 of 7 FirstFirst ... 23456 ... 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
  •