The basic "on text"
Posted by scoutZor
Monday, June 28, 2004
Description: People need help, so i desided to help them
I thought i would make a tutorial on the basic "on text". No one ever wants to teach people it because they believe it is to simple and the help files help. I disagree. Everyone needs help sooner or later.
Format: on <level>:TEXT:<matchtext>:<*><?><#[,#]>:<commands>
The level would be the access level in which the user owuld have to trigger the command.
The text just means the it is triggered when someone types the matchtext.
The matchtext is what they have to type to trigger the command.
With the Matchtext you have several options, Here are some examples.
*-say = Ends with -say
-say = Only word in text is -say
-say* = Starts with -say
*-say* = Anywhere in the text, the word -say appears.
After the matchtext you have * ? # and #channel
* means: That it can be anywhere, in channel, in pm, notice, etc.
? means: In pm only
# means: in any channel
#channel means: in the channel #channel only
the commands is the obvious. msg $chan blah, or notice $nick blah
a sample would be "
on *:text:-say*:#script:{ msg $chan $2- }
The $2- means that from the second word and on, is what it will msg the channel. So if you typed "-say hello my name is Shawn." the bot would msg that channel with , "hello my name is Shawn."
I believe this would help anyone who is just starting on the hole scripting base. But if not, you can always try the "/help on text" file on your mirc. If you still need help after reading this, you can try to msg me on irc.gamesurge.net my ($nick == evo|teh-scoutZor[BN]) you can find me in #script or in #bots... I hope this helps
I thought i would make a tutorial on the basic "on text". No one ever wants to teach people it because they believe it is to simple and the help files help. I disagree. Everyone needs help sooner or later.
Format: on <level>:TEXT:<matchtext>:<*><?><#[,#]>:<commands>
The level would be the access level in which the user owuld have to trigger the command.
The text just means the it is triggered when someone types the matchtext.
The matchtext is what they have to type to trigger the command.
With the Matchtext you have several options, Here are some examples.
*-say = Ends with -say
-say = Only word in text is -say
-say* = Starts with -say
*-say* = Anywhere in the text, the word -say appears.
After the matchtext you have * ? # and #channel
* means: That it can be anywhere, in channel, in pm, notice, etc.
? means: In pm only
# means: in any channel
#channel means: in the channel #channel only
the commands is the obvious. msg $chan blah, or notice $nick blah
a sample would be "
on *:text:-say*:#script:{ msg $chan $2- }
The $2- means that from the second word and on, is what it will msg the channel. So if you typed "-say hello my name is Shawn." the bot would msg that channel with , "hello my name is Shawn."
I believe this would help anyone who is just starting on the hole scripting base. But if not, you can always try the "/help on text" file on your mirc. If you still need help after reading this, you can try to msg me on irc.gamesurge.net my ($nick == evo|teh-scoutZor[BN]) you can find me in #script or in #bots... I hope this helps