Go to razor, choose the tab "Display/Counters". Press "Add.." in the bottom left corner.
You should now see a box with 4 fields you can type in.
What you do is you press "Target" and then you target the item you would like (refresh pot). You should get something like -
Name: Format:
Item ID: NUMBERS Color (Any: -1): -1
Now what you do is you put in anything in the "Name" field (1). The "Name" field can be anything.
The "Format" (2) box is what you will put in the code (Look on the right side of screenshot #1) in order for it to show up in the titlebar. Type in "ref" without the quotation marks.
Item ID is the ID of the item that you targeted.(3)
Color(4) will set the color of the item in the titlebar.
Press "ok", go to the "Display/Counters" tab again. Scroll down until you find "Name {ref}" and click the box next to it.
Now to the left there's a box that say something like (Look on right side on screenshot #1) :
"UO - {char} {crimtime}- {mediumstatbar} {bp} {bm} {gl} {gs} {mr} {ns} {ss} {sa} {aids} - {cure} {heal}"
After you have clicked the box next to "Name {ref}" you can type in {ref} in that code wherever you want in order for it to show in the titlebar.
If you hover your mouse over the code you will see a bunch of valid {} codes you can put in. Such as {gold} {weight}/{weightmax} and so on.