Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 07-16-2004, 06:15 PM   #1 (permalink)
 
Join Date: Feb 2004
Location: Charleston, SC
Age: 36
Posts: 174
Rep Power: 16 Igon is on a distinguished road
Default 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.
Attached Files
File Type: cs GoldExchanger.cs (8.1 KB, 301 views)
Igon is offline   Reply With Quote
Old 07-16-2004, 09:03 PM   #2 (permalink)
chrisjones
Guest
 
Posts: n/a
Default ty

  Reply With Quote
Old 07-16-2004, 10:16 PM   #3 (permalink)
 
Join Date: Feb 2004
Location: Charleston, SC
Age: 36
Posts: 174
Rep Power: 16 Igon is on a distinguished road
Default

Posted v1.1:
Fixed the background on the exchange gump.
Igon is offline   Reply With Quote
Old 07-20-2004, 09:16 AM   #4 (permalink)
Forum Novice
 
Join Date: Jun 2004
Location: Michigan
Age: 26
Posts: 195
Rep Power: 0 septor is an unknown quantity at this point
Send a message via MSN to septor
Default

What's the exchange rate? Like, do you get as many Tokens as you drop Gold coins?
septor is offline   Reply With Quote
Old 07-20-2004, 04:27 PM   #5 (permalink)
 
Join Date: Feb 2004
Location: Charleston, SC
Age: 36
Posts: 174
Rep Power: 16 Igon is on a distinguished road
Default

Quote:
Originally Posted by septor
What's the exchange rate? Like, do you get as many Tokens as you drop Gold coins?
The Exchange Rate is exactly that, the rate at which Gold is exchanged for Tokens.
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.
Igon is offline   Reply With Quote
Old 07-20-2004, 08:17 PM   #6 (permalink)
 
Join Date: Oct 2002
Age: 22
Posts: 4,689
Rep Power: 43 XxSP1DERxX is a jewel in the roughXxSP1DERxX is a jewel in the roughXxSP1DERxX is a jewel in the roughXxSP1DERxX is a jewel in the rough
Default

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).
XxSP1DERxX is offline   Reply With Quote
Old 07-29-2004, 08:52 AM   #7 (permalink)
Forum Expert
 
Join Date: Jan 2004
Location: England
Age: 24
Posts: 404
Rep Power: 18 malgrimace is on a distinguished road
Send a message via AIM to malgrimace
Default

I don't think he meant "what's the exchange rate" as in asking what an exchange rate was - but how many tokens you get for your gold....

IE - 100 gold = 20 tokens.
malgrimace is offline   Reply With Quote
Old 05-13-2008, 10:32 AM   #8 (permalink)
Forum Novice
 
Hanse_T_Insane's Avatar
 
Join Date: Jan 2007
Location: Mount Morris New York
Age: 46
Posts: 216
Rep Power: 6 Hanse_T_Insane will become famous soon enough
Send a message via Skype™ to Hanse_T_Insane
Default

I know this is old but I wanted to say this saved me alot of effort, it was a simple change to make it work for my shard.
Hanse_T_Insane is offline   Reply With Quote
Old 05-16-2008, 11:16 AM   #9 (permalink)
Forum Expert
 
nadious's Avatar
 
Join Date: Jan 2003
Location: (Near) Atlanta, GA
Posts: 350
Rep Power: 24 nadious is a jewel in the roughnadious is a jewel in the roughnadious is a jewel in the rough
Default

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
nadious is offline   Reply With Quote
Old 05-16-2008, 11:26 AM   #10 (permalink)
Forum Expert
 
nadious's Avatar
 
Join Date: Jan 2003
Location: (Near) Atlanta, GA
Posts: 350
Rep Power: 24 nadious is a jewel in the roughnadious is a jewel in the roughnadious is a jewel in the rough
Default

(Edit: Sorry, double post. Connection hung.)
__________________
Play HeroScape? Check out our map site here: http://heroscape.catalystradio.com
nadious is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 2 (1 members and 1 guests)
edbfraga
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5