I am writing a Make Leather script, which does have a production screen.
The basic code logic goes as:
Code:
Use Make Leather Spell -> Dragonhide
if productionScreen.isOpen(1500) then
productionScreen.clickStart();
productionScreen.clickStart() works completely fine.
However, it did not seem to recognize when the production screen did in-fact open, and thus would not start production.
My little workaround:
Simba Code:
function colorCheck(): boolean; // Temporary (hopefully) workaround for productionScreen.isOpen(1500)
var
checkBox: TBox;
checkBoxTPA: TPointArray;
begin
checkBox := [492, 196, 508, 266];
checkBoxTPA := checkBox.createTPA();
result := checkBox.colorExists(4381026, 71) // Looks for the green check marks next to spell requirements
end;
Which I use in turn like:
Code:
waitFunc(@colorCheck, 50, 3000); // Temp workaround
productionScreen.clickStart();
Just checks a box for the green spell requirement check marks in the production screen, which works really well, but would be totally unnecessary if
Code:
productionScreen.isOpen()
worked.