mIRC Home    About    Download    Register    News    Help

Print Thread
G
gazzygaz
gazzygaz
G
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
frown ;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
frown ;notice %nick DaBot Memo: Message saved for %user
frown ;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 frown
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

E
EviL_SmUrF
EviL_SmUrF
E
Gazzygaz, i have already scripted a full bot for that sorta thing wink


http://www.pointblankhosting.com/messagebot

check it out


just remember to go through the MessageBot.conf file completely and set the settings how u want it and read the readme.txt file for information. its been downloaded over 6,000 times and has been in the top10 on mircx.com for serveral weeks now, and half the people never bother to go through the conf and never catch the configfilestop i put in there to make sure they do go through it.

F
FunChatter
FunChatter
F
Guess sending an email is too dificult... :tongue:

M
MonoSex
MonoSex
M
Not really, it can be userful.
For example when you don't want to give away your e-mail address :tongue:

G
gazzygaz
gazzygaz
G
Thanks for that playing with message bot now smile

E
EviL_SmUrF
EviL_SmUrF
E
hey no prob man, bout to buy a domain for it cause its up to 7,000+ downloads now lol. workin on version 2.0

if u got any questions/comments just post on the forums or go to ~~server spam deleted~~ #~~channel spam deleted~~ and you can find me in there. (same nick)

Last edited by Hammer; 26/01/03 07:55 PM.

Link Copied to Clipboard