Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Quote.
Topic Started: Feb 1 2008, 01:02 AM (108 Views)
Gus1310
Member Avatar

andrew you made this and i want it so i can add and delete it and only i can delete them. i want the add to be !addQuote and the delete to be !delquote

Heres the script u gave me


on $*:TEXT:/^[!@]quote/Si:#:{
if ($2 == -w) {
write Quote.ini Quote $calc($lines(Quote.ini) + 1) $+ : $$3- - $nick
$iif($left($1,1) == !, /notice $nick, msg $chan) Quote $lines(Quote.ini) was written.
}
elseif ($2 == -r) {
$iif($left($1,1) == !, /notice $nick, msg $chan) $read(Quote.ini,$$3)
}
else {
$iif($left($1,1) == !, /notice $nick, msg $chan) $read(Quote.ini)
elseif ($2 == -d) {

}
}
Offline Profile Quote Post Goto Top
 
Fredua Adu
Administrator
Code:
 
on $*:TEXT:/^[!@]addquote/Si:#:{
write Quote.txt Quote $calc($lines(Quote.txt) + 1) $nick $$2-
$iif($left($1,1) == !, .notice $nick, msg $chan) Quote $lines(Quote.txt) written.
}
on $*:TEXT:/^[!@]delquote/Si:#:{
if ($nick == LegendKa0s) {
if ($read(Quote.txt,$$2)) {
write -dl $+ $$2 Quote.txt
$iif($left($1,1) == !, .notice $nick, msg $chan) Quote $$2 deleted.
}
}
}
on $*:TEXT:/^[!@]quote/Si:#:{
if ($2) {
if ($read(Quote.txt,$2)) {
tokenize 32 $v1
$iif($left($1,1) == !, .notice $nick, msg $chan) Quote $1 out of $lines(Quote.txt) $+ : $3- - $2
}
else {
$iif($left($1,1) == !, .notice $nick, msg $chan) Quote $2 is not in the Quote.txt file.
}
}
else {
tokenize 32 $read(Quote.txt)
$iif($left($1,1) == !, .notice $nick, msg $chan) Quote $1 out of $lines(Quote.txt) $+ : $3- - $2
}
}
Edited by Fredua Adu, Feb 1 2008, 01:28 AM.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Script Help · Next Topic »
Add Reply