Since merchant bug still works on private servers, then I made this calculator also in C++. Before I had this script on website, but some smart kids were injecting Javascript shenanigans into it, which made using of this unsafe. Anyway this bug could work for other games too, but since it was abused in KO, then I post it in this section.