Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Suggestion Some suggestions

Joined
Nov 3, 2013
Messages
277
Inventory.getCount(boolean includeQuantities, String... names)
Inventory.getCount(boolean includeQuantities, int... ids)
Inventory.getCount(int... ids)
Inventory.getCount(String... names)
Area.getCenter()
Game.getState()
Game.getMapBase()
Magic api
 
Last edited:
Engineer
Joined
Jul 28, 2013
Messages
2,776
Inventory.getCount(boolean includeQuantities, String... names)
Inventory.getCount(boolean includeQuantities, int... ids)
Inventory.getCount(int... ids)
Inventory.getCount(String... names)
Area.getCenter()
Game.getState()
Game.getMapBase()
Magic api
ok, all your Inventory.getCount stuff can be replaced with Inventory.getItems(ids/names/filters).size()
Area.getCenter... that's a possibility, if you can justify adding it.
Game.getState() shouldn't be used directly, just use isLoggedIn.
Game.getMapBase() is Region.getLoaded().getBase()
 
First Bot Author
Joined
Aug 7, 2013
Messages
262
ok, all your Inventory.getCount stuff can be replaced with Inventory.getItems(ids/names/filters).size()
Area.getCenter... that's a possibility, if you can justify adding it.
Game.getState() shouldn't be used directly, just use isLoggedIn.
Game.getMapBase() is Region.getLoaded().getBase()
1:agreed, although he asks to include stacks (eg getCount(boolean includeStacks, 995) would return 1 if the inventory contains coins and includeStacks is false, or the amount of coins if includeStacks is true.
2:for walking, although my own walking uses a random coordinate inside the area (see snippets)
3:getState would be really useful for RS3, in the event the script needs to do a lot of stuff in the lobby.
4:
 
Top