March 1, 201510 yr 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.
March 1, 201510 yr Author Can I ask what you are trying to do here? Basically have the player move 1/2 sqaures from his starting position to lay another trap
March 1, 201510 yr would something like: Position swaaaag = new Position((myPosition().getX() +- 0),(myPosition().getY() +- 0),0); if(swaaaag != null){ if(swaaaag.isVisible(bot)){ //move camera up high or whatever swaaaag.interact(bot, "Walk"); }else{ camera.toEntity((org.osbot.rs07.api.model.Entity) swaaaag); } } work? "Herp derp isolate is trying to cast a position as an entity" = for some reason my IDE did it so i didnt bother changing it Edited March 1, 201510 yr by Isolate
March 1, 201510 yr Author would something like: Position swaaaag = new Position((myPosition().getX() +- 0),(myPosition().getY() +- 0),0); if(swaaaag != null){ if(swaaaag.isVisible(bot)){ //move camera up high or whatever swaaaag.interact(bot, "Walk"); }else{ camera.toEntity((org.osbot.rs07.api.model.Entity) swaaaag); } } work? "Herp derp isolate is trying to cast a position as an entity" = for some reason my IDE did it so i didnt bother changing it 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? Edited March 1, 201510 yr by twin 763
March 1, 201510 yr 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? Which one... non of them there are unused? + my interaction is wrong its "Walk here" i think for walking
March 1, 201510 yr Author Which one... non of them there are unused? + my interaction is wrong its "Walk here" i think for walking 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?
March 1, 201510 yr 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? only if its not on the screen in this case make swaaaaaaag like yoru starting position or something. using "Walk here" and this code seems to work find for me and my bird catcher
March 1, 201510 yr Author only if its not on the screen in this case make swaaaaaaag like yoru starting position or something. using "Walk here" and this code seems to work find for me and my bird catcher 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!
March 3, 201510 yr Author only if its not on the screen in this case make swaaaaaaag like yoru starting position or something. using "Walk here" and this code seems to work find for me and my bird catcher I lied about it being an issue with my logic i just didnt get your code lol. Thanks a bunch man Edited March 3, 201510 yr by twin 763
Create an account or sign in to comment