Page 3 of 7 FirstFirst 12345 ... LastLast
Results 51 to 75 of 164

Thread: RISK's Range Guilder

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

    Default

    Thanks for the report. Yeah, it will attack a guard every now and then. I have a check for it to run away in that case. But it isn't working right now because I think SRL's srl_InFight is broken at the moment. I might end up having to write my own version of it.

    You can increase the speed of the script's clicking to your liking in the options in DeclarePlayers. It's hard to find a spot that everyone is happy with, so I made it user customizable if they so choose.

    I'll see what I can do in terms of improving the speed without loss of efficiency though.


    Again, thank you very much for your report, Naggiii! I really appreciate it. I hope you're enjoying my script and if you or anyone else has any more reports or suggestions, you can post them here or PM them to me. I'm always open to suggestions and especially criticism!
    Simba Code:
    (* Main *)

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

  2. #52
    Join Date
    Feb 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    doesn't work for me, it just stands there or runs towards the target

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

    Default

    Can you give the debug after enabling debug mode, please? Also, do you have the latest version?

    To enable debug mode please go to the top of the script and change 'ENABLE_DEBUG_MODE = False;' to 'ENABLE_DEBUG_MODE = True;'


    Thanks!


    E:
    1.0.3a released and updated to the first post. I found a few bugs that I didn't feel warranted a new entire version update.
    Thanks. 1.0.4 will be out tomorrow with paint report, stat reporting(Maybe) and the break system.
    Last edited by RISK; 02-26-2012 at 03:06 AM.
    Simba Code:
    (* Main *)

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

  4. #54
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default

    Hey RISK- does your script sometimes run towards the target,even if it clicks "Fire-At" ?

    I'm having an issue with that with my script. No matter what, even if "Fire-at" is chosen, it will run towards the target sometimes. Did you ever experience this issue?

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

    Default

    Yeah, that's a problem for the back right targets, right? I had that problem a few times, that's why instead of using DTMs to find the targets (Just a silly thing I decided to do), I made a non CTS 2 version of my mousing function that uses TPAs and ATPAs. You can borrow it if you want. It'll get the closest target to the center of the screen.

    By the way, you should do a check to see if you have moved out of the range and attempt to fix it by walking back to the proper zone. That's what I do since misclicks seem to be very hard to avoid with the script sometimes due to different computers and latency.

    Just in case: W and H in my function are the width and height of the pixel, so you should set those to about 10 ~ 15 for the targets.

    Here it is:
    Simba Code:
    // Non CTS 2 version of R_MouseTPA
    function R_MouseObj(Text: string; Col, Tol, W, H: Integer): Boolean;
    var
      X, Y, I, T, maxT: Integer;
      P: TPoint;
      TPA: TPointArray;
      ATPA: T2DPointArray;
    begin
      if (not(LoggedIn)) then
        Exit;
      FindNormalRandoms;

      I := 0;
      T := 0;
      maxT := (RandomRange(15000, 25000));

      MarkTime(T);

      repeat
        if (not(LoggedIn)) then
          Exit;
        FindNormalRandoms;

        if (TimeFromMark(T) >= maxT) then
        begin
          Write('We were unable to find the object.');
          Result := False;
          Exit;
        end;

        FindColorsSpiralTolerance(X, Y, TPA, Col, MSX1, MSY1, MSX2, MSY2, Tol);
        if (Length(TPA) > 0) then
          Break;

        Write('The object is not on the screen. Waiting.');
        AntiBan;
        Wait(RandomRange(500, 1500));
      until(False);

      // What to do if the length of TPA is greater than 0
      ATPA := (TPAToATPAEx(TPA, W, H));
      SortATPAFromFirstPoint(ATPA, Point(MSCX, MSCY));
      if (ENABLE_DEBUG_MODE) then
        DebugATPABounds(ATPA);
      for I := 0 to High(ATPA) do
      begin
        if (not(LoggedIn)) then
          Exit;
        FindNormalRandoms;

        P := (MiddleTPA(ATPA[I]));
        HumanMMouse(P.X, P.Y, 5, 5);
        Result := (WaitUpText(Text, RandomRange(850, 1500)));

        if (Result) then
          Break;

        AntiBan;
        Wait(RandomRange(250, 500));
      end;

      if (not(Result)) then
        Write('We were unable to mouse the object.');
    end;
    Simba Code:
    (* Main *)

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

  6. #56
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default

    Well at the moment I already have a failsafe that walks back if it isn't behind the hay bales. I didn't know that the issue only occurred when it clicks the back targets. Thanks for isolating the problem I won't be copying yours, I like to be original.

    Thanks again.

  7. #57
    Join Date
    Feb 2012
    Posts
    102
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    will try this out on my range pure

  8. #58
    Join Date
    Oct 2006
    Posts
    174
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    RISK's Range Guilder
    Script version: 1.0.2
    Time ran: 00:05:09
    Competitions done: 2
    Tickets gained: -6243
    EXP gained: -31215

    i will try to achieve 99 range by this script

  9. #59
    Join Date
    Dec 2011
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    __________________________

    RISK's Range Guilder
    Script version: 1.0.3a
    Time ran: 02:01:24
    Competitions done: 128
    Tickets gained: -5617
    EXP gained: -28085
    __________________________

  10. #60
    Join Date
    Feb 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    RISK's Range Guilder
    Script version: 1.0.3a
    Time ran: 02:04:42
    Competitions done: 170
    Tickets gained: 11641
    EXP gained: 58205

    Awesome script dude!
    And im still going!

  11. #61
    Join Date
    Dec 2011
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I doesn't run for long periods for me it just logs out.

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

    Default

    Thanks for the reports, everyone. I'll add the new reports to the top reports section in a 'bit.

    @ tybkj : Enable debug mode in the settings by setting 'False' to 'True' and tell me what the debug says, please. Also, please make sure you're next to the judge before you run it.

    Thanks.
    Simba Code:
    (* Main *)

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

  13. #63
    Join Date
    Dec 2011
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The problem that I get:

    08:57:44 PM: We were unable to find the object.
    08:57:44 PM: We have misclicked and we were unable to fix our position.
    08:57:48 PM:
    08:57:48 PM: If you have encountered an error, please enable debug mode in the script setup and rerun the script.
    08:57:48 PM: Thank you!
    __________________________

    RISK's Range Guilder
    Script version: 1.0.3a
    Time ran: 00:04:31
    Competitions done: 3
    Tickets gained: -26382
    EXP gained: -131910
    __________________________
    Successfully executed.

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

    Default

    Does it get lost? Does it click out of the archery range? Is that when it tries to find a target or the judge?

    Thanks.
    Simba Code:
    (* Main *)

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

  15. #65
    Join Date
    Mar 2009
    Location
    nj
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Time to give it a try with my range tank, proggie will be posted later =]

  16. #66
    Join Date
    Dec 2011
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It works great now, is there one solution to fix that when it has just competed it wants to check the competitor again before starting fireing? This costs alot of time that could be lots of xp.

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

    Default

    @ Irl : Thanks and good luck! Looking forward to your progress report.


    @ tybkj : The only reason it'd be doing that is because your chats aren't set to 'Off'. I have the script turn them off automatically but I guess it isn't working for some people. Try it without the chats being 'On'.

    Thanks!
    Simba Code:
    (* Main *)

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

  18. #68
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default

    Hey RISK I found this bug in my script and after looking at your code and looking at that guy's error, it's in your script too.

    Basically, sometimes your player moves waaay north, to a point where sps can't detect the point used in your walk procedure (because sps doesn't read the whole minimap, but that's off topic). Here's what it looks like:


    The fix? Use SPS_WalkPath instead of SPS_WalkToPos and put a point about halfway between my player in the picture, and the shooting location.

    Nebula

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

    Default

    Ah, I see. Thank you very much, Nebula. I really appreciate the tip! I'd +rep you again if I could, but I've already +rep'd you recently, so.

    I'll add a fix when I release 1.0.4. Gratz on Promising Newcomer, by the way. You really deserve it.


    Thanks again, Nebula!
    Simba Code:
    (* Main *)

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

  20. #70
    Join Date
    Jan 2012
    Posts
    95
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    nice bro thanks for the release. much and much ppl have been waiting for this

    thanks

  21. #71
    Join Date
    Dec 2011
    Posts
    39
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    New proggy:

    RISK's Range Guilder
    Script version: 1.0.3a
    Time ran: 01:49:13
    Competitions done: 126
    Tickets gained: -27497
    EXP gained: -137485
    __________________________
    The problem with the option of the judge still exists the options always have been off.
    Last edited by tybkj; 02-26-2012 at 10:47 PM.

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

    Default

    @ wolkano : Thanks. Hope you enjoy.

    @ tybkj : I'll check it out and see what I can do. I'll probably add a new system for it in 1.0.4 or so.


    Thanks!
    Simba Code:
    (* Main *)

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

  23. #73
    Join Date
    Feb 2012
    Posts
    102
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You should add a spot to enter your bank pin, because when you first compete you need to enter your bankpin. idk if there is a spot in the to put it but i didnt see it, this is the only thing i saw thanks

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

    Default

    epic

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

    Default

    Updated to 1.0.4.
    Here's the change-log:
    Code:
    * I've possibly increased the speed of the script by removing some
    of the procedure that gets a new competition. I originally had it go thru 
    all of the dialogue because I did not know that you only had to press the
    payment confirmation button. So I removed the click to continue button
    and chat-box confirmation parts of the procedure. 
    
    * I have added the break system. The user options for it can be found 
    below where you enter your stats username and password. 
    Instructions for the options can be found in the main post of this thread
    under the setup section.
    
    * I have changed the default clicking speeds to be a 'bit slower so that 
    it will not have to close the target screen so much. As always, if
    you would like it to be faster or slower, you can adjust the options in
    DeclarePlayers.
    
    * I have fixed the distance from the target center and the mouse 
    checker. I had the amount at 20 when it should have been at 10. 
    I made it 20 when I was still testing it before I 
    released it due to a bug I could not figure out. I fixed the bug, 
    but I forgot to revert the distance checker maximum
    distance back to 10 from 20. It should hopefully
    misclick a lot less now with the distance checker 
    actually working now.
    
    * I have removed a segment from my TPA mousing 
    function that relies on CTS 2/Hue/Saturation that was 
    useless code that I never really used for some reason. 
    I forgot to remove it, but I have now removed it.
    
    * I have added a maximum pixel check to my TPA mousing
    function that relies on CTS 2/Hue/Saturation. This will work alongside
    the minimum pixel check I already had in place. I'd like some feedback
    on the guard finding now that I have added that, please.
    
    * I have changed the way mousing the confirmation button works. I've
    changed from HumanMMouse (Flight's amazing function) to the regular
    MMouse when clicking the confirmation button in the dialogue as it looks
    a 'bit un-humanlike in my opinion when using HumanMMouse for that.
    
    * In regards to the mousing the confirmation button update, I have also made
    the range of clicking the button itself a 'bit larger to make it more human-like. 
    It would previously only click on the '1' and a 'bit away from it. It looked very 
    bot-like in my opinion, so I have updated it.
    
    * I've fixed the antiban procedure again. Two of the errors that I thought
    I had fixed in the previous update were not fixed as I made a mistake. It 
    should be fixed now and when it does antiban, it shouldn't stop the script
    due to the angle of the screen being at the highest point.
    
    * I've fixed a bug in the random finding. When it would find and solve a 
    random, it would leave the angle of the screen at the highest point, thus
    causing the script to eventually log out. But I believe I have fixed this now.
    
    * I've made the mouse speed a random speed instead of it being just one
    'Preset' speed. In regards to the mouse speed, I have also increased the
    chance of the random mouse speed increase in the anti-ban by a 'bit. 
    I have also decreased the chance of antiban happening, but not by a lot.
    
    * I have implemented Nebula's kind suggestion to my SPS backup position
    fixing method. This should help fix some of the reposition errors that some
    people may have, hopefully resulting in much longer runs for some people
    that have had trouble with the script recently.
    - Thanks, Nebula!
    
    * I have removed the checking if we are in combat and escaping from it
    procedure for now. Until I am able to create my own combat checking and
    running from combat procedures, it will stay removed. As I noticed when 
    another person would be in combat by misclicking on a guard, the script
    will attempt to run away. But it would not as I also had a bug in the running
    away part of the procedure. But since I have removed it, this bug has been
    solved, of course.
    
    * I have added a user option in the settings that will allow them to choose if
    they want to have the script enable auto retaliation from the start or not. This
    is to 'Cater' to the people who might have characters they do not want HP levels
    on and they would rather have their character die than them to gain an HP level.
    
    * I have changed stat reporting to be in the main loop. Even if the variables 
    are not being sent at this time, it will be good to have them just in case. The
    progress report in the debug will still show every five minutes though.
    
    * I have added competitions per hour and experience per hour in to the 
    progress report. I borrowed the code to do it from Nebula's range guilder,
    I have credited them where I use it. I borrowed it because I had no idea
    how to create that type of stuff. But thanks to him, I have learned how.
    - Thanks again, Nebula!
    
    * I have added a target screen checker and closer early in most repeats, just 
    to make sure the script will not get stuck because of the target screen being up
    while the script is trying to get a new competition or a target. So that could have
    been considered a bug, but I have hopefully fixed it.
    
    * I have added a lamp reward option and box reward options
    in to DeclarePlayers.

    Please update your script to 1.0.4 and tell me how it goes. Thank you very much!


    Paint report and new item finding will come at a later date. Perhaps in 1.0.5 or 1.0.6.


    Thanks and I hope you all are enjoying my script! It really means a lot to me that you all are using my script.


    @ pown otto : Why would you need to enter your pin anywhere? The script doesn't bank at all. Thanks for the suggestion though!

    @ richymul : Thanks and enjoy my script!


    Thanks again!
    Last edited by RISK; 02-27-2012 at 01:12 AM.
    Simba Code:
    (* Main *)

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

Page 3 of 7 FirstFirst 12345 ... 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
  •