May 6, 20178 yr I am trying to make a sapphire ring script and I cant find out how do I use the gold bar on the furnace. Please help ;3
May 6, 20178 yr getInventory.getItem("Gold bar").interact("Use"); RS2Object obj = getObjects().closest("Furnace"); if obj != null obj.interact("Use");
May 6, 20178 yr Author getInventory comes up as an error when i do that 3; nvm Edited May 6, 20178 yr by Lotamina found fix
May 6, 20178 yr 1 hour ago, Lotamina said: getInventory comes up as an error when i do that 3; nvm make sure to use: if (inventory.contains("Gold bar") { } for either your State or for the condition for the code above, to prevent a nullPointerException Edited May 6, 20178 yr by strange_kid
May 6, 20178 yr 4 hours ago, Chris said: getInventory.getItem("Gold bar").interact("Use"); RS2Object obj = getObjects().closest("Furnace"); if obj != null obj.interact("Use"); The power of InteractionEvent
Create an account or sign in to comment