- Joined
- Oct 4, 2016
- Messages
- 1
- Thread Author
- #1
I'm making a cooking bot, trying to make it use raw monks on a clay oven and then cook them all
System.out.println("We found a clay oven");
GameObject clayOven = query.nearest();
System.out.println("Trying to use our monkfish on the oven");
SpriteItem rawMonks = Inventory.newQuery().names("Raw monkfish").results().last();
clayOven.interact("Use",rawMonks.getDefinition().getName());
ChatDialog.getOption("Cook All");
I'm new to the API but not new to coding, can someone tell me where I'm going wrong here?
System.out.println("We found a clay oven");
GameObject clayOven = query.nearest();
System.out.println("Trying to use our monkfish on the oven");
SpriteItem rawMonks = Inventory.newQuery().names("Raw monkfish").results().last();
clayOven.interact("Use",rawMonks.getDefinition().getName());
ChatDialog.getOption("Cook All");
I'm new to the API but not new to coding, can someone tell me where I'm going wrong here?