RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

"<" int the property of a propertylist

b0b01

Sorceror
"<" int the property of a propertylist

How can i add "<" in a property of a propertylist:

"Weight: < 100 stones"

if i use "<" it takes it as a tag opening of html code.

if i use & #60; it just prints that.
 

b0b01

Sorceror
Konstantin Andry;684021 said:
post your script

....what for? there is no script.

Code:
public override void GetProperties(ObjectPropertyList list)
        {
            base.GetProperties(list);
            list.Add(1060658, "Duration\t< {0}", DaysLeft.ToString() + " Days");
        }
 
cliloc is a blank?
try
Code:
public override void GetProperties(ObjectPropertyList list)
        {
            base.GetProperties(list);
[COLOR="Red"]            list.Add(1060658, String.Format("Duration < {0} Days", DaysLeft.ToString()) );[/COLOR]
        }
or
Code:
public override void GetProperties(ObjectPropertyList list)
        {
            base.GetProperties(list);
[COLOR="Red"]            list.Add( String.Format("Duration < {0} Days", DaysLeft.ToString()) );[/COLOR]
        }
 
try /< or &< and other characters 1st - i forget which one allows you to use the control characters that way, but i know it is probably one of those, if not try other ones 1st
 

Setharnas

Sorceror
Well, then maybe you'll have to settle for
Code:
list.Add(1060658, "Duration\tless than {0}", DaysLeft.ToString() + " Days");
:p
 
Top