ehh i think the problem here is that when you smith, you animate to put x in the furnace, and after that the player "waits" , != animating. so to add a timer for that is pretty tedious
when im cooking fish, i use the while loop to check if i still have raw fish. when it levels up i check on the level-up widget, not indialoge, but i guess it both works
wew! good thing i stayed loyal to master dex
that was him trying to see who is not loyal too him, so that other people will like more easily, it was all part of his master plan!
while(myPlayer().isAnimating())
{
sleep(500);
}
should work, idk if its clean though
with ur conditional sleep it will wait for the remaining of the 10seconds if you're done smelting