Thread: [PI] Item Dragging Fix [PI]

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 [PI] Item Dragging Fix [PI] 
    Banned
    Join Date
    Mar 2012
    Posts
    157
    Thanks given
    5
    Thanks received
    16
    Rep Power
    0
    I've sucessfully improved my item dragging by

    Replacing my whole mouseDragged method with


    Code:
     public final void mouseDragged(MouseEvent mouseevent)
        {
            int i = mouseevent.getX();
            int j = mouseevent.getY();
            if(gameFrame != null)
            {
                i -= 4;
                j -= 22;
            }
            if (System.currentTimeMillis() - clickTime >= 250L
                || Math.abs(saveClickX - i) > 5 || Math.abs(saveClickY - j) > 5) {
                idleTime = 0;
                mouseX = i;
                mouseY = j;
            }
        }
    And my whole mouseMoved method with

    Code:
      public final void mouseMoved(MouseEvent mouseevent)
        {
            int i = mouseevent.getX();
            int j = mouseevent.getY();
            if(gameFrame != null)
            {
                i -= 4;
                j -= 22;
            }
          if (System.currentTimeMillis() - clickTime >= 250L
                || Math.abs(saveClickX - i) > 5 || Math.abs(saveClickY - j) > 5) {
                idleTime = 0;
                mouseX = i;
                mouseY = j;
          }
        }
    There was a significant difference, but items are still a little draggy, how may I tweek this so items are less sensitive and smooth switching?
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Mar 2012
    Posts
    157
    Thanks given
    5
    Thanks received
    16
    Rep Power
    0
    Bump
    Reply With Quote  
     

  3. #3  
    Banned
    Join Date
    Mar 2012
    Posts
    157
    Thanks given
    5
    Thanks received
    16
    Rep Power
    0
    No one knows?
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Mar 2012
    Posts
    157
    Thanks given
    5
    Thanks received
    16
    Rep Power
    0
    I was told to change around numbers in OnDemandFetcher.
    Reply With Quote  
     

  5. #5  
    Tantalizing

    Join Date
    Apr 2011
    Posts
    445
    Thanks given
    106
    Thanks received
    123
    Rep Power
    66
    Code:
    public static final int MAX_PROCESS_PACKETS = 10;
    Config.java

    Increase le number.
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Mar 2012
    Posts
    157
    Thanks given
    5
    Thanks received
    16
    Rep Power
    0
    Quote Originally Posted by Light View Post
    Code:
    public static final int MAX_PROCESS_PACKETS = 10;
    Config.java

    Increase le number.
    Please don't troll.
    Reply With Quote  
     

  7. #7  
    Registered Member Skyn's Avatar
    Join Date
    Nov 2007
    Posts
    421
    Thanks given
    28
    Thanks received
    13
    Rep Power
    56
    Quote Originally Posted by Tiggy View Post
    Please don't troll.
    He wasn't trolling he was telling you to increase the number in config.java..

    Read the post.
    System.out.println("I love Rune-Server");
    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    Mar 2012
    Posts
    157
    Thanks given
    5
    Thanks received
    16
    Rep Power
    0
    Quote Originally Posted by Skyn View Post
    He wasn't trolling he was telling you to increase the number in config.java..

    Read the post.
    Increases the number has no effect on dragging, it only makes the items register faster.
    Reply With Quote  
     

  9. #9  
    Banned
    Join Date
    Feb 2012
    Posts
    584
    Thanks given
    0
    Thanks received
    13
    Rep Power
    0
    this is a bit old, but the packets that are sending to switch, if its more then 10 packets per second, itll fuck up (: just sayin
    Reply With Quote  
     

  10. #10  
    Banned
    Join Date
    Feb 2013
    Posts
    61
    Thanks given
    6
    Thanks received
    10
    Rep Power
    0
    Quote Originally Posted by Flavorless Fab View Post
    this is a bit old, but the packets that are sending to switch, if its more then 10 packets per second, itll fuck up (: just sayin
    why are you bumping a year old thread... fucking spastic....
    Reply With Quote  
     

  11. Thankful user:


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)


User Tag List

Similar Threads

  1. [639] Slow Switching and Dragging [639]
    By `Eclipse™ in forum Help
    Replies: 1
    Last Post: 01-21-2012, 06:52 PM
  2. Disable/Enable inventory dragging
    By Integer Array in forum Snippets
    Replies: 6
    Last Post: 07-10-2011, 11:31 PM
  3. item on item dementhium 614/634 fix to make items
    By Zᴀᴄʜ in forum Snippets
    Replies: 16
    Last Post: 06-24-2011, 06:40 PM
  4. Mouse dragging [REP++]
    By mige5 in forum Application Development
    Replies: 0
    Last Post: 02-09-2011, 10:44 AM
  5. Replies: 31
    Last Post: 03-01-2008, 06:40 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •