Just tested it to satisfy my own curiosity lol.
Quote:
>get all.coin cloak
You get 5 obsidian coins from an ebon cloak adorned with runes.
You get 5 platinum coins from an ebon cloak adorned with runes.
You get 974 gold coins from an ebon cloak adorned with runes.
You get 733 silver coins from an ebon cloak adorned with runes.
You get 530 copper coins from an ebon cloak adorned with runes.
>buy sage
You buy some sage leaves.
Wetha Voons says to you 'Hfre is zero in chbnge.'
Wetha Voons exclaims 'Thank yot!'
Quote:
>put all.coin cloak
You put 380 copper coins in an ebon cloak adorned with runes.
You put 740 silver coins in an ebon cloak adorned with runes.
You put 982 gold coins in an ebon cloak adorned with runes.
You put 14 platinum coins in an ebon cloak adorned with runes.
You put 5 obsidian coins in an ebon cloak adorned with runes.
-{Health:100\ -{Magic: 94| 98:Move}- Spice Shop
16 obsidian, 9 platinum, 9 gold, 8 silver
>take copper cloak
You get 380 copper coins from an ebon cloak adorned with runes.
-{Health:100\ -{Magic: 94| 98:Move}- Spice Shop
16 obsidian, 9 platinum, 9 gold, 8 silver
>take silver cloak
You get 740 silver coins from an ebon cloak adorned with runes.
-{Health:100\ -{Magic: 94| 98:Move}- Spice Shop
16 obsidian, 9 platinum, 9 gold, 8 silver
>put silver cloak
You put 740 silver coins in an ebon cloak adorned with runes.
-{Health:100\ -{Magic: 94| 98:Move}- Spice Shop
16 obsidian, 9 platinum, 9 gold, 8 silver
>put copper cloak
You put 380 copper coins in an ebon cloak adorned with runes.
-{Health:100\ -{Magic: 94| 98:Move}- Spice Shop
16 obsidian, 9 platinum, 9 gold, 8 silver
>buy sage
You buy some sage leaves.
Wetha Voons says to you 'Hfre is zero in chbnge.'
Wetha Voons exclaims 'Thank yot!'
First snippet is fairly self explanatory.
Second snippet I re-arranged the coins in the container confirmed the suspicion. The buy code only looks at the first instance of coins in a container, and will only look at the second and so on if the first instance is not sufficient.