Things don't work that way. We know about all the packets and we can change/create them but there is no such thing as changing a value and I get 8 tomb key instead of one if I understand what you are asking for..
To put it simply, the client sends a request of buying something and the server sends back either that you don't have enough gold or gives you the requested item and charges you with the correct amount of gold.