never thought of that... ima test before sending this quote so i dont double post something that wasnt nesseciary..
TESTING...
ok only the first alias is giving me trouble so here it is
alias quote {
if ($1 isnum) && ($2 <= $lines(c:\program files\mirc\Quotes.txt)) /msg $chan Quote $chr(91) $+ $chr(35) $+ $2 $+ $chr(92) $+ $lines(c:\program files\mirc\Quotes.txt) $+ $chr(93) 4 $+ $read(quotes.txt, $2)
else { set %quote $read(quotes.txt) } { /msg $chan $chr(91) $+ $chr(35) $+ $readn $+ $chr(92) $+ $lines(c:\program files\mirc\Quotes.txt) $+ $chr(93) 4 $+ %quote }
}
let me know if you have a solution
this is what i put but it didnt work.
;on :input:#: { if ($1 == !quote) && ($2 == $null) { set %quote $read(quotes.txt) } { .msg $chan $chr(91) $+ $chr(35) $+ $readn $+ $chr(92) $+ $lines(c:\program files\mirc\Quotes.txt) $+ $chr(93) 4 $+ %quote }
;on :input:#: { if ($1 == !quote) && ($2 isalnum) && ($2 <= $lines(c:\program files\mirc\Quotes.txt)) { .msg $chan Quote $chr(91) $+ $chr(35) $+ $2 $+ $chr(92) $+ $lines(c:\program files\mirc\Quotes.txt) $+ $chr(93) 4 $+ $read(quotes.txt, $2) } }
;on :input:#: { if ($1 == !addquote) .write quotes.txt 12Quote added by $nick on $date $+ : 4 $+ $2- } { .msg $chan Your quote has been added, thank you! }
;on :input:#: { if ($1 == !delquote) && ($nick isop $chan) { .write -dl$2 quotes.txt }
;{ .msg $chan Quote $chr(35) $+ $2 has been deleted. } }
;on :input:#: { if ($1 == !quotes) .msg $chan Total number of quotes: $lines(c:\program files\mirc\Quotes.txt) }
;on :input:#: { if ($1 == !lastquote) .msg $chan 12Last quote: $read(Quotes.txt, $lines(c:\program files\mirc\Quotes.txt)) }
(i had commented it because i wanted to keep this for refrence)
instead of using \"if ($nick == YouRNiCkHeRe)\" i would suggest using \"if ($nick == $me)\" because if you use the $me will work even if you change your name. ^_^ just a suggestion though.
Another Suggestion is using it as an on *:INPUT: command such as the one below.
on :input:: {
if (!$istok($cmd /,$left($1,1),32) && !$inpaste && !$ctrlenter) {
if ($1 == !boom) {
inc %z
The first and second part of the code is for other people to use.
The third part is for you to use. To use it YOU type !pie <someone\'s nickname> and you throw a pie at them.
And also im not that good of a scriptor and im still learning how to use more complex commands. So when i get better they will start looking more clean. :P