dayong1433 Posted June 1, 2014 Posted June 1, 2014 (edited) about walk: osbot 1 : if(aaa!=null){ if(aaa.isvisible()){ log("ok") }else{ walkMiniMap(aaa.getPosition()); // close } }else{ walk(aaa,flase,0,flase);//faraway place } osbot 2 : if(aaa!=null){ if(aaa.exists()){ log("ok") }else{ walk // osbot2 How to use the minimap? } }else{ localWalker.walk(Tile); } about EntityAPI : osbot 1 : RS2Object bbb = closestObjectForName(Area,"Name"); osbot 2 : RS2Object bbb= objects.closestThatContains("Name"); //osbot2 How to use the area? Thank you all here! Edited June 1, 2014 by dayong1433
Joseph Posted June 1, 2014 Posted June 1, 2014 about walk: osbot 1 : if(aaa!=null){ if(aaa.isvisible()){ log("ok") }else{ walkMiniMap(aaa.getPosition()); // close } }else{ walk(aaa,flase,0,flase);//faraway place } osbot 2 : if(aaa!=null){ if(aaa.exists()){ log("ok") }else{ walk // osbot2 How to use the minimap? } }else{ localWalker.walk(Tile); } about EntityAPI : osbot 1 : RS2Object bbb = closestObjectForName(Area,"Name"); osbot 2 : RS2Object bbb= objects.closestThatContains("Name"); //osbot2 How to use the area? Thank you all here! for walking: map.walk(area); getMap().walk(area); and for entity, you'll have to use a filter
Swizzbeat Posted June 1, 2014 Posted June 1, 2014 I'm pretty sure there's a localWalker instance available.
dayong1433 Posted June 1, 2014 Author Posted June 1, 2014 for walking: map.walk(area); getMap().walk(area); and for entity, you'll have to use a filter I will not use filters;about entity Can you give me an example?
Joseph Posted June 1, 2014 Posted June 1, 2014 I'm pretty sure there's a localWalker instance available. you could but it doesnt contain area, also he said he wanted to walk minimap so why not use map
dayong1433 Posted June 1, 2014 Author Posted June 1, 2014 you could but it doesnt contain area, also he said he wanted to walk minimap so why not use map thank you ,But I'm not can't use "entity area"
Swizzbeat Posted June 1, 2014 Posted June 1, 2014 you could but it doesnt contain area, also he said he wanted to walk minimap so why not use map They even provided a getRandomPoint method for the area class :p
dayong1433 Posted June 1, 2014 Author Posted June 1, 2014 They even provided a getRandomPoint method for the area class Give me an example baby, plz!!!!!thank you !about entity
Swizzbeat Posted June 1, 2014 Posted June 1, 2014 Give me an example baby, plz!!!!!thank you !about entity
Joseph Posted June 1, 2014 Posted June 1, 2014 Give me an example baby, plz!!!!!thank you !about entity localWalker.walk(area.getRandomPosition(0)); the 0 is the height your area is in
dayong1433 Posted June 1, 2014 Author Posted June 1, 2014 (edited) Give me an example baby, plz!!!!!thank you !about entity localWalker.walk(area.getRandomPosition(0)); the 0 is the height your area is in I'm a beginner script,Maybe is my poor expression ability. osbot1 RS2Object bbb = closestObjectForName(Area,"Name"); osbot2 RS2Object bbb= objects.closestThatContains(Area,"Name"); //This is wrong How do I modify ? Please give me an example ! thank you! Edited June 1, 2014 by dayong1433