danieljvdm Posted April 29, 2013 Share Posted April 29, 2013 Would you guys say that this is the best way to do it?while(client.getMyPlayer().isFacing(theNPC) && client.getMyPlayer().isUnderAttack())?Cause it only seems to start working after a few seconds of combat. Link to comment Share on other sites More sharing options...
Apple Posted April 30, 2013 Share Posted April 30, 2013 NPC npcName = closestNPC(npc's ID); if (npcName != null && !myPlayer().isUnderAttack()) { do whatever } Link to comment Share on other sites More sharing options...
danieljvdm Posted May 2, 2013 Author Share Posted May 2, 2013 NPC npcName = closestNPC(npc's ID); if (npcName != null && !myPlayer().isUnderAttack()) { do whatever } No Link to comment Share on other sites More sharing options...