Jump to content

how to get items from array


Recommended Posts

Posted

hey, i'm writing a little simple fishing script, but i need some help with withdrawing from bank when your items needed to be withdrawn are in a string array.

FishingEquipment = new String[] {"Fly fishing rod", "Feather"};

then i'm doing

if (main.bank.contains(FishingEquipment))
{
	if (main.bank.withdrawAll(FishingEquipment)) <--- gives error
		SleepClass.sleepUntil(() -> main.inventory.contains(FishingEquipment), 10000);
}

so how can i "parse?" or split these item(s) from my array to single ones and withdraw them?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...