Jump to content

Need help with Function.


Rumple
 Share

Recommended Posts

Hi I need some help with a function.

 

I want the script to pull out 14 ore + 14 Coal while simthing. I keep getting Error.

	if ((Data.smeltOres || Data.smeltAndForge) && !Methods.inventoryContainsOres()) {
			if (Data.currentBar.getOreIds().length == 1) {
				Item item = Bank.getItem(Data.currentBar.getOreIds()[0]);
				if (item != null) {
					Bank.withdraw(item.getID(), 14);
					Time.sleep(175, 200);
					Bank.withdraw(Data.currentBar.getOreIds() = Bar.COAL, 14);
					// item.interact("withdraw all");
					Time.sleep(175, 200);
				}

 

Link to comment
Share on other sites

2 hours ago, Rumple said:

There is no error, I need help on why I cant call Bar.COAL, it is requiring me to go through Data.CurrentBar.getOreIds() and I dont know how to call the COAL int.

just hard code it in with the coal id if you don't understand how to access it 

Link to comment
Share on other sites

  • Neo locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...