Comments
Join Hawkee
|
Login
Search
in
Code Snippets
Images
Products
Reviews
Forum
Home
Platforms
.NET
C++
Cold Fusion
CSS
Hi5
Java
Javascript
JSP
mIRC
MySpace
mySQL
OpenSocial
Perl
PHP
Python
Ruby / Rails
TCL
Images
Recently Liked
Most Liked
Most Comments
Snippets
.NET (6)
C++ (2)
Cold Fusion (1)
CSS (2)
Hi5 (1)
Java (1)
Javascript (10)
JSP (1)
mIRC (4,103)
MySpace (2)
mySQL (1)
OpenSocial (2)
Perl (8)
PHP (137)
Python (3)
Ruby / Rails (6)
TCL (20)
Products
Computers (8,043)
Electronics (5,849)
Software (799)
Video Games (2,295)
Reviews
Computers (5,032)
Electronics (13,703)
Software (1,990)
Video Games (5,640)
Posts
Latest Likes
Latest Comments
All Activities
Comments
Images
Scripts
Code Snippets
Products
Reviews
Profiles
Forum
username
password
auto login
Home
>
Code Snippets
>
nobody's Snippets
>
mIRC
Quote System v1.0
mIRC Code
+ 0
likes
Like it
Please
Register
to submit score.
Average Score
4.0
Scores Submitted
3
Date Added
Jan 20, 2005
Last Updated
Jan 21, 2006
Tags
quotes
Introduction
Pretty much self-explanatory.
Grab the Code
alias quote $iif(!$dialog(quote),dialog -md quote quote) dialog quote { title "Quote System v1.0" size -1 -1 160 136 option dbu box "", 1, 0 2 160 97 list 2, 1 9 158 89, size hsbar vsbar edit "", 3, 0 100 160 10 box "", 4, 0 108 160 4 button "a&dd", 5, 85 113 25 10, flat button "&del", 6, 110 113 25 10, flat button "e&dit", 7, 135 113 25 10, flat box "", 8, 0 121 160 4 button "clo&se", 9, 68 126 28 10, flat ok } on 1:dialog:quote:init:0: { if ($exists($+(",$scriptdir,quotes.txt,"))) { did -a $dname 1 Number of Quotes: $lines($+(",$scriptdir,quotes.txt,")) } .loadbuf -ro $dname 2 $+(",$scriptdir,quotes.txt,") .did -z $dname 2 } on 1:dialog:quote:sclick:2: { did -ra $dname 3 $did($dname,2).seltext } on 1:dialog:quote:sclick:5: { if ($did($dname,3).text) { .write $+(",$scriptdir,quotes.txt,") $did($dname,3).text | .loadbuf -ro $dname 2 $+(",$scriptdir,quotes.txt,") | .did -r $dname 3 | .did -z $dname 2 } } on 1:dialog:quote:sclick:6: { if ($did($dname,2).seltext) { .write -ds $+(",$did($dname,2).seltext,") $+(",$scriptdir,quotes.txt,") | .loadbuf -ro $dname 2 $+(",$scriptdir,quotes.txt,") | .did -r $dname 3 | .did -z $dname 2 } } on 1:dialog:quote:sclick:7: { .write -l $+ $did($dname,2).sel $+(",$scriptdir,quotes.txt,") $did($dname,3).text | .loadbuf -ro $dname 2 $+(",$scriptdir,quotes.txt,") | .did -r $dname 3 | .did -z $dname 2 } alias readnx { if ($lines($+(",$scriptdir,quotes.txt,")) == 0) { echo $colour(info) * No Quotes! | halt } else { say Random Quote: $read($+(",$scriptdir,quotes.txt,")) } } menu channel { $iif($me ison $server,$style(2)) Quote System .Config..:quote .- .Random Quote:readnx }
Comments
(0)
RSS
Go to Bottom
Enter comment here..
Please
Register
or
Login
to start posting comments.
nobody
Student
Oklahoma, USA
Last seen:
May 20, 2006
Profile
Snippets
(1)
Comments Submitted
(36)
Forum Posts
(2)
My Snippet Tags
quotes
Contact
Add to Friends
Send Private Message
Sponsors