Results 1 to 15 of 15

Thread: Quick question.

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

    Default Quick question.

    ok don't scream at me im new to scar...
    im using a script and it is very good except... it has a few clicks on exact coords every time!! ahhhhhhhhhhh! ok so how could i fix this? for example.
    when it clicks on the spec attack it does "Mouse(638, 424, 0, 0, True);"
    every time it does spec it is exact, how could i 'easily' change this?

  2. #2
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Mouse(638, 424, 0, 0, True);

    Change this to

    Mouse(638, 424, 5, 5, True);

    The 5, 5 is a random click variable of x of 5 and y of 5. Just increase this to be more random etc...

    I take it this is what you want to do; to make it more random correct?
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

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

    Default

    yes that is exactly what i wanted! and 5 x, y shouldn't change much what it clicks right?

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

    Default

    so if it was 5 than realy the cpu decides whether it is 0-5?

  5. #5
    Join Date
    Jun 2007
    Location
    Belgium
    Posts
    333
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    if you can get the coords then you can also replace it with
    MouseBox(x1, y1, x2, y2, True);
    x1, y1 being the top left corner of the box, in your case the top left corner of the spec att button
    x2, y2 being the bottom right corner of the spec att button
    Now it will left click at a random spot anywhere on the spec att button and if it needs to be a right click then change the True to False

  6. #6
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Yep.
    It adds a +random(5) to X or Y cord.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

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

    Default

    so all i need to do for the mouse box is find out the x,y of the uper left corner of spec and the lower right coner x, y? than just plug it in respectively?

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

    Default

    Quote Originally Posted by footballjds View Post
    so all i need to do for the mouse box is find out the x,y of the uper left corner of spec and the lower right coner x, y? than just plug it in respectively?
    nvm i figured it out, thanks so much for helping me!

    but 1 more question. is there any way to edit the scar core file to change the speed of the mouse? or would that be a no no?

  9. #9
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default



    Nope, you edit the mouse speed by doing

    "MouseSpeed := 13;" 13 is average fast, then 15 and so are faster and faster, 25 moves it there about instantly. use 13

  10. #10
    Join Date
    Jul 2007
    Posts
    1,055
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yea change
    Mouse(638, 424, 0, 0, True);
    to something like
    Mouse(638, 424, 10, 10, True);

    Is this Hy's cave fighter?

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

    Default

    no its rick's pc'er

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

    Default

    but i don't want just mousespeed of 13.... i want it to change... cause if it is always 13 thats very un-human.... it should change between like 12-15 or somthing? any way of doing this? like 13+random(2);?

  13. #13
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    If you did MouseSpeed:= 12 + Random(4);, the mousespeed would be from 12 to 15.

  14. #14
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    djs, the mouse speeds up when starting to move and slows down when reaching the destination.

    People aren't like "z0mg I drank 1337 cans of battery now I move faster than mousespeed 50"

    Look at WindMouse's source code, and mmouse's. It has a bit random speed.

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

    Default

    thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Just a quick question? Did I say quick?
    By SeanJohn in forum OSR Help
    Replies: 3
    Last Post: 01-28-2009, 12:03 AM
  2. Quick question
    By GinFoxface in forum OSR Help
    Replies: 2
    Last Post: 04-07-2007, 04:25 AM
  3. Quick Question
    By mage of begu in forum OSR Help
    Replies: 10
    Last Post: 01-12-2007, 10:48 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
  •