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

Pages: (2): « First [ 1 ] 2 » Last »
[R] Random Quote Plugin
Author: Message:
surfichris
Former Admin
*****

Avatar

Posts: 2365
Reputation: 81
Joined: Mar 2002
O.P. Tongue  [R] Random Quote Plugin
Just finished this small addon as an experiment.

This addon is basically a random quote generator.

When you type (!xquote) a random quote is presented.

You could use it as a random away message or something like that.. possibilities are unlimited.. well..yeah :P

The plugin comes with 2 files by default, the dll and default.quotes (the default quotes file). You can create different quote lists per msn messenger account by naming them [email address].quotes (eg me@myself.com.quotes). The quote files reside in the Plugins directory.

I have built a setup program so there is no need to fiddle around trying to install it yourself.

Please note you will require Messenger Plus! 2.20.46 and up to be able to use this plugin :)

Download: http://www.mybboard.com/mp_plugins/RandomQuote.exe

Please note that KoalaBlue and I have both tested the installer and can verify that it works.

Also, i added a command /xrquotes to refresh/reload the quotes file (as they are loaded on Initialize). I havent mentioned this because it still sends /xrquotes even when i set sResult = "". This should be fixed in the  next version.

Chris :)
07-07-2003 07:53 AM
Profile PM Find Quote Report
Tandy
Veteran Member
*****

Avatar
:D

Posts: 1242
Reputation: 8
34 / Male / –
Joined: Jan 2003
RE: [R] Random Quote Plugin
very nice Chris

well done
[Image: allju3.jpg]
07-07-2003 07:55 AM
Profile PM Find Quote Report
segosa
Community's Choice
*****


Posts: 1407
Reputation: 92
Joined: Feb 2003
RE: [R] Random Quote Plugin
Do you think perhaps you can share the source of the installer with me if you made it in VB? :)
The previous sentence is false. The following sentence is true.
07-07-2003 07:56 AM
Profile PM Find Quote Report
surfichris
Former Admin
*****

Avatar

Posts: 2365
Reputation: 81
Joined: Mar 2002
O.P. RE: [R] Random Quote Plugin
I used crappy Wise Installation System Professional :P
07-07-2003 07:57 AM
Profile PM Find Quote Report
Chrono
forum admin
*******

Avatar
;o

Posts: 6022
Reputation: 116
39 / Male / Flag
Joined: Apr 2002
Status: Away
RE: [R] Random Quote Plugin
Cool (Y)
[Image: wdz_discrate.png]
07-07-2003 07:59 AM
Profile PM Web Find Quote Report
Chrono
forum admin
*******

Avatar
;o

Posts: 6022
Reputation: 116
39 / Male / Flag
Joined: Apr 2002
Status: Away
RE: [R] Random Quote Plugin
crappy indeed
[Image: wdz_discrate.png]
07-07-2003 08:01 AM
Profile PM Web Find Quote Report
qune
Full Member
***

Avatar


Posts: 300
Reputation: 6
Joined: Mar 2003
RE: [R] Random Quote Plugin
superb...:)
07-07-2003 09:44 AM
Profile E-Mail PM Web Find Quote Report
n_b
New Member
*

Avatar

Posts: 10
36 / Male / –
Joined: Jul 2003
RE: [R] Random Quote Plugin
nice plugin :) (Y)
Yeah Baby! :refuck:
07-07-2003 09:48 AM
Profile E-Mail PM Find Quote Report
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
Sypher
Senior Member
****

Avatar

Posts: 623
Reputation: 15
36 / Male / Flag
Joined: Apr 2003
RE: [R] Random Quote Plugin
/xrquotes doesn't work :(
Messenger Plus Beta Tester
Plus! Live Faq Maintainer
07-07-2003 06:09 PM
Profile PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


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