if (global.interact == 0 && buffer <= 0 && global.flag[1044] >= cost) myinteract = 3;