- Joined
- May 4, 2016
- Messages
- 3
- Thread Author
- #1
I've decided to start with a simple smelting bot to start with learning the runemate API and I can't seem to find out how to select the smelt X option. Any help would be appreciated.
GameObject furnace = GameObjects.newQuery().names("Furnace").results().nearest();
if(Interfaces.newQuery().textContains("Bronze").results().first() == null) //Checking if furnace is selected, not sure if this is most efficient
{
furnace.interact("Smelt");
}
else
{
Interfaces.newQuery().textContains("Bronze").results().first().interact("Smelt -> 28");
}
GameObject furnace = GameObjects.newQuery().names("Furnace").results().nearest();
if(Interfaces.newQuery().textContains("Bronze").results().first() == null) //Checking if furnace is selected, not sure if this is most efficient
{
furnace.interact("Smelt");
}
else
{
Interfaces.newQuery().textContains("Bronze").results().first().interact("Smelt -> 28");
}