quote:
Originally posted by ins4ne
great idea, why didnt anybody think of that?
I have actually made something for this already and it is included in the PSM+ script
There is also an entire thread about this, started by me from around the time I did it
EDIT:
code:
for(a=0;a<=99;a++){
myString = myString.replace(new RegExp("\\[c="+a+"\\]",'gi'),"·$"+a+" ");
myString = myString.replace(/\[\/c\]/g,'·$');
}
Just need to add support for people using hex codes rather than just numbers
(Also, make sure it only reads first 6 digits from hex code
)