Vert-I-Go

Member
ServUO Version
Publish Unknown
Ultima Expansion
None
I think I have a problem with my BaseInstrunet Serialize. Keeps deleting any instrument I put down after saving which is wierd because I haven't changed anything and wasn't doing it before.
It is customized with custom woods but I have been using it for a long time with no problems so if someone could take a look at it would be of great help. I looked it over and I can't seem to find any problems.
its for RunUo 2.6
Only thing I have done since was I edited a different script a playermobile scipted added flags below but I don't think that should effect my BaseInstrument.cs

flags:
    public enum GPlayerFlag
        {
        None            = 0x00000000,
        //None            = 0x00000001,
        //None            = 0x00000002,
        //None            = 0x00000004,
        //None            = 0x00000008,
        //None            = 0x00000010,
        //None            = 0x00000020,
        ManSlayer        = 0x00000040,
        UndeadSlayer        = 0x00000080,
        ElementalSlayer        = 0x00000100,
        ArachnidSlayer        = 0x00000200,
        DraconSlayer        = 0x00000400,
        FeySlayer        = 0x00000800,
        AbyssalSlayer        = 0x00001000,       
        AncientJewelCraft    = 0x00002000,
        Archeology        = 0x00004000,
        ArticShoveling        = 0x00008000,
        Silenced        = 0x00010000,
        Lycanthrope        = 0x00020000,
        BareBackRiding        = 0x00040000,
        WaterBreathing        = 0x00080000,
        Corruption          = 0x00100000,
                   Doom            = 0x00200000,
                Envigor            = 0x00400000,
                Enchanting        = 0x00800000,
                Transmutation        = 0x01000000,
                   Pelting            = 0x02000000,
                Cursed            = 0x04000000,
                HeavensBoon        = 0x08000000,
        SpellFocus        = 0x10000000,
        MovingArch        = 0x20000000,
        Mithridatism        = 0x40000000           
    }
 

Attachments

  • BaseInstrument.cs
    18.6 KB · Views: 3
In Deserialize, you are missing the resource in Case 2,

1727619184643.png

Adding the line as shown above should fix the issue!
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back