|
||
|
|
#1 (permalink) |
|
Join Date: Feb 2004
Location: Charleston, SC
Age: 36
Posts: 174
Rep Power: 16
![]() |
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. |
|
|
|
|
|
#5 (permalink) | |
|
Join Date: Feb 2004
Location: Charleston, SC
Age: 36
Posts: 174
Rep Power: 16
![]() |
Quote:
For example: For an ExchangeRate of 20, if you drop 525 gold on him, you will receive 26 tokens (525/20 = 26.25, so 20*26 = 520) and the remaining 5 gold pieces will be returned to your backpack. |
|
|
|
|
|
|
#6 (permalink) |
|
Join Date: Oct 2002
Age: 22
Posts: 4,689
Rep Power: 43
![]() ![]() ![]() ![]() |
If its still around.. you could have used my Cash script, which universally will consume the correct amount of any type of currency with an exchange rate to the base currency (copper or gold depending on the shard).
|
|
|
|
|
|
#9 (permalink) |
|
Forum Expert
Join Date: Jan 2003
Location: (Near) Atlanta, GA
Posts: 350
Rep Power: 24
![]() ![]() ![]() |
When you said you made a change, did you have to change it to make it work for RC2, or did you change the mechanics of the script itself?
__________________
Play HeroScape? Check out our map site here: http://heroscape.catalystradio.com |
|
|
|
|
|
#10 (permalink) |
|
Forum Expert
Join Date: Jan 2003
Location: (Near) Atlanta, GA
Posts: 350
Rep Power: 24
![]() ![]() ![]() |
(Edit: Sorry, double post. Connection hung.)
__________________
Play HeroScape? Check out our map site here: http://heroscape.catalystradio.com |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 2 (1 members and 1 guests) | |
| edbfraga |
| Thread Tools | |
| Display Modes | |
|
|