Twin Posted March 1, 2015 Posted March 1, 2015 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.
Joseph Posted March 1, 2015 Posted March 1, 2015 (edited) Can I ask what you are trying to do here? Edited March 1, 2015 by josedpay
Twin Posted March 1, 2015 Author Posted March 1, 2015 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
Isolate Posted March 1, 2015 Posted March 1, 2015 (edited) 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, 2015 by Isolate
Twin Posted March 1, 2015 Author Posted March 1, 2015 (edited) 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, 2015 by twin 763
Isolate Posted March 1, 2015 Posted March 1, 2015 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
Twin Posted March 1, 2015 Author Posted March 1, 2015 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?
Isolate Posted March 1, 2015 Posted March 1, 2015 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
Twin Posted March 1, 2015 Author Posted March 1, 2015 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!
Twin Posted March 3, 2015 Author Posted March 3, 2015 (edited) 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, 2015 by twin 763