Hey,

Helping my friend try set up his server and we added everlasting bandage and a bandself script which is supposed to work with both normal bandages and the ever lasting however we keep getting errors.

posted error below with the 2 scripts.

All help appreciated.
 

Attachments

  • Bandself Error.png
    Bandself Error.png
    36.2 KB · Views: 18
  • [ServUO.com]-[ServUO.com]-BandSelf.cs
    1.3 KB · Views: 17
  • [ServUO.com]-[ServUO.com]-EverlastingBandage.cs
    14.8 KB · Views: 13
You need to add the following to bandage.cs (I have it just below the Deserialize method):
Code:
        public static void BandSelfCommandCall(Mobile from, Item m_Bandage)
        {
            from.RevealingAction();

            if (BandageContext.BeginHeal(from, from) != null)
                m_Bandage.Consume();

        }
 
Hey thanks for the help, is there specific place to set this or just at bottom?
[doublepost=1509292729][/doublepost]This brings a new error :|
 

Attachments

  • Bandage.cs
    24 KB · Views: 4
  • New bandage error.png
    New bandage error.png
    73.7 KB · Views: 6
looks like you tried to put it within the Deserialize method. it should look like this:

Code:
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();
        }

        public static void BandSelfCommandCall(Mobile from, Item m_Bandage)
        {
            from.RevealingAction();

            if (BandageContext.BeginHeal(from, from) != null)
                m_Bandage.Consume();

        }
 
Back