 |
Belgarad Novice
Joined: 11 Mar 2001 Posts: 37 Location: Canada
|
Posted: Sat Feb 16, 2002 9:29 am
Colours in databases |
Is it possible to get my database to record the color of the names? because there are often pieces of eq that have the same name but different colours only. if there's any way to do this then that'd be greatly appreciated. (p.s. it doesn't have to be automatic, if i have to manually put in the colours that's fine.)
|
|
|
 |
Toetag Magician
Joined: 10 Oct 2000 Posts: 356 Location: USA
|
Posted: Sat Feb 16, 2002 5:01 pm |
not sure how it works with a database. I use a trigger and variable list.
variable:
potion=bubbly|mocha|watery
Trigger pattern:
{@potion}
Trigger command:
#cw red
it then sets all potions variable list members to red anytime they are displayed.
Killing a fly on a friends forhead may not be overkill, use a hatchet to make sure the job is done. |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Feb 16, 2002 8:52 pm |
quote:
not sure how it works with a database. I use a trigger and variable list.
variable:
potion=bubbly|mocha|watery
Trigger pattern:
{@potion}
Trigger command:
#cw red
it then sets all potions variable list members to red anytime they are displayed.
Killing a fly on a friends forhead may not be overkill, use a hatchet to make sure the job is done.
That's not too helpful, Toetag, since the items are already appearing colorized when displayed . Belgarad wants to preserve the colors shown from the MUD when he records the items into the database.
To that, belgarad, you need to figure out what's being sent to and from the MUD in regards to color (usually ansi codes). There's a setting in preferences that will allow you to turn off color or something so you can see the raw ansi codes, though I don't get to use it (no color on the mud I play). Once you have those, you can simply insert them into the name field of the item, although I have no idea if doing so will still cause ZMud to colorize them when displayed or if those ansi codes will block you from finding matches or similar concerns.
li'l shmoe of Dragon's Gate MUD |
|
|
 |
|
|