Page 2 of 5 FirstFirst 1234 ... LastLast
Results 26 to 50 of 108

Thread: DannyRS - Wilderness Course

  1. #26
    Join Date
    Jan 2013
    Posts
    453
    Mentioned
    9 Post(s)
    Quoted
    242 Post(s)

    Default

    Might use this instead of doing ape atoll. Looked into the XP/HR and sounds good enough for my puny agi level. Just need a summer pie.

    So many of your great looking scripts to use, so little time

    Here's a quick proggy.

    =========DannyRS-WAC=========================
    =========Version: V1.1=======================
    Time Running: 1 Hours, 16 Seconds
    Experience Earned: 23979
    Experience / Hour: 23868
    Laps Complete: 50
    Laps / Hour: 50
    =============================================

    Worked flawlessly for roughly 59 mins & 47 seconds(lol roughly) and then it somehow misclicked itself just to the left of the pipe(first obstacle). It kinda searched around for a bit not really doing anything til I stopped it and moved in front of it manually. Works beautifully other than that little bug.
    Last edited by Stayon; 02-03-2013 at 08:41 AM.

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

    Default

    Quote Originally Posted by stayon View Post
    Might use this instead of doing ape atoll. Looked into the XP/HR and sounds good enough for my puny agi level. Just need a summer pie.

    So many of your great looking scripts to use, so little time

    Here's a quick proggy.

    =========DannyRS-WAC=========================
    =========Version: V1.1=======================
    Time Running: 1 Hours, 16 Seconds
    Experience Earned: 23979
    Experience / Hour: 23868
    Laps Complete: 50
    Laps / Hour: 50
    =============================================

    Worked flawlessly for roughly 59 mins & 47 seconds(lol roughly) and then it somehow misclicked itself just to the left of the pipe(first obstacle). It kinda searched around for a bit not really doing anything til I stopped it and moved in front of it manually. Works beautifully other than that little bug.
    Nice proggy

    Can you get me a screenshot of the tile that it missclicked onto, then I can add a failsafe for that spot


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

  3. #28
    Join Date
    Oct 2007
    Location
    Sweden
    Posts
    199
    Mentioned
    1 Post(s)
    Quoted
    23 Post(s)

    Default

    Progress Report:
    =========DannyRS-WAC=========================
    =========Version: V1.1=======================
    Time Running: 1 Hours, 2 Minutes and 58 Seconds
    Experience Earned: 26163
    Experience / Hour: 24929
    Laps Complete: 48
    Laps / Hour: 46
    =============================================


    This script works really well.

    I had to help it three times though. My char got stuck once at the log and twice at the pipe. In the picture my char stands where the script could not find the log or pipe.

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

    Default

    Quote Originally Posted by billy opel View Post
    Progress Report:
    =========DannyRS-WAC=========================
    =========Version: V1.1=======================
    Time Running: 1 Hours, 2 Minutes and 58 Seconds
    Experience Earned: 26163
    Experience / Hour: 24929
    Laps Complete: 48
    Laps / Hour: 46
    =============================================


    This script works really well.

    I had to help it three times though. My char got stuck once at the log and twice at the pipe. In the picture my char stands where the script could not find the log or pipe.
    Hmm, the pipe should be an easy fix, the log one slightly more tricky tho, I'll take a look today thanks for the screenshots, did any of you use food? Does that work ok?


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

  5. #30
    Join Date
    Oct 2007
    Location
    Sweden
    Posts
    199
    Mentioned
    1 Post(s)
    Quoted
    23 Post(s)

    Default

    I use food. Lobsters. No problems at all. For my char, it would be better if it ate at a lower healt though. I have around 1700hp, a lobster heals 800hp. Can I change so it eats at 800-900? It would save me some lobs so I can run the script longer!

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

    Default

    Quote Originally Posted by billy opel View Post
    I use food. Lobsters. No problems at all. For my char, it would be better if it ate at a lower healt though. I have around 1700hp, a lobster heals 800hp. Can I change so it eats at 800-900? It would save me some lobs so I can run the script longer!
    If i remember, it eats when your HP is not green and you have food left, you could add If not green and not Orange, or theres probably a function in srl somewhere that returns the text of your current hp, maybe I can add a eat when under X number


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

  7. #32
    Join Date
    Oct 2007
    Location
    Sweden
    Posts
    199
    Mentioned
    1 Post(s)
    Quoted
    23 Post(s)

    Default

    I think I get it now.

    Simba Code:
    If (Not FindColorTolerance(x,y,65280,720,30,745,42,25)) Then

    This is from the eating part of the script. The number 65280 in green. 65535 in the number for yellow health. How would I add that?

    Simba Code:
    If (Not FindColorTolerance(x,y,65280,720,30,745,42,25)) And
       (Not FindColorTolerance(x,y,65535,720,30,745,42,25)) Then

    Would that work? I really need to learn scripting... :P
    Last edited by M_Back; 02-03-2013 at 11:43 AM.

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

    Default

    Quote Originally Posted by billy opel View Post
    I think I get it now.

    Simba Code:
    If (Not FindColorTolerance(x,y,65280,720,30,745,42,25)) Then

    This is the eating part of the script. The number 65280 in green. 65535 in the number for yellow health. How would I add that?

    Simba Code:
    If (Not FindColorTolerance(x,y,65280,720,30,745,42,25)) And
    If (Not FindColorTolerance(x,y,65535,720,30,745,42,25)) Then

    Would that work? I really need to learn scripting... :P
    You dont need the second If after the and, should work, give it a try


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

  9. #34
    Join Date
    Oct 2007
    Location
    Sweden
    Posts
    199
    Mentioned
    1 Post(s)
    Quoted
    23 Post(s)

    Default

    I edited the "If" away and it works!! Now it heals at around 800hp. SWEET! I also have another prntscrn from the log from a different tile than the one in the last pic if you want it.

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

    Default

    Quote Originally Posted by billy opel View Post
    I edited the "If" away and it works!! Now it heals at around 800hp. SWEET! I also have another prntscrn from the log from a different tile than the one in the last pic if you want it.
    Go for it, all data helps, problem is that the colors of the log are the same as the fence and floor so detecting it is quite difficult,

    Glas to see you took the first step to learning how to script too


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

  11. #36
    Join Date
    Oct 2007
    Location
    Sweden
    Posts
    199
    Mentioned
    1 Post(s)
    Quoted
    23 Post(s)

    Default

    Yeah, I guess it is quite difficult. It's weird, but the tile I was talking about seems to work now. It's just the one right below the log, in the screenie I posted, that does not work.

    Got to start somewhere! If I had more time I'd definitly look more into scripting. Seems fun once you get the hang of it.

  12. #37
    Join Date
    Jan 2013
    Posts
    453
    Mentioned
    9 Post(s)
    Quoted
    242 Post(s)

    Default

    The feature to eat at yellow/orange health would be good too! Just to kinda maximize time spent there. Full invent of lobsters lasted me roughly an hour and 15. Had no problems eating though! Great work and thanks again Danny.

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

    Default

    Quote Originally Posted by billy opel View Post
    Yeah, I guess it is quite difficult. It's weird, but the tile I was talking about seems to work now. It's just the one right below the log, in the screenie I posted, that does not work.

    Got to start somewhere! If I had more time I'd definitly look more into scripting. Seems fun once you get the hang of it.
    @billy opel added new detection for both spots, should not get stuck at either again in V1.2

    Quote Originally Posted by stayon View Post
    The feature to eat at yellow/orange health would be good too! Just to kinda maximize time spent there. Full invent of lobsters lasted me roughly an hour and 15. Had no problems eating though! Great work and thanks again Danny.
    @stayon Try billy opel's suggestion if you need that, change eat procedure to this, if it works ok, I'll add to next version

    Simba Code:
    Procedure CheckFood;
    Var
      x, y: Integer;
    Begin
      If UseFood Then
        If (Not OutOfFood) Then
          If (Not FindColorTolerance(x,y,65280,720,30,745,42,25)) And
             (Not FindColorTolerance(x,y,65535,720,30,745,42,25)) Then
            If EatFood Then
            Begin
              Wait(883+Random(393));
              Exit
            End Else
              OutOfFood:=True;
    End;
    Last edited by DannyRS; 02-06-2013 at 03:18 PM.


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

  14. #39
    Join Date
    Oct 2007
    Location
    Sweden
    Posts
    199
    Mentioned
    1 Post(s)
    Quoted
    23 Post(s)

    Default

    Trying it out now! First lap done without problems.
    I like the debug countdown in the beginning.

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

    Default

    Quote Originally Posted by billy opel View Post
    Trying it out now! First lap done without problems.
    I like the debug countdown in the beginning.
    The part that is just there to welcome and name drop myself haha? feel free to remove it / comment it out so it starts immediately


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

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

    Default

    Bout to do a 4 hr proggy, also Lol:

    Simba Code:
    CheckBoxASS:=IntToBox(196, 130, 246, 212);

    Simba Code:
    BoxASS:

    Is that there on purpose?

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

    Default

    Quote Originally Posted by rjj95 View Post
    Simba Code:
    BoxASS:

    Is that there on purpose?
    Their all just whatever pops into my head when I'm creating names, I believe that was CheckBoxAfterSteppingStones, but that's one long variable name, so I just shortened it too lazy to rename it


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

  18. #43
    Join Date
    Oct 2007
    Location
    Sweden
    Posts
    199
    Mentioned
    1 Post(s)
    Quoted
    23 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    The part that is just there to welcome and name drop myself haha? feel free to remove it / comment it out so it starts immediately
    Simba Code:
    Writeln('Starting in 3...');
    Wait(1000);
    Writeln('Starting in 2...');
    Wait(1000);
    Writeln('Starting in 1...');
    Wait(1000);

    Me gusta!

    In the last version my player never died from the script during the 3(?) hours of use. With 1,2 I died twice in just over an hour. I left the script running alone so I don't know what killed me though. I'll try and look it up today.
    Progress Report:
    =========DannyRS-WAC=========================
    =========Version: V1.2=======================
    Time Running: 51 Minutes and 39 Seconds
    Experience Earned: 20566
    Experience / Hour: 23884
    Laps Complete: 41
    Laps / Hour: 48
    =============================================

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

    Default

    Quote Originally Posted by billy opel View Post

    In the last version my player never died from the script during the 3(?) hours of use. With 1,2 I died twice in just over an hour. I left the script running alone so I don't know what killed me though. I'll try and look it up today.
    A player probably killed you / you ran out of food lol, the script can missclick on other players on obstacles, so best to try and find a world with no one else there, I suspect it's just bad luck because 1.2 is almost the same as the previous versions


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

  20. #45
    Join Date
    Oct 2007
    Location
    Sweden
    Posts
    199
    Mentioned
    1 Post(s)
    Quoted
    23 Post(s)

    Default

    Yeah, I guess I had bad luck.
    I'm running it right now and it's working better. But it got stuck south of the log after 50 minutes of running. Same tile as before. No problems with the pipe so far though!

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

    Default

    Quote Originally Posted by billy opel View Post
    Yeah, I guess I had bad luck.
    I'm running it right now and it's working better. But it got stuck south of the log after 50 minutes of running. Same tile as before. No problems with the pipe so far though!
    That damn log! I'll take another look at the variables, maybe the Y's are off by a little for the southern most tile, when I run it tho I never end up that far down lol, It's now looking for the black hole, not the log at all, and just offsetting the mouse from the center of the black, can you turn Debug ATPA or whatever on at the top, take a screenshot of what the box looks like when it handles the log normally, and then start it on the problem spot, and screenshot the resulting image for me, I'll do it myself later, but would save me the time if your there already and not too busy, I dont think I added smart paint debug to my agilities yet?

    If no image at all is generated from the problem spot, means it's not seeing the hole at all


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

  22. #47
    Join Date
    Oct 2007
    Location
    Sweden
    Posts
    199
    Mentioned
    1 Post(s)
    Quoted
    23 Post(s)

    Default

    Finding the log:





    Wrong tile, not finding the log, the mouse seraching the top of the fence right next to the player:

    Attached Images Attached Images

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

    Default

    Quote Originally Posted by billy opel View Post
    Finding the log:

    Wrong tile, not finding the log, the mouse seraching the top of the fence right next to the player:
    Perfect, now i know exactly what the problem is, i'll work on a fix


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

  24. #49
    Join Date
    Oct 2007
    Location
    Sweden
    Posts
    199
    Mentioned
    1 Post(s)
    Quoted
    23 Post(s)

    Default

    That's good!

    I had debug = True so I did not get a good 2-3 hour long proggy. Ran good all the way until I was out of lobsters and too low on health to continue. I've gotten from 55 to 62 agility so far using this script.

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

    Default

    Quote Originally Posted by billy opel View Post
    That's good!

    I had debug = True so I did not get a good 2-3 hour long proggy. Ran good all the way until I was out of lobsters and too low on health to continue. I've gotten from 55 to 62 agility so far using this script.
    Ok, log defeated in V1.3? also eats at lower hp by default


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

Page 2 of 5 FirstFirst 1234 ... 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
  •