Shoutbox

Simple script Request :) - 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: Simple script Request :) (/showthread.php?tid=83344)

Simple script Request :) by FlintAlt on 04-22-2008 at 10:45 PM

Hi,

Id like to ask if it would be possible for someone to create a simple script which adds a line breaker before and after my messages

e.g.

flint says:

Hello world

Flints friend says:
Hey

Thanks in advance !

Flint


RE: Simple script Request :) by roflmao456 on 04-22-2008 at 11:26 PM

code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
if(Message.substr(0,1) != "/" || Message.substr(0,1) != "!") return "\n" + Message + "\n";
}

paste that into a new script and there you go.
RE: Simple script Request :) by FlintAlt on 04-22-2008 at 11:34 PM

Thank you very much :)


RE: Simple script Request :) by Spunky on 04-23-2008 at 12:45 AM

That breaks any plus command. You should check for a / (but not a //) and also for stuffplug a !. If it starts with these, don't change anything.


RE: Simple script Request :) by roflmao456 on 04-23-2008 at 01:04 AM

quote:
Originally posted by SpunkyLoveMuff
That breaks any plus command. You should check for a / (but not a //) and also for stuffplug a !. If it starts with these, don't change anything.
updated code above

now only if flintalt would come back :tongue:
600! :spam: