What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » [R] Random Quote Plugin

[R] Random Quote Plugin
Author: Message:
Predatory Kangaroo
Full Member
***


Posts: 144
– / Male / –
Joined: Jul 2003
RE: [R] Random Quote Plugin
Nice :)
Let me see now...
In initialize, you create a file handle to sUserEmail.quotes and if it's not valid you create a file handle to Default.quotes
Then you parse all the quotes from the file into... an array of an array of chars? (an array of strings).
Then when the tag is parsed you select one at random (Rnd()%Number of quotes)?

I haven't downloaded it yet, these are just assumptions from the fact that the quotes are loaded in Initialize().

As long as the quotes file isn't too big, wouldn't it be easier to parse the quotes file on each parsetag call?  Because it's unlikely that anyone will have a REALLY huge quotes file, there wouldn't be too much processing time wasted and it would eliminate the need for /xrquotes :)

Or you could check if the last modified time has changed and reload only if it has been :)

And in case i didn't mention it... nice plugin :)
[Image: imagetest.php?display=You%20dont%20know%...djust=true]
07-07-2003 04:30 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[R] Random Quote Plugin - by surfichris on 07-07-2003 at 07:53 AM
RE: [R] Random Quote Plugin - by Tandy on 07-07-2003 at 07:55 AM
RE: [R] Random Quote Plugin - by segosa on 07-07-2003 at 07:56 AM
RE: [R] Random Quote Plugin - by surfichris on 07-07-2003 at 07:57 AM
RE: [R] Random Quote Plugin - by Chrono on 07-07-2003 at 07:59 AM
RE: [R] Random Quote Plugin - by Chrono on 07-07-2003 at 08:01 AM
RE: [R] Random Quote Plugin - by qune on 07-07-2003 at 09:44 AM
RE: [R] Random Quote Plugin - by n_b on 07-07-2003 at 09:48 AM
RE: [R] Random Quote Plugin - by Predatory Kangaroo on 07-07-2003 at 04:30 PM
RE: [R] Random Quote Plugin - by Sypher on 07-07-2003 at 06:09 PM
RE: [R] Random Quote Plugin - by surfichris on 07-08-2003 at 01:43 AM
RE: [R] Random Quote Plugin - by Predatory Kangaroo on 07-08-2003 at 02:39 AM
RE: [R] Random Quote Plugin - by Sypher on 07-08-2003 at 08:53 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On