atoo Posted November 16, 2015 Share Posted November 16, 2015 (edited) So after getting a bit help from a friend yesterday (and some guys here) I manange to get my scripting started. But i have no idea what to do here if (!inventory.isFull()) return State.CHOP; return State.DROP; It doesn't start chopping, but it drops the logs instant before the inventory is full (if i start chopping manually) Edited November 16, 2015 by atoo Quote Link to comment Share on other sites More sharing options...
Eagle Scripts Posted November 16, 2015 Share Posted November 16, 2015 (edited) So after getting a bit help from a friend yesterday (and some guys here) I manange to get my scripting started. But i have no idea what to do here if (!inventory.isFull()) return State.CHOP; return State.DROP; It doesn't start chopping, but it drops the logs instant before the inventory is full (if i start chopping manually) 1. About your area, go into the client and activate entity hover-on. Move the cursor of your mouse to a tile, you will get 2 coordinates (1831, 1839) (x,y) Do this one more time so you've got the coordinates of 2 tiles (2 corners so you have a square). if your second coordinate would be (0181, 4810) your area would then become --> AREA_TREES = new Area(1831, 1839, 0181, 4810) 2. About dropping the logs; take a look into the API. http://osbot.org/api/org/osbot/rs07/api/Inventory.html If you want it to perform the drop action if your inventory is full, it should be this --> if (inventory.isFull()) not this --> if (!inventory.isFull()) the ! "means" "not". in this case that would be --> if inventory is not full So what you'd have to do --> if (inventory.isFull()) inventory.dropAllExcept("Bronze Axe, Iron axe"); //etc If you just want to drop everything in your inventory --> if (inventory.isFull()) inventory.dropAll(); Edited November 16, 2015 by Eagle Scripts 2 Quote Link to comment Share on other sites More sharing options...
atoo Posted November 16, 2015 Author Share Posted November 16, 2015 Thanks alot! I already added an exception for the axe but the rest Will Help me out madly! Will Try it when i get home Quote Link to comment Share on other sites More sharing options...
Joseph Posted November 16, 2015 Share Posted November 16, 2015 Personally I have not used the drop methods so be aware if your inventory is full and you drop one log it isn't full any more. But I feel like if you use drop all except. It should probably drop most of your items before it execute choppibg. Try it out and let us know Quote Link to comment Share on other sites More sharing options...
atoo Posted November 16, 2015 Author Share Posted November 16, 2015 (edited) Fuck me im retarded, got it fixed Edited November 16, 2015 by atoo Quote Link to comment Share on other sites More sharing options...
atoo Posted November 16, 2015 Author Share Posted November 16, 2015 Got everything working, I want to thank everybody that has taken time helping me! Quote Link to comment Share on other sites More sharing options...