Invidious 1 Share Posted February 6, 2020 I'm trying to attack an NPC, move to a specified tile and then attack the same NPC again and I cant seem to figure it out. Are there other ways to check if you can interact with an NPC besides the common "if is in combat" or "if health bar is visible". Id appreciate any help provided. Link to comment Share on other sites More sharing options...
Articron 737 Share Posted February 6, 2020 Depends on the context really. One could create a listener that looks for the NPC's defensive animation, or a listener on the player for their attack animation. Another would be to listen for XP changes, but when hitting a 0, it wouldn't be detected. Even then, implementing something like woox walking on Vorkath for example is still a pretty big challenge to get perfect. Link to comment Share on other sites More sharing options...
Invidious 1 Author Share Posted February 6, 2020 1 hour ago, Articron said: Depends on the context really. One could create a listener that looks for the NPC's defensive animation, or a listener on the player for their attack animation. Another would be to listen for XP changes, but when hitting a 0, it wouldn't be detected. Even then, implementing something like woox walking on Vorkath for example is still a pretty big challenge to get perfect. In this case my character is using magic while safe spotting. If the NPC is farther than the cast range the player will step out, cast and return to the safe spot. But once in the safe spot again the character and NPC both just stand there until either another one spawns or walks in to a specified area because im currently only checking if the NPC is in combat to avoid trying to attack an NPC fighting someone else Link to comment Share on other sites More sharing options...
Invidious 1 Author Share Posted February 6, 2020 I cant edit the above comment for some reason but its meant to say "Both just stand there until either another NPC of the same type spawns, or another NPC of the same type walks into the area I specified. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now