sahisahi

Member
I want to some containers to not show their content (items inside)

The chest im talking about are ''LockableContainer''


I tried to add this to the chest script:
Code:
public override bool DisplaysContent{ get{ return false; } }

And didnt worked, also i tried;

Code:
public override bool CheckContentDisplay( Mobile from )
        {
return;
        }
also this didnt worked either:
Code:
 public override void DisplayTo(Mobile to)
        {
           return;
        
         //   base.DisplayTo(to);
        }



Locked ones are not supposed to show their items but they still do. Anyway i dont want to lock these chests thought.Thanks
 
Last edited:
are you referring to opening the chest and not being able to see items, or not seeing item count on the object properties list?
 
I think container has a CanSee method.

Im using runuo 2.2, cant see that method :p

are you referring to opening the chest and not being able to see items, or not seeing item count on the object properties list?

im referring not seeing item count, my server have no propeties list.

When a player singleclick the metalchest, it says:

metalchest (2 items)

i want the chest to not show the item count inside the chest the ''(2 items)'' part :)

Found this method....
Code:
public override void OnSingleClick( Mobile from )
        {
            string labelMessage = string.Empty;

            if (string.IsNullOrEmpty(Name))
                labelMessage = string.Format("{0} ({1} objeto{2})", CliLoc.LocToString(LabelNumber), Items.Count, Items.Count == 1 ? "" : "s");
            else
                labelMessage = string.Format("{0} ({1} objeto{2})", Name, Items.Count, Items.Count == 1 ? "" : "s"); ;

            LabelTo(from, labelMessage);
        }

And changed it to:

Code:
     public override void OnSingleClick( Mobile from )
          {
                string labelMessage = string.Empty;

   
                labelMessage = string.Format("({0})", Name);

            LabelTo(from, labelMessage);
}


Removed the itemcount so it doesnt says the amount of items inside anymore :p
 
Last edited:

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back