Jump to content

Peach

Members
  • Posts

    9
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Peach's Achievements

Newbie

Newbie (1/10)

1

Reputation

1

Community Answers

  1. Is actually calling for the mouse scroll itself bugged, or just Bank#scrollToSlot?
  2. The way you wrote it unfortunately won't work, although it is a step in the right direction. The line-by-line on yours would go like this: NPC: Man, Level 3 -Player: PlayerOne, Level 126, is interacting with NPC Man. Do not return NPC Man. -Player: PlayerTwo, Level 3, is not interacting with NPC Man. Return NPC Man. Then it'd be returning NPC Man even though he's interacting with PlayerOne. edit: walked through too much
  3. This won't return any NPCs that are offscreen because of NPC#isVisible(), it's probably best to remove that entirely and have the script itself run to the off-screen enemy if necessary. Also, like mentioned earlier, NPC#isUnderAttack() isn't the most reliable thing to use. Rather, I'd recommend using NPC#getFacing() to see who the NPC is interacting with. If it's you, always return that one. If it's someone else, they're in combat already, so skip it. If it's null, they're likely not in combat (idle), so chose that one.
×
×
  • Create New...