Thread: RichScape PKing Bug Fix

Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1 RichScape PKing Bug Fix 
    Registered Member
    Auruo's Avatar
    Join Date
    Mar 2008
    Age
    32
    Posts
    750
    Thanks given
    21
    Thanks received
    15
    Rep Power
    499
    Purpose: This fixes (or is at least a successful work-around) the bug where if you mass click attack someone while in the wilderness it will DC everyone on the minimap.

    Difficulty: 1

    Classes Modified: Client.java and Player.java

    Tested On: RichScape 4.3 (Bug is in 4.0+)

    Step #1: Declare in either Player.java or Client.java (Must be client.java for 4.0-4.1 I believe)
    Code:
    int ClickCount = 0;
    (Description of Above: Adds the int that'll be used as a timer)

    Step #2: Find packet 73, and above
    Code:
    			AttackingOn = inStream.readSignedWordBigEndian();
    Add
    Code:
    		if (ClickCount <= 1) {
    			ClickCount += 2;
    (Description of Above: If the timer is less than or equal to 2 it'll proceed to attack or mage and add 3 to the timer. If not, nothing happens.)

    Step #3: At the end of case 73 before the break; add }
    (Description of Above: Closes off what was added)

    Step #4: Find
    Code:
    void process()
    and inside it put
    Code:
    		if (ClickCount > 0) {
    			ClickCount -= 1;
    		}
    (Description of Above: Makes the timer countdown)

    That's it. I've yet to test this myself.

    Credits:
    50% Chachi (Brought the problem to my attention and tested tons of crap for me)
    25% 2012 (Finding out where the problem originated)
    24% Me (Making a fix for it)
    1% 'Rich (Being sexy and making such a sexy source, fixing shits half the fun)

    Also, there may be some other things wrong with this, but since I didn't get to test I can't say what needs to be changed. So if you have any other problems let me know.
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jun 2008
    Age
    27
    Posts
    2,312
    Thanks given
    485
    Thanks received
    231
    Rep Power
    0
    Lol nice, although you can redo the whole clicking *hint*
    Reply With Quote  
     

  3. #3  
    Registered Member
    Auruo's Avatar
    Join Date
    Mar 2008
    Age
    32
    Posts
    750
    Thanks given
    21
    Thanks received
    15
    Rep Power
    499
    Quote Originally Posted by jinrake View Post
    Lol nice, although you can redo the whole clicking *hint*
    (or is at least a successful work-around)
    I'm lazy at best.
    Reply With Quote  
     

  4. #4  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    28
    Posts
    4,419
    Thanks given
    1,184
    Thanks received
    757
    Rep Power
    3098
    Im the the 1 who actually figured where the problem is at, By reading the error which people never do, Then i said it was in packet 73
    Reply With Quote  
     

  5. #5  
    Registered Member
    Auruo's Avatar
    Join Date
    Mar 2008
    Age
    32
    Posts
    750
    Thanks given
    21
    Thanks received
    15
    Rep Power
    499
    Quote Originally Posted by 2012 View Post
    Im the the 1 who actually figured where the problem is at, By reading the error which people never do, Then i said it was in packet 73
    Oh whoops, credit given, sorry
    Reply With Quote  
     

  6. #6  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    28
    Posts
    4,419
    Thanks given
    1,184
    Thanks received
    757
    Rep Power
    3098
    Quote Originally Posted by Auruo View Post
    Oh whoops, credit given, sorry
    Lol, Its ok i care about being given credit, My comment ment to show that you should attempt the read the error instead of posting a new thread for help
    Reply With Quote  
     

  7. #7  
    Registered Member
    Chachi's Avatar
    Join Date
    Sep 2008
    Posts
    1,536
    Thanks given
    49
    Thanks received
    103
    Rep Power
    602
    Thanks to all involved!
    [/CENTER]
    Reply With Quote  
     

  8. #8  
    SlIpKn0t LoV3r
    Guest
    Thats kool i guess =p, you could clean it up a bit with the code... but gj
    Reply With Quote  
     

  9. #9  
    Banned

    Join Date
    Jan 2008
    Posts
    965
    Thanks given
    2
    Thanks received
    17
    Rep Power
    0
    Quote Originally Posted by 2012 View Post
    Im the the 1 who actually figured where the problem is at, By reading the error which people never do, Then i said it was in packet 73
    Wow lol, that must be hard..
    Reply With Quote  
     

  10. #10  
    Registered Member
    Auruo's Avatar
    Join Date
    Mar 2008
    Age
    32
    Posts
    750
    Thanks given
    21
    Thanks received
    15
    Rep Power
    499
    Quote Originally Posted by Bloody View Post
    Wow lol, that must be hard..
    Sadly, since me and chachi didn't even think to look there lol
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

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