Cheez 1 Share Posted July 1, 2017 Hey guys, I'm using isHealthBarVisible() right now for a fighter script I made, and it's slowing down my xp rate. The script is coded to not attack another NPC before the health bar goes away. When I don't use isHealthBarVisible, the script attempts to attack other NPCs after it loots items, even when the character is already under attack. Here's what my if clause looks like: if(!NPC.isInCombat() && !getLocalPlayer().isInCombat() && !getLocalPlayer().isHealthBarVisible()){ attack(); } Any ideas on how I can go around this issue? Thanks Link to comment Share on other sites More sharing options...
Polymorphism 48 Share Posted July 1, 2017 Check if any npcs are interacting with you or you are other npcs. Ideal really if you know the player will be in combat and not trying to talk to, etc Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.