This is because you don't have enough cash to buy the amount of bones. If you look at the console log, it says not enough GP to buy bones, so make sure you have more than 1200k worth to buy the bones.
My personal update: The script is great from questing till fungus. However, there are some errors when it comes to buying the items of the G/E. A restart should fix this. As for now I will not purchase it yet, because the price raised from $10 -> $15 and monthly $4 -> $10. Also the profit calculation is in my own whole opinion not worth it. The teletabs cost around 2k each. Lets the average p/h is 350k on average, (815 fungus) is around 30 teleports = 350k - 60k = 290k profit. The bot needs to run at least 20 hours to break even for the bond and bones.