Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Belgarad
Novice


Joined: 11 Mar 2001
Posts: 37
Location: Canada

PostPosted: 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.)
Reply with quote
Toetag
Magician


Joined: 10 Oct 2000
Posts: 356
Location: USA

PostPosted: 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.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net