mIRC Home    About    Download    Register    News    Help

Print Thread
#145703 26/03/06 07:58 PM
Joined: Oct 2005
Posts: 10
G
Glibber Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Oct 2005
Posts: 10
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

#145704 26/03/06 08:43 PM
Joined: Nov 2005
Posts: 105
D
Vogon poet
Offline
Vogon poet
D
Joined: Nov 2005
Posts: 105
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.

#145705 26/03/06 08:59 PM
Joined: Oct 2005
Posts: 10
G
Glibber Offline OP
Pikka bird
OP Offline
Pikka bird
G
Joined: Oct 2005
Posts: 10
works:) thx

#145706 26/03/06 09:14 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
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.


Link Copied to Clipboard