Jump to content

Twin

Members
  • Posts

    1334
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Twin

  1. Hmm, i've never had that issue before. I remember when isolate decompiled one of my scripts, all the states were backwards and what not. like my drop state contained what was supposed to be under the lay state, and things like that. I have no idea though.
  2. Honestly I don't know if that would be much help, I know the api kind of decently now, but I still have a lot to learn. I'd send it to someone who has more experience with it than I do. That, and I don't want you to like worry that I might steal it and what not. I wouldn't do it because I actually enjoy writing my own scripts instead of buying them now. If you want you can just send me how you're interacting with paydirt, that might solve a lot of issues. I'm going to get a full inventory of paydirt and start at the center area and see how it handles that.
  3. Already I can see a lot of thing are already wrong with it after running it for 10 seconds. Might be one little thing, but it will right click on the paydirt, then just sit there right clicked on it but not do anything, or it will after a good amount of time. What are you doing to interact with it? When I had mine, the only reason I couldn't finish it was because i had an issue where it would select paydirt through walls and I just gave up and couldn't figure it out. I literally had all the ID's listed under an entity named "pay" and it worked fine besides trying to click it through walls when rockfall was in the way. Entity pay = objects.closest(26664,26662,26661,26663,26679,26680); case MINE: { pay.interact("Mine"); sleep(random(3000, 4000)); break; } That's gonna click through walls and all that, but that's what I had and it would mine it just fine.
  4. Alright let me know when it goes through and i'll see what happens.
  5. Is there anyway you can give me permission to use it for like 10 minutes? I can see if it runs then you can take me off the list or whatever.
  6. Just realized none of my scripts manage randoms, I thought it was a default thing for the client to take over them.
  7. I was thinking about doing that but I can't remember my reasoning for not lol. Will try this, thanks! Worked! Thank you!
  8. Right now I have JOptionPane.showInputDialog burt that's yelling at me telling me I can't use a string for it. Is there something similar but with ints?
  9. Really curious to see if this will help ban rates.
  10. mouse.getPosition() unless that's not what you wanted. Unless this gets the x/y of where the mouse is on the osbot client and not what's under the mouse, but I was under the impression that this gets the in game cords.
  11. Twin

    CSGO players

    Naw not at all, I'm down to play with anyone.
  12. Currently SEM, bouncing around here and nova 1. Wouldn't say im awful at the game but i'm not that good. if anyone is down to play comment your steam id here and what not. I put effort in games but don't get mad unless its at myself for doing something really dumb, so im not going to be going 0 and 12 flaming the guy who's carrying the team (I wouldn't go zero and twelve just an example).
  13. if(cow.getHealth()<8)//im assuming you named the npc variable for cow cow. //basically this will check the cows health, and if its under 8 it won't attack it. { cow.interact("Attack"); } you can add an extra check as well like if(cow.getHealth()<8&&!cow.isUnderAttack) that way you can have 2 checks to see, if the cow doesn't have damage and if the cow is not underattack. if you want to add a third check, you can use a message listenter to get the phrase in the chatbox "NPC is already under attack" or whatever by doing @Override public void onMessage(Message message) throws InterruptedException { if(message.getMessage().toString().contains("Already under attack."))//make sure this has the exact phrase, case sensetive and all { log("This cow is already under attack!"); //then have your character move somewhere else or have it do another action after it gets this. } } I'm not the best with the osbot api/java in general but this should help a bit, apaec will probably be able to give you more advice though. I misread your question my bad, gonna leave that there though incase anyone else is curious. What you can do is make an area of the cowpen you're killing the cows in, and then you can do something like Area COWPEN = new Area(top right x, top right y, bottom left x, bottom left y); if(cow.isUnderAttack) { localWalker.walk(COWPEN.getRandomPosition(0));//will get a random area in the cow pen to run off to, then will kill cows that aren't under attack, or keep doing this until it finds one. } Defiantly better ways, but this is something that will work.
  14. Sorry went afk for a bit. Eclipse is yelling at me to change final Area to final int, and just underlines with red all the numbers I have after the =. final Area COAL = 1,2,3,4; //is that setup right?
  15. oh im a dumbass Area is a final lol, that might be why. You always help my aass I feel like I owe you. Anyway, so basically this has a final set for area, and a final set for iron, and it stores it into the area mine which has nothing in it?
  16. So basically, I'm running into an issue with an or statement breaking my script, so I figured i'd try instead of having 2 areas, to get rid of the or statement and make it so only 1 area exist. basically I have at the onStart() String ironOrCoal = JOptionPane.showInputDialog("What area should we be at? c = coal, iron = i"); and then somewhere along the code i'll have if(ironOrCoal.contains©) { Area MINEAREA = new Area(x,y,b,c); } else Area MINEAREA = new Area(d,e,q,r); this isn't the exact code, just an example of what I had. So I thought this should work, but it would tell me all around the code that it didn't know what MINEAREA is, and that it was unused. So on the onStart area I added a private Area MINEAREA; but that did nothing either, still wouldnt let me use it anywhere. So I messed around with it and Still couldn't figure it out. Is it getting deleted once it leaves the if statement? like do I need to make a MINEAREA and have all its cordinates be 0, then in the if statement change it so it equals the cordinates based on user input? So confused with this issue.
  17. I lied about it being an issue with my logic i just didnt get your code lol. Thanks a bunch man
  18. I'm not to sure how you're writing this, but if you're using enums/states I can help you a bit. So for mine basically I have a few states, chop,bank, bank_walk, chopw,chopo, a few more but thats not really important. for lets say for my CHOPW state which stands for chop willow I have if (wcLvl2 >= 30&&!inventory.isFull) //this will see if the woodcutting level is greater than or equal to 30, //and if the inventory is not full { return State.CHOPW;//if these 2 statements go through, then it will return the state CHOPW } //so then after this state is returned it needs to know what to do case CHOPW: Entity willow = objects.closest("Willow");//gets the closest willow tree if (wcLvl2 >= 30 && !myPlayer().isAnimating()&& !inventory.isFull())//this will check again to make sure the player has the //right wc level, and they're not animating { willow.interact("Chop down");//this will interact with the closest will tree and use the option chop down sleep(random(500, 1000));//this will make it so the bot won't do anything for a second or so so the bot has time to //start animating break; } so basically that would be the most basic form to see if your inventory is not full, and you have a woodcutting level high enough to cut willows. and then check again to make sure, while also seeing if your character is animating or not.
  19. My bad man I fell asleep early. I found out it was an issue with my logic and sleep timers on why some stuff was fucking up and not working properly so I need to mess around with that to get it right! Thanks for all your replies though!
  20. else{ camera.toEntity((org.osbot.rs07.api.model.Entity) swaaaag); } What exactly does that do? did you just force camera to go into the position swaaaag?
  21. So instead of moving the mouse, It should move the camera and click? That seems like it would be easier, let me mess around with it for a second and i'll tell if you if it works. Thanks for the reply! And also is there any point to that else statement? or is it just a default else statement your IDE said like you said?
  22. Basically have the player move 1/2 sqaures from his starting position to lay another trap
  23. Can't seem to figure this out, right now I have mouse.moveSlightly(300);//should move the mouse a little bit from where it is, then sleep for 300miliseconds. mouse.click(true);//should left click where current mouse is I'm not sure if this is right or not, no clue how to do it.
  24. If i'm reading this correctly, no it shouldn't objects.closest("whatever string" or whatever id) you have in here will only be looked for, not anything else.
×
×
  • Create New...