Results 1 to 12 of 12

Thread: DTM/Loop Help

  1. #1
    Join Date
    Nov 2007
    Posts
    43
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default DTM/Loop Help

    I made a script and it finds the item and destroys it 16 times but sometimes the DTM screws up a bit and it doesn't select the item properly so i was wonder i was wondering if there is a way to fix the DTM screwing up or make it so that it only continues once it cant find the DTM
    this is the procedure as is (i know its bad please don't hate me)
    SCAR Code:
    procedure BreakBlade;
    begin
    b:= 0;
    repeat
    b:= b + 1;
      if FindDTM(Blade, x, y, 402, 202, 544, 487) then
      begin
      wait(1150+random(100))
      MoveMouseSplineEx(x, y, 5, 5, 95, 35, 75);
      ClickMouse(x, y, True)
      MoveMouseSplineEx(224, 363, 90, 70, 95, 35, 75);
      ClickMouse(224, 363, True)
      MoveMouseSplineEx(45, 468, 7, 40, 95, 35, 75);
      ClickMouse(45, 468, True)
      wait(1150+random(100))
      end;
      Until(b >= 16);
    SendKeysVB('{ESC}', True)
    wait(1150+random(100))
    end;

  2. #2
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Lol its not a bad script, but you could get banned from it :P So your saying that sometimes it cannot find the dtm? if it is on the main screen, use finddtmroated

  3. #3
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    AGHHHHH MOVEMOUSESPLINE !!!!§§§§§§ HEADSHOT BOOMASDSDSDSDSDDSDSSDSD....

    Use Mouse please ! xD

    Just kidding.

    Tell me where the dtm is, is it in the inventory or on MainScreen ?

  4. #4
    Join Date
    Nov 2007
    Posts
    43
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    This is for a different game so thats why its kinda fucky

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

    Default

    Well unless you are playing a game that is against autoers, you don't need so much tol. Try making it lower and taking out any random pixel clicking if you have it.

    ~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.


  6. #6
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Also, post a picture of the item you're trying to find, as well as the DTM you're using.

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

    Default

    Is there a way to call the main loop during a procedure? (basically restart the main looP)
    Oh Hai Dar

  8. #8
    Join Date
    Nov 2007
    Posts
    43
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by M_A_I_N_FTW View Post
    Is there a way to call the main loop during a procedure? (basically restart the main looP)
    if you want to loop a script forever just use
    SCAR Code:
    repeat
    until (false)
    on the main loop

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

    Default

    I need a procedure, which calls the *MAIN LOOP*.

    Story:
    I want to change terminatescript to restart the script. any ideas?
    Oh Hai Dar

  10. #10
    Join Date
    Dec 2007
    Posts
    2,766
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    Just use Sleeping I guess ? :S

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

    Default

    Make the MainLopp as a procedure then forward it at the beginning of the script

    SCAR Code:
    Procedure MainLoop; Forward;

    Then use it in any procedure below that line .

    What Forward does is it calls the proc or func. before the script 'starts'.

    Hope I Helped

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

    Default

    do i keep the main looP
    and do i call forward; or mainloop;?
    Oh Hai Dar

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. need for to do loop help
    By Raskolnikov in forum OSR Help
    Replies: 6
    Last Post: 07-02-2008, 03:21 AM
  2. Need help with Loop
    By Brenth in forum OSR Help
    Replies: 2
    Last Post: 12-31-2007, 05:35 PM
  3. Loop help?
    By Becks in forum OSR Help
    Replies: 3
    Last Post: 10-23-2007, 10:32 AM
  4. Help with loop
    By skullbr00d in forum OSR Help
    Replies: 0
    Last Post: 05-29-2007, 09:23 PM
  5. loop
    By macromacro123 in forum OSR Help
    Replies: 4
    Last Post: 03-18-2007, 07:50 PM

Posting Permissions

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