mIRC Homepage
Posted By: Glibber msg other channel - 26/03/06 07:58 PM
hey, im looking for a script having some "easy" functions

*:text:!contacts*:#: {
notice $nick Contact Magic if you have a problem

on *:text:!whine*:#: {
msg aknb.priv Someone in #aknb are looking for you

basicly, the channel where this bot is placed is #aknb - you type !contacts to get a list of them - havn't added more and they work

2nd part, a msg into #aknb.priv (bot is there as well) with another msg) this is the one i cant figure out how should work:P
Posted By: drc4 Re: msg other channel - 26/03/06 08:43 PM
Try something like
Code:
on *:TEXT:*:#aknb:{
if ($1 == !contacts) { notice $nick Contact Magic if you have a problem. }
elseif ($1 == !whine) { msg #aknb.priv $nick is looking for you in #aknb }
else { return }
}

I believe your problem is having more than 1 on TEXT event in the same file. You can add other commands by adding more elseif's before the else statement.
Posted By: Glibber Re: msg other channel - 26/03/06 08:59 PM
works:) thx
Posted By: MikeChat Re: msg other channel - 26/03/06 09:14 PM
also by specifying the channel you can have more than one on text
on *:text:sometext *:#aknb.priv :{ msg #aknb they need you in #aknb.priv }
on *:text:!contacts *:#aknb:{ notice $nick /notice Magic if you need help. }


there have been lots of posts about "on text" on these boards and reviewing them using the msg board search feature would be helpful to you.
© mIRC Discussion Forums