SphereCommunity
second bank?? - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: second bank?? (/Thread-second-bank)

Pages: 1 2 3


second bank?? - massis87 - 10-05-2017 06:21 PM

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-Autoloop-corpse


RE: second bank?? - darksun84 - 10-05-2017 07:26 PM

Why two banks? Confused


RE: second bank?? - escribano - 10-05-2017 11:52 PM

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


RE: second bank?? - darksun84 - 10-06-2017 01:16 AM

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.


RE: second bank?? - massis87 - 10-06-2017 04:20 AM

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.


RE: second bank?? - darksun84 - 10-06-2017 04:25 AM

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.


RE: second bank?? - massis87 - 10-06-2017 04:44 AM

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.


RE: second bank?? - darksun84 - 10-06-2017 04:49 AM

Except layer 30, all the other layers accept just one item Confused ( Of course you can change it in the source somewhere i think)


RE: second bank?? - massis87 - 10-06-2017 04:58 AM

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


RE: second bank?? - darksun84 - 10-06-2017 05:04 AM

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?