Advertisement
elliottdehn

Untitled

Apr 27th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. package osbotOS;
  2.  
  3. import org.osbot.rs07.script.Script;
  4.  
  5. public class SubActivityInBankGetFood extends ActivityInBank {
  6.  
  7. public SubActivityInBankGetFood(Script script) {
  8. super(script);
  9. // TODO Auto-generated constructor stub
  10. }
  11.  
  12. @Override
  13. public void execute() {
  14. int[] items = { this.foodID };
  15. int[] amounts = { 2 };
  16. this.bankMethods.withdrawItemsAmounts(this.script, items, amounts,
  17. this.c.BANK_ID, this.c.BANK_OPTION);
  18. this.needToWithdrawFood = false;
  19. }
  20.  
  21. @Override
  22. public boolean validate() {
  23. return this.needToWithdrawFood;
  24. }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement