ugpjosh Posted September 27, 2014 Posted September 27, 2014 I was in the works of making a woodcutter (VERY beginner style) and I can't get the right names (eg: client.getinventory(){) I can't seem to get the "getinventory" to work. I need to know the new codes for items such as full inventory, player positions etc. I've been using this as a resource: http://pastebin.com/nZPxJM0j I know it's for rs2 but I've been converting it to 07 but cant seem to get any of the things like inventory to work. I even check osbot.org/api and went to 'inventory' and tried clien.getcapacity and etc. but it didnt want to work. Any help here would be appreciated.
Apaec Posted September 27, 2014 Posted September 27, 2014 you seem to be trying to code in the osbot 1 api. client no longer exists. try this.inventory and check out the api!
ugpjosh Posted September 27, 2014 Author Posted September 27, 2014 I tried that and I still have errors. It can't seem to specify the 'inventory'.
Eliot Posted September 27, 2014 Posted September 27, 2014 If you're in onLoop(), just do something like: inventory.dropAll();