Shoutbox

Strip Pong! - 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: Strip Pong! (/showthread.php?tid=63524)

Strip Pong! by GibsonDude on 07-18-2006 at 10:17 AM

I am trying to perform a function when the user sends the /ping command...

How do I initiate the function when the Pong! is recieved?... this is annoying me now...


RE: Strip Pong! by RaceProUK on 07-18-2006 at 10:31 AM

Can't you just look for the message in OnEvent_ReceiveMessage()?


RE: Strip Pong! by GibsonDude on 07-18-2006 at 10:38 AM

Nah, that doesn't seem to work...

Unless I'm too thick to write it properly :s


RE: Strip Pong! by Volv on 07-18-2006 at 11:21 AM

It does work, but remember that it has colour/font tags and actually contains "Pong! [resps]"


RE: Strip Pong! by GibsonDude on 07-18-2006 at 11:25 AM

so how would I strip the first 5 chars?


RE: Strip Pong! by Volv on 07-18-2006 at 11:35 AM

Message.substr(5)


RE: Strip Pong! by Mushroom_Man on 07-18-2006 at 08:12 PM

Strip pong sounds quite fun - I'll have to get the old box out and invite some girls over