Jump to content

Lychees

Members
  • Posts

    12
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male
  • Location:
    The Netherlands

Lychees's Achievements

Newbie

Newbie (1/10)

3

Reputation

  1. That would be great for this script but I have no idea where to start. Maybe make a list of items in inventory and in the bank put them in a string with the amount Subtract the items from each other and check them like this. if Subtractitems == amountneeded great! return if Subtractitems > = amountneeded deposit if Subtractitems < = amountneeded withdraw i think i can use a Arraylist with some kind of Iterator is this is a step in the right direction?
  2. Thank you, I understand it better now and it runs much cleaner with conditional sleeps i did this case BANK: if (getBank().isOpen()) { if (getBank().contains("Bowl") && (getBank().getAmount("Bowl") >= 9)) { getBank().withdraw("Bowl", 9); new ConditionalSleep(3000, 500) { public boolean condition() throws InterruptedException { return getInventory().contains("Bowl"); } }.sleep(); }} else { getBank().open(); new ConditionalSleep(3000, 500) { public boolean condition() throws InterruptedException { return (getBank().isOpen()); } }.sleep(); } break; Thought that would be handy for all the items but never continued with the idea. Sorry for the mess
  3. Hello Guys, Im working on a script that makes tuna potatoes from cooked ingredients in the bank It basically works like this: Inventory contains 9 Bowl, 9 Cooked sweetcorn, 9 Tuna and a Knife Combines items to 9 Corn and tuna Bank to get 9 Pat of butter and 9 Baked potato Combines items to get Potato with butter and after that makes the Tuna potatoes And leaves the inventory with 9 Bowl and 9 Tuna Potatoes But I can’t get the banking to work I’ve tried this: case BANK: if (!getBank().isOpen()) { getBank().open(); } else { // Inventory 9 Tuna and corn, 9 Pat of butter, 9 Baked Potato and 1 knife inventory ready for making Potato with butter and Tuna Potato. if (this.inventory.getAmount(new String[] { "Tuna and corn" }) == 9) { sleep(random(333, 666)); getBank().depositAllExcept(new String[] { "Knife", "Tuna and corn" }); sleep(random(300, 800)); getBank().withdraw("Pat of butter", 9); sleep(random(300, 800)); getBank().withdraw("Baked Potato", 9); sleep(random(300, 800)); if (this.inventory.getAmount(new String[] { "Pat of butter", "Baked Potato" }) == 18){ getBank().close(); sleep(random(300, 800)); return Main.random(300, 800); }} // Inventory 9 Bowl, 9 Tuna, 9 Cooked Sweedcorn and 1 knife start and finish of inventory. if (this.inventory.getAmount(new String[] { "Bowl" }) == 9) { sleep(random(333, 666)); getBank().depositAllExcept(new String[] { "Knife", "Bowl" }); sleep(random(300, 800)); getBank().withdraw("Tuna", 9); sleep(random(300, 800)); getBank().withdraw("Cooked Sweedcorn", 9); sleep(random(300, 800)); if (this.inventory.getAmount(new String[] { "Tuna", "Cooked Sweedcorn" }) == 18){ getBank().close(); sleep(random(300, 800)); return Main.random(300, 800); }} } break; Some help would be appreciated ;)
  4. Hello guys, Im trying to get back into scripting and my first project is a pizza base maker but im trying to add conditionalSleep but i can get it to work. if (new ConditionalSleep(1200) { public boolean condition() throws InterruptedException { return Main.this.myPlayer().isAnimating(); } }.sleep()) { } } The problem is when i make a pizza base my player isnt Animating. (this.inventory.getAmount(new String[] { "Pizza base" }) == 9) Ive also treid to work with the amount in inventory but still cant figure it out. some help would be great ;)
  5. Could i get 24 hour trial please?
  6. EDIT: Works again after deleting my osbot folder After the update i cant run anny local script i treid to recompile my script again but that doesnt work. Here a screenshot of the debugger
  7. Air tiara Amulet of Strength Black cape Blue flowers Blue robe top Blue wizard hat Bronze 2h Bronze chainbody Bronze dagger Bronze full helm Bronze hatchet Bronze platelegs Bronze spear Coif Cream robe top Desert shirt Emerald amulet Emerald ring Gold amulet Gold necklace Gold ring Green boots Green hat Green robe bottoms Green robe top H.a.m. boots H.a.m. robe Hardleather body Holy symbol Iron boots Iron chainbody Iron full helm Iron kiteshield Iron medium helmet Iron platebody Iron platelegs Iron plateskirt Iron scimitar Iron warhammer Leather boots Leather chaps Leather cowl Leather gloves Leather vambraces Longbow Mud pie Oak longbow Oak shortbow Polar camo legs Polar camo top Ruby amulet Sapphire amulet Sapphire necklace Sapphire ring Staff Steel full helm Steel hatchet Steel longsword Steel mace Steel helm Steel pickaxe Steel platebody Steel plateskirt Studded body Studded chaps Tiara Turquoise robe bottoms Unholy symbol Wood camo top White apron Yellow flowers Here you go
×
×
  • Create New...