Fix Emote Cancelling when clicking multiple times.
Most PIs have this issue where it'd reset your animation due to startAnimation(65535) being called in the walking packet.
For example,
Click Attack NPC, start armadyl godsword spec emote + gfx.
Click Attack NPC again during the special, Cancels emote by calling startAnimation(65535) in the walking Packet.
This is one of those things that is simply an annoyance, but won't affect anything but the visual.
Open up walking.java.
Look for:
Code:
c.startAnimation(65535);
Remove it.
Look for:
Code:
c.setNewWalkCmdIsRunning(c.getInStream().readSignedByteC() == 1);
for(int i1 = 0; i1 < c.newWalkCmdSteps; i1++) {
c.getNewWalkCmdX()[i1] += firstStepX;
c.getNewWalkCmdY()[i1] += firstStepY;
}
Under that add,
Code:
if((c.absX - (c.mapRegionX * 8)) - firstStepX != 0 || (c.absY - (c.mapRegionY * 8)) - firstStepY != 0)
c.startAnimation(65535);
How it works is, it checks to see how many squares you're walking.
If you're not walking at all, it won't cancel your current animation.