Results 1 to 24 of 24

Thread: i need some advice

  1. #1
    Join Date
    Oct 2009
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default i need some advice

    so heres my problem,

    i have this bot that i just want to loop until i press a key
    the loop works but it just runs and runs and runs.....see my problem

    Code:
    program New;
    var
      W, H: Integer;
      x, y: Integer;
    begin
     GetClientDimensions(W, H);
    
     movemouse(238, 283);
     clickmouse(238, 283, true);
    
      repeat
    
      FindColor(x, y, 16777215, 3, 159, W - 1, H - 1);
      MoveMouse(x, y);
      clickmouse(x, y, true);
    
    end.

  2. #2
    Join Date
    Oct 2009
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oops i forgot to include the until(false) before the end

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

    Default

    Hmm, what is this script for?
    Also dont double post, just edit your first one. So, all problems solved so far?

  4. #4
    Join Date
    Oct 2009
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default sorry

    well....its mainly for school....we had to write a program in any language so i chose scar pascal....sigh....and its not made for runescape...but for a game called insaniquarium.

    what i want it to do is automaticaly click the falling coins...and btw i modded the game to have all white coins...

    and i need to be able to end that repeat with sometype of command or keypress as it will always collect the coins and wont stop, which is my main problem.....

    ive looked everywhere for scripts i could cut n paste but i have aways come up short

    all in all i need to end that repeat with a keypress or command of some sort but i have no idea.



    and yes im a noob to scar pascal....

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

    Default

    Open SCAR, press F1, and thers a manual of a bunch of basic commands and whatnot there. Id help out more, but im on a different computer right now. Dont worry its simple and im sure someone will help you out soon. Good Luck.

  6. #6
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    You mean something like this?

    SCAR Code:
    program New;

    var
       W,H,x,y: Integer;
     
    begin
      GetClientDimensions(W, H);
      MoveMouse(238, 283);
      ClickMouse(238, 283, true);
      repeat
        FindColor(x, y, 16777215, 3, 159, W - 1, H - 1);
        MoveMouse(x, y);
        ClickMouse(x, y, true);
      until(IsKeyDown('s'));
    end.

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


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

    Default

    Yeah that looks right Camo.
    Also tabernacle, do you want the script to do other things in the game also, or just collect coins? If you want other things, then there are better ways than a repeat until false, and key to stop the procedure to do that.

  8. #8
    Join Date
    Oct 2009
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Wow

    WOW thank you so much!

    it was that simple...


    like i said im still a noob and this was my first script to XD


    thnks again

  9. #9
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Hey, we all started somewhere. Keep it up and you will get better. If you ever need help feel free to PM me

    Good luck on your school.

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  10. #10
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    Lol I've made one before.
    Are you using the web version or the client (full screen) version?


    You can just use rsclient by garyshood. (the old one)
    Oh Hai Dar

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

    Default

    Quote Originally Posted by Main_Ftw View Post
    Lol I've made one before.
    Are you using the web version or the client (full screen) version?


    You can just use rsclient by garyshood. (the old one)
    Wtf are you talking about. This thread has nothing to do with rs, were talking about Insaniquiarum....?

  12. #12
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You really don't need movemouse ever unless you don't want to click at all.

    Just say'n it's pointless. You might also want some if (FindColor) then statements and some waits in that loop.

  13. #13
    Join Date
    Oct 2009
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default actually yea i do want more in the script

    um.....i added the if findcolor statements and did some waites...runs like a charm...and i use the fullscreen client but i have fullscreen off for testing purposes

    i rewrote it to where it went to the start bar and opened it in fullscreen and then continued on with that loop.



    and yes i want it to auto attack the enemies(which is just clicking) but the problem is the colors used for the enemies are also in the backround

  14. #14
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Do the enemies shape change? If not, you could make a DTM, DDTM, or TPA of them and have it search for that.

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  15. #15
    Join Date
    Oct 2009
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default hmm

    ummm noob here..lol wats DTM, DDTM, or TPA

  16. #16
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    intermediates tutorial section to learn what a dtm is

    ddtm and tpas are still way to advaned for you (no offence, )
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  17. #17
    Join Date
    Oct 2009
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default mmk

    well....i honestly dont like tutrials or 'how to's...im someone where if im showed once i kno what it does and how its coded no offense...basicaly id rather be an apprentice then a student

  18. #18
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Oh yeah, sorry. DTM's are easy, that should do the trick. DDTM's aren't too advance.

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  19. #19
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by tabernacle View Post
    well....i honestly dont like tutrials or 'how to's...im someone where if im showed once i kno what it does and how its coded no offense...basicaly id rather be an apprentice then a student
    well, do you know how to use a bitmap?

    that might work as well

    and using a bitmap is almost the same as a dtm
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  20. #20
    Join Date
    Oct 2009
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default umm

    um no im like a super noob...sigh....and im reading the tutorial for dtm's pretty easy

  21. #21
    Join Date
    Oct 2009
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default ok so how would i put this in

    Code:
    program New;
    var
     x, y, W, H: Integer;
    
    begin
     GetClientDimensions(W, H);
     movemouse(238, 283);
     clickmouse(238, 283, true);
     repeat
      FindColor(x, y, 16777215, 3, 159, W - 1, H - 1);
      MoveMouse(x, y);
      clickmouse(x, y, true);
      until(iskeydown('s'));
    end.
    where would i add in or how would i need to modify into the code

    alien :=DTMfromString( '78DA635CCBC8CODOCD8OOA64OCC1142394CB7' + '8OOC8F26OCOOAEO6A96OO591BDO2439385OD5B4OO594504D4 AC20' + '6C17OO9694O5F7');

    FindDTM(alien: x, y; x1, y1, x2, y2)

  22. #22
    Join Date
    Oct 2009
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Btw

    im not trying to leech off you guys but with you all helping me it makes me get better at understand the structure and variables, constants, and what not...


    thnx

  23. #23
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Okay, D/DTMs are not good for this.

    Use FindObjTPA perhaps, from SRL. Since the Aliens turn etc, its a better idea to use something that doesn't require them to have a defined shape.

    (You need to stop double/triple posting btw.)
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  24. #24
    Join Date
    Oct 2009
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    aight....tpa's are a little too advanced for me....

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
  •