snaes Posted March 30, 2014 Share Posted March 30, 2014 (edited) First let me clarify something - I haven't had almost no Java lessons and therefore this is purely for my own education. Ad hoc, I suck. I am making an auto-buying script, which ought to be quite successful (not programmed-wise, but gp/h wise. Even construction/h wise.). Due to the shop's price going up as you buy the items in, I am looking for a function that would (once there's less than (in a shop), for example, 900 items) hop the worlds. And then proceed down the list of the worlds, somewhat like if you're in world 301 and there are only 890 items in the shop, log to world 302. And repeat. So, can somebody provide me some information on how to 1) Detect in which world you currently are, 2) How to hop the worlds. Also, does a closed door have different ID than opened? P.S: This might as well come in handy regarding the world 385. Edited March 30, 2014 by snaes Link to comment Share on other sites More sharing options...
Oliver Posted March 30, 2014 Share Posted March 30, 2014 take care of pvp worlds! Link to comment Share on other sites More sharing options...
Swizzbeat Posted March 30, 2014 Share Posted March 30, 2014 client.getCurrentWorld() There is a WorldHopper class documented in the API. You can access an instance by just using worldHopper variable in the Script class. Don't use ID's, they change all of the time. 1 Link to comment Share on other sites More sharing options...
Soldtodie Posted March 31, 2014 Share Posted March 31, 2014 An opened door has the same id as a closed door. Link to comment Share on other sites More sharing options...
FearMe Posted March 31, 2014 Share Posted March 31, 2014 An opened door has the same id as a closed door. It doesn't, actually. Link to comment Share on other sites More sharing options...