Page 1 of 1

banks?

Posted: Sat May 06, 2006 9:40 am
by Poi
Hey for banks ive been looking around everyone all the bank files.. etc cnat find anything, where do i change the ammount of items and the wight they hold?

Posted: Sat May 06, 2006 10:27 am
by Tritan
servspecopt.cfg file.

This is in your config folder, or should be. These are default for all containers though. I scripted a seperate routine into the banker scripts to adjust this with. It is more of a check for the number of items in the bank, not the weight of items.

Posted: Sat May 06, 2006 1:01 pm
by Yukiko
In objtypes.inc the bankbox is defined as using this obtype number for the container: 0x0e40.

If you look in the itemdesc.cfg file in the \pol\config directory you will see this entry:

Code: Select all

Container 0x0E40
{
    Name                MetalChest
    desc                metal chest
    Gump                0x004A
    MinX                44
    MaxX                143
    MinY                65
    MaxY                140
    RequiresAttention   0
    movable             1
    MaxItems            125
    weight              5
    CanInsertScript     ::canInsert
    OnInsertScript      ::onInsert
    CanRemoveScript     ::canRemove
    OnRemoveScript      ::onRemove
}
By adding this line:

MaxWeight <an integer with the max weight you wish banks to hold goes here>

For example:

MaxWeight 10000

You will define the maximum weight the bankbox can hold.

Posted: Sat May 06, 2006 1:43 pm
by Poi
Thanks.