mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-02 16:49:03 +00:00
[GH-ISSUE #47] Diagonal Combat Bug #12471
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mrslayer01 on GitHub (Oct 10, 2019).
Original GitHub issue: https://github.com/2006-Scape/2006Scape/issues/47
Seems to be a common thing with the revision he used, but you can just step 1 square diagonally and npcs won't attack back which you can just range them.
@mrextremez commented on GitHub (Oct 21, 2019):
Issue has to do with npc attack clipping
@Gptaqbc commented on GitHub (Oct 23, 2019):
Here's a potential solution: https://www.rune-server.ee/runescape-development/rs2-server/snippets/688419-npc-safespot-angle-fix.html
@Gptaqbc commented on GitHub (Oct 24, 2019):
Alright, seems like what I found will fix our problem. I'll implement it tonight when I get home.
@Gptaqbc commented on GitHub (Oct 27, 2019):
In NPCHandler.java (line 1038):
if (goodDistance(npcs[i].getX(), npcs[i].getY(), playerX, playerY,
distanceRequired(i))) {
return;
}
This is what fucks it up. It's about the distanceRequired. I'll look closer at it when I have more time!