Dodian Fix: Fishing animation when you can't fish
This is simple, but it will fix a common bug in most Devolution or Dodian based servers.
I never said this was some reasonably great tutorial, but it's one less bug.
Problem: When it says you're fishing level is not high enough, it'll still appear like you are fishing.
Solution: Add a animation reset
In client.java search for:
Code:
if (playerLevel[playerFishing] < reqFishing) {
And then below it, add this:
Code:
animationReset = System.currentTimeMillis() + 0;
What this does it is resets the animation straight away.
And then lastly, search for:
Code:
if (!playerHasItem(req)) {
Then below that, add the same thing.
Code:
animationReset = System.currentTimeMillis() + 0;
Simple and easy to implement, but does make some what of a difference to the realism of your server. If you don't understand this tutorial, I don't think you should be touching servers.
Credits: I found this out myself a while ago, thought I'd like to release it to the public. It's nothing special, and perhaps has already been done.