My account needs to keep 4.3m gold in the inventory. The amount of gold before muling is a number above 4.3m.
So I used the equation
amount in inventory - 4.3m = amount to trade
So in my code I put
long x = getInventory().getAmount(995);
long amountToTrade = x - 4300000;
Now in my mule code, I put
trade.offer(995, amountToTrade);
Sadly this does not work even though all the math makes sense.
I know the string requires an int but I cannot use int when i am getting the amount in the inventory.
Any help or suggestions would be greatly appreciated