Rumple Posted August 29, 2018 Share Posted August 29, 2018 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 More sharing options...
Jake Posted August 29, 2018 Share Posted August 29, 2018 Post the error Link to comment Share on other sites More sharing options...
Rumple Posted August 30, 2018 Author Share Posted August 30, 2018 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. Link to comment Share on other sites More sharing options...
Jake Posted August 30, 2018 Share Posted August 30, 2018 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 More sharing options...
Recommended Posts