Shoutbox

[REQUEST] Quotation Database - 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] Quotation Database (/showthread.php?tid=88199)

[REQUEST] Quotation Database by Untitled.of.AH on 01-08-2009 at 10:26 PM

I am sure all of you scriptwriters are more than aware of the infamous /quote script that is used widely on mIRC.

Basically, is there any way somebody could make one for MSN? It would work just like the mIRC one. Somebody types in /quote <quote> it will quote a person. The quote is then written into a database, and can be accessed by something like /sayquote # or could even generate a random one, if no # is given.

I guess this a request, I hope I'm not going too far outside of the box...


RE: [REQUEST] Quotation Database by Chris4 on 01-08-2009 at 10:58 PM

Pleaser read What scripts can't do. I doubt that's possible I'm afraid :P. Haven't seen any scripts that connect to a database or anything like that.

Best you'll get is quotes that are built into the script, like the Street Fighter Quotes script.


RE: [REQUEST] Quotation Database by NiteMare on 01-08-2009 at 11:00 PM

quote:
Originally posted by Chris4
Haven't seen any scripts that connect to a database or anything like that.
you could always connect to a PHP script and have that access the database
RE: RE: [REQUEST] Quotation Database by Untitled.of.AH on 01-08-2009 at 11:02 PM

quote:
Originally posted by NiteMare
quote:
Originally posted by Chris4
Haven't seen any scripts that connect to a database or anything like that.
you could always connect to a PHP script and have that access the database

I was trying to say something like that. It could even be a .txt file or something. What I meant by database, was basically the quotes would be written to a small text file, and then the script could access it to do whatever the command was.
RE: [REQUEST] Quotation Database by vaccination on 01-09-2009 at 09:31 AM

It'd be more than possible, it doesn't have to be a hosted on a server guys, all you'd have to do is save the quotes to a file in the script folder, only problem with txt file I believe is it'll be messy and hard to distinguish between quotes and stuff, could probably make some sort of xml schema to work with it though.

^^ iirc anyway ;p


RE: [REQUEST] Quotation Database by Spunky on 01-09-2009 at 01:56 PM

A .ini file would work just as well...

quote:
0001=This is a quote
0002=This is too
0003=And This


You search the file for the relevant numer, split at the next = sign and then split that at the next \n character.

Adding quotes would be just as easy. Find last line, find the number, increment it and append quote to a new line.

EDIT: We'll see how busy I am... We could add a call to a php script and have a global quote file :p
RE: RE: [REQUEST] Quotation Database by Untitled.of.AH on 01-10-2009 at 01:35 AM

quote:
Originally posted by Spunky
A .ini file would work just as well...

quote:
0001=This is a quote
0002=This is too
0003=And This


You search the file for the relevant numer, split at the next = sign and then split that at the next \n character.

Adding quotes would be just as easy. Find last line, find the number, increment it and append quote to a new line.

EDIT: We'll see how busy I am... We could add a call to a php script and have a global quote file :p

Trust the motivation of a man with a pimpin' avatar.

Work just gets done that way :)
RE: [REQUEST] Quotation Database by MeEtc on 01-10-2009 at 02:11 AM

Sounds like something I'd actually try doing. I can definitly host the quotes database (Spunky is using my server aready anyway :p)


RE: RE: [REQUEST] Quotation Database by Untitled.of.AH on 01-10-2009 at 09:08 PM

quote:
Originally posted by MeEtc
Sounds like something I'd actually try doing. I can definitly host the quotes database (Spunky is using my server aready anyway :p)

Sounds good, I'll troll this post until it's done :)

Thanks for the hard work in advance, guys. I'd give you money if my pimp didn't take it all.