ServUO Version
Publish Unknown
Ultima Expansion
Stygian Abyss
Hi community. I'm playing Ultima Adventures, offline.

I'm having an error - when I use the Powder of Temperament, I'm getting the error "That must be in your pack for you to use it".

Grateful for any assistance on how to resolve this. Thanks!
 

Attachments

  • PowderOfTemperament.cs
    4.7 KB · Views: 1
The lines that are commented out in the following are causing that issue.
C#:
        public override void OnDoubleClick( Mobile from )
        {
            //if ( IsChildOf(from.Backpack) )
            //    from.Target = new InternalTarget( this );
            //else
                from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
        }

the comments need removed or it cannot work.
C#:
        public override void OnDoubleClick( Mobile from )
        {
            if ( IsChildOf(from.Backpack) )
                from.Target = new InternalTarget( this );
            else
                from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
        }
 
The lines that are commented out in the following are causing that issue.
C#:
        public override void OnDoubleClick( Mobile from )
        {
            //if ( IsChildOf(from.Backpack) )
            //    from.Target = new InternalTarget( this );
            //else
                from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
        }

the comments need removed or it cannot work.
C#:
        public override void OnDoubleClick( Mobile from )
        {
            if ( IsChildOf(from.Backpack) )
                from.Target = new InternalTarget( this );
            else
                from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it.
        }
Thank you, so much!
 
Back