Honeycomb Posted May 31, 2013 Posted May 31, 2013 (edited) I'm writing an autofighter and while testing it, my character just sat there fighting an Evil Chicken... Can I add something to my script that allows OSBot to handle it, or do I have to handle it myself? Nevermind... It just solved Mysterious Old Man... I guess Evil Chicken is broken... Edited May 31, 2013 by Honeycomb
Rand Posted May 31, 2013 Posted May 31, 2013 You need to add some lines to do it. I got it in one of my scripts. It's simple really: 1. Search area for NPC's. 2. If NPC's contains Evil Chicken. 3. RUn away/tele
Honeycomb Posted May 31, 2013 Author Posted May 31, 2013 (edited) Should for (NPC npc : client.getLocalNPCs()) { if ((npc != null) && npc.getName().equals("Evil chicken") && npc.getFacing().equals(client.getMyPlayer())) { // TODO flee } } work? Edited May 31, 2013 by Honeycomb
Peter Posted May 31, 2013 Posted May 31, 2013 You need to add some lines to do it. I got it in one of my scripts. It's simple really: 1. Search area for NPC's. 2. If NPC's contains Evil Chicken. 3. RUn away/tele Could be anyone's Evil Chicken it should be .IsFacing.
Rand Posted May 31, 2013 Posted May 31, 2013 Could be anyone's Evil Chicken it should be .IsFacing. Yeah, I used this: if (randoms != null && (this.client.getMyPlayer().isUnderAttack()) && (randoms.isFacing(this.client.getMyPlayer()))) { // insert code here }
Honeycomb Posted May 31, 2013 Author Posted May 31, 2013 (edited) Are there any WORKING methods to adjust the camera? I want a top-down view, and a couple methods in the API seem to not do anything... My GPU goes crazy until "[DEBUG][]: Switched canvas mode to MULTITHREADED." hits... Edited May 31, 2013 by Honeycomb
Rand Posted May 31, 2013 Posted May 31, 2013 Are there any WORKING methods to adjust the camera? I want a top-down view, and a couple methods in the API seem to not do anything... My GPU goes crazy until "[DEBUG][]: Switched canvas mode to MULTITHREADED." hits... When looting I use: this.client.rotateCameraPitch(Int); It makes the camera move upto the int, I believe the highest is between 62-69, can't remember fully. NOTE: Not sure if this is what you meant, if so, you're welcome
Honeycomb Posted May 31, 2013 Author Posted May 31, 2013 (edited) When looting I use: this.client.rotateCameraPitch(Int); It makes the camera move upto the int, I believe the highest is between 62-69, can't remember fully. NOTE: Not sure if this is what you meant, if so, you're welcome Yeah, I used another method to find the values I wanted. I guess I wasn't using the correct values earlier. Great bot; I'll probably be purchasing VIP soon. Edited May 31, 2013 by Honeycomb