Simple Quote system

By lehmann14l on Mar 15, 2007

This is a simple quote system.
i recommend use on a bot.

!addquote nick quote (op's only)
!quote nick
!quote (quote the person that types !quote without a second var)

do not add the < > around the nick when entering the quote (if you want to remove the < $+ $+ > in the addquote code.
it records separate quote records for each channel.

this is one of my first scripts please be nice :D
any corrections/recommendations/comments are greatly appreciated.

on *:TEXT:!addquote *:#:{ if ($nick isop $chan) { 
writeini -n quote. $+ $chan $+ .ini QUOTES $2 < $+ $2 $+ > $3-
msg $chan Quote added! }
    else { msg $chan OP's only! }
}
on *:TEXT:!quote*:#:{ if ($2 == $null) { msg $chan $readini(quote. $+ $chan $+ .ini, QUOTES, $nick) }
    else { msg $chan $readini(quote. $+ $chan $+ .ini, QUOTES, $2) }
}

Comments

Sign in to comment.
AHBARAR   -  Jun 03, 2007

not bad addon but when u type !quote it says there is some errors on line 6 tht mean---> else { msg $chan $readini(quote. $+ $chan $+ .ini, QUOTES, $2) } , and if u said !quote + nick it says error in line 6 ---> if ($2 == $null) { msg $chan $readini(quote. $+ $chan $+ .ini, QUOTES, $nick) }
.....................................................
i tried to fix it by deleteing the line 7 but for line 6 i changed the $readini to $read and delete $nick so it look like this
on :TEXT:!quote:#:{ if ($2 == $null) { msg $chan $read(quote. $+ $chan $+ .ini, QUOTES)}
and im new on this things i just cant find a way to keep it with colours if u added colours its like strip them off thx for all i still like ur script >:)

 Respond  
lehmann14l   -  Mar 15, 2007

also, it doesn\'t respond if the nick is not in the quote file.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.