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 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.