Page 1 of 1

chars maxweight?

Posted: Tue May 06, 2008 11:23 am
by BELL
who.backpack.maxweight := GetBaseStrength(who) * 3;

this dont work (
what im may set the character maxweight?

Posted: Tue May 06, 2008 1:05 pm
by Harley
config/itemdesc.cfg :

Code: Select all

Container 0x0E75
{
    Name                Backpack
    desc                backpack
    Gump                0x003C
    MinX                44
    MaxX                143
    MinY                65
    MaxY                140
    RequiresAttention   0
    VendorSellsFor      18
    VendorBuysFor       9
    dyeable             1
    MaxItems            200
    MaxWeight           600
    weight              1
    CanInsertScript     ::canInsert
    OnInsertScript      ::onInsert
    CanRemoveScript     ::canRemove
    OnRemoveScript      ::onRemove
}

Posted: Wed May 07, 2008 7:56 am
by BELL
Harley wrote:config/itemdesc.cfg :

Code: Select all

Container 0x0E75
{
    Name                Backpack
    desc                backpack
    Gump                0x003C
    MinX                44
    MaxX                143
    MinY                65
    MaxY                140
    RequiresAttention   0
    VendorSellsFor      18
    VendorBuysFor       9
    dyeable             1
    MaxItems            200
    MaxWeight           600
    weight              1
    CanInsertScript     ::canInsert
    OnInsertScript      ::onInsert
    CanRemoveScript     ::canRemove
    OnRemoveScript      ::onRemove
}
im can set maxweigth dynamycally for any characters, is dependent on str/dex????