Gold to Token Currency Converter
I had someone ask for this the other day, so I though i would post my first script.
Description:
This Mobile changes Gold for Tokens. Just drop Gold or BankCheck on him for a confirmation gump. Any unused gold will be returned to player.
In-Game Variables:
Active - True/False
Coin Limit - This is the point at which checks are given instead of coins.
Exchange Rate - Self explanatory, must be an int > 0
If you are GameMaster or above, double click for a gump to edit the above properties, or [props him.
Installation:
Drop in custom folder. This is built with Dupree's token system in mind, but any other system that uses the items, Tokens and TokensBankCheck, will work. If your token system uses different terminology change lines 187 and 195 to the appropriate items.
[add GoldExchanger to place in the world.
There is only 1 bug that I know of:
If your shard restarts while a player is in the middle of a transaction, his gold will be lost. Any thoughts on moving deletion down to the confirmation gump would be great.
|