[GH-ISSUE #47] Diagonal Combat Bug #1424

Closed
opened 2026-05-21 10:14:31 +00:00 by Dark98 · 4 comments
Owner

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.

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.
Dark98 added the Difficulty: Medium label 2026-05-21 10:14:31 +00:00
Author
Owner

@mrextremez commented on GitHub (Oct 21, 2019):

Issue has to do with npc attack clipping

<!-- gh-comment-id:544732455 --> @mrextremez commented on GitHub (Oct 21, 2019): Issue has to do with npc attack clipping
Author
Owner

@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

<!-- gh-comment-id:545568656 --> @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
Author
Owner

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

<!-- gh-comment-id:545912166 --> @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.
Author
Owner

@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!

<!-- gh-comment-id:546701689 --> @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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 2006-Scape/2006Scape#1424