I already figured it out myself. Here is the instruction:
1) go to the store for gold
2) enter into the search 2 numbers of gold, which is bought as Double
(if the exact number is unknown, for example 7.50K,
then search like this: 7450~7550. "~" means from to search from number to number)
(example - 384;755)
3) You should get 2 variables as a result, if more than 2, then look for more values. Select the smallest variable and click "go to address", then go to the three variables above and change the third variable from 0 to 4 (0 - gold, 1 weapon box, 2 - hero tickets, 3 - elixir, 4 - rubies, all of you you can still experiment and see other values)
The order of the variables is as follows:
0 (Change this, if nothing has changed, take the variable 1 above (it should be 0)
10
0
your found variable
4) Now you can buy, if you don't have enough, then you can change the found variable to a larger number (when you leave the store, the currency price is reset)
(Also, do not wind up a lot of currency, it seems that for 99999 rubies I was banned after a couple of hours. Now I have 9-20 thousand of all currencies on my account, everything is fine)
5) That's it, enjoy it