|
Hi guys I've been recently working on a server and came to a really annoying problem with the player following within the combat.
Here's two examples of what I am speaking of.
- What it seems to be that the player is locating only the X-coords of the opponent.
- Player keeps following but doesn't continue attacking like normal runescape. And yet stays within the X Coordinates of its opponent
Comment and tell me what you guys think. Maybe I will get a vision out of your knowledge. Thank you
Last edited by RuiN; 11-23-2013 at 05:23 AM. Reason: Paying!!!
bump
trump
fix up your combat and the player following.
Thanks for replying, anyone else?
Forest gump
Your path finding is really screwed, it seems that it looks for the x first then walks the y. You need it to take the shortest route and note walk horizontally... (unless it is a special circumstance e.g. behind a wall).
With the pvp thing, it should stop combat when the opponent is not at a good distance, but resume when you catch up, thought most people spam click anyways.
It's most likely this in your attack player method.
Code:/** * Checks if the player is not on the same X coord and Y coord and not using any *range or mage */ if (c.getX() != c2.getX() && c.getY() != c2.getY() && !c.usingOtherRangeWeapons && !c.getCombat().usingHally() && !c.usingBow && !c.usingMagic) { c.faceUpdate(i+32768); //face the player c.getPA().stopDiagonal(c2.getX(), c2.getY());//move to a correct spot return; }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |