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






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
second bank??
Author Message
massis87
Journeyman
*

Posts: 82
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jan 2017
Reputation: 0

D&W 8thAge

Post: #1
second bank??
the best way for do a second bank?
when player say bank will open 2 chest. seems easy....
i have some ideas but idk if is the best.

and if u can look at me this tread too would be nice. Wink
https://forum.spherecommunity.net/Thread...oop-corpse

There are worse ways to understand the sense of the word: no. Ranting
(This post was last modified: 10-05-2017 06:22 PM by massis87.)
10-05-2017 06:21 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: second bank??
Why two banks? Confused
10-05-2017 07:26 PM
Find all posts by this user Like Post Quote this message in a reply
escribano
Journeyman
*

Posts: 170
Likes Given: 16
Likes Received: 32 in 23 posts
Joined: Nov 2012
Reputation: 2

Dragon Shard

Post: #3
RE: second bank??
I think it would be great for RPG Shards to have separated banks for each town (for exemple), or the house bank...

I've always asked: HOW IN THE BLOOD HELL CAN I ADD AN ITEM IN BRITAIN BANK AND ITS APPEARS IN MINOC? MY HOUSE? MY FRIEDS HOUSE? DAFUCK? LoL
So, i don't know if it's a sphere issue that makes hard/impossible to script this.... but it would be great to have this option to choose Big Grin

UltimaPHP - OpenSource Ultima Online Server v0.1-pre-alpha under development, we need help!
10-05-2017 11:52 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: second bank??
The main problem is where to put the new bank container(s).
The main bank is an item in layer 29 and this layer supports just one item, Layer 30 supports multiple items but only of the type t_eq_script or t_eq_memory_obj (other types are placed in the pack).

Anyway, you can actually use unused layers (at least for now) with a value above 54 for placing a container item (just one)

Example:
Code:
[FUNCTION installBank]
serv.newitem i_test_bank
new.equip
sysmessage @50 <new.name> installed.

[FUNCTION testBank]
bank 55 //This will open the container in layer 55
sysmessage @50  Bank opened.

[ITEMDEF i_test_bank]
Name = Test Bank
ID = i_bag
Layer = 55
type = t_eq_bank_box

ON=@Create
color = colors_black

Layer 55 is the layer for Blood Oath spell, if your server doesn't use the necromancy, chivarly, mysticism, spellweaving spells, you will have 23 unused layers.
(This post was last modified: 10-06-2017 01:21 AM by darksun84.)
10-06-2017 01:16 AM
Find all posts by this user Like Post Quote this message in a reply
massis87
Journeyman
*

Posts: 82
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jan 2017
Reputation: 0

D&W 8thAge

Post: #5
RE: second bank??
The 1st problem is rewards. I have a lot of scripts with add rewards in bank, sometimes pop up under other items and a gm is needed for find it.
2ns problem is resources, i have a book script for add all the resources on my shard, players dont have splitted items but all in one book and they can extract what they need without found them.
3rd becouse they can have more space for do a lot of things.

I wanna know if there are simply ways for do that.
I know how to do if i want.
But if someone explain me something better or simple would be nice.

There are worse ways to understand the sense of the word: no. Ranting
10-06-2017 04:20 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #6
RE: second bank??
I think the simplest way it's the example above your post Big Grin.

Of course you will need to tinker with it, like attaching it to a banker npc, close it when the npc moves and so on.
(This post was last modified: 10-06-2017 04:25 AM by darksun84.)
10-06-2017 04:25 AM
Find all posts by this user Like Post Quote this message in a reply
massis87
Journeyman
*

Posts: 82
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jan 2017
Reputation: 0

D&W 8thAge

Post: #7
RE: second bank??
Y like mine. But i think we can open more "banks" on same layer if we know how work the t_eq_bank_box and make a new one.

There are worse ways to understand the sense of the word: no. Ranting
10-06-2017 04:44 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #8
RE: second bank??
Except layer 30, all the other layers accept just one item Confused ( Of course you can change it in the source somewhere i think)
(This post was last modified: 10-06-2017 04:53 AM by darksun84.)
10-06-2017 04:49 AM
Find all posts by this user Like Post Quote this message in a reply
massis87
Journeyman
*

Posts: 82
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jan 2017
Reputation: 0

D&W 8thAge

Post: #9
RE: second bank??
If i cant i try to expand gump with tdata.
Why not? Invisible chest into the bank. And when i say bank will open the bank and the invisible chest xD

Bank layer can open infine items bro xD

There are worse ways to understand the sense of the word: no. Ranting
(This post was last modified: 10-06-2017 05:00 AM by massis87.)
10-06-2017 04:58 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #10
RE: second bank??
I think that all the invisible chests and the items inside of them will be considered for the total amount of items/weight for the main bank, so i don't think
it's a good solution Confused.

If you just need one additional bank box, why don't place the container inside a layer above > 54?
(This post was last modified: 10-06-2017 05:15 AM by darksun84.)
10-06-2017 05:04 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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