This is how the smelting 5 option looks like:
So, the problem is that the character takes only 1 coal and 1 runite ore (for example) but gives away 5 bars. The thing is, the number of bars is given by "(barId, 5)", but where are the ores requirements placed?
If I change the number 1 from --- getItemSlot(oreId), 1); --- and from --- getItemSlot(oreId2), 1); --- into 0, then the character will not use any ore anymore. If I change these two numbers into 5 instead, then it will still take only one ore of each, so basically the server doesn't seem to allow it to take more or something like that.
Note - that I am talking here about the Make 5 option, not the make 1.