Results 1 to 8 of 8

Thread: Part of my first script[Problem]

  1. #1
    Join Date
    Aug 2007
    Posts
    75
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Part of my first script[Problem]

    i have a procedure in my program

    Code:
    procedure BuryBones;
    begin
    
         while(FindDTM(Bone, x, y,560, 210, 725, 450 ))Do
         begin
             // MoveMouseSmooth(x,y);
              Wait(1000+random(500));
              mmouse(x,y,3,3);
              //Wait(100+random(500));
              Mouse(x,y,3,3,True);
              Buried:=Buried + 1;
              xp:=xp + 4.5;
         end;
         writeln('no bones found');
    end;
    The problem only occours now and again, when a bone is found in the inventory and its is clicked the mouse moves ever so slightly after the bone has been buried <<thats the problem<<. This doesnt happen after every bone, because due to the timer the mouse moves before the mouse flicker can happen. Is this normal?? I tried removing the random parameters from the mouse functions but the problem still occured.

    This would possibly look suspicious to people monitering so i'd like to get rid of the movement even though it is only a small movement...

    Any input greatly accepted!

  2. #2
    Join Date
    Dec 2006
    Location
    .̿̂̔͋͗̎̆ͥ̍̒ͤ͂̾̌̀̅
    Posts
    3,012
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Most likely has something to do with the game update.. You'll have to wait until SRL is updated.

    EDIT: Also, to click the mouse you don't need MMouse first, as Mouse moves the mouse and clicks.

  3. #3
    Join Date
    Aug 2007
    Posts
    75
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Now using mouse and took out some extra lines of code fixed the problem.

  4. #4
    Join Date
    Jan 2007
    Location
    Kansas
    Posts
    3,760
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    I'm sorry dude but you have triple posted. That is against forum rules and I will have to give you noob points. I will urge you to refrain from double posting in the future to not get more noob points. Remember that their is an edit button so that you can edit your posts. It is a very useful tool. Also their is a free script section that has many good scripts that you can use.

    NOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOB
    You, Dude, have been reported for being a NOOB.
    Your
    Current violations include
    1. Double Posting for
    This brings you to a new total of (2) Noob Points!

    For more information on Dude please go Here.

    For more information from This database please go Here.

    For more information on The Noob Points System please go Here.

    For more information on Noobs please go Here.

    NOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOBNOOB


  5. #5
    Join Date
    Aug 2007
    Posts
    75
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Fair enough, posts deleted....sorry about that

    edit: BTW the links in you post allow people to delete their own 'Noob Points', might want to change that.

    Regards

  6. #6
    Join Date
    Jun 2007
    Location
    La Mirada, CA
    Posts
    2,484
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    SCAR Code:
    mmouse(x,y,3,3);
    //Wait(100+random(500));
    Mouse(x,y,3,3,True);

    id believe its b/c of the 3's it gives the option to move a random of 3 pixels from that location, change the 3's to 0s and it should fix the problem i believe

    "Failure is the opportunity to begin again more intelligently" (Henry Ford)


  7. #7
    Join Date
    Feb 2006
    Location
    New Zealand
    Posts
    1,330
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Dont you hate it when nobody wants to help you . I reccomend looking through srl and looking at the inv dtm functions or bitmap functions. Basically the problem is the waits. But we dont want to wait to long or to little. So basically what you do is just go along the inv slots searching for the dtm.
    This may not make sence. But look in srl. Then have a look at the inv procedures.

  8. #8
    Join Date
    Aug 2007
    Posts
    75
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeah cheers pyro did the above a few days after posting and sorted the problem out.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Part Made Script - Big one
    By HarryJames in forum First Scripts
    Replies: 4
    Last Post: 11-08-2008, 01:48 PM
  2. Problem with the last part of my script
    By Tom_Gower in forum OSR Help
    Replies: 4
    Last Post: 11-07-2008, 10:00 PM
  3. need help with part of script!
    By vikrant60 in forum OSR Help
    Replies: 6
    Last Post: 05-09-2008, 10:52 AM
  4. Problem Accessing Main Part of SRL-Forums
    By Light in forum SRL Site Discussion
    Replies: 29
    Last Post: 09-11-2007, 11:42 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
  •