For some reason the gump doesnt show the weapon name. heres the code

C#:
public singleclickweapon(Mobile from, BaseWeapon a) : base( 0, 0 )
        {
            this.Closable=true;
            this.Disposable=true;
            this.Dragable=true;
            this.Resizable=false;

            AddPage(0);
            int count = 0;
           
            if (this == null) return;
             //BaseWeapon wa = this as BaseWeapon; //throws error
           
           
              AddBackground(243, 159,240, 305,3500);
             
            
           
             AddItem(254, 163, a.ItemID,0); ///WORKS
             AddLabel(276,218, LabelHue,string.Format("Damage:  {0} -  {1}",a.MinDamage,a.MaxDamage));    //WORKS
             AddLabel(276,238, LabelHue,string.Format("Attack Speed - {0}",a.Speed)); //WORKS
            AddLabel(348,165,2525,string.Format("{0}",a.Name));     //<---- DOESNT WORK, WHY? cant get the gump to show the baseweapon name

I also tried AddLabel(348,165,2525,a.Name)); nothing,doesnt work either
 
Last edited:
its probably a weapon that uses the cliloc, therefor the name is empty, but the labelnumber is set
 
Hi pyro, that method is inside baseweapon.cs, the weapon is just a scimitar :(

uhh i did [props and the name is null for some reason
Post automatically merged:

Okey fixed it, there was some checks inside weapon.cs that messed it up, thanks pyro
 
Last edited:
Back