Results 1 to 25 of 25

Thread: NEW SolveDemon

  1. #1
    Join Date
    Sep 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default NEW SolveDemon

    for those of you whos computers couldnt handle the default script, as mines couldnt, here is an alternative. pretty basic, but also the best that i can do =D

    i would appreciate it if you post here if it Did/Did NOT work for you.

    Note: i use SCAR 3.15b, revision 31

    instructions:
    1. backup Demon.scar (location: includes/SRL/SRL/core/AntiRandoms/)... rename to Demon[BACKUP].scar
    2. place the new Demon.scar you just downloaded into that same directory.

    or you can fill out lines 17 - 19 of Drill Sergeant Damien.scar and run that (if your character is already in the event.

    UPDATED just a bit, a little "more efficient".

    UPDATED added a progress report to it.

  2. #2
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    SCAR Code:
    repeat
          wait(1000);
        until FindNPCChatText('private', Nothing)
    MY EYES!!!!
    GAAAH

  3. #3
    Join Date
    Dec 2006
    Location
    UK!!
    Posts
    910
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    *fixes Zytex's eyes*

    Btw wait 1 sec until it finds text is very dangerous, what if something goes wrong and it never says private, your left waiting forever!!!

    ~Spaz

  4. #4
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Do you know that the signs and colors change position and owner everytime you enter and exit the event? This won't work. Good job nevertheless.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  5. #5
    Join Date
    Sep 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanx for the reply's. but has anyone actually tried it yet?

    no offence wizzup, but i dont agree with you that it will not work. then again i need testers to answer that. if the colors change more than that 10 tolerance then the script is a total dud. but if you meant the color mats changes order, then the script should still work, also if the signs change order.

    would help alot if i actually knew more of the scripting language and how to use the arrays and such. if someone could polish this thing out, thatd be great. the basic idea is not to use the bitmap thingy, cause it always freezes for me... i waited 10 mintues to be sure it froze =).

  6. #6
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Quote Originally Posted by SaiKo HaWaIIaN View Post
    thanx for the reply's. but has anyone actually tried it yet?

    no offence wizzup, but i dont agree with you that it will not work. then again i need testers to answer that. if the colors change more than that 10 tolerance then the script is a total dud. but if you meant the color mats changes order, then the script should still work, also if the signs change order.

    would help alot if i actually knew more of the scripting language and how to use the arrays and such. if someone could polish this thing out, thatd be great. the basic idea is not to use the bitmap thingy, cause it always freezes for me... i waited 10 mintues to be sure it froze =).
    dude he is saying that the mats change spots, so the colors are never the same for each action... don't diss Wizzup, becuz you will most likely be wrong 98% of the time

  7. #7
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    he didn't diss wizzup?, he just didn't get what wizzup? was telling him.

    but saiko, it won't work because the mat changes what sign it goes with, I think that's what wizzup? is trying to tell you.

  8. #8
    Join Date
    Jun 2007
    Location
    south park
    Posts
    1,160
    Mentioned
    0 Post(s)
    Quoted
    62 Post(s)

    Default

    Hmm i think wizz nos rite..
    http://www.youtube.com/user/YoHoJoSRL
    Good scripting guides on youtube
    Formerly known as (djcheater)

  9. #9
    Join Date
    Sep 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by [S]paz View Post
    *fixes Zytex's eyes*

    Btw wait 1 sec until it finds text is very dangerous, what if something goes wrong and it never says private, your left waiting forever!!!

    ~Spaz
    that, can be fixed fairly easily to prevent looping infinite. but im more interested in tests, and if that becomes a major problem now, ill fix it now. until then... still waiting for someone to actually try it.

    Quote Originally Posted by Baked0420 View Post
    he didn't diss wizzup?, he just didn't get what wizzup? was telling him.

    but saiko, it won't work because the mat changes what sign it goes with, I think that's what wizzup? is trying to tell you.
    yeah i didnt understand him, ...kinda still dont but yeah. it's still working for me.


    and to you others try not to spam like that, i want some real feedback. and if you read above, "no offence wizzup"...you know.


    edit: ive read his post over and over, i still get the same result -.-. my script doesnt look for a mat in a specific place with a specific sign. i assign a color to a mat, then the trial and error starts, for each assignment (ex. jog, situps...) it trys it on mat1 first,(which i have assigned a color to, no matter where that mat is located, it is mat1.) if its wrong, the next time it gets the same assignment, it goes to the next mat color and so on. maybe ill make a video...cant really explain so well.

    anyways... here is the code, for those of you who hadn't even looked at it and already booing me
    SCAR Code:
    program Sergeant_Solver;
    {.include srl/srl/misc/Smart.scar}
    {.include srl/srl.scar}

    var users, x, y, StarJumps, PushUps, SitUps, Jog: integer;
        Busy, SJ, PU, SU, J: boolean;
       
    const Mat1 = 745026;
          Mat2 = 946986;
          Mat3 = 542270;
          Mat4 = 3167543;
         
    procedure setup;
    begin
      NumberOfPlayers(1); //The number of players you will be using

      Players[0].Name:= ''
      Players[0].Pass:= ''
      Players[0].Nick:= '' //3-4 characters, no capitals
      Players[0].Skill:= 'strength' //woodcutting or firemaking
      Players[0].Active:= True

      SetPlayerNameTPAs;
      Users:= HowManyPlayers;
    end;

    procedure Perform_Exercise;
    begin
      if FindNPCChatText('star', Nothing) then
      //perform StarJumps.
      begin
        Busy:= true;
        SJ:= true;
        PU:= false;
        SU:= false;
        J:= false;
        StarJumps:= StarJumps + 1;
        case StarJumps of
          1:
            begin
              FindObjEx(x, y, ['Exer'], [Mat1], 4, 50, msx1, msy1, msx2, msy2);
            end;
          2:
            begin
              FindObjEx(x, y, ['Exer'], [Mat2], 4, 50, msx1, msy1, msx2, msy2);
            end;
          3:
            begin
              FindObjEx(x, y, ['Exer'], [Mat3], 4, 50, msx1, msy1, msx2, msy2);
            end;
          4:
            begin
              FindObjEx(x, y, ['Exer'], [Mat4], 4, 50, msx1, msy1, msx2, msy2);
            end;
        end;
        mouse(x, y, 0, 0, true);
        repeat
          wait(1000);
        until FindNPCChatText('private', Nothing)
      end;
     
      if not Busy then
      begin
        if FindNPCChatText('jog', Nothing) then
        //Perform Jog.
        begin
          Busy:= true;
          SJ:= false;
          PU:= false;
          SU:= false;
          J:= true;
          Jog:= Jog + 1;
          case Jog of
            1:
              begin
                FindObjEx(x, y, ['Exer'], [Mat1], 4, 50, msx1, msy1, msx2, msy2);
              end;
            2:
              begin
                FindObjEx(x, y, ['Exer'], [Mat2], 4, 50, msx1, msy1, msx2, msy2);
              end;
            3:
              begin
                FindObjEx(x, y, ['Exer'], [Mat3], 4, 50, msx1, msy1, msx2, msy2);
              end;
            4:
              begin
                FindObjEx(x, y, ['Exer'], [Mat4], 4, 50, msx1, msy1, msx2, msy2);
              end;
          end;
          mouse(x, y, 0, 0, true);
          repeat
            wait(1000);
          until FindNPCChatText('private', Nothing)
        end;
      end;
     
      if not busy then
      begin
        if FindNPCChatText('push', Nothing) then
        //Perform PushUps.
         begin
          Busy:= true;
          SJ:= false;
          PU:= true;
          SU:= false;
          J:= false;
          PushUps:= PushUps + 1;
          case PushUps of
            1:
              begin
                FindObjEx(x, y, ['Exer'], [Mat1], 4, 50, msx1, msy1, msx2, msy2);
              end;
            2:
              begin
                FindObjEx(x, y, ['Exer'], [Mat2], 4, 50, msx1, msy1, msx2, msy2);
              end;
            3:
              begin
                FindObjEx(x, y, ['Exer'], [Mat3], 4, 50, msx1, msy1, msx2, msy2);
              end;
            4:
              begin
                FindObjEx(x, y, ['Exer'], [Mat4], 4, 50, msx1, msy1, msx2, msy2);
              end;
          end;
          mouse(x, y, 0, 0, true);
          repeat
            wait(1000);
          until FindNPCChatText('private', Nothing)
        end;
      end;

      if not busy then
      begin
        if FindNPCChatText('sit', Nothing) then
        //Perform SitUps.
         begin
          Busy:= true;
          SJ:= false;
          PU:= false;
          SU:= true;
          J:= false;
          SitUps:= SitUps + 1;
          case SitUps of
            1:
              begin
                FindObjEx(x, y, ['Exer'], [Mat1], 4, 50, msx1, msy1, msx2, msy2);
              end;
            2:
              begin
                FindObjEx(x, y, ['Exer'], [Mat2], 4, 50, msx1, msy1, msx2, msy2);
              end;
            3:
              begin
                FindObjEx(x, y, ['Exer'], [Mat3], 4, 50, msx1, msy1, msx2, msy2);
              end;
            4:
              begin
                FindObjEx(x, y, ['Exer'], [Mat4], 4, 50, msx1, msy1, msx2, msy2);
              end;
          end;
          mouse(x, y, 0, 0, true);
          repeat
            wait(1000);
          until FindNPCChatText('private', Nothing)
        end;
      end;
    end;

    procedure Evaluate;
    begin
      wait(1000);
      if PushUps > 4 then PushUps:= 0;
      if SitUps > 4 then SitUps:= 0;
      if StarJumps > 4 then StarJumps:= 0;
      if Jog > 4 then Jog:= 0;
      Busy:= false;
      if not FindNPCChatText('sight', Nothing) then
      begin
        if not FindNPCChatText('Wrong', Nothing) then
        begin
          if SJ = true then
          begin
            StarJumps:= StarJumps - 1;
            SJ:= false;
            writeln('Found StarJump mat. mat# ' + inttostr(StarJumps + 1));
          end;
          if PU = true then
          begin
            PushUps:= PushUps - 1;
            PU:= false;
            writeln('Found PushUp mat. mat# ' + inttostr(PushUps + 1));
          end;
          if SU = true then
          begin
            SitUps:= SitUps -1;
            SU:= false;
            writeln('Found SitUp mat. mat# ' + inttostr(SitUps + 1));
          end;
          if J = true then
          begin
            Jog:= Jog - 1;
            J:= false;
            writeln('Found jog mat. mat# ' + inttostr(Jog + 1));
          end;
        end;
      end;
    end;

    begin
      Smartsetupex(29, false, true, false);
      Settargetdc(smartgetdc);
      SetupSRL;
      ScriptID:= '808';
      setup;
      LoginPlayer;
      wait(900 + random(900));
      SetAngle(true);
      makecompass('N');
    StarJumps:= 0;
    PushUps:= 0;
    SitUps:= 0;
    Jog:= 0;
    SJ:= false;
    PU:= false;
    SU:= false;
    J:= false;
      if FindObjEx(x, y, ['Exer'], [Mat1], 4, 50, msx1, msy1, msx2, msy2) then
      begin
        mouse(x, y, 0, 0, true);
        repeat
          wait(1000);
        until FindNPCChatText('private', Nothing)
      end;
      repeat
        Perform_Exercise;
        Evaluate;
      until FindNPCChatText('sight', Nothing)
      FindNPCChatText('continue', ClickLeft)
      writeln('Drill Demon Solved.');
      wait(8000);
    end.

  10. #10
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    k.. what wizzup said is that for you, the sit ups mat could've been dark green, but for someone else, it could be light green.. they're always different from time to time..

    so this shouldn't work..

  11. #11
    Join Date
    Sep 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by 99_ View Post
    k.. what wizzup said is that for you, the sit ups mat could've been dark green, but for someone else, it could be light green.. they're always different from time to time..

    so this shouldn't work..
    if that is the case then it will work.

  12. #12
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    I think I understand how you want to solve it. Pretty good idea But wouldn't it be suspicious/detectable?
    Hup Holland Hup!

  13. #13
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    So, in summary.

    You basically try and guess, with a 1/4 sucess rate, the mat which you have to do? And once you have that, you...


    Hm.


    Well, it's bannable, yes. And the code could be a lot more efficient. But your idea is great. I think i'll continue on your idea.
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  14. #14
    Join Date
    Sep 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Lee Lok Hin View Post
    So, in summary.

    You basically try and guess, with a 1/4 sucess rate, the mat which you have to do? And once you have that, you...


    Hm.


    Well, it's bannable, yes. And the code could be a lot more efficient. But your idea is great. I think i'll continue on your idea.
    thank you, the main thing is to get the idea out so someone with greater skill can produce something, like what you said, "more efficient".

  15. #15
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    sorry.. I get it now..

    but yeah.. idea is nice (now that I understand it.. but, needs some fixing up )

    sorry about saying it wouldn't work

  16. #16
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  17. #17
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Quote Originally Posted by leather cock View Post
    Could AntiBan solve this issue?
    no... it just guesses a mat and clicks it... so it won't help...

  18. #18
    Join Date
    Sep 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yes... it certainly needs some fixing. this is pretty much just enough to get it through =).

  19. #19
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    What sumilion did was to use TPoints to find which was which. He then comitted each loaction to a variable so It wouldn't have to detect it over and over again.

    I tried it btw, It only did one then It went beserk

  20. #20
    Join Date
    Sep 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    What sumilion did was to use TPoints to find which was which. He then comitted each loaction to a variable so It wouldn't have to detect it over and over again.

    I tried it btw, It only did one then It went beserk
    thanks for the feedback

  21. #21
    Join Date
    Oct 2008
    Location
    behind you!
    Posts
    1,688
    Mentioned
    2 Post(s)
    Quoted
    40 Post(s)

    Default

    Quote Originally Posted by 99_ View Post
    sorry.. I get it now..

    but yeah.. idea is nice (now that I understand it.. but, needs some fixing up )

    sorry about saying it wouldn't work
    OFF-TOPIC

    not a big deal, but you spam all the time and try to agree with the others... like your doing something good with all those posts, try to SCRIPT Something.
    Hi

  22. #22
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    >.> I don't wanna get mad and be like ASDIIJGBSADGKJBASD YOUR A MEANIE FACE!

    but, how do you know I don't script? ;D

  23. #23
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Quote Originally Posted by 99_ View Post
    >.> I don't wanna get mad and be like ASDIIJGBSADGKJBASD YOUR A MEANIE FACE!

    but, how do you know I don't script? ;D
    well from what we can see, you haven't ever posted a script... which leads us to assume(ass outta you and me i know) that you don't.

  24. #24
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ^^ just you wait

    lol sorry that I've been having real life trouble and school stuff to do.. but.. I AM doing stuff for the site, just haven't finished what I was doing..

  25. #25
    Join Date
    Sep 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    here is my first proggy for this solver. ill add more when i get the chance of another demon event.

    Code:
    Wrong Exercise.
    Found StarJump mat. mat# 1
    StarJumps performed successfully.
    Found PushUp mat. mat# 2
    Wrong Exercise.
    Found Jog mat. mat# 4
    Jog performed successfully.
    Found SitUp mat. mat# 3
    StarJumps performed successfully.
    -----------    REPORT    ------------
    ////| Solved Drill Demon: 169 seconds.
    ////| Wrong exercises: 2.
    -------------------------------------
    Successfully executed

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
  •