RE: [request] Repeat emoticons
This is possible to do dynamically like you want (having any number and then the emoticon) but would require the programmer to be fairly good with regular expressions and stuff (something like RegExp("\s(\d*)"+emoticon,"gi") should work, but then again im doing this from memmory. That should be in a loop for all of the cutom emoticon codes and the regular ones (use the function to get the custom ones and write out all the normal ones, i think i have a list in MC!L that includes them all in an array) so as to check against each and every one of them. And then finally you just have to replace the text before returning the new message. This should be a good script for someone wishing to have a go at regular expressions for the first time, unfortunately I cannot do this for you because I am running too low on time.
|