Hiya Im trying to script a memo system for my mIRC bot on Undernet...this is what I have so far....
on *:join:#:{ cm }
on *:text:*!!memo send *:#:{ sm $3 $4 $nick }
on *:text:*!!memo list:#:{ lum }
on *:text:*!!memo read *:#:{ rumn $3 }
on *:text:*!!memo del *:#:{ dumn $3 }
alias cm {
%memos = $readini -n (userfile.ini, $nick, 1)
if %memos > 0 { /msg $nick DaBot Memo: You have %memos memo(s) waiting for you }
}
alias sm {
%user = $1
%msg = $2
%nick = $3

;if ( %user ison # ) { /notice %user DaBot Memo: %nick sent you the following message on $fulldate - %msg }
%memos = $readini -n (userfile.ini, %user, 1)
inc %memos
%file = %nick $+ %memos
writeini messagefile.ini %file Date $fulldate
writeini messagefile.ini %file Msg %msg
writeini messagefile.ini %file SentBy %nick
flushini messagefile.ini

;notice %nick DaBot Memo: Message saved for %user

;remini userfile.ini %user
writeini userfile.ini %user memos %memos
flushini userfile.ini
}
alias lum {
%memos = $readini(userfile.ini,n,$nick,1)
if %memos < 1 { /notice $nick DaBot Memo: You have no memos to list | halt }
%x = 0
:loop
inc %x
%file = $nick + %x
/notice $nick DaBot Memo: Memo %memo Sent $readini(message.ini,%file,1) by $readini(userfile.ini,%file,3)
if %x < %memos goto loop
/notice $nick DaBot Memo: End of Listing
}
alias rumn $$3 {
%file = $nick + $$3
%sdte = $readini(messagefile.ini,n,%file,1)
%memo = $readini(messagefile.ini,n,%file,2)
%susr = $readini(messagefile.ini,n,%file,3)
/notice $nick DaBot Memo: %susr sent you the following message on %sdte - %memo
/notice $nick DaBot Memo: End of Message
}
alias dumn $$3 {
if $$3 = ALL { | /notice $nick DaBot Memo: All Messages | halt }
%file = $nick + $$3
/remini messagefile.ini %file
/notice $nick DaBot Memo: Message number $$3 deleted
}
Basically when someone joins a channel it will do a message check and allow users to send,list,read and delete messages
I have started by testing the sm alias but get errors on the lines begining with a

Can anyone help ?? Or suggest another script if easier...remebering this is needed for a bot and so has to be useable by lots of users..ie a modified away system is no good
GazzyGaz