zachtucker Posted May 22, 2013 Share Posted May 22, 2013 is there a way to count the ammount of npc's you have killed or is the api that far yet? Link to comment Share on other sites More sharing options...
Franimal Posted May 22, 2013 Share Posted May 22, 2013 I assume NPC animations are in the API, as well as entity interactions, in which case you can check for death animation while you are interacting and add to kill count. I'm just assuming though, I've never actually written a script for osbot. Link to comment Share on other sites More sharing options...
zachtucker Posted May 22, 2013 Author Share Posted May 22, 2013 yes but how would you make it count your npc in specific and not all other npc's doing the same animation around you Link to comment Share on other sites More sharing options...
Franimal Posted May 22, 2013 Share Posted May 22, 2013 (edited) Is there a method on the NPC class like npc.getInteractingEntity() or something? If there is you could use if(npc.getInteractingEntity().equals(getMyPlayer()) && npc.getAnimation() == deathAnim) count++; That kind of thing could work. Edited May 22, 2013 by Franimal Link to comment Share on other sites More sharing options...
zachtucker Posted May 22, 2013 Author Share Posted May 22, 2013 let me check Link to comment Share on other sites More sharing options...
Aeterna Posted May 22, 2013 Share Posted May 22, 2013 isFacing(Character) Link to comment Share on other sites More sharing options...
Franimal Posted May 23, 2013 Share Posted May 23, 2013 isFacing(Character) Some problems may arise with that though; there are cases where they will be facing and not dying to you Link to comment Share on other sites More sharing options...
Aeterna Posted May 23, 2013 Share Posted May 23, 2013 Some problems may arise with that though; there are cases where they will be facing and not dying to you It doesn't really find facing (as far as one person facing north, one south, looking at each other) from what I've experienced, just interacting. Link to comment Share on other sites More sharing options...
Franimal Posted May 23, 2013 Share Posted May 23, 2013 It doesn't really find facing (as far as one person facing north, one south, looking at each other) from what I've experienced, just interacting. Ah, that's ok then. Link to comment Share on other sites More sharing options...
zachtucker Posted May 23, 2013 Author Share Posted May 23, 2013 i just made a large complex code of a bunch of fail safes using getFacing() and a bunch of other methods ill post a betta of my new script tonight Link to comment Share on other sites More sharing options...