The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ITEM/FUNCTION] Account Gold Bank
Author Message
pointhz
Journeyman
*

Posts: 148
Likes Given: 1
Likes Received: 55 in 28 posts
Joined: Oct 2013
Reputation: 1



Post: #1
[ITEM/FUNCTION] Account Gold Bank
Hello everyone,

This script is about an Account Gold Bank and its primary goal is allowing players to transfer gold between their account characters without having to log off.

Adding a "i_account_gold_bank" will spawn the chest seen in the picture below. Double-clicking in it will display the Account Gold Bank Menu.

This is not scripted as an item for any special reason besides me not wanting players to access it everywhere in the world. You are free to force the menu to be opened through the function "accountgoldbank" by adding it to an NPC or just through a command. It's up to you, it should work exactly the same.

[Image: image.jpg]

So, as you can see in the above picture, the menu has a few options and information.

It tells you the total amount of gold you have in your account (in ALL your characters) and to which character belongs the Gold Bank you are currently checking.

Besides the total amount of gold you have in your account, it also shows you, inside the Chest picture, the amount of gold the character you are checking has.

As for the above picture, I have 41.986 total gold pieces spread in all my account characters, the current bank I'm checking is from the character "Char Two" and that character has 21.986 gold pieces.

Typing the amount of gold you want to "Transfer to" or "Transfer From" in the white box inside the Chest picture and then clicking in the respective blue button will either transfer gold from the character you are currently playing with to the character you've selected or the other way around.

Additionally to the explained above, if instead of clicking in one of the blue buttons to "Transfer to" or "Transfer from" the amount of gold you typed, you click in the "New Cheque" button, you will be given a cheque of the gold amount you typed and the gold amount will be removed from the character you are currently checking.

For example, I'm with Char 1 and go to Char 2 "bank" and create a 500k cheque. Char 1 will be given the 500k worth cheque and the 500k gold will be removed from Char 2.

Clicking "Cash Cheque" and targetting the desired cheque will remove the cheque and add the gold to the character you are currently checking.

For example, I'm with Char 1 and go to Char 2 "bank" and cash a 500k cheque. Cheque will be removed from Char 1 and Char 2 will be given the 500k gold pieces.

You can cash cheques directly into the character you are currently logged in with too.

The cheque script is included too.

Gold will always be created at the character's bankbox, but it doesn't need to be in there in order to be removed (Because I'm using the GOLD function. This may also cause gold to be a mess at your bankbox).

Think I'm not forgetting anything. Any question just ask.


Attached File(s)
.scp  p_acc_gold_bank.scp (Size: 21.34 KB / Downloads: 20)
(This post was last modified: 09-04-2015 02:34 AM by pointhz.)
09-04-2015 02:32 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 4 users Like pointhz's post
Post Reply 


Messages In This Thread
[ITEM/FUNCTION] Account Gold Bank - pointhz - 09-04-2015 02:32 AM

Forum Jump:


User(s) browsing this thread: 4 Guest(s)