Page 1 of 2 12 LastLast
Results 1 to 25 of 37

Thread: Challenging script needed

  1. #1
    Join Date
    May 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Exclamation Challenging script needed

    Ok, this is hard to explain but I will try my best. I need a script that clicks on monsters (color in the monster) then pushes 3 fkeys untill the monster is dead, then repeat this action over and over again. The problem is, the monsters move and spawn in different spots constantly.

    Here are the monsters that need to be attacked and the map they are on.
    http://oi54.tinypic.com/21ovr79.jpg

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Since all of the monsters have their name over their heads it seems pretty easy to me.
    Just search for the monster name (Tinkberbot) and have script click a little below it,
    Then just have it press the FKeys, not sure how you could detect when a fight is over as I've never seen/played the game before, but seems to be pretty easy to me.
    Unfortunately usually when someone requests a script for a different game no one has the time/effort to download/get/and learn how to play the game enough to script for it.

    You should read some tutorials and try doing it yourself, honestly it would be really simple I think, and I'm 100% sure everyone will answer any questions and help with any problems you had. Maybe give it a shot .

    I'd learn using DTMs or Bitmap Masks for finding the text 'TinkerBot' and see which works better. And then just basic mouse/keyboard functions will take care of the clicking/key pressing. Good Luck!

  3. #3
    Join Date
    May 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ive tried reading numerous tutorials with no success. Scar makes absolutely no sense to me. Would someone even need to download the game to script what you said. Also, to eliminate detecting when the battle is over, could it be replaced with a time delay possibly?

  4. #4
    Join Date
    Aug 2007
    Location
    England
    Posts
    734
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Time delay is possible, however it would in inaccurate and slow the script down.

    an easy way to check if the bot dies or not (if it doesn't ever move) would be to just after clicking hte bot keep your mouse over that spot until it no longer finds the DTM/Bitmap it found and used before.

    Seriously it isn't too tough just begin with VERY simply stuff. and in your very first script you might not even want to use colour or bitmaps, just simply use movemouse and mouse. It wont work on runescape as the screen slowly rotates to stop that. but on other games it should work.
    The truth finally came out...


  5. #5
    Join Date
    May 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    When you click on a monster in this game something on the screen will pop up showing the name, lvl and HP while attacking it. The HP will go down on the pop up when doing damage.
    http://oi52.tinypic.com/25ggieb.jpg

    Don't get me wrong, I would like to learn how to write script, but I haven't a clue where to start. My knowledge of scar is merely how the program runs. When I get into what the script means I get lost.

  6. #6
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Quote Originally Posted by Ineedhelp47 View Post
    When you click on a monster in this game something on the screen will pop up showing the name, lvl and HP while attacking it. The HP will go down on the pop up when doing damage.
    http://oi52.tinypic.com/25ggieb.jpg

    Don't get me wrong, I would like to learn how to write script, but I haven't a clue where to start. My knowledge of scar is merely how the program runs. When I get into what the script means I get lost.
    then try to learn.

  7. #7
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Quote Originally Posted by Ineedhelp47 View Post
    When you click on a monster in this game something on the screen will pop up showing the name, lvl and HP while attacking it. The HP will go down on the pop up when doing damage.
    http://oi52.tinypic.com/25ggieb.jpg

    Don't get me wrong, I would like to learn how to write script, but I haven't a clue where to start. My knowledge of scar is merely how the program runs. When I get into what the script means I get lost.
    I can write for you tomorrow, send me a pm tomorrow if you still need it.

  8. #8
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What game is that?

  9. #9
    Join Date
    May 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The game is called The Forbidden Gates, and yes I do still need the script written.

  10. #10
    Join Date
    Oct 2009
    Location
    Stockton, CA
    Posts
    2,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I don't think it would be really challenging. Color.?
    Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
    Quote Originally Posted by #srl
    10:45 < Toter> daphil when can get sex anyday I want
    10:45 < Toter> he is always on #SRL
    "A programmer is just a tool which converts caffeine into code"

  11. #11
    Join Date
    May 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    13680806 is the color

  12. #12
    Join Date
    May 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Would someone help me out with this script. I read about 5 tutorials and still couldn't figure it out.

  13. #13
    Join Date
    Aug 2007
    Location
    England
    Posts
    734
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    If that picture is 100% accurate, like no editing or changing the size. Then i will make you a script using Bitmaps which will click on the bots.

    seriously its like 5 lines of code, its worth trying your hardest to learn so you can give back to teh community.
    The truth finally came out...


  14. #14
    Join Date
    May 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok, I would really appreciate that. I guess I will have to try a little harder to learn but I understand where you are coming from.

  15. #15
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Code:
    program MonsterKiller;
    {.include SRL/SRL.scar}
    
    function IsInFight:Boolean;
    var
      x,y,screenDTM:Integer;
    begin
      screenDTM := DTMFromString('mggAAAHicY2NgYPBkZGBIAuILQPwIiHcAcQUQuwDlIoE4CogdgNgCiC2B+ECxIMPBEhGG7WlCDNszBBhONYoznKwXY1AGymHDjDgwBAAAYO8NxQ==');
      Result := FindDtm(screenDTM,x,y,0,0,600,500);
    end;
    
    function ClickMonster:Boolean;
    var
      x,y,MonsterLeft,MonsterRight,MonsterLeftBack,MonsterRightBack:Integer;
    begin
      Result := True;
      MonsterLeft := DTMFromString();
      if(not(FindDtm(MonsterLeft,x,y,0,0,600,500)))then
      begin
        MonsterRight := DTMFromString();
        if(not(FindDtm(MonsterRight,x,y,0,0,600,500)))then
        begin
          MonsterLeftBack := DTMFromString();
          if(not(FindDtm(MonsterLeftBack,x,y,0,0,600,500)))then
          begin
            MonsterRightBack := DTMFromString();
            if(not(FindDtm(MonsterRightBack,x,y,0,0,600,500)))then
            begin
              Result := False;
            end;
          end;
        end;
      end;
      freeDTM(MonsterLeft);
      If (Result) then
      begin
        Mouse(x,y,1,1,True);
        Mouse(x,y,1,1,True);
      end;
    end;
    
    var
      Tries:Integer;
    
    begin
      wait(2000);
      SetupSRL;
      repeat
      wait(50);
        repeat
          wait(100);
        until(ClickMonster);
        Tries := 0;
        repeat
          inc(Tries);
          if(Tries > 100) then
            break;
          wait(100);
        until(not(IsInFight));
      until(false);
    end.
    Just fill in the desired monster DTMs. Don't forget to use some tollerance. You can make your own DTMs by going to view, extensions, and enable the DTM tool. Then go to tools and click on the DTM tool. Chose a tollerance (10-25) and click 10 times on the monster on different parts with unique colors. copy the DTMs in the fight function, and voilla!
    Last edited by masterBB; 05-26-2011 at 08:57 PM.

  16. #16
    Join Date
    May 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What version did you write it in? When I go into view, there is no extensions. So I tried to do it skipping that step. I pick the 10 colors, and tolerance, but when I go to copy, since you can't right click it, I tried ctrl+C and when I go to paste it in it wont. I tried looking on youtube to see if there were any videos to help guide me but nothing.

  17. #17
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Quote Originally Posted by Ineedhelp47 View Post
    What version did you write it in? When I go into view, there is no extensions. So I tried to do it skipping that step. I pick the 10 colors, and tolerance, but when I go to copy, since you can't right click it, I tried ctrl+C and when I go to paste it in it wont. I tried looking on youtube to see if there were any videos to help guide me but nothing.
    It comes standard with simba. There is a way to it without it, but that takes more time. Couldn't give you the correct DTM's cause I downloaded the game for you and I'm still level 2 or 3.



    Image is a little confusing, first go to view -> extensions, then enable both SRL and DTM editor. If done right, the DTM editor will show up at tools as on the screenie.

  18. #18
    Join Date
    May 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    This is really starting to get on my nerves. Do you have MSN? I could add you and I could take you to the place in the game because I tried it and I don't know how to get it to work.

  19. #19
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Do you know about teamviewer? Using that program someone will be able to actually see and control your computer why you watch maybe Simone should hop onto teamviewer and help him out.

  20. #20
    Join Date
    May 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wow s a great Idea. I would be down if anyone else would be.

  21. #21
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Quote Originally Posted by Ineedhelp47 View Post
    Wow s a great Idea. I would be down if anyone else would be.
    Don't have it installed. Could download it. Is it easy to use?

    edit: downloaded and installed.

    Oh, and I prefer not to use msn.
    Last edited by masterBB; 05-27-2011 at 09:06 AM.

  22. #22
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Yeah teamviewer is VERY easy to use. Forgot exact instructions/ I'm on my phone but it's easy to figure out ineedhelp needs to tell you am ID and password from his teamviewer which you type into yours and BAM you're in control!

  23. #23
    Join Date
    May 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Im am currently Downloading it ill keep you posted
    Last edited by Ineedhelp47; 05-27-2011 at 09:20 AM. Reason: downloaded, Ill send you a PM with the pass and user

  24. #24
    Join Date
    Oct 2007
    Posts
    678
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    is it just me or are u guys making this wayyy more complicated than it has to be. first of all
    have you tried basic hex editing? i cant tell if its even an mmo since i was having a bit trouble finding it on google or wiki.

    second of all its litterly 5 lines of code or less. even i could do it. and i will just give me the games official site....

    third of all it may be easier to just have a macro program with keystrokes. it will def be a bot but not like that game has detection 0.0 ............and it will maximize productivity for levels im assuming.... fk lol i kinda wana go play that chessy ass game now

  25. #25
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    Quote Originally Posted by chitin View Post
    is it just me or are u guys making this wayyy more complicated than it has to be. first of all
    have you tried basic hex editing? i cant tell if its even an mmo since i was having a bit trouble finding it on google or wiki.

    second of all its litterly 5 lines of code or less. even i could do it. and i will just give me the games official site....

    third of all it may be easier to just have a macro program with keystrokes. it will def be a bot but not like that game has detection 0.0 ............and it will maximize productivity for levels im assuming.... fk lol i kinda wana go play that chessy ass game now
    Then make it yourself. With colors DTMs are a must. And you're aware that its an MMORPG right?
    Last edited by masterBB; 05-27-2011 at 09:31 AM.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •