Shoutbox

[request] Repeat emoticons - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [request] Repeat emoticons (/showthread.php?tid=73099)

[request] Repeat emoticons by Nidhogg on 03-28-2007 at 08:30 PM

I have a request! :D

I want to write :D:D:D:D:D, but I'm idler therefore I would a script which when I write for example 5:D, in the chat appear :D:D:D:D:D. I hope for well explain.

Thanks for all answers

Bye Bye


RE: [request] Repeat emoticons by Orgrim Doomhammer on 03-29-2007 at 01:41 PM

the easiest way to do it is a quick text if you don't want the number of emoticons shown to be customizable


RE: [request] Repeat emoticons by Nidhogg on 03-29-2007 at 11:13 PM

I'm not an expert of JS...i request a script to realize that function. Anyone can help me?

Thanks!

Bye bye


RE: [request] Repeat emoticons by markee on 03-31-2007 at 07:43 AM

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.


RE: [request] Repeat emoticons by Nidhogg on 06-17-2007 at 12:23 AM

Up!