New features added to banker AI in the Distro-Alt
Posted: Thu Jun 08, 2017 2:36 pm
The commit updates some source, include, control, and config files to support the new features.
The following is from the Distro changes text file. It has been reformatted for posting here.
New features in banker.src in scripts/ai. When you request your balance it is no longer delivered as text but is displayed in a gump. The gump shows the balance of gold coins, silver cooins (if you have any), and copper coins (if you have any) in your bank box
.
The other feature is the banker can now sell Banker's Orders (cheques) that you buy to use instead of carrying around huge amounts of coin. The speech command is "bankers order" or "banker's order". He will ask you to wait a moment(2 seconds) while he pulls out the ledger. That wait time can be removed if you want to but I thought it added to the RP value. Then you are presented with a gump to enter the amount of the cheque. The maximum is 500,000,000 coins. You can cancel by leaving it blank or the usual right-click method. Then you are asked to enter the payee's name. Be sure to spell it correctly. The script will then search to see if there is a player by that name. Assuming there is you will be presented with a 'yes/no' gump telling you that it will cost an additional ten coins for the cheque. If you agree the cheque will be put in your backpack and the coins extracted from your bank box. The total amount of coins, including the 10 additional for the cost of the Banker's Order must be in your bank.
The process of redeeming a cheque is easy. The payee simply drops it on the banker. They get a gump asking if they wish to redeem it and if so the coins are deposited in their bank. The purchaser also has the option of cancelling the cheque if they have it in their possession by the same method. If you cancel it the 10 coins you used to purchase it are not refundable. All appropriate checks are made against full backpacks and bank boxes and the transactions will be canceled if there is no room for the cheque in the purchaser's pack or the coins to be deposited in the bank. No money will be taken in that case and if redeeming the cheque fails because the bank box is full the cheque will be returned to the player's backpack.
Note:
I will be updating the gump for the Banker's Order to make some parts more readable. I used an HTML text gump for the main text but the other parts were standard gump work. It is too bad that we cannot specify different UO fonts in gumps or atleast I haven't found a way. I believe I was told once that the client allows that from someone who has studied source code from RunUO.
The following is from the Distro changes text file. It has been reformatted for posting here.
New features in banker.src in scripts/ai. When you request your balance it is no longer delivered as text but is displayed in a gump. The gump shows the balance of gold coins, silver cooins (if you have any), and copper coins (if you have any) in your bank box
.
The other feature is the banker can now sell Banker's Orders (cheques) that you buy to use instead of carrying around huge amounts of coin. The speech command is "bankers order" or "banker's order". He will ask you to wait a moment(2 seconds) while he pulls out the ledger. That wait time can be removed if you want to but I thought it added to the RP value. Then you are presented with a gump to enter the amount of the cheque. The maximum is 500,000,000 coins. You can cancel by leaving it blank or the usual right-click method. Then you are asked to enter the payee's name. Be sure to spell it correctly. The script will then search to see if there is a player by that name. Assuming there is you will be presented with a 'yes/no' gump telling you that it will cost an additional ten coins for the cheque. If you agree the cheque will be put in your backpack and the coins extracted from your bank box. The total amount of coins, including the 10 additional for the cost of the Banker's Order must be in your bank.
The process of redeeming a cheque is easy. The payee simply drops it on the banker. They get a gump asking if they wish to redeem it and if so the coins are deposited in their bank. The purchaser also has the option of cancelling the cheque if they have it in their possession by the same method. If you cancel it the 10 coins you used to purchase it are not refundable. All appropriate checks are made against full backpacks and bank boxes and the transactions will be canceled if there is no room for the cheque in the purchaser's pack or the coins to be deposited in the bank. No money will be taken in that case and if redeeming the cheque fails because the bank box is full the cheque will be returned to the player's backpack.
Note:
I will be updating the gump for the Banker's Order to make some parts more readable. I used an HTML text gump for the main text but the other parts were standard gump work. It is too bad that we cannot specify different UO fonts in gumps or atleast I haven't found a way. I believe I was told once that the client allows that from someone who has studied source code from RunUO.