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

Thread: SMART Cursor

  1. #1
    Join Date
    Jun 2014
    Posts
    463
    Mentioned
    27 Post(s)
    Quoted
    229 Post(s)

    Default SMART Cursor

    Is it possible to change the cursor that's loaded with SMART? The red dot? Would be cool if we can change the cursor to our customization
    Tsunami

  2. #2
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by xevo1 View Post
    Is it possible to change the cursor that's loaded with SMART? The red dot? Would be cool if we can change the cursor to our customization
    You have four choices yeah..

    You can:

    • Modify the OpenGL plugin
    • Modify the DirectX plugin
    • Modify Smart itself
    • Modify the SRL mouse function to paint on top of the mouse when it moves


    The last one is by far the easiest to do.
    I am Ggzz..
    Hackintosher

  3. #3
    Join Date
    Jun 2014
    Posts
    463
    Mentioned
    27 Post(s)
    Quoted
    229 Post(s)

    Default

    Dang, want to help me? I like the p-bot mouse cursor with the tracer
    Tsunami

  4. #4
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by xevo1 View Post
    Dang, want to help me? I like the p-bot mouse cursor with the tracer
    I believe an old Gnome Agility script had mouse trails. Dig around in the outdated RS3 script section and see what you can learn, pretty sure it was by DannyRS
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  5. #5
    Join Date
    Jun 2014
    Posts
    463
    Mentioned
    27 Post(s)
    Quoted
    229 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    I believe an old Gnome Agility script had mouse trails. Dig around in the outdated RS3 script section and see what you can learn, pretty sure it was by DannyRS
    Thanks, will take a look. I mean, if we're going to use the bot might as well make it look nice
    Tsunami

  6. #6
    Join Date
    Nov 2012
    Location
    N/A
    Posts
    185
    Mentioned
    2 Post(s)
    Quoted
    19 Post(s)

    Default

    Been looking through RS3 outdated, no cursor methods by DannyRS is their, he has a Wildy agility but it doesn't have the custom cursor, checked a few other agility courses as well with no luck, their was something maybe of use in DannyRS's Fletcher, but still not what xevo1 is after, i will keep looking. I remeber a long time ago a member by the name of "jeffrey" had one in his ash collector script back in 2012.

    This might help for an idea of using directx/opengl: https://villavu.com/forum/showthread...ghlight=cursor

    Maybe try looking into some of Brandons older work:
    https://villavu.com/forum/showthread.php?t=108229

    He talks to a guy about it here:
    https://villavu.com/forum/showthread...ghlight=cursor

    -CRASH.

  7. #7
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by xevo1 View Post
    Dang, want to help me? I like the p-bot mouse cursor with the tracer
    Quote Originally Posted by CRASH_OVERRIDE View Post
    Been looking through RS3 outdated, no cursor methods by DannyRS is their, he has a Wildy agility but it doesn't have the custom cursor, checked a few other agility courses as well with no luck, their was something maybe of use in DannyRS's Fletcher, but still not what xevo1 is after, i will keep looking. I remeber a long time ago a member by the name of "jeffrey" had one in his ash collector script back in 2012.

    This might help for an idea of using directx/opengl: https://villavu.com/forum/showthread...ghlight=cursor

    -CRASH.
    Like 3 lines edited in the mouse.simba include file:

    E: new gif:

    Last edited by The Mayor; 07-07-2014 at 10:35 AM.

  8. #8
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    Like 3 lines edited in the mouse.simba include file:

    E: new gif:

    That's the one I was thinking of :P
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  9. #9
    Join Date
    Nov 2012
    Location
    N/A
    Posts
    185
    Mentioned
    2 Post(s)
    Quoted
    19 Post(s)

    Default

    Nice, didn't even think to check mouse.simba!

  10. #10
    Join Date
    Jun 2014
    Posts
    463
    Mentioned
    27 Post(s)
    Quoted
    229 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    Like 3 lines edited in the mouse.simba include file:

    E: new gif:

    Sweet, wish it was more customized though , Mind sharing how you did it?


    Would be cool if we could get this in there
    Last edited by Lucidity; 07-07-2014 at 02:11 PM.
    Tsunami

  11. #11
    Join Date
    Nov 2012
    Location
    N/A
    Posts
    185
    Mentioned
    2 Post(s)
    Quoted
    19 Post(s)

    Default

    Would is use much of the CPU?

  12. #12
    Join Date
    Mar 2012
    Posts
    29
    Mentioned
    1 Post(s)
    Quoted
    23 Post(s)

    Default

    Quote Originally Posted by CRASH_OVERRIDE View Post
    Would is use much of the CPU?
    I don't think so. It is simple mouse trail.

  13. #13
    Join Date
    Nov 2012
    Location
    N/A
    Posts
    185
    Mentioned
    2 Post(s)
    Quoted
    19 Post(s)

    Default

    I think a few of these would help, imagine if it was visible if disabledebug=false in all scripts?

    We can make scripts and see the trail and make it more human like, sort of how jagex does with their screensweeper to ban players.

  14. #14
    Join Date
    Dec 2011
    Posts
    2,147
    Mentioned
    221 Post(s)
    Quoted
    1068 Post(s)

    Default

    Quote Originally Posted by xevo1 View Post
    Sweet, wish it was more customized though , Mind sharing how you did it?


    Would be cool if we could get this in there
    Wow those trails actually would be incredibly useful to me for trying to see how human-like my script's mouse movements are.

  15. #15
    Join Date
    Nov 2012
    Location
    N/A
    Posts
    185
    Mentioned
    2 Post(s)
    Quoted
    19 Post(s)

    Default

    Yeah! I reckon if we had a few Constants of trails made, in mouse.simba and then had a new function that would let you select one of the trail constants i reckon we could all improve our mouse functions.

  16. #16
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Quote Originally Posted by bestplox View Post
    I don't think so. It is simple mouse trail.
    Wrong, would take the exact same CPU as drawing the whole entire SMART image, so in simple terms it's a damn lot more cpu wasted for a simple mouse trail.

  17. #17
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Quote Originally Posted by Olly View Post
    Wrong, would take the exact same CPU as drawing the whole entire SMART image, so in simple terms it's a damn lot more cpu wasted for a simple mouse trail.
    Quote Originally Posted by bestplox View Post
    I don't think so. It is simple mouse trail.
    Exactly, it's drawing the entire image AGAIN with the trail as a paint. What the mouse trail is, is it's basically a paint progress kinda thing ONLY for the mouse.

  18. #18
    Join Date
    Nov 2012
    Location
    N/A
    Posts
    185
    Mentioned
    2 Post(s)
    Quoted
    19 Post(s)

    Default

    ^ kinda thought that

  19. #19
    Join Date
    Oct 2012
    Posts
    1,258
    Mentioned
    40 Post(s)
    Quoted
    588 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    Like 3 lines edited in the mouse.simba include file:

    E: new gif:

    that is REALLY sexy.

  20. #20
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    Like 3 lines edited in the mouse.simba include file:

    E: new gif:

    I'd like to know how to do this too

  21. #21
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    I'd like to know how to do this too
    modify mouse.simba? (for locally)
    or just do a...
    Simba Code:
    procedure _brakeWindMouse(xs, ys, xe, ye, gravity, wind, minWait, maxWait,
              targetArea: extended; double: boolean); override;
    var
      veloX,veloY,windX,windY,veloMag,dist,randomDist,lastDist,D: extended;
      lastX,lastY,MSP,W,TDist,T: integer;
      sqrt2,sqrt3,sqrt5,PDist,maxStep,dModA,dModB,nModA,nModB: extended;
    begin
      MSP  := mouseSpeed;
      sqrt2:= sqrt(2);
      sqrt3:= sqrt(3);
      sqrt5:= sqrt(5);
    //////////////////////////////////////////////////////////////////////////////
      smartImage.clear();

      TDist := distance(round(xs), round(ys), round(xe), round(ye));
      if (TDist < 1) then
        TDist := 1;

      dModA := 0.88; //.80
      dModB := 0.95; //.90

      if (TDist > 220) then
      begin
        nModA := 0.08;
        nModB := 0.04;
      end else if (TDist <= 220) then
      begin
        nModA := 0.20;
        nModB := 0.10;
      end;

      t := getSystemTime() + 5000;
      repeat
        if (getSystemTime() > t) then
          break;

        dist:= hypot(xs - xe, ys - ye);
        wind:= minE(wind, dist);
        if (dist < 1) then
          dist := 1;
        PDist := (dist/TDist);
        if (PDist < 0.01) then
          PDist := 0.01;

        if double then
        begin
          if (PDist <= dModA) then
          begin
            D := (round((round(dist)*0.3))/5);
            if (D < 20) then
              D := 20;

          end else if (PDist > dModA) then
          begin
            if (PDist < dModB) then
              D := randomRange(5, 8)
            else if (PDist >= dModB) then
              D := randomRange(3, 4);
          end;
        end;

        if (PDist >= nModA) then
        begin
           D := (round((round(dist)*0.3))/5);
          if (D < 20) then
            D := 20;
        end else if (PDist < nModA) then
        begin
          if (PDist >= nModB) then
            D := randomRange(5, 8)
          else if (PDist < nModB) then
            D := randomRange(3, 4);
        end;

        if (D <= round(dist)) then
          maxStep := D
        else
          maxStep := round(dist);

        if dist >= targetArea then
        begin
          windX:= windX / sqrt3 + (random(round(wind) * 2 + 1) - wind) / sqrt5;
          windY:= windY / sqrt3 + (random(round(wind) * 2 + 1) - wind) / sqrt5;
        end else
        begin
          windX:= windX / sqrt2;
          windY:= windY / sqrt2;
        end;

        veloX:= veloX + windX;
        veloY:= veloY + windY;
        veloX:= veloX + gravity * (xe - xs) / dist;
        veloY:= veloY + gravity * (ye - ys) / dist;

        if (hypot(veloX, veloY) > maxStep) then
        begin
          randomDist:= maxStep / 2.0 + random(round(maxStep) div 2);
          veloMag:= sqrt(veloX * veloX + veloY * veloY);
          veloX:= (veloX / veloMag) * randomDist;
          veloY:= (veloY / veloMag) * randomDist;
        end;

        lastX:= round(xs);
        lastY:= round(ys);
        xs:= xs + veloX;
        ys:= ys + veloY;

    ////////////////////////////////////////////////////////////////////////////////
        if (lastX <> round(xs)) or (lastY <> round(ys)) then
        begin
          moveMouse(round(xs), round(ys));
          smartImage.drawCircle(point(round(xs), round(ys)), random(1, 6), true, random(10000, 20000));
        end;
    ////////////////////////////////////////////////////////////////////////////////

        W := (random((round(100/MSP)))*6);
        if (W < 5) then
          W := 5;
        if double then
          if (PDist > dModA) then
            W := round(W*2.5)
        else
          W := round(W*1.2);
        wait(W);
        lastdist:= dist;
      until(hypot(xs - xe, ys - ye) < 1)

    ////////////////////////////////////////////////////////////////////////////////
      if (round(xe) <> round(xs)) or (round(ye) <> round(ys)) then
      begin
        moveMouse(round(xe), round(ye));
        smartImage.drawCircle(point(round(xe), round(ye)), random(1, 6), true, random(10000, 20000));
      end;
    ////////////////////////////////////////////////////////////////////////////////

      mouseSpeed := MSP;
    end;
    and then do the same for _humanWindMouse. (for a per-script basis)

    PS: code not tested.

    PPS: Started attempting to write one that dynamically updated the line earlier today. left. came back drunk, contemplated doing it. meh. whatever.

  22. #22
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Put this together in a couple of mins http://tinypic.com/player.php?v=15n3...8#.U8KqCfldWaq

  23. #23
    Join Date
    Dec 2011
    Posts
    2,147
    Mentioned
    221 Post(s)
    Quoted
    1068 Post(s)

  24. #24
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Quote Originally Posted by Clarity View Post
    Is that via updated plugin aka not a big cost to CPU?
    Nop, Did it in Simba.

    I could probs do it if @Brandon's DXI (pascal) plugin worked.. but it has some dumb bug which sucks.
    Last edited by Olly; 07-13-2014 at 05:41 PM.

  25. #25
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by Olly View Post
    Nop, Did it in Simba.

    I could probs do it if @Brandon's DXI (pascal) plugin worked.. but it has some dumb bug which sucks.
    What bug? :S
    I am Ggzz..
    Hackintosher

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)

Posting Permissions

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