mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2005
Posts: 4
M
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Oct 2005
Posts: 4
I'm totally new to Bot and mIRC stuff and any help would be appreciated. I did install mIRC and Yb-Bot is running just fine. I'd like to create the addtional triggers on the channels for example :
if I type !ABCD it will give me the text * latest greates is here: blabla* or !news and it will trigger the news text on this channel.I hope my question was clear and again any help to create those things and where to put the code( what ini file )would be appreciated.

Thanks in advance

Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
I'm not exactly sure what you're wanting the output to be, but you can change the red parts as needed.

Code:
on 1:text:[color:red]!ABCD[/color]:[color:red]#Channel[/color]:{
  msg [color:red]#Channel The latest greatest is here: blabla[/color]
}

on 1:text:[color:red]!news[/color]:[color:red]#Channel[/color]:{
  msg [color:red]#Channel some news text[/color]
}

Last edited by schaefer31; 04/10/05 05:56 PM.
Joined: Oct 2005
Posts: 4
M
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Oct 2005
Posts: 4
I'm sorry but Where do I put that script? Thanks again for the help

Joined: Mar 2004
Posts: 155
D
Vogon poet
Offline
Vogon poet
D
Joined: Mar 2004
Posts: 155
You put the code in your remotes (ALT +R)

Joined: Oct 2005
Posts: 4
M
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Oct 2005
Posts: 4
Nope. It does not work but Thanks for reply !

Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
My code does work assuming you change it in the right way. Perhaps you can paste here what you are doing, so someone can point out what you are doing wrong.

Joined: Mar 2005
Posts: 74
K
Babel fish
Offline
Babel fish
K
Joined: Mar 2005
Posts: 74
Code:
 
on *:text:!new:*:{
.msg $chan your message goes here
}


 

Why do u want to use #channel at the msg #channel again?
just use direct $chan smile
both channel must be the same if your using that code above.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Remember that you cannot trigger it yourself if you use ON TEXT. Have someone else type it.

KidSol, although true that $chan is a nicer way (imo) to do if you want the text to the same channel, it could be that the text is meant to go to another channel, so showing that way to someone who is just learning scripting isn't a bad idea. smile


Invision Support
#Invision on irc.irchighway.net
Joined: Feb 2005
Posts: 344
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Feb 2005
Posts: 344
YB-bot has the on text commands in chancmds or chancmds2
in C:/Program files/YB-Bot/scripts/ or where ever you installed it.
add all the on text you want but remember on 1600 is only you, on 1500 are masters you added, on 1000 is assistant and on 995 is janitor.
no number is everybody.
Just save the file and restart your bot or reload the script by using your script editor.

Joined: Mar 2005
Posts: 74
K
Babel fish
Offline
Babel fish
K
Joined: Mar 2005
Posts: 74
or u can use $nick so the bot will send pm to the user

Sorry if i offened anyone here smile


Link Copied to Clipboard